1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for Intel MIC Offload Plugin 1.0.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90case $0 in #((
91  *[\\/]* ) as_myself=$0 ;;
92  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95  IFS=$as_save_IFS
96  test -z "$as_dir" && as_dir=.
97    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there.  '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136  emulate sh
137  NULLCMD=:
138  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139  # is contrary to our usage.  Disable this feature.
140  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141  setopt NO_GLOB_SUBST
142else
143  case \`(set -o) 2>/dev/null\` in #(
144  *posix*) :
145    set -o posix ;; #(
146  *) :
147     ;;
148esac
149fi
150"
151  as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165  exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177    PATH=/empty FPATH=/empty; export PATH FPATH
178    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180test \$(( 1 + 1 )) = 2 || exit 1"
181  if (eval "$as_required") 2>/dev/null; then :
182  as_have_required=yes
183else
184  as_have_required=no
185fi
186  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193  IFS=$as_save_IFS
194  test -z "$as_dir" && as_dir=.
195  as_found=:
196  case $as_dir in #(
197	 /*)
198	   for as_base in sh bash ksh sh5; do
199	     # Try only shells that exist, to save several forks.
200	     as_shell=$as_dir/$as_base
201	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203  CONFIG_SHELL=$as_shell as_have_required=yes
204		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205  break 2
206fi
207fi
208	   done;;
209       esac
210  as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214  CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219      if test "x$CONFIG_SHELL" != x; then :
220  # We cannot yet assume a decent shell, so we have to provide a
221	# neutralization value for shells without unset; and this also
222	# works around shells that cannot unset nonexistent variables.
223	BASH_ENV=/dev/null
224	ENV=/dev/null
225	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226	export CONFIG_SHELL
227	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230    if test x$as_have_required = xno; then :
231  $as_echo "$0: This script requires a shell more modern than all"
232  $as_echo "$0: the shells that I found on your system."
233  if test x${ZSH_VERSION+set} = xset ; then
234    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236  else
237    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241  fi
242  exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260  { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269  return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277  set +e
278  as_fn_set_status $1
279  exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288  case $as_dir in #(
289  -*) as_dir=./$as_dir;;
290  esac
291  test -d "$as_dir" || eval $as_mkdir_p || {
292    as_dirs=
293    while :; do
294      case $as_dir in #(
295      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296      *) as_qdir=$as_dir;;
297      esac
298      as_dirs="'$as_qdir' $as_dirs"
299      as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301	 X"$as_dir" : 'X\(//\)[^/]' \| \
302	 X"$as_dir" : 'X\(//\)$' \| \
303	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\/\)[^/].*/{
310	    s//\1/
311	    q
312	  }
313	  /^X\(\/\/\)$/{
314	    s//\1/
315	    q
316	  }
317	  /^X\(\/\).*/{
318	    s//\1/
319	    q
320	  }
321	  s/.*/./; q'`
322      test -d "$as_dir" && break
323    done
324    test -z "$as_dirs" || eval "mkdir $as_dirs"
325  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336  eval 'as_fn_append ()
337  {
338    eval $1+=\$2
339  }'
340else
341  as_fn_append ()
342  {
343    eval $1=\$$1\$2
344  }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353  eval 'as_fn_arith ()
354  {
355    as_val=$(( $* ))
356  }'
357else
358  as_fn_arith ()
359  {
360    as_val=`expr "$@" || test $? -eq 1`
361  }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372  as_status=$?; test $as_status -eq 0 && as_status=1
373  if test "$3"; then
374    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376  fi
377  $as_echo "$as_me: error: $1" >&2
378  as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382   test "X`expr 00001 : '.*\(...\)'`" = X001; then
383  as_expr=expr
384else
385  as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389  as_basename=basename
390else
391  as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395  as_dirname=dirname
396else
397  as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402	 X"$0" : 'X\(//\)$' \| \
403	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405    sed '/^.*\/\([^/][^/]*\)\/*$/{
406	    s//\1/
407	    q
408	  }
409	  /^X\/\(\/\/\)$/{
410	    s//\1/
411	    q
412	  }
413	  /^X\/\(\/\).*/{
414	    s//\1/
415	    q
416	  }
417	  s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427  as_lineno_1=$LINENO as_lineno_1a=$LINENO
428  as_lineno_2=$LINENO as_lineno_2a=$LINENO
429  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432  sed -n '
433    p
434    /[$]LINENO/=
435  ' <$as_myself |
436    sed '
437      s/[$]LINENO.*/&-/
438      t lineno
439      b
440      :lineno
441      N
442      :loop
443      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444      t loop
445      s/-\n.*//
446    ' >$as_me.lineno &&
447  chmod +x "$as_me.lineno" ||
448    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450  # Don't try to exec as it changes $[0], causing all sort of problems
451  # (the dirname of $[0] is not the place where we might find the
452  # original and so on.  Autoconf is especially sensitive to this).
453  . "./$as_me.lineno"
454  # Exit status is that of the last command.
455  exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461  case `echo 'xy\c'` in
462  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
463  xy)  ECHO_C='\c';;
464  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465       ECHO_T='	';;
466  esac;;
467*)
468  ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473  rm -f conf$$.dir/conf$$.file
474else
475  rm -f conf$$.dir
476  mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479  if ln -s conf$$.file conf$$ 2>/dev/null; then
480    as_ln_s='ln -s'
481    # ... but there are two gotchas:
482    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484    # In both cases, we have to default to `cp -p'.
485    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486      as_ln_s='cp -p'
487  elif ln conf$$.file conf$$ 2>/dev/null; then
488    as_ln_s=ln
489  else
490    as_ln_s='cp -p'
491  fi
492else
493  as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499  as_mkdir_p='mkdir -p "$as_dir"'
500else
501  test -d ./-p && rmdir ./-p
502  as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506  as_test_x='test -x'
507else
508  if ls -dL / >/dev/null 2>&1; then
509    as_ls_L_option=L
510  else
511    as_ls_L_option=
512  fi
513  as_test_x='
514    eval sh -c '\''
515      if test -d "$1"; then
516	test -d "$1/.";
517      else
518	case $1 in #(
519	-*)set "./$1";;
520	esac;
521	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522	???[sx]*):;;*)false;;esac;fi
523    '\'' sh
524  '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='Intel MIC Offload Plugin'
558PACKAGE_TARNAME='libgomp-plugin-intelmic'
559PACKAGE_VERSION='1.0'
560PACKAGE_STRING='Intel MIC Offload Plugin 1.0'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
564# Factoring default headers for most tests.
565ac_includes_default="\
566#include <stdio.h>
567#ifdef HAVE_SYS_TYPES_H
568# include <sys/types.h>
569#endif
570#ifdef HAVE_SYS_STAT_H
571# include <sys/stat.h>
572#endif
573#ifdef STDC_HEADERS
574# include <stdlib.h>
575# include <stddef.h>
576#else
577# ifdef HAVE_STDLIB_H
578#  include <stdlib.h>
579# endif
580#endif
581#ifdef HAVE_STRING_H
582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583#  include <memory.h>
584# endif
585# include <string.h>
586#endif
587#ifdef HAVE_STRINGS_H
588# include <strings.h>
589#endif
590#ifdef HAVE_INTTYPES_H
591# include <inttypes.h>
592#endif
593#ifdef HAVE_STDINT_H
594# include <stdint.h>
595#endif
596#ifdef HAVE_UNISTD_H
597# include <unistd.h>
598#endif"
599
600ac_subst_vars='am__EXEEXT_FALSE
601am__EXEEXT_TRUE
602LTLIBOBJS
603LIBOBJS
604toolexeclibdir
605toolexecdir
606CXXCPP
607CPP
608OTOOL64
609OTOOL
610LIPO
611NMEDIT
612DSYMUTIL
613RANLIB
614AR
615OBJDUMP
616LN_S
617NM
618ac_ct_DUMPBIN
619DUMPBIN
620LD
621FGREP
622EGREP
623GREP
624SED
625LIBTOOL
626accel_target
627accel_search_dir
628PLUGIN_HOST_FALSE
629PLUGIN_HOST_TRUE
630multi_basedir
631am__fastdepCXX_FALSE
632am__fastdepCXX_TRUE
633CXXDEPMODE
634ac_ct_CXX
635CXXFLAGS
636CXX
637am__fastdepCC_FALSE
638am__fastdepCC_TRUE
639CCDEPMODE
640AMDEPBACKSLASH
641AMDEP_FALSE
642AMDEP_TRUE
643am__quote
644am__include
645DEPDIR
646OBJEXT
647EXEEXT
648ac_ct_CC
649CPPFLAGS
650LDFLAGS
651CFLAGS
652CC
653MAINT
654MAINTAINER_MODE_FALSE
655MAINTAINER_MODE_TRUE
656am__untar
657am__tar
658AMTAR
659am__leading_dot
660SET_MAKE
661AWK
662mkdir_p
663MKDIR_P
664INSTALL_STRIP_PROGRAM
665STRIP
666install_sh
667MAKEINFO
668AUTOHEADER
669AUTOMAKE
670AUTOCONF
671ACLOCAL
672VERSION
673PACKAGE
674CYGPATH_W
675am__isrc
676INSTALL_DATA
677INSTALL_SCRIPT
678INSTALL_PROGRAM
679target_os
680target_vendor
681target_cpu
682target
683host_os
684host_vendor
685host_cpu
686host
687build_os
688build_vendor
689build_cpu
690build
691target_alias
692host_alias
693build_alias
694LIBS
695ECHO_T
696ECHO_N
697ECHO_C
698DEFS
699mandir
700localedir
701libdir
702psdir
703pdfdir
704dvidir
705htmldir
706infodir
707docdir
708oldincludedir
709includedir
710localstatedir
711sharedstatedir
712sysconfdir
713datadir
714datarootdir
715libexecdir
716sbindir
717bindir
718program_transform_name
719prefix
720exec_prefix
721PACKAGE_URL
722PACKAGE_BUGREPORT
723PACKAGE_STRING
724PACKAGE_VERSION
725PACKAGE_TARNAME
726PACKAGE_NAME
727PATH_SEPARATOR
728SHELL'
729ac_subst_files=''
730ac_user_opts='
731enable_option_checking
732enable_maintainer_mode
733enable_dependency_tracking
734enable_multilib
735enable_version_specific_runtime_libs
736enable_shared
737enable_static
738with_pic
739enable_fast_install
740with_gnu_ld
741enable_libtool_lock
742'
743      ac_precious_vars='build_alias
744host_alias
745target_alias
746CC
747CFLAGS
748LDFLAGS
749LIBS
750CPPFLAGS
751CXX
752CXXFLAGS
753CCC
754CPP
755CXXCPP'
756
757
758# Initialize some variables set by options.
759ac_init_help=
760ac_init_version=false
761ac_unrecognized_opts=
762ac_unrecognized_sep=
763# The variables have the same names as the options, with
764# dashes changed to underlines.
765cache_file=/dev/null
766exec_prefix=NONE
767no_create=
768no_recursion=
769prefix=NONE
770program_prefix=NONE
771program_suffix=NONE
772program_transform_name=s,x,x,
773silent=
774site=
775srcdir=
776verbose=
777x_includes=NONE
778x_libraries=NONE
779
780# Installation directory options.
781# These are left unexpanded so users can "make install exec_prefix=/foo"
782# and all the variables that are supposed to be based on exec_prefix
783# by default will actually change.
784# Use braces instead of parens because sh, perl, etc. also accept them.
785# (The list follows the same order as the GNU Coding Standards.)
786bindir='${exec_prefix}/bin'
787sbindir='${exec_prefix}/sbin'
788libexecdir='${exec_prefix}/libexec'
789datarootdir='${prefix}/share'
790datadir='${datarootdir}'
791sysconfdir='${prefix}/etc'
792sharedstatedir='${prefix}/com'
793localstatedir='${prefix}/var'
794includedir='${prefix}/include'
795oldincludedir='/usr/include'
796docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
797infodir='${datarootdir}/info'
798htmldir='${docdir}'
799dvidir='${docdir}'
800pdfdir='${docdir}'
801psdir='${docdir}'
802libdir='${exec_prefix}/lib'
803localedir='${datarootdir}/locale'
804mandir='${datarootdir}/man'
805
806ac_prev=
807ac_dashdash=
808for ac_option
809do
810  # If the previous option needs an argument, assign it.
811  if test -n "$ac_prev"; then
812    eval $ac_prev=\$ac_option
813    ac_prev=
814    continue
815  fi
816
817  case $ac_option in
818  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819  *)	ac_optarg=yes ;;
820  esac
821
822  # Accept the important Cygnus configure options, so we can diagnose typos.
823
824  case $ac_dashdash$ac_option in
825  --)
826    ac_dashdash=yes ;;
827
828  -bindir | --bindir | --bindi | --bind | --bin | --bi)
829    ac_prev=bindir ;;
830  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831    bindir=$ac_optarg ;;
832
833  -build | --build | --buil | --bui | --bu)
834    ac_prev=build_alias ;;
835  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
836    build_alias=$ac_optarg ;;
837
838  -cache-file | --cache-file | --cache-fil | --cache-fi \
839  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
840    ac_prev=cache_file ;;
841  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
842  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
843    cache_file=$ac_optarg ;;
844
845  --config-cache | -C)
846    cache_file=config.cache ;;
847
848  -datadir | --datadir | --datadi | --datad)
849    ac_prev=datadir ;;
850  -datadir=* | --datadir=* | --datadi=* | --datad=*)
851    datadir=$ac_optarg ;;
852
853  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
854  | --dataroo | --dataro | --datar)
855    ac_prev=datarootdir ;;
856  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
857  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
858    datarootdir=$ac_optarg ;;
859
860  -disable-* | --disable-*)
861    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862    # Reject names that are not valid shell variable names.
863    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864      as_fn_error "invalid feature name: $ac_useropt"
865    ac_useropt_orig=$ac_useropt
866    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867    case $ac_user_opts in
868      *"
869"enable_$ac_useropt"
870"*) ;;
871      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872	 ac_unrecognized_sep=', ';;
873    esac
874    eval enable_$ac_useropt=no ;;
875
876  -docdir | --docdir | --docdi | --doc | --do)
877    ac_prev=docdir ;;
878  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879    docdir=$ac_optarg ;;
880
881  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
882    ac_prev=dvidir ;;
883  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884    dvidir=$ac_optarg ;;
885
886  -enable-* | --enable-*)
887    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888    # Reject names that are not valid shell variable names.
889    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890      as_fn_error "invalid feature name: $ac_useropt"
891    ac_useropt_orig=$ac_useropt
892    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893    case $ac_user_opts in
894      *"
895"enable_$ac_useropt"
896"*) ;;
897      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898	 ac_unrecognized_sep=', ';;
899    esac
900    eval enable_$ac_useropt=\$ac_optarg ;;
901
902  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904  | --exec | --exe | --ex)
905    ac_prev=exec_prefix ;;
906  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908  | --exec=* | --exe=* | --ex=*)
909    exec_prefix=$ac_optarg ;;
910
911  -gas | --gas | --ga | --g)
912    # Obsolete; use --with-gas.
913    with_gas=yes ;;
914
915  -help | --help | --hel | --he | -h)
916    ac_init_help=long ;;
917  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918    ac_init_help=recursive ;;
919  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920    ac_init_help=short ;;
921
922  -host | --host | --hos | --ho)
923    ac_prev=host_alias ;;
924  -host=* | --host=* | --hos=* | --ho=*)
925    host_alias=$ac_optarg ;;
926
927  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928    ac_prev=htmldir ;;
929  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930  | --ht=*)
931    htmldir=$ac_optarg ;;
932
933  -includedir | --includedir | --includedi | --included | --include \
934  | --includ | --inclu | --incl | --inc)
935    ac_prev=includedir ;;
936  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937  | --includ=* | --inclu=* | --incl=* | --inc=*)
938    includedir=$ac_optarg ;;
939
940  -infodir | --infodir | --infodi | --infod | --info | --inf)
941    ac_prev=infodir ;;
942  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943    infodir=$ac_optarg ;;
944
945  -libdir | --libdir | --libdi | --libd)
946    ac_prev=libdir ;;
947  -libdir=* | --libdir=* | --libdi=* | --libd=*)
948    libdir=$ac_optarg ;;
949
950  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951  | --libexe | --libex | --libe)
952    ac_prev=libexecdir ;;
953  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954  | --libexe=* | --libex=* | --libe=*)
955    libexecdir=$ac_optarg ;;
956
957  -localedir | --localedir | --localedi | --localed | --locale)
958    ac_prev=localedir ;;
959  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960    localedir=$ac_optarg ;;
961
962  -localstatedir | --localstatedir | --localstatedi | --localstated \
963  | --localstate | --localstat | --localsta | --localst | --locals)
964    ac_prev=localstatedir ;;
965  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967    localstatedir=$ac_optarg ;;
968
969  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970    ac_prev=mandir ;;
971  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972    mandir=$ac_optarg ;;
973
974  -nfp | --nfp | --nf)
975    # Obsolete; use --without-fp.
976    with_fp=no ;;
977
978  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979  | --no-cr | --no-c | -n)
980    no_create=yes ;;
981
982  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984    no_recursion=yes ;;
985
986  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988  | --oldin | --oldi | --old | --ol | --o)
989    ac_prev=oldincludedir ;;
990  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993    oldincludedir=$ac_optarg ;;
994
995  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996    ac_prev=prefix ;;
997  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998    prefix=$ac_optarg ;;
999
1000  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001  | --program-pre | --program-pr | --program-p)
1002    ac_prev=program_prefix ;;
1003  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005    program_prefix=$ac_optarg ;;
1006
1007  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008  | --program-suf | --program-su | --program-s)
1009    ac_prev=program_suffix ;;
1010  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012    program_suffix=$ac_optarg ;;
1013
1014  -program-transform-name | --program-transform-name \
1015  | --program-transform-nam | --program-transform-na \
1016  | --program-transform-n | --program-transform- \
1017  | --program-transform | --program-transfor \
1018  | --program-transfo | --program-transf \
1019  | --program-trans | --program-tran \
1020  | --progr-tra | --program-tr | --program-t)
1021    ac_prev=program_transform_name ;;
1022  -program-transform-name=* | --program-transform-name=* \
1023  | --program-transform-nam=* | --program-transform-na=* \
1024  | --program-transform-n=* | --program-transform-=* \
1025  | --program-transform=* | --program-transfor=* \
1026  | --program-transfo=* | --program-transf=* \
1027  | --program-trans=* | --program-tran=* \
1028  | --progr-tra=* | --program-tr=* | --program-t=*)
1029    program_transform_name=$ac_optarg ;;
1030
1031  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032    ac_prev=pdfdir ;;
1033  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034    pdfdir=$ac_optarg ;;
1035
1036  -psdir | --psdir | --psdi | --psd | --ps)
1037    ac_prev=psdir ;;
1038  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039    psdir=$ac_optarg ;;
1040
1041  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042  | -silent | --silent | --silen | --sile | --sil)
1043    silent=yes ;;
1044
1045  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046    ac_prev=sbindir ;;
1047  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048  | --sbi=* | --sb=*)
1049    sbindir=$ac_optarg ;;
1050
1051  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053  | --sharedst | --shareds | --shared | --share | --shar \
1054  | --sha | --sh)
1055    ac_prev=sharedstatedir ;;
1056  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059  | --sha=* | --sh=*)
1060    sharedstatedir=$ac_optarg ;;
1061
1062  -site | --site | --sit)
1063    ac_prev=site ;;
1064  -site=* | --site=* | --sit=*)
1065    site=$ac_optarg ;;
1066
1067  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068    ac_prev=srcdir ;;
1069  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070    srcdir=$ac_optarg ;;
1071
1072  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073  | --syscon | --sysco | --sysc | --sys | --sy)
1074    ac_prev=sysconfdir ;;
1075  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077    sysconfdir=$ac_optarg ;;
1078
1079  -target | --target | --targe | --targ | --tar | --ta | --t)
1080    ac_prev=target_alias ;;
1081  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082    target_alias=$ac_optarg ;;
1083
1084  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085    verbose=yes ;;
1086
1087  -version | --version | --versio | --versi | --vers | -V)
1088    ac_init_version=: ;;
1089
1090  -with-* | --with-*)
1091    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092    # Reject names that are not valid shell variable names.
1093    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094      as_fn_error "invalid package name: $ac_useropt"
1095    ac_useropt_orig=$ac_useropt
1096    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097    case $ac_user_opts in
1098      *"
1099"with_$ac_useropt"
1100"*) ;;
1101      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102	 ac_unrecognized_sep=', ';;
1103    esac
1104    eval with_$ac_useropt=\$ac_optarg ;;
1105
1106  -without-* | --without-*)
1107    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108    # Reject names that are not valid shell variable names.
1109    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110      as_fn_error "invalid package name: $ac_useropt"
1111    ac_useropt_orig=$ac_useropt
1112    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113    case $ac_user_opts in
1114      *"
1115"with_$ac_useropt"
1116"*) ;;
1117      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1118	 ac_unrecognized_sep=', ';;
1119    esac
1120    eval with_$ac_useropt=no ;;
1121
1122  --x)
1123    # Obsolete; use --with-x.
1124    with_x=yes ;;
1125
1126  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127  | --x-incl | --x-inc | --x-in | --x-i)
1128    ac_prev=x_includes ;;
1129  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1131    x_includes=$ac_optarg ;;
1132
1133  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135    ac_prev=x_libraries ;;
1136  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1138    x_libraries=$ac_optarg ;;
1139
1140  -*) as_fn_error "unrecognized option: \`$ac_option'
1141Try \`$0 --help' for more information."
1142    ;;
1143
1144  *=*)
1145    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146    # Reject names that are not valid shell variable names.
1147    case $ac_envvar in #(
1148      '' | [0-9]* | *[!_$as_cr_alnum]* )
1149      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1150    esac
1151    eval $ac_envvar=\$ac_optarg
1152    export $ac_envvar ;;
1153
1154  *)
1155    # FIXME: should be removed in autoconf 3.0.
1156    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1160    ;;
1161
1162  esac
1163done
1164
1165if test -n "$ac_prev"; then
1166  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167  as_fn_error "missing argument to $ac_option"
1168fi
1169
1170if test -n "$ac_unrecognized_opts"; then
1171  case $enable_option_checking in
1172    no) ;;
1173    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1174    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1175  esac
1176fi
1177
1178# Check all directory arguments for consistency.
1179for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180		datadir sysconfdir sharedstatedir localstatedir includedir \
1181		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182		libdir localedir mandir
1183do
1184  eval ac_val=\$$ac_var
1185  # Remove trailing slashes.
1186  case $ac_val in
1187    */ )
1188      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1189      eval $ac_var=\$ac_val;;
1190  esac
1191  # Be sure to have absolute directory names.
1192  case $ac_val in
1193    [\\/$]* | ?:[\\/]* )  continue;;
1194    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1195  esac
1196  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1197done
1198
1199# There might be people who depend on the old broken behavior: `$host'
1200# used to hold the argument of --host etc.
1201# FIXME: To remove some day.
1202build=$build_alias
1203host=$host_alias
1204target=$target_alias
1205
1206# FIXME: To remove some day.
1207if test "x$host_alias" != x; then
1208  if test "x$build_alias" = x; then
1209    cross_compiling=maybe
1210    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1211    If a cross compiler is detected then cross compile mode will be used." >&2
1212  elif test "x$build_alias" != "x$host_alias"; then
1213    cross_compiling=yes
1214  fi
1215fi
1216
1217ac_tool_prefix=
1218test -n "$host_alias" && ac_tool_prefix=$host_alias-
1219
1220test "$silent" = yes && exec 6>/dev/null
1221
1222
1223ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224ac_ls_di=`ls -di .` &&
1225ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226  as_fn_error "working directory cannot be determined"
1227test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228  as_fn_error "pwd does not report name of working directory"
1229
1230
1231# Find the source files, if location was not specified.
1232if test -z "$srcdir"; then
1233  ac_srcdir_defaulted=yes
1234  # Try the directory containing this script, then the parent directory.
1235  ac_confdir=`$as_dirname -- "$as_myself" ||
1236$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1237	 X"$as_myself" : 'X\(//\)[^/]' \| \
1238	 X"$as_myself" : 'X\(//\)$' \| \
1239	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1240$as_echo X"$as_myself" |
1241    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1242	    s//\1/
1243	    q
1244	  }
1245	  /^X\(\/\/\)[^/].*/{
1246	    s//\1/
1247	    q
1248	  }
1249	  /^X\(\/\/\)$/{
1250	    s//\1/
1251	    q
1252	  }
1253	  /^X\(\/\).*/{
1254	    s//\1/
1255	    q
1256	  }
1257	  s/.*/./; q'`
1258  srcdir=$ac_confdir
1259  if test ! -r "$srcdir/$ac_unique_file"; then
1260    srcdir=..
1261  fi
1262else
1263  ac_srcdir_defaulted=no
1264fi
1265if test ! -r "$srcdir/$ac_unique_file"; then
1266  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1267  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1268fi
1269ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1270ac_abs_confdir=`(
1271	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1272	pwd)`
1273# When building in place, set srcdir=.
1274if test "$ac_abs_confdir" = "$ac_pwd"; then
1275  srcdir=.
1276fi
1277# Remove unnecessary trailing slashes from srcdir.
1278# Double slashes in file names in object file debugging info
1279# mess up M-x gdb in Emacs.
1280case $srcdir in
1281*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1282esac
1283for ac_var in $ac_precious_vars; do
1284  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285  eval ac_env_${ac_var}_value=\$${ac_var}
1286  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1288done
1289
1290#
1291# Report the --help message.
1292#
1293if test "$ac_init_help" = "long"; then
1294  # Omit some internal or obsolete options to make the list less imposing.
1295  # This message is too long to be a string in the A/UX 3.1 sh.
1296  cat <<_ACEOF
1297\`configure' configures Intel MIC Offload Plugin 1.0 to adapt to many kinds of systems.
1298
1299Usage: $0 [OPTION]... [VAR=VALUE]...
1300
1301To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302VAR=VALUE.  See below for descriptions of some of the useful variables.
1303
1304Defaults for the options are specified in brackets.
1305
1306Configuration:
1307  -h, --help              display this help and exit
1308      --help=short        display options specific to this package
1309      --help=recursive    display the short help of all the included packages
1310  -V, --version           display version information and exit
1311  -q, --quiet, --silent   do not print \`checking...' messages
1312      --cache-file=FILE   cache test results in FILE [disabled]
1313  -C, --config-cache      alias for \`--cache-file=config.cache'
1314  -n, --no-create         do not create output files
1315      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1316
1317Installation directories:
1318  --prefix=PREFIX         install architecture-independent files in PREFIX
1319                          [$ac_default_prefix]
1320  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1321                          [PREFIX]
1322
1323By default, \`make install' will install all the files in
1324\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1325an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326for instance \`--prefix=\$HOME'.
1327
1328For better control, use the options below.
1329
1330Fine tuning of the installation directories:
1331  --bindir=DIR            user executables [EPREFIX/bin]
1332  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1333  --libexecdir=DIR        program executables [EPREFIX/libexec]
1334  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1335  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1336  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1337  --libdir=DIR            object code libraries [EPREFIX/lib]
1338  --includedir=DIR        C header files [PREFIX/include]
1339  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1340  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1341  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1342  --infodir=DIR           info documentation [DATAROOTDIR/info]
1343  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1344  --mandir=DIR            man documentation [DATAROOTDIR/man]
1345  --docdir=DIR            documentation root
1346                          [DATAROOTDIR/doc/libgomp-plugin-intelmic]
1347  --htmldir=DIR           html documentation [DOCDIR]
1348  --dvidir=DIR            dvi documentation [DOCDIR]
1349  --pdfdir=DIR            pdf documentation [DOCDIR]
1350  --psdir=DIR             ps documentation [DOCDIR]
1351_ACEOF
1352
1353  cat <<\_ACEOF
1354
1355Program names:
1356  --program-prefix=PREFIX            prepend PREFIX to installed program names
1357  --program-suffix=SUFFIX            append SUFFIX to installed program names
1358  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1359
1360System types:
1361  --build=BUILD     configure for building on BUILD [guessed]
1362  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1363  --target=TARGET   configure for building compilers for TARGET [HOST]
1364_ACEOF
1365fi
1366
1367if test -n "$ac_init_help"; then
1368  case $ac_init_help in
1369     short | recursive ) echo "Configuration of Intel MIC Offload Plugin 1.0:";;
1370   esac
1371  cat <<\_ACEOF
1372
1373Optional Features:
1374  --disable-option-checking  ignore unrecognized --enable/--with options
1375  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1376  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1377  --enable-maintainer-mode  enable make rules and dependencies not useful
1378			  (and sometimes confusing) to the casual installer
1379  --disable-dependency-tracking  speeds up one-time build
1380  --enable-dependency-tracking   do not reject slow dependency extractors
1381  --enable-multilib       build many library versions (default)
1382  --enable-version-specific-runtime-libs
1383                          Specify that runtime libraries should be installed
1384                          in a compiler-specific directory
1385  --enable-shared[=PKGS]  build shared libraries [default=yes]
1386  --enable-static[=PKGS]  build static libraries [default=yes]
1387  --enable-fast-install[=PKGS]
1388                          optimize for fast installation [default=yes]
1389  --disable-libtool-lock  avoid locking (might break parallel builds)
1390
1391Optional Packages:
1392  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1393  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1394  --with-pic              try to use only PIC/non-PIC objects [default=use
1395                          both]
1396  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1397
1398Some influential environment variables:
1399  CC          C compiler command
1400  CFLAGS      C compiler flags
1401  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1402              nonstandard directory <lib dir>
1403  LIBS        libraries to pass to the linker, e.g. -l<library>
1404  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1405              you have headers in a nonstandard directory <include dir>
1406  CXX         C++ compiler command
1407  CXXFLAGS    C++ compiler flags
1408  CPP         C preprocessor
1409  CXXCPP      C++ preprocessor
1410
1411Use these variables to override the choices made by `configure' or to help
1412it to find libraries and programs with nonstandard names/locations.
1413
1414Report bugs to the package provider.
1415_ACEOF
1416ac_status=$?
1417fi
1418
1419if test "$ac_init_help" = "recursive"; then
1420  # If there are subdirs, report their specific --help.
1421  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1422    test -d "$ac_dir" ||
1423      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1424      continue
1425    ac_builddir=.
1426
1427case "$ac_dir" in
1428.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429*)
1430  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1431  # A ".." for each directory in $ac_dir_suffix.
1432  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1433  case $ac_top_builddir_sub in
1434  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436  esac ;;
1437esac
1438ac_abs_top_builddir=$ac_pwd
1439ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440# for backward compatibility:
1441ac_top_builddir=$ac_top_build_prefix
1442
1443case $srcdir in
1444  .)  # We are building in place.
1445    ac_srcdir=.
1446    ac_top_srcdir=$ac_top_builddir_sub
1447    ac_abs_top_srcdir=$ac_pwd ;;
1448  [\\/]* | ?:[\\/]* )  # Absolute name.
1449    ac_srcdir=$srcdir$ac_dir_suffix;
1450    ac_top_srcdir=$srcdir
1451    ac_abs_top_srcdir=$srcdir ;;
1452  *) # Relative name.
1453    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1454    ac_top_srcdir=$ac_top_build_prefix$srcdir
1455    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456esac
1457ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458
1459    cd "$ac_dir" || { ac_status=$?; continue; }
1460    # Check for guested configure.
1461    if test -f "$ac_srcdir/configure.gnu"; then
1462      echo &&
1463      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464    elif test -f "$ac_srcdir/configure"; then
1465      echo &&
1466      $SHELL "$ac_srcdir/configure" --help=recursive
1467    else
1468      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469    fi || ac_status=$?
1470    cd "$ac_pwd" || { ac_status=$?; break; }
1471  done
1472fi
1473
1474test -n "$ac_init_help" && exit $ac_status
1475if $ac_init_version; then
1476  cat <<\_ACEOF
1477Intel MIC Offload Plugin configure 1.0
1478generated by GNU Autoconf 2.64
1479
1480Copyright (C) 2009 Free Software Foundation, Inc.
1481This configure script is free software; the Free Software Foundation
1482gives unlimited permission to copy, distribute and modify it.
1483_ACEOF
1484  exit
1485fi
1486
1487## ------------------------ ##
1488## Autoconf initialization. ##
1489## ------------------------ ##
1490
1491# ac_fn_c_try_compile LINENO
1492# --------------------------
1493# Try to compile conftest.$ac_ext, and return whether this succeeded.
1494ac_fn_c_try_compile ()
1495{
1496  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497  rm -f conftest.$ac_objext
1498  if { { ac_try="$ac_compile"
1499case "(($ac_try" in
1500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1501  *) ac_try_echo=$ac_try;;
1502esac
1503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1504$as_echo "$ac_try_echo"; } >&5
1505  (eval "$ac_compile") 2>conftest.err
1506  ac_status=$?
1507  if test -s conftest.err; then
1508    grep -v '^ *+' conftest.err >conftest.er1
1509    cat conftest.er1 >&5
1510    mv -f conftest.er1 conftest.err
1511  fi
1512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1513  test $ac_status = 0; } && {
1514	 test -z "$ac_c_werror_flag" ||
1515	 test ! -s conftest.err
1516       } && test -s conftest.$ac_objext; then :
1517  ac_retval=0
1518else
1519  $as_echo "$as_me: failed program was:" >&5
1520sed 's/^/| /' conftest.$ac_ext >&5
1521
1522	ac_retval=1
1523fi
1524  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1525  return $ac_retval
1526
1527} # ac_fn_c_try_compile
1528
1529# ac_fn_cxx_try_compile LINENO
1530# ----------------------------
1531# Try to compile conftest.$ac_ext, and return whether this succeeded.
1532ac_fn_cxx_try_compile ()
1533{
1534  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535  rm -f conftest.$ac_objext
1536  if { { ac_try="$ac_compile"
1537case "(($ac_try" in
1538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539  *) ac_try_echo=$ac_try;;
1540esac
1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542$as_echo "$ac_try_echo"; } >&5
1543  (eval "$ac_compile") 2>conftest.err
1544  ac_status=$?
1545  if test -s conftest.err; then
1546    grep -v '^ *+' conftest.err >conftest.er1
1547    cat conftest.er1 >&5
1548    mv -f conftest.er1 conftest.err
1549  fi
1550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551  test $ac_status = 0; } && {
1552	 test -z "$ac_cxx_werror_flag" ||
1553	 test ! -s conftest.err
1554       } && test -s conftest.$ac_objext; then :
1555  ac_retval=0
1556else
1557  $as_echo "$as_me: failed program was:" >&5
1558sed 's/^/| /' conftest.$ac_ext >&5
1559
1560	ac_retval=1
1561fi
1562  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1563  return $ac_retval
1564
1565} # ac_fn_cxx_try_compile
1566
1567# ac_fn_c_try_link LINENO
1568# -----------------------
1569# Try to link conftest.$ac_ext, and return whether this succeeded.
1570ac_fn_c_try_link ()
1571{
1572  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573  rm -f conftest.$ac_objext conftest$ac_exeext
1574  if { { ac_try="$ac_link"
1575case "(($ac_try" in
1576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577  *) ac_try_echo=$ac_try;;
1578esac
1579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580$as_echo "$ac_try_echo"; } >&5
1581  (eval "$ac_link") 2>conftest.err
1582  ac_status=$?
1583  if test -s conftest.err; then
1584    grep -v '^ *+' conftest.err >conftest.er1
1585    cat conftest.er1 >&5
1586    mv -f conftest.er1 conftest.err
1587  fi
1588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589  test $ac_status = 0; } && {
1590	 test -z "$ac_c_werror_flag" ||
1591	 test ! -s conftest.err
1592       } && test -s conftest$ac_exeext && {
1593	 test "$cross_compiling" = yes ||
1594	 $as_test_x conftest$ac_exeext
1595       }; then :
1596  ac_retval=0
1597else
1598  $as_echo "$as_me: failed program was:" >&5
1599sed 's/^/| /' conftest.$ac_ext >&5
1600
1601	ac_retval=1
1602fi
1603  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1604  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1605  # interfere with the next link command; also delete a directory that is
1606  # left behind by Apple's compiler.  We do this before executing the actions.
1607  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1608  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1609  return $ac_retval
1610
1611} # ac_fn_c_try_link
1612
1613# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1614# -------------------------------------------------------
1615# Tests whether HEADER exists and can be compiled using the include files in
1616# INCLUDES, setting the cache variable VAR accordingly.
1617ac_fn_c_check_header_compile ()
1618{
1619  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1621$as_echo_n "checking for $2... " >&6; }
1622if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1623  $as_echo_n "(cached) " >&6
1624else
1625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626/* end confdefs.h.  */
1627$4
1628#include <$2>
1629_ACEOF
1630if ac_fn_c_try_compile "$LINENO"; then :
1631  eval "$3=yes"
1632else
1633  eval "$3=no"
1634fi
1635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636fi
1637eval ac_res=\$$3
1638	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639$as_echo "$ac_res" >&6; }
1640  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1641
1642} # ac_fn_c_check_header_compile
1643
1644# ac_fn_c_try_cpp LINENO
1645# ----------------------
1646# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1647ac_fn_c_try_cpp ()
1648{
1649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650  if { { ac_try="$ac_cpp conftest.$ac_ext"
1651case "(($ac_try" in
1652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653  *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1658  ac_status=$?
1659  if test -s conftest.err; then
1660    grep -v '^ *+' conftest.err >conftest.er1
1661    cat conftest.er1 >&5
1662    mv -f conftest.er1 conftest.err
1663  fi
1664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665  test $ac_status = 0; } >/dev/null && {
1666	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1667	 test ! -s conftest.err
1668       }; then :
1669  ac_retval=0
1670else
1671  $as_echo "$as_me: failed program was:" >&5
1672sed 's/^/| /' conftest.$ac_ext >&5
1673
1674    ac_retval=1
1675fi
1676  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677  return $ac_retval
1678
1679} # ac_fn_c_try_cpp
1680
1681# ac_fn_c_try_run LINENO
1682# ----------------------
1683# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1684# that executables *can* be run.
1685ac_fn_c_try_run ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  if { { ac_try="$ac_link"
1689case "(($ac_try" in
1690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691  *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695  (eval "$ac_link") 2>&5
1696  ac_status=$?
1697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1699  { { case "(($ac_try" in
1700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701  *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705  (eval "$ac_try") 2>&5
1706  ac_status=$?
1707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; }; }; then :
1709  ac_retval=0
1710else
1711  $as_echo "$as_me: program exited with status $ac_status" >&5
1712       $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715       ac_retval=$ac_status
1716fi
1717  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719  return $ac_retval
1720
1721} # ac_fn_c_try_run
1722
1723# ac_fn_c_check_func LINENO FUNC VAR
1724# ----------------------------------
1725# Tests whether FUNC exists, setting the cache variable VAR accordingly
1726ac_fn_c_check_func ()
1727{
1728  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730$as_echo_n "checking for $2... " >&6; }
1731if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1732  $as_echo_n "(cached) " >&6
1733else
1734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735/* end confdefs.h.  */
1736/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1737   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1738#define $2 innocuous_$2
1739
1740/* System header to define __stub macros and hopefully few prototypes,
1741    which can conflict with char $2 (); below.
1742    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1743    <limits.h> exists even on freestanding compilers.  */
1744
1745#ifdef __STDC__
1746# include <limits.h>
1747#else
1748# include <assert.h>
1749#endif
1750
1751#undef $2
1752
1753/* Override any GCC internal prototype to avoid an error.
1754   Use char because int might match the return type of a GCC
1755   builtin and then its argument prototype would still apply.  */
1756#ifdef __cplusplus
1757extern "C"
1758#endif
1759char $2 ();
1760/* The GNU C library defines this for functions which it implements
1761    to always fail with ENOSYS.  Some functions are actually named
1762    something starting with __ and the normal name is an alias.  */
1763#if defined __stub_$2 || defined __stub___$2
1764choke me
1765#endif
1766
1767int
1768main ()
1769{
1770return $2 ();
1771  ;
1772  return 0;
1773}
1774_ACEOF
1775if ac_fn_c_try_link "$LINENO"; then :
1776  eval "$3=yes"
1777else
1778  eval "$3=no"
1779fi
1780rm -f core conftest.err conftest.$ac_objext \
1781    conftest$ac_exeext conftest.$ac_ext
1782fi
1783eval ac_res=\$$3
1784	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785$as_echo "$ac_res" >&6; }
1786  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787
1788} # ac_fn_c_check_func
1789
1790# ac_fn_cxx_try_cpp LINENO
1791# ------------------------
1792# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1793ac_fn_cxx_try_cpp ()
1794{
1795  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796  if { { ac_try="$ac_cpp conftest.$ac_ext"
1797case "(($ac_try" in
1798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799  *) ac_try_echo=$ac_try;;
1800esac
1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802$as_echo "$ac_try_echo"; } >&5
1803  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1804  ac_status=$?
1805  if test -s conftest.err; then
1806    grep -v '^ *+' conftest.err >conftest.er1
1807    cat conftest.er1 >&5
1808    mv -f conftest.er1 conftest.err
1809  fi
1810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811  test $ac_status = 0; } >/dev/null && {
1812	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1813	 test ! -s conftest.err
1814       }; then :
1815  ac_retval=0
1816else
1817  $as_echo "$as_me: failed program was:" >&5
1818sed 's/^/| /' conftest.$ac_ext >&5
1819
1820    ac_retval=1
1821fi
1822  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823  return $ac_retval
1824
1825} # ac_fn_cxx_try_cpp
1826
1827# ac_fn_cxx_try_link LINENO
1828# -------------------------
1829# Try to link conftest.$ac_ext, and return whether this succeeded.
1830ac_fn_cxx_try_link ()
1831{
1832  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833  rm -f conftest.$ac_objext conftest$ac_exeext
1834  if { { ac_try="$ac_link"
1835case "(($ac_try" in
1836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837  *) ac_try_echo=$ac_try;;
1838esac
1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840$as_echo "$ac_try_echo"; } >&5
1841  (eval "$ac_link") 2>conftest.err
1842  ac_status=$?
1843  if test -s conftest.err; then
1844    grep -v '^ *+' conftest.err >conftest.er1
1845    cat conftest.er1 >&5
1846    mv -f conftest.er1 conftest.err
1847  fi
1848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849  test $ac_status = 0; } && {
1850	 test -z "$ac_cxx_werror_flag" ||
1851	 test ! -s conftest.err
1852       } && test -s conftest$ac_exeext && {
1853	 test "$cross_compiling" = yes ||
1854	 $as_test_x conftest$ac_exeext
1855       }; then :
1856  ac_retval=0
1857else
1858  $as_echo "$as_me: failed program was:" >&5
1859sed 's/^/| /' conftest.$ac_ext >&5
1860
1861	ac_retval=1
1862fi
1863  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865  # interfere with the next link command; also delete a directory that is
1866  # left behind by Apple's compiler.  We do this before executing the actions.
1867  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869  return $ac_retval
1870
1871} # ac_fn_cxx_try_link
1872cat >config.log <<_ACEOF
1873This file contains any messages produced by compilers while
1874running configure, to aid debugging if configure makes a mistake.
1875
1876It was created by Intel MIC Offload Plugin $as_me 1.0, which was
1877generated by GNU Autoconf 2.64.  Invocation command line was
1878
1879  $ $0 $@
1880
1881_ACEOF
1882exec 5>>config.log
1883{
1884cat <<_ASUNAME
1885## --------- ##
1886## Platform. ##
1887## --------- ##
1888
1889hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1890uname -m = `(uname -m) 2>/dev/null || echo unknown`
1891uname -r = `(uname -r) 2>/dev/null || echo unknown`
1892uname -s = `(uname -s) 2>/dev/null || echo unknown`
1893uname -v = `(uname -v) 2>/dev/null || echo unknown`
1894
1895/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1896/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1897
1898/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1899/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1900/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1901/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1902/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1903/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1904/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1905
1906_ASUNAME
1907
1908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909for as_dir in $PATH
1910do
1911  IFS=$as_save_IFS
1912  test -z "$as_dir" && as_dir=.
1913    $as_echo "PATH: $as_dir"
1914  done
1915IFS=$as_save_IFS
1916
1917} >&5
1918
1919cat >&5 <<_ACEOF
1920
1921
1922## ----------- ##
1923## Core tests. ##
1924## ----------- ##
1925
1926_ACEOF
1927
1928
1929# Keep a trace of the command line.
1930# Strip out --no-create and --no-recursion so they do not pile up.
1931# Strip out --silent because we don't want to record it for future runs.
1932# Also quote any args containing shell meta-characters.
1933# Make two passes to allow for proper duplicate-argument suppression.
1934ac_configure_args=
1935ac_configure_args0=
1936ac_configure_args1=
1937ac_must_keep_next=false
1938for ac_pass in 1 2
1939do
1940  for ac_arg
1941  do
1942    case $ac_arg in
1943    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1944    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1945    | -silent | --silent | --silen | --sile | --sil)
1946      continue ;;
1947    *\'*)
1948      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1949    esac
1950    case $ac_pass in
1951    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1952    2)
1953      as_fn_append ac_configure_args1 " '$ac_arg'"
1954      if test $ac_must_keep_next = true; then
1955	ac_must_keep_next=false # Got value, back to normal.
1956      else
1957	case $ac_arg in
1958	  *=* | --config-cache | -C | -disable-* | --disable-* \
1959	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1960	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1961	  | -with-* | --with-* | -without-* | --without-* | --x)
1962	    case "$ac_configure_args0 " in
1963	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1964	    esac
1965	    ;;
1966	  -* ) ac_must_keep_next=true ;;
1967	esac
1968      fi
1969      as_fn_append ac_configure_args " '$ac_arg'"
1970      ;;
1971    esac
1972  done
1973done
1974{ ac_configure_args0=; unset ac_configure_args0;}
1975{ ac_configure_args1=; unset ac_configure_args1;}
1976
1977# When interrupted or exit'd, cleanup temporary files, and complete
1978# config.log.  We remove comments because anyway the quotes in there
1979# would cause problems or look ugly.
1980# WARNING: Use '\'' to represent an apostrophe within the trap.
1981# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1982trap 'exit_status=$?
1983  # Save into config.log some information that might help in debugging.
1984  {
1985    echo
1986
1987    cat <<\_ASBOX
1988## ---------------- ##
1989## Cache variables. ##
1990## ---------------- ##
1991_ASBOX
1992    echo
1993    # The following way of writing the cache mishandles newlines in values,
1994(
1995  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1996    eval ac_val=\$$ac_var
1997    case $ac_val in #(
1998    *${as_nl}*)
1999      case $ac_var in #(
2000      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2001$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2002      esac
2003      case $ac_var in #(
2004      _ | IFS | as_nl) ;; #(
2005      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2006      *) { eval $ac_var=; unset $ac_var;} ;;
2007      esac ;;
2008    esac
2009  done
2010  (set) 2>&1 |
2011    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2012    *${as_nl}ac_space=\ *)
2013      sed -n \
2014	"s/'\''/'\''\\\\'\'''\''/g;
2015	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2016      ;; #(
2017    *)
2018      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2019      ;;
2020    esac |
2021    sort
2022)
2023    echo
2024
2025    cat <<\_ASBOX
2026## ----------------- ##
2027## Output variables. ##
2028## ----------------- ##
2029_ASBOX
2030    echo
2031    for ac_var in $ac_subst_vars
2032    do
2033      eval ac_val=\$$ac_var
2034      case $ac_val in
2035      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036      esac
2037      $as_echo "$ac_var='\''$ac_val'\''"
2038    done | sort
2039    echo
2040
2041    if test -n "$ac_subst_files"; then
2042      cat <<\_ASBOX
2043## ------------------- ##
2044## File substitutions. ##
2045## ------------------- ##
2046_ASBOX
2047      echo
2048      for ac_var in $ac_subst_files
2049      do
2050	eval ac_val=\$$ac_var
2051	case $ac_val in
2052	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2053	esac
2054	$as_echo "$ac_var='\''$ac_val'\''"
2055      done | sort
2056      echo
2057    fi
2058
2059    if test -s confdefs.h; then
2060      cat <<\_ASBOX
2061## ----------- ##
2062## confdefs.h. ##
2063## ----------- ##
2064_ASBOX
2065      echo
2066      cat confdefs.h
2067      echo
2068    fi
2069    test "$ac_signal" != 0 &&
2070      $as_echo "$as_me: caught signal $ac_signal"
2071    $as_echo "$as_me: exit $exit_status"
2072  } >&5
2073  rm -f core *.core core.conftest.* &&
2074    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2075    exit $exit_status
2076' 0
2077for ac_signal in 1 2 13 15; do
2078  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2079done
2080ac_signal=0
2081
2082# confdefs.h avoids OS command line length limits that DEFS can exceed.
2083rm -f -r conftest* confdefs.h
2084
2085$as_echo "/* confdefs.h */" > confdefs.h
2086
2087# Predefined preprocessor variables.
2088
2089cat >>confdefs.h <<_ACEOF
2090#define PACKAGE_NAME "$PACKAGE_NAME"
2091_ACEOF
2092
2093cat >>confdefs.h <<_ACEOF
2094#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2095_ACEOF
2096
2097cat >>confdefs.h <<_ACEOF
2098#define PACKAGE_VERSION "$PACKAGE_VERSION"
2099_ACEOF
2100
2101cat >>confdefs.h <<_ACEOF
2102#define PACKAGE_STRING "$PACKAGE_STRING"
2103_ACEOF
2104
2105cat >>confdefs.h <<_ACEOF
2106#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2107_ACEOF
2108
2109cat >>confdefs.h <<_ACEOF
2110#define PACKAGE_URL "$PACKAGE_URL"
2111_ACEOF
2112
2113
2114# Let the site file select an alternate cache file if it wants to.
2115# Prefer an explicitly selected file to automatically selected ones.
2116ac_site_file1=NONE
2117ac_site_file2=NONE
2118if test -n "$CONFIG_SITE"; then
2119  ac_site_file1=$CONFIG_SITE
2120elif test "x$prefix" != xNONE; then
2121  ac_site_file1=$prefix/share/config.site
2122  ac_site_file2=$prefix/etc/config.site
2123else
2124  ac_site_file1=$ac_default_prefix/share/config.site
2125  ac_site_file2=$ac_default_prefix/etc/config.site
2126fi
2127for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2128do
2129  test "x$ac_site_file" = xNONE && continue
2130  if test -r "$ac_site_file"; then
2131    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2132$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2133    sed 's/^/| /' "$ac_site_file" >&5
2134    . "$ac_site_file"
2135  fi
2136done
2137
2138if test -r "$cache_file"; then
2139  # Some versions of bash will fail to source /dev/null (special
2140  # files actually), so we avoid doing that.
2141  if test -f "$cache_file"; then
2142    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2143$as_echo "$as_me: loading cache $cache_file" >&6;}
2144    case $cache_file in
2145      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2146      *)                      . "./$cache_file";;
2147    esac
2148  fi
2149else
2150  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2151$as_echo "$as_me: creating cache $cache_file" >&6;}
2152  >$cache_file
2153fi
2154
2155# Check that the precious variables saved in the cache have kept the same
2156# value.
2157ac_cache_corrupted=false
2158for ac_var in $ac_precious_vars; do
2159  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2160  eval ac_new_set=\$ac_env_${ac_var}_set
2161  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2162  eval ac_new_val=\$ac_env_${ac_var}_value
2163  case $ac_old_set,$ac_new_set in
2164    set,)
2165      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2166$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2167      ac_cache_corrupted=: ;;
2168    ,set)
2169      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2170$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2171      ac_cache_corrupted=: ;;
2172    ,);;
2173    *)
2174      if test "x$ac_old_val" != "x$ac_new_val"; then
2175	# differences in whitespace do not lead to failure.
2176	ac_old_val_w=`echo x $ac_old_val`
2177	ac_new_val_w=`echo x $ac_new_val`
2178	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2179	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2180$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2181	  ac_cache_corrupted=:
2182	else
2183	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2184$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2185	  eval $ac_var=\$ac_old_val
2186	fi
2187	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2188$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2189	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2190$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2191      fi;;
2192  esac
2193  # Pass precious variables to config.status.
2194  if test "$ac_new_set" = set; then
2195    case $ac_new_val in
2196    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2197    *) ac_arg=$ac_var=$ac_new_val ;;
2198    esac
2199    case " $ac_configure_args " in
2200      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2201      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2202    esac
2203  fi
2204done
2205if $ac_cache_corrupted; then
2206  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2208  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2209$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2210  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2211fi
2212## -------------------- ##
2213## Main body of script. ##
2214## -------------------- ##
2215
2216ac_ext=c
2217ac_cpp='$CPP $CPPFLAGS'
2218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220ac_compiler_gnu=$ac_cv_c_compiler_gnu
2221
2222
2223
2224
2225
2226
2227ac_aux_dir=
2228for ac_dir in ../.. "$srcdir"/../..; do
2229  for ac_t in install-sh install.sh shtool; do
2230    if test -f "$ac_dir/$ac_t"; then
2231      ac_aux_dir=$ac_dir
2232      ac_install_sh="$ac_aux_dir/$ac_t -c"
2233      break 2
2234    fi
2235  done
2236done
2237if test -z "$ac_aux_dir"; then
2238  as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2239fi
2240
2241# These three variables are undocumented and unsupported,
2242# and are intended to be withdrawn in a future Autoconf release.
2243# They can cause serious problems if a builder's source tree is in a directory
2244# whose full name contains unusual characters.
2245ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2246ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2247ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2248
2249
2250
2251# Make sure we can run config.sub.
2252$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2253  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2254
2255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2256$as_echo_n "checking build system type... " >&6; }
2257if test "${ac_cv_build+set}" = set; then :
2258  $as_echo_n "(cached) " >&6
2259else
2260  ac_build_alias=$build_alias
2261test "x$ac_build_alias" = x &&
2262  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2263test "x$ac_build_alias" = x &&
2264  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2265ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2266  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2267
2268fi
2269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2270$as_echo "$ac_cv_build" >&6; }
2271case $ac_cv_build in
2272*-*-*) ;;
2273*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2274esac
2275build=$ac_cv_build
2276ac_save_IFS=$IFS; IFS='-'
2277set x $ac_cv_build
2278shift
2279build_cpu=$1
2280build_vendor=$2
2281shift; shift
2282# Remember, the first character of IFS is used to create $*,
2283# except with old shells:
2284build_os=$*
2285IFS=$ac_save_IFS
2286case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2287
2288
2289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2290$as_echo_n "checking host system type... " >&6; }
2291if test "${ac_cv_host+set}" = set; then :
2292  $as_echo_n "(cached) " >&6
2293else
2294  if test "x$host_alias" = x; then
2295  ac_cv_host=$ac_cv_build
2296else
2297  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2298    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2299fi
2300
2301fi
2302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2303$as_echo "$ac_cv_host" >&6; }
2304case $ac_cv_host in
2305*-*-*) ;;
2306*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2307esac
2308host=$ac_cv_host
2309ac_save_IFS=$IFS; IFS='-'
2310set x $ac_cv_host
2311shift
2312host_cpu=$1
2313host_vendor=$2
2314shift; shift
2315# Remember, the first character of IFS is used to create $*,
2316# except with old shells:
2317host_os=$*
2318IFS=$ac_save_IFS
2319case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2320
2321
2322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2323$as_echo_n "checking target system type... " >&6; }
2324if test "${ac_cv_target+set}" = set; then :
2325  $as_echo_n "(cached) " >&6
2326else
2327  if test "x$target_alias" = x; then
2328  ac_cv_target=$ac_cv_host
2329else
2330  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2331    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2332fi
2333
2334fi
2335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2336$as_echo "$ac_cv_target" >&6; }
2337case $ac_cv_target in
2338*-*-*) ;;
2339*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2340esac
2341target=$ac_cv_target
2342ac_save_IFS=$IFS; IFS='-'
2343set x $ac_cv_target
2344shift
2345target_cpu=$1
2346target_vendor=$2
2347shift; shift
2348# Remember, the first character of IFS is used to create $*,
2349# except with old shells:
2350target_os=$*
2351IFS=$ac_save_IFS
2352case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2353
2354
2355# The aliases save the names the user supplied, while $host etc.
2356# will get canonicalized.
2357test -n "$target_alias" &&
2358  test "$program_prefix$program_suffix$program_transform_name" = \
2359    NONENONEs,x,x, &&
2360  program_prefix=${target_alias}-
2361
2362target_alias=${target_alias-$host_alias}
2363
2364
2365am__api_version='1.11'
2366
2367# Find a good install program.  We prefer a C program (faster),
2368# so one script is as good as another.  But avoid the broken or
2369# incompatible versions:
2370# SysV /etc/install, /usr/sbin/install
2371# SunOS /usr/etc/install
2372# IRIX /sbin/install
2373# AIX /bin/install
2374# AmigaOS /C/install, which installs bootblocks on floppy discs
2375# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2376# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2377# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2378# OS/2's system install, which has a completely different semantic
2379# ./install, which can be erroneously created by make from ./install.sh.
2380# Reject install programs that cannot install multiple files.
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2382$as_echo_n "checking for a BSD-compatible install... " >&6; }
2383if test -z "$INSTALL"; then
2384if test "${ac_cv_path_install+set}" = set; then :
2385  $as_echo_n "(cached) " >&6
2386else
2387  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388for as_dir in $PATH
2389do
2390  IFS=$as_save_IFS
2391  test -z "$as_dir" && as_dir=.
2392    # Account for people who put trailing slashes in PATH elements.
2393case $as_dir/ in #((
2394  ./ | .// | /[cC]/* | \
2395  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2396  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2397  /usr/ucb/* ) ;;
2398  *)
2399    # OSF1 and SCO ODT 3.0 have their own names for install.
2400    # Don't use installbsd from OSF since it installs stuff as root
2401    # by default.
2402    for ac_prog in ginstall scoinst install; do
2403      for ac_exec_ext in '' $ac_executable_extensions; do
2404	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2405	  if test $ac_prog = install &&
2406	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2407	    # AIX install.  It has an incompatible calling convention.
2408	    :
2409	  elif test $ac_prog = install &&
2410	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2411	    # program-specific install script used by HP pwplus--don't use.
2412	    :
2413	  else
2414	    rm -rf conftest.one conftest.two conftest.dir
2415	    echo one > conftest.one
2416	    echo two > conftest.two
2417	    mkdir conftest.dir
2418	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2419	      test -s conftest.one && test -s conftest.two &&
2420	      test -s conftest.dir/conftest.one &&
2421	      test -s conftest.dir/conftest.two
2422	    then
2423	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2424	      break 3
2425	    fi
2426	  fi
2427	fi
2428      done
2429    done
2430    ;;
2431esac
2432
2433  done
2434IFS=$as_save_IFS
2435
2436rm -rf conftest.one conftest.two conftest.dir
2437
2438fi
2439  if test "${ac_cv_path_install+set}" = set; then
2440    INSTALL=$ac_cv_path_install
2441  else
2442    # As a last resort, use the slow shell script.  Don't cache a
2443    # value for INSTALL within a source directory, because that will
2444    # break other packages using the cache if that directory is
2445    # removed, or if the value is a relative name.
2446    INSTALL=$ac_install_sh
2447  fi
2448fi
2449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2450$as_echo "$INSTALL" >&6; }
2451
2452# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2453# It thinks the first close brace ends the variable substitution.
2454test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2455
2456test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2457
2458test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2459
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2461$as_echo_n "checking whether build environment is sane... " >&6; }
2462# Just in case
2463sleep 1
2464echo timestamp > conftest.file
2465# Reject unsafe characters in $srcdir or the absolute working directory
2466# name.  Accept space and tab only in the latter.
2467am_lf='
2468'
2469case `pwd` in
2470  *[\\\"\#\$\&\'\`$am_lf]*)
2471    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2472esac
2473case $srcdir in
2474  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2475    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2476esac
2477
2478# Do `set' in a subshell so we don't clobber the current shell's
2479# arguments.  Must try -L first in case configure is actually a
2480# symlink; some systems play weird games with the mod time of symlinks
2481# (eg FreeBSD returns the mod time of the symlink's containing
2482# directory).
2483if (
2484   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2485   if test "$*" = "X"; then
2486      # -L didn't work.
2487      set X `ls -t "$srcdir/configure" conftest.file`
2488   fi
2489   rm -f conftest.file
2490   if test "$*" != "X $srcdir/configure conftest.file" \
2491      && test "$*" != "X conftest.file $srcdir/configure"; then
2492
2493      # If neither matched, then we have a broken ls.  This can happen
2494      # if, for instance, CONFIG_SHELL is bash and it inherits a
2495      # broken ls alias from the environment.  This has actually
2496      # happened.  Such a system could not be considered "sane".
2497      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2498alias in your environment" "$LINENO" 5
2499   fi
2500
2501   test "$2" = conftest.file
2502   )
2503then
2504   # Ok.
2505   :
2506else
2507   as_fn_error "newly created file is older than distributed files!
2508Check your system clock" "$LINENO" 5
2509fi
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2511$as_echo "yes" >&6; }
2512test "$program_prefix" != NONE &&
2513  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2514# Use a double $ so make ignores it.
2515test "$program_suffix" != NONE &&
2516  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2517# Double any \ or $.
2518# By default was `s,x,x', remove it if useless.
2519ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2520program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2521
2522# expand $ac_aux_dir to an absolute path
2523am_aux_dir=`cd $ac_aux_dir && pwd`
2524
2525if test x"${MISSING+set}" != xset; then
2526  case $am_aux_dir in
2527  *\ * | *\	*)
2528    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2529  *)
2530    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2531  esac
2532fi
2533# Use eval to expand $SHELL
2534if eval "$MISSING --run true"; then
2535  am_missing_run="$MISSING --run "
2536else
2537  am_missing_run=
2538  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2539$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2540fi
2541
2542if test x"${install_sh}" != xset; then
2543  case $am_aux_dir in
2544  *\ * | *\	*)
2545    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2546  *)
2547    install_sh="\${SHELL} $am_aux_dir/install-sh"
2548  esac
2549fi
2550
2551# Installed binaries are usually stripped using `strip' when the user
2552# run `make install-strip'.  However `strip' might not be the right
2553# tool to use in cross-compilation environments, therefore Automake
2554# will honor the `STRIP' environment variable to overrule this program.
2555if test "$cross_compiling" != no; then
2556  if test -n "$ac_tool_prefix"; then
2557  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2558set dummy ${ac_tool_prefix}strip; ac_word=$2
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560$as_echo_n "checking for $ac_word... " >&6; }
2561if test "${ac_cv_prog_STRIP+set}" = set; then :
2562  $as_echo_n "(cached) " >&6
2563else
2564  if test -n "$STRIP"; then
2565  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2566else
2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570  IFS=$as_save_IFS
2571  test -z "$as_dir" && as_dir=.
2572    for ac_exec_ext in '' $ac_executable_extensions; do
2573  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2576    break 2
2577  fi
2578done
2579  done
2580IFS=$as_save_IFS
2581
2582fi
2583fi
2584STRIP=$ac_cv_prog_STRIP
2585if test -n "$STRIP"; then
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2587$as_echo "$STRIP" >&6; }
2588else
2589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590$as_echo "no" >&6; }
2591fi
2592
2593
2594fi
2595if test -z "$ac_cv_prog_STRIP"; then
2596  ac_ct_STRIP=$STRIP
2597  # Extract the first word of "strip", so it can be a program name with args.
2598set dummy strip; ac_word=$2
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600$as_echo_n "checking for $ac_word... " >&6; }
2601if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2602  $as_echo_n "(cached) " >&6
2603else
2604  if test -n "$ac_ct_STRIP"; then
2605  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2606else
2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH
2609do
2610  IFS=$as_save_IFS
2611  test -z "$as_dir" && as_dir=.
2612    for ac_exec_ext in '' $ac_executable_extensions; do
2613  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614    ac_cv_prog_ac_ct_STRIP="strip"
2615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616    break 2
2617  fi
2618done
2619  done
2620IFS=$as_save_IFS
2621
2622fi
2623fi
2624ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2625if test -n "$ac_ct_STRIP"; then
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2627$as_echo "$ac_ct_STRIP" >&6; }
2628else
2629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630$as_echo "no" >&6; }
2631fi
2632
2633  if test "x$ac_ct_STRIP" = x; then
2634    STRIP=":"
2635  else
2636    case $cross_compiling:$ac_tool_warned in
2637yes:)
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2640ac_tool_warned=yes ;;
2641esac
2642    STRIP=$ac_ct_STRIP
2643  fi
2644else
2645  STRIP="$ac_cv_prog_STRIP"
2646fi
2647
2648fi
2649INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2650
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2652$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2653if test -z "$MKDIR_P"; then
2654  if test "${ac_cv_path_mkdir+set}" = set; then :
2655  $as_echo_n "(cached) " >&6
2656else
2657  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2659do
2660  IFS=$as_save_IFS
2661  test -z "$as_dir" && as_dir=.
2662    for ac_prog in mkdir gmkdir; do
2663	 for ac_exec_ext in '' $ac_executable_extensions; do
2664	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2665	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2666	     'mkdir (GNU coreutils) '* | \
2667	     'mkdir (coreutils) '* | \
2668	     'mkdir (fileutils) '4.1*)
2669	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2670	       break 3;;
2671	   esac
2672	 done
2673       done
2674  done
2675IFS=$as_save_IFS
2676
2677fi
2678
2679  if test "${ac_cv_path_mkdir+set}" = set; then
2680    MKDIR_P="$ac_cv_path_mkdir -p"
2681  else
2682    # As a last resort, use the slow shell script.  Don't cache a
2683    # value for MKDIR_P within a source directory, because that will
2684    # break other packages using the cache if that directory is
2685    # removed, or if the value is a relative name.
2686    test -d ./--version && rmdir ./--version
2687    MKDIR_P="$ac_install_sh -d"
2688  fi
2689fi
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2691$as_echo "$MKDIR_P" >&6; }
2692
2693mkdir_p="$MKDIR_P"
2694case $mkdir_p in
2695  [\\/$]* | ?:[\\/]*) ;;
2696  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2697esac
2698
2699for ac_prog in gawk mawk nawk awk
2700do
2701  # Extract the first word of "$ac_prog", so it can be a program name with args.
2702set dummy $ac_prog; ac_word=$2
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704$as_echo_n "checking for $ac_word... " >&6; }
2705if test "${ac_cv_prog_AWK+set}" = set; then :
2706  $as_echo_n "(cached) " >&6
2707else
2708  if test -n "$AWK"; then
2709  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2710else
2711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712for as_dir in $PATH
2713do
2714  IFS=$as_save_IFS
2715  test -z "$as_dir" && as_dir=.
2716    for ac_exec_ext in '' $ac_executable_extensions; do
2717  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718    ac_cv_prog_AWK="$ac_prog"
2719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720    break 2
2721  fi
2722done
2723  done
2724IFS=$as_save_IFS
2725
2726fi
2727fi
2728AWK=$ac_cv_prog_AWK
2729if test -n "$AWK"; then
2730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2731$as_echo "$AWK" >&6; }
2732else
2733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734$as_echo "no" >&6; }
2735fi
2736
2737
2738  test -n "$AWK" && break
2739done
2740
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2742$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2743set x ${MAKE-make}
2744ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2745if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2746  $as_echo_n "(cached) " >&6
2747else
2748  cat >conftest.make <<\_ACEOF
2749SHELL = /bin/sh
2750all:
2751	@echo '@@@%%%=$(MAKE)=@@@%%%'
2752_ACEOF
2753# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2754case `${MAKE-make} -f conftest.make 2>/dev/null` in
2755  *@@@%%%=?*=@@@%%%*)
2756    eval ac_cv_prog_make_${ac_make}_set=yes;;
2757  *)
2758    eval ac_cv_prog_make_${ac_make}_set=no;;
2759esac
2760rm -f conftest.make
2761fi
2762if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2764$as_echo "yes" >&6; }
2765  SET_MAKE=
2766else
2767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768$as_echo "no" >&6; }
2769  SET_MAKE="MAKE=${MAKE-make}"
2770fi
2771
2772rm -rf .tst 2>/dev/null
2773mkdir .tst 2>/dev/null
2774if test -d .tst; then
2775  am__leading_dot=.
2776else
2777  am__leading_dot=_
2778fi
2779rmdir .tst 2>/dev/null
2780
2781if test "`cd $srcdir && pwd`" != "`pwd`"; then
2782  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2783  # is not polluted with repeated "-I."
2784  am__isrc=' -I$(srcdir)'
2785  # test to see if srcdir already configured
2786  if test -f $srcdir/config.status; then
2787    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2788  fi
2789fi
2790
2791# test whether we have cygpath
2792if test -z "$CYGPATH_W"; then
2793  if (cygpath --version) >/dev/null 2>/dev/null; then
2794    CYGPATH_W='cygpath -w'
2795  else
2796    CYGPATH_W=echo
2797  fi
2798fi
2799
2800
2801# Define the identity of the package.
2802 PACKAGE='libgomp-plugin-intelmic'
2803 VERSION='1.0'
2804
2805
2806cat >>confdefs.h <<_ACEOF
2807#define PACKAGE "$PACKAGE"
2808_ACEOF
2809
2810
2811cat >>confdefs.h <<_ACEOF
2812#define VERSION "$VERSION"
2813_ACEOF
2814
2815# Some tools Automake needs.
2816
2817ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2818
2819
2820AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2821
2822
2823AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2824
2825
2826AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2827
2828
2829MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2830
2831# We need awk for the "check" target.  The system "awk" is bad on
2832# some platforms.
2833# Always define AMTAR for backward compatibility.
2834
2835AMTAR=${AMTAR-"${am_missing_run}tar"}
2836
2837am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2838
2839
2840
2841
2842
2843
2844
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2846$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2847    # Check whether --enable-maintainer-mode was given.
2848if test "${enable_maintainer_mode+set}" = set; then :
2849  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2850else
2851  USE_MAINTAINER_MODE=no
2852fi
2853
2854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2855$as_echo "$USE_MAINTAINER_MODE" >&6; }
2856   if test $USE_MAINTAINER_MODE = yes; then
2857  MAINTAINER_MODE_TRUE=
2858  MAINTAINER_MODE_FALSE='#'
2859else
2860  MAINTAINER_MODE_TRUE='#'
2861  MAINTAINER_MODE_FALSE=
2862fi
2863
2864  MAINT=$MAINTAINER_MODE_TRUE
2865
2866
2867
2868ac_ext=c
2869ac_cpp='$CPP $CPPFLAGS'
2870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872ac_compiler_gnu=$ac_cv_c_compiler_gnu
2873if test -n "$ac_tool_prefix"; then
2874  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2875set dummy ${ac_tool_prefix}gcc; ac_word=$2
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877$as_echo_n "checking for $ac_word... " >&6; }
2878if test "${ac_cv_prog_CC+set}" = set; then :
2879  $as_echo_n "(cached) " >&6
2880else
2881  if test -n "$CC"; then
2882  ac_cv_prog_CC="$CC" # Let the user override the test.
2883else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887  IFS=$as_save_IFS
2888  test -z "$as_dir" && as_dir=.
2889    for ac_exec_ext in '' $ac_executable_extensions; do
2890  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893    break 2
2894  fi
2895done
2896  done
2897IFS=$as_save_IFS
2898
2899fi
2900fi
2901CC=$ac_cv_prog_CC
2902if test -n "$CC"; then
2903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904$as_echo "$CC" >&6; }
2905else
2906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907$as_echo "no" >&6; }
2908fi
2909
2910
2911fi
2912if test -z "$ac_cv_prog_CC"; then
2913  ac_ct_CC=$CC
2914  # Extract the first word of "gcc", so it can be a program name with args.
2915set dummy gcc; ac_word=$2
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917$as_echo_n "checking for $ac_word... " >&6; }
2918if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2919  $as_echo_n "(cached) " >&6
2920else
2921  if test -n "$ac_ct_CC"; then
2922  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2923else
2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925for as_dir in $PATH
2926do
2927  IFS=$as_save_IFS
2928  test -z "$as_dir" && as_dir=.
2929    for ac_exec_ext in '' $ac_executable_extensions; do
2930  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931    ac_cv_prog_ac_ct_CC="gcc"
2932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933    break 2
2934  fi
2935done
2936  done
2937IFS=$as_save_IFS
2938
2939fi
2940fi
2941ac_ct_CC=$ac_cv_prog_ac_ct_CC
2942if test -n "$ac_ct_CC"; then
2943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2944$as_echo "$ac_ct_CC" >&6; }
2945else
2946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947$as_echo "no" >&6; }
2948fi
2949
2950  if test "x$ac_ct_CC" = x; then
2951    CC=""
2952  else
2953    case $cross_compiling:$ac_tool_warned in
2954yes:)
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2957ac_tool_warned=yes ;;
2958esac
2959    CC=$ac_ct_CC
2960  fi
2961else
2962  CC="$ac_cv_prog_CC"
2963fi
2964
2965if test -z "$CC"; then
2966          if test -n "$ac_tool_prefix"; then
2967    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2968set dummy ${ac_tool_prefix}cc; ac_word=$2
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970$as_echo_n "checking for $ac_word... " >&6; }
2971if test "${ac_cv_prog_CC+set}" = set; then :
2972  $as_echo_n "(cached) " >&6
2973else
2974  if test -n "$CC"; then
2975  ac_cv_prog_CC="$CC" # Let the user override the test.
2976else
2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978for as_dir in $PATH
2979do
2980  IFS=$as_save_IFS
2981  test -z "$as_dir" && as_dir=.
2982    for ac_exec_ext in '' $ac_executable_extensions; do
2983  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984    ac_cv_prog_CC="${ac_tool_prefix}cc"
2985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986    break 2
2987  fi
2988done
2989  done
2990IFS=$as_save_IFS
2991
2992fi
2993fi
2994CC=$ac_cv_prog_CC
2995if test -n "$CC"; then
2996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997$as_echo "$CC" >&6; }
2998else
2999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000$as_echo "no" >&6; }
3001fi
3002
3003
3004  fi
3005fi
3006if test -z "$CC"; then
3007  # Extract the first word of "cc", so it can be a program name with args.
3008set dummy cc; ac_word=$2
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010$as_echo_n "checking for $ac_word... " >&6; }
3011if test "${ac_cv_prog_CC+set}" = set; then :
3012  $as_echo_n "(cached) " >&6
3013else
3014  if test -n "$CC"; then
3015  ac_cv_prog_CC="$CC" # Let the user override the test.
3016else
3017  ac_prog_rejected=no
3018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019for as_dir in $PATH
3020do
3021  IFS=$as_save_IFS
3022  test -z "$as_dir" && as_dir=.
3023    for ac_exec_ext in '' $ac_executable_extensions; do
3024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3026       ac_prog_rejected=yes
3027       continue
3028     fi
3029    ac_cv_prog_CC="cc"
3030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031    break 2
3032  fi
3033done
3034  done
3035IFS=$as_save_IFS
3036
3037if test $ac_prog_rejected = yes; then
3038  # We found a bogon in the path, so make sure we never use it.
3039  set dummy $ac_cv_prog_CC
3040  shift
3041  if test $# != 0; then
3042    # We chose a different compiler from the bogus one.
3043    # However, it has the same basename, so the bogon will be chosen
3044    # first if we set CC to just the basename; use the full file name.
3045    shift
3046    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3047  fi
3048fi
3049fi
3050fi
3051CC=$ac_cv_prog_CC
3052if test -n "$CC"; then
3053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3054$as_echo "$CC" >&6; }
3055else
3056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057$as_echo "no" >&6; }
3058fi
3059
3060
3061fi
3062if test -z "$CC"; then
3063  if test -n "$ac_tool_prefix"; then
3064  for ac_prog in cl.exe
3065  do
3066    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3067set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069$as_echo_n "checking for $ac_word... " >&6; }
3070if test "${ac_cv_prog_CC+set}" = set; then :
3071  $as_echo_n "(cached) " >&6
3072else
3073  if test -n "$CC"; then
3074  ac_cv_prog_CC="$CC" # Let the user override the test.
3075else
3076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077for as_dir in $PATH
3078do
3079  IFS=$as_save_IFS
3080  test -z "$as_dir" && as_dir=.
3081    for ac_exec_ext in '' $ac_executable_extensions; do
3082  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085    break 2
3086  fi
3087done
3088  done
3089IFS=$as_save_IFS
3090
3091fi
3092fi
3093CC=$ac_cv_prog_CC
3094if test -n "$CC"; then
3095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096$as_echo "$CC" >&6; }
3097else
3098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099$as_echo "no" >&6; }
3100fi
3101
3102
3103    test -n "$CC" && break
3104  done
3105fi
3106if test -z "$CC"; then
3107  ac_ct_CC=$CC
3108  for ac_prog in cl.exe
3109do
3110  # Extract the first word of "$ac_prog", so it can be a program name with args.
3111set dummy $ac_prog; ac_word=$2
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113$as_echo_n "checking for $ac_word... " >&6; }
3114if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3115  $as_echo_n "(cached) " >&6
3116else
3117  if test -n "$ac_ct_CC"; then
3118  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3119else
3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121for as_dir in $PATH
3122do
3123  IFS=$as_save_IFS
3124  test -z "$as_dir" && as_dir=.
3125    for ac_exec_ext in '' $ac_executable_extensions; do
3126  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127    ac_cv_prog_ac_ct_CC="$ac_prog"
3128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129    break 2
3130  fi
3131done
3132  done
3133IFS=$as_save_IFS
3134
3135fi
3136fi
3137ac_ct_CC=$ac_cv_prog_ac_ct_CC
3138if test -n "$ac_ct_CC"; then
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3140$as_echo "$ac_ct_CC" >&6; }
3141else
3142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143$as_echo "no" >&6; }
3144fi
3145
3146
3147  test -n "$ac_ct_CC" && break
3148done
3149
3150  if test "x$ac_ct_CC" = x; then
3151    CC=""
3152  else
3153    case $cross_compiling:$ac_tool_warned in
3154yes:)
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3157ac_tool_warned=yes ;;
3158esac
3159    CC=$ac_ct_CC
3160  fi
3161fi
3162
3163fi
3164
3165
3166test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168as_fn_error "no acceptable C compiler found in \$PATH
3169See \`config.log' for more details." "$LINENO" 5; }
3170
3171# Provide some information about the compiler.
3172$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3173set X $ac_compile
3174ac_compiler=$2
3175for ac_option in --version -v -V -qversion; do
3176  { { ac_try="$ac_compiler $ac_option >&5"
3177case "(($ac_try" in
3178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179  *) ac_try_echo=$ac_try;;
3180esac
3181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182$as_echo "$ac_try_echo"; } >&5
3183  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3184  ac_status=$?
3185  if test -s conftest.err; then
3186    sed '10a\
3187... rest of stderr output deleted ...
3188         10q' conftest.err >conftest.er1
3189    cat conftest.er1 >&5
3190    rm -f conftest.er1 conftest.err
3191  fi
3192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193  test $ac_status = 0; }
3194done
3195
3196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197/* end confdefs.h.  */
3198
3199int
3200main ()
3201{
3202
3203  ;
3204  return 0;
3205}
3206_ACEOF
3207ac_clean_files_save=$ac_clean_files
3208ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3209# Try to create an executable without -o first, disregard a.out.
3210# It will help us diagnose broken compilers, and finding out an intuition
3211# of exeext.
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3213$as_echo_n "checking for C compiler default output file name... " >&6; }
3214ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3215
3216# The possible output files:
3217ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3218
3219ac_rmfiles=
3220for ac_file in $ac_files
3221do
3222  case $ac_file in
3223    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3224    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3225  esac
3226done
3227rm -f $ac_rmfiles
3228
3229if { { ac_try="$ac_link_default"
3230case "(($ac_try" in
3231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232  *) ac_try_echo=$ac_try;;
3233esac
3234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235$as_echo "$ac_try_echo"; } >&5
3236  (eval "$ac_link_default") 2>&5
3237  ac_status=$?
3238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239  test $ac_status = 0; }; then :
3240  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3241# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3242# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3243# so that the user can short-circuit this test for compilers unknown to
3244# Autoconf.
3245for ac_file in $ac_files ''
3246do
3247  test -f "$ac_file" || continue
3248  case $ac_file in
3249    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3250	;;
3251    [ab].out )
3252	# We found the default executable, but exeext='' is most
3253	# certainly right.
3254	break;;
3255    *.* )
3256	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3257	then :; else
3258	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3259	fi
3260	# We set ac_cv_exeext here because the later test for it is not
3261	# safe: cross compilers may not add the suffix if given an `-o'
3262	# argument, so we may need to know it at that point already.
3263	# Even if this section looks crufty: it has the advantage of
3264	# actually working.
3265	break;;
3266    * )
3267	break;;
3268  esac
3269done
3270test "$ac_cv_exeext" = no && ac_cv_exeext=
3271
3272else
3273  ac_file=''
3274fi
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3276$as_echo "$ac_file" >&6; }
3277if test -z "$ac_file"; then :
3278  $as_echo "$as_me: failed program was:" >&5
3279sed 's/^/| /' conftest.$ac_ext >&5
3280
3281{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283{ as_fn_set_status 77
3284as_fn_error "C compiler cannot create executables
3285See \`config.log' for more details." "$LINENO" 5; }; }
3286fi
3287ac_exeext=$ac_cv_exeext
3288
3289# Check that the compiler produces executables we can run.  If not, either
3290# the compiler is broken, or we cross compile.
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3292$as_echo_n "checking whether the C compiler works... " >&6; }
3293# If not cross compiling, check that we can run a simple program.
3294if test "$cross_compiling" != yes; then
3295  if { ac_try='./$ac_file'
3296  { { case "(($ac_try" in
3297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298  *) ac_try_echo=$ac_try;;
3299esac
3300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301$as_echo "$ac_try_echo"; } >&5
3302  (eval "$ac_try") 2>&5
3303  ac_status=$?
3304  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305  test $ac_status = 0; }; }; then
3306    cross_compiling=no
3307  else
3308    if test "$cross_compiling" = maybe; then
3309	cross_compiling=yes
3310    else
3311	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313as_fn_error "cannot run C compiled programs.
3314If you meant to cross compile, use \`--host'.
3315See \`config.log' for more details." "$LINENO" 5; }
3316    fi
3317  fi
3318fi
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320$as_echo "yes" >&6; }
3321
3322rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3323ac_clean_files=$ac_clean_files_save
3324# Check that the compiler produces executables we can run.  If not, either
3325# the compiler is broken, or we cross compile.
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3327$as_echo_n "checking whether we are cross compiling... " >&6; }
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3329$as_echo "$cross_compiling" >&6; }
3330
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3332$as_echo_n "checking for suffix of executables... " >&6; }
3333if { { ac_try="$ac_link"
3334case "(($ac_try" in
3335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336  *) ac_try_echo=$ac_try;;
3337esac
3338eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339$as_echo "$ac_try_echo"; } >&5
3340  (eval "$ac_link") 2>&5
3341  ac_status=$?
3342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343  test $ac_status = 0; }; then :
3344  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3345# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3346# work properly (i.e., refer to `conftest.exe'), while it won't with
3347# `rm'.
3348for ac_file in conftest.exe conftest conftest.*; do
3349  test -f "$ac_file" || continue
3350  case $ac_file in
3351    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3352    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353	  break;;
3354    * ) break;;
3355  esac
3356done
3357else
3358  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360as_fn_error "cannot compute suffix of executables: cannot compile and link
3361See \`config.log' for more details." "$LINENO" 5; }
3362fi
3363rm -f conftest$ac_cv_exeext
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3365$as_echo "$ac_cv_exeext" >&6; }
3366
3367rm -f conftest.$ac_ext
3368EXEEXT=$ac_cv_exeext
3369ac_exeext=$EXEEXT
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3371$as_echo_n "checking for suffix of object files... " >&6; }
3372if test "${ac_cv_objext+set}" = set; then :
3373  $as_echo_n "(cached) " >&6
3374else
3375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376/* end confdefs.h.  */
3377
3378int
3379main ()
3380{
3381
3382  ;
3383  return 0;
3384}
3385_ACEOF
3386rm -f conftest.o conftest.obj
3387if { { ac_try="$ac_compile"
3388case "(($ac_try" in
3389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390  *) ac_try_echo=$ac_try;;
3391esac
3392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393$as_echo "$ac_try_echo"; } >&5
3394  (eval "$ac_compile") 2>&5
3395  ac_status=$?
3396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397  test $ac_status = 0; }; then :
3398  for ac_file in conftest.o conftest.obj conftest.*; do
3399  test -f "$ac_file" || continue;
3400  case $ac_file in
3401    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3402    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3403       break;;
3404  esac
3405done
3406else
3407  $as_echo "$as_me: failed program was:" >&5
3408sed 's/^/| /' conftest.$ac_ext >&5
3409
3410{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412as_fn_error "cannot compute suffix of object files: cannot compile
3413See \`config.log' for more details." "$LINENO" 5; }
3414fi
3415rm -f conftest.$ac_cv_objext conftest.$ac_ext
3416fi
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3418$as_echo "$ac_cv_objext" >&6; }
3419OBJEXT=$ac_cv_objext
3420ac_objext=$OBJEXT
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3422$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3423if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3424  $as_echo_n "(cached) " >&6
3425else
3426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427/* end confdefs.h.  */
3428
3429int
3430main ()
3431{
3432#ifndef __GNUC__
3433       choke me
3434#endif
3435
3436  ;
3437  return 0;
3438}
3439_ACEOF
3440if ac_fn_c_try_compile "$LINENO"; then :
3441  ac_compiler_gnu=yes
3442else
3443  ac_compiler_gnu=no
3444fi
3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446ac_cv_c_compiler_gnu=$ac_compiler_gnu
3447
3448fi
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3450$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3451if test $ac_compiler_gnu = yes; then
3452  GCC=yes
3453else
3454  GCC=
3455fi
3456ac_test_CFLAGS=${CFLAGS+set}
3457ac_save_CFLAGS=$CFLAGS
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3459$as_echo_n "checking whether $CC accepts -g... " >&6; }
3460if test "${ac_cv_prog_cc_g+set}" = set; then :
3461  $as_echo_n "(cached) " >&6
3462else
3463  ac_save_c_werror_flag=$ac_c_werror_flag
3464   ac_c_werror_flag=yes
3465   ac_cv_prog_cc_g=no
3466   CFLAGS="-g"
3467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h.  */
3469
3470int
3471main ()
3472{
3473
3474  ;
3475  return 0;
3476}
3477_ACEOF
3478if ac_fn_c_try_compile "$LINENO"; then :
3479  ac_cv_prog_cc_g=yes
3480else
3481  CFLAGS=""
3482      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483/* end confdefs.h.  */
3484
3485int
3486main ()
3487{
3488
3489  ;
3490  return 0;
3491}
3492_ACEOF
3493if ac_fn_c_try_compile "$LINENO"; then :
3494
3495else
3496  ac_c_werror_flag=$ac_save_c_werror_flag
3497	 CFLAGS="-g"
3498	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h.  */
3500
3501int
3502main ()
3503{
3504
3505  ;
3506  return 0;
3507}
3508_ACEOF
3509if ac_fn_c_try_compile "$LINENO"; then :
3510  ac_cv_prog_cc_g=yes
3511fi
3512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513fi
3514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515fi
3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517   ac_c_werror_flag=$ac_save_c_werror_flag
3518fi
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3520$as_echo "$ac_cv_prog_cc_g" >&6; }
3521if test "$ac_test_CFLAGS" = set; then
3522  CFLAGS=$ac_save_CFLAGS
3523elif test $ac_cv_prog_cc_g = yes; then
3524  if test "$GCC" = yes; then
3525    CFLAGS="-g -O2"
3526  else
3527    CFLAGS="-g"
3528  fi
3529else
3530  if test "$GCC" = yes; then
3531    CFLAGS="-O2"
3532  else
3533    CFLAGS=
3534  fi
3535fi
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3537$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3538if test "${ac_cv_prog_cc_c89+set}" = set; then :
3539  $as_echo_n "(cached) " >&6
3540else
3541  ac_cv_prog_cc_c89=no
3542ac_save_CC=$CC
3543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544/* end confdefs.h.  */
3545#include <stdarg.h>
3546#include <stdio.h>
3547#include <sys/types.h>
3548#include <sys/stat.h>
3549/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3550struct buf { int x; };
3551FILE * (*rcsopen) (struct buf *, struct stat *, int);
3552static char *e (p, i)
3553     char **p;
3554     int i;
3555{
3556  return p[i];
3557}
3558static char *f (char * (*g) (char **, int), char **p, ...)
3559{
3560  char *s;
3561  va_list v;
3562  va_start (v,p);
3563  s = g (p, va_arg (v,int));
3564  va_end (v);
3565  return s;
3566}
3567
3568/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3569   function prototypes and stuff, but not '\xHH' hex character constants.
3570   These don't provoke an error unfortunately, instead are silently treated
3571   as 'x'.  The following induces an error, until -std is added to get
3572   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3573   array size at least.  It's necessary to write '\x00'==0 to get something
3574   that's true only with -std.  */
3575int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3576
3577/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3578   inside strings and character constants.  */
3579#define FOO(x) 'x'
3580int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3581
3582int test (int i, double x);
3583struct s1 {int (*f) (int a);};
3584struct s2 {int (*f) (double a);};
3585int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3586int argc;
3587char **argv;
3588int
3589main ()
3590{
3591return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3592  ;
3593  return 0;
3594}
3595_ACEOF
3596for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3597	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3598do
3599  CC="$ac_save_CC $ac_arg"
3600  if ac_fn_c_try_compile "$LINENO"; then :
3601  ac_cv_prog_cc_c89=$ac_arg
3602fi
3603rm -f core conftest.err conftest.$ac_objext
3604  test "x$ac_cv_prog_cc_c89" != "xno" && break
3605done
3606rm -f conftest.$ac_ext
3607CC=$ac_save_CC
3608
3609fi
3610# AC_CACHE_VAL
3611case "x$ac_cv_prog_cc_c89" in
3612  x)
3613    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3614$as_echo "none needed" >&6; } ;;
3615  xno)
3616    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3617$as_echo "unsupported" >&6; } ;;
3618  *)
3619    CC="$CC $ac_cv_prog_cc_c89"
3620    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3621$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3622esac
3623if test "x$ac_cv_prog_cc_c89" != xno; then :
3624
3625fi
3626
3627ac_ext=c
3628ac_cpp='$CPP $CPPFLAGS'
3629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632DEPDIR="${am__leading_dot}deps"
3633
3634ac_config_commands="$ac_config_commands depfiles"
3635
3636
3637am_make=${MAKE-make}
3638cat > confinc << 'END'
3639am__doit:
3640	@echo this is the am__doit target
3641.PHONY: am__doit
3642END
3643# If we don't find an include directive, just comment out the code.
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3645$as_echo_n "checking for style of include used by $am_make... " >&6; }
3646am__include="#"
3647am__quote=
3648_am_result=none
3649# First try GNU make style include.
3650echo "include confinc" > confmf
3651# Ignore all kinds of additional output from `make'.
3652case `$am_make -s -f confmf 2> /dev/null` in #(
3653*the\ am__doit\ target*)
3654  am__include=include
3655  am__quote=
3656  _am_result=GNU
3657  ;;
3658esac
3659# Now try BSD make style include.
3660if test "$am__include" = "#"; then
3661   echo '.include "confinc"' > confmf
3662   case `$am_make -s -f confmf 2> /dev/null` in #(
3663   *the\ am__doit\ target*)
3664     am__include=.include
3665     am__quote="\""
3666     _am_result=BSD
3667     ;;
3668   esac
3669fi
3670
3671
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3673$as_echo "$_am_result" >&6; }
3674rm -f confinc confmf
3675
3676# Check whether --enable-dependency-tracking was given.
3677if test "${enable_dependency_tracking+set}" = set; then :
3678  enableval=$enable_dependency_tracking;
3679fi
3680
3681if test "x$enable_dependency_tracking" != xno; then
3682  am_depcomp="$ac_aux_dir/depcomp"
3683  AMDEPBACKSLASH='\'
3684fi
3685 if test "x$enable_dependency_tracking" != xno; then
3686  AMDEP_TRUE=
3687  AMDEP_FALSE='#'
3688else
3689  AMDEP_TRUE='#'
3690  AMDEP_FALSE=
3691fi
3692
3693
3694
3695depcc="$CC"   am_compiler_list=
3696
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3698$as_echo_n "checking dependency style of $depcc... " >&6; }
3699if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3700  $as_echo_n "(cached) " >&6
3701else
3702  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3703  # We make a subdir and do the tests there.  Otherwise we can end up
3704  # making bogus files that we don't know about and never remove.  For
3705  # instance it was reported that on HP-UX the gcc test will end up
3706  # making a dummy file named `D' -- because `-MD' means `put the output
3707  # in D'.
3708  mkdir conftest.dir
3709  # Copy depcomp to subdir because otherwise we won't find it if we're
3710  # using a relative directory.
3711  cp "$am_depcomp" conftest.dir
3712  cd conftest.dir
3713  # We will build objects and dependencies in a subdirectory because
3714  # it helps to detect inapplicable dependency modes.  For instance
3715  # both Tru64's cc and ICC support -MD to output dependencies as a
3716  # side effect of compilation, but ICC will put the dependencies in
3717  # the current directory while Tru64 will put them in the object
3718  # directory.
3719  mkdir sub
3720
3721  am_cv_CC_dependencies_compiler_type=none
3722  if test "$am_compiler_list" = ""; then
3723     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3724  fi
3725  am__universal=false
3726  case " $depcc " in #(
3727     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3728     esac
3729
3730  for depmode in $am_compiler_list; do
3731    # Setup a source with many dependencies, because some compilers
3732    # like to wrap large dependency lists on column 80 (with \), and
3733    # we should not choose a depcomp mode which is confused by this.
3734    #
3735    # We need to recreate these files for each test, as the compiler may
3736    # overwrite some of them when testing with obscure command lines.
3737    # This happens at least with the AIX C compiler.
3738    : > sub/conftest.c
3739    for i in 1 2 3 4 5 6; do
3740      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3741      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3742      # Solaris 8's {/usr,}/bin/sh.
3743      touch sub/conftst$i.h
3744    done
3745    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3746
3747    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3748    # mode.  It turns out that the SunPro C++ compiler does not properly
3749    # handle `-M -o', and we need to detect this.  Also, some Intel
3750    # versions had trouble with output in subdirs
3751    am__obj=sub/conftest.${OBJEXT-o}
3752    am__minus_obj="-o $am__obj"
3753    case $depmode in
3754    gcc)
3755      # This depmode causes a compiler race in universal mode.
3756      test "$am__universal" = false || continue
3757      ;;
3758    nosideeffect)
3759      # after this tag, mechanisms are not by side-effect, so they'll
3760      # only be used when explicitly requested
3761      if test "x$enable_dependency_tracking" = xyes; then
3762	continue
3763      else
3764	break
3765      fi
3766      ;;
3767    msvisualcpp | msvcmsys)
3768      # This compiler won't grok `-c -o', but also, the minuso test has
3769      # not run yet.  These depmodes are late enough in the game, and
3770      # so weak that their functioning should not be impacted.
3771      am__obj=conftest.${OBJEXT-o}
3772      am__minus_obj=
3773      ;;
3774    none) break ;;
3775    esac
3776    if depmode=$depmode \
3777       source=sub/conftest.c object=$am__obj \
3778       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3779       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3780         >/dev/null 2>conftest.err &&
3781       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3782       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3783       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3784       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3785      # icc doesn't choke on unknown options, it will just issue warnings
3786      # or remarks (even with -Werror).  So we grep stderr for any message
3787      # that says an option was ignored or not supported.
3788      # When given -MP, icc 7.0 and 7.1 complain thusly:
3789      #   icc: Command line warning: ignoring option '-M'; no argument required
3790      # The diagnosis changed in icc 8.0:
3791      #   icc: Command line remark: option '-MP' not supported
3792      if (grep 'ignoring option' conftest.err ||
3793          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3794        am_cv_CC_dependencies_compiler_type=$depmode
3795        break
3796      fi
3797    fi
3798  done
3799
3800  cd ..
3801  rm -rf conftest.dir
3802else
3803  am_cv_CC_dependencies_compiler_type=none
3804fi
3805
3806fi
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3808$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3809CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3810
3811 if
3812  test "x$enable_dependency_tracking" != xno \
3813  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3814  am__fastdepCC_TRUE=
3815  am__fastdepCC_FALSE='#'
3816else
3817  am__fastdepCC_TRUE='#'
3818  am__fastdepCC_FALSE=
3819fi
3820
3821
3822ac_ext=cpp
3823ac_cpp='$CXXCPP $CPPFLAGS'
3824ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3827if test -z "$CXX"; then
3828  if test -n "$CCC"; then
3829    CXX=$CCC
3830  else
3831    if test -n "$ac_tool_prefix"; then
3832  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3833  do
3834    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3835set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837$as_echo_n "checking for $ac_word... " >&6; }
3838if test "${ac_cv_prog_CXX+set}" = set; then :
3839  $as_echo_n "(cached) " >&6
3840else
3841  if test -n "$CXX"; then
3842  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3843else
3844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845for as_dir in $PATH
3846do
3847  IFS=$as_save_IFS
3848  test -z "$as_dir" && as_dir=.
3849    for ac_exec_ext in '' $ac_executable_extensions; do
3850  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3852    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853    break 2
3854  fi
3855done
3856  done
3857IFS=$as_save_IFS
3858
3859fi
3860fi
3861CXX=$ac_cv_prog_CXX
3862if test -n "$CXX"; then
3863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3864$as_echo "$CXX" >&6; }
3865else
3866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867$as_echo "no" >&6; }
3868fi
3869
3870
3871    test -n "$CXX" && break
3872  done
3873fi
3874if test -z "$CXX"; then
3875  ac_ct_CXX=$CXX
3876  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3877do
3878  # Extract the first word of "$ac_prog", so it can be a program name with args.
3879set dummy $ac_prog; ac_word=$2
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881$as_echo_n "checking for $ac_word... " >&6; }
3882if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3883  $as_echo_n "(cached) " >&6
3884else
3885  if test -n "$ac_ct_CXX"; then
3886  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3887else
3888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889for as_dir in $PATH
3890do
3891  IFS=$as_save_IFS
3892  test -z "$as_dir" && as_dir=.
3893    for ac_exec_ext in '' $ac_executable_extensions; do
3894  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3895    ac_cv_prog_ac_ct_CXX="$ac_prog"
3896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897    break 2
3898  fi
3899done
3900  done
3901IFS=$as_save_IFS
3902
3903fi
3904fi
3905ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3906if test -n "$ac_ct_CXX"; then
3907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3908$as_echo "$ac_ct_CXX" >&6; }
3909else
3910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911$as_echo "no" >&6; }
3912fi
3913
3914
3915  test -n "$ac_ct_CXX" && break
3916done
3917
3918  if test "x$ac_ct_CXX" = x; then
3919    CXX="g++"
3920  else
3921    case $cross_compiling:$ac_tool_warned in
3922yes:)
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3925ac_tool_warned=yes ;;
3926esac
3927    CXX=$ac_ct_CXX
3928  fi
3929fi
3930
3931  fi
3932fi
3933# Provide some information about the compiler.
3934$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3935set X $ac_compile
3936ac_compiler=$2
3937for ac_option in --version -v -V -qversion; do
3938  { { ac_try="$ac_compiler $ac_option >&5"
3939case "(($ac_try" in
3940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941  *) ac_try_echo=$ac_try;;
3942esac
3943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944$as_echo "$ac_try_echo"; } >&5
3945  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3946  ac_status=$?
3947  if test -s conftest.err; then
3948    sed '10a\
3949... rest of stderr output deleted ...
3950         10q' conftest.err >conftest.er1
3951    cat conftest.er1 >&5
3952    rm -f conftest.er1 conftest.err
3953  fi
3954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3955  test $ac_status = 0; }
3956done
3957
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3959$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3960if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3961  $as_echo_n "(cached) " >&6
3962else
3963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964/* end confdefs.h.  */
3965
3966int
3967main ()
3968{
3969#ifndef __GNUC__
3970       choke me
3971#endif
3972
3973  ;
3974  return 0;
3975}
3976_ACEOF
3977if ac_fn_cxx_try_compile "$LINENO"; then :
3978  ac_compiler_gnu=yes
3979else
3980  ac_compiler_gnu=no
3981fi
3982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3984
3985fi
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3987$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3988if test $ac_compiler_gnu = yes; then
3989  GXX=yes
3990else
3991  GXX=
3992fi
3993ac_test_CXXFLAGS=${CXXFLAGS+set}
3994ac_save_CXXFLAGS=$CXXFLAGS
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3996$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3997if test "${ac_cv_prog_cxx_g+set}" = set; then :
3998  $as_echo_n "(cached) " >&6
3999else
4000  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4001   ac_cxx_werror_flag=yes
4002   ac_cv_prog_cxx_g=no
4003   CXXFLAGS="-g"
4004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005/* end confdefs.h.  */
4006
4007int
4008main ()
4009{
4010
4011  ;
4012  return 0;
4013}
4014_ACEOF
4015if ac_fn_cxx_try_compile "$LINENO"; then :
4016  ac_cv_prog_cxx_g=yes
4017else
4018  CXXFLAGS=""
4019      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020/* end confdefs.h.  */
4021
4022int
4023main ()
4024{
4025
4026  ;
4027  return 0;
4028}
4029_ACEOF
4030if ac_fn_cxx_try_compile "$LINENO"; then :
4031
4032else
4033  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4034	 CXXFLAGS="-g"
4035	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036/* end confdefs.h.  */
4037
4038int
4039main ()
4040{
4041
4042  ;
4043  return 0;
4044}
4045_ACEOF
4046if ac_fn_cxx_try_compile "$LINENO"; then :
4047  ac_cv_prog_cxx_g=yes
4048fi
4049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050fi
4051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052fi
4053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4055fi
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4057$as_echo "$ac_cv_prog_cxx_g" >&6; }
4058if test "$ac_test_CXXFLAGS" = set; then
4059  CXXFLAGS=$ac_save_CXXFLAGS
4060elif test $ac_cv_prog_cxx_g = yes; then
4061  if test "$GXX" = yes; then
4062    CXXFLAGS="-g -O2"
4063  else
4064    CXXFLAGS="-g"
4065  fi
4066else
4067  if test "$GXX" = yes; then
4068    CXXFLAGS="-O2"
4069  else
4070    CXXFLAGS=
4071  fi
4072fi
4073ac_ext=c
4074ac_cpp='$CPP $CPPFLAGS'
4075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078
4079depcc="$CXX"  am_compiler_list=
4080
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4082$as_echo_n "checking dependency style of $depcc... " >&6; }
4083if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4087  # We make a subdir and do the tests there.  Otherwise we can end up
4088  # making bogus files that we don't know about and never remove.  For
4089  # instance it was reported that on HP-UX the gcc test will end up
4090  # making a dummy file named `D' -- because `-MD' means `put the output
4091  # in D'.
4092  mkdir conftest.dir
4093  # Copy depcomp to subdir because otherwise we won't find it if we're
4094  # using a relative directory.
4095  cp "$am_depcomp" conftest.dir
4096  cd conftest.dir
4097  # We will build objects and dependencies in a subdirectory because
4098  # it helps to detect inapplicable dependency modes.  For instance
4099  # both Tru64's cc and ICC support -MD to output dependencies as a
4100  # side effect of compilation, but ICC will put the dependencies in
4101  # the current directory while Tru64 will put them in the object
4102  # directory.
4103  mkdir sub
4104
4105  am_cv_CXX_dependencies_compiler_type=none
4106  if test "$am_compiler_list" = ""; then
4107     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4108  fi
4109  am__universal=false
4110  case " $depcc " in #(
4111     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4112     esac
4113
4114  for depmode in $am_compiler_list; do
4115    # Setup a source with many dependencies, because some compilers
4116    # like to wrap large dependency lists on column 80 (with \), and
4117    # we should not choose a depcomp mode which is confused by this.
4118    #
4119    # We need to recreate these files for each test, as the compiler may
4120    # overwrite some of them when testing with obscure command lines.
4121    # This happens at least with the AIX C compiler.
4122    : > sub/conftest.c
4123    for i in 1 2 3 4 5 6; do
4124      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4125      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4126      # Solaris 8's {/usr,}/bin/sh.
4127      touch sub/conftst$i.h
4128    done
4129    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4130
4131    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4132    # mode.  It turns out that the SunPro C++ compiler does not properly
4133    # handle `-M -o', and we need to detect this.  Also, some Intel
4134    # versions had trouble with output in subdirs
4135    am__obj=sub/conftest.${OBJEXT-o}
4136    am__minus_obj="-o $am__obj"
4137    case $depmode in
4138    gcc)
4139      # This depmode causes a compiler race in universal mode.
4140      test "$am__universal" = false || continue
4141      ;;
4142    nosideeffect)
4143      # after this tag, mechanisms are not by side-effect, so they'll
4144      # only be used when explicitly requested
4145      if test "x$enable_dependency_tracking" = xyes; then
4146	continue
4147      else
4148	break
4149      fi
4150      ;;
4151    msvisualcpp | msvcmsys)
4152      # This compiler won't grok `-c -o', but also, the minuso test has
4153      # not run yet.  These depmodes are late enough in the game, and
4154      # so weak that their functioning should not be impacted.
4155      am__obj=conftest.${OBJEXT-o}
4156      am__minus_obj=
4157      ;;
4158    none) break ;;
4159    esac
4160    if depmode=$depmode \
4161       source=sub/conftest.c object=$am__obj \
4162       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4163       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4164         >/dev/null 2>conftest.err &&
4165       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4166       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4167       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4168       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4169      # icc doesn't choke on unknown options, it will just issue warnings
4170      # or remarks (even with -Werror).  So we grep stderr for any message
4171      # that says an option was ignored or not supported.
4172      # When given -MP, icc 7.0 and 7.1 complain thusly:
4173      #   icc: Command line warning: ignoring option '-M'; no argument required
4174      # The diagnosis changed in icc 8.0:
4175      #   icc: Command line remark: option '-MP' not supported
4176      if (grep 'ignoring option' conftest.err ||
4177          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4178        am_cv_CXX_dependencies_compiler_type=$depmode
4179        break
4180      fi
4181    fi
4182  done
4183
4184  cd ..
4185  rm -rf conftest.dir
4186else
4187  am_cv_CXX_dependencies_compiler_type=none
4188fi
4189
4190fi
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4192$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4193CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4194
4195 if
4196  test "x$enable_dependency_tracking" != xno \
4197  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4198  am__fastdepCXX_TRUE=
4199  am__fastdepCXX_FALSE='#'
4200else
4201  am__fastdepCXX_TRUE='#'
4202  am__fastdepCXX_FALSE=
4203fi
4204
4205
4206ac_config_files="$ac_config_files Makefile"
4207
4208# Default to --enable-multilib
4209# Check whether --enable-multilib was given.
4210if test "${enable_multilib+set}" = set; then :
4211  enableval=$enable_multilib; case "$enableval" in
4212  yes) multilib=yes ;;
4213  no)  multilib=no ;;
4214  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
4215 esac
4216else
4217  multilib=yes
4218fi
4219
4220
4221# We may get other options which we leave undocumented:
4222# --with-target-subdir, --with-multisrctop, --with-multisubdir
4223# See config-ml.in if you want the gory details.
4224
4225if test "$srcdir" = "."; then
4226  if test "$with_target_subdir" != "."; then
4227    multi_basedir="$srcdir/$with_multisrctop../../.."
4228  else
4229    multi_basedir="$srcdir/$with_multisrctop../.."
4230  fi
4231else
4232  multi_basedir="$srcdir/../.."
4233fi
4234
4235
4236# Even if the default multilib is not a cross compilation,
4237# it may be that some of the other multilibs are.
4238if test $cross_compiling = no && test $multilib = yes \
4239   && test "x${with_multisubdir}" != x ; then
4240   cross_compiling=maybe
4241fi
4242
4243ac_config_commands="$ac_config_commands default-1"
4244
4245
4246if test "${multilib}" = "yes"; then
4247  multilib_arg="--enable-multilib"
4248else
4249  multilib_arg=
4250fi
4251
4252# Make sure liboffloadmic is enabled
4253case "$enable_liboffloadmic" in
4254  host | target)
4255    ;;
4256  *)
4257    as_fn_error "Liboffloadmic is disabled" "$LINENO" 5 ;;
4258esac
4259 if test x"$enable_liboffloadmic" = xhost; then
4260  PLUGIN_HOST_TRUE=
4261  PLUGIN_HOST_FALSE='#'
4262else
4263  PLUGIN_HOST_TRUE='#'
4264  PLUGIN_HOST_FALSE=
4265fi
4266
4267
4268# Get accel target and path to build or install tree of accel compiler
4269accel_search_dir=
4270accel_target=
4271if test x"$enable_liboffloadmic" = xhost; then
4272  for accel in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
4273    accel_name=`echo $accel | sed 's/=.*//'`
4274    accel_dir=`echo $accel | grep '=' | sed 's/.*=//'`
4275    case "$accel_name" in
4276      *-intelmic-* | *-intelmicemul-*)
4277	accel_target=$accel_name
4278	accel_search_dir=$accel_dir
4279	;;
4280    esac
4281  done
4282  if test x"$accel_target" = x; then
4283    as_fn_error "--enable-offload-targets does not contain intelmic target" "$LINENO" 5
4284  fi
4285fi
4286
4287
4288
4289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4290$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4291# Check whether --enable-version-specific-runtime-libs was given.
4292if test "${enable_version_specific_runtime_libs+set}" = set; then :
4293  enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4294    yes) enable_version_specific_runtime_libs=yes ;;
4295    no)  enable_version_specific_runtime_libs=no ;;
4296    *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
4297   esac
4298else
4299  enable_version_specific_runtime_libs=no
4300fi
4301
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
4303$as_echo "$enable_version_specific_runtime_libs" >&6; }
4304
4305
4306# Calculate toolexeclibdir.
4307# Also toolexecdir, though it's only used in toolexeclibdir.
4308case ${enable_version_specific_runtime_libs} in
4309  yes)
4310    # Need the gcc compiler version to know where to install libraries
4311    # and header files if --enable-version-specific-runtime-libs option
4312    # is selected.
4313    toolexecdir='$(libdir)/gcc/$(target_alias)'
4314    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4315    ;;
4316  no)
4317    if test -n "$with_cross_host" &&
4318       test x"$with_cross_host" != x"no"; then
4319      # Install a library built with a cross compiler in tooldir, not libdir.
4320      toolexecdir='$(exec_prefix)/$(target_alias)'
4321      toolexeclibdir='$(toolexecdir)/lib'
4322    else
4323      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4324      toolexeclibdir='$(libdir)'
4325    fi
4326    multi_os_directory=`$CC -print-multi-os-directory`
4327    case $multi_os_directory in
4328      .) ;; # Avoid trailing /.
4329      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4330    esac
4331    ;;
4332esac
4333
4334enable_dlopen=yes
4335
4336
4337
4338case `pwd` in
4339  *\ * | *\	*)
4340    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4341$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4342esac
4343
4344
4345
4346macro_version='2.2.7a'
4347macro_revision='1.3134'
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361ltmain="$ac_aux_dir/ltmain.sh"
4362
4363# Backslashify metacharacters that are still active within
4364# double-quoted strings.
4365sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4366
4367# Same as above, but do not quote variable references.
4368double_quote_subst='s/\(["`\\]\)/\\\1/g'
4369
4370# Sed substitution to delay expansion of an escaped shell variable in a
4371# double_quote_subst'ed string.
4372delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4373
4374# Sed substitution to delay expansion of an escaped single quote.
4375delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4376
4377# Sed substitution to avoid accidental globbing in evaled expressions
4378no_glob_subst='s/\*/\\\*/g'
4379
4380ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4381ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4382ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4383
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4385$as_echo_n "checking how to print strings... " >&6; }
4386# Test print first, because it will be a builtin if present.
4387if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4388   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4389  ECHO='print -r --'
4390elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4391  ECHO='printf %s\n'
4392else
4393  # Use this function as a fallback that always works.
4394  func_fallback_echo ()
4395  {
4396    eval 'cat <<_LTECHO_EOF
4397$1
4398_LTECHO_EOF'
4399  }
4400  ECHO='func_fallback_echo'
4401fi
4402
4403# func_echo_all arg...
4404# Invoke $ECHO with all args, space-separated.
4405func_echo_all ()
4406{
4407    $ECHO ""
4408}
4409
4410case "$ECHO" in
4411  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4412$as_echo "printf" >&6; } ;;
4413  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4414$as_echo "print -r" >&6; } ;;
4415  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4416$as_echo "cat" >&6; } ;;
4417esac
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4433$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4434if test "${ac_cv_path_SED+set}" = set; then :
4435  $as_echo_n "(cached) " >&6
4436else
4437            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4438     for ac_i in 1 2 3 4 5 6 7; do
4439       ac_script="$ac_script$as_nl$ac_script"
4440     done
4441     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4442     { ac_script=; unset ac_script;}
4443     if test -z "$SED"; then
4444  ac_path_SED_found=false
4445  # Loop through the user's path and test for each of PROGNAME-LIST
4446  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH
4448do
4449  IFS=$as_save_IFS
4450  test -z "$as_dir" && as_dir=.
4451    for ac_prog in sed gsed; do
4452    for ac_exec_ext in '' $ac_executable_extensions; do
4453      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4454      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4455# Check for GNU ac_path_SED and select it if it is found.
4456  # Check for GNU $ac_path_SED
4457case `"$ac_path_SED" --version 2>&1` in
4458*GNU*)
4459  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4460*)
4461  ac_count=0
4462  $as_echo_n 0123456789 >"conftest.in"
4463  while :
4464  do
4465    cat "conftest.in" "conftest.in" >"conftest.tmp"
4466    mv "conftest.tmp" "conftest.in"
4467    cp "conftest.in" "conftest.nl"
4468    $as_echo '' >> "conftest.nl"
4469    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4470    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4471    as_fn_arith $ac_count + 1 && ac_count=$as_val
4472    if test $ac_count -gt ${ac_path_SED_max-0}; then
4473      # Best one so far, save it but keep looking for a better one
4474      ac_cv_path_SED="$ac_path_SED"
4475      ac_path_SED_max=$ac_count
4476    fi
4477    # 10*(2^10) chars as input seems more than enough
4478    test $ac_count -gt 10 && break
4479  done
4480  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4481esac
4482
4483      $ac_path_SED_found && break 3
4484    done
4485  done
4486  done
4487IFS=$as_save_IFS
4488  if test -z "$ac_cv_path_SED"; then
4489    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4490  fi
4491else
4492  ac_cv_path_SED=$SED
4493fi
4494
4495fi
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4497$as_echo "$ac_cv_path_SED" >&6; }
4498 SED="$ac_cv_path_SED"
4499  rm -f conftest.sed
4500
4501test -z "$SED" && SED=sed
4502Xsed="$SED -e 1s/^X//"
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4515$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4516if test "${ac_cv_path_GREP+set}" = set; then :
4517  $as_echo_n "(cached) " >&6
4518else
4519  if test -z "$GREP"; then
4520  ac_path_GREP_found=false
4521  # Loop through the user's path and test for each of PROGNAME-LIST
4522  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4524do
4525  IFS=$as_save_IFS
4526  test -z "$as_dir" && as_dir=.
4527    for ac_prog in grep ggrep; do
4528    for ac_exec_ext in '' $ac_executable_extensions; do
4529      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4530      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4531# Check for GNU ac_path_GREP and select it if it is found.
4532  # Check for GNU $ac_path_GREP
4533case `"$ac_path_GREP" --version 2>&1` in
4534*GNU*)
4535  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4536*)
4537  ac_count=0
4538  $as_echo_n 0123456789 >"conftest.in"
4539  while :
4540  do
4541    cat "conftest.in" "conftest.in" >"conftest.tmp"
4542    mv "conftest.tmp" "conftest.in"
4543    cp "conftest.in" "conftest.nl"
4544    $as_echo 'GREP' >> "conftest.nl"
4545    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4546    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4547    as_fn_arith $ac_count + 1 && ac_count=$as_val
4548    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4549      # Best one so far, save it but keep looking for a better one
4550      ac_cv_path_GREP="$ac_path_GREP"
4551      ac_path_GREP_max=$ac_count
4552    fi
4553    # 10*(2^10) chars as input seems more than enough
4554    test $ac_count -gt 10 && break
4555  done
4556  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4557esac
4558
4559      $ac_path_GREP_found && break 3
4560    done
4561  done
4562  done
4563IFS=$as_save_IFS
4564  if test -z "$ac_cv_path_GREP"; then
4565    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4566  fi
4567else
4568  ac_cv_path_GREP=$GREP
4569fi
4570
4571fi
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4573$as_echo "$ac_cv_path_GREP" >&6; }
4574 GREP="$ac_cv_path_GREP"
4575
4576
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4578$as_echo_n "checking for egrep... " >&6; }
4579if test "${ac_cv_path_EGREP+set}" = set; then :
4580  $as_echo_n "(cached) " >&6
4581else
4582  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4583   then ac_cv_path_EGREP="$GREP -E"
4584   else
4585     if test -z "$EGREP"; then
4586  ac_path_EGREP_found=false
4587  # Loop through the user's path and test for each of PROGNAME-LIST
4588  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4590do
4591  IFS=$as_save_IFS
4592  test -z "$as_dir" && as_dir=.
4593    for ac_prog in egrep; do
4594    for ac_exec_ext in '' $ac_executable_extensions; do
4595      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4596      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4597# Check for GNU ac_path_EGREP and select it if it is found.
4598  # Check for GNU $ac_path_EGREP
4599case `"$ac_path_EGREP" --version 2>&1` in
4600*GNU*)
4601  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4602*)
4603  ac_count=0
4604  $as_echo_n 0123456789 >"conftest.in"
4605  while :
4606  do
4607    cat "conftest.in" "conftest.in" >"conftest.tmp"
4608    mv "conftest.tmp" "conftest.in"
4609    cp "conftest.in" "conftest.nl"
4610    $as_echo 'EGREP' >> "conftest.nl"
4611    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4612    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4613    as_fn_arith $ac_count + 1 && ac_count=$as_val
4614    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4615      # Best one so far, save it but keep looking for a better one
4616      ac_cv_path_EGREP="$ac_path_EGREP"
4617      ac_path_EGREP_max=$ac_count
4618    fi
4619    # 10*(2^10) chars as input seems more than enough
4620    test $ac_count -gt 10 && break
4621  done
4622  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4623esac
4624
4625      $ac_path_EGREP_found && break 3
4626    done
4627  done
4628  done
4629IFS=$as_save_IFS
4630  if test -z "$ac_cv_path_EGREP"; then
4631    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4632  fi
4633else
4634  ac_cv_path_EGREP=$EGREP
4635fi
4636
4637   fi
4638fi
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4640$as_echo "$ac_cv_path_EGREP" >&6; }
4641 EGREP="$ac_cv_path_EGREP"
4642
4643
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4645$as_echo_n "checking for fgrep... " >&6; }
4646if test "${ac_cv_path_FGREP+set}" = set; then :
4647  $as_echo_n "(cached) " >&6
4648else
4649  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4650   then ac_cv_path_FGREP="$GREP -F"
4651   else
4652     if test -z "$FGREP"; then
4653  ac_path_FGREP_found=false
4654  # Loop through the user's path and test for each of PROGNAME-LIST
4655  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4657do
4658  IFS=$as_save_IFS
4659  test -z "$as_dir" && as_dir=.
4660    for ac_prog in fgrep; do
4661    for ac_exec_ext in '' $ac_executable_extensions; do
4662      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4663      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4664# Check for GNU ac_path_FGREP and select it if it is found.
4665  # Check for GNU $ac_path_FGREP
4666case `"$ac_path_FGREP" --version 2>&1` in
4667*GNU*)
4668  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4669*)
4670  ac_count=0
4671  $as_echo_n 0123456789 >"conftest.in"
4672  while :
4673  do
4674    cat "conftest.in" "conftest.in" >"conftest.tmp"
4675    mv "conftest.tmp" "conftest.in"
4676    cp "conftest.in" "conftest.nl"
4677    $as_echo 'FGREP' >> "conftest.nl"
4678    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4679    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4680    as_fn_arith $ac_count + 1 && ac_count=$as_val
4681    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4682      # Best one so far, save it but keep looking for a better one
4683      ac_cv_path_FGREP="$ac_path_FGREP"
4684      ac_path_FGREP_max=$ac_count
4685    fi
4686    # 10*(2^10) chars as input seems more than enough
4687    test $ac_count -gt 10 && break
4688  done
4689  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4690esac
4691
4692      $ac_path_FGREP_found && break 3
4693    done
4694  done
4695  done
4696IFS=$as_save_IFS
4697  if test -z "$ac_cv_path_FGREP"; then
4698    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4699  fi
4700else
4701  ac_cv_path_FGREP=$FGREP
4702fi
4703
4704   fi
4705fi
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4707$as_echo "$ac_cv_path_FGREP" >&6; }
4708 FGREP="$ac_cv_path_FGREP"
4709
4710
4711test -z "$GREP" && GREP=grep
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731# Check whether --with-gnu-ld was given.
4732if test "${with_gnu_ld+set}" = set; then :
4733  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4734else
4735  with_gnu_ld=no
4736fi
4737
4738ac_prog=ld
4739if test "$GCC" = yes; then
4740  # Check if gcc -print-prog-name=ld gives a path.
4741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4742$as_echo_n "checking for ld used by $CC... " >&6; }
4743  case $host in
4744  *-*-mingw*)
4745    # gcc leaves a trailing carriage return which upsets mingw
4746    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4747  *)
4748    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4749  esac
4750  case $ac_prog in
4751    # Accept absolute paths.
4752    [\\/]* | ?:[\\/]*)
4753      re_direlt='/[^/][^/]*/\.\./'
4754      # Canonicalize the pathname of ld
4755      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4756      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4757	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4758      done
4759      test -z "$LD" && LD="$ac_prog"
4760      ;;
4761  "")
4762    # If it fails, then pretend we aren't using GCC.
4763    ac_prog=ld
4764    ;;
4765  *)
4766    # If it is relative, then search for the first ld in PATH.
4767    with_gnu_ld=unknown
4768    ;;
4769  esac
4770elif test "$with_gnu_ld" = yes; then
4771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4772$as_echo_n "checking for GNU ld... " >&6; }
4773else
4774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4775$as_echo_n "checking for non-GNU ld... " >&6; }
4776fi
4777if test "${lt_cv_path_LD+set}" = set; then :
4778  $as_echo_n "(cached) " >&6
4779else
4780  if test -z "$LD"; then
4781  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4782  for ac_dir in $PATH; do
4783    IFS="$lt_save_ifs"
4784    test -z "$ac_dir" && ac_dir=.
4785    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4786      lt_cv_path_LD="$ac_dir/$ac_prog"
4787      # Check to see if the program is GNU ld.  I'd rather use --version,
4788      # but apparently some variants of GNU ld only accept -v.
4789      # Break only if it was the GNU/non-GNU ld that we prefer.
4790      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4791      *GNU* | *'with BFD'*)
4792	test "$with_gnu_ld" != no && break
4793	;;
4794      *)
4795	test "$with_gnu_ld" != yes && break
4796	;;
4797      esac
4798    fi
4799  done
4800  IFS="$lt_save_ifs"
4801else
4802  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4803fi
4804fi
4805
4806LD="$lt_cv_path_LD"
4807if test -n "$LD"; then
4808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4809$as_echo "$LD" >&6; }
4810else
4811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812$as_echo "no" >&6; }
4813fi
4814test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4816$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4817if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4821case `$LD -v 2>&1 </dev/null` in
4822*GNU* | *'with BFD'*)
4823  lt_cv_prog_gnu_ld=yes
4824  ;;
4825*)
4826  lt_cv_prog_gnu_ld=no
4827  ;;
4828esac
4829fi
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4831$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4832with_gnu_ld=$lt_cv_prog_gnu_ld
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4843$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4844if test "${lt_cv_path_NM+set}" = set; then :
4845  $as_echo_n "(cached) " >&6
4846else
4847  if test -n "$NM"; then
4848  # Let the user override the test.
4849  lt_cv_path_NM="$NM"
4850else
4851  lt_nm_to_check="${ac_tool_prefix}nm"
4852  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4853    lt_nm_to_check="$lt_nm_to_check nm"
4854  fi
4855  for lt_tmp_nm in $lt_nm_to_check; do
4856    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4857    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4858      IFS="$lt_save_ifs"
4859      test -z "$ac_dir" && ac_dir=.
4860      tmp_nm="$ac_dir/$lt_tmp_nm"
4861      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4862	# Check to see if the nm accepts a BSD-compat flag.
4863	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4864	#   nm: unknown option "B" ignored
4865	# Tru64's nm complains that /dev/null is an invalid object file
4866	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4867	*/dev/null* | *'Invalid file or object type'*)
4868	  lt_cv_path_NM="$tmp_nm -B"
4869	  break
4870	  ;;
4871	*)
4872	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4873	  */dev/null*)
4874	    lt_cv_path_NM="$tmp_nm -p"
4875	    break
4876	    ;;
4877	  *)
4878	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4879	    continue # so that we can try to find one that supports BSD flags
4880	    ;;
4881	  esac
4882	  ;;
4883	esac
4884      fi
4885    done
4886    IFS="$lt_save_ifs"
4887  done
4888  : ${lt_cv_path_NM=no}
4889fi
4890fi
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4892$as_echo "$lt_cv_path_NM" >&6; }
4893if test "$lt_cv_path_NM" != "no"; then
4894  NM="$lt_cv_path_NM"
4895else
4896  # Didn't find any BSD compatible name lister, look for dumpbin.
4897  if test -n "$DUMPBIN"; then :
4898    # Let the user override the test.
4899  else
4900    if test -n "$ac_tool_prefix"; then
4901  for ac_prog in dumpbin "link -dump"
4902  do
4903    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4904set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906$as_echo_n "checking for $ac_word... " >&6; }
4907if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4908  $as_echo_n "(cached) " >&6
4909else
4910  if test -n "$DUMPBIN"; then
4911  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4912else
4913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914for as_dir in $PATH
4915do
4916  IFS=$as_save_IFS
4917  test -z "$as_dir" && as_dir=.
4918    for ac_exec_ext in '' $ac_executable_extensions; do
4919  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922    break 2
4923  fi
4924done
4925  done
4926IFS=$as_save_IFS
4927
4928fi
4929fi
4930DUMPBIN=$ac_cv_prog_DUMPBIN
4931if test -n "$DUMPBIN"; then
4932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4933$as_echo "$DUMPBIN" >&6; }
4934else
4935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936$as_echo "no" >&6; }
4937fi
4938
4939
4940    test -n "$DUMPBIN" && break
4941  done
4942fi
4943if test -z "$DUMPBIN"; then
4944  ac_ct_DUMPBIN=$DUMPBIN
4945  for ac_prog in dumpbin "link -dump"
4946do
4947  # Extract the first word of "$ac_prog", so it can be a program name with args.
4948set dummy $ac_prog; ac_word=$2
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950$as_echo_n "checking for $ac_word... " >&6; }
4951if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4952  $as_echo_n "(cached) " >&6
4953else
4954  if test -n "$ac_ct_DUMPBIN"; then
4955  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4956else
4957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958for as_dir in $PATH
4959do
4960  IFS=$as_save_IFS
4961  test -z "$as_dir" && as_dir=.
4962    for ac_exec_ext in '' $ac_executable_extensions; do
4963  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966    break 2
4967  fi
4968done
4969  done
4970IFS=$as_save_IFS
4971
4972fi
4973fi
4974ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4975if test -n "$ac_ct_DUMPBIN"; then
4976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4977$as_echo "$ac_ct_DUMPBIN" >&6; }
4978else
4979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980$as_echo "no" >&6; }
4981fi
4982
4983
4984  test -n "$ac_ct_DUMPBIN" && break
4985done
4986
4987  if test "x$ac_ct_DUMPBIN" = x; then
4988    DUMPBIN=":"
4989  else
4990    case $cross_compiling:$ac_tool_warned in
4991yes:)
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4994ac_tool_warned=yes ;;
4995esac
4996    DUMPBIN=$ac_ct_DUMPBIN
4997  fi
4998fi
4999
5000    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5001    *COFF*)
5002      DUMPBIN="$DUMPBIN -symbols"
5003      ;;
5004    *)
5005      DUMPBIN=:
5006      ;;
5007    esac
5008  fi
5009
5010  if test "$DUMPBIN" != ":"; then
5011    NM="$DUMPBIN"
5012  fi
5013fi
5014test -z "$NM" && NM=nm
5015
5016
5017
5018
5019
5020
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5022$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5023if test "${lt_cv_nm_interface+set}" = set; then :
5024  $as_echo_n "(cached) " >&6
5025else
5026  lt_cv_nm_interface="BSD nm"
5027  echo "int some_variable = 0;" > conftest.$ac_ext
5028  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5029  (eval "$ac_compile" 2>conftest.err)
5030  cat conftest.err >&5
5031  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5032  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5033  cat conftest.err >&5
5034  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5035  cat conftest.out >&5
5036  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5037    lt_cv_nm_interface="MS dumpbin"
5038  fi
5039  rm -f conftest*
5040fi
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5042$as_echo "$lt_cv_nm_interface" >&6; }
5043
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5045$as_echo_n "checking whether ln -s works... " >&6; }
5046LN_S=$as_ln_s
5047if test "$LN_S" = "ln -s"; then
5048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5049$as_echo "yes" >&6; }
5050else
5051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5052$as_echo "no, using $LN_S" >&6; }
5053fi
5054
5055# find the maximum length of command line arguments
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5057$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5058if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5059  $as_echo_n "(cached) " >&6
5060else
5061    i=0
5062  teststring="ABCD"
5063
5064  case $build_os in
5065  msdosdjgpp*)
5066    # On DJGPP, this test can blow up pretty badly due to problems in libc
5067    # (any single argument exceeding 2000 bytes causes a buffer overrun
5068    # during glob expansion).  Even if it were fixed, the result of this
5069    # check would be larger than it should be.
5070    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5071    ;;
5072
5073  gnu*)
5074    # Under GNU Hurd, this test is not required because there is
5075    # no limit to the length of command line arguments.
5076    # Libtool will interpret -1 as no limit whatsoever
5077    lt_cv_sys_max_cmd_len=-1;
5078    ;;
5079
5080  cygwin* | mingw* | cegcc*)
5081    # On Win9x/ME, this test blows up -- it succeeds, but takes
5082    # about 5 minutes as the teststring grows exponentially.
5083    # Worse, since 9x/ME are not pre-emptively multitasking,
5084    # you end up with a "frozen" computer, even though with patience
5085    # the test eventually succeeds (with a max line length of 256k).
5086    # Instead, let's just punt: use the minimum linelength reported by
5087    # all of the supported platforms: 8192 (on NT/2K/XP).
5088    lt_cv_sys_max_cmd_len=8192;
5089    ;;
5090
5091  mint*)
5092    # On MiNT this can take a long time and run out of memory.
5093    lt_cv_sys_max_cmd_len=8192;
5094    ;;
5095
5096  amigaos*)
5097    # On AmigaOS with pdksh, this test takes hours, literally.
5098    # So we just punt and use a minimum line length of 8192.
5099    lt_cv_sys_max_cmd_len=8192;
5100    ;;
5101
5102  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5103    # This has been around since 386BSD, at least.  Likely further.
5104    if test -x /sbin/sysctl; then
5105      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5106    elif test -x /usr/sbin/sysctl; then
5107      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5108    else
5109      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5110    fi
5111    # And add a safety zone
5112    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5113    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5114    ;;
5115
5116  interix*)
5117    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5118    lt_cv_sys_max_cmd_len=196608
5119    ;;
5120
5121  osf*)
5122    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5123    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5124    # nice to cause kernel panics so lets avoid the loop below.
5125    # First set a reasonable default.
5126    lt_cv_sys_max_cmd_len=16384
5127    #
5128    if test -x /sbin/sysconfig; then
5129      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5130        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5131      esac
5132    fi
5133    ;;
5134  sco3.2v5*)
5135    lt_cv_sys_max_cmd_len=102400
5136    ;;
5137  sysv5* | sco5v6* | sysv4.2uw2*)
5138    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5139    if test -n "$kargmax"; then
5140      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5141    else
5142      lt_cv_sys_max_cmd_len=32768
5143    fi
5144    ;;
5145  *)
5146    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5147    if test -n "$lt_cv_sys_max_cmd_len"; then
5148      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5149      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5150    else
5151      # Make teststring a little bigger before we do anything with it.
5152      # a 1K string should be a reasonable start.
5153      for i in 1 2 3 4 5 6 7 8 ; do
5154        teststring=$teststring$teststring
5155      done
5156      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5157      # If test is not a shell built-in, we'll probably end up computing a
5158      # maximum length that is only half of the actual maximum length, but
5159      # we can't tell.
5160      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5161	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5162	      test $i != 17 # 1/2 MB should be enough
5163      do
5164        i=`expr $i + 1`
5165        teststring=$teststring$teststring
5166      done
5167      # Only check the string length outside the loop.
5168      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5169      teststring=
5170      # Add a significant safety factor because C++ compilers can tack on
5171      # massive amounts of additional arguments before passing them to the
5172      # linker.  It appears as though 1/2 is a usable value.
5173      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5174    fi
5175    ;;
5176  esac
5177
5178fi
5179
5180if test -n $lt_cv_sys_max_cmd_len ; then
5181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5182$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5183else
5184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5185$as_echo "none" >&6; }
5186fi
5187max_cmd_len=$lt_cv_sys_max_cmd_len
5188
5189
5190
5191
5192
5193
5194: ${CP="cp -f"}
5195: ${MV="mv -f"}
5196: ${RM="rm -f"}
5197
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5199$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5200# Try some XSI features
5201xsi_shell=no
5202( _lt_dummy="a/b/c"
5203  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5204      = c,a/b,, \
5205    && eval 'test $(( 1 + 1 )) -eq 2 \
5206    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5207  && xsi_shell=yes
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5209$as_echo "$xsi_shell" >&6; }
5210
5211
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5213$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5214lt_shell_append=no
5215( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5216    >/dev/null 2>&1 \
5217  && lt_shell_append=yes
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5219$as_echo "$lt_shell_append" >&6; }
5220
5221
5222if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5223  lt_unset=unset
5224else
5225  lt_unset=false
5226fi
5227
5228
5229
5230
5231
5232# test EBCDIC or ASCII
5233case `echo X|tr X '\101'` in
5234 A) # ASCII based system
5235    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5236  lt_SP2NL='tr \040 \012'
5237  lt_NL2SP='tr \015\012 \040\040'
5238  ;;
5239 *) # EBCDIC based system
5240  lt_SP2NL='tr \100 \n'
5241  lt_NL2SP='tr \r\n \100\100'
5242  ;;
5243esac
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5254$as_echo_n "checking for $LD option to reload object files... " >&6; }
5255if test "${lt_cv_ld_reload_flag+set}" = set; then :
5256  $as_echo_n "(cached) " >&6
5257else
5258  lt_cv_ld_reload_flag='-r'
5259fi
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5261$as_echo "$lt_cv_ld_reload_flag" >&6; }
5262reload_flag=$lt_cv_ld_reload_flag
5263case $reload_flag in
5264"" | " "*) ;;
5265*) reload_flag=" $reload_flag" ;;
5266esac
5267reload_cmds='$LD$reload_flag -o $output$reload_objs'
5268case $host_os in
5269  darwin*)
5270    if test "$GCC" = yes; then
5271      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5272    else
5273      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5274    fi
5275    ;;
5276esac
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286if test -n "$ac_tool_prefix"; then
5287  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5288set dummy ${ac_tool_prefix}objdump; ac_word=$2
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290$as_echo_n "checking for $ac_word... " >&6; }
5291if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294  if test -n "$OBJDUMP"; then
5295  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5296else
5297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298for as_dir in $PATH
5299do
5300  IFS=$as_save_IFS
5301  test -z "$as_dir" && as_dir=.
5302    for ac_exec_ext in '' $ac_executable_extensions; do
5303  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5304    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306    break 2
5307  fi
5308done
5309  done
5310IFS=$as_save_IFS
5311
5312fi
5313fi
5314OBJDUMP=$ac_cv_prog_OBJDUMP
5315if test -n "$OBJDUMP"; then
5316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5317$as_echo "$OBJDUMP" >&6; }
5318else
5319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320$as_echo "no" >&6; }
5321fi
5322
5323
5324fi
5325if test -z "$ac_cv_prog_OBJDUMP"; then
5326  ac_ct_OBJDUMP=$OBJDUMP
5327  # Extract the first word of "objdump", so it can be a program name with args.
5328set dummy objdump; ac_word=$2
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330$as_echo_n "checking for $ac_word... " >&6; }
5331if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5332  $as_echo_n "(cached) " >&6
5333else
5334  if test -n "$ac_ct_OBJDUMP"; then
5335  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5336else
5337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338for as_dir in $PATH
5339do
5340  IFS=$as_save_IFS
5341  test -z "$as_dir" && as_dir=.
5342    for ac_exec_ext in '' $ac_executable_extensions; do
5343  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346    break 2
5347  fi
5348done
5349  done
5350IFS=$as_save_IFS
5351
5352fi
5353fi
5354ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5355if test -n "$ac_ct_OBJDUMP"; then
5356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5357$as_echo "$ac_ct_OBJDUMP" >&6; }
5358else
5359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360$as_echo "no" >&6; }
5361fi
5362
5363  if test "x$ac_ct_OBJDUMP" = x; then
5364    OBJDUMP="false"
5365  else
5366    case $cross_compiling:$ac_tool_warned in
5367yes:)
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5370ac_tool_warned=yes ;;
5371esac
5372    OBJDUMP=$ac_ct_OBJDUMP
5373  fi
5374else
5375  OBJDUMP="$ac_cv_prog_OBJDUMP"
5376fi
5377
5378test -z "$OBJDUMP" && OBJDUMP=objdump
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5389$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5390if test "${lt_cv_deplibs_check_method+set}" = set; then :
5391  $as_echo_n "(cached) " >&6
5392else
5393  lt_cv_file_magic_cmd='$MAGIC_CMD'
5394lt_cv_file_magic_test_file=
5395lt_cv_deplibs_check_method='unknown'
5396# Need to set the preceding variable on all platforms that support
5397# interlibrary dependencies.
5398# 'none' -- dependencies not supported.
5399# `unknown' -- same as none, but documents that we really don't know.
5400# 'pass_all' -- all dependencies passed with no checks.
5401# 'test_compile' -- check by making test program.
5402# 'file_magic [[regex]]' -- check by looking for files in library path
5403# which responds to the $file_magic_cmd with a given extended regex.
5404# If you have `file' or equivalent on your system and you're not sure
5405# whether `pass_all' will *always* work, you probably want this one.
5406
5407case $host_os in
5408aix[4-9]*)
5409  lt_cv_deplibs_check_method=pass_all
5410  ;;
5411
5412beos*)
5413  lt_cv_deplibs_check_method=pass_all
5414  ;;
5415
5416bsdi[45]*)
5417  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5418  lt_cv_file_magic_cmd='/usr/bin/file -L'
5419  lt_cv_file_magic_test_file=/shlib/libc.so
5420  ;;
5421
5422cygwin*)
5423  # func_win32_libid is a shell function defined in ltmain.sh
5424  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5425  lt_cv_file_magic_cmd='func_win32_libid'
5426  ;;
5427
5428mingw* | pw32*)
5429  # Base MSYS/MinGW do not provide the 'file' command needed by
5430  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5431  # unless we find 'file', for example because we are cross-compiling.
5432  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5433  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5434    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5435    lt_cv_file_magic_cmd='func_win32_libid'
5436  else
5437    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5438    lt_cv_file_magic_cmd='$OBJDUMP -f'
5439  fi
5440  ;;
5441
5442cegcc*)
5443  # use the weaker test based on 'objdump'. See mingw*.
5444  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5445  lt_cv_file_magic_cmd='$OBJDUMP -f'
5446  ;;
5447
5448darwin* | rhapsody*)
5449  lt_cv_deplibs_check_method=pass_all
5450  ;;
5451
5452freebsd* | dragonfly*)
5453  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5454    case $host_cpu in
5455    i*86 )
5456      # Not sure whether the presence of OpenBSD here was a mistake.
5457      # Let's accept both of them until this is cleared up.
5458      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5459      lt_cv_file_magic_cmd=/usr/bin/file
5460      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5461      ;;
5462    esac
5463  else
5464    lt_cv_deplibs_check_method=pass_all
5465  fi
5466  ;;
5467
5468gnu*)
5469  lt_cv_deplibs_check_method=pass_all
5470  ;;
5471
5472haiku*)
5473  lt_cv_deplibs_check_method=pass_all
5474  ;;
5475
5476hpux10.20* | hpux11*)
5477  lt_cv_file_magic_cmd=/usr/bin/file
5478  case $host_cpu in
5479  ia64*)
5480    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5481    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5482    ;;
5483  hppa*64*)
5484    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]'
5485    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5486    ;;
5487  *)
5488    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5489    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5490    ;;
5491  esac
5492  ;;
5493
5494interix[3-9]*)
5495  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5496  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5497  ;;
5498
5499irix5* | irix6* | nonstopux*)
5500  case $LD in
5501  *-32|*"-32 ") libmagic=32-bit;;
5502  *-n32|*"-n32 ") libmagic=N32;;
5503  *-64|*"-64 ") libmagic=64-bit;;
5504  *) libmagic=never-match;;
5505  esac
5506  lt_cv_deplibs_check_method=pass_all
5507  ;;
5508
5509# This must be Linux ELF.
5510linux* | k*bsd*-gnu | kopensolaris*-gnu)
5511  lt_cv_deplibs_check_method=pass_all
5512  ;;
5513
5514netbsd*)
5515  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5516    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5517  else
5518    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5519  fi
5520  ;;
5521
5522newos6*)
5523  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5524  lt_cv_file_magic_cmd=/usr/bin/file
5525  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5526  ;;
5527
5528*nto* | *qnx*)
5529  lt_cv_deplibs_check_method=pass_all
5530  ;;
5531
5532openbsd*)
5533  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5534    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5535  else
5536    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5537  fi
5538  ;;
5539
5540osf3* | osf4* | osf5*)
5541  lt_cv_deplibs_check_method=pass_all
5542  ;;
5543
5544rdos*)
5545  lt_cv_deplibs_check_method=pass_all
5546  ;;
5547
5548solaris*)
5549  lt_cv_deplibs_check_method=pass_all
5550  ;;
5551
5552sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5553  lt_cv_deplibs_check_method=pass_all
5554  ;;
5555
5556sysv4 | sysv4.3*)
5557  case $host_vendor in
5558  motorola)
5559    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]'
5560    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5561    ;;
5562  ncr)
5563    lt_cv_deplibs_check_method=pass_all
5564    ;;
5565  sequent)
5566    lt_cv_file_magic_cmd='/bin/file'
5567    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5568    ;;
5569  sni)
5570    lt_cv_file_magic_cmd='/bin/file'
5571    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5572    lt_cv_file_magic_test_file=/lib/libc.so
5573    ;;
5574  siemens)
5575    lt_cv_deplibs_check_method=pass_all
5576    ;;
5577  pc)
5578    lt_cv_deplibs_check_method=pass_all
5579    ;;
5580  esac
5581  ;;
5582
5583tpf*)
5584  lt_cv_deplibs_check_method=pass_all
5585  ;;
5586esac
5587
5588fi
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5590$as_echo "$lt_cv_deplibs_check_method" >&6; }
5591file_magic_cmd=$lt_cv_file_magic_cmd
5592deplibs_check_method=$lt_cv_deplibs_check_method
5593test -z "$deplibs_check_method" && deplibs_check_method=unknown
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606if test -n "$ac_tool_prefix"; then
5607  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5608set dummy ${ac_tool_prefix}ar; ac_word=$2
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610$as_echo_n "checking for $ac_word... " >&6; }
5611if test "${ac_cv_prog_AR+set}" = set; then :
5612  $as_echo_n "(cached) " >&6
5613else
5614  if test -n "$AR"; then
5615  ac_cv_prog_AR="$AR" # Let the user override the test.
5616else
5617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618for as_dir in $PATH
5619do
5620  IFS=$as_save_IFS
5621  test -z "$as_dir" && as_dir=.
5622    for ac_exec_ext in '' $ac_executable_extensions; do
5623  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624    ac_cv_prog_AR="${ac_tool_prefix}ar"
5625    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626    break 2
5627  fi
5628done
5629  done
5630IFS=$as_save_IFS
5631
5632fi
5633fi
5634AR=$ac_cv_prog_AR
5635if test -n "$AR"; then
5636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5637$as_echo "$AR" >&6; }
5638else
5639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640$as_echo "no" >&6; }
5641fi
5642
5643
5644fi
5645if test -z "$ac_cv_prog_AR"; then
5646  ac_ct_AR=$AR
5647  # Extract the first word of "ar", so it can be a program name with args.
5648set dummy ar; ac_word=$2
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650$as_echo_n "checking for $ac_word... " >&6; }
5651if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5652  $as_echo_n "(cached) " >&6
5653else
5654  if test -n "$ac_ct_AR"; then
5655  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5656else
5657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658for as_dir in $PATH
5659do
5660  IFS=$as_save_IFS
5661  test -z "$as_dir" && as_dir=.
5662    for ac_exec_ext in '' $ac_executable_extensions; do
5663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664    ac_cv_prog_ac_ct_AR="ar"
5665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666    break 2
5667  fi
5668done
5669  done
5670IFS=$as_save_IFS
5671
5672fi
5673fi
5674ac_ct_AR=$ac_cv_prog_ac_ct_AR
5675if test -n "$ac_ct_AR"; then
5676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5677$as_echo "$ac_ct_AR" >&6; }
5678else
5679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680$as_echo "no" >&6; }
5681fi
5682
5683  if test "x$ac_ct_AR" = x; then
5684    AR="false"
5685  else
5686    case $cross_compiling:$ac_tool_warned in
5687yes:)
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5690ac_tool_warned=yes ;;
5691esac
5692    AR=$ac_ct_AR
5693  fi
5694else
5695  AR="$ac_cv_prog_AR"
5696fi
5697
5698test -z "$AR" && AR=ar
5699test -z "$AR_FLAGS" && AR_FLAGS=cru
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711if test -n "$ac_tool_prefix"; then
5712  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5713set dummy ${ac_tool_prefix}strip; ac_word=$2
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715$as_echo_n "checking for $ac_word... " >&6; }
5716if test "${ac_cv_prog_STRIP+set}" = set; then :
5717  $as_echo_n "(cached) " >&6
5718else
5719  if test -n "$STRIP"; then
5720  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5721else
5722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723for as_dir in $PATH
5724do
5725  IFS=$as_save_IFS
5726  test -z "$as_dir" && as_dir=.
5727    for ac_exec_ext in '' $ac_executable_extensions; do
5728  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5729    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731    break 2
5732  fi
5733done
5734  done
5735IFS=$as_save_IFS
5736
5737fi
5738fi
5739STRIP=$ac_cv_prog_STRIP
5740if test -n "$STRIP"; then
5741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5742$as_echo "$STRIP" >&6; }
5743else
5744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745$as_echo "no" >&6; }
5746fi
5747
5748
5749fi
5750if test -z "$ac_cv_prog_STRIP"; then
5751  ac_ct_STRIP=$STRIP
5752  # Extract the first word of "strip", so it can be a program name with args.
5753set dummy strip; ac_word=$2
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755$as_echo_n "checking for $ac_word... " >&6; }
5756if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5757  $as_echo_n "(cached) " >&6
5758else
5759  if test -n "$ac_ct_STRIP"; then
5760  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765  IFS=$as_save_IFS
5766  test -z "$as_dir" && as_dir=.
5767    for ac_exec_ext in '' $ac_executable_extensions; do
5768  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769    ac_cv_prog_ac_ct_STRIP="strip"
5770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771    break 2
5772  fi
5773done
5774  done
5775IFS=$as_save_IFS
5776
5777fi
5778fi
5779ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5780if test -n "$ac_ct_STRIP"; then
5781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5782$as_echo "$ac_ct_STRIP" >&6; }
5783else
5784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785$as_echo "no" >&6; }
5786fi
5787
5788  if test "x$ac_ct_STRIP" = x; then
5789    STRIP=":"
5790  else
5791    case $cross_compiling:$ac_tool_warned in
5792yes:)
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5795ac_tool_warned=yes ;;
5796esac
5797    STRIP=$ac_ct_STRIP
5798  fi
5799else
5800  STRIP="$ac_cv_prog_STRIP"
5801fi
5802
5803test -z "$STRIP" && STRIP=:
5804
5805
5806
5807
5808
5809
5810if test -n "$ac_tool_prefix"; then
5811  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5812set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814$as_echo_n "checking for $ac_word... " >&6; }
5815if test "${ac_cv_prog_RANLIB+set}" = set; then :
5816  $as_echo_n "(cached) " >&6
5817else
5818  if test -n "$RANLIB"; then
5819  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5820else
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824  IFS=$as_save_IFS
5825  test -z "$as_dir" && as_dir=.
5826    for ac_exec_ext in '' $ac_executable_extensions; do
5827  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830    break 2
5831  fi
5832done
5833  done
5834IFS=$as_save_IFS
5835
5836fi
5837fi
5838RANLIB=$ac_cv_prog_RANLIB
5839if test -n "$RANLIB"; then
5840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5841$as_echo "$RANLIB" >&6; }
5842else
5843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844$as_echo "no" >&6; }
5845fi
5846
5847
5848fi
5849if test -z "$ac_cv_prog_RANLIB"; then
5850  ac_ct_RANLIB=$RANLIB
5851  # Extract the first word of "ranlib", so it can be a program name with args.
5852set dummy ranlib; ac_word=$2
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854$as_echo_n "checking for $ac_word... " >&6; }
5855if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5856  $as_echo_n "(cached) " >&6
5857else
5858  if test -n "$ac_ct_RANLIB"; then
5859  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5860else
5861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862for as_dir in $PATH
5863do
5864  IFS=$as_save_IFS
5865  test -z "$as_dir" && as_dir=.
5866    for ac_exec_ext in '' $ac_executable_extensions; do
5867  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868    ac_cv_prog_ac_ct_RANLIB="ranlib"
5869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870    break 2
5871  fi
5872done
5873  done
5874IFS=$as_save_IFS
5875
5876fi
5877fi
5878ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5879if test -n "$ac_ct_RANLIB"; then
5880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5881$as_echo "$ac_ct_RANLIB" >&6; }
5882else
5883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884$as_echo "no" >&6; }
5885fi
5886
5887  if test "x$ac_ct_RANLIB" = x; then
5888    RANLIB=":"
5889  else
5890    case $cross_compiling:$ac_tool_warned in
5891yes:)
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894ac_tool_warned=yes ;;
5895esac
5896    RANLIB=$ac_ct_RANLIB
5897  fi
5898else
5899  RANLIB="$ac_cv_prog_RANLIB"
5900fi
5901
5902test -z "$RANLIB" && RANLIB=:
5903
5904
5905
5906
5907
5908
5909# Determine commands to create old-style static archives.
5910old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5911old_postinstall_cmds='chmod 644 $oldlib'
5912old_postuninstall_cmds=
5913
5914if test -n "$RANLIB"; then
5915  case $host_os in
5916  openbsd*)
5917    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5918    ;;
5919  *)
5920    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5921    ;;
5922  esac
5923  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5924fi
5925
5926case $host_os in
5927  darwin*)
5928    lock_old_archive_extraction=yes ;;
5929  *)
5930    lock_old_archive_extraction=no ;;
5931esac
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971# If no C compiler was specified, use CC.
5972LTCC=${LTCC-"$CC"}
5973
5974# If no C compiler flags were specified, use CFLAGS.
5975LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5976
5977# Allow CC to be a program name with arguments.
5978compiler=$CC
5979
5980
5981# Check for command to grab the raw symbol name followed by C symbol from nm.
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5983$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5984if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5985  $as_echo_n "(cached) " >&6
5986else
5987
5988# These are sane defaults that work on at least a few old systems.
5989# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5990
5991# Character class describing NM global symbol codes.
5992symcode='[BCDEGRST]'
5993
5994# Regexp to match symbols that can be accessed directly from C.
5995sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5996
5997# Define system-specific variables.
5998case $host_os in
5999aix*)
6000  symcode='[BCDT]'
6001  ;;
6002cygwin* | mingw* | pw32* | cegcc*)
6003  symcode='[ABCDGISTW]'
6004  ;;
6005hpux*)
6006  if test "$host_cpu" = ia64; then
6007    symcode='[ABCDEGRST]'
6008  fi
6009  ;;
6010irix* | nonstopux*)
6011  symcode='[BCDEGRST]'
6012  ;;
6013osf*)
6014  symcode='[BCDEGQRST]'
6015  ;;
6016solaris*)
6017  symcode='[BDRT]'
6018  ;;
6019sco3.2v5*)
6020  symcode='[DT]'
6021  ;;
6022sysv4.2uw2*)
6023  symcode='[DT]'
6024  ;;
6025sysv5* | sco5v6* | unixware* | OpenUNIX*)
6026  symcode='[ABDT]'
6027  ;;
6028sysv4)
6029  symcode='[DFNSTU]'
6030  ;;
6031esac
6032
6033# If we're using GNU nm, then use its standard symbol codes.
6034case `$NM -V 2>&1` in
6035*GNU* | *'with BFD'*)
6036  symcode='[ABCDGIRSTW]' ;;
6037esac
6038
6039# Transform an extracted symbol line into a proper C declaration.
6040# Some systems (esp. on ia64) link data and code symbols differently,
6041# so use this general approach.
6042lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6043
6044# Transform an extracted symbol line into symbol name and symbol address
6045lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6046lt_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'"
6047
6048# Handle CRLF in mingw tool chain
6049opt_cr=
6050case $build_os in
6051mingw*)
6052  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6053  ;;
6054esac
6055
6056# Try without a prefix underscore, then with it.
6057for ac_symprfx in "" "_"; do
6058
6059  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6060  symxfrm="\\1 $ac_symprfx\\2 \\2"
6061
6062  # Write the raw and C identifiers.
6063  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6064    # Fake it for dumpbin and say T for any non-static function
6065    # and D for any global variable.
6066    # Also find C++ and __fastcall symbols from MSVC++,
6067    # which start with @ or ?.
6068    lt_cv_sys_global_symbol_pipe="$AWK '"\
6069"     {last_section=section; section=\$ 3};"\
6070"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6071"     \$ 0!~/External *\|/{next};"\
6072"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6073"     {if(hide[section]) next};"\
6074"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6075"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6076"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6077"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6078"     ' prfx=^$ac_symprfx"
6079  else
6080    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6081  fi
6082
6083  # Check to see that the pipe works correctly.
6084  pipe_works=no
6085
6086  rm -f conftest*
6087  cat > conftest.$ac_ext <<_LT_EOF
6088#ifdef __cplusplus
6089extern "C" {
6090#endif
6091char nm_test_var;
6092void nm_test_func(void);
6093void nm_test_func(void){}
6094#ifdef __cplusplus
6095}
6096#endif
6097int main(){nm_test_var='a';nm_test_func();return(0);}
6098_LT_EOF
6099
6100  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6101  (eval $ac_compile) 2>&5
6102  ac_status=$?
6103  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6104  test $ac_status = 0; }; then
6105    # Now try to grab the symbols.
6106    nlist=conftest.nm
6107    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6108  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6109  ac_status=$?
6110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6111  test $ac_status = 0; } && test -s "$nlist"; then
6112      # Try sorting and uniquifying the output.
6113      if sort "$nlist" | uniq > "$nlist"T; then
6114	mv -f "$nlist"T "$nlist"
6115      else
6116	rm -f "$nlist"T
6117      fi
6118
6119      # Make sure that we snagged all the symbols we need.
6120      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6121	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6122	  cat <<_LT_EOF > conftest.$ac_ext
6123#ifdef __cplusplus
6124extern "C" {
6125#endif
6126
6127_LT_EOF
6128	  # Now generate the symbol file.
6129	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6130
6131	  cat <<_LT_EOF >> conftest.$ac_ext
6132
6133/* The mapping between symbol names and symbols.  */
6134const struct {
6135  const char *name;
6136  void       *address;
6137}
6138lt__PROGRAM__LTX_preloaded_symbols[] =
6139{
6140  { "@PROGRAM@", (void *) 0 },
6141_LT_EOF
6142	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6143	  cat <<\_LT_EOF >> conftest.$ac_ext
6144  {0, (void *) 0}
6145};
6146
6147/* This works around a problem in FreeBSD linker */
6148#ifdef FREEBSD_WORKAROUND
6149static const void *lt_preloaded_setup() {
6150  return lt__PROGRAM__LTX_preloaded_symbols;
6151}
6152#endif
6153
6154#ifdef __cplusplus
6155}
6156#endif
6157_LT_EOF
6158	  # Now try linking the two files.
6159	  mv conftest.$ac_objext conftstm.$ac_objext
6160	  lt_save_LIBS="$LIBS"
6161	  lt_save_CFLAGS="$CFLAGS"
6162	  LIBS="conftstm.$ac_objext"
6163	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6164	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6165  (eval $ac_link) 2>&5
6166  ac_status=$?
6167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6168  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6169	    pipe_works=yes
6170	  fi
6171	  LIBS="$lt_save_LIBS"
6172	  CFLAGS="$lt_save_CFLAGS"
6173	else
6174	  echo "cannot find nm_test_func in $nlist" >&5
6175	fi
6176      else
6177	echo "cannot find nm_test_var in $nlist" >&5
6178      fi
6179    else
6180      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6181    fi
6182  else
6183    echo "$progname: failed program was:" >&5
6184    cat conftest.$ac_ext >&5
6185  fi
6186  rm -rf conftest* conftst*
6187
6188  # Do not use the global_symbol_pipe unless it works.
6189  if test "$pipe_works" = yes; then
6190    break
6191  else
6192    lt_cv_sys_global_symbol_pipe=
6193  fi
6194done
6195
6196fi
6197
6198if test -z "$lt_cv_sys_global_symbol_pipe"; then
6199  lt_cv_sys_global_symbol_to_cdecl=
6200fi
6201if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6203$as_echo "failed" >&6; }
6204else
6205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6206$as_echo "ok" >&6; }
6207fi
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231# Check whether --enable-libtool-lock was given.
6232if test "${enable_libtool_lock+set}" = set; then :
6233  enableval=$enable_libtool_lock;
6234fi
6235
6236test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6237
6238# Some flags need to be propagated to the compiler or linker for good
6239# libtool support.
6240case $host in
6241ia64-*-hpux*)
6242  # Find out which ABI we are using.
6243  echo 'int i;' > conftest.$ac_ext
6244  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6245  (eval $ac_compile) 2>&5
6246  ac_status=$?
6247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6248  test $ac_status = 0; }; then
6249    case `/usr/bin/file conftest.$ac_objext` in
6250      *ELF-32*)
6251	HPUX_IA64_MODE="32"
6252	;;
6253      *ELF-64*)
6254	HPUX_IA64_MODE="64"
6255	;;
6256    esac
6257  fi
6258  rm -rf conftest*
6259  ;;
6260*-*-irix6*)
6261  # Find out which ABI we are using.
6262  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6263  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6264  (eval $ac_compile) 2>&5
6265  ac_status=$?
6266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6267  test $ac_status = 0; }; then
6268    if test "$lt_cv_prog_gnu_ld" = yes; then
6269      case `/usr/bin/file conftest.$ac_objext` in
6270	*32-bit*)
6271	  LD="${LD-ld} -melf32bsmip"
6272	  ;;
6273	*N32*)
6274	  LD="${LD-ld} -melf32bmipn32"
6275	  ;;
6276	*64-bit*)
6277	  LD="${LD-ld} -melf64bmip"
6278	;;
6279      esac
6280    else
6281      case `/usr/bin/file conftest.$ac_objext` in
6282	*32-bit*)
6283	  LD="${LD-ld} -32"
6284	  ;;
6285	*N32*)
6286	  LD="${LD-ld} -n32"
6287	  ;;
6288	*64-bit*)
6289	  LD="${LD-ld} -64"
6290	  ;;
6291      esac
6292    fi
6293  fi
6294  rm -rf conftest*
6295  ;;
6296
6297x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6298s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6299  # Find out which ABI we are using.
6300  echo 'int i;' > conftest.$ac_ext
6301  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6302  (eval $ac_compile) 2>&5
6303  ac_status=$?
6304  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305  test $ac_status = 0; }; then
6306    case `/usr/bin/file conftest.o` in
6307      *32-bit*)
6308	case $host in
6309	  x86_64-*kfreebsd*-gnu)
6310	    LD="${LD-ld} -m elf_i386_fbsd"
6311	    ;;
6312	  x86_64-*linux*)
6313	    case `/usr/bin/file conftest.o` in
6314	      *x86-64*)
6315		LD="${LD-ld} -m elf32_x86_64"
6316		;;
6317	      *)
6318		LD="${LD-ld} -m elf_i386"
6319		;;
6320	    esac
6321	    ;;
6322	  powerpc64le-*linux*)
6323	    LD="${LD-ld} -m elf32lppclinux"
6324	    ;;
6325	  powerpc64-*linux*)
6326	    LD="${LD-ld} -m elf32ppclinux"
6327	    ;;
6328	  s390x-*linux*)
6329	    LD="${LD-ld} -m elf_s390"
6330	    ;;
6331	  sparc64-*linux*)
6332	    LD="${LD-ld} -m elf32_sparc"
6333	    ;;
6334	esac
6335	;;
6336      *64-bit*)
6337	case $host in
6338	  x86_64-*kfreebsd*-gnu)
6339	    LD="${LD-ld} -m elf_x86_64_fbsd"
6340	    ;;
6341	  x86_64-*linux*)
6342	    LD="${LD-ld} -m elf_x86_64"
6343	    ;;
6344	  powerpcle-*linux*)
6345	    LD="${LD-ld} -m elf64lppc"
6346	    ;;
6347	  powerpc-*linux*)
6348	    LD="${LD-ld} -m elf64ppc"
6349	    ;;
6350	  s390*-*linux*|s390*-*tpf*)
6351	    LD="${LD-ld} -m elf64_s390"
6352	    ;;
6353	  sparc*-*linux*)
6354	    LD="${LD-ld} -m elf64_sparc"
6355	    ;;
6356	esac
6357	;;
6358    esac
6359  fi
6360  rm -rf conftest*
6361  ;;
6362
6363*-*-sco3.2v5*)
6364  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6365  SAVE_CFLAGS="$CFLAGS"
6366  CFLAGS="$CFLAGS -belf"
6367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6368$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6369if test "${lt_cv_cc_needs_belf+set}" = set; then :
6370  $as_echo_n "(cached) " >&6
6371else
6372  ac_ext=c
6373ac_cpp='$CPP $CPPFLAGS'
6374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6376ac_compiler_gnu=$ac_cv_c_compiler_gnu
6377
6378     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379/* end confdefs.h.  */
6380
6381int
6382main ()
6383{
6384
6385  ;
6386  return 0;
6387}
6388_ACEOF
6389if ac_fn_c_try_link "$LINENO"; then :
6390  lt_cv_cc_needs_belf=yes
6391else
6392  lt_cv_cc_needs_belf=no
6393fi
6394rm -f core conftest.err conftest.$ac_objext \
6395    conftest$ac_exeext conftest.$ac_ext
6396     ac_ext=c
6397ac_cpp='$CPP $CPPFLAGS'
6398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6400ac_compiler_gnu=$ac_cv_c_compiler_gnu
6401
6402fi
6403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6404$as_echo "$lt_cv_cc_needs_belf" >&6; }
6405  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6406    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6407    CFLAGS="$SAVE_CFLAGS"
6408  fi
6409  ;;
6410sparc*-*solaris*)
6411  # Find out which ABI we are using.
6412  echo 'int i;' > conftest.$ac_ext
6413  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6414  (eval $ac_compile) 2>&5
6415  ac_status=$?
6416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6417  test $ac_status = 0; }; then
6418    case `/usr/bin/file conftest.o` in
6419    *64-bit*)
6420      case $lt_cv_prog_gnu_ld in
6421      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6422      *)
6423	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6424	  LD="${LD-ld} -64"
6425	fi
6426	;;
6427      esac
6428      ;;
6429    esac
6430  fi
6431  rm -rf conftest*
6432  ;;
6433esac
6434
6435need_locks="$enable_libtool_lock"
6436
6437
6438  case $host_os in
6439    rhapsody* | darwin*)
6440    if test -n "$ac_tool_prefix"; then
6441  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6442set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444$as_echo_n "checking for $ac_word... " >&6; }
6445if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6446  $as_echo_n "(cached) " >&6
6447else
6448  if test -n "$DSYMUTIL"; then
6449  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6450else
6451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452for as_dir in $PATH
6453do
6454  IFS=$as_save_IFS
6455  test -z "$as_dir" && as_dir=.
6456    for ac_exec_ext in '' $ac_executable_extensions; do
6457  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460    break 2
6461  fi
6462done
6463  done
6464IFS=$as_save_IFS
6465
6466fi
6467fi
6468DSYMUTIL=$ac_cv_prog_DSYMUTIL
6469if test -n "$DSYMUTIL"; then
6470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6471$as_echo "$DSYMUTIL" >&6; }
6472else
6473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474$as_echo "no" >&6; }
6475fi
6476
6477
6478fi
6479if test -z "$ac_cv_prog_DSYMUTIL"; then
6480  ac_ct_DSYMUTIL=$DSYMUTIL
6481  # Extract the first word of "dsymutil", so it can be a program name with args.
6482set dummy dsymutil; ac_word=$2
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484$as_echo_n "checking for $ac_word... " >&6; }
6485if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6486  $as_echo_n "(cached) " >&6
6487else
6488  if test -n "$ac_ct_DSYMUTIL"; then
6489  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6490else
6491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492for as_dir in $PATH
6493do
6494  IFS=$as_save_IFS
6495  test -z "$as_dir" && as_dir=.
6496    for ac_exec_ext in '' $ac_executable_extensions; do
6497  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500    break 2
6501  fi
6502done
6503  done
6504IFS=$as_save_IFS
6505
6506fi
6507fi
6508ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6509if test -n "$ac_ct_DSYMUTIL"; then
6510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6511$as_echo "$ac_ct_DSYMUTIL" >&6; }
6512else
6513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514$as_echo "no" >&6; }
6515fi
6516
6517  if test "x$ac_ct_DSYMUTIL" = x; then
6518    DSYMUTIL=":"
6519  else
6520    case $cross_compiling:$ac_tool_warned in
6521yes:)
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6524ac_tool_warned=yes ;;
6525esac
6526    DSYMUTIL=$ac_ct_DSYMUTIL
6527  fi
6528else
6529  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6530fi
6531
6532    if test -n "$ac_tool_prefix"; then
6533  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6534set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536$as_echo_n "checking for $ac_word... " >&6; }
6537if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6538  $as_echo_n "(cached) " >&6
6539else
6540  if test -n "$NMEDIT"; then
6541  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6542else
6543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544for as_dir in $PATH
6545do
6546  IFS=$as_save_IFS
6547  test -z "$as_dir" && as_dir=.
6548    for ac_exec_ext in '' $ac_executable_extensions; do
6549  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552    break 2
6553  fi
6554done
6555  done
6556IFS=$as_save_IFS
6557
6558fi
6559fi
6560NMEDIT=$ac_cv_prog_NMEDIT
6561if test -n "$NMEDIT"; then
6562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6563$as_echo "$NMEDIT" >&6; }
6564else
6565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566$as_echo "no" >&6; }
6567fi
6568
6569
6570fi
6571if test -z "$ac_cv_prog_NMEDIT"; then
6572  ac_ct_NMEDIT=$NMEDIT
6573  # Extract the first word of "nmedit", so it can be a program name with args.
6574set dummy nmedit; ac_word=$2
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576$as_echo_n "checking for $ac_word... " >&6; }
6577if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6578  $as_echo_n "(cached) " >&6
6579else
6580  if test -n "$ac_ct_NMEDIT"; then
6581  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6582else
6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586  IFS=$as_save_IFS
6587  test -z "$as_dir" && as_dir=.
6588    for ac_exec_ext in '' $ac_executable_extensions; do
6589  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592    break 2
6593  fi
6594done
6595  done
6596IFS=$as_save_IFS
6597
6598fi
6599fi
6600ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6601if test -n "$ac_ct_NMEDIT"; then
6602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6603$as_echo "$ac_ct_NMEDIT" >&6; }
6604else
6605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606$as_echo "no" >&6; }
6607fi
6608
6609  if test "x$ac_ct_NMEDIT" = x; then
6610    NMEDIT=":"
6611  else
6612    case $cross_compiling:$ac_tool_warned in
6613yes:)
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616ac_tool_warned=yes ;;
6617esac
6618    NMEDIT=$ac_ct_NMEDIT
6619  fi
6620else
6621  NMEDIT="$ac_cv_prog_NMEDIT"
6622fi
6623
6624    if test -n "$ac_tool_prefix"; then
6625  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6626set dummy ${ac_tool_prefix}lipo; 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_LIPO+set}" = set; then :
6630  $as_echo_n "(cached) " >&6
6631else
6632  if test -n "$LIPO"; then
6633  ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo"
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
6652LIPO=$ac_cv_prog_LIPO
6653if test -n "$LIPO"; then
6654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6655$as_echo "$LIPO" >&6; }
6656else
6657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658$as_echo "no" >&6; }
6659fi
6660
6661
6662fi
6663if test -z "$ac_cv_prog_LIPO"; then
6664  ac_ct_LIPO=$LIPO
6665  # Extract the first word of "lipo", so it can be a program name with args.
6666set dummy lipo; ac_word=$2
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668$as_echo_n "checking for $ac_word... " >&6; }
6669if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6670  $as_echo_n "(cached) " >&6
6671else
6672  if test -n "$ac_ct_LIPO"; then
6673  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6674else
6675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676for as_dir in $PATH
6677do
6678  IFS=$as_save_IFS
6679  test -z "$as_dir" && as_dir=.
6680    for ac_exec_ext in '' $ac_executable_extensions; do
6681  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682    ac_cv_prog_ac_ct_LIPO="lipo"
6683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684    break 2
6685  fi
6686done
6687  done
6688IFS=$as_save_IFS
6689
6690fi
6691fi
6692ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6693if test -n "$ac_ct_LIPO"; then
6694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6695$as_echo "$ac_ct_LIPO" >&6; }
6696else
6697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698$as_echo "no" >&6; }
6699fi
6700
6701  if test "x$ac_ct_LIPO" = x; then
6702    LIPO=":"
6703  else
6704    case $cross_compiling:$ac_tool_warned in
6705yes:)
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708ac_tool_warned=yes ;;
6709esac
6710    LIPO=$ac_ct_LIPO
6711  fi
6712else
6713  LIPO="$ac_cv_prog_LIPO"
6714fi
6715
6716    if test -n "$ac_tool_prefix"; then
6717  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6718set dummy ${ac_tool_prefix}otool; ac_word=$2
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720$as_echo_n "checking for $ac_word... " >&6; }
6721if test "${ac_cv_prog_OTOOL+set}" = set; then :
6722  $as_echo_n "(cached) " >&6
6723else
6724  if test -n "$OTOOL"; then
6725  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6726else
6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730  IFS=$as_save_IFS
6731  test -z "$as_dir" && as_dir=.
6732    for ac_exec_ext in '' $ac_executable_extensions; do
6733  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736    break 2
6737  fi
6738done
6739  done
6740IFS=$as_save_IFS
6741
6742fi
6743fi
6744OTOOL=$ac_cv_prog_OTOOL
6745if test -n "$OTOOL"; then
6746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6747$as_echo "$OTOOL" >&6; }
6748else
6749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750$as_echo "no" >&6; }
6751fi
6752
6753
6754fi
6755if test -z "$ac_cv_prog_OTOOL"; then
6756  ac_ct_OTOOL=$OTOOL
6757  # Extract the first word of "otool", so it can be a program name with args.
6758set dummy otool; ac_word=$2
6759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760$as_echo_n "checking for $ac_word... " >&6; }
6761if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6762  $as_echo_n "(cached) " >&6
6763else
6764  if test -n "$ac_ct_OTOOL"; then
6765  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6766else
6767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768for as_dir in $PATH
6769do
6770  IFS=$as_save_IFS
6771  test -z "$as_dir" && as_dir=.
6772    for ac_exec_ext in '' $ac_executable_extensions; do
6773  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774    ac_cv_prog_ac_ct_OTOOL="otool"
6775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776    break 2
6777  fi
6778done
6779  done
6780IFS=$as_save_IFS
6781
6782fi
6783fi
6784ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6785if test -n "$ac_ct_OTOOL"; then
6786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6787$as_echo "$ac_ct_OTOOL" >&6; }
6788else
6789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790$as_echo "no" >&6; }
6791fi
6792
6793  if test "x$ac_ct_OTOOL" = x; then
6794    OTOOL=":"
6795  else
6796    case $cross_compiling:$ac_tool_warned in
6797yes:)
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800ac_tool_warned=yes ;;
6801esac
6802    OTOOL=$ac_ct_OTOOL
6803  fi
6804else
6805  OTOOL="$ac_cv_prog_OTOOL"
6806fi
6807
6808    if test -n "$ac_tool_prefix"; then
6809  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6810set dummy ${ac_tool_prefix}otool64; ac_word=$2
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812$as_echo_n "checking for $ac_word... " >&6; }
6813if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6814  $as_echo_n "(cached) " >&6
6815else
6816  if test -n "$OTOOL64"; then
6817  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6818else
6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822  IFS=$as_save_IFS
6823  test -z "$as_dir" && as_dir=.
6824    for ac_exec_ext in '' $ac_executable_extensions; do
6825  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828    break 2
6829  fi
6830done
6831  done
6832IFS=$as_save_IFS
6833
6834fi
6835fi
6836OTOOL64=$ac_cv_prog_OTOOL64
6837if test -n "$OTOOL64"; then
6838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6839$as_echo "$OTOOL64" >&6; }
6840else
6841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842$as_echo "no" >&6; }
6843fi
6844
6845
6846fi
6847if test -z "$ac_cv_prog_OTOOL64"; then
6848  ac_ct_OTOOL64=$OTOOL64
6849  # Extract the first word of "otool64", so it can be a program name with args.
6850set dummy otool64; ac_word=$2
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852$as_echo_n "checking for $ac_word... " >&6; }
6853if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6854  $as_echo_n "(cached) " >&6
6855else
6856  if test -n "$ac_ct_OTOOL64"; then
6857  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6858else
6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862  IFS=$as_save_IFS
6863  test -z "$as_dir" && as_dir=.
6864    for ac_exec_ext in '' $ac_executable_extensions; do
6865  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866    ac_cv_prog_ac_ct_OTOOL64="otool64"
6867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868    break 2
6869  fi
6870done
6871  done
6872IFS=$as_save_IFS
6873
6874fi
6875fi
6876ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6877if test -n "$ac_ct_OTOOL64"; then
6878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6879$as_echo "$ac_ct_OTOOL64" >&6; }
6880else
6881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882$as_echo "no" >&6; }
6883fi
6884
6885  if test "x$ac_ct_OTOOL64" = x; then
6886    OTOOL64=":"
6887  else
6888    case $cross_compiling:$ac_tool_warned in
6889yes:)
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892ac_tool_warned=yes ;;
6893esac
6894    OTOOL64=$ac_ct_OTOOL64
6895  fi
6896else
6897  OTOOL64="$ac_cv_prog_OTOOL64"
6898fi
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6927$as_echo_n "checking for -single_module linker flag... " >&6; }
6928if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6929  $as_echo_n "(cached) " >&6
6930else
6931  lt_cv_apple_cc_single_mod=no
6932      if test -z "${LT_MULTI_MODULE}"; then
6933	# By default we will add the -single_module flag. You can override
6934	# by either setting the environment variable LT_MULTI_MODULE
6935	# non-empty at configure time, or by adding -multi_module to the
6936	# link flags.
6937	rm -rf libconftest.dylib*
6938	echo "int foo(void){return 1;}" > conftest.c
6939	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6940-dynamiclib -Wl,-single_module conftest.c" >&5
6941	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6942	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6943        _lt_result=$?
6944	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6945	  lt_cv_apple_cc_single_mod=yes
6946	else
6947	  cat conftest.err >&5
6948	fi
6949	rm -rf libconftest.dylib*
6950	rm -f conftest.*
6951      fi
6952fi
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6954$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6955    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6956$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6957if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6958  $as_echo_n "(cached) " >&6
6959else
6960  lt_cv_ld_exported_symbols_list=no
6961      save_LDFLAGS=$LDFLAGS
6962      echo "_main" > conftest.sym
6963      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6964      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965/* end confdefs.h.  */
6966
6967int
6968main ()
6969{
6970
6971  ;
6972  return 0;
6973}
6974_ACEOF
6975if ac_fn_c_try_link "$LINENO"; then :
6976  lt_cv_ld_exported_symbols_list=yes
6977else
6978  lt_cv_ld_exported_symbols_list=no
6979fi
6980rm -f core conftest.err conftest.$ac_objext \
6981    conftest$ac_exeext conftest.$ac_ext
6982	LDFLAGS="$save_LDFLAGS"
6983
6984fi
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6986$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6987    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6988$as_echo_n "checking for -force_load linker flag... " >&6; }
6989if test "${lt_cv_ld_force_load+set}" = set; then :
6990  $as_echo_n "(cached) " >&6
6991else
6992  lt_cv_ld_force_load=no
6993      cat > conftest.c << _LT_EOF
6994int forced_loaded() { return 2;}
6995_LT_EOF
6996      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6997      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6998      echo "$AR cru libconftest.a conftest.o" >&5
6999      $AR cru libconftest.a conftest.o 2>&5
7000      cat > conftest.c << _LT_EOF
7001int main() { return 0;}
7002_LT_EOF
7003      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7004      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7005      _lt_result=$?
7006      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7007	lt_cv_ld_force_load=yes
7008      else
7009	cat conftest.err >&5
7010      fi
7011        rm -f conftest.err libconftest.a conftest conftest.c
7012        rm -rf conftest.dSYM
7013
7014fi
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7016$as_echo "$lt_cv_ld_force_load" >&6; }
7017    case $host_os in
7018    rhapsody* | darwin1.[012])
7019      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7020    darwin1.*)
7021      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7022    darwin*) # darwin 5.x on
7023      # if running on 10.5 or later, the deployment target defaults
7024      # to the OS version, if on x86, and 10.4, the deployment
7025      # target defaults to 10.4. Don't you love it?
7026      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7027	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7028	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7029	10.[012]*)
7030	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7031	10.*)
7032	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7033      esac
7034    ;;
7035  esac
7036    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7037      _lt_dar_single_mod='$single_module'
7038    fi
7039    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7040      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7041    else
7042      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7043    fi
7044    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7045      _lt_dsymutil='~$DSYMUTIL $lib || :'
7046    else
7047      _lt_dsymutil=
7048    fi
7049    ;;
7050  esac
7051
7052ac_ext=c
7053ac_cpp='$CPP $CPPFLAGS'
7054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7056ac_compiler_gnu=$ac_cv_c_compiler_gnu
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7058$as_echo_n "checking how to run the C preprocessor... " >&6; }
7059# On Suns, sometimes $CPP names a directory.
7060if test -n "$CPP" && test -d "$CPP"; then
7061  CPP=
7062fi
7063if test -z "$CPP"; then
7064  if test "${ac_cv_prog_CPP+set}" = set; then :
7065  $as_echo_n "(cached) " >&6
7066else
7067      # Double quotes because CPP needs to be expanded
7068    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7069    do
7070      ac_preproc_ok=false
7071for ac_c_preproc_warn_flag in '' yes
7072do
7073  # Use a header file that comes with gcc, so configuring glibc
7074  # with a fresh cross-compiler works.
7075  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7076  # <limits.h> exists even on freestanding compilers.
7077  # On the NeXT, cc -E runs the code through the compiler's parser,
7078  # not just through cpp. "Syntax error" is here to catch this case.
7079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080/* end confdefs.h.  */
7081#ifdef __STDC__
7082# include <limits.h>
7083#else
7084# include <assert.h>
7085#endif
7086		     Syntax error
7087_ACEOF
7088if ac_fn_c_try_cpp "$LINENO"; then :
7089
7090else
7091  # Broken: fails on valid input.
7092continue
7093fi
7094rm -f conftest.err conftest.$ac_ext
7095
7096  # OK, works on sane cases.  Now check whether nonexistent headers
7097  # can be detected and how.
7098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099/* end confdefs.h.  */
7100#include <ac_nonexistent.h>
7101_ACEOF
7102if ac_fn_c_try_cpp "$LINENO"; then :
7103  # Broken: success on invalid input.
7104continue
7105else
7106  # Passes both tests.
7107ac_preproc_ok=:
7108break
7109fi
7110rm -f conftest.err conftest.$ac_ext
7111
7112done
7113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7114rm -f conftest.err conftest.$ac_ext
7115if $ac_preproc_ok; then :
7116  break
7117fi
7118
7119    done
7120    ac_cv_prog_CPP=$CPP
7121
7122fi
7123  CPP=$ac_cv_prog_CPP
7124else
7125  ac_cv_prog_CPP=$CPP
7126fi
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7128$as_echo "$CPP" >&6; }
7129ac_preproc_ok=false
7130for ac_c_preproc_warn_flag in '' yes
7131do
7132  # Use a header file that comes with gcc, so configuring glibc
7133  # with a fresh cross-compiler works.
7134  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7135  # <limits.h> exists even on freestanding compilers.
7136  # On the NeXT, cc -E runs the code through the compiler's parser,
7137  # not just through cpp. "Syntax error" is here to catch this case.
7138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139/* end confdefs.h.  */
7140#ifdef __STDC__
7141# include <limits.h>
7142#else
7143# include <assert.h>
7144#endif
7145		     Syntax error
7146_ACEOF
7147if ac_fn_c_try_cpp "$LINENO"; then :
7148
7149else
7150  # Broken: fails on valid input.
7151continue
7152fi
7153rm -f conftest.err conftest.$ac_ext
7154
7155  # OK, works on sane cases.  Now check whether nonexistent headers
7156  # can be detected and how.
7157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158/* end confdefs.h.  */
7159#include <ac_nonexistent.h>
7160_ACEOF
7161if ac_fn_c_try_cpp "$LINENO"; then :
7162  # Broken: success on invalid input.
7163continue
7164else
7165  # Passes both tests.
7166ac_preproc_ok=:
7167break
7168fi
7169rm -f conftest.err conftest.$ac_ext
7170
7171done
7172# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7173rm -f conftest.err conftest.$ac_ext
7174if $ac_preproc_ok; then :
7175
7176else
7177  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7178$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7179as_fn_error "C preprocessor \"$CPP\" fails sanity check
7180See \`config.log' for more details." "$LINENO" 5; }
7181fi
7182
7183ac_ext=c
7184ac_cpp='$CPP $CPPFLAGS'
7185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7187ac_compiler_gnu=$ac_cv_c_compiler_gnu
7188
7189
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7191$as_echo_n "checking for ANSI C header files... " >&6; }
7192if test "${ac_cv_header_stdc+set}" = set; then :
7193  $as_echo_n "(cached) " >&6
7194else
7195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196/* end confdefs.h.  */
7197#include <stdlib.h>
7198#include <stdarg.h>
7199#include <string.h>
7200#include <float.h>
7201
7202int
7203main ()
7204{
7205
7206  ;
7207  return 0;
7208}
7209_ACEOF
7210if ac_fn_c_try_compile "$LINENO"; then :
7211  ac_cv_header_stdc=yes
7212else
7213  ac_cv_header_stdc=no
7214fi
7215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216
7217if test $ac_cv_header_stdc = yes; then
7218  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220/* end confdefs.h.  */
7221#include <string.h>
7222
7223_ACEOF
7224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7225  $EGREP "memchr" >/dev/null 2>&1; then :
7226
7227else
7228  ac_cv_header_stdc=no
7229fi
7230rm -f conftest*
7231
7232fi
7233
7234if test $ac_cv_header_stdc = yes; then
7235  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237/* end confdefs.h.  */
7238#include <stdlib.h>
7239
7240_ACEOF
7241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7242  $EGREP "free" >/dev/null 2>&1; then :
7243
7244else
7245  ac_cv_header_stdc=no
7246fi
7247rm -f conftest*
7248
7249fi
7250
7251if test $ac_cv_header_stdc = yes; then
7252  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7253  if test "$cross_compiling" = yes; then :
7254  :
7255else
7256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257/* end confdefs.h.  */
7258#include <ctype.h>
7259#include <stdlib.h>
7260#if ((' ' & 0x0FF) == 0x020)
7261# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7262# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7263#else
7264# define ISLOWER(c) \
7265		   (('a' <= (c) && (c) <= 'i') \
7266		     || ('j' <= (c) && (c) <= 'r') \
7267		     || ('s' <= (c) && (c) <= 'z'))
7268# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7269#endif
7270
7271#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7272int
7273main ()
7274{
7275  int i;
7276  for (i = 0; i < 256; i++)
7277    if (XOR (islower (i), ISLOWER (i))
7278	|| toupper (i) != TOUPPER (i))
7279      return 2;
7280  return 0;
7281}
7282_ACEOF
7283if ac_fn_c_try_run "$LINENO"; then :
7284
7285else
7286  ac_cv_header_stdc=no
7287fi
7288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7289  conftest.$ac_objext conftest.beam conftest.$ac_ext
7290fi
7291
7292fi
7293fi
7294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7295$as_echo "$ac_cv_header_stdc" >&6; }
7296if test $ac_cv_header_stdc = yes; then
7297
7298$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7299
7300fi
7301
7302# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7303for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7304		  inttypes.h stdint.h unistd.h
7305do :
7306  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7307ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7308"
7309eval as_val=\$$as_ac_Header
7310   if test "x$as_val" = x""yes; then :
7311  cat >>confdefs.h <<_ACEOF
7312#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7313_ACEOF
7314
7315fi
7316
7317done
7318
7319
7320for ac_header in dlfcn.h
7321do :
7322  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7323"
7324if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7325  cat >>confdefs.h <<_ACEOF
7326#define HAVE_DLFCN_H 1
7327_ACEOF
7328
7329fi
7330
7331done
7332
7333
7334
7335
7336
7337
7338# Set options
7339
7340
7341
7342
7343  enable_win32_dll=no
7344
7345
7346            # Check whether --enable-shared was given.
7347if test "${enable_shared+set}" = set; then :
7348  enableval=$enable_shared; p=${PACKAGE-default}
7349    case $enableval in
7350    yes) enable_shared=yes ;;
7351    no) enable_shared=no ;;
7352    *)
7353      enable_shared=no
7354      # Look at the argument we got.  We use all the common list separators.
7355      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7356      for pkg in $enableval; do
7357	IFS="$lt_save_ifs"
7358	if test "X$pkg" = "X$p"; then
7359	  enable_shared=yes
7360	fi
7361      done
7362      IFS="$lt_save_ifs"
7363      ;;
7364    esac
7365else
7366  enable_shared=yes
7367fi
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377  # Check whether --enable-static was given.
7378if test "${enable_static+set}" = set; then :
7379  enableval=$enable_static; p=${PACKAGE-default}
7380    case $enableval in
7381    yes) enable_static=yes ;;
7382    no) enable_static=no ;;
7383    *)
7384     enable_static=no
7385      # Look at the argument we got.  We use all the common list separators.
7386      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7387      for pkg in $enableval; do
7388	IFS="$lt_save_ifs"
7389	if test "X$pkg" = "X$p"; then
7390	  enable_static=yes
7391	fi
7392      done
7393      IFS="$lt_save_ifs"
7394      ;;
7395    esac
7396else
7397  enable_static=yes
7398fi
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409# Check whether --with-pic was given.
7410if test "${with_pic+set}" = set; then :
7411  withval=$with_pic; pic_mode="$withval"
7412else
7413  pic_mode=default
7414fi
7415
7416
7417test -z "$pic_mode" && pic_mode=default
7418
7419
7420
7421
7422
7423
7424
7425  # Check whether --enable-fast-install was given.
7426if test "${enable_fast_install+set}" = set; then :
7427  enableval=$enable_fast_install; p=${PACKAGE-default}
7428    case $enableval in
7429    yes) enable_fast_install=yes ;;
7430    no) enable_fast_install=no ;;
7431    *)
7432      enable_fast_install=no
7433      # Look at the argument we got.  We use all the common list separators.
7434      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7435      for pkg in $enableval; do
7436	IFS="$lt_save_ifs"
7437	if test "X$pkg" = "X$p"; then
7438	  enable_fast_install=yes
7439	fi
7440      done
7441      IFS="$lt_save_ifs"
7442      ;;
7443    esac
7444else
7445  enable_fast_install=yes
7446fi
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458# This can be used to rebuild libtool when needed
7459LIBTOOL_DEPS="$ltmain"
7460
7461# Always use our own libtool.
7462LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489test -z "$LN_S" && LN_S="ln -s"
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504if test -n "${ZSH_VERSION+set}" ; then
7505   setopt NO_GLOB_SUBST
7506fi
7507
7508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7509$as_echo_n "checking for objdir... " >&6; }
7510if test "${lt_cv_objdir+set}" = set; then :
7511  $as_echo_n "(cached) " >&6
7512else
7513  rm -f .libs 2>/dev/null
7514mkdir .libs 2>/dev/null
7515if test -d .libs; then
7516  lt_cv_objdir=.libs
7517else
7518  # MS-DOS does not allow filenames that begin with a dot.
7519  lt_cv_objdir=_libs
7520fi
7521rmdir .libs 2>/dev/null
7522fi
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7524$as_echo "$lt_cv_objdir" >&6; }
7525objdir=$lt_cv_objdir
7526
7527
7528
7529
7530
7531cat >>confdefs.h <<_ACEOF
7532#define LT_OBJDIR "$lt_cv_objdir/"
7533_ACEOF
7534
7535
7536
7537
7538case $host_os in
7539aix3*)
7540  # AIX sometimes has problems with the GCC collect2 program.  For some
7541  # reason, if we set the COLLECT_NAMES environment variable, the problems
7542  # vanish in a puff of smoke.
7543  if test "X${COLLECT_NAMES+set}" != Xset; then
7544    COLLECT_NAMES=
7545    export COLLECT_NAMES
7546  fi
7547  ;;
7548esac
7549
7550# Global variables:
7551ofile=libtool
7552can_build_shared=yes
7553
7554# All known linkers require a `.a' archive for static linking (except MSVC,
7555# which needs '.lib').
7556libext=a
7557
7558with_gnu_ld="$lt_cv_prog_gnu_ld"
7559
7560old_CC="$CC"
7561old_CFLAGS="$CFLAGS"
7562
7563# Set sane defaults for various variables
7564test -z "$CC" && CC=cc
7565test -z "$LTCC" && LTCC=$CC
7566test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7567test -z "$LD" && LD=ld
7568test -z "$ac_objext" && ac_objext=o
7569
7570for cc_temp in $compiler""; do
7571  case $cc_temp in
7572    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7573    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7574    \-*) ;;
7575    *) break;;
7576  esac
7577done
7578cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7579
7580
7581# Only perform the check for file, if the check method requires it
7582test -z "$MAGIC_CMD" && MAGIC_CMD=file
7583case $deplibs_check_method in
7584file_magic*)
7585  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7586    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7587$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7588if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7589  $as_echo_n "(cached) " >&6
7590else
7591  case $MAGIC_CMD in
7592[\\/*] |  ?:[\\/]*)
7593  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7594  ;;
7595*)
7596  lt_save_MAGIC_CMD="$MAGIC_CMD"
7597  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7598  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7599  for ac_dir in $ac_dummy; do
7600    IFS="$lt_save_ifs"
7601    test -z "$ac_dir" && ac_dir=.
7602    if test -f $ac_dir/${ac_tool_prefix}file; then
7603      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7604      if test -n "$file_magic_test_file"; then
7605	case $deplibs_check_method in
7606	"file_magic "*)
7607	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7608	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7609	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7610	    $EGREP "$file_magic_regex" > /dev/null; then
7611	    :
7612	  else
7613	    cat <<_LT_EOF 1>&2
7614
7615*** Warning: the command libtool uses to detect shared libraries,
7616*** $file_magic_cmd, produces output that libtool cannot recognize.
7617*** The result is that libtool may fail to recognize shared libraries
7618*** as such.  This will affect the creation of libtool libraries that
7619*** depend on shared libraries, but programs linked with such libtool
7620*** libraries will work regardless of this problem.  Nevertheless, you
7621*** may want to report the problem to your system manager and/or to
7622*** bug-libtool@gnu.org
7623
7624_LT_EOF
7625	  fi ;;
7626	esac
7627      fi
7628      break
7629    fi
7630  done
7631  IFS="$lt_save_ifs"
7632  MAGIC_CMD="$lt_save_MAGIC_CMD"
7633  ;;
7634esac
7635fi
7636
7637MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7638if test -n "$MAGIC_CMD"; then
7639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7640$as_echo "$MAGIC_CMD" >&6; }
7641else
7642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643$as_echo "no" >&6; }
7644fi
7645
7646
7647
7648
7649
7650if test -z "$lt_cv_path_MAGIC_CMD"; then
7651  if test -n "$ac_tool_prefix"; then
7652    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7653$as_echo_n "checking for file... " >&6; }
7654if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7655  $as_echo_n "(cached) " >&6
7656else
7657  case $MAGIC_CMD in
7658[\\/*] |  ?:[\\/]*)
7659  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7660  ;;
7661*)
7662  lt_save_MAGIC_CMD="$MAGIC_CMD"
7663  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7664  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7665  for ac_dir in $ac_dummy; do
7666    IFS="$lt_save_ifs"
7667    test -z "$ac_dir" && ac_dir=.
7668    if test -f $ac_dir/file; then
7669      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7670      if test -n "$file_magic_test_file"; then
7671	case $deplibs_check_method in
7672	"file_magic "*)
7673	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7674	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7675	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7676	    $EGREP "$file_magic_regex" > /dev/null; then
7677	    :
7678	  else
7679	    cat <<_LT_EOF 1>&2
7680
7681*** Warning: the command libtool uses to detect shared libraries,
7682*** $file_magic_cmd, produces output that libtool cannot recognize.
7683*** The result is that libtool may fail to recognize shared libraries
7684*** as such.  This will affect the creation of libtool libraries that
7685*** depend on shared libraries, but programs linked with such libtool
7686*** libraries will work regardless of this problem.  Nevertheless, you
7687*** may want to report the problem to your system manager and/or to
7688*** bug-libtool@gnu.org
7689
7690_LT_EOF
7691	  fi ;;
7692	esac
7693      fi
7694      break
7695    fi
7696  done
7697  IFS="$lt_save_ifs"
7698  MAGIC_CMD="$lt_save_MAGIC_CMD"
7699  ;;
7700esac
7701fi
7702
7703MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7704if test -n "$MAGIC_CMD"; then
7705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7706$as_echo "$MAGIC_CMD" >&6; }
7707else
7708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709$as_echo "no" >&6; }
7710fi
7711
7712
7713  else
7714    MAGIC_CMD=:
7715  fi
7716fi
7717
7718  fi
7719  ;;
7720esac
7721
7722# Use C for the default configuration in the libtool script
7723
7724lt_save_CC="$CC"
7725ac_ext=c
7726ac_cpp='$CPP $CPPFLAGS'
7727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7729ac_compiler_gnu=$ac_cv_c_compiler_gnu
7730
7731
7732# Source file extension for C test sources.
7733ac_ext=c
7734
7735# Object file extension for compiled C test sources.
7736objext=o
7737objext=$objext
7738
7739# Code to be used in simple compile tests
7740lt_simple_compile_test_code="int some_variable = 0;"
7741
7742# Code to be used in simple link tests
7743lt_simple_link_test_code='int main(){return(0);}'
7744
7745
7746
7747
7748
7749
7750
7751# If no C compiler was specified, use CC.
7752LTCC=${LTCC-"$CC"}
7753
7754# If no C compiler flags were specified, use CFLAGS.
7755LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7756
7757# Allow CC to be a program name with arguments.
7758compiler=$CC
7759
7760# Save the default compiler, since it gets overwritten when the other
7761# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7762compiler_DEFAULT=$CC
7763
7764# save warnings/boilerplate of simple test code
7765ac_outfile=conftest.$ac_objext
7766echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7767eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7768_lt_compiler_boilerplate=`cat conftest.err`
7769$RM conftest*
7770
7771ac_outfile=conftest.$ac_objext
7772echo "$lt_simple_link_test_code" >conftest.$ac_ext
7773eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7774_lt_linker_boilerplate=`cat conftest.err`
7775$RM -r conftest*
7776
7777
7778## CAVEAT EMPTOR:
7779## There is no encapsulation within the following macros, do not change
7780## the running order or otherwise move them around unless you know exactly
7781## what you are doing...
7782if test -n "$compiler"; then
7783
7784lt_prog_compiler_no_builtin_flag=
7785
7786if test "$GCC" = yes; then
7787  case $cc_basename in
7788  nvcc*)
7789    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7790  *)
7791    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7792  esac
7793
7794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7795$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7796if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7797  $as_echo_n "(cached) " >&6
7798else
7799  lt_cv_prog_compiler_rtti_exceptions=no
7800   ac_outfile=conftest.$ac_objext
7801   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7802   lt_compiler_flag="-fno-rtti -fno-exceptions"
7803   # Insert the option either (1) after the last *FLAGS variable, or
7804   # (2) before a word containing "conftest.", or (3) at the end.
7805   # Note that $ac_compile itself does not contain backslashes and begins
7806   # with a dollar sign (not a hyphen), so the echo should work correctly.
7807   # The option is referenced via a variable to avoid confusing sed.
7808   lt_compile=`echo "$ac_compile" | $SED \
7809   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7810   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7811   -e 's:$: $lt_compiler_flag:'`
7812   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7813   (eval "$lt_compile" 2>conftest.err)
7814   ac_status=$?
7815   cat conftest.err >&5
7816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817   if (exit $ac_status) && test -s "$ac_outfile"; then
7818     # The compiler can only warn and ignore the option if not recognized
7819     # So say no if there are warnings other than the usual output.
7820     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7821     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7822     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7823       lt_cv_prog_compiler_rtti_exceptions=yes
7824     fi
7825   fi
7826   $RM conftest*
7827
7828fi
7829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7830$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7831
7832if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7833    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7834else
7835    :
7836fi
7837
7838fi
7839
7840
7841
7842
7843
7844
7845  lt_prog_compiler_wl=
7846lt_prog_compiler_pic=
7847lt_prog_compiler_static=
7848
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7850$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7851
7852  if test "$GCC" = yes; then
7853    lt_prog_compiler_wl='-Wl,'
7854    lt_prog_compiler_static='-static'
7855
7856    case $host_os in
7857      aix*)
7858      # All AIX code is PIC.
7859      if test "$host_cpu" = ia64; then
7860	# AIX 5 now supports IA64 processor
7861	lt_prog_compiler_static='-Bstatic'
7862      fi
7863      lt_prog_compiler_pic='-fPIC'
7864      ;;
7865
7866    amigaos*)
7867      case $host_cpu in
7868      powerpc)
7869            # see comment about AmigaOS4 .so support
7870            lt_prog_compiler_pic='-fPIC'
7871        ;;
7872      m68k)
7873            # FIXME: we need at least 68020 code to build shared libraries, but
7874            # adding the `-m68020' flag to GCC prevents building anything better,
7875            # like `-m68040'.
7876            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7877        ;;
7878      esac
7879      ;;
7880
7881    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7882      # PIC is the default for these OSes.
7883      ;;
7884
7885    mingw* | cygwin* | pw32* | os2* | cegcc*)
7886      # This hack is so that the source file can tell whether it is being
7887      # built for inclusion in a dll (and should export symbols for example).
7888      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7889      # (--disable-auto-import) libraries
7890      lt_prog_compiler_pic='-DDLL_EXPORT'
7891      ;;
7892
7893    darwin* | rhapsody*)
7894      # PIC is the default on this platform
7895      # Common symbols not allowed in MH_DYLIB files
7896      lt_prog_compiler_pic='-fno-common'
7897      ;;
7898
7899    haiku*)
7900      # PIC is the default for Haiku.
7901      # The "-static" flag exists, but is broken.
7902      lt_prog_compiler_static=
7903      ;;
7904
7905    hpux*)
7906      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7907      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7908      # sets the default TLS model and affects inlining.
7909      case $host_cpu in
7910      hppa*64*)
7911	# +Z the default
7912	;;
7913      *)
7914	lt_prog_compiler_pic='-fPIC'
7915	;;
7916      esac
7917      ;;
7918
7919    interix[3-9]*)
7920      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7921      # Instead, we relocate shared libraries at runtime.
7922      ;;
7923
7924    msdosdjgpp*)
7925      # Just because we use GCC doesn't mean we suddenly get shared libraries
7926      # on systems that don't support them.
7927      lt_prog_compiler_can_build_shared=no
7928      enable_shared=no
7929      ;;
7930
7931    *nto* | *qnx*)
7932      # QNX uses GNU C++, but need to define -shared option too, otherwise
7933      # it will coredump.
7934      lt_prog_compiler_pic='-fPIC -shared'
7935      ;;
7936
7937    sysv4*MP*)
7938      if test -d /usr/nec; then
7939	lt_prog_compiler_pic=-Kconform_pic
7940      fi
7941      ;;
7942
7943    *)
7944      lt_prog_compiler_pic='-fPIC'
7945      ;;
7946    esac
7947
7948    case $cc_basename in
7949    nvcc*) # Cuda Compiler Driver 2.2
7950      lt_prog_compiler_wl='-Xlinker '
7951      lt_prog_compiler_pic='-Xcompiler -fPIC'
7952      ;;
7953    esac
7954  else
7955    # PORTME Check for flag to pass linker flags through the system compiler.
7956    case $host_os in
7957    aix*)
7958      lt_prog_compiler_wl='-Wl,'
7959      if test "$host_cpu" = ia64; then
7960	# AIX 5 now supports IA64 processor
7961	lt_prog_compiler_static='-Bstatic'
7962      else
7963	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7964      fi
7965      ;;
7966
7967    mingw* | cygwin* | pw32* | os2* | cegcc*)
7968      # This hack is so that the source file can tell whether it is being
7969      # built for inclusion in a dll (and should export symbols for example).
7970      lt_prog_compiler_pic='-DDLL_EXPORT'
7971      ;;
7972
7973    hpux9* | hpux10* | hpux11*)
7974      lt_prog_compiler_wl='-Wl,'
7975      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7976      # not for PA HP-UX.
7977      case $host_cpu in
7978      hppa*64*|ia64*)
7979	# +Z the default
7980	;;
7981      *)
7982	lt_prog_compiler_pic='+Z'
7983	;;
7984      esac
7985      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7986      lt_prog_compiler_static='${wl}-a ${wl}archive'
7987      ;;
7988
7989    irix5* | irix6* | nonstopux*)
7990      lt_prog_compiler_wl='-Wl,'
7991      # PIC (with -KPIC) is the default.
7992      lt_prog_compiler_static='-non_shared'
7993      ;;
7994
7995    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7996      case $cc_basename in
7997      # old Intel for x86_64 which still supported -KPIC.
7998      ecc*)
7999	lt_prog_compiler_wl='-Wl,'
8000	lt_prog_compiler_pic='-KPIC'
8001	lt_prog_compiler_static='-static'
8002        ;;
8003      # icc used to be incompatible with GCC.
8004      # ICC 10 doesn't accept -KPIC any more.
8005      icc* | ifort*)
8006	lt_prog_compiler_wl='-Wl,'
8007	lt_prog_compiler_pic='-fPIC'
8008	lt_prog_compiler_static='-static'
8009        ;;
8010      # Lahey Fortran 8.1.
8011      lf95*)
8012	lt_prog_compiler_wl='-Wl,'
8013	lt_prog_compiler_pic='--shared'
8014	lt_prog_compiler_static='--static'
8015	;;
8016      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8017        # Portland Group compilers (*not* the Pentium gcc compiler,
8018	# which looks to be a dead project)
8019	lt_prog_compiler_wl='-Wl,'
8020	lt_prog_compiler_pic='-fpic'
8021	lt_prog_compiler_static='-Bstatic'
8022        ;;
8023      ccc*)
8024        lt_prog_compiler_wl='-Wl,'
8025        # All Alpha code is PIC.
8026        lt_prog_compiler_static='-non_shared'
8027        ;;
8028      xl* | bgxl* | bgf* | mpixl*)
8029	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8030	lt_prog_compiler_wl='-Wl,'
8031	lt_prog_compiler_pic='-qpic'
8032	lt_prog_compiler_static='-qstaticlink'
8033	;;
8034      *)
8035	case `$CC -V 2>&1 | sed 5q` in
8036	*Sun\ F* | *Sun*Fortran*)
8037	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8038	  lt_prog_compiler_pic='-KPIC'
8039	  lt_prog_compiler_static='-Bstatic'
8040	  lt_prog_compiler_wl=''
8041	  ;;
8042	*Sun\ C*)
8043	  # Sun C 5.9
8044	  lt_prog_compiler_pic='-KPIC'
8045	  lt_prog_compiler_static='-Bstatic'
8046	  lt_prog_compiler_wl='-Wl,'
8047	  ;;
8048	esac
8049	;;
8050      esac
8051      ;;
8052
8053    newsos6)
8054      lt_prog_compiler_pic='-KPIC'
8055      lt_prog_compiler_static='-Bstatic'
8056      ;;
8057
8058    *nto* | *qnx*)
8059      # QNX uses GNU C++, but need to define -shared option too, otherwise
8060      # it will coredump.
8061      lt_prog_compiler_pic='-fPIC -shared'
8062      ;;
8063
8064    osf3* | osf4* | osf5*)
8065      lt_prog_compiler_wl='-Wl,'
8066      # All OSF/1 code is PIC.
8067      lt_prog_compiler_static='-non_shared'
8068      ;;
8069
8070    rdos*)
8071      lt_prog_compiler_static='-non_shared'
8072      ;;
8073
8074    solaris*)
8075      lt_prog_compiler_pic='-KPIC'
8076      lt_prog_compiler_static='-Bstatic'
8077      case $cc_basename in
8078      f77* | f90* | f95*)
8079	lt_prog_compiler_wl='-Qoption ld ';;
8080      *)
8081	lt_prog_compiler_wl='-Wl,';;
8082      esac
8083      ;;
8084
8085    sunos4*)
8086      lt_prog_compiler_wl='-Qoption ld '
8087      lt_prog_compiler_pic='-PIC'
8088      lt_prog_compiler_static='-Bstatic'
8089      ;;
8090
8091    sysv4 | sysv4.2uw2* | sysv4.3*)
8092      lt_prog_compiler_wl='-Wl,'
8093      lt_prog_compiler_pic='-KPIC'
8094      lt_prog_compiler_static='-Bstatic'
8095      ;;
8096
8097    sysv4*MP*)
8098      if test -d /usr/nec ;then
8099	lt_prog_compiler_pic='-Kconform_pic'
8100	lt_prog_compiler_static='-Bstatic'
8101      fi
8102      ;;
8103
8104    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8105      lt_prog_compiler_wl='-Wl,'
8106      lt_prog_compiler_pic='-KPIC'
8107      lt_prog_compiler_static='-Bstatic'
8108      ;;
8109
8110    unicos*)
8111      lt_prog_compiler_wl='-Wl,'
8112      lt_prog_compiler_can_build_shared=no
8113      ;;
8114
8115    uts4*)
8116      lt_prog_compiler_pic='-pic'
8117      lt_prog_compiler_static='-Bstatic'
8118      ;;
8119
8120    *)
8121      lt_prog_compiler_can_build_shared=no
8122      ;;
8123    esac
8124  fi
8125
8126case $host_os in
8127  # For platforms which do not support PIC, -DPIC is meaningless:
8128  *djgpp*)
8129    lt_prog_compiler_pic=
8130    ;;
8131  *)
8132    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8133    ;;
8134esac
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8136$as_echo "$lt_prog_compiler_pic" >&6; }
8137
8138
8139
8140
8141
8142
8143#
8144# Check to make sure the PIC flag actually works.
8145#
8146if test -n "$lt_prog_compiler_pic"; then
8147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8148$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8149if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8150  $as_echo_n "(cached) " >&6
8151else
8152  lt_cv_prog_compiler_pic_works=no
8153   ac_outfile=conftest.$ac_objext
8154   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8155   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8156   # Insert the option either (1) after the last *FLAGS variable, or
8157   # (2) before a word containing "conftest.", or (3) at the end.
8158   # Note that $ac_compile itself does not contain backslashes and begins
8159   # with a dollar sign (not a hyphen), so the echo should work correctly.
8160   # The option is referenced via a variable to avoid confusing sed.
8161   lt_compile=`echo "$ac_compile" | $SED \
8162   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8163   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8164   -e 's:$: $lt_compiler_flag:'`
8165   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8166   (eval "$lt_compile" 2>conftest.err)
8167   ac_status=$?
8168   cat conftest.err >&5
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   if (exit $ac_status) && test -s "$ac_outfile"; then
8171     # The compiler can only warn and ignore the option if not recognized
8172     # So say no if there are warnings other than the usual output.
8173     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8174     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8175     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8176       lt_cv_prog_compiler_pic_works=yes
8177     fi
8178   fi
8179   $RM conftest*
8180
8181fi
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8183$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8184
8185if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8186    case $lt_prog_compiler_pic in
8187     "" | " "*) ;;
8188     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8189     esac
8190else
8191    lt_prog_compiler_pic=
8192     lt_prog_compiler_can_build_shared=no
8193fi
8194
8195fi
8196
8197
8198
8199
8200
8201
8202#
8203# Check to make sure the static flag actually works.
8204#
8205wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8207$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8208if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8209  $as_echo_n "(cached) " >&6
8210else
8211  lt_cv_prog_compiler_static_works=no
8212   save_LDFLAGS="$LDFLAGS"
8213   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8214   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8215   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8216     # The linker can only warn and ignore the option if not recognized
8217     # So say no if there are warnings
8218     if test -s conftest.err; then
8219       # Append any errors to the config.log.
8220       cat conftest.err 1>&5
8221       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8222       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8223       if diff conftest.exp conftest.er2 >/dev/null; then
8224         lt_cv_prog_compiler_static_works=yes
8225       fi
8226     else
8227       lt_cv_prog_compiler_static_works=yes
8228     fi
8229   fi
8230   $RM -r conftest*
8231   LDFLAGS="$save_LDFLAGS"
8232
8233fi
8234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8235$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8236
8237if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8238    :
8239else
8240    lt_prog_compiler_static=
8241fi
8242
8243
8244
8245
8246
8247
8248
8249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8250$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8251if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8252  $as_echo_n "(cached) " >&6
8253else
8254  lt_cv_prog_compiler_c_o=no
8255   $RM -r conftest 2>/dev/null
8256   mkdir conftest
8257   cd conftest
8258   mkdir out
8259   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8260
8261   lt_compiler_flag="-o out/conftest2.$ac_objext"
8262   # Insert the option either (1) after the last *FLAGS variable, or
8263   # (2) before a word containing "conftest.", or (3) at the end.
8264   # Note that $ac_compile itself does not contain backslashes and begins
8265   # with a dollar sign (not a hyphen), so the echo should work correctly.
8266   lt_compile=`echo "$ac_compile" | $SED \
8267   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8268   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8269   -e 's:$: $lt_compiler_flag:'`
8270   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8271   (eval "$lt_compile" 2>out/conftest.err)
8272   ac_status=$?
8273   cat out/conftest.err >&5
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8276   then
8277     # The compiler can only warn and ignore the option if not recognized
8278     # So say no if there are warnings
8279     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8280     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8281     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8282       lt_cv_prog_compiler_c_o=yes
8283     fi
8284   fi
8285   chmod u+w . 2>&5
8286   $RM conftest*
8287   # SGI C++ compiler will create directory out/ii_files/ for
8288   # template instantiation
8289   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8290   $RM out/* && rmdir out
8291   cd ..
8292   $RM -r conftest
8293   $RM conftest*
8294
8295fi
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8297$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8298
8299
8300
8301
8302
8303
8304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8305$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8306if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8307  $as_echo_n "(cached) " >&6
8308else
8309  lt_cv_prog_compiler_c_o=no
8310   $RM -r conftest 2>/dev/null
8311   mkdir conftest
8312   cd conftest
8313   mkdir out
8314   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8315
8316   lt_compiler_flag="-o out/conftest2.$ac_objext"
8317   # Insert the option either (1) after the last *FLAGS variable, or
8318   # (2) before a word containing "conftest.", or (3) at the end.
8319   # Note that $ac_compile itself does not contain backslashes and begins
8320   # with a dollar sign (not a hyphen), so the echo should work correctly.
8321   lt_compile=`echo "$ac_compile" | $SED \
8322   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8323   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8324   -e 's:$: $lt_compiler_flag:'`
8325   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8326   (eval "$lt_compile" 2>out/conftest.err)
8327   ac_status=$?
8328   cat out/conftest.err >&5
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8331   then
8332     # The compiler can only warn and ignore the option if not recognized
8333     # So say no if there are warnings
8334     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8335     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8336     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8337       lt_cv_prog_compiler_c_o=yes
8338     fi
8339   fi
8340   chmod u+w . 2>&5
8341   $RM conftest*
8342   # SGI C++ compiler will create directory out/ii_files/ for
8343   # template instantiation
8344   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8345   $RM out/* && rmdir out
8346   cd ..
8347   $RM -r conftest
8348   $RM conftest*
8349
8350fi
8351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8352$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8353
8354
8355
8356
8357hard_links="nottested"
8358if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8359  # do not overwrite the value of need_locks provided by the user
8360  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8361$as_echo_n "checking if we can lock with hard links... " >&6; }
8362  hard_links=yes
8363  $RM conftest*
8364  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8365  touch conftest.a
8366  ln conftest.a conftest.b 2>&5 || hard_links=no
8367  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8369$as_echo "$hard_links" >&6; }
8370  if test "$hard_links" = no; then
8371    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8372$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8373    need_locks=warn
8374  fi
8375else
8376  need_locks=no
8377fi
8378
8379
8380
8381
8382
8383
8384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8385$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8386
8387  runpath_var=
8388  allow_undefined_flag=
8389  always_export_symbols=no
8390  archive_cmds=
8391  archive_expsym_cmds=
8392  compiler_needs_object=no
8393  enable_shared_with_static_runtimes=no
8394  export_dynamic_flag_spec=
8395  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8396  hardcode_automatic=no
8397  hardcode_direct=no
8398  hardcode_direct_absolute=no
8399  hardcode_libdir_flag_spec=
8400  hardcode_libdir_flag_spec_ld=
8401  hardcode_libdir_separator=
8402  hardcode_minus_L=no
8403  hardcode_shlibpath_var=unsupported
8404  inherit_rpath=no
8405  link_all_deplibs=unknown
8406  module_cmds=
8407  module_expsym_cmds=
8408  old_archive_from_new_cmds=
8409  old_archive_from_expsyms_cmds=
8410  thread_safe_flag_spec=
8411  whole_archive_flag_spec=
8412  # include_expsyms should be a list of space-separated symbols to be *always*
8413  # included in the symbol list
8414  include_expsyms=
8415  # exclude_expsyms can be an extended regexp of symbols to exclude
8416  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8417  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8418  # as well as any symbol that contains `d'.
8419  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8420  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8421  # platforms (ab)use it in PIC code, but their linkers get confused if
8422  # the symbol is explicitly referenced.  Since portable code cannot
8423  # rely on this symbol name, it's probably fine to never include it in
8424  # preloaded symbol tables.
8425  # Exclude shared library initialization/finalization symbols.
8426  extract_expsyms_cmds=
8427
8428  case $host_os in
8429  cygwin* | mingw* | pw32* | cegcc*)
8430    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8431    # When not using gcc, we currently assume that we are using
8432    # Microsoft Visual C++.
8433    if test "$GCC" != yes; then
8434      with_gnu_ld=no
8435    fi
8436    ;;
8437  interix*)
8438    # we just hope/assume this is gcc and not c89 (= MSVC++)
8439    with_gnu_ld=yes
8440    ;;
8441  openbsd*)
8442    with_gnu_ld=no
8443    ;;
8444  esac
8445
8446  ld_shlibs=yes
8447
8448  # On some targets, GNU ld is compatible enough with the native linker
8449  # that we're better off using the native interface for both.
8450  lt_use_gnu_ld_interface=no
8451  if test "$with_gnu_ld" = yes; then
8452    case $host_os in
8453      aix*)
8454	# The AIX port of GNU ld has always aspired to compatibility
8455	# with the native linker.  However, as the warning in the GNU ld
8456	# block says, versions before 2.19.5* couldn't really create working
8457	# shared libraries, regardless of the interface used.
8458	case `$LD -v 2>&1` in
8459	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8460	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8461	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8462	  *)
8463	    lt_use_gnu_ld_interface=yes
8464	    ;;
8465	esac
8466	;;
8467      *)
8468	lt_use_gnu_ld_interface=yes
8469	;;
8470    esac
8471  fi
8472
8473  if test "$lt_use_gnu_ld_interface" = yes; then
8474    # If archive_cmds runs LD, not CC, wlarc should be empty
8475    wlarc='${wl}'
8476
8477    # Set some defaults for GNU ld with shared library support. These
8478    # are reset later if shared libraries are not supported. Putting them
8479    # here allows them to be overridden if necessary.
8480    runpath_var=LD_RUN_PATH
8481    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8482    export_dynamic_flag_spec='${wl}--export-dynamic'
8483    # ancient GNU ld didn't support --whole-archive et. al.
8484    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8485      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8486    else
8487      whole_archive_flag_spec=
8488    fi
8489    supports_anon_versioning=no
8490    case `$LD -v 2>&1` in
8491      *GNU\ gold*) supports_anon_versioning=yes ;;
8492      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8493      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8494      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8495      *\ 2.11.*) ;; # other 2.11 versions
8496      *) supports_anon_versioning=yes ;;
8497    esac
8498
8499    # See if GNU ld supports shared libraries.
8500    case $host_os in
8501    aix[3-9]*)
8502      # On AIX/PPC, the GNU linker is very broken
8503      if test "$host_cpu" != ia64; then
8504	ld_shlibs=no
8505	cat <<_LT_EOF 1>&2
8506
8507*** Warning: the GNU linker, at least up to release 2.19, is reported
8508*** to be unable to reliably create shared libraries on AIX.
8509*** Therefore, libtool is disabling shared libraries support.  If you
8510*** really care for shared libraries, you may want to install binutils
8511*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8512*** You will then need to restart the configuration process.
8513
8514_LT_EOF
8515      fi
8516      ;;
8517
8518    amigaos*)
8519      case $host_cpu in
8520      powerpc)
8521            # see comment about AmigaOS4 .so support
8522            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8523            archive_expsym_cmds=''
8524        ;;
8525      m68k)
8526            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)'
8527            hardcode_libdir_flag_spec='-L$libdir'
8528            hardcode_minus_L=yes
8529        ;;
8530      esac
8531      ;;
8532
8533    beos*)
8534      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8535	allow_undefined_flag=unsupported
8536	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8537	# support --undefined.  This deserves some investigation.  FIXME
8538	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8539      else
8540	ld_shlibs=no
8541      fi
8542      ;;
8543
8544    cygwin* | mingw* | pw32* | cegcc*)
8545      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8546      # as there is no search path for DLLs.
8547      hardcode_libdir_flag_spec='-L$libdir'
8548      export_dynamic_flag_spec='${wl}--export-all-symbols'
8549      allow_undefined_flag=unsupported
8550      always_export_symbols=no
8551      enable_shared_with_static_runtimes=yes
8552      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8553
8554      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8555        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8556	# If the export-symbols file already is a .def file (1st line
8557	# is EXPORTS), use it as is; otherwise, prepend...
8558	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8559	  cp $export_symbols $output_objdir/$soname.def;
8560	else
8561	  echo EXPORTS > $output_objdir/$soname.def;
8562	  cat $export_symbols >> $output_objdir/$soname.def;
8563	fi~
8564	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8565      else
8566	ld_shlibs=no
8567      fi
8568      ;;
8569
8570    haiku*)
8571      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8572      link_all_deplibs=yes
8573      ;;
8574
8575    interix[3-9]*)
8576      hardcode_direct=no
8577      hardcode_shlibpath_var=no
8578      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8579      export_dynamic_flag_spec='${wl}-E'
8580      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8581      # Instead, shared libraries are loaded at an image base (0x10000000 by
8582      # default) and relocated if they conflict, which is a slow very memory
8583      # consuming and fragmenting process.  To avoid this, we pick a random,
8584      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8585      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8586      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8587      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'
8588      ;;
8589
8590    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8591      tmp_diet=no
8592      if test "$host_os" = linux-dietlibc; then
8593	case $cc_basename in
8594	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8595	esac
8596      fi
8597      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8598	 && test "$tmp_diet" = no
8599      then
8600	tmp_addflag=
8601	tmp_sharedflag='-shared'
8602	case $cc_basename,$host_cpu in
8603        pgcc*)				# Portland Group C compiler
8604	  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'
8605	  tmp_addflag=' $pic_flag'
8606	  ;;
8607	pgf77* | pgf90* | pgf95* | pgfortran*)
8608					# Portland Group f77 and f90 compilers
8609	  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'
8610	  tmp_addflag=' $pic_flag -Mnomain' ;;
8611	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8612	  tmp_addflag=' -i_dynamic' ;;
8613	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8614	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8615	ifc* | ifort*)			# Intel Fortran compiler
8616	  tmp_addflag=' -nofor_main' ;;
8617	lf95*)				# Lahey Fortran 8.1
8618	  whole_archive_flag_spec=
8619	  tmp_sharedflag='--shared' ;;
8620	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8621	  tmp_sharedflag='-qmkshrobj'
8622	  tmp_addflag= ;;
8623	nvcc*)	# Cuda Compiler Driver 2.2
8624	  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'
8625	  compiler_needs_object=yes
8626	  ;;
8627	esac
8628	case `$CC -V 2>&1 | sed 5q` in
8629	*Sun\ C*)			# Sun C 5.9
8630	  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'
8631	  compiler_needs_object=yes
8632	  tmp_sharedflag='-G' ;;
8633	*Sun\ F*)			# Sun Fortran 8.3
8634	  tmp_sharedflag='-G' ;;
8635	esac
8636	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8637
8638        if test "x$supports_anon_versioning" = xyes; then
8639          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8640	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8641	    echo "local: *; };" >> $output_objdir/$libname.ver~
8642	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8643        fi
8644
8645	case $cc_basename in
8646	xlf* | bgf* | bgxlf* | mpixlf*)
8647	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8648	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8649	  hardcode_libdir_flag_spec=
8650	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8651	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8652	  if test "x$supports_anon_versioning" = xyes; then
8653	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8654	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8655	      echo "local: *; };" >> $output_objdir/$libname.ver~
8656	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8657	  fi
8658	  ;;
8659	esac
8660      else
8661        ld_shlibs=no
8662      fi
8663      ;;
8664
8665    netbsd*)
8666      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8667	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8668	wlarc=
8669      else
8670	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8671	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8672      fi
8673      ;;
8674
8675    solaris*)
8676      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8677	ld_shlibs=no
8678	cat <<_LT_EOF 1>&2
8679
8680*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8681*** create shared libraries on Solaris systems.  Therefore, libtool
8682*** is disabling shared libraries support.  We urge you to upgrade GNU
8683*** binutils to release 2.9.1 or newer.  Another option is to modify
8684*** your PATH or compiler configuration so that the native linker is
8685*** used, and then restart.
8686
8687_LT_EOF
8688      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8689	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8690	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8691      else
8692	ld_shlibs=no
8693      fi
8694      ;;
8695
8696    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8697      case `$LD -v 2>&1` in
8698        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8699	ld_shlibs=no
8700	cat <<_LT_EOF 1>&2
8701
8702*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8703*** reliably create shared libraries on SCO systems.  Therefore, libtool
8704*** is disabling shared libraries support.  We urge you to upgrade GNU
8705*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8706*** your PATH or compiler configuration so that the native linker is
8707*** used, and then restart.
8708
8709_LT_EOF
8710	;;
8711	*)
8712	  # For security reasons, it is highly recommended that you always
8713	  # use absolute paths for naming shared libraries, and exclude the
8714	  # DT_RUNPATH tag from executables and libraries.  But doing so
8715	  # requires that you compile everything twice, which is a pain.
8716	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8717	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8718	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8719	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8720	  else
8721	    ld_shlibs=no
8722	  fi
8723	;;
8724      esac
8725      ;;
8726
8727    sunos4*)
8728      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8729      wlarc=
8730      hardcode_direct=yes
8731      hardcode_shlibpath_var=no
8732      ;;
8733
8734    *)
8735      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8736	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8737	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8738      else
8739	ld_shlibs=no
8740      fi
8741      ;;
8742    esac
8743
8744    if test "$ld_shlibs" = no; then
8745      runpath_var=
8746      hardcode_libdir_flag_spec=
8747      export_dynamic_flag_spec=
8748      whole_archive_flag_spec=
8749    fi
8750  else
8751    # PORTME fill in a description of your system's linker (not GNU ld)
8752    case $host_os in
8753    aix3*)
8754      allow_undefined_flag=unsupported
8755      always_export_symbols=yes
8756      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'
8757      # Note: this linker hardcodes the directories in LIBPATH if there
8758      # are no directories specified by -L.
8759      hardcode_minus_L=yes
8760      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8761	# Neither direct hardcoding nor static linking is supported with a
8762	# broken collect2.
8763	hardcode_direct=unsupported
8764      fi
8765      ;;
8766
8767    aix[4-9]*)
8768      if test "$host_cpu" = ia64; then
8769	# On IA64, the linker does run time linking by default, so we don't
8770	# have to do anything special.
8771	aix_use_runtimelinking=no
8772	exp_sym_flag='-Bexport'
8773	no_entry_flag=""
8774      else
8775	# If we're using GNU nm, then we don't want the "-C" option.
8776	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8777	# Also, AIX nm treats weak defined symbols like other global
8778	# defined symbols, whereas GNU nm marks them as "W".
8779	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8780	  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'
8781	else
8782	  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'
8783	fi
8784	aix_use_runtimelinking=no
8785
8786	# Test if we are trying to use run time linking or normal
8787	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8788	# need to do runtime linking.
8789	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8790	  for ld_flag in $LDFLAGS; do
8791	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8792	    aix_use_runtimelinking=yes
8793	    break
8794	  fi
8795	  done
8796	  ;;
8797	esac
8798
8799	exp_sym_flag='-bexport'
8800	no_entry_flag='-bnoentry'
8801      fi
8802
8803      # When large executables or shared objects are built, AIX ld can
8804      # have problems creating the table of contents.  If linking a library
8805      # or program results in "error TOC overflow" add -mminimal-toc to
8806      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8807      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8808
8809      archive_cmds=''
8810      hardcode_direct=yes
8811      hardcode_direct_absolute=yes
8812      hardcode_libdir_separator=':'
8813      link_all_deplibs=yes
8814      file_list_spec='${wl}-f,'
8815
8816      if test "$GCC" = yes; then
8817	case $host_os in aix4.[012]|aix4.[012].*)
8818	# We only want to do this on AIX 4.2 and lower, the check
8819	# below for broken collect2 doesn't work under 4.3+
8820	  collect2name=`${CC} -print-prog-name=collect2`
8821	  if test -f "$collect2name" &&
8822	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8823	  then
8824	  # We have reworked collect2
8825	  :
8826	  else
8827	  # We have old collect2
8828	  hardcode_direct=unsupported
8829	  # It fails to find uninstalled libraries when the uninstalled
8830	  # path is not listed in the libpath.  Setting hardcode_minus_L
8831	  # to unsupported forces relinking
8832	  hardcode_minus_L=yes
8833	  hardcode_libdir_flag_spec='-L$libdir'
8834	  hardcode_libdir_separator=
8835	  fi
8836	  ;;
8837	esac
8838	shared_flag='-shared'
8839	if test "$aix_use_runtimelinking" = yes; then
8840	  shared_flag="$shared_flag "'${wl}-G'
8841	fi
8842      else
8843	# not using gcc
8844	if test "$host_cpu" = ia64; then
8845	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8846	# chokes on -Wl,-G. The following line is correct:
8847	  shared_flag='-G'
8848	else
8849	  if test "$aix_use_runtimelinking" = yes; then
8850	    shared_flag='${wl}-G'
8851	  else
8852	    shared_flag='${wl}-bM:SRE'
8853	  fi
8854	fi
8855      fi
8856
8857      export_dynamic_flag_spec='${wl}-bexpall'
8858      # It seems that -bexpall does not export symbols beginning with
8859      # underscore (_), so it is better to generate a list of symbols to export.
8860      always_export_symbols=yes
8861      if test "$aix_use_runtimelinking" = yes; then
8862	# Warning - without using the other runtime loading flags (-brtl),
8863	# -berok will link without error, but may produce a broken library.
8864	allow_undefined_flag='-berok'
8865        # Determine the default libpath from the value encoded in an
8866        # empty executable.
8867        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868/* end confdefs.h.  */
8869
8870int
8871main ()
8872{
8873
8874  ;
8875  return 0;
8876}
8877_ACEOF
8878if ac_fn_c_try_link "$LINENO"; then :
8879
8880lt_aix_libpath_sed='
8881    /Import File Strings/,/^$/ {
8882	/^0/ {
8883	    s/^0  *\(.*\)$/\1/
8884	    p
8885	}
8886    }'
8887aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8888# Check for a 64-bit object if we didn't find anything.
8889if test -z "$aix_libpath"; then
8890  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8891fi
8892fi
8893rm -f core conftest.err conftest.$ac_objext \
8894    conftest$ac_exeext conftest.$ac_ext
8895if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8896
8897        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8898        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"
8899      else
8900	if test "$host_cpu" = ia64; then
8901	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8902	  allow_undefined_flag="-z nodefs"
8903	  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"
8904	else
8905	 # Determine the default libpath from the value encoded in an
8906	 # empty executable.
8907	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908/* end confdefs.h.  */
8909
8910int
8911main ()
8912{
8913
8914  ;
8915  return 0;
8916}
8917_ACEOF
8918if ac_fn_c_try_link "$LINENO"; then :
8919
8920lt_aix_libpath_sed='
8921    /Import File Strings/,/^$/ {
8922	/^0/ {
8923	    s/^0  *\(.*\)$/\1/
8924	    p
8925	}
8926    }'
8927aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8928# Check for a 64-bit object if we didn't find anything.
8929if test -z "$aix_libpath"; then
8930  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8931fi
8932fi
8933rm -f core conftest.err conftest.$ac_objext \
8934    conftest$ac_exeext conftest.$ac_ext
8935if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8936
8937	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8938	  # Warning - without using the other run time loading flags,
8939	  # -berok will link without error, but may produce a broken library.
8940	  no_undefined_flag=' ${wl}-bernotok'
8941	  allow_undefined_flag=' ${wl}-berok'
8942	  if test "$with_gnu_ld" = yes; then
8943	    # We only use this code for GNU lds that support --whole-archive.
8944	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8945	  else
8946	    # Exported symbols can be pulled into shared objects from archives
8947	    whole_archive_flag_spec='$convenience'
8948	  fi
8949	  archive_cmds_need_lc=yes
8950	  # This is similar to how AIX traditionally builds its shared libraries.
8951	  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'
8952	fi
8953      fi
8954      ;;
8955
8956    amigaos*)
8957      case $host_cpu in
8958      powerpc)
8959            # see comment about AmigaOS4 .so support
8960            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8961            archive_expsym_cmds=''
8962        ;;
8963      m68k)
8964            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)'
8965            hardcode_libdir_flag_spec='-L$libdir'
8966            hardcode_minus_L=yes
8967        ;;
8968      esac
8969      ;;
8970
8971    bsdi[45]*)
8972      export_dynamic_flag_spec=-rdynamic
8973      ;;
8974
8975    cygwin* | mingw* | pw32* | cegcc*)
8976      # When not using gcc, we currently assume that we are using
8977      # Microsoft Visual C++.
8978      # hardcode_libdir_flag_spec is actually meaningless, as there is
8979      # no search path for DLLs.
8980      hardcode_libdir_flag_spec=' '
8981      allow_undefined_flag=unsupported
8982      # Tell ltmain to make .lib files, not .a files.
8983      libext=lib
8984      # Tell ltmain to make .dll files, not .so files.
8985      shrext_cmds=".dll"
8986      # FIXME: Setting linknames here is a bad hack.
8987      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8988      # The linker will automatically build a .lib file if we build a DLL.
8989      old_archive_from_new_cmds='true'
8990      # FIXME: Should let the user specify the lib program.
8991      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8992      fix_srcfile_path='`cygpath -w "$srcfile"`'
8993      enable_shared_with_static_runtimes=yes
8994      ;;
8995
8996    darwin* | rhapsody*)
8997
8998
8999  archive_cmds_need_lc=no
9000  hardcode_direct=no
9001  hardcode_automatic=yes
9002  hardcode_shlibpath_var=unsupported
9003  if test "$lt_cv_ld_force_load" = "yes"; then
9004    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\"`'
9005  else
9006    whole_archive_flag_spec=''
9007  fi
9008  link_all_deplibs=yes
9009  allow_undefined_flag="$_lt_dar_allow_undefined"
9010  case $cc_basename in
9011     ifort*) _lt_dar_can_shared=yes ;;
9012     *) _lt_dar_can_shared=$GCC ;;
9013  esac
9014  if test "$_lt_dar_can_shared" = "yes"; then
9015    output_verbose_link_cmd=func_echo_all
9016    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9017    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9018    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}"
9019    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}"
9020
9021  else
9022  ld_shlibs=no
9023  fi
9024
9025      ;;
9026
9027    dgux*)
9028      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9029      hardcode_libdir_flag_spec='-L$libdir'
9030      hardcode_shlibpath_var=no
9031      ;;
9032
9033    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9034    # support.  Future versions do this automatically, but an explicit c++rt0.o
9035    # does not break anything, and helps significantly (at the cost of a little
9036    # extra space).
9037    freebsd2.2*)
9038      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9039      hardcode_libdir_flag_spec='-R$libdir'
9040      hardcode_direct=yes
9041      hardcode_shlibpath_var=no
9042      ;;
9043
9044    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9045    freebsd2.*)
9046      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9047      hardcode_direct=yes
9048      hardcode_minus_L=yes
9049      hardcode_shlibpath_var=no
9050      ;;
9051
9052    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9053    freebsd* | dragonfly*)
9054      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9055      hardcode_libdir_flag_spec='-R$libdir'
9056      hardcode_direct=yes
9057      hardcode_shlibpath_var=no
9058      ;;
9059
9060    hpux9*)
9061      if test "$GCC" = yes; then
9062	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'
9063      else
9064	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'
9065      fi
9066      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9067      hardcode_libdir_separator=:
9068      hardcode_direct=yes
9069
9070      # hardcode_minus_L: Not really in the search PATH,
9071      # but as the default location of the library.
9072      hardcode_minus_L=yes
9073      export_dynamic_flag_spec='${wl}-E'
9074      ;;
9075
9076    hpux10*)
9077      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9078	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9079      else
9080	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9081      fi
9082      if test "$with_gnu_ld" = no; then
9083	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9084	hardcode_libdir_flag_spec_ld='+b $libdir'
9085	hardcode_libdir_separator=:
9086	hardcode_direct=yes
9087	hardcode_direct_absolute=yes
9088	export_dynamic_flag_spec='${wl}-E'
9089	# hardcode_minus_L: Not really in the search PATH,
9090	# but as the default location of the library.
9091	hardcode_minus_L=yes
9092      fi
9093      ;;
9094
9095    hpux11*)
9096      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9097	case $host_cpu in
9098	hppa*64*)
9099	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9100	  ;;
9101	ia64*)
9102	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9103	  ;;
9104	*)
9105	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9106	  ;;
9107	esac
9108      else
9109	case $host_cpu in
9110	hppa*64*)
9111	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9112	  ;;
9113	ia64*)
9114	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9115	  ;;
9116	*)
9117
9118	  # Older versions of the 11.00 compiler do not understand -b yet
9119	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9120	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9121$as_echo_n "checking if $CC understands -b... " >&6; }
9122if test "${lt_cv_prog_compiler__b+set}" = set; then :
9123  $as_echo_n "(cached) " >&6
9124else
9125  lt_cv_prog_compiler__b=no
9126   save_LDFLAGS="$LDFLAGS"
9127   LDFLAGS="$LDFLAGS -b"
9128   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9129   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9130     # The linker can only warn and ignore the option if not recognized
9131     # So say no if there are warnings
9132     if test -s conftest.err; then
9133       # Append any errors to the config.log.
9134       cat conftest.err 1>&5
9135       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9136       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9137       if diff conftest.exp conftest.er2 >/dev/null; then
9138         lt_cv_prog_compiler__b=yes
9139       fi
9140     else
9141       lt_cv_prog_compiler__b=yes
9142     fi
9143   fi
9144   $RM -r conftest*
9145   LDFLAGS="$save_LDFLAGS"
9146
9147fi
9148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9149$as_echo "$lt_cv_prog_compiler__b" >&6; }
9150
9151if test x"$lt_cv_prog_compiler__b" = xyes; then
9152    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9153else
9154    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9155fi
9156
9157	  ;;
9158	esac
9159      fi
9160      if test "$with_gnu_ld" = no; then
9161	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9162	hardcode_libdir_separator=:
9163
9164	case $host_cpu in
9165	hppa*64*|ia64*)
9166	  hardcode_direct=no
9167	  hardcode_shlibpath_var=no
9168	  ;;
9169	*)
9170	  hardcode_direct=yes
9171	  hardcode_direct_absolute=yes
9172	  export_dynamic_flag_spec='${wl}-E'
9173
9174	  # hardcode_minus_L: Not really in the search PATH,
9175	  # but as the default location of the library.
9176	  hardcode_minus_L=yes
9177	  ;;
9178	esac
9179      fi
9180      ;;
9181
9182    irix5* | irix6* | nonstopux*)
9183      if test "$GCC" = yes; then
9184	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'
9185	# Try to use the -exported_symbol ld option, if it does not
9186	# work, assume that -exports_file does not work either and
9187	# implicitly export all symbols.
9188        save_LDFLAGS="$LDFLAGS"
9189        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9190        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191/* end confdefs.h.  */
9192int foo(void) {}
9193_ACEOF
9194if ac_fn_c_try_link "$LINENO"; then :
9195  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'
9196
9197fi
9198rm -f core conftest.err conftest.$ac_objext \
9199    conftest$ac_exeext conftest.$ac_ext
9200        LDFLAGS="$save_LDFLAGS"
9201      else
9202	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'
9203	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'
9204      fi
9205      archive_cmds_need_lc='no'
9206      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9207      hardcode_libdir_separator=:
9208      inherit_rpath=yes
9209      link_all_deplibs=yes
9210      ;;
9211
9212    netbsd*)
9213      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9214	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9215      else
9216	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9217      fi
9218      hardcode_libdir_flag_spec='-R$libdir'
9219      hardcode_direct=yes
9220      hardcode_shlibpath_var=no
9221      ;;
9222
9223    newsos6)
9224      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9225      hardcode_direct=yes
9226      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9227      hardcode_libdir_separator=:
9228      hardcode_shlibpath_var=no
9229      ;;
9230
9231    *nto* | *qnx*)
9232      ;;
9233
9234    openbsd*)
9235      if test -f /usr/libexec/ld.so; then
9236	hardcode_direct=yes
9237	hardcode_shlibpath_var=no
9238	hardcode_direct_absolute=yes
9239	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9240	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9241	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9242	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9243	  export_dynamic_flag_spec='${wl}-E'
9244	else
9245	  case $host_os in
9246	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9247	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9248	     hardcode_libdir_flag_spec='-R$libdir'
9249	     ;;
9250	   *)
9251	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9252	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9253	     ;;
9254	  esac
9255	fi
9256      else
9257	ld_shlibs=no
9258      fi
9259      ;;
9260
9261    os2*)
9262      hardcode_libdir_flag_spec='-L$libdir'
9263      hardcode_minus_L=yes
9264      allow_undefined_flag=unsupported
9265      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'
9266      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9267      ;;
9268
9269    osf3*)
9270      if test "$GCC" = yes; then
9271	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9272	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'
9273      else
9274	allow_undefined_flag=' -expect_unresolved \*'
9275	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'
9276      fi
9277      archive_cmds_need_lc='no'
9278      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9279      hardcode_libdir_separator=:
9280      ;;
9281
9282    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9283      if test "$GCC" = yes; then
9284	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9285	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'
9286	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9287      else
9288	allow_undefined_flag=' -expect_unresolved \*'
9289	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'
9290	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~
9291	$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'
9292
9293	# Both c and cxx compiler support -rpath directly
9294	hardcode_libdir_flag_spec='-rpath $libdir'
9295      fi
9296      archive_cmds_need_lc='no'
9297      hardcode_libdir_separator=:
9298      ;;
9299
9300    solaris*)
9301      no_undefined_flag=' -z defs'
9302      if test "$GCC" = yes; then
9303	wlarc='${wl}'
9304	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9305	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9306	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9307      else
9308	case `$CC -V 2>&1` in
9309	*"Compilers 5.0"*)
9310	  wlarc=''
9311	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9312	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9313	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9314	  ;;
9315	*)
9316	  wlarc='${wl}'
9317	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9318	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9319	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9320	  ;;
9321	esac
9322      fi
9323      hardcode_libdir_flag_spec='-R$libdir'
9324      hardcode_shlibpath_var=no
9325      case $host_os in
9326      solaris2.[0-5] | solaris2.[0-5].*) ;;
9327      *)
9328	# The compiler driver will combine and reorder linker options,
9329	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9330	# but is careful enough not to reorder.
9331	# Supported since Solaris 2.6 (maybe 2.5.1?)
9332	if test "$GCC" = yes; then
9333	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9334	else
9335	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9336	fi
9337	;;
9338      esac
9339      link_all_deplibs=yes
9340      ;;
9341
9342    sunos4*)
9343      if test "x$host_vendor" = xsequent; then
9344	# Use $CC to link under sequent, because it throws in some extra .o
9345	# files that make .init and .fini sections work.
9346	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9347      else
9348	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9349      fi
9350      hardcode_libdir_flag_spec='-L$libdir'
9351      hardcode_direct=yes
9352      hardcode_minus_L=yes
9353      hardcode_shlibpath_var=no
9354      ;;
9355
9356    sysv4)
9357      case $host_vendor in
9358	sni)
9359	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360	  hardcode_direct=yes # is this really true???
9361	;;
9362	siemens)
9363	  ## LD is ld it makes a PLAMLIB
9364	  ## CC just makes a GrossModule.
9365	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9366	  reload_cmds='$CC -r -o $output$reload_objs'
9367	  hardcode_direct=no
9368        ;;
9369	motorola)
9370	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9372	;;
9373      esac
9374      runpath_var='LD_RUN_PATH'
9375      hardcode_shlibpath_var=no
9376      ;;
9377
9378    sysv4.3*)
9379      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380      hardcode_shlibpath_var=no
9381      export_dynamic_flag_spec='-Bexport'
9382      ;;
9383
9384    sysv4*MP*)
9385      if test -d /usr/nec; then
9386	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387	hardcode_shlibpath_var=no
9388	runpath_var=LD_RUN_PATH
9389	hardcode_runpath_var=yes
9390	ld_shlibs=yes
9391      fi
9392      ;;
9393
9394    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9395      no_undefined_flag='${wl}-z,text'
9396      archive_cmds_need_lc=no
9397      hardcode_shlibpath_var=no
9398      runpath_var='LD_RUN_PATH'
9399
9400      if test "$GCC" = yes; then
9401	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9402	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9403      else
9404	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9405	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9406      fi
9407      ;;
9408
9409    sysv5* | sco3.2v5* | sco5v6*)
9410      # Note: We can NOT use -z defs as we might desire, because we do not
9411      # link with -lc, and that would cause any symbols used from libc to
9412      # always be unresolved, which means just about no library would
9413      # ever link correctly.  If we're not using GNU ld we use -z text
9414      # though, which does catch some bad symbols but isn't as heavy-handed
9415      # as -z defs.
9416      no_undefined_flag='${wl}-z,text'
9417      allow_undefined_flag='${wl}-z,nodefs'
9418      archive_cmds_need_lc=no
9419      hardcode_shlibpath_var=no
9420      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9421      hardcode_libdir_separator=':'
9422      link_all_deplibs=yes
9423      export_dynamic_flag_spec='${wl}-Bexport'
9424      runpath_var='LD_RUN_PATH'
9425
9426      if test "$GCC" = yes; then
9427	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9428	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9429      else
9430	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9431	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9432      fi
9433      ;;
9434
9435    uts4*)
9436      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9437      hardcode_libdir_flag_spec='-L$libdir'
9438      hardcode_shlibpath_var=no
9439      ;;
9440
9441    *)
9442      ld_shlibs=no
9443      ;;
9444    esac
9445
9446    if test x$host_vendor = xsni; then
9447      case $host in
9448      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9449	export_dynamic_flag_spec='${wl}-Blargedynsym'
9450	;;
9451      esac
9452    fi
9453  fi
9454
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9456$as_echo "$ld_shlibs" >&6; }
9457test "$ld_shlibs" = no && can_build_shared=no
9458
9459with_gnu_ld=$with_gnu_ld
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475#
9476# Do we need to explicitly link libc?
9477#
9478case "x$archive_cmds_need_lc" in
9479x|xyes)
9480  # Assume -lc should be added
9481  archive_cmds_need_lc=yes
9482
9483  if test "$enable_shared" = yes && test "$GCC" = yes; then
9484    case $archive_cmds in
9485    *'~'*)
9486      # FIXME: we may have to deal with multi-command sequences.
9487      ;;
9488    '$CC '*)
9489      # Test whether the compiler implicitly links with -lc since on some
9490      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9491      # to ld, don't add -lc before -lgcc.
9492      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9493$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9494if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9495  $as_echo_n "(cached) " >&6
9496else
9497  $RM conftest*
9498	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9499
9500	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9501  (eval $ac_compile) 2>&5
9502  ac_status=$?
9503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9504  test $ac_status = 0; } 2>conftest.err; then
9505	  soname=conftest
9506	  lib=conftest
9507	  libobjs=conftest.$ac_objext
9508	  deplibs=
9509	  wl=$lt_prog_compiler_wl
9510	  pic_flag=$lt_prog_compiler_pic
9511	  compiler_flags=-v
9512	  linker_flags=-v
9513	  verstring=
9514	  output_objdir=.
9515	  libname=conftest
9516	  lt_save_allow_undefined_flag=$allow_undefined_flag
9517	  allow_undefined_flag=
9518	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9519  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9520  ac_status=$?
9521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9522  test $ac_status = 0; }
9523	  then
9524	    lt_cv_archive_cmds_need_lc=no
9525	  else
9526	    lt_cv_archive_cmds_need_lc=yes
9527	  fi
9528	  allow_undefined_flag=$lt_save_allow_undefined_flag
9529	else
9530	  cat conftest.err 1>&5
9531	fi
9532	$RM conftest*
9533
9534fi
9535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9536$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9537      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9538      ;;
9539    esac
9540  fi
9541  ;;
9542esac
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9701$as_echo_n "checking dynamic linker characteristics... " >&6; }
9702
9703if test "$GCC" = yes; then
9704  case $host_os in
9705    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9706    *) lt_awk_arg="/^libraries:/" ;;
9707  esac
9708  case $host_os in
9709    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9710    *) lt_sed_strip_eq="s,=/,/,g" ;;
9711  esac
9712  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9713  case $lt_search_path_spec in
9714  *\;*)
9715    # if the path contains ";" then we assume it to be the separator
9716    # otherwise default to the standard path separator (i.e. ":") - it is
9717    # assumed that no part of a normal pathname contains ";" but that should
9718    # okay in the real world where ";" in dirpaths is itself problematic.
9719    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9720    ;;
9721  *)
9722    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9723    ;;
9724  esac
9725  # Ok, now we have the path, separated by spaces, we can step through it
9726  # and add multilib dir if necessary.
9727  lt_tmp_lt_search_path_spec=
9728  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9729  for lt_sys_path in $lt_search_path_spec; do
9730    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9731      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9732    else
9733      test -d "$lt_sys_path" && \
9734	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9735    fi
9736  done
9737  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9738BEGIN {RS=" "; FS="/|\n";} {
9739  lt_foo="";
9740  lt_count=0;
9741  for (lt_i = NF; lt_i > 0; lt_i--) {
9742    if ($lt_i != "" && $lt_i != ".") {
9743      if ($lt_i == "..") {
9744        lt_count++;
9745      } else {
9746        if (lt_count == 0) {
9747          lt_foo="/" $lt_i lt_foo;
9748        } else {
9749          lt_count--;
9750        }
9751      }
9752    }
9753  }
9754  if (lt_foo != "") { lt_freq[lt_foo]++; }
9755  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9756}'`
9757  # AWK program above erroneously prepends '/' to C:/dos/paths
9758  # for these hosts.
9759  case $host_os in
9760    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9761      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9762  esac
9763  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9764else
9765  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9766fi
9767library_names_spec=
9768libname_spec='lib$name'
9769soname_spec=
9770shrext_cmds=".so"
9771postinstall_cmds=
9772postuninstall_cmds=
9773finish_cmds=
9774finish_eval=
9775shlibpath_var=
9776shlibpath_overrides_runpath=unknown
9777version_type=none
9778dynamic_linker="$host_os ld.so"
9779sys_lib_dlsearch_path_spec="/lib /usr/lib"
9780need_lib_prefix=unknown
9781hardcode_into_libs=no
9782
9783# when you set need_version to no, make sure it does not cause -set_version
9784# flags to be left without arguments
9785need_version=unknown
9786
9787case $host_os in
9788aix3*)
9789  version_type=linux
9790  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9791  shlibpath_var=LIBPATH
9792
9793  # AIX 3 has no versioning support, so we append a major version to the name.
9794  soname_spec='${libname}${release}${shared_ext}$major'
9795  ;;
9796
9797aix[4-9]*)
9798  version_type=linux
9799  need_lib_prefix=no
9800  need_version=no
9801  hardcode_into_libs=yes
9802  if test "$host_cpu" = ia64; then
9803    # AIX 5 supports IA64
9804    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9805    shlibpath_var=LD_LIBRARY_PATH
9806  else
9807    # With GCC up to 2.95.x, collect2 would create an import file
9808    # for dependence libraries.  The import file would start with
9809    # the line `#! .'.  This would cause the generated library to
9810    # depend on `.', always an invalid library.  This was fixed in
9811    # development snapshots of GCC prior to 3.0.
9812    case $host_os in
9813      aix4 | aix4.[01] | aix4.[01].*)
9814      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9815	   echo ' yes '
9816	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9817	:
9818      else
9819	can_build_shared=no
9820      fi
9821      ;;
9822    esac
9823    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9824    # soname into executable. Probably we can add versioning support to
9825    # collect2, so additional links can be useful in future.
9826    if test "$aix_use_runtimelinking" = yes; then
9827      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9828      # instead of lib<name>.a to let people know that these are not
9829      # typical AIX shared libraries.
9830      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9831    else
9832      # We preserve .a as extension for shared libraries through AIX4.2
9833      # and later when we are not doing run time linking.
9834      library_names_spec='${libname}${release}.a $libname.a'
9835      soname_spec='${libname}${release}${shared_ext}$major'
9836    fi
9837    shlibpath_var=LIBPATH
9838  fi
9839  ;;
9840
9841amigaos*)
9842  case $host_cpu in
9843  powerpc)
9844    # Since July 2007 AmigaOS4 officially supports .so libraries.
9845    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9846    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847    ;;
9848  m68k)
9849    library_names_spec='$libname.ixlibrary $libname.a'
9850    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9851    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'
9852    ;;
9853  esac
9854  ;;
9855
9856beos*)
9857  library_names_spec='${libname}${shared_ext}'
9858  dynamic_linker="$host_os ld.so"
9859  shlibpath_var=LIBRARY_PATH
9860  ;;
9861
9862bsdi[45]*)
9863  version_type=linux
9864  need_version=no
9865  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866  soname_spec='${libname}${release}${shared_ext}$major'
9867  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9868  shlibpath_var=LD_LIBRARY_PATH
9869  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9870  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9871  # the default ld.so.conf also contains /usr/contrib/lib and
9872  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9873  # libtool to hard-code these into programs
9874  ;;
9875
9876cygwin* | mingw* | pw32* | cegcc*)
9877  version_type=windows
9878  shrext_cmds=".dll"
9879  need_version=no
9880  need_lib_prefix=no
9881
9882  case $GCC,$host_os in
9883  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9884    library_names_spec='$libname.dll.a'
9885    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9886    postinstall_cmds='base_file=`basename \${file}`~
9887      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9888      dldir=$destdir/`dirname \$dlpath`~
9889      test -d \$dldir || mkdir -p \$dldir~
9890      $install_prog $dir/$dlname \$dldir/$dlname~
9891      chmod a+x \$dldir/$dlname~
9892      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9893        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9894      fi'
9895    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9896      dlpath=$dir/\$dldll~
9897       $RM \$dlpath'
9898    shlibpath_overrides_runpath=yes
9899
9900    case $host_os in
9901    cygwin*)
9902      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9903      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9904
9905      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9906      ;;
9907    mingw* | cegcc*)
9908      # MinGW DLLs use traditional 'lib' prefix
9909      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9910      ;;
9911    pw32*)
9912      # pw32 DLLs use 'pw' prefix rather than 'lib'
9913      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9914      ;;
9915    esac
9916    ;;
9917
9918  *)
9919    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9920    ;;
9921  esac
9922  dynamic_linker='Win32 ld.exe'
9923  # FIXME: first we should search . and the directory the executable is in
9924  shlibpath_var=PATH
9925  ;;
9926
9927darwin* | rhapsody*)
9928  dynamic_linker="$host_os dyld"
9929  version_type=darwin
9930  need_lib_prefix=no
9931  need_version=no
9932  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9933  soname_spec='${libname}${release}${major}$shared_ext'
9934  shlibpath_overrides_runpath=yes
9935  shlibpath_var=DYLD_LIBRARY_PATH
9936  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9937
9938  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9939  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9940  ;;
9941
9942dgux*)
9943  version_type=linux
9944  need_lib_prefix=no
9945  need_version=no
9946  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9947  soname_spec='${libname}${release}${shared_ext}$major'
9948  shlibpath_var=LD_LIBRARY_PATH
9949  ;;
9950
9951freebsd* | dragonfly*)
9952  # DragonFly does not have aout.  When/if they implement a new
9953  # versioning mechanism, adjust this.
9954  if test -x /usr/bin/objformat; then
9955    objformat=`/usr/bin/objformat`
9956  else
9957    case $host_os in
9958    freebsd[23].*) objformat=aout ;;
9959    *) objformat=elf ;;
9960    esac
9961  fi
9962  version_type=freebsd-$objformat
9963  case $version_type in
9964    freebsd-elf*)
9965      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9966      need_version=no
9967      need_lib_prefix=no
9968      ;;
9969    freebsd-*)
9970      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9971      need_version=yes
9972      ;;
9973  esac
9974  shlibpath_var=LD_LIBRARY_PATH
9975  case $host_os in
9976  freebsd2.*)
9977    shlibpath_overrides_runpath=yes
9978    ;;
9979  freebsd3.[01]* | freebsdelf3.[01]*)
9980    shlibpath_overrides_runpath=yes
9981    hardcode_into_libs=yes
9982    ;;
9983  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9984  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9985    shlibpath_overrides_runpath=no
9986    hardcode_into_libs=yes
9987    ;;
9988  *) # from 4.6 on, and DragonFly
9989    shlibpath_overrides_runpath=yes
9990    hardcode_into_libs=yes
9991    ;;
9992  esac
9993  ;;
9994
9995gnu*)
9996  version_type=linux
9997  need_lib_prefix=no
9998  need_version=no
9999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10000  soname_spec='${libname}${release}${shared_ext}$major'
10001  shlibpath_var=LD_LIBRARY_PATH
10002  hardcode_into_libs=yes
10003  ;;
10004
10005haiku*)
10006  version_type=linux
10007  need_lib_prefix=no
10008  need_version=no
10009  dynamic_linker="$host_os runtime_loader"
10010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10011  soname_spec='${libname}${release}${shared_ext}$major'
10012  shlibpath_var=LIBRARY_PATH
10013  shlibpath_overrides_runpath=yes
10014  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10015  hardcode_into_libs=yes
10016  ;;
10017
10018hpux9* | hpux10* | hpux11*)
10019  # Give a soname corresponding to the major version so that dld.sl refuses to
10020  # link against other versions.
10021  version_type=sunos
10022  need_lib_prefix=no
10023  need_version=no
10024  case $host_cpu in
10025  ia64*)
10026    shrext_cmds='.so'
10027    hardcode_into_libs=yes
10028    dynamic_linker="$host_os dld.so"
10029    shlibpath_var=LD_LIBRARY_PATH
10030    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10031    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10032    soname_spec='${libname}${release}${shared_ext}$major'
10033    if test "X$HPUX_IA64_MODE" = X32; then
10034      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10035    else
10036      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10037    fi
10038    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10039    ;;
10040  hppa*64*)
10041    shrext_cmds='.sl'
10042    hardcode_into_libs=yes
10043    dynamic_linker="$host_os dld.sl"
10044    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10045    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10046    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10047    soname_spec='${libname}${release}${shared_ext}$major'
10048    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10049    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10050    ;;
10051  *)
10052    shrext_cmds='.sl'
10053    dynamic_linker="$host_os dld.sl"
10054    shlibpath_var=SHLIB_PATH
10055    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10056    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10057    soname_spec='${libname}${release}${shared_ext}$major'
10058    ;;
10059  esac
10060  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10061  postinstall_cmds='chmod 555 $lib'
10062  # or fails outright, so override atomically:
10063  install_override_mode=555
10064  ;;
10065
10066interix[3-9]*)
10067  version_type=linux
10068  need_lib_prefix=no
10069  need_version=no
10070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10071  soname_spec='${libname}${release}${shared_ext}$major'
10072  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10073  shlibpath_var=LD_LIBRARY_PATH
10074  shlibpath_overrides_runpath=no
10075  hardcode_into_libs=yes
10076  ;;
10077
10078irix5* | irix6* | nonstopux*)
10079  case $host_os in
10080    nonstopux*) version_type=nonstopux ;;
10081    *)
10082	if test "$lt_cv_prog_gnu_ld" = yes; then
10083		version_type=linux
10084	else
10085		version_type=irix
10086	fi ;;
10087  esac
10088  need_lib_prefix=no
10089  need_version=no
10090  soname_spec='${libname}${release}${shared_ext}$major'
10091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10092  case $host_os in
10093  irix5* | nonstopux*)
10094    libsuff= shlibsuff=
10095    ;;
10096  *)
10097    case $LD in # libtool.m4 will add one of these switches to LD
10098    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10099      libsuff= shlibsuff= libmagic=32-bit;;
10100    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10101      libsuff=32 shlibsuff=N32 libmagic=N32;;
10102    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10103      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10104    *) libsuff= shlibsuff= libmagic=never-match;;
10105    esac
10106    ;;
10107  esac
10108  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10109  shlibpath_overrides_runpath=no
10110  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10111  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10112  hardcode_into_libs=yes
10113  ;;
10114
10115# No shared lib support for Linux oldld, aout, or coff.
10116linux*oldld* | linux*aout* | linux*coff*)
10117  dynamic_linker=no
10118  ;;
10119
10120# This must be Linux ELF.
10121linux* | k*bsd*-gnu | kopensolaris*-gnu)
10122  version_type=linux
10123  need_lib_prefix=no
10124  need_version=no
10125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126  soname_spec='${libname}${release}${shared_ext}$major'
10127  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10128  shlibpath_var=LD_LIBRARY_PATH
10129  shlibpath_overrides_runpath=no
10130
10131  # Some binutils ld are patched to set DT_RUNPATH
10132  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10133  $as_echo_n "(cached) " >&6
10134else
10135  lt_cv_shlibpath_overrides_runpath=no
10136    save_LDFLAGS=$LDFLAGS
10137    save_libdir=$libdir
10138    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10139	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10140    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141/* end confdefs.h.  */
10142
10143int
10144main ()
10145{
10146
10147  ;
10148  return 0;
10149}
10150_ACEOF
10151if ac_fn_c_try_link "$LINENO"; then :
10152  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10153  lt_cv_shlibpath_overrides_runpath=yes
10154fi
10155fi
10156rm -f core conftest.err conftest.$ac_objext \
10157    conftest$ac_exeext conftest.$ac_ext
10158    LDFLAGS=$save_LDFLAGS
10159    libdir=$save_libdir
10160
10161fi
10162
10163  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10164
10165  # This implies no fast_install, which is unacceptable.
10166  # Some rework will be needed to allow for fast_install
10167  # before this can be enabled.
10168  hardcode_into_libs=yes
10169
10170  # Append ld.so.conf contents to the search path
10171  if test -f /etc/ld.so.conf; then
10172    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' ' '`
10173    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10174  fi
10175
10176  # We used to test for /lib/ld.so.1 and disable shared libraries on
10177  # powerpc, because MkLinux only supported shared libraries with the
10178  # GNU dynamic linker.  Since this was broken with cross compilers,
10179  # most powerpc-linux boxes support dynamic linking these days and
10180  # people can always --disable-shared, the test was removed, and we
10181  # assume the GNU/Linux dynamic linker is in use.
10182  dynamic_linker='GNU/Linux ld.so'
10183  ;;
10184
10185netbsd*)
10186  version_type=sunos
10187  need_lib_prefix=no
10188  need_version=no
10189  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10190    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10191    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10192    dynamic_linker='NetBSD (a.out) ld.so'
10193  else
10194    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10195    soname_spec='${libname}${release}${shared_ext}$major'
10196    dynamic_linker='NetBSD ld.elf_so'
10197  fi
10198  shlibpath_var=LD_LIBRARY_PATH
10199  shlibpath_overrides_runpath=yes
10200  hardcode_into_libs=yes
10201  ;;
10202
10203newsos6)
10204  version_type=linux
10205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206  shlibpath_var=LD_LIBRARY_PATH
10207  shlibpath_overrides_runpath=yes
10208  ;;
10209
10210*nto* | *qnx*)
10211  version_type=qnx
10212  need_lib_prefix=no
10213  need_version=no
10214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215  soname_spec='${libname}${release}${shared_ext}$major'
10216  shlibpath_var=LD_LIBRARY_PATH
10217  shlibpath_overrides_runpath=no
10218  hardcode_into_libs=yes
10219  dynamic_linker='ldqnx.so'
10220  ;;
10221
10222openbsd*)
10223  version_type=sunos
10224  sys_lib_dlsearch_path_spec="/usr/lib"
10225  need_lib_prefix=no
10226  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10227  case $host_os in
10228    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10229    *)				need_version=no  ;;
10230  esac
10231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10232  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10233  shlibpath_var=LD_LIBRARY_PATH
10234  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10235    case $host_os in
10236      openbsd2.[89] | openbsd2.[89].*)
10237	shlibpath_overrides_runpath=no
10238	;;
10239      *)
10240	shlibpath_overrides_runpath=yes
10241	;;
10242      esac
10243  else
10244    shlibpath_overrides_runpath=yes
10245  fi
10246  ;;
10247
10248os2*)
10249  libname_spec='$name'
10250  shrext_cmds=".dll"
10251  need_lib_prefix=no
10252  library_names_spec='$libname${shared_ext} $libname.a'
10253  dynamic_linker='OS/2 ld.exe'
10254  shlibpath_var=LIBPATH
10255  ;;
10256
10257osf3* | osf4* | osf5*)
10258  version_type=osf
10259  need_lib_prefix=no
10260  need_version=no
10261  soname_spec='${libname}${release}${shared_ext}$major'
10262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10263  shlibpath_var=LD_LIBRARY_PATH
10264  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10265  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10266  ;;
10267
10268rdos*)
10269  dynamic_linker=no
10270  ;;
10271
10272solaris*)
10273  version_type=linux
10274  need_lib_prefix=no
10275  need_version=no
10276  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277  soname_spec='${libname}${release}${shared_ext}$major'
10278  shlibpath_var=LD_LIBRARY_PATH
10279  shlibpath_overrides_runpath=yes
10280  hardcode_into_libs=yes
10281  # ldd complains unless libraries are executable
10282  postinstall_cmds='chmod +x $lib'
10283  ;;
10284
10285sunos4*)
10286  version_type=sunos
10287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10288  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10289  shlibpath_var=LD_LIBRARY_PATH
10290  shlibpath_overrides_runpath=yes
10291  if test "$with_gnu_ld" = yes; then
10292    need_lib_prefix=no
10293  fi
10294  need_version=yes
10295  ;;
10296
10297sysv4 | sysv4.3*)
10298  version_type=linux
10299  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300  soname_spec='${libname}${release}${shared_ext}$major'
10301  shlibpath_var=LD_LIBRARY_PATH
10302  case $host_vendor in
10303    sni)
10304      shlibpath_overrides_runpath=no
10305      need_lib_prefix=no
10306      runpath_var=LD_RUN_PATH
10307      ;;
10308    siemens)
10309      need_lib_prefix=no
10310      ;;
10311    motorola)
10312      need_lib_prefix=no
10313      need_version=no
10314      shlibpath_overrides_runpath=no
10315      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10316      ;;
10317  esac
10318  ;;
10319
10320sysv4*MP*)
10321  if test -d /usr/nec ;then
10322    version_type=linux
10323    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10324    soname_spec='$libname${shared_ext}.$major'
10325    shlibpath_var=LD_LIBRARY_PATH
10326  fi
10327  ;;
10328
10329sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10330  version_type=freebsd-elf
10331  need_lib_prefix=no
10332  need_version=no
10333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10334  soname_spec='${libname}${release}${shared_ext}$major'
10335  shlibpath_var=LD_LIBRARY_PATH
10336  shlibpath_overrides_runpath=yes
10337  hardcode_into_libs=yes
10338  if test "$with_gnu_ld" = yes; then
10339    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10340  else
10341    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10342    case $host_os in
10343      sco3.2v5*)
10344        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10345	;;
10346    esac
10347  fi
10348  sys_lib_dlsearch_path_spec='/usr/lib'
10349  ;;
10350
10351tpf*)
10352  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10353  version_type=linux
10354  need_lib_prefix=no
10355  need_version=no
10356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357  shlibpath_var=LD_LIBRARY_PATH
10358  shlibpath_overrides_runpath=no
10359  hardcode_into_libs=yes
10360  ;;
10361
10362uts4*)
10363  version_type=linux
10364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365  soname_spec='${libname}${release}${shared_ext}$major'
10366  shlibpath_var=LD_LIBRARY_PATH
10367  ;;
10368
10369*)
10370  dynamic_linker=no
10371  ;;
10372esac
10373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10374$as_echo "$dynamic_linker" >&6; }
10375test "$dynamic_linker" = no && can_build_shared=no
10376
10377variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10378if test "$GCC" = yes; then
10379  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10380fi
10381
10382if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10383  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10384fi
10385if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10386  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10387fi
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10481$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10482hardcode_action=
10483if test -n "$hardcode_libdir_flag_spec" ||
10484   test -n "$runpath_var" ||
10485   test "X$hardcode_automatic" = "Xyes" ; then
10486
10487  # We can hardcode non-existent directories.
10488  if test "$hardcode_direct" != no &&
10489     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10490     # have to relink, otherwise we might link with an installed library
10491     # when we should be linking with a yet-to-be-installed one
10492     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10493     test "$hardcode_minus_L" != no; then
10494    # Linking always hardcodes the temporary library directory.
10495    hardcode_action=relink
10496  else
10497    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10498    hardcode_action=immediate
10499  fi
10500else
10501  # We cannot hardcode anything, or else we can only hardcode existing
10502  # directories.
10503  hardcode_action=unsupported
10504fi
10505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10506$as_echo "$hardcode_action" >&6; }
10507
10508if test "$hardcode_action" = relink ||
10509   test "$inherit_rpath" = yes; then
10510  # Fast installation is not supported
10511  enable_fast_install=no
10512elif test "$shlibpath_overrides_runpath" = yes ||
10513     test "$enable_shared" = no; then
10514  # Fast installation is not necessary
10515  enable_fast_install=needless
10516fi
10517
10518
10519
10520
10521
10522
10523  if test "x$enable_dlopen" != xyes; then
10524  enable_dlopen=unknown
10525  enable_dlopen_self=unknown
10526  enable_dlopen_self_static=unknown
10527else
10528  lt_cv_dlopen=no
10529  lt_cv_dlopen_libs=
10530
10531  case $host_os in
10532  beos*)
10533    lt_cv_dlopen="load_add_on"
10534    lt_cv_dlopen_libs=
10535    lt_cv_dlopen_self=yes
10536    ;;
10537
10538  mingw* | pw32* | cegcc*)
10539    lt_cv_dlopen="LoadLibrary"
10540    lt_cv_dlopen_libs=
10541    ;;
10542
10543  cygwin*)
10544    lt_cv_dlopen="dlopen"
10545    lt_cv_dlopen_libs=
10546    ;;
10547
10548  darwin*)
10549  # if libdl is installed we need to link against it
10550    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10551$as_echo_n "checking for dlopen in -ldl... " >&6; }
10552if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10553  $as_echo_n "(cached) " >&6
10554else
10555  ac_check_lib_save_LIBS=$LIBS
10556LIBS="-ldl  $LIBS"
10557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558/* end confdefs.h.  */
10559
10560/* Override any GCC internal prototype to avoid an error.
10561   Use char because int might match the return type of a GCC
10562   builtin and then its argument prototype would still apply.  */
10563#ifdef __cplusplus
10564extern "C"
10565#endif
10566char dlopen ();
10567int
10568main ()
10569{
10570return dlopen ();
10571  ;
10572  return 0;
10573}
10574_ACEOF
10575if ac_fn_c_try_link "$LINENO"; then :
10576  ac_cv_lib_dl_dlopen=yes
10577else
10578  ac_cv_lib_dl_dlopen=no
10579fi
10580rm -f core conftest.err conftest.$ac_objext \
10581    conftest$ac_exeext conftest.$ac_ext
10582LIBS=$ac_check_lib_save_LIBS
10583fi
10584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10585$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10586if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10587  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10588else
10589
10590    lt_cv_dlopen="dyld"
10591    lt_cv_dlopen_libs=
10592    lt_cv_dlopen_self=yes
10593
10594fi
10595
10596    ;;
10597
10598  *)
10599    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10600if test "x$ac_cv_func_shl_load" = x""yes; then :
10601  lt_cv_dlopen="shl_load"
10602else
10603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10604$as_echo_n "checking for shl_load in -ldld... " >&6; }
10605if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10606  $as_echo_n "(cached) " >&6
10607else
10608  ac_check_lib_save_LIBS=$LIBS
10609LIBS="-ldld  $LIBS"
10610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10611/* end confdefs.h.  */
10612
10613/* Override any GCC internal prototype to avoid an error.
10614   Use char because int might match the return type of a GCC
10615   builtin and then its argument prototype would still apply.  */
10616#ifdef __cplusplus
10617extern "C"
10618#endif
10619char shl_load ();
10620int
10621main ()
10622{
10623return shl_load ();
10624  ;
10625  return 0;
10626}
10627_ACEOF
10628if ac_fn_c_try_link "$LINENO"; then :
10629  ac_cv_lib_dld_shl_load=yes
10630else
10631  ac_cv_lib_dld_shl_load=no
10632fi
10633rm -f core conftest.err conftest.$ac_objext \
10634    conftest$ac_exeext conftest.$ac_ext
10635LIBS=$ac_check_lib_save_LIBS
10636fi
10637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10638$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10639if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10640  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10641else
10642  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10643if test "x$ac_cv_func_dlopen" = x""yes; then :
10644  lt_cv_dlopen="dlopen"
10645else
10646  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10647$as_echo_n "checking for dlopen in -ldl... " >&6; }
10648if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10649  $as_echo_n "(cached) " >&6
10650else
10651  ac_check_lib_save_LIBS=$LIBS
10652LIBS="-ldl  $LIBS"
10653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654/* end confdefs.h.  */
10655
10656/* Override any GCC internal prototype to avoid an error.
10657   Use char because int might match the return type of a GCC
10658   builtin and then its argument prototype would still apply.  */
10659#ifdef __cplusplus
10660extern "C"
10661#endif
10662char dlopen ();
10663int
10664main ()
10665{
10666return dlopen ();
10667  ;
10668  return 0;
10669}
10670_ACEOF
10671if ac_fn_c_try_link "$LINENO"; then :
10672  ac_cv_lib_dl_dlopen=yes
10673else
10674  ac_cv_lib_dl_dlopen=no
10675fi
10676rm -f core conftest.err conftest.$ac_objext \
10677    conftest$ac_exeext conftest.$ac_ext
10678LIBS=$ac_check_lib_save_LIBS
10679fi
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10681$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10682if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10683  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10684else
10685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10686$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10687if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10688  $as_echo_n "(cached) " >&6
10689else
10690  ac_check_lib_save_LIBS=$LIBS
10691LIBS="-lsvld  $LIBS"
10692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10693/* end confdefs.h.  */
10694
10695/* Override any GCC internal prototype to avoid an error.
10696   Use char because int might match the return type of a GCC
10697   builtin and then its argument prototype would still apply.  */
10698#ifdef __cplusplus
10699extern "C"
10700#endif
10701char dlopen ();
10702int
10703main ()
10704{
10705return dlopen ();
10706  ;
10707  return 0;
10708}
10709_ACEOF
10710if ac_fn_c_try_link "$LINENO"; then :
10711  ac_cv_lib_svld_dlopen=yes
10712else
10713  ac_cv_lib_svld_dlopen=no
10714fi
10715rm -f core conftest.err conftest.$ac_objext \
10716    conftest$ac_exeext conftest.$ac_ext
10717LIBS=$ac_check_lib_save_LIBS
10718fi
10719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10720$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10721if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10722  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10723else
10724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10725$as_echo_n "checking for dld_link in -ldld... " >&6; }
10726if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10727  $as_echo_n "(cached) " >&6
10728else
10729  ac_check_lib_save_LIBS=$LIBS
10730LIBS="-ldld  $LIBS"
10731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732/* end confdefs.h.  */
10733
10734/* Override any GCC internal prototype to avoid an error.
10735   Use char because int might match the return type of a GCC
10736   builtin and then its argument prototype would still apply.  */
10737#ifdef __cplusplus
10738extern "C"
10739#endif
10740char dld_link ();
10741int
10742main ()
10743{
10744return dld_link ();
10745  ;
10746  return 0;
10747}
10748_ACEOF
10749if ac_fn_c_try_link "$LINENO"; then :
10750  ac_cv_lib_dld_dld_link=yes
10751else
10752  ac_cv_lib_dld_dld_link=no
10753fi
10754rm -f core conftest.err conftest.$ac_objext \
10755    conftest$ac_exeext conftest.$ac_ext
10756LIBS=$ac_check_lib_save_LIBS
10757fi
10758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10759$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10760if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10761  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10762fi
10763
10764
10765fi
10766
10767
10768fi
10769
10770
10771fi
10772
10773
10774fi
10775
10776
10777fi
10778
10779    ;;
10780  esac
10781
10782  if test "x$lt_cv_dlopen" != xno; then
10783    enable_dlopen=yes
10784  else
10785    enable_dlopen=no
10786  fi
10787
10788  case $lt_cv_dlopen in
10789  dlopen)
10790    save_CPPFLAGS="$CPPFLAGS"
10791    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10792
10793    save_LDFLAGS="$LDFLAGS"
10794    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10795
10796    save_LIBS="$LIBS"
10797    LIBS="$lt_cv_dlopen_libs $LIBS"
10798
10799    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10800$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10801if test "${lt_cv_dlopen_self+set}" = set; then :
10802  $as_echo_n "(cached) " >&6
10803else
10804  	  if test "$cross_compiling" = yes; then :
10805  lt_cv_dlopen_self=cross
10806else
10807  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10808  lt_status=$lt_dlunknown
10809  cat > conftest.$ac_ext <<_LT_EOF
10810#line 10810 "configure"
10811#include "confdefs.h"
10812
10813#if HAVE_DLFCN_H
10814#include <dlfcn.h>
10815#endif
10816
10817#include <stdio.h>
10818
10819#ifdef RTLD_GLOBAL
10820#  define LT_DLGLOBAL		RTLD_GLOBAL
10821#else
10822#  ifdef DL_GLOBAL
10823#    define LT_DLGLOBAL		DL_GLOBAL
10824#  else
10825#    define LT_DLGLOBAL		0
10826#  endif
10827#endif
10828
10829/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10830   find out it does not work in some platform. */
10831#ifndef LT_DLLAZY_OR_NOW
10832#  ifdef RTLD_LAZY
10833#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10834#  else
10835#    ifdef DL_LAZY
10836#      define LT_DLLAZY_OR_NOW		DL_LAZY
10837#    else
10838#      ifdef RTLD_NOW
10839#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10840#      else
10841#        ifdef DL_NOW
10842#          define LT_DLLAZY_OR_NOW	DL_NOW
10843#        else
10844#          define LT_DLLAZY_OR_NOW	0
10845#        endif
10846#      endif
10847#    endif
10848#  endif
10849#endif
10850
10851/* When -fvisbility=hidden is used, assume the code has been annotated
10852   correspondingly for the symbols needed.  */
10853#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10854void fnord () __attribute__((visibility("default")));
10855#endif
10856
10857void fnord () { int i=42; }
10858int main ()
10859{
10860  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10861  int status = $lt_dlunknown;
10862
10863  if (self)
10864    {
10865      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10866      else
10867        {
10868	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10869          else puts (dlerror ());
10870	}
10871      /* dlclose (self); */
10872    }
10873  else
10874    puts (dlerror ());
10875
10876  return status;
10877}
10878_LT_EOF
10879  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10880  (eval $ac_link) 2>&5
10881  ac_status=$?
10882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10883  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10884    (./conftest; exit; ) >&5 2>/dev/null
10885    lt_status=$?
10886    case x$lt_status in
10887      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10888      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10889      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10890    esac
10891  else :
10892    # compilation failed
10893    lt_cv_dlopen_self=no
10894  fi
10895fi
10896rm -fr conftest*
10897
10898
10899fi
10900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10901$as_echo "$lt_cv_dlopen_self" >&6; }
10902
10903    if test "x$lt_cv_dlopen_self" = xyes; then
10904      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10905      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10906$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10907if test "${lt_cv_dlopen_self_static+set}" = set; then :
10908  $as_echo_n "(cached) " >&6
10909else
10910  	  if test "$cross_compiling" = yes; then :
10911  lt_cv_dlopen_self_static=cross
10912else
10913  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10914  lt_status=$lt_dlunknown
10915  cat > conftest.$ac_ext <<_LT_EOF
10916#line 10916 "configure"
10917#include "confdefs.h"
10918
10919#if HAVE_DLFCN_H
10920#include <dlfcn.h>
10921#endif
10922
10923#include <stdio.h>
10924
10925#ifdef RTLD_GLOBAL
10926#  define LT_DLGLOBAL		RTLD_GLOBAL
10927#else
10928#  ifdef DL_GLOBAL
10929#    define LT_DLGLOBAL		DL_GLOBAL
10930#  else
10931#    define LT_DLGLOBAL		0
10932#  endif
10933#endif
10934
10935/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10936   find out it does not work in some platform. */
10937#ifndef LT_DLLAZY_OR_NOW
10938#  ifdef RTLD_LAZY
10939#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10940#  else
10941#    ifdef DL_LAZY
10942#      define LT_DLLAZY_OR_NOW		DL_LAZY
10943#    else
10944#      ifdef RTLD_NOW
10945#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10946#      else
10947#        ifdef DL_NOW
10948#          define LT_DLLAZY_OR_NOW	DL_NOW
10949#        else
10950#          define LT_DLLAZY_OR_NOW	0
10951#        endif
10952#      endif
10953#    endif
10954#  endif
10955#endif
10956
10957/* When -fvisbility=hidden is used, assume the code has been annotated
10958   correspondingly for the symbols needed.  */
10959#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10960void fnord () __attribute__((visibility("default")));
10961#endif
10962
10963void fnord () { int i=42; }
10964int main ()
10965{
10966  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10967  int status = $lt_dlunknown;
10968
10969  if (self)
10970    {
10971      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10972      else
10973        {
10974	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10975          else puts (dlerror ());
10976	}
10977      /* dlclose (self); */
10978    }
10979  else
10980    puts (dlerror ());
10981
10982  return status;
10983}
10984_LT_EOF
10985  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10986  (eval $ac_link) 2>&5
10987  ac_status=$?
10988  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10989  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10990    (./conftest; exit; ) >&5 2>/dev/null
10991    lt_status=$?
10992    case x$lt_status in
10993      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10994      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10995      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10996    esac
10997  else :
10998    # compilation failed
10999    lt_cv_dlopen_self_static=no
11000  fi
11001fi
11002rm -fr conftest*
11003
11004
11005fi
11006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11007$as_echo "$lt_cv_dlopen_self_static" >&6; }
11008    fi
11009
11010    CPPFLAGS="$save_CPPFLAGS"
11011    LDFLAGS="$save_LDFLAGS"
11012    LIBS="$save_LIBS"
11013    ;;
11014  esac
11015
11016  case $lt_cv_dlopen_self in
11017  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11018  *) enable_dlopen_self=unknown ;;
11019  esac
11020
11021  case $lt_cv_dlopen_self_static in
11022  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11023  *) enable_dlopen_self_static=unknown ;;
11024  esac
11025fi
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043striplib=
11044old_striplib=
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11046$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11047if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11048  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11049  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11051$as_echo "yes" >&6; }
11052else
11053# FIXME - insert some real tests, host_os isn't really good enough
11054  case $host_os in
11055  darwin*)
11056    if test -n "$STRIP" ; then
11057      striplib="$STRIP -x"
11058      old_striplib="$STRIP -S"
11059      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11060$as_echo "yes" >&6; }
11061    else
11062      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063$as_echo "no" >&6; }
11064    fi
11065    ;;
11066  *)
11067    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11068$as_echo "no" >&6; }
11069    ;;
11070  esac
11071fi
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084  # Report which library types will actually be built
11085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11086$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11088$as_echo "$can_build_shared" >&6; }
11089
11090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11091$as_echo_n "checking whether to build shared libraries... " >&6; }
11092  test "$can_build_shared" = "no" && enable_shared=no
11093
11094  # On AIX, shared libraries and static libraries use the same namespace, and
11095  # are all built from PIC.
11096  case $host_os in
11097  aix3*)
11098    test "$enable_shared" = yes && enable_static=no
11099    if test -n "$RANLIB"; then
11100      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11101      postinstall_cmds='$RANLIB $lib'
11102    fi
11103    ;;
11104
11105  aix[4-9]*)
11106    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11107      test "$enable_shared" = yes && enable_static=no
11108    fi
11109    ;;
11110  esac
11111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11112$as_echo "$enable_shared" >&6; }
11113
11114  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11115$as_echo_n "checking whether to build static libraries... " >&6; }
11116  # Make sure either enable_shared or enable_static is yes.
11117  test "$enable_shared" = yes || enable_static=yes
11118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11119$as_echo "$enable_static" >&6; }
11120
11121
11122
11123
11124fi
11125ac_ext=c
11126ac_cpp='$CPP $CPPFLAGS'
11127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11129ac_compiler_gnu=$ac_cv_c_compiler_gnu
11130
11131CC="$lt_save_CC"
11132
11133      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11134    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11135    (test "X$CXX" != "Xg++"))) ; then
11136  ac_ext=cpp
11137ac_cpp='$CXXCPP $CPPFLAGS'
11138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11142$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11143if test -z "$CXXCPP"; then
11144  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11145  $as_echo_n "(cached) " >&6
11146else
11147      # Double quotes because CXXCPP needs to be expanded
11148    for CXXCPP in "$CXX -E" "/lib/cpp"
11149    do
11150      ac_preproc_ok=false
11151for ac_cxx_preproc_warn_flag in '' yes
11152do
11153  # Use a header file that comes with gcc, so configuring glibc
11154  # with a fresh cross-compiler works.
11155  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11156  # <limits.h> exists even on freestanding compilers.
11157  # On the NeXT, cc -E runs the code through the compiler's parser,
11158  # not just through cpp. "Syntax error" is here to catch this case.
11159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160/* end confdefs.h.  */
11161#ifdef __STDC__
11162# include <limits.h>
11163#else
11164# include <assert.h>
11165#endif
11166		     Syntax error
11167_ACEOF
11168if ac_fn_cxx_try_cpp "$LINENO"; then :
11169
11170else
11171  # Broken: fails on valid input.
11172continue
11173fi
11174rm -f conftest.err conftest.$ac_ext
11175
11176  # OK, works on sane cases.  Now check whether nonexistent headers
11177  # can be detected and how.
11178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179/* end confdefs.h.  */
11180#include <ac_nonexistent.h>
11181_ACEOF
11182if ac_fn_cxx_try_cpp "$LINENO"; then :
11183  # Broken: success on invalid input.
11184continue
11185else
11186  # Passes both tests.
11187ac_preproc_ok=:
11188break
11189fi
11190rm -f conftest.err conftest.$ac_ext
11191
11192done
11193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11194rm -f conftest.err conftest.$ac_ext
11195if $ac_preproc_ok; then :
11196  break
11197fi
11198
11199    done
11200    ac_cv_prog_CXXCPP=$CXXCPP
11201
11202fi
11203  CXXCPP=$ac_cv_prog_CXXCPP
11204else
11205  ac_cv_prog_CXXCPP=$CXXCPP
11206fi
11207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11208$as_echo "$CXXCPP" >&6; }
11209ac_preproc_ok=false
11210for ac_cxx_preproc_warn_flag in '' yes
11211do
11212  # Use a header file that comes with gcc, so configuring glibc
11213  # with a fresh cross-compiler works.
11214  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11215  # <limits.h> exists even on freestanding compilers.
11216  # On the NeXT, cc -E runs the code through the compiler's parser,
11217  # not just through cpp. "Syntax error" is here to catch this case.
11218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219/* end confdefs.h.  */
11220#ifdef __STDC__
11221# include <limits.h>
11222#else
11223# include <assert.h>
11224#endif
11225		     Syntax error
11226_ACEOF
11227if ac_fn_cxx_try_cpp "$LINENO"; then :
11228
11229else
11230  # Broken: fails on valid input.
11231continue
11232fi
11233rm -f conftest.err conftest.$ac_ext
11234
11235  # OK, works on sane cases.  Now check whether nonexistent headers
11236  # can be detected and how.
11237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238/* end confdefs.h.  */
11239#include <ac_nonexistent.h>
11240_ACEOF
11241if ac_fn_cxx_try_cpp "$LINENO"; then :
11242  # Broken: success on invalid input.
11243continue
11244else
11245  # Passes both tests.
11246ac_preproc_ok=:
11247break
11248fi
11249rm -f conftest.err conftest.$ac_ext
11250
11251done
11252# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11253rm -f conftest.err conftest.$ac_ext
11254if $ac_preproc_ok; then :
11255
11256else
11257  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11259as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11260See \`config.log' for more details." "$LINENO" 5; }
11261fi
11262
11263ac_ext=c
11264ac_cpp='$CPP $CPPFLAGS'
11265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11267ac_compiler_gnu=$ac_cv_c_compiler_gnu
11268
11269else
11270  _lt_caught_CXX_error=yes
11271fi
11272
11273ac_ext=cpp
11274ac_cpp='$CXXCPP $CPPFLAGS'
11275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11278
11279archive_cmds_need_lc_CXX=no
11280allow_undefined_flag_CXX=
11281always_export_symbols_CXX=no
11282archive_expsym_cmds_CXX=
11283compiler_needs_object_CXX=no
11284export_dynamic_flag_spec_CXX=
11285hardcode_direct_CXX=no
11286hardcode_direct_absolute_CXX=no
11287hardcode_libdir_flag_spec_CXX=
11288hardcode_libdir_flag_spec_ld_CXX=
11289hardcode_libdir_separator_CXX=
11290hardcode_minus_L_CXX=no
11291hardcode_shlibpath_var_CXX=unsupported
11292hardcode_automatic_CXX=no
11293inherit_rpath_CXX=no
11294module_cmds_CXX=
11295module_expsym_cmds_CXX=
11296link_all_deplibs_CXX=unknown
11297old_archive_cmds_CXX=$old_archive_cmds
11298reload_flag_CXX=$reload_flag
11299reload_cmds_CXX=$reload_cmds
11300no_undefined_flag_CXX=
11301whole_archive_flag_spec_CXX=
11302enable_shared_with_static_runtimes_CXX=no
11303
11304# Source file extension for C++ test sources.
11305ac_ext=cpp
11306
11307# Object file extension for compiled C++ test sources.
11308objext=o
11309objext_CXX=$objext
11310
11311# No sense in running all these tests if we already determined that
11312# the CXX compiler isn't working.  Some variables (like enable_shared)
11313# are currently assumed to apply to all compilers on this platform,
11314# and will be corrupted by setting them based on a non-working compiler.
11315if test "$_lt_caught_CXX_error" != yes; then
11316  # Code to be used in simple compile tests
11317  lt_simple_compile_test_code="int some_variable = 0;"
11318
11319  # Code to be used in simple link tests
11320  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11321
11322  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11323
11324
11325
11326
11327
11328
11329# If no C compiler was specified, use CC.
11330LTCC=${LTCC-"$CC"}
11331
11332# If no C compiler flags were specified, use CFLAGS.
11333LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11334
11335# Allow CC to be a program name with arguments.
11336compiler=$CC
11337
11338
11339  # save warnings/boilerplate of simple test code
11340  ac_outfile=conftest.$ac_objext
11341echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11342eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11343_lt_compiler_boilerplate=`cat conftest.err`
11344$RM conftest*
11345
11346  ac_outfile=conftest.$ac_objext
11347echo "$lt_simple_link_test_code" >conftest.$ac_ext
11348eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11349_lt_linker_boilerplate=`cat conftest.err`
11350$RM -r conftest*
11351
11352
11353  # Allow CC to be a program name with arguments.
11354  lt_save_CC=$CC
11355  lt_save_LD=$LD
11356  lt_save_GCC=$GCC
11357  GCC=$GXX
11358  lt_save_with_gnu_ld=$with_gnu_ld
11359  lt_save_path_LD=$lt_cv_path_LD
11360  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11361    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11362  else
11363    $as_unset lt_cv_prog_gnu_ld
11364  fi
11365  if test -n "${lt_cv_path_LDCXX+set}"; then
11366    lt_cv_path_LD=$lt_cv_path_LDCXX
11367  else
11368    $as_unset lt_cv_path_LD
11369  fi
11370  test -z "${LDCXX+set}" || LD=$LDCXX
11371  CC=${CXX-"c++"}
11372  compiler=$CC
11373  compiler_CXX=$CC
11374  for cc_temp in $compiler""; do
11375  case $cc_temp in
11376    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11377    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11378    \-*) ;;
11379    *) break;;
11380  esac
11381done
11382cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11383
11384
11385  if test -n "$compiler"; then
11386    # We don't want -fno-exception when compiling C++ code, so set the
11387    # no_builtin_flag separately
11388    if test "$GXX" = yes; then
11389      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11390    else
11391      lt_prog_compiler_no_builtin_flag_CXX=
11392    fi
11393
11394    if test "$GXX" = yes; then
11395      # Set up default GNU C++ configuration
11396
11397
11398
11399# Check whether --with-gnu-ld was given.
11400if test "${with_gnu_ld+set}" = set; then :
11401  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11402else
11403  with_gnu_ld=no
11404fi
11405
11406ac_prog=ld
11407if test "$GCC" = yes; then
11408  # Check if gcc -print-prog-name=ld gives a path.
11409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11410$as_echo_n "checking for ld used by $CC... " >&6; }
11411  case $host in
11412  *-*-mingw*)
11413    # gcc leaves a trailing carriage return which upsets mingw
11414    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11415  *)
11416    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11417  esac
11418  case $ac_prog in
11419    # Accept absolute paths.
11420    [\\/]* | ?:[\\/]*)
11421      re_direlt='/[^/][^/]*/\.\./'
11422      # Canonicalize the pathname of ld
11423      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11424      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11425	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11426      done
11427      test -z "$LD" && LD="$ac_prog"
11428      ;;
11429  "")
11430    # If it fails, then pretend we aren't using GCC.
11431    ac_prog=ld
11432    ;;
11433  *)
11434    # If it is relative, then search for the first ld in PATH.
11435    with_gnu_ld=unknown
11436    ;;
11437  esac
11438elif test "$with_gnu_ld" = yes; then
11439  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11440$as_echo_n "checking for GNU ld... " >&6; }
11441else
11442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11443$as_echo_n "checking for non-GNU ld... " >&6; }
11444fi
11445if test "${lt_cv_path_LD+set}" = set; then :
11446  $as_echo_n "(cached) " >&6
11447else
11448  if test -z "$LD"; then
11449  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11450  for ac_dir in $PATH; do
11451    IFS="$lt_save_ifs"
11452    test -z "$ac_dir" && ac_dir=.
11453    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11454      lt_cv_path_LD="$ac_dir/$ac_prog"
11455      # Check to see if the program is GNU ld.  I'd rather use --version,
11456      # but apparently some variants of GNU ld only accept -v.
11457      # Break only if it was the GNU/non-GNU ld that we prefer.
11458      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11459      *GNU* | *'with BFD'*)
11460	test "$with_gnu_ld" != no && break
11461	;;
11462      *)
11463	test "$with_gnu_ld" != yes && break
11464	;;
11465      esac
11466    fi
11467  done
11468  IFS="$lt_save_ifs"
11469else
11470  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11471fi
11472fi
11473
11474LD="$lt_cv_path_LD"
11475if test -n "$LD"; then
11476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11477$as_echo "$LD" >&6; }
11478else
11479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480$as_echo "no" >&6; }
11481fi
11482test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11484$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11485if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11486  $as_echo_n "(cached) " >&6
11487else
11488  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11489case `$LD -v 2>&1 </dev/null` in
11490*GNU* | *'with BFD'*)
11491  lt_cv_prog_gnu_ld=yes
11492  ;;
11493*)
11494  lt_cv_prog_gnu_ld=no
11495  ;;
11496esac
11497fi
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11499$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11500with_gnu_ld=$lt_cv_prog_gnu_ld
11501
11502
11503
11504
11505
11506
11507
11508      # Check if GNU C++ uses GNU ld as the underlying linker, since the
11509      # archiving commands below assume that GNU ld is being used.
11510      if test "$with_gnu_ld" = yes; then
11511        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11512        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'
11513
11514        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11515        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11516
11517        # If archive_cmds runs LD, not CC, wlarc should be empty
11518        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11519        #     investigate it a little bit more. (MM)
11520        wlarc='${wl}'
11521
11522        # ancient GNU ld didn't support --whole-archive et. al.
11523        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11524	  $GREP 'no-whole-archive' > /dev/null; then
11525          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11526        else
11527          whole_archive_flag_spec_CXX=
11528        fi
11529      else
11530        with_gnu_ld=no
11531        wlarc=
11532
11533        # A generic and very simple default shared library creation
11534        # command for GNU C++ for the case where it uses the native
11535        # linker, instead of GNU ld.  If possible, this setting should
11536        # overridden to take advantage of the native linker features on
11537        # the platform it is being used on.
11538        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11539      fi
11540
11541      # Commands to make compiler produce verbose output that lists
11542      # what "hidden" libraries, object files and flags are used when
11543      # linking a shared library.
11544      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11545
11546    else
11547      GXX=no
11548      with_gnu_ld=no
11549      wlarc=
11550    fi
11551
11552    # PORTME: fill in a description of your system's C++ link characteristics
11553    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11554$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11555    ld_shlibs_CXX=yes
11556    case $host_os in
11557      aix3*)
11558        # FIXME: insert proper C++ library support
11559        ld_shlibs_CXX=no
11560        ;;
11561      aix[4-9]*)
11562        if test "$host_cpu" = ia64; then
11563          # On IA64, the linker does run time linking by default, so we don't
11564          # have to do anything special.
11565          aix_use_runtimelinking=no
11566          exp_sym_flag='-Bexport'
11567          no_entry_flag=""
11568        else
11569          aix_use_runtimelinking=no
11570
11571          # Test if we are trying to use run time linking or normal
11572          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11573          # need to do runtime linking.
11574          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11575	    for ld_flag in $LDFLAGS; do
11576	      case $ld_flag in
11577	      *-brtl*)
11578	        aix_use_runtimelinking=yes
11579	        break
11580	        ;;
11581	      esac
11582	    done
11583	    ;;
11584          esac
11585
11586          exp_sym_flag='-bexport'
11587          no_entry_flag='-bnoentry'
11588        fi
11589
11590        # When large executables or shared objects are built, AIX ld can
11591        # have problems creating the table of contents.  If linking a library
11592        # or program results in "error TOC overflow" add -mminimal-toc to
11593        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11594        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11595
11596        archive_cmds_CXX=''
11597        hardcode_direct_CXX=yes
11598        hardcode_direct_absolute_CXX=yes
11599        hardcode_libdir_separator_CXX=':'
11600        link_all_deplibs_CXX=yes
11601        file_list_spec_CXX='${wl}-f,'
11602
11603        if test "$GXX" = yes; then
11604          case $host_os in aix4.[012]|aix4.[012].*)
11605          # We only want to do this on AIX 4.2 and lower, the check
11606          # below for broken collect2 doesn't work under 4.3+
11607	  collect2name=`${CC} -print-prog-name=collect2`
11608	  if test -f "$collect2name" &&
11609	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11610	  then
11611	    # We have reworked collect2
11612	    :
11613	  else
11614	    # We have old collect2
11615	    hardcode_direct_CXX=unsupported
11616	    # It fails to find uninstalled libraries when the uninstalled
11617	    # path is not listed in the libpath.  Setting hardcode_minus_L
11618	    # to unsupported forces relinking
11619	    hardcode_minus_L_CXX=yes
11620	    hardcode_libdir_flag_spec_CXX='-L$libdir'
11621	    hardcode_libdir_separator_CXX=
11622	  fi
11623          esac
11624          shared_flag='-shared'
11625	  if test "$aix_use_runtimelinking" = yes; then
11626	    shared_flag="$shared_flag "'${wl}-G'
11627	  fi
11628        else
11629          # not using gcc
11630          if test "$host_cpu" = ia64; then
11631	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11632	  # chokes on -Wl,-G. The following line is correct:
11633	  shared_flag='-G'
11634          else
11635	    if test "$aix_use_runtimelinking" = yes; then
11636	      shared_flag='${wl}-G'
11637	    else
11638	      shared_flag='${wl}-bM:SRE'
11639	    fi
11640          fi
11641        fi
11642
11643        export_dynamic_flag_spec_CXX='${wl}-bexpall'
11644        # It seems that -bexpall does not export symbols beginning with
11645        # underscore (_), so it is better to generate a list of symbols to
11646	# export.
11647        always_export_symbols_CXX=yes
11648        if test "$aix_use_runtimelinking" = yes; then
11649          # Warning - without using the other runtime loading flags (-brtl),
11650          # -berok will link without error, but may produce a broken library.
11651          allow_undefined_flag_CXX='-berok'
11652          # Determine the default libpath from the value encoded in an empty
11653          # executable.
11654          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655/* end confdefs.h.  */
11656
11657int
11658main ()
11659{
11660
11661  ;
11662  return 0;
11663}
11664_ACEOF
11665if ac_fn_cxx_try_link "$LINENO"; then :
11666
11667lt_aix_libpath_sed='
11668    /Import File Strings/,/^$/ {
11669	/^0/ {
11670	    s/^0  *\(.*\)$/\1/
11671	    p
11672	}
11673    }'
11674aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11675# Check for a 64-bit object if we didn't find anything.
11676if test -z "$aix_libpath"; then
11677  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11678fi
11679fi
11680rm -f core conftest.err conftest.$ac_objext \
11681    conftest$ac_exeext conftest.$ac_ext
11682if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11683
11684          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11685
11686          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"
11687        else
11688          if test "$host_cpu" = ia64; then
11689	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11690	    allow_undefined_flag_CXX="-z nodefs"
11691	    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"
11692          else
11693	    # Determine the default libpath from the value encoded in an
11694	    # empty executable.
11695	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11696/* end confdefs.h.  */
11697
11698int
11699main ()
11700{
11701
11702  ;
11703  return 0;
11704}
11705_ACEOF
11706if ac_fn_cxx_try_link "$LINENO"; then :
11707
11708lt_aix_libpath_sed='
11709    /Import File Strings/,/^$/ {
11710	/^0/ {
11711	    s/^0  *\(.*\)$/\1/
11712	    p
11713	}
11714    }'
11715aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11716# Check for a 64-bit object if we didn't find anything.
11717if test -z "$aix_libpath"; then
11718  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11719fi
11720fi
11721rm -f core conftest.err conftest.$ac_objext \
11722    conftest$ac_exeext conftest.$ac_ext
11723if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11724
11725	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11726	    # Warning - without using the other run time loading flags,
11727	    # -berok will link without error, but may produce a broken library.
11728	    no_undefined_flag_CXX=' ${wl}-bernotok'
11729	    allow_undefined_flag_CXX=' ${wl}-berok'
11730	    if test "$with_gnu_ld" = yes; then
11731	      # We only use this code for GNU lds that support --whole-archive.
11732	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11733	    else
11734	      # Exported symbols can be pulled into shared objects from archives
11735	      whole_archive_flag_spec_CXX='$convenience'
11736	    fi
11737	    archive_cmds_need_lc_CXX=yes
11738	    # This is similar to how AIX traditionally builds its shared
11739	    # libraries.
11740	    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'
11741          fi
11742        fi
11743        ;;
11744
11745      beos*)
11746	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11747	  allow_undefined_flag_CXX=unsupported
11748	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11749	  # support --undefined.  This deserves some investigation.  FIXME
11750	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11751	else
11752	  ld_shlibs_CXX=no
11753	fi
11754	;;
11755
11756      chorus*)
11757        case $cc_basename in
11758          *)
11759	  # FIXME: insert proper C++ library support
11760	  ld_shlibs_CXX=no
11761	  ;;
11762        esac
11763        ;;
11764
11765      cygwin* | mingw* | pw32* | cegcc*)
11766        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11767        # as there is no search path for DLLs.
11768        hardcode_libdir_flag_spec_CXX='-L$libdir'
11769        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11770        allow_undefined_flag_CXX=unsupported
11771        always_export_symbols_CXX=no
11772        enable_shared_with_static_runtimes_CXX=yes
11773
11774        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11775          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'
11776          # If the export-symbols file already is a .def file (1st line
11777          # is EXPORTS), use it as is; otherwise, prepend...
11778          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11779	    cp $export_symbols $output_objdir/$soname.def;
11780          else
11781	    echo EXPORTS > $output_objdir/$soname.def;
11782	    cat $export_symbols >> $output_objdir/$soname.def;
11783          fi~
11784          $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'
11785        else
11786          ld_shlibs_CXX=no
11787        fi
11788        ;;
11789      darwin* | rhapsody*)
11790
11791
11792  archive_cmds_need_lc_CXX=no
11793  hardcode_direct_CXX=no
11794  hardcode_automatic_CXX=yes
11795  hardcode_shlibpath_var_CXX=unsupported
11796  if test "$lt_cv_ld_force_load" = "yes"; then
11797    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\"`'
11798  else
11799    whole_archive_flag_spec_CXX=''
11800  fi
11801  link_all_deplibs_CXX=yes
11802  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11803  case $cc_basename in
11804     ifort*) _lt_dar_can_shared=yes ;;
11805     *) _lt_dar_can_shared=$GCC ;;
11806  esac
11807  if test "$_lt_dar_can_shared" = "yes"; then
11808    output_verbose_link_cmd=func_echo_all
11809    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}"
11810    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11811    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}"
11812    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}"
11813       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11814      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}"
11815      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}"
11816    fi
11817
11818  else
11819  ld_shlibs_CXX=no
11820  fi
11821
11822	;;
11823
11824      dgux*)
11825        case $cc_basename in
11826          ec++*)
11827	    # FIXME: insert proper C++ library support
11828	    ld_shlibs_CXX=no
11829	    ;;
11830          ghcx*)
11831	    # Green Hills C++ Compiler
11832	    # FIXME: insert proper C++ library support
11833	    ld_shlibs_CXX=no
11834	    ;;
11835          *)
11836	    # FIXME: insert proper C++ library support
11837	    ld_shlibs_CXX=no
11838	    ;;
11839        esac
11840        ;;
11841
11842      freebsd2.*)
11843        # C++ shared libraries reported to be fairly broken before
11844	# switch to ELF
11845        ld_shlibs_CXX=no
11846        ;;
11847
11848      freebsd-elf*)
11849        archive_cmds_need_lc_CXX=no
11850        ;;
11851
11852      freebsd* | dragonfly*)
11853        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11854        # conventions
11855        ld_shlibs_CXX=yes
11856        ;;
11857
11858      gnu*)
11859        ;;
11860
11861      haiku*)
11862        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11863        link_all_deplibs_CXX=yes
11864        ;;
11865
11866      hpux9*)
11867        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11868        hardcode_libdir_separator_CXX=:
11869        export_dynamic_flag_spec_CXX='${wl}-E'
11870        hardcode_direct_CXX=yes
11871        hardcode_minus_L_CXX=yes # Not in the search PATH,
11872				             # but as the default
11873				             # location of the library.
11874
11875        case $cc_basename in
11876          CC*)
11877            # FIXME: insert proper C++ library support
11878            ld_shlibs_CXX=no
11879            ;;
11880          aCC*)
11881            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'
11882            # Commands to make compiler produce verbose output that lists
11883            # what "hidden" libraries, object files and flags are used when
11884            # linking a shared library.
11885            #
11886            # There doesn't appear to be a way to prevent this compiler from
11887            # explicitly linking system object files so we need to strip them
11888            # from the output so that they don't get included in the library
11889            # dependencies.
11890            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"'
11891            ;;
11892          *)
11893            if test "$GXX" = yes; then
11894              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'
11895            else
11896              # FIXME: insert proper C++ library support
11897              ld_shlibs_CXX=no
11898            fi
11899            ;;
11900        esac
11901        ;;
11902
11903      hpux10*|hpux11*)
11904        if test $with_gnu_ld = no; then
11905	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11906	  hardcode_libdir_separator_CXX=:
11907
11908          case $host_cpu in
11909            hppa*64*|ia64*)
11910              ;;
11911            *)
11912	      export_dynamic_flag_spec_CXX='${wl}-E'
11913              ;;
11914          esac
11915        fi
11916        case $host_cpu in
11917          hppa*64*|ia64*)
11918            hardcode_direct_CXX=no
11919            hardcode_shlibpath_var_CXX=no
11920            ;;
11921          *)
11922            hardcode_direct_CXX=yes
11923            hardcode_direct_absolute_CXX=yes
11924            hardcode_minus_L_CXX=yes # Not in the search PATH,
11925					         # but as the default
11926					         # location of the library.
11927            ;;
11928        esac
11929
11930        case $cc_basename in
11931          CC*)
11932	    # FIXME: insert proper C++ library support
11933	    ld_shlibs_CXX=no
11934	    ;;
11935          aCC*)
11936	    case $host_cpu in
11937	      hppa*64*)
11938	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11939	        ;;
11940	      ia64*)
11941	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11942	        ;;
11943	      *)
11944	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11945	        ;;
11946	    esac
11947	    # Commands to make compiler produce verbose output that lists
11948	    # what "hidden" libraries, object files and flags are used when
11949	    # linking a shared library.
11950	    #
11951	    # There doesn't appear to be a way to prevent this compiler from
11952	    # explicitly linking system object files so we need to strip them
11953	    # from the output so that they don't get included in the library
11954	    # dependencies.
11955	    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"'
11956	    ;;
11957          *)
11958	    if test "$GXX" = yes; then
11959	      if test $with_gnu_ld = no; then
11960	        case $host_cpu in
11961	          hppa*64*)
11962	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11963	            ;;
11964	          ia64*)
11965	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11966	            ;;
11967	          *)
11968	            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'
11969	            ;;
11970	        esac
11971	      fi
11972	    else
11973	      # FIXME: insert proper C++ library support
11974	      ld_shlibs_CXX=no
11975	    fi
11976	    ;;
11977        esac
11978        ;;
11979
11980      interix[3-9]*)
11981	hardcode_direct_CXX=no
11982	hardcode_shlibpath_var_CXX=no
11983	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11984	export_dynamic_flag_spec_CXX='${wl}-E'
11985	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11986	# Instead, shared libraries are loaded at an image base (0x10000000 by
11987	# default) and relocated if they conflict, which is a slow very memory
11988	# consuming and fragmenting process.  To avoid this, we pick a random,
11989	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11990	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11991	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'
11992	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'
11993	;;
11994      irix5* | irix6*)
11995        case $cc_basename in
11996          CC*)
11997	    # SGI C++
11998	    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'
11999
12000	    # Archives containing C++ object files must be created using
12001	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12002	    # necessary to make sure instantiated templates are included
12003	    # in the archive.
12004	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12005	    ;;
12006          *)
12007	    if test "$GXX" = yes; then
12008	      if test "$with_gnu_ld" = no; then
12009	        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'
12010	      else
12011	        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'
12012	      fi
12013	    fi
12014	    link_all_deplibs_CXX=yes
12015	    ;;
12016        esac
12017        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12018        hardcode_libdir_separator_CXX=:
12019        inherit_rpath_CXX=yes
12020        ;;
12021
12022      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12023        case $cc_basename in
12024          KCC*)
12025	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12026
12027	    # KCC will only create a shared library if the output file
12028	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12029	    # to its proper name (with version) after linking.
12030	    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'
12031	    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'
12032	    # Commands to make compiler produce verbose output that lists
12033	    # what "hidden" libraries, object files and flags are used when
12034	    # linking a shared library.
12035	    #
12036	    # There doesn't appear to be a way to prevent this compiler from
12037	    # explicitly linking system object files so we need to strip them
12038	    # from the output so that they don't get included in the library
12039	    # dependencies.
12040	    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"'
12041
12042	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12043	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12044
12045	    # Archives containing C++ object files must be created using
12046	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12047	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12048	    ;;
12049	  icpc* | ecpc* )
12050	    # Intel C++
12051	    with_gnu_ld=yes
12052	    # version 8.0 and above of icpc choke on multiply defined symbols
12053	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12054	    # earlier do not add the objects themselves.
12055	    case `$CC -V 2>&1` in
12056	      *"Version 7."*)
12057	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12058		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'
12059		;;
12060	      *)  # Version 8.0 or newer
12061	        tmp_idyn=
12062	        case $host_cpu in
12063		  ia64*) tmp_idyn=' -i_dynamic';;
12064		esac
12065	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12066		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'
12067		;;
12068	    esac
12069	    archive_cmds_need_lc_CXX=no
12070	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12071	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12072	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12073	    ;;
12074          pgCC* | pgcpp*)
12075            # Portland Group C++ compiler
12076	    case `$CC -V` in
12077	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12078	      prelink_cmds_CXX='tpldir=Template.dir~
12079		rm -rf $tpldir~
12080		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12081		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12082	      old_archive_cmds_CXX='tpldir=Template.dir~
12083		rm -rf $tpldir~
12084		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12085		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12086		$RANLIB $oldlib'
12087	      archive_cmds_CXX='tpldir=Template.dir~
12088		rm -rf $tpldir~
12089		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12090		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12091	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12092		rm -rf $tpldir~
12093		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12094		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12095	      ;;
12096	    *) # Version 6 and above use weak symbols
12097	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12098	      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'
12099	      ;;
12100	    esac
12101
12102	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12103	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12104	    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'
12105            ;;
12106	  cxx*)
12107	    # Compaq C++
12108	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12109	    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'
12110
12111	    runpath_var=LD_RUN_PATH
12112	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12113	    hardcode_libdir_separator_CXX=:
12114
12115	    # Commands to make compiler produce verbose output that lists
12116	    # what "hidden" libraries, object files and flags are used when
12117	    # linking a shared library.
12118	    #
12119	    # There doesn't appear to be a way to prevent this compiler from
12120	    # explicitly linking system object files so we need to strip them
12121	    # from the output so that they don't get included in the library
12122	    # dependencies.
12123	    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'
12124	    ;;
12125	  xl* | mpixl* | bgxl*)
12126	    # IBM XL 8.0 on PPC, with GNU ld
12127	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12128	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12129	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12130	    if test "x$supports_anon_versioning" = xyes; then
12131	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12132		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12133		echo "local: *; };" >> $output_objdir/$libname.ver~
12134		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12135	    fi
12136	    ;;
12137	  *)
12138	    case `$CC -V 2>&1 | sed 5q` in
12139	    *Sun\ C*)
12140	      # Sun C++ 5.9
12141	      no_undefined_flag_CXX=' -zdefs'
12142	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12143	      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'
12144	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12145	      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'
12146	      compiler_needs_object_CXX=yes
12147
12148	      # Not sure whether something based on
12149	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12150	      # would be better.
12151	      output_verbose_link_cmd='func_echo_all'
12152
12153	      # Archives containing C++ object files must be created using
12154	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12155	      # necessary to make sure instantiated templates are included
12156	      # in the archive.
12157	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12158	      ;;
12159	    esac
12160	    ;;
12161	esac
12162	;;
12163
12164      lynxos*)
12165        # FIXME: insert proper C++ library support
12166	ld_shlibs_CXX=no
12167	;;
12168
12169      m88k*)
12170        # FIXME: insert proper C++ library support
12171        ld_shlibs_CXX=no
12172	;;
12173
12174      mvs*)
12175        case $cc_basename in
12176          cxx*)
12177	    # FIXME: insert proper C++ library support
12178	    ld_shlibs_CXX=no
12179	    ;;
12180	  *)
12181	    # FIXME: insert proper C++ library support
12182	    ld_shlibs_CXX=no
12183	    ;;
12184	esac
12185	;;
12186
12187      netbsd*)
12188        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12189	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12190	  wlarc=
12191	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12192	  hardcode_direct_CXX=yes
12193	  hardcode_shlibpath_var_CXX=no
12194	fi
12195	# Workaround some broken pre-1.5 toolchains
12196	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12197	;;
12198
12199      *nto* | *qnx*)
12200        ld_shlibs_CXX=yes
12201	;;
12202
12203      openbsd2*)
12204        # C++ shared libraries are fairly broken
12205	ld_shlibs_CXX=no
12206	;;
12207
12208      openbsd*)
12209	if test -f /usr/libexec/ld.so; then
12210	  hardcode_direct_CXX=yes
12211	  hardcode_shlibpath_var_CXX=no
12212	  hardcode_direct_absolute_CXX=yes
12213	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12214	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12215	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12216	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12217	    export_dynamic_flag_spec_CXX='${wl}-E'
12218	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12219	  fi
12220	  output_verbose_link_cmd=func_echo_all
12221	else
12222	  ld_shlibs_CXX=no
12223	fi
12224	;;
12225
12226      osf3* | osf4* | osf5*)
12227        case $cc_basename in
12228          KCC*)
12229	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12230
12231	    # KCC will only create a shared library if the output file
12232	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12233	    # to its proper name (with version) after linking.
12234	    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'
12235
12236	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12237	    hardcode_libdir_separator_CXX=:
12238
12239	    # Archives containing C++ object files must be created using
12240	    # the KAI C++ compiler.
12241	    case $host in
12242	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12243	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12244	    esac
12245	    ;;
12246          RCC*)
12247	    # Rational C++ 2.4.1
12248	    # FIXME: insert proper C++ library support
12249	    ld_shlibs_CXX=no
12250	    ;;
12251          cxx*)
12252	    case $host in
12253	      osf3*)
12254	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12255	        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'
12256	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12257		;;
12258	      *)
12259	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12260	        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'
12261	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12262	          echo "-hidden">> $lib.exp~
12263	          $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~
12264	          $RM $lib.exp'
12265	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12266		;;
12267	    esac
12268
12269	    hardcode_libdir_separator_CXX=:
12270
12271	    # Commands to make compiler produce verbose output that lists
12272	    # what "hidden" libraries, object files and flags are used when
12273	    # linking a shared library.
12274	    #
12275	    # There doesn't appear to be a way to prevent this compiler from
12276	    # explicitly linking system object files so we need to strip them
12277	    # from the output so that they don't get included in the library
12278	    # dependencies.
12279	    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"'
12280	    ;;
12281	  *)
12282	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12283	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12284	      case $host in
12285	        osf3*)
12286	          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'
12287		  ;;
12288	        *)
12289	          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'
12290		  ;;
12291	      esac
12292
12293	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12294	      hardcode_libdir_separator_CXX=:
12295
12296	      # Commands to make compiler produce verbose output that lists
12297	      # what "hidden" libraries, object files and flags are used when
12298	      # linking a shared library.
12299	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12300
12301	    else
12302	      # FIXME: insert proper C++ library support
12303	      ld_shlibs_CXX=no
12304	    fi
12305	    ;;
12306        esac
12307        ;;
12308
12309      psos*)
12310        # FIXME: insert proper C++ library support
12311        ld_shlibs_CXX=no
12312        ;;
12313
12314      sunos4*)
12315        case $cc_basename in
12316          CC*)
12317	    # Sun C++ 4.x
12318	    # FIXME: insert proper C++ library support
12319	    ld_shlibs_CXX=no
12320	    ;;
12321          lcc*)
12322	    # Lucid
12323	    # FIXME: insert proper C++ library support
12324	    ld_shlibs_CXX=no
12325	    ;;
12326          *)
12327	    # FIXME: insert proper C++ library support
12328	    ld_shlibs_CXX=no
12329	    ;;
12330        esac
12331        ;;
12332
12333      solaris*)
12334        case $cc_basename in
12335          CC*)
12336	    # Sun C++ 4.2, 5.x and Centerline C++
12337            archive_cmds_need_lc_CXX=yes
12338	    no_undefined_flag_CXX=' -zdefs'
12339	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12340	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12341	      $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'
12342
12343	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12344	    hardcode_shlibpath_var_CXX=no
12345	    case $host_os in
12346	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12347	      *)
12348		# The compiler driver will combine and reorder linker options,
12349		# but understands `-z linker_flag'.
12350	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12351		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12352	        ;;
12353	    esac
12354	    link_all_deplibs_CXX=yes
12355
12356	    output_verbose_link_cmd='func_echo_all'
12357
12358	    # Archives containing C++ object files must be created using
12359	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12360	    # necessary to make sure instantiated templates are included
12361	    # in the archive.
12362	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12363	    ;;
12364          gcx*)
12365	    # Green Hills C++ Compiler
12366	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12367
12368	    # The C++ compiler must be used to create the archive.
12369	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12370	    ;;
12371          *)
12372	    # GNU C++ compiler with Solaris linker
12373	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12374	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12375	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12376	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12377	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12378		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12379
12380	        # Commands to make compiler produce verbose output that lists
12381	        # what "hidden" libraries, object files and flags are used when
12382	        # linking a shared library.
12383	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12384	      else
12385	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
12386	        # platform.
12387	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12388	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12389		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12390
12391	        # Commands to make compiler produce verbose output that lists
12392	        # what "hidden" libraries, object files and flags are used when
12393	        # linking a shared library.
12394	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12395	      fi
12396
12397	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12398	      case $host_os in
12399		solaris2.[0-5] | solaris2.[0-5].*) ;;
12400		*)
12401		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12402		  ;;
12403	      esac
12404	    fi
12405	    ;;
12406        esac
12407        ;;
12408
12409    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12410      no_undefined_flag_CXX='${wl}-z,text'
12411      archive_cmds_need_lc_CXX=no
12412      hardcode_shlibpath_var_CXX=no
12413      runpath_var='LD_RUN_PATH'
12414
12415      case $cc_basename in
12416        CC*)
12417	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12418	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12419	  ;;
12420	*)
12421	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12422	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12423	  ;;
12424      esac
12425      ;;
12426
12427      sysv5* | sco3.2v5* | sco5v6*)
12428	# Note: We can NOT use -z defs as we might desire, because we do not
12429	# link with -lc, and that would cause any symbols used from libc to
12430	# always be unresolved, which means just about no library would
12431	# ever link correctly.  If we're not using GNU ld we use -z text
12432	# though, which does catch some bad symbols but isn't as heavy-handed
12433	# as -z defs.
12434	no_undefined_flag_CXX='${wl}-z,text'
12435	allow_undefined_flag_CXX='${wl}-z,nodefs'
12436	archive_cmds_need_lc_CXX=no
12437	hardcode_shlibpath_var_CXX=no
12438	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12439	hardcode_libdir_separator_CXX=':'
12440	link_all_deplibs_CXX=yes
12441	export_dynamic_flag_spec_CXX='${wl}-Bexport'
12442	runpath_var='LD_RUN_PATH'
12443
12444	case $cc_basename in
12445          CC*)
12446	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12447	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12448	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12449	      '"$old_archive_cmds_CXX"
12450	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12451	      '"$reload_cmds_CXX"
12452	    ;;
12453	  *)
12454	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12455	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12456	    ;;
12457	esac
12458      ;;
12459
12460      tandem*)
12461        case $cc_basename in
12462          NCC*)
12463	    # NonStop-UX NCC 3.20
12464	    # FIXME: insert proper C++ library support
12465	    ld_shlibs_CXX=no
12466	    ;;
12467          *)
12468	    # FIXME: insert proper C++ library support
12469	    ld_shlibs_CXX=no
12470	    ;;
12471        esac
12472        ;;
12473
12474      vxworks*)
12475        # FIXME: insert proper C++ library support
12476        ld_shlibs_CXX=no
12477        ;;
12478
12479      *)
12480        # FIXME: insert proper C++ library support
12481        ld_shlibs_CXX=no
12482        ;;
12483    esac
12484
12485    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12486$as_echo "$ld_shlibs_CXX" >&6; }
12487    test "$ld_shlibs_CXX" = no && can_build_shared=no
12488
12489    GCC_CXX="$GXX"
12490    LD_CXX="$LD"
12491
12492    ## CAVEAT EMPTOR:
12493    ## There is no encapsulation within the following macros, do not change
12494    ## the running order or otherwise move them around unless you know exactly
12495    ## what you are doing...
12496    # Dependencies to place before and after the object being linked:
12497predep_objects_CXX=
12498postdep_objects_CXX=
12499predeps_CXX=
12500postdeps_CXX=
12501compiler_lib_search_path_CXX=
12502
12503cat > conftest.$ac_ext <<_LT_EOF
12504class Foo
12505{
12506public:
12507  Foo (void) { a = 0; }
12508private:
12509  int a;
12510};
12511_LT_EOF
12512
12513if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12514  (eval $ac_compile) 2>&5
12515  ac_status=$?
12516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12517  test $ac_status = 0; }; then
12518  # Parse the compiler output and extract the necessary
12519  # objects, libraries and library flags.
12520
12521  # Sentinel used to keep track of whether or not we are before
12522  # the conftest object file.
12523  pre_test_object_deps_done=no
12524
12525  for p in `eval "$output_verbose_link_cmd"`; do
12526    case $p in
12527
12528    -L* | -R* | -l*)
12529       # Some compilers place space between "-{L,R}" and the path.
12530       # Remove the space.
12531       if test $p = "-L" ||
12532          test $p = "-R"; then
12533	 prev=$p
12534	 continue
12535       else
12536	 prev=
12537       fi
12538
12539       if test "$pre_test_object_deps_done" = no; then
12540	 case $p in
12541	 -L* | -R*)
12542	   # Internal compiler library paths should come after those
12543	   # provided the user.  The postdeps already come after the
12544	   # user supplied libs so there is no need to process them.
12545	   if test -z "$compiler_lib_search_path_CXX"; then
12546	     compiler_lib_search_path_CXX="${prev}${p}"
12547	   else
12548	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12549	   fi
12550	   ;;
12551	 # The "-l" case would never come before the object being
12552	 # linked, so don't bother handling this case.
12553	 esac
12554       else
12555	 if test -z "$postdeps_CXX"; then
12556	   postdeps_CXX="${prev}${p}"
12557	 else
12558	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12559	 fi
12560       fi
12561       ;;
12562
12563    *.$objext)
12564       # This assumes that the test object file only shows up
12565       # once in the compiler output.
12566       if test "$p" = "conftest.$objext"; then
12567	 pre_test_object_deps_done=yes
12568	 continue
12569       fi
12570
12571       if test "$pre_test_object_deps_done" = no; then
12572	 if test -z "$predep_objects_CXX"; then
12573	   predep_objects_CXX="$p"
12574	 else
12575	   predep_objects_CXX="$predep_objects_CXX $p"
12576	 fi
12577       else
12578	 if test -z "$postdep_objects_CXX"; then
12579	   postdep_objects_CXX="$p"
12580	 else
12581	   postdep_objects_CXX="$postdep_objects_CXX $p"
12582	 fi
12583       fi
12584       ;;
12585
12586    *) ;; # Ignore the rest.
12587
12588    esac
12589  done
12590
12591  # Clean up.
12592  rm -f a.out a.exe
12593else
12594  echo "libtool.m4: error: problem compiling CXX test program"
12595fi
12596
12597$RM -f confest.$objext
12598
12599# PORTME: override above test on systems where it is broken
12600case $host_os in
12601interix[3-9]*)
12602  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12603  # hack all around it, let's just trust "g++" to DTRT.
12604  predep_objects_CXX=
12605  postdep_objects_CXX=
12606  postdeps_CXX=
12607  ;;
12608
12609linux*)
12610  case `$CC -V 2>&1 | sed 5q` in
12611  *Sun\ C*)
12612    # Sun C++ 5.9
12613
12614    # The more standards-conforming stlport4 library is
12615    # incompatible with the Cstd library. Avoid specifying
12616    # it if it's in CXXFLAGS. Ignore libCrun as
12617    # -library=stlport4 depends on it.
12618    case " $CXX $CXXFLAGS " in
12619    *" -library=stlport4 "*)
12620      solaris_use_stlport4=yes
12621      ;;
12622    esac
12623
12624    if test "$solaris_use_stlport4" != yes; then
12625      postdeps_CXX='-library=Cstd -library=Crun'
12626    fi
12627    ;;
12628  esac
12629  ;;
12630
12631solaris*)
12632  case $cc_basename in
12633  CC*)
12634    # The more standards-conforming stlport4 library is
12635    # incompatible with the Cstd library. Avoid specifying
12636    # it if it's in CXXFLAGS. Ignore libCrun as
12637    # -library=stlport4 depends on it.
12638    case " $CXX $CXXFLAGS " in
12639    *" -library=stlport4 "*)
12640      solaris_use_stlport4=yes
12641      ;;
12642    esac
12643
12644    # Adding this requires a known-good setup of shared libraries for
12645    # Sun compiler versions before 5.6, else PIC objects from an old
12646    # archive will be linked into the output, leading to subtle bugs.
12647    if test "$solaris_use_stlport4" != yes; then
12648      postdeps_CXX='-library=Cstd -library=Crun'
12649    fi
12650    ;;
12651  esac
12652  ;;
12653esac
12654
12655
12656case " $postdeps_CXX " in
12657*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12658esac
12659 compiler_lib_search_dirs_CXX=
12660if test -n "${compiler_lib_search_path_CXX}"; then
12661 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12662fi
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694    lt_prog_compiler_wl_CXX=
12695lt_prog_compiler_pic_CXX=
12696lt_prog_compiler_static_CXX=
12697
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12699$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12700
12701  # C++ specific cases for pic, static, wl, etc.
12702  if test "$GXX" = yes; then
12703    lt_prog_compiler_wl_CXX='-Wl,'
12704    lt_prog_compiler_static_CXX='-static'
12705
12706    case $host_os in
12707    aix*)
12708      # All AIX code is PIC.
12709      if test "$host_cpu" = ia64; then
12710	# AIX 5 now supports IA64 processor
12711	lt_prog_compiler_static_CXX='-Bstatic'
12712      fi
12713      lt_prog_compiler_pic_CXX='-fPIC'
12714      ;;
12715
12716    amigaos*)
12717      case $host_cpu in
12718      powerpc)
12719            # see comment about AmigaOS4 .so support
12720            lt_prog_compiler_pic_CXX='-fPIC'
12721        ;;
12722      m68k)
12723            # FIXME: we need at least 68020 code to build shared libraries, but
12724            # adding the `-m68020' flag to GCC prevents building anything better,
12725            # like `-m68040'.
12726            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12727        ;;
12728      esac
12729      ;;
12730
12731    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12732      # PIC is the default for these OSes.
12733      ;;
12734    mingw* | cygwin* | os2* | pw32* | cegcc*)
12735      # This hack is so that the source file can tell whether it is being
12736      # built for inclusion in a dll (and should export symbols for example).
12737      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12738      # (--disable-auto-import) libraries
12739      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12740      ;;
12741    darwin* | rhapsody*)
12742      # PIC is the default on this platform
12743      # Common symbols not allowed in MH_DYLIB files
12744      lt_prog_compiler_pic_CXX='-fno-common'
12745      ;;
12746    *djgpp*)
12747      # DJGPP does not support shared libraries at all
12748      lt_prog_compiler_pic_CXX=
12749      ;;
12750    haiku*)
12751      # PIC is the default for Haiku.
12752      # The "-static" flag exists, but is broken.
12753      lt_prog_compiler_static_CXX=
12754      ;;
12755    interix[3-9]*)
12756      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12757      # Instead, we relocate shared libraries at runtime.
12758      ;;
12759    sysv4*MP*)
12760      if test -d /usr/nec; then
12761	lt_prog_compiler_pic_CXX=-Kconform_pic
12762      fi
12763      ;;
12764    hpux*)
12765      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12766      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12767      # sets the default TLS model and affects inlining.
12768      case $host_cpu in
12769      hppa*64*)
12770	;;
12771      *)
12772	lt_prog_compiler_pic_CXX='-fPIC'
12773	;;
12774      esac
12775      ;;
12776    *qnx* | *nto*)
12777      # QNX uses GNU C++, but need to define -shared option too, otherwise
12778      # it will coredump.
12779      lt_prog_compiler_pic_CXX='-fPIC -shared'
12780      ;;
12781    *)
12782      lt_prog_compiler_pic_CXX='-fPIC'
12783      ;;
12784    esac
12785  else
12786    case $host_os in
12787      aix[4-9]*)
12788	# All AIX code is PIC.
12789	if test "$host_cpu" = ia64; then
12790	  # AIX 5 now supports IA64 processor
12791	  lt_prog_compiler_static_CXX='-Bstatic'
12792	else
12793	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12794	fi
12795	;;
12796      chorus*)
12797	case $cc_basename in
12798	cxch68*)
12799	  # Green Hills C++ Compiler
12800	  # _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"
12801	  ;;
12802	esac
12803	;;
12804      dgux*)
12805	case $cc_basename in
12806	  ec++*)
12807	    lt_prog_compiler_pic_CXX='-KPIC'
12808	    ;;
12809	  ghcx*)
12810	    # Green Hills C++ Compiler
12811	    lt_prog_compiler_pic_CXX='-pic'
12812	    ;;
12813	  *)
12814	    ;;
12815	esac
12816	;;
12817      freebsd* | dragonfly*)
12818	# FreeBSD uses GNU C++
12819	;;
12820      hpux9* | hpux10* | hpux11*)
12821	case $cc_basename in
12822	  CC*)
12823	    lt_prog_compiler_wl_CXX='-Wl,'
12824	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12825	    if test "$host_cpu" != ia64; then
12826	      lt_prog_compiler_pic_CXX='+Z'
12827	    fi
12828	    ;;
12829	  aCC*)
12830	    lt_prog_compiler_wl_CXX='-Wl,'
12831	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12832	    case $host_cpu in
12833	    hppa*64*|ia64*)
12834	      # +Z the default
12835	      ;;
12836	    *)
12837	      lt_prog_compiler_pic_CXX='+Z'
12838	      ;;
12839	    esac
12840	    ;;
12841	  *)
12842	    ;;
12843	esac
12844	;;
12845      interix*)
12846	# This is c89, which is MS Visual C++ (no shared libs)
12847	# Anyone wants to do a port?
12848	;;
12849      irix5* | irix6* | nonstopux*)
12850	case $cc_basename in
12851	  CC*)
12852	    lt_prog_compiler_wl_CXX='-Wl,'
12853	    lt_prog_compiler_static_CXX='-non_shared'
12854	    # CC pic flag -KPIC is the default.
12855	    ;;
12856	  *)
12857	    ;;
12858	esac
12859	;;
12860      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12861	case $cc_basename in
12862	  KCC*)
12863	    # KAI C++ Compiler
12864	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12865	    lt_prog_compiler_pic_CXX='-fPIC'
12866	    ;;
12867	  ecpc* )
12868	    # old Intel C++ for x86_64 which still supported -KPIC.
12869	    lt_prog_compiler_wl_CXX='-Wl,'
12870	    lt_prog_compiler_pic_CXX='-KPIC'
12871	    lt_prog_compiler_static_CXX='-static'
12872	    ;;
12873	  icpc* )
12874	    # Intel C++, used to be incompatible with GCC.
12875	    # ICC 10 doesn't accept -KPIC any more.
12876	    lt_prog_compiler_wl_CXX='-Wl,'
12877	    lt_prog_compiler_pic_CXX='-fPIC'
12878	    lt_prog_compiler_static_CXX='-static'
12879	    ;;
12880	  pgCC* | pgcpp*)
12881	    # Portland Group C++ compiler
12882	    lt_prog_compiler_wl_CXX='-Wl,'
12883	    lt_prog_compiler_pic_CXX='-fpic'
12884	    lt_prog_compiler_static_CXX='-Bstatic'
12885	    ;;
12886	  cxx*)
12887	    # Compaq C++
12888	    # Make sure the PIC flag is empty.  It appears that all Alpha
12889	    # Linux and Compaq Tru64 Unix objects are PIC.
12890	    lt_prog_compiler_pic_CXX=
12891	    lt_prog_compiler_static_CXX='-non_shared'
12892	    ;;
12893	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
12894	    # IBM XL 8.0, 9.0 on PPC and BlueGene
12895	    lt_prog_compiler_wl_CXX='-Wl,'
12896	    lt_prog_compiler_pic_CXX='-qpic'
12897	    lt_prog_compiler_static_CXX='-qstaticlink'
12898	    ;;
12899	  *)
12900	    case `$CC -V 2>&1 | sed 5q` in
12901	    *Sun\ C*)
12902	      # Sun C++ 5.9
12903	      lt_prog_compiler_pic_CXX='-KPIC'
12904	      lt_prog_compiler_static_CXX='-Bstatic'
12905	      lt_prog_compiler_wl_CXX='-Qoption ld '
12906	      ;;
12907	    esac
12908	    ;;
12909	esac
12910	;;
12911      lynxos*)
12912	;;
12913      m88k*)
12914	;;
12915      mvs*)
12916	case $cc_basename in
12917	  cxx*)
12918	    lt_prog_compiler_pic_CXX='-W c,exportall'
12919	    ;;
12920	  *)
12921	    ;;
12922	esac
12923	;;
12924      netbsd*)
12925	;;
12926      *qnx* | *nto*)
12927        # QNX uses GNU C++, but need to define -shared option too, otherwise
12928        # it will coredump.
12929        lt_prog_compiler_pic_CXX='-fPIC -shared'
12930        ;;
12931      osf3* | osf4* | osf5*)
12932	case $cc_basename in
12933	  KCC*)
12934	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12935	    ;;
12936	  RCC*)
12937	    # Rational C++ 2.4.1
12938	    lt_prog_compiler_pic_CXX='-pic'
12939	    ;;
12940	  cxx*)
12941	    # Digital/Compaq C++
12942	    lt_prog_compiler_wl_CXX='-Wl,'
12943	    # Make sure the PIC flag is empty.  It appears that all Alpha
12944	    # Linux and Compaq Tru64 Unix objects are PIC.
12945	    lt_prog_compiler_pic_CXX=
12946	    lt_prog_compiler_static_CXX='-non_shared'
12947	    ;;
12948	  *)
12949	    ;;
12950	esac
12951	;;
12952      psos*)
12953	;;
12954      solaris*)
12955	case $cc_basename in
12956	  CC*)
12957	    # Sun C++ 4.2, 5.x and Centerline C++
12958	    lt_prog_compiler_pic_CXX='-KPIC'
12959	    lt_prog_compiler_static_CXX='-Bstatic'
12960	    lt_prog_compiler_wl_CXX='-Qoption ld '
12961	    ;;
12962	  gcx*)
12963	    # Green Hills C++ Compiler
12964	    lt_prog_compiler_pic_CXX='-PIC'
12965	    ;;
12966	  *)
12967	    ;;
12968	esac
12969	;;
12970      sunos4*)
12971	case $cc_basename in
12972	  CC*)
12973	    # Sun C++ 4.x
12974	    lt_prog_compiler_pic_CXX='-pic'
12975	    lt_prog_compiler_static_CXX='-Bstatic'
12976	    ;;
12977	  lcc*)
12978	    # Lucid
12979	    lt_prog_compiler_pic_CXX='-pic'
12980	    ;;
12981	  *)
12982	    ;;
12983	esac
12984	;;
12985      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12986	case $cc_basename in
12987	  CC*)
12988	    lt_prog_compiler_wl_CXX='-Wl,'
12989	    lt_prog_compiler_pic_CXX='-KPIC'
12990	    lt_prog_compiler_static_CXX='-Bstatic'
12991	    ;;
12992	esac
12993	;;
12994      tandem*)
12995	case $cc_basename in
12996	  NCC*)
12997	    # NonStop-UX NCC 3.20
12998	    lt_prog_compiler_pic_CXX='-KPIC'
12999	    ;;
13000	  *)
13001	    ;;
13002	esac
13003	;;
13004      vxworks*)
13005	;;
13006      *)
13007	lt_prog_compiler_can_build_shared_CXX=no
13008	;;
13009    esac
13010  fi
13011
13012case $host_os in
13013  # For platforms which do not support PIC, -DPIC is meaningless:
13014  *djgpp*)
13015    lt_prog_compiler_pic_CXX=
13016    ;;
13017  *)
13018    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13019    ;;
13020esac
13021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13022$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13023
13024
13025
13026#
13027# Check to make sure the PIC flag actually works.
13028#
13029if test -n "$lt_prog_compiler_pic_CXX"; then
13030  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13031$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13032if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13033  $as_echo_n "(cached) " >&6
13034else
13035  lt_cv_prog_compiler_pic_works_CXX=no
13036   ac_outfile=conftest.$ac_objext
13037   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13038   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13039   # Insert the option either (1) after the last *FLAGS variable, or
13040   # (2) before a word containing "conftest.", or (3) at the end.
13041   # Note that $ac_compile itself does not contain backslashes and begins
13042   # with a dollar sign (not a hyphen), so the echo should work correctly.
13043   # The option is referenced via a variable to avoid confusing sed.
13044   lt_compile=`echo "$ac_compile" | $SED \
13045   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13046   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13047   -e 's:$: $lt_compiler_flag:'`
13048   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13049   (eval "$lt_compile" 2>conftest.err)
13050   ac_status=$?
13051   cat conftest.err >&5
13052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053   if (exit $ac_status) && test -s "$ac_outfile"; then
13054     # The compiler can only warn and ignore the option if not recognized
13055     # So say no if there are warnings other than the usual output.
13056     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13057     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13058     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13059       lt_cv_prog_compiler_pic_works_CXX=yes
13060     fi
13061   fi
13062   $RM conftest*
13063
13064fi
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13066$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13067
13068if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13069    case $lt_prog_compiler_pic_CXX in
13070     "" | " "*) ;;
13071     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13072     esac
13073else
13074    lt_prog_compiler_pic_CXX=
13075     lt_prog_compiler_can_build_shared_CXX=no
13076fi
13077
13078fi
13079
13080
13081
13082#
13083# Check to make sure the static flag actually works.
13084#
13085wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13087$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13088if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13089  $as_echo_n "(cached) " >&6
13090else
13091  lt_cv_prog_compiler_static_works_CXX=no
13092   save_LDFLAGS="$LDFLAGS"
13093   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13094   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13095   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13096     # The linker can only warn and ignore the option if not recognized
13097     # So say no if there are warnings
13098     if test -s conftest.err; then
13099       # Append any errors to the config.log.
13100       cat conftest.err 1>&5
13101       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13102       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13103       if diff conftest.exp conftest.er2 >/dev/null; then
13104         lt_cv_prog_compiler_static_works_CXX=yes
13105       fi
13106     else
13107       lt_cv_prog_compiler_static_works_CXX=yes
13108     fi
13109   fi
13110   $RM -r conftest*
13111   LDFLAGS="$save_LDFLAGS"
13112
13113fi
13114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13115$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13116
13117if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13118    :
13119else
13120    lt_prog_compiler_static_CXX=
13121fi
13122
13123
13124
13125
13126    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13127$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13128if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13129  $as_echo_n "(cached) " >&6
13130else
13131  lt_cv_prog_compiler_c_o_CXX=no
13132   $RM -r conftest 2>/dev/null
13133   mkdir conftest
13134   cd conftest
13135   mkdir out
13136   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13137
13138   lt_compiler_flag="-o out/conftest2.$ac_objext"
13139   # Insert the option either (1) after the last *FLAGS variable, or
13140   # (2) before a word containing "conftest.", or (3) at the end.
13141   # Note that $ac_compile itself does not contain backslashes and begins
13142   # with a dollar sign (not a hyphen), so the echo should work correctly.
13143   lt_compile=`echo "$ac_compile" | $SED \
13144   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13145   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13146   -e 's:$: $lt_compiler_flag:'`
13147   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13148   (eval "$lt_compile" 2>out/conftest.err)
13149   ac_status=$?
13150   cat out/conftest.err >&5
13151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13153   then
13154     # The compiler can only warn and ignore the option if not recognized
13155     # So say no if there are warnings
13156     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13157     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13158     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13159       lt_cv_prog_compiler_c_o_CXX=yes
13160     fi
13161   fi
13162   chmod u+w . 2>&5
13163   $RM conftest*
13164   # SGI C++ compiler will create directory out/ii_files/ for
13165   # template instantiation
13166   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13167   $RM out/* && rmdir out
13168   cd ..
13169   $RM -r conftest
13170   $RM conftest*
13171
13172fi
13173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13174$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13175
13176
13177
13178    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13179$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13180if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13181  $as_echo_n "(cached) " >&6
13182else
13183  lt_cv_prog_compiler_c_o_CXX=no
13184   $RM -r conftest 2>/dev/null
13185   mkdir conftest
13186   cd conftest
13187   mkdir out
13188   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13189
13190   lt_compiler_flag="-o out/conftest2.$ac_objext"
13191   # Insert the option either (1) after the last *FLAGS variable, or
13192   # (2) before a word containing "conftest.", or (3) at the end.
13193   # Note that $ac_compile itself does not contain backslashes and begins
13194   # with a dollar sign (not a hyphen), so the echo should work correctly.
13195   lt_compile=`echo "$ac_compile" | $SED \
13196   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13197   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13198   -e 's:$: $lt_compiler_flag:'`
13199   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13200   (eval "$lt_compile" 2>out/conftest.err)
13201   ac_status=$?
13202   cat out/conftest.err >&5
13203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13205   then
13206     # The compiler can only warn and ignore the option if not recognized
13207     # So say no if there are warnings
13208     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13209     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13210     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13211       lt_cv_prog_compiler_c_o_CXX=yes
13212     fi
13213   fi
13214   chmod u+w . 2>&5
13215   $RM conftest*
13216   # SGI C++ compiler will create directory out/ii_files/ for
13217   # template instantiation
13218   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13219   $RM out/* && rmdir out
13220   cd ..
13221   $RM -r conftest
13222   $RM conftest*
13223
13224fi
13225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13226$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13227
13228
13229
13230
13231hard_links="nottested"
13232if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13233  # do not overwrite the value of need_locks provided by the user
13234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13235$as_echo_n "checking if we can lock with hard links... " >&6; }
13236  hard_links=yes
13237  $RM conftest*
13238  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13239  touch conftest.a
13240  ln conftest.a conftest.b 2>&5 || hard_links=no
13241  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13243$as_echo "$hard_links" >&6; }
13244  if test "$hard_links" = no; then
13245    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13246$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13247    need_locks=warn
13248  fi
13249else
13250  need_locks=no
13251fi
13252
13253
13254
13255    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13256$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13257
13258  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13259  case $host_os in
13260  aix[4-9]*)
13261    # If we're using GNU nm, then we don't want the "-C" option.
13262    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13263    # Also, AIX nm treats weak defined symbols like other global defined
13264    # symbols, whereas GNU nm marks them as "W".
13265    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13266      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'
13267    else
13268      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'
13269    fi
13270    ;;
13271  pw32*)
13272    export_symbols_cmds_CXX="$ltdll_cmds"
13273  ;;
13274  cygwin* | mingw* | cegcc*)
13275    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'
13276  ;;
13277  *)
13278    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13279  ;;
13280  esac
13281  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13282
13283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13284$as_echo "$ld_shlibs_CXX" >&6; }
13285test "$ld_shlibs_CXX" = no && can_build_shared=no
13286
13287with_gnu_ld_CXX=$with_gnu_ld
13288
13289
13290
13291
13292
13293
13294#
13295# Do we need to explicitly link libc?
13296#
13297case "x$archive_cmds_need_lc_CXX" in
13298x|xyes)
13299  # Assume -lc should be added
13300  archive_cmds_need_lc_CXX=yes
13301
13302  if test "$enable_shared" = yes && test "$GCC" = yes; then
13303    case $archive_cmds_CXX in
13304    *'~'*)
13305      # FIXME: we may have to deal with multi-command sequences.
13306      ;;
13307    '$CC '*)
13308      # Test whether the compiler implicitly links with -lc since on some
13309      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13310      # to ld, don't add -lc before -lgcc.
13311      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13312$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13313if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13314  $as_echo_n "(cached) " >&6
13315else
13316  $RM conftest*
13317	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13318
13319	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13320  (eval $ac_compile) 2>&5
13321  ac_status=$?
13322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13323  test $ac_status = 0; } 2>conftest.err; then
13324	  soname=conftest
13325	  lib=conftest
13326	  libobjs=conftest.$ac_objext
13327	  deplibs=
13328	  wl=$lt_prog_compiler_wl_CXX
13329	  pic_flag=$lt_prog_compiler_pic_CXX
13330	  compiler_flags=-v
13331	  linker_flags=-v
13332	  verstring=
13333	  output_objdir=.
13334	  libname=conftest
13335	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13336	  allow_undefined_flag_CXX=
13337	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13338  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13339  ac_status=$?
13340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13341  test $ac_status = 0; }
13342	  then
13343	    lt_cv_archive_cmds_need_lc_CXX=no
13344	  else
13345	    lt_cv_archive_cmds_need_lc_CXX=yes
13346	  fi
13347	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13348	else
13349	  cat conftest.err 1>&5
13350	fi
13351	$RM conftest*
13352
13353fi
13354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13355$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13356      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13357      ;;
13358    esac
13359  fi
13360  ;;
13361esac
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13427$as_echo_n "checking dynamic linker characteristics... " >&6; }
13428
13429library_names_spec=
13430libname_spec='lib$name'
13431soname_spec=
13432shrext_cmds=".so"
13433postinstall_cmds=
13434postuninstall_cmds=
13435finish_cmds=
13436finish_eval=
13437shlibpath_var=
13438shlibpath_overrides_runpath=unknown
13439version_type=none
13440dynamic_linker="$host_os ld.so"
13441sys_lib_dlsearch_path_spec="/lib /usr/lib"
13442need_lib_prefix=unknown
13443hardcode_into_libs=no
13444
13445# when you set need_version to no, make sure it does not cause -set_version
13446# flags to be left without arguments
13447need_version=unknown
13448
13449case $host_os in
13450aix3*)
13451  version_type=linux
13452  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13453  shlibpath_var=LIBPATH
13454
13455  # AIX 3 has no versioning support, so we append a major version to the name.
13456  soname_spec='${libname}${release}${shared_ext}$major'
13457  ;;
13458
13459aix[4-9]*)
13460  version_type=linux
13461  need_lib_prefix=no
13462  need_version=no
13463  hardcode_into_libs=yes
13464  if test "$host_cpu" = ia64; then
13465    # AIX 5 supports IA64
13466    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13467    shlibpath_var=LD_LIBRARY_PATH
13468  else
13469    # With GCC up to 2.95.x, collect2 would create an import file
13470    # for dependence libraries.  The import file would start with
13471    # the line `#! .'.  This would cause the generated library to
13472    # depend on `.', always an invalid library.  This was fixed in
13473    # development snapshots of GCC prior to 3.0.
13474    case $host_os in
13475      aix4 | aix4.[01] | aix4.[01].*)
13476      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13477	   echo ' yes '
13478	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13479	:
13480      else
13481	can_build_shared=no
13482      fi
13483      ;;
13484    esac
13485    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13486    # soname into executable. Probably we can add versioning support to
13487    # collect2, so additional links can be useful in future.
13488    if test "$aix_use_runtimelinking" = yes; then
13489      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13490      # instead of lib<name>.a to let people know that these are not
13491      # typical AIX shared libraries.
13492      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13493    else
13494      # We preserve .a as extension for shared libraries through AIX4.2
13495      # and later when we are not doing run time linking.
13496      library_names_spec='${libname}${release}.a $libname.a'
13497      soname_spec='${libname}${release}${shared_ext}$major'
13498    fi
13499    shlibpath_var=LIBPATH
13500  fi
13501  ;;
13502
13503amigaos*)
13504  case $host_cpu in
13505  powerpc)
13506    # Since July 2007 AmigaOS4 officially supports .so libraries.
13507    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13508    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13509    ;;
13510  m68k)
13511    library_names_spec='$libname.ixlibrary $libname.a'
13512    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13513    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'
13514    ;;
13515  esac
13516  ;;
13517
13518beos*)
13519  library_names_spec='${libname}${shared_ext}'
13520  dynamic_linker="$host_os ld.so"
13521  shlibpath_var=LIBRARY_PATH
13522  ;;
13523
13524bsdi[45]*)
13525  version_type=linux
13526  need_version=no
13527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13528  soname_spec='${libname}${release}${shared_ext}$major'
13529  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13530  shlibpath_var=LD_LIBRARY_PATH
13531  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13532  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13533  # the default ld.so.conf also contains /usr/contrib/lib and
13534  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13535  # libtool to hard-code these into programs
13536  ;;
13537
13538cygwin* | mingw* | pw32* | cegcc*)
13539  version_type=windows
13540  shrext_cmds=".dll"
13541  need_version=no
13542  need_lib_prefix=no
13543
13544  case $GCC,$host_os in
13545  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13546    library_names_spec='$libname.dll.a'
13547    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13548    postinstall_cmds='base_file=`basename \${file}`~
13549      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13550      dldir=$destdir/`dirname \$dlpath`~
13551      test -d \$dldir || mkdir -p \$dldir~
13552      $install_prog $dir/$dlname \$dldir/$dlname~
13553      chmod a+x \$dldir/$dlname~
13554      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13555        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13556      fi'
13557    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13558      dlpath=$dir/\$dldll~
13559       $RM \$dlpath'
13560    shlibpath_overrides_runpath=yes
13561
13562    case $host_os in
13563    cygwin*)
13564      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13565      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13566
13567      ;;
13568    mingw* | cegcc*)
13569      # MinGW DLLs use traditional 'lib' prefix
13570      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13571      ;;
13572    pw32*)
13573      # pw32 DLLs use 'pw' prefix rather than 'lib'
13574      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13575      ;;
13576    esac
13577    ;;
13578
13579  *)
13580    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13581    ;;
13582  esac
13583  dynamic_linker='Win32 ld.exe'
13584  # FIXME: first we should search . and the directory the executable is in
13585  shlibpath_var=PATH
13586  ;;
13587
13588darwin* | rhapsody*)
13589  dynamic_linker="$host_os dyld"
13590  version_type=darwin
13591  need_lib_prefix=no
13592  need_version=no
13593  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13594  soname_spec='${libname}${release}${major}$shared_ext'
13595  shlibpath_overrides_runpath=yes
13596  shlibpath_var=DYLD_LIBRARY_PATH
13597  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13598
13599  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13600  ;;
13601
13602dgux*)
13603  version_type=linux
13604  need_lib_prefix=no
13605  need_version=no
13606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13607  soname_spec='${libname}${release}${shared_ext}$major'
13608  shlibpath_var=LD_LIBRARY_PATH
13609  ;;
13610
13611freebsd* | dragonfly*)
13612  # DragonFly does not have aout.  When/if they implement a new
13613  # versioning mechanism, adjust this.
13614  if test -x /usr/bin/objformat; then
13615    objformat=`/usr/bin/objformat`
13616  else
13617    case $host_os in
13618    freebsd[23].*) objformat=aout ;;
13619    *) objformat=elf ;;
13620    esac
13621  fi
13622  version_type=freebsd-$objformat
13623  case $version_type in
13624    freebsd-elf*)
13625      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13626      need_version=no
13627      need_lib_prefix=no
13628      ;;
13629    freebsd-*)
13630      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13631      need_version=yes
13632      ;;
13633  esac
13634  shlibpath_var=LD_LIBRARY_PATH
13635  case $host_os in
13636  freebsd2.*)
13637    shlibpath_overrides_runpath=yes
13638    ;;
13639  freebsd3.[01]* | freebsdelf3.[01]*)
13640    shlibpath_overrides_runpath=yes
13641    hardcode_into_libs=yes
13642    ;;
13643  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13644  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13645    shlibpath_overrides_runpath=no
13646    hardcode_into_libs=yes
13647    ;;
13648  *) # from 4.6 on, and DragonFly
13649    shlibpath_overrides_runpath=yes
13650    hardcode_into_libs=yes
13651    ;;
13652  esac
13653  ;;
13654
13655gnu*)
13656  version_type=linux
13657  need_lib_prefix=no
13658  need_version=no
13659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13660  soname_spec='${libname}${release}${shared_ext}$major'
13661  shlibpath_var=LD_LIBRARY_PATH
13662  hardcode_into_libs=yes
13663  ;;
13664
13665haiku*)
13666  version_type=linux
13667  need_lib_prefix=no
13668  need_version=no
13669  dynamic_linker="$host_os runtime_loader"
13670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13671  soname_spec='${libname}${release}${shared_ext}$major'
13672  shlibpath_var=LIBRARY_PATH
13673  shlibpath_overrides_runpath=yes
13674  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13675  hardcode_into_libs=yes
13676  ;;
13677
13678hpux9* | hpux10* | hpux11*)
13679  # Give a soname corresponding to the major version so that dld.sl refuses to
13680  # link against other versions.
13681  version_type=sunos
13682  need_lib_prefix=no
13683  need_version=no
13684  case $host_cpu in
13685  ia64*)
13686    shrext_cmds='.so'
13687    hardcode_into_libs=yes
13688    dynamic_linker="$host_os dld.so"
13689    shlibpath_var=LD_LIBRARY_PATH
13690    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13691    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13692    soname_spec='${libname}${release}${shared_ext}$major'
13693    if test "X$HPUX_IA64_MODE" = X32; then
13694      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13695    else
13696      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13697    fi
13698    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13699    ;;
13700  hppa*64*)
13701    shrext_cmds='.sl'
13702    hardcode_into_libs=yes
13703    dynamic_linker="$host_os dld.sl"
13704    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13705    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13706    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13707    soname_spec='${libname}${release}${shared_ext}$major'
13708    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13709    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13710    ;;
13711  *)
13712    shrext_cmds='.sl'
13713    dynamic_linker="$host_os dld.sl"
13714    shlibpath_var=SHLIB_PATH
13715    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13716    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13717    soname_spec='${libname}${release}${shared_ext}$major'
13718    ;;
13719  esac
13720  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13721  postinstall_cmds='chmod 555 $lib'
13722  # or fails outright, so override atomically:
13723  install_override_mode=555
13724  ;;
13725
13726interix[3-9]*)
13727  version_type=linux
13728  need_lib_prefix=no
13729  need_version=no
13730  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13731  soname_spec='${libname}${release}${shared_ext}$major'
13732  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13733  shlibpath_var=LD_LIBRARY_PATH
13734  shlibpath_overrides_runpath=no
13735  hardcode_into_libs=yes
13736  ;;
13737
13738irix5* | irix6* | nonstopux*)
13739  case $host_os in
13740    nonstopux*) version_type=nonstopux ;;
13741    *)
13742	if test "$lt_cv_prog_gnu_ld" = yes; then
13743		version_type=linux
13744	else
13745		version_type=irix
13746	fi ;;
13747  esac
13748  need_lib_prefix=no
13749  need_version=no
13750  soname_spec='${libname}${release}${shared_ext}$major'
13751  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13752  case $host_os in
13753  irix5* | nonstopux*)
13754    libsuff= shlibsuff=
13755    ;;
13756  *)
13757    case $LD in # libtool.m4 will add one of these switches to LD
13758    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13759      libsuff= shlibsuff= libmagic=32-bit;;
13760    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13761      libsuff=32 shlibsuff=N32 libmagic=N32;;
13762    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13763      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13764    *) libsuff= shlibsuff= libmagic=never-match;;
13765    esac
13766    ;;
13767  esac
13768  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13769  shlibpath_overrides_runpath=no
13770  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13771  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13772  hardcode_into_libs=yes
13773  ;;
13774
13775# No shared lib support for Linux oldld, aout, or coff.
13776linux*oldld* | linux*aout* | linux*coff*)
13777  dynamic_linker=no
13778  ;;
13779
13780# This must be Linux ELF.
13781linux* | k*bsd*-gnu | kopensolaris*-gnu)
13782  version_type=linux
13783  need_lib_prefix=no
13784  need_version=no
13785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13786  soname_spec='${libname}${release}${shared_ext}$major'
13787  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13788  shlibpath_var=LD_LIBRARY_PATH
13789  shlibpath_overrides_runpath=no
13790
13791  # Some binutils ld are patched to set DT_RUNPATH
13792  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13793  $as_echo_n "(cached) " >&6
13794else
13795  lt_cv_shlibpath_overrides_runpath=no
13796    save_LDFLAGS=$LDFLAGS
13797    save_libdir=$libdir
13798    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13799	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13800    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13801/* end confdefs.h.  */
13802
13803int
13804main ()
13805{
13806
13807  ;
13808  return 0;
13809}
13810_ACEOF
13811if ac_fn_cxx_try_link "$LINENO"; then :
13812  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13813  lt_cv_shlibpath_overrides_runpath=yes
13814fi
13815fi
13816rm -f core conftest.err conftest.$ac_objext \
13817    conftest$ac_exeext conftest.$ac_ext
13818    LDFLAGS=$save_LDFLAGS
13819    libdir=$save_libdir
13820
13821fi
13822
13823  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13824
13825  # This implies no fast_install, which is unacceptable.
13826  # Some rework will be needed to allow for fast_install
13827  # before this can be enabled.
13828  hardcode_into_libs=yes
13829
13830  # Append ld.so.conf contents to the search path
13831  if test -f /etc/ld.so.conf; then
13832    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' ' '`
13833    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13834  fi
13835
13836  # We used to test for /lib/ld.so.1 and disable shared libraries on
13837  # powerpc, because MkLinux only supported shared libraries with the
13838  # GNU dynamic linker.  Since this was broken with cross compilers,
13839  # most powerpc-linux boxes support dynamic linking these days and
13840  # people can always --disable-shared, the test was removed, and we
13841  # assume the GNU/Linux dynamic linker is in use.
13842  dynamic_linker='GNU/Linux ld.so'
13843  ;;
13844
13845netbsd*)
13846  version_type=sunos
13847  need_lib_prefix=no
13848  need_version=no
13849  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13850    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13851    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13852    dynamic_linker='NetBSD (a.out) ld.so'
13853  else
13854    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13855    soname_spec='${libname}${release}${shared_ext}$major'
13856    dynamic_linker='NetBSD ld.elf_so'
13857  fi
13858  shlibpath_var=LD_LIBRARY_PATH
13859  shlibpath_overrides_runpath=yes
13860  hardcode_into_libs=yes
13861  ;;
13862
13863newsos6)
13864  version_type=linux
13865  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13866  shlibpath_var=LD_LIBRARY_PATH
13867  shlibpath_overrides_runpath=yes
13868  ;;
13869
13870*nto* | *qnx*)
13871  version_type=qnx
13872  need_lib_prefix=no
13873  need_version=no
13874  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13875  soname_spec='${libname}${release}${shared_ext}$major'
13876  shlibpath_var=LD_LIBRARY_PATH
13877  shlibpath_overrides_runpath=no
13878  hardcode_into_libs=yes
13879  dynamic_linker='ldqnx.so'
13880  ;;
13881
13882openbsd*)
13883  version_type=sunos
13884  sys_lib_dlsearch_path_spec="/usr/lib"
13885  need_lib_prefix=no
13886  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13887  case $host_os in
13888    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
13889    *)				need_version=no  ;;
13890  esac
13891  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13892  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13893  shlibpath_var=LD_LIBRARY_PATH
13894  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13895    case $host_os in
13896      openbsd2.[89] | openbsd2.[89].*)
13897	shlibpath_overrides_runpath=no
13898	;;
13899      *)
13900	shlibpath_overrides_runpath=yes
13901	;;
13902      esac
13903  else
13904    shlibpath_overrides_runpath=yes
13905  fi
13906  ;;
13907
13908os2*)
13909  libname_spec='$name'
13910  shrext_cmds=".dll"
13911  need_lib_prefix=no
13912  library_names_spec='$libname${shared_ext} $libname.a'
13913  dynamic_linker='OS/2 ld.exe'
13914  shlibpath_var=LIBPATH
13915  ;;
13916
13917osf3* | osf4* | osf5*)
13918  version_type=osf
13919  need_lib_prefix=no
13920  need_version=no
13921  soname_spec='${libname}${release}${shared_ext}$major'
13922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13923  shlibpath_var=LD_LIBRARY_PATH
13924  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13925  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13926  ;;
13927
13928rdos*)
13929  dynamic_linker=no
13930  ;;
13931
13932solaris*)
13933  version_type=linux
13934  need_lib_prefix=no
13935  need_version=no
13936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13937  soname_spec='${libname}${release}${shared_ext}$major'
13938  shlibpath_var=LD_LIBRARY_PATH
13939  shlibpath_overrides_runpath=yes
13940  hardcode_into_libs=yes
13941  # ldd complains unless libraries are executable
13942  postinstall_cmds='chmod +x $lib'
13943  ;;
13944
13945sunos4*)
13946  version_type=sunos
13947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13948  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13949  shlibpath_var=LD_LIBRARY_PATH
13950  shlibpath_overrides_runpath=yes
13951  if test "$with_gnu_ld" = yes; then
13952    need_lib_prefix=no
13953  fi
13954  need_version=yes
13955  ;;
13956
13957sysv4 | sysv4.3*)
13958  version_type=linux
13959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960  soname_spec='${libname}${release}${shared_ext}$major'
13961  shlibpath_var=LD_LIBRARY_PATH
13962  case $host_vendor in
13963    sni)
13964      shlibpath_overrides_runpath=no
13965      need_lib_prefix=no
13966      runpath_var=LD_RUN_PATH
13967      ;;
13968    siemens)
13969      need_lib_prefix=no
13970      ;;
13971    motorola)
13972      need_lib_prefix=no
13973      need_version=no
13974      shlibpath_overrides_runpath=no
13975      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13976      ;;
13977  esac
13978  ;;
13979
13980sysv4*MP*)
13981  if test -d /usr/nec ;then
13982    version_type=linux
13983    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13984    soname_spec='$libname${shared_ext}.$major'
13985    shlibpath_var=LD_LIBRARY_PATH
13986  fi
13987  ;;
13988
13989sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13990  version_type=freebsd-elf
13991  need_lib_prefix=no
13992  need_version=no
13993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13994  soname_spec='${libname}${release}${shared_ext}$major'
13995  shlibpath_var=LD_LIBRARY_PATH
13996  shlibpath_overrides_runpath=yes
13997  hardcode_into_libs=yes
13998  if test "$with_gnu_ld" = yes; then
13999    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14000  else
14001    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14002    case $host_os in
14003      sco3.2v5*)
14004        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14005	;;
14006    esac
14007  fi
14008  sys_lib_dlsearch_path_spec='/usr/lib'
14009  ;;
14010
14011tpf*)
14012  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14013  version_type=linux
14014  need_lib_prefix=no
14015  need_version=no
14016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14017  shlibpath_var=LD_LIBRARY_PATH
14018  shlibpath_overrides_runpath=no
14019  hardcode_into_libs=yes
14020  ;;
14021
14022uts4*)
14023  version_type=linux
14024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025  soname_spec='${libname}${release}${shared_ext}$major'
14026  shlibpath_var=LD_LIBRARY_PATH
14027  ;;
14028
14029*)
14030  dynamic_linker=no
14031  ;;
14032esac
14033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14034$as_echo "$dynamic_linker" >&6; }
14035test "$dynamic_linker" = no && can_build_shared=no
14036
14037variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14038if test "$GCC" = yes; then
14039  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14040fi
14041
14042if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14043  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14044fi
14045if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14046  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14047fi
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
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14087$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14088hardcode_action_CXX=
14089if test -n "$hardcode_libdir_flag_spec_CXX" ||
14090   test -n "$runpath_var_CXX" ||
14091   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14092
14093  # We can hardcode non-existent directories.
14094  if test "$hardcode_direct_CXX" != no &&
14095     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14096     # have to relink, otherwise we might link with an installed library
14097     # when we should be linking with a yet-to-be-installed one
14098     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14099     test "$hardcode_minus_L_CXX" != no; then
14100    # Linking always hardcodes the temporary library directory.
14101    hardcode_action_CXX=relink
14102  else
14103    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14104    hardcode_action_CXX=immediate
14105  fi
14106else
14107  # We cannot hardcode anything, or else we can only hardcode existing
14108  # directories.
14109  hardcode_action_CXX=unsupported
14110fi
14111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14112$as_echo "$hardcode_action_CXX" >&6; }
14113
14114if test "$hardcode_action_CXX" = relink ||
14115   test "$inherit_rpath_CXX" = yes; then
14116  # Fast installation is not supported
14117  enable_fast_install=no
14118elif test "$shlibpath_overrides_runpath" = yes ||
14119     test "$enable_shared" = no; then
14120  # Fast installation is not necessary
14121  enable_fast_install=needless
14122fi
14123
14124
14125
14126
14127
14128
14129
14130  fi # test -n "$compiler"
14131
14132  CC=$lt_save_CC
14133  LDCXX=$LD
14134  LD=$lt_save_LD
14135  GCC=$lt_save_GCC
14136  with_gnu_ld=$lt_save_with_gnu_ld
14137  lt_cv_path_LDCXX=$lt_cv_path_LD
14138  lt_cv_path_LD=$lt_save_path_LD
14139  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14140  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14141fi # test "$_lt_caught_CXX_error" != yes
14142
14143ac_ext=c
14144ac_cpp='$CPP $CPPFLAGS'
14145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14147ac_compiler_gnu=$ac_cv_c_compiler_gnu
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161        ac_config_commands="$ac_config_commands libtool"
14162
14163
14164
14165
14166# Only expand once:
14167
14168
14169# Forbid libtool to hardcode RPATH, because we want to be able to specify
14170# library search directory using LD_LIBRARY_PATH
14171hardcode_into_libs=no
14172
14173
14174
14175# Must be last
14176cat >confcache <<\_ACEOF
14177# This file is a shell script that caches the results of configure
14178# tests run on this system so they can be shared between configure
14179# scripts and configure runs, see configure's option --config-cache.
14180# It is not useful on other systems.  If it contains results you don't
14181# want to keep, you may remove or edit it.
14182#
14183# config.status only pays attention to the cache file if you give it
14184# the --recheck option to rerun configure.
14185#
14186# `ac_cv_env_foo' variables (set or unset) will be overridden when
14187# loading this file, other *unset* `ac_cv_foo' will be assigned the
14188# following values.
14189
14190_ACEOF
14191
14192# The following way of writing the cache mishandles newlines in values,
14193# but we know of no workaround that is simple, portable, and efficient.
14194# So, we kill variables containing newlines.
14195# Ultrix sh set writes to stderr and can't be redirected directly,
14196# and sets the high bit in the cache file unless we assign to the vars.
14197(
14198  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14199    eval ac_val=\$$ac_var
14200    case $ac_val in #(
14201    *${as_nl}*)
14202      case $ac_var in #(
14203      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14204$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14205      esac
14206      case $ac_var in #(
14207      _ | IFS | as_nl) ;; #(
14208      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14209      *) { eval $ac_var=; unset $ac_var;} ;;
14210      esac ;;
14211    esac
14212  done
14213
14214  (set) 2>&1 |
14215    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14216    *${as_nl}ac_space=\ *)
14217      # `set' does not quote correctly, so add quotes: double-quote
14218      # substitution turns \\\\ into \\, and sed turns \\ into \.
14219      sed -n \
14220	"s/'/'\\\\''/g;
14221	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14222      ;; #(
14223    *)
14224      # `set' quotes correctly as required by POSIX, so do not add quotes.
14225      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14226      ;;
14227    esac |
14228    sort
14229) |
14230  sed '
14231     /^ac_cv_env_/b end
14232     t clear
14233     :clear
14234     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14235     t end
14236     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14237     :end' >>confcache
14238if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14239  if test -w "$cache_file"; then
14240    test "x$cache_file" != "x/dev/null" &&
14241      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14242$as_echo "$as_me: updating cache $cache_file" >&6;}
14243    cat confcache >$cache_file
14244  else
14245    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14246$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14247  fi
14248fi
14249rm -f confcache
14250
14251test "x$prefix" = xNONE && prefix=$ac_default_prefix
14252# Let make expand exec_prefix.
14253test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14254
14255# Transform confdefs.h into DEFS.
14256# Protect against shell expansion while executing Makefile rules.
14257# Protect against Makefile macro expansion.
14258#
14259# If the first sed substitution is executed (which looks for macros that
14260# take arguments), then branch to the quote section.  Otherwise,
14261# look for a macro that doesn't take arguments.
14262ac_script='
14263:mline
14264/\\$/{
14265 N
14266 s,\\\n,,
14267 b mline
14268}
14269t clear
14270:clear
14271s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
14272t quote
14273s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
14274t quote
14275b any
14276:quote
14277s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14278s/\[/\\&/g
14279s/\]/\\&/g
14280s/\$/$$/g
14281H
14282:any
14283${
14284	g
14285	s/^\n//
14286	s/\n/ /g
14287	p
14288}
14289'
14290DEFS=`sed -n "$ac_script" confdefs.h`
14291
14292
14293ac_libobjs=
14294ac_ltlibobjs=
14295for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14296  # 1. Remove the extension, and $U if already installed.
14297  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14298  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14299  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14300  #    will be set to the directory where LIBOBJS objects are built.
14301  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14302  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14303done
14304LIBOBJS=$ac_libobjs
14305
14306LTLIBOBJS=$ac_ltlibobjs
14307
14308
14309 if test -n "$EXEEXT"; then
14310  am__EXEEXT_TRUE=
14311  am__EXEEXT_FALSE='#'
14312else
14313  am__EXEEXT_TRUE='#'
14314  am__EXEEXT_FALSE=
14315fi
14316
14317if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14318  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14319Usually this means the macro was only invoked conditionally." "$LINENO" 5
14320fi
14321if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14322  as_fn_error "conditional \"AMDEP\" was never defined.
14323Usually this means the macro was only invoked conditionally." "$LINENO" 5
14324fi
14325if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14326  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14327Usually this means the macro was only invoked conditionally." "$LINENO" 5
14328fi
14329if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14330  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14331Usually this means the macro was only invoked conditionally." "$LINENO" 5
14332fi
14333if test -z "${PLUGIN_HOST_TRUE}" && test -z "${PLUGIN_HOST_FALSE}"; then
14334  as_fn_error "conditional \"PLUGIN_HOST\" was never defined.
14335Usually this means the macro was only invoked conditionally." "$LINENO" 5
14336fi
14337
14338: ${CONFIG_STATUS=./config.status}
14339ac_write_fail=0
14340ac_clean_files_save=$ac_clean_files
14341ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14342{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14343$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14344as_write_fail=0
14345cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14346#! $SHELL
14347# Generated by $as_me.
14348# Run this file to recreate the current configuration.
14349# Compiler output produced by configure, useful for debugging
14350# configure, is in config.log if it exists.
14351
14352debug=false
14353ac_cs_recheck=false
14354ac_cs_silent=false
14355
14356SHELL=\${CONFIG_SHELL-$SHELL}
14357export SHELL
14358_ASEOF
14359cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14360## -------------------- ##
14361## M4sh Initialization. ##
14362## -------------------- ##
14363
14364# Be more Bourne compatible
14365DUALCASE=1; export DUALCASE # for MKS sh
14366if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14367  emulate sh
14368  NULLCMD=:
14369  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14370  # is contrary to our usage.  Disable this feature.
14371  alias -g '${1+"$@"}'='"$@"'
14372  setopt NO_GLOB_SUBST
14373else
14374  case `(set -o) 2>/dev/null` in #(
14375  *posix*) :
14376    set -o posix ;; #(
14377  *) :
14378     ;;
14379esac
14380fi
14381
14382
14383as_nl='
14384'
14385export as_nl
14386# Printing a long string crashes Solaris 7 /usr/bin/printf.
14387as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14388as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14389as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14390# Prefer a ksh shell builtin over an external printf program on Solaris,
14391# but without wasting forks for bash or zsh.
14392if test -z "$BASH_VERSION$ZSH_VERSION" \
14393    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14394  as_echo='print -r --'
14395  as_echo_n='print -rn --'
14396elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14397  as_echo='printf %s\n'
14398  as_echo_n='printf %s'
14399else
14400  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14401    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14402    as_echo_n='/usr/ucb/echo -n'
14403  else
14404    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14405    as_echo_n_body='eval
14406      arg=$1;
14407      case $arg in #(
14408      *"$as_nl"*)
14409	expr "X$arg" : "X\\(.*\\)$as_nl";
14410	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14411      esac;
14412      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14413    '
14414    export as_echo_n_body
14415    as_echo_n='sh -c $as_echo_n_body as_echo'
14416  fi
14417  export as_echo_body
14418  as_echo='sh -c $as_echo_body as_echo'
14419fi
14420
14421# The user is always right.
14422if test "${PATH_SEPARATOR+set}" != set; then
14423  PATH_SEPARATOR=:
14424  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14425    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14426      PATH_SEPARATOR=';'
14427  }
14428fi
14429
14430
14431# IFS
14432# We need space, tab and new line, in precisely that order.  Quoting is
14433# there to prevent editors from complaining about space-tab.
14434# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14435# splitting by setting IFS to empty value.)
14436IFS=" ""	$as_nl"
14437
14438# Find who we are.  Look in the path if we contain no directory separator.
14439case $0 in #((
14440  *[\\/]* ) as_myself=$0 ;;
14441  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442for as_dir in $PATH
14443do
14444  IFS=$as_save_IFS
14445  test -z "$as_dir" && as_dir=.
14446    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14447  done
14448IFS=$as_save_IFS
14449
14450     ;;
14451esac
14452# We did not find ourselves, most probably we were run as `sh COMMAND'
14453# in which case we are not to be found in the path.
14454if test "x$as_myself" = x; then
14455  as_myself=$0
14456fi
14457if test ! -f "$as_myself"; then
14458  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14459  exit 1
14460fi
14461
14462# Unset variables that we do not need and which cause bugs (e.g. in
14463# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14464# suppresses any "Segmentation fault" message there.  '((' could
14465# trigger a bug in pdksh 5.2.14.
14466for as_var in BASH_ENV ENV MAIL MAILPATH
14467do eval test x\${$as_var+set} = xset \
14468  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14469done
14470PS1='$ '
14471PS2='> '
14472PS4='+ '
14473
14474# NLS nuisances.
14475LC_ALL=C
14476export LC_ALL
14477LANGUAGE=C
14478export LANGUAGE
14479
14480# CDPATH.
14481(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14482
14483
14484# as_fn_error ERROR [LINENO LOG_FD]
14485# ---------------------------------
14486# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14487# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14488# script with status $?, using 1 if that was 0.
14489as_fn_error ()
14490{
14491  as_status=$?; test $as_status -eq 0 && as_status=1
14492  if test "$3"; then
14493    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14494    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14495  fi
14496  $as_echo "$as_me: error: $1" >&2
14497  as_fn_exit $as_status
14498} # as_fn_error
14499
14500
14501# as_fn_set_status STATUS
14502# -----------------------
14503# Set $? to STATUS, without forking.
14504as_fn_set_status ()
14505{
14506  return $1
14507} # as_fn_set_status
14508
14509# as_fn_exit STATUS
14510# -----------------
14511# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14512as_fn_exit ()
14513{
14514  set +e
14515  as_fn_set_status $1
14516  exit $1
14517} # as_fn_exit
14518
14519# as_fn_unset VAR
14520# ---------------
14521# Portably unset VAR.
14522as_fn_unset ()
14523{
14524  { eval $1=; unset $1;}
14525}
14526as_unset=as_fn_unset
14527# as_fn_append VAR VALUE
14528# ----------------------
14529# Append the text in VALUE to the end of the definition contained in VAR. Take
14530# advantage of any shell optimizations that allow amortized linear growth over
14531# repeated appends, instead of the typical quadratic growth present in naive
14532# implementations.
14533if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14534  eval 'as_fn_append ()
14535  {
14536    eval $1+=\$2
14537  }'
14538else
14539  as_fn_append ()
14540  {
14541    eval $1=\$$1\$2
14542  }
14543fi # as_fn_append
14544
14545# as_fn_arith ARG...
14546# ------------------
14547# Perform arithmetic evaluation on the ARGs, and store the result in the
14548# global $as_val. Take advantage of shells that can avoid forks. The arguments
14549# must be portable across $(()) and expr.
14550if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14551  eval 'as_fn_arith ()
14552  {
14553    as_val=$(( $* ))
14554  }'
14555else
14556  as_fn_arith ()
14557  {
14558    as_val=`expr "$@" || test $? -eq 1`
14559  }
14560fi # as_fn_arith
14561
14562
14563if expr a : '\(a\)' >/dev/null 2>&1 &&
14564   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14565  as_expr=expr
14566else
14567  as_expr=false
14568fi
14569
14570if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14571  as_basename=basename
14572else
14573  as_basename=false
14574fi
14575
14576if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14577  as_dirname=dirname
14578else
14579  as_dirname=false
14580fi
14581
14582as_me=`$as_basename -- "$0" ||
14583$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14584	 X"$0" : 'X\(//\)$' \| \
14585	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14586$as_echo X/"$0" |
14587    sed '/^.*\/\([^/][^/]*\)\/*$/{
14588	    s//\1/
14589	    q
14590	  }
14591	  /^X\/\(\/\/\)$/{
14592	    s//\1/
14593	    q
14594	  }
14595	  /^X\/\(\/\).*/{
14596	    s//\1/
14597	    q
14598	  }
14599	  s/.*/./; q'`
14600
14601# Avoid depending upon Character Ranges.
14602as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14603as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14604as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14605as_cr_digits='0123456789'
14606as_cr_alnum=$as_cr_Letters$as_cr_digits
14607
14608ECHO_C= ECHO_N= ECHO_T=
14609case `echo -n x` in #(((((
14610-n*)
14611  case `echo 'xy\c'` in
14612  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14613  xy)  ECHO_C='\c';;
14614  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14615       ECHO_T='	';;
14616  esac;;
14617*)
14618  ECHO_N='-n';;
14619esac
14620
14621rm -f conf$$ conf$$.exe conf$$.file
14622if test -d conf$$.dir; then
14623  rm -f conf$$.dir/conf$$.file
14624else
14625  rm -f conf$$.dir
14626  mkdir conf$$.dir 2>/dev/null
14627fi
14628if (echo >conf$$.file) 2>/dev/null; then
14629  if ln -s conf$$.file conf$$ 2>/dev/null; then
14630    as_ln_s='ln -s'
14631    # ... but there are two gotchas:
14632    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14633    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14634    # In both cases, we have to default to `cp -p'.
14635    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14636      as_ln_s='cp -p'
14637  elif ln conf$$.file conf$$ 2>/dev/null; then
14638    as_ln_s=ln
14639  else
14640    as_ln_s='cp -p'
14641  fi
14642else
14643  as_ln_s='cp -p'
14644fi
14645rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14646rmdir conf$$.dir 2>/dev/null
14647
14648
14649# as_fn_mkdir_p
14650# -------------
14651# Create "$as_dir" as a directory, including parents if necessary.
14652as_fn_mkdir_p ()
14653{
14654
14655  case $as_dir in #(
14656  -*) as_dir=./$as_dir;;
14657  esac
14658  test -d "$as_dir" || eval $as_mkdir_p || {
14659    as_dirs=
14660    while :; do
14661      case $as_dir in #(
14662      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14663      *) as_qdir=$as_dir;;
14664      esac
14665      as_dirs="'$as_qdir' $as_dirs"
14666      as_dir=`$as_dirname -- "$as_dir" ||
14667$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14668	 X"$as_dir" : 'X\(//\)[^/]' \| \
14669	 X"$as_dir" : 'X\(//\)$' \| \
14670	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14671$as_echo X"$as_dir" |
14672    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14673	    s//\1/
14674	    q
14675	  }
14676	  /^X\(\/\/\)[^/].*/{
14677	    s//\1/
14678	    q
14679	  }
14680	  /^X\(\/\/\)$/{
14681	    s//\1/
14682	    q
14683	  }
14684	  /^X\(\/\).*/{
14685	    s//\1/
14686	    q
14687	  }
14688	  s/.*/./; q'`
14689      test -d "$as_dir" && break
14690    done
14691    test -z "$as_dirs" || eval "mkdir $as_dirs"
14692  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14693
14694
14695} # as_fn_mkdir_p
14696if mkdir -p . 2>/dev/null; then
14697  as_mkdir_p='mkdir -p "$as_dir"'
14698else
14699  test -d ./-p && rmdir ./-p
14700  as_mkdir_p=false
14701fi
14702
14703if test -x / >/dev/null 2>&1; then
14704  as_test_x='test -x'
14705else
14706  if ls -dL / >/dev/null 2>&1; then
14707    as_ls_L_option=L
14708  else
14709    as_ls_L_option=
14710  fi
14711  as_test_x='
14712    eval sh -c '\''
14713      if test -d "$1"; then
14714	test -d "$1/.";
14715      else
14716	case $1 in #(
14717	-*)set "./$1";;
14718	esac;
14719	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14720	???[sx]*):;;*)false;;esac;fi
14721    '\'' sh
14722  '
14723fi
14724as_executable_p=$as_test_x
14725
14726# Sed expression to map a string onto a valid CPP name.
14727as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14728
14729# Sed expression to map a string onto a valid variable name.
14730as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14731
14732
14733exec 6>&1
14734## ----------------------------------- ##
14735## Main body of $CONFIG_STATUS script. ##
14736## ----------------------------------- ##
14737_ASEOF
14738test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14739
14740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14741# Save the log message, to keep $0 and so on meaningful, and to
14742# report actual input values of CONFIG_FILES etc. instead of their
14743# values after options handling.
14744ac_log="
14745This file was extended by Intel MIC Offload Plugin $as_me 1.0, which was
14746generated by GNU Autoconf 2.64.  Invocation command line was
14747
14748  CONFIG_FILES    = $CONFIG_FILES
14749  CONFIG_HEADERS  = $CONFIG_HEADERS
14750  CONFIG_LINKS    = $CONFIG_LINKS
14751  CONFIG_COMMANDS = $CONFIG_COMMANDS
14752  $ $0 $@
14753
14754on `(hostname || uname -n) 2>/dev/null | sed 1q`
14755"
14756
14757_ACEOF
14758
14759case $ac_config_files in *"
14760"*) set x $ac_config_files; shift; ac_config_files=$*;;
14761esac
14762
14763
14764
14765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14766# Files that config.status was made for.
14767config_files="$ac_config_files"
14768config_commands="$ac_config_commands"
14769
14770_ACEOF
14771
14772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14773ac_cs_usage="\
14774\`$as_me' instantiates files and other configuration actions
14775from templates according to the current configuration.  Unless the files
14776and actions are specified as TAGs, all are instantiated by default.
14777
14778Usage: $0 [OPTION]... [TAG]...
14779
14780  -h, --help       print this help, then exit
14781  -V, --version    print version number and configuration settings, then exit
14782  -q, --quiet, --silent
14783                   do not print progress messages
14784  -d, --debug      don't remove temporary files
14785      --recheck    update $as_me by reconfiguring in the same conditions
14786      --file=FILE[:TEMPLATE]
14787                   instantiate the configuration file FILE
14788
14789Configuration files:
14790$config_files
14791
14792Configuration commands:
14793$config_commands
14794
14795Report bugs to the package provider."
14796
14797_ACEOF
14798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14799ac_cs_version="\\
14800Intel MIC Offload Plugin config.status 1.0
14801configured by $0, generated by GNU Autoconf 2.64,
14802  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14803
14804Copyright (C) 2009 Free Software Foundation, Inc.
14805This config.status script is free software; the Free Software Foundation
14806gives unlimited permission to copy, distribute and modify it."
14807
14808ac_pwd='$ac_pwd'
14809srcdir='$srcdir'
14810INSTALL='$INSTALL'
14811MKDIR_P='$MKDIR_P'
14812AWK='$AWK'
14813test -n "\$AWK" || AWK=awk
14814_ACEOF
14815
14816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14817# The default lists apply if the user does not specify any file.
14818ac_need_defaults=:
14819while test $# != 0
14820do
14821  case $1 in
14822  --*=*)
14823    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14824    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14825    ac_shift=:
14826    ;;
14827  *)
14828    ac_option=$1
14829    ac_optarg=$2
14830    ac_shift=shift
14831    ;;
14832  esac
14833
14834  case $ac_option in
14835  # Handling of the options.
14836  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14837    ac_cs_recheck=: ;;
14838  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14839    $as_echo "$ac_cs_version"; exit ;;
14840  --debug | --debu | --deb | --de | --d | -d )
14841    debug=: ;;
14842  --file | --fil | --fi | --f )
14843    $ac_shift
14844    case $ac_optarg in
14845    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14846    esac
14847    as_fn_append CONFIG_FILES " '$ac_optarg'"
14848    ac_need_defaults=false;;
14849  --he | --h |  --help | --hel | -h )
14850    $as_echo "$ac_cs_usage"; exit ;;
14851  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14852  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14853    ac_cs_silent=: ;;
14854
14855  # This is an error.
14856  -*) as_fn_error "unrecognized option: \`$1'
14857Try \`$0 --help' for more information." ;;
14858
14859  *) as_fn_append ac_config_targets " $1"
14860     ac_need_defaults=false ;;
14861
14862  esac
14863  shift
14864done
14865
14866ac_configure_extra_args=
14867
14868if $ac_cs_silent; then
14869  exec 6>/dev/null
14870  ac_configure_extra_args="$ac_configure_extra_args --silent"
14871fi
14872
14873_ACEOF
14874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14875if \$ac_cs_recheck; then
14876  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14877  shift
14878  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14879  CONFIG_SHELL='$SHELL'
14880  export CONFIG_SHELL
14881  exec "\$@"
14882fi
14883
14884_ACEOF
14885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14886exec 5>>config.log
14887{
14888  echo
14889  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14890## Running $as_me. ##
14891_ASBOX
14892  $as_echo "$ac_log"
14893} >&5
14894
14895_ACEOF
14896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14897#
14898# INIT-COMMANDS
14899#
14900AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14901
14902srcdir="$srcdir"
14903host="$host"
14904target="$target"
14905with_multisubdir="$with_multisubdir"
14906with_multisrctop="$with_multisrctop"
14907with_target_subdir="$with_target_subdir"
14908ac_configure_args="${multilib_arg} ${ac_configure_args}"
14909multi_basedir="$multi_basedir"
14910CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14911CC="$CC"
14912CXX="$CXX"
14913GFORTRAN="$GFORTRAN"
14914GCJ="$GCJ"
14915
14916
14917# The HP-UX ksh and POSIX shell print the target directory to stdout
14918# if CDPATH is set.
14919(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14920
14921sed_quote_subst='$sed_quote_subst'
14922double_quote_subst='$double_quote_subst'
14923delay_variable_subst='$delay_variable_subst'
14924macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14925macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14926enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14927enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14928pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14929enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14930SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14931ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14932host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14933host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14934host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14935build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14936build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14937build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14938SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14939Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14940GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14941EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14942FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14943LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14944NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14945LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14946max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14947ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14948exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14949lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14950lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14951lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14952reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14953reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14954OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14955deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14956file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14957AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14958AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14959STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14960RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14961old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14962old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14963old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14964lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14965CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14966CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14967compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14968GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14969lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14970lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14971lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14972lt_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"`'
14973objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14974MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14975lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14976lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14977lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14978lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14979lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14980need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14981DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14982NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14983LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14984OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14985OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14986libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14987shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14988extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14989archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14990enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14991export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14992whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14993compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14994old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14995old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14996archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14997archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14998module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14999module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15000with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15001allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15002no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15003hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15004hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15005hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15006hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15007hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15008hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15009hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15010hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15011inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15012link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15013fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15014always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15015export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15016exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15017include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15018prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15019file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15020variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15021need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15022need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15023version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15024runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15025shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15026shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15027libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15028library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15029soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15030install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15031postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15032postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15033finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15034finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15035hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15036sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15037sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15038hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15039enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15040enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15041enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15042old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15043striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15044compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15045predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15046postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15047predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15048postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15049compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15050LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15051reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15052reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15053old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15054compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15055GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15056lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15057lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15058lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15059lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15060lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15061archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15062enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15063export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15064whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15065compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15066old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15067old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15068archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15069archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15070module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15071module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15072with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15073allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15074no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15075hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15076hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15077hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15078hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15079hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15080hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15081hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15082hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15083inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15084link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15085fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15086always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15087export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15088exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15089include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15090prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15091file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15092hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15093compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15094predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15095postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15096predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15097postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15098compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15099
15100LTCC='$LTCC'
15101LTCFLAGS='$LTCFLAGS'
15102compiler='$compiler_DEFAULT'
15103
15104# A function that is used when there is no print builtin or printf.
15105func_fallback_echo ()
15106{
15107  eval 'cat <<_LTECHO_EOF
15108\$1
15109_LTECHO_EOF'
15110}
15111
15112# Quote evaled strings.
15113for var in SHELL \
15114ECHO \
15115SED \
15116GREP \
15117EGREP \
15118FGREP \
15119LD \
15120NM \
15121LN_S \
15122lt_SP2NL \
15123lt_NL2SP \
15124reload_flag \
15125OBJDUMP \
15126deplibs_check_method \
15127file_magic_cmd \
15128AR \
15129AR_FLAGS \
15130STRIP \
15131RANLIB \
15132CC \
15133CFLAGS \
15134compiler \
15135lt_cv_sys_global_symbol_pipe \
15136lt_cv_sys_global_symbol_to_cdecl \
15137lt_cv_sys_global_symbol_to_c_name_address \
15138lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15139lt_prog_compiler_no_builtin_flag \
15140lt_prog_compiler_wl \
15141lt_prog_compiler_pic \
15142lt_prog_compiler_static \
15143lt_cv_prog_compiler_c_o \
15144need_locks \
15145DSYMUTIL \
15146NMEDIT \
15147LIPO \
15148OTOOL \
15149OTOOL64 \
15150shrext_cmds \
15151export_dynamic_flag_spec \
15152whole_archive_flag_spec \
15153compiler_needs_object \
15154with_gnu_ld \
15155allow_undefined_flag \
15156no_undefined_flag \
15157hardcode_libdir_flag_spec \
15158hardcode_libdir_flag_spec_ld \
15159hardcode_libdir_separator \
15160fix_srcfile_path \
15161exclude_expsyms \
15162include_expsyms \
15163file_list_spec \
15164variables_saved_for_relink \
15165libname_spec \
15166library_names_spec \
15167soname_spec \
15168install_override_mode \
15169finish_eval \
15170old_striplib \
15171striplib \
15172compiler_lib_search_dirs \
15173predep_objects \
15174postdep_objects \
15175predeps \
15176postdeps \
15177compiler_lib_search_path \
15178LD_CXX \
15179reload_flag_CXX \
15180compiler_CXX \
15181lt_prog_compiler_no_builtin_flag_CXX \
15182lt_prog_compiler_wl_CXX \
15183lt_prog_compiler_pic_CXX \
15184lt_prog_compiler_static_CXX \
15185lt_cv_prog_compiler_c_o_CXX \
15186export_dynamic_flag_spec_CXX \
15187whole_archive_flag_spec_CXX \
15188compiler_needs_object_CXX \
15189with_gnu_ld_CXX \
15190allow_undefined_flag_CXX \
15191no_undefined_flag_CXX \
15192hardcode_libdir_flag_spec_CXX \
15193hardcode_libdir_flag_spec_ld_CXX \
15194hardcode_libdir_separator_CXX \
15195fix_srcfile_path_CXX \
15196exclude_expsyms_CXX \
15197include_expsyms_CXX \
15198file_list_spec_CXX \
15199compiler_lib_search_dirs_CXX \
15200predep_objects_CXX \
15201postdep_objects_CXX \
15202predeps_CXX \
15203postdeps_CXX \
15204compiler_lib_search_path_CXX; do
15205    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15206    *[\\\\\\\`\\"\\\$]*)
15207      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15208      ;;
15209    *)
15210      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15211      ;;
15212    esac
15213done
15214
15215# Double-quote double-evaled strings.
15216for var in reload_cmds \
15217old_postinstall_cmds \
15218old_postuninstall_cmds \
15219old_archive_cmds \
15220extract_expsyms_cmds \
15221old_archive_from_new_cmds \
15222old_archive_from_expsyms_cmds \
15223archive_cmds \
15224archive_expsym_cmds \
15225module_cmds \
15226module_expsym_cmds \
15227export_symbols_cmds \
15228prelink_cmds \
15229postinstall_cmds \
15230postuninstall_cmds \
15231finish_cmds \
15232sys_lib_search_path_spec \
15233sys_lib_dlsearch_path_spec \
15234reload_cmds_CXX \
15235old_archive_cmds_CXX \
15236old_archive_from_new_cmds_CXX \
15237old_archive_from_expsyms_cmds_CXX \
15238archive_cmds_CXX \
15239archive_expsym_cmds_CXX \
15240module_cmds_CXX \
15241module_expsym_cmds_CXX \
15242export_symbols_cmds_CXX \
15243prelink_cmds_CXX; do
15244    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15245    *[\\\\\\\`\\"\\\$]*)
15246      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15247      ;;
15248    *)
15249      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15250      ;;
15251    esac
15252done
15253
15254ac_aux_dir='$ac_aux_dir'
15255xsi_shell='$xsi_shell'
15256lt_shell_append='$lt_shell_append'
15257
15258# See if we are running on zsh, and set the options which allow our
15259# commands through without removal of \ escapes INIT.
15260if test -n "\${ZSH_VERSION+set}" ; then
15261   setopt NO_GLOB_SUBST
15262fi
15263
15264
15265    PACKAGE='$PACKAGE'
15266    VERSION='$VERSION'
15267    TIMESTAMP='$TIMESTAMP'
15268    RM='$RM'
15269    ofile='$ofile'
15270
15271
15272
15273
15274
15275
15276_ACEOF
15277
15278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15279
15280# Handling of arguments.
15281for ac_config_target in $ac_config_targets
15282do
15283  case $ac_config_target in
15284    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15285    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15286    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15287    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15288
15289  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15290  esac
15291done
15292
15293
15294# If the user did not use the arguments to specify the items to instantiate,
15295# then the envvar interface is used.  Set only those that are not.
15296# We use the long form for the default assignment because of an extremely
15297# bizarre bug on SunOS 4.1.3.
15298if $ac_need_defaults; then
15299  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15300  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15301fi
15302
15303# Have a temporary directory for convenience.  Make it in the build tree
15304# simply because there is no reason against having it here, and in addition,
15305# creating and moving files from /tmp can sometimes cause problems.
15306# Hook for its removal unless debugging.
15307# Note that there is a small window in which the directory will not be cleaned:
15308# after its creation but before its name has been assigned to `$tmp'.
15309$debug ||
15310{
15311  tmp=
15312  trap 'exit_status=$?
15313  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15314' 0
15315  trap 'as_fn_exit 1' 1 2 13 15
15316}
15317# Create a (secure) tmp directory for tmp files.
15318
15319{
15320  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15321  test -n "$tmp" && test -d "$tmp"
15322}  ||
15323{
15324  tmp=./conf$$-$RANDOM
15325  (umask 077 && mkdir "$tmp")
15326} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15327
15328# Set up the scripts for CONFIG_FILES section.
15329# No need to generate them if there are no CONFIG_FILES.
15330# This happens for instance with `./config.status config.h'.
15331if test -n "$CONFIG_FILES"; then
15332
15333
15334ac_cr=`echo X | tr X '\015'`
15335# On cygwin, bash can eat \r inside `` if the user requested igncr.
15336# But we know of no other shell where ac_cr would be empty at this
15337# point, so we can use a bashism as a fallback.
15338if test "x$ac_cr" = x; then
15339  eval ac_cr=\$\'\\r\'
15340fi
15341ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15342if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15343  ac_cs_awk_cr='\r'
15344else
15345  ac_cs_awk_cr=$ac_cr
15346fi
15347
15348echo 'BEGIN {' >"$tmp/subs1.awk" &&
15349_ACEOF
15350
15351
15352{
15353  echo "cat >conf$$subs.awk <<_ACEOF" &&
15354  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15355  echo "_ACEOF"
15356} >conf$$subs.sh ||
15357  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15358ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15359ac_delim='%!_!# '
15360for ac_last_try in false false false false false :; do
15361  . ./conf$$subs.sh ||
15362    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15363
15364  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15365  if test $ac_delim_n = $ac_delim_num; then
15366    break
15367  elif $ac_last_try; then
15368    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15369  else
15370    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15371  fi
15372done
15373rm -f conf$$subs.sh
15374
15375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15376cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15377_ACEOF
15378sed -n '
15379h
15380s/^/S["/; s/!.*/"]=/
15381p
15382g
15383s/^[^!]*!//
15384:repl
15385t repl
15386s/'"$ac_delim"'$//
15387t delim
15388:nl
15389h
15390s/\(.\{148\}\).*/\1/
15391t more1
15392s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15393p
15394n
15395b repl
15396:more1
15397s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15398p
15399g
15400s/.\{148\}//
15401t nl
15402:delim
15403h
15404s/\(.\{148\}\).*/\1/
15405t more2
15406s/["\\]/\\&/g; s/^/"/; s/$/"/
15407p
15408b
15409:more2
15410s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15411p
15412g
15413s/.\{148\}//
15414t delim
15415' <conf$$subs.awk | sed '
15416/^[^""]/{
15417  N
15418  s/\n//
15419}
15420' >>$CONFIG_STATUS || ac_write_fail=1
15421rm -f conf$$subs.awk
15422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15423_ACAWK
15424cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15425  for (key in S) S_is_set[key] = 1
15426  FS = ""
15427
15428}
15429{
15430  line = $ 0
15431  nfields = split(line, field, "@")
15432  substed = 0
15433  len = length(field[1])
15434  for (i = 2; i < nfields; i++) {
15435    key = field[i]
15436    keylen = length(key)
15437    if (S_is_set[key]) {
15438      value = S[key]
15439      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15440      len += length(value) + length(field[++i])
15441      substed = 1
15442    } else
15443      len += 1 + keylen
15444  }
15445
15446  print line
15447}
15448
15449_ACAWK
15450_ACEOF
15451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15452if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15453  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15454else
15455  cat
15456fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15457  || as_fn_error "could not setup config files machinery" "$LINENO" 5
15458_ACEOF
15459
15460# VPATH may cause trouble with some makes, so we remove $(srcdir),
15461# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15462# trailing colons and then remove the whole line if VPATH becomes empty
15463# (actually we leave an empty line to preserve line numbers).
15464if test "x$srcdir" = x.; then
15465  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15466s/:*\$(srcdir):*/:/
15467s/:*\${srcdir}:*/:/
15468s/:*@srcdir@:*/:/
15469s/^\([^=]*=[	 ]*\):*/\1/
15470s/:*$//
15471s/^[^=]*=[	 ]*$//
15472}'
15473fi
15474
15475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15476fi # test -n "$CONFIG_FILES"
15477
15478
15479eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
15480shift
15481for ac_tag
15482do
15483  case $ac_tag in
15484  :[FHLC]) ac_mode=$ac_tag; continue;;
15485  esac
15486  case $ac_mode$ac_tag in
15487  :[FHL]*:*);;
15488  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15489  :[FH]-) ac_tag=-:-;;
15490  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15491  esac
15492  ac_save_IFS=$IFS
15493  IFS=:
15494  set x $ac_tag
15495  IFS=$ac_save_IFS
15496  shift
15497  ac_file=$1
15498  shift
15499
15500  case $ac_mode in
15501  :L) ac_source=$1;;
15502  :[FH])
15503    ac_file_inputs=
15504    for ac_f
15505    do
15506      case $ac_f in
15507      -) ac_f="$tmp/stdin";;
15508      *) # Look for the file first in the build tree, then in the source tree
15509	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15510	 # because $ac_f cannot contain `:'.
15511	 test -f "$ac_f" ||
15512	   case $ac_f in
15513	   [\\/$]*) false;;
15514	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15515	   esac ||
15516	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15517      esac
15518      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15519      as_fn_append ac_file_inputs " '$ac_f'"
15520    done
15521
15522    # Let's still pretend it is `configure' which instantiates (i.e., don't
15523    # use $as_me), people would be surprised to read:
15524    #    /* config.h.  Generated by config.status.  */
15525    configure_input='Generated from '`
15526	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15527	`' by configure.'
15528    if test x"$ac_file" != x-; then
15529      configure_input="$ac_file.  $configure_input"
15530      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15531$as_echo "$as_me: creating $ac_file" >&6;}
15532    fi
15533    # Neutralize special characters interpreted by sed in replacement strings.
15534    case $configure_input in #(
15535    *\&* | *\|* | *\\* )
15536       ac_sed_conf_input=`$as_echo "$configure_input" |
15537       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15538    *) ac_sed_conf_input=$configure_input;;
15539    esac
15540
15541    case $ac_tag in
15542    *:-:* | *:-) cat >"$tmp/stdin" \
15543      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15544    esac
15545    ;;
15546  esac
15547
15548  ac_dir=`$as_dirname -- "$ac_file" ||
15549$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15550	 X"$ac_file" : 'X\(//\)[^/]' \| \
15551	 X"$ac_file" : 'X\(//\)$' \| \
15552	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15553$as_echo X"$ac_file" |
15554    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15555	    s//\1/
15556	    q
15557	  }
15558	  /^X\(\/\/\)[^/].*/{
15559	    s//\1/
15560	    q
15561	  }
15562	  /^X\(\/\/\)$/{
15563	    s//\1/
15564	    q
15565	  }
15566	  /^X\(\/\).*/{
15567	    s//\1/
15568	    q
15569	  }
15570	  s/.*/./; q'`
15571  as_dir="$ac_dir"; as_fn_mkdir_p
15572  ac_builddir=.
15573
15574case "$ac_dir" in
15575.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15576*)
15577  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15578  # A ".." for each directory in $ac_dir_suffix.
15579  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15580  case $ac_top_builddir_sub in
15581  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15582  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15583  esac ;;
15584esac
15585ac_abs_top_builddir=$ac_pwd
15586ac_abs_builddir=$ac_pwd$ac_dir_suffix
15587# for backward compatibility:
15588ac_top_builddir=$ac_top_build_prefix
15589
15590case $srcdir in
15591  .)  # We are building in place.
15592    ac_srcdir=.
15593    ac_top_srcdir=$ac_top_builddir_sub
15594    ac_abs_top_srcdir=$ac_pwd ;;
15595  [\\/]* | ?:[\\/]* )  # Absolute name.
15596    ac_srcdir=$srcdir$ac_dir_suffix;
15597    ac_top_srcdir=$srcdir
15598    ac_abs_top_srcdir=$srcdir ;;
15599  *) # Relative name.
15600    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15601    ac_top_srcdir=$ac_top_build_prefix$srcdir
15602    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15603esac
15604ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15605
15606
15607  case $ac_mode in
15608  :F)
15609  #
15610  # CONFIG_FILE
15611  #
15612
15613  case $INSTALL in
15614  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15615  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15616  esac
15617  ac_MKDIR_P=$MKDIR_P
15618  case $MKDIR_P in
15619  [\\/$]* | ?:[\\/]* ) ;;
15620  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15621  esac
15622_ACEOF
15623
15624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15625# If the template does not know about datarootdir, expand it.
15626# FIXME: This hack should be removed a few years after 2.60.
15627ac_datarootdir_hack=; ac_datarootdir_seen=
15628ac_sed_dataroot='
15629/datarootdir/ {
15630  p
15631  q
15632}
15633/@datadir@/p
15634/@docdir@/p
15635/@infodir@/p
15636/@localedir@/p
15637/@mandir@/p'
15638case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15639*datarootdir*) ac_datarootdir_seen=yes;;
15640*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15641  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15642$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15643_ACEOF
15644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15645  ac_datarootdir_hack='
15646  s&@datadir@&$datadir&g
15647  s&@docdir@&$docdir&g
15648  s&@infodir@&$infodir&g
15649  s&@localedir@&$localedir&g
15650  s&@mandir@&$mandir&g
15651  s&\\\${datarootdir}&$datarootdir&g' ;;
15652esac
15653_ACEOF
15654
15655# Neutralize VPATH when `$srcdir' = `.'.
15656# Shell code in configure.ac might set extrasub.
15657# FIXME: do we really want to maintain this feature?
15658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15659ac_sed_extra="$ac_vpsub
15660$extrasub
15661_ACEOF
15662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15663:t
15664/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15665s|@configure_input@|$ac_sed_conf_input|;t t
15666s&@top_builddir@&$ac_top_builddir_sub&;t t
15667s&@top_build_prefix@&$ac_top_build_prefix&;t t
15668s&@srcdir@&$ac_srcdir&;t t
15669s&@abs_srcdir@&$ac_abs_srcdir&;t t
15670s&@top_srcdir@&$ac_top_srcdir&;t t
15671s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15672s&@builddir@&$ac_builddir&;t t
15673s&@abs_builddir@&$ac_abs_builddir&;t t
15674s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15675s&@INSTALL@&$ac_INSTALL&;t t
15676s&@MKDIR_P@&$ac_MKDIR_P&;t t
15677$ac_datarootdir_hack
15678"
15679eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15680  || as_fn_error "could not create $ac_file" "$LINENO" 5
15681
15682test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15683  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15684  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15685  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15686which seems to be undefined.  Please make sure it is defined." >&5
15687$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15688which seems to be undefined.  Please make sure it is defined." >&2;}
15689
15690  rm -f "$tmp/stdin"
15691  case $ac_file in
15692  -) cat "$tmp/out" && rm -f "$tmp/out";;
15693  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15694  esac \
15695  || as_fn_error "could not create $ac_file" "$LINENO" 5
15696 ;;
15697
15698
15699  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15700$as_echo "$as_me: executing $ac_file commands" >&6;}
15701 ;;
15702  esac
15703
15704
15705  case $ac_file$ac_mode in
15706    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15707  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15708  # are listed without --file.  Let's play safe and only enable the eval
15709  # if we detect the quoting.
15710  case $CONFIG_FILES in
15711  *\'*) eval set x "$CONFIG_FILES" ;;
15712  *)   set x $CONFIG_FILES ;;
15713  esac
15714  shift
15715  for mf
15716  do
15717    # Strip MF so we end up with the name of the file.
15718    mf=`echo "$mf" | sed -e 's/:.*$//'`
15719    # Check whether this is an Automake generated Makefile or not.
15720    # We used to match only the files named `Makefile.in', but
15721    # some people rename them; so instead we look at the file content.
15722    # Grep'ing the first line is not enough: some people post-process
15723    # each Makefile.in and add a new line on top of each file to say so.
15724    # Grep'ing the whole file is not good either: AIX grep has a line
15725    # limit of 2048, but all sed's we know have understand at least 4000.
15726    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15727      dirpart=`$as_dirname -- "$mf" ||
15728$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15729	 X"$mf" : 'X\(//\)[^/]' \| \
15730	 X"$mf" : 'X\(//\)$' \| \
15731	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15732$as_echo X"$mf" |
15733    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15734	    s//\1/
15735	    q
15736	  }
15737	  /^X\(\/\/\)[^/].*/{
15738	    s//\1/
15739	    q
15740	  }
15741	  /^X\(\/\/\)$/{
15742	    s//\1/
15743	    q
15744	  }
15745	  /^X\(\/\).*/{
15746	    s//\1/
15747	    q
15748	  }
15749	  s/.*/./; q'`
15750    else
15751      continue
15752    fi
15753    # Extract the definition of DEPDIR, am__include, and am__quote
15754    # from the Makefile without running `make'.
15755    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15756    test -z "$DEPDIR" && continue
15757    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15758    test -z "am__include" && continue
15759    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15760    # When using ansi2knr, U may be empty or an underscore; expand it
15761    U=`sed -n 's/^U = //p' < "$mf"`
15762    # Find all dependency output files, they are included files with
15763    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15764    # simplest approach to changing $(DEPDIR) to its actual value in the
15765    # expansion.
15766    for file in `sed -n "
15767      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15768	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15769      # Make sure the directory exists.
15770      test -f "$dirpart/$file" && continue
15771      fdir=`$as_dirname -- "$file" ||
15772$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15773	 X"$file" : 'X\(//\)[^/]' \| \
15774	 X"$file" : 'X\(//\)$' \| \
15775	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15776$as_echo X"$file" |
15777    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15778	    s//\1/
15779	    q
15780	  }
15781	  /^X\(\/\/\)[^/].*/{
15782	    s//\1/
15783	    q
15784	  }
15785	  /^X\(\/\/\)$/{
15786	    s//\1/
15787	    q
15788	  }
15789	  /^X\(\/\).*/{
15790	    s//\1/
15791	    q
15792	  }
15793	  s/.*/./; q'`
15794      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15795      # echo "creating $dirpart/$file"
15796      echo '# dummy' > "$dirpart/$file"
15797    done
15798  done
15799}
15800 ;;
15801    "default-1":C)
15802# Only add multilib support code if we just rebuilt the top-level
15803# Makefile.
15804case " $CONFIG_FILES " in
15805 *" Makefile "*)
15806   ac_file=Makefile . ${multi_basedir}/config-ml.in
15807   ;;
15808esac ;;
15809    "libtool":C)
15810
15811    # See if we are running on zsh, and set the options which allow our
15812    # commands through without removal of \ escapes.
15813    if test -n "${ZSH_VERSION+set}" ; then
15814      setopt NO_GLOB_SUBST
15815    fi
15816
15817    cfgfile="${ofile}T"
15818    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15819    $RM "$cfgfile"
15820
15821    cat <<_LT_EOF >> "$cfgfile"
15822#! $SHELL
15823
15824# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15825# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15826# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15827# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15828#
15829#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15830#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15831#   Written by Gordon Matzigkeit, 1996
15832#
15833#   This file is part of GNU Libtool.
15834#
15835# GNU Libtool is free software; you can redistribute it and/or
15836# modify it under the terms of the GNU General Public License as
15837# published by the Free Software Foundation; either version 2 of
15838# the License, or (at your option) any later version.
15839#
15840# As a special exception to the GNU General Public License,
15841# if you distribute this file as part of a program or library that
15842# is built using GNU Libtool, you may include this file under the
15843# same distribution terms that you use for the rest of that program.
15844#
15845# GNU Libtool is distributed in the hope that it will be useful,
15846# but WITHOUT ANY WARRANTY; without even the implied warranty of
15847# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15848# GNU General Public License for more details.
15849#
15850# You should have received a copy of the GNU General Public License
15851# along with GNU Libtool; see the file COPYING.  If not, a copy
15852# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15853# obtained by writing to the Free Software Foundation, Inc.,
15854# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15855
15856
15857# The names of the tagged configurations supported by this script.
15858available_tags="CXX "
15859
15860# ### BEGIN LIBTOOL CONFIG
15861
15862# Which release of libtool.m4 was used?
15863macro_version=$macro_version
15864macro_revision=$macro_revision
15865
15866# Whether or not to build shared libraries.
15867build_libtool_libs=$enable_shared
15868
15869# Whether or not to build static libraries.
15870build_old_libs=$enable_static
15871
15872# What type of objects to build.
15873pic_mode=$pic_mode
15874
15875# Whether or not to optimize for fast installation.
15876fast_install=$enable_fast_install
15877
15878# Shell to use when invoking shell scripts.
15879SHELL=$lt_SHELL
15880
15881# An echo program that protects backslashes.
15882ECHO=$lt_ECHO
15883
15884# The host system.
15885host_alias=$host_alias
15886host=$host
15887host_os=$host_os
15888
15889# The build system.
15890build_alias=$build_alias
15891build=$build
15892build_os=$build_os
15893
15894# A sed program that does not truncate output.
15895SED=$lt_SED
15896
15897# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15898Xsed="\$SED -e 1s/^X//"
15899
15900# A grep program that handles long lines.
15901GREP=$lt_GREP
15902
15903# An ERE matcher.
15904EGREP=$lt_EGREP
15905
15906# A literal string matcher.
15907FGREP=$lt_FGREP
15908
15909# A BSD- or MS-compatible name lister.
15910NM=$lt_NM
15911
15912# Whether we need soft or hard links.
15913LN_S=$lt_LN_S
15914
15915# What is the maximum length of a command?
15916max_cmd_len=$max_cmd_len
15917
15918# Object file suffix (normally "o").
15919objext=$ac_objext
15920
15921# Executable file suffix (normally "").
15922exeext=$exeext
15923
15924# whether the shell understands "unset".
15925lt_unset=$lt_unset
15926
15927# turn spaces into newlines.
15928SP2NL=$lt_lt_SP2NL
15929
15930# turn newlines into spaces.
15931NL2SP=$lt_lt_NL2SP
15932
15933# An object symbol dumper.
15934OBJDUMP=$lt_OBJDUMP
15935
15936# Method to check whether dependent libraries are shared objects.
15937deplibs_check_method=$lt_deplibs_check_method
15938
15939# Command to use when deplibs_check_method == "file_magic".
15940file_magic_cmd=$lt_file_magic_cmd
15941
15942# The archiver.
15943AR=$lt_AR
15944AR_FLAGS=$lt_AR_FLAGS
15945
15946# A symbol stripping program.
15947STRIP=$lt_STRIP
15948
15949# Commands used to install an old-style archive.
15950RANLIB=$lt_RANLIB
15951old_postinstall_cmds=$lt_old_postinstall_cmds
15952old_postuninstall_cmds=$lt_old_postuninstall_cmds
15953
15954# Whether to use a lock for old archive extraction.
15955lock_old_archive_extraction=$lock_old_archive_extraction
15956
15957# A C compiler.
15958LTCC=$lt_CC
15959
15960# LTCC compiler flags.
15961LTCFLAGS=$lt_CFLAGS
15962
15963# Take the output of nm and produce a listing of raw symbols and C names.
15964global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15965
15966# Transform the output of nm in a proper C declaration.
15967global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15968
15969# Transform the output of nm in a C name address pair.
15970global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15971
15972# Transform the output of nm in a C name address pair when lib prefix is needed.
15973global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15974
15975# The name of the directory that contains temporary libtool files.
15976objdir=$objdir
15977
15978# Used to examine libraries when file_magic_cmd begins with "file".
15979MAGIC_CMD=$MAGIC_CMD
15980
15981# Must we lock files when doing compilation?
15982need_locks=$lt_need_locks
15983
15984# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15985DSYMUTIL=$lt_DSYMUTIL
15986
15987# Tool to change global to local symbols on Mac OS X.
15988NMEDIT=$lt_NMEDIT
15989
15990# Tool to manipulate fat objects and archives on Mac OS X.
15991LIPO=$lt_LIPO
15992
15993# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15994OTOOL=$lt_OTOOL
15995
15996# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15997OTOOL64=$lt_OTOOL64
15998
15999# Old archive suffix (normally "a").
16000libext=$libext
16001
16002# Shared library suffix (normally ".so").
16003shrext_cmds=$lt_shrext_cmds
16004
16005# The commands to extract the exported symbol list from a shared archive.
16006extract_expsyms_cmds=$lt_extract_expsyms_cmds
16007
16008# Variables whose values should be saved in libtool wrapper scripts and
16009# restored at link time.
16010variables_saved_for_relink=$lt_variables_saved_for_relink
16011
16012# Do we need the "lib" prefix for modules?
16013need_lib_prefix=$need_lib_prefix
16014
16015# Do we need a version for libraries?
16016need_version=$need_version
16017
16018# Library versioning type.
16019version_type=$version_type
16020
16021# Shared library runtime path variable.
16022runpath_var=$runpath_var
16023
16024# Shared library path variable.
16025shlibpath_var=$shlibpath_var
16026
16027# Is shlibpath searched before the hard-coded library search path?
16028shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16029
16030# Format of library name prefix.
16031libname_spec=$lt_libname_spec
16032
16033# List of archive names.  First name is the real one, the rest are links.
16034# The last name is the one that the linker finds with -lNAME
16035library_names_spec=$lt_library_names_spec
16036
16037# The coded name of the library, if different from the real name.
16038soname_spec=$lt_soname_spec
16039
16040# Permission mode override for installation of shared libraries.
16041install_override_mode=$lt_install_override_mode
16042
16043# Command to use after installation of a shared archive.
16044postinstall_cmds=$lt_postinstall_cmds
16045
16046# Command to use after uninstallation of a shared archive.
16047postuninstall_cmds=$lt_postuninstall_cmds
16048
16049# Commands used to finish a libtool library installation in a directory.
16050finish_cmds=$lt_finish_cmds
16051
16052# As "finish_cmds", except a single script fragment to be evaled but
16053# not shown.
16054finish_eval=$lt_finish_eval
16055
16056# Whether we should hardcode library paths into libraries.
16057hardcode_into_libs=$hardcode_into_libs
16058
16059# Compile-time system search path for libraries.
16060sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16061
16062# Run-time system search path for libraries.
16063sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16064
16065# Whether dlopen is supported.
16066dlopen_support=$enable_dlopen
16067
16068# Whether dlopen of programs is supported.
16069dlopen_self=$enable_dlopen_self
16070
16071# Whether dlopen of statically linked programs is supported.
16072dlopen_self_static=$enable_dlopen_self_static
16073
16074# Commands to strip libraries.
16075old_striplib=$lt_old_striplib
16076striplib=$lt_striplib
16077
16078
16079# The linker used to build libraries.
16080LD=$lt_LD
16081
16082# How to create reloadable object files.
16083reload_flag=$lt_reload_flag
16084reload_cmds=$lt_reload_cmds
16085
16086# Commands used to build an old-style archive.
16087old_archive_cmds=$lt_old_archive_cmds
16088
16089# A language specific compiler.
16090CC=$lt_compiler
16091
16092# Is the compiler the GNU compiler?
16093with_gcc=$GCC
16094
16095# Compiler flag to turn off builtin functions.
16096no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16097
16098# How to pass a linker flag through the compiler.
16099wl=$lt_lt_prog_compiler_wl
16100
16101# Additional compiler flags for building library objects.
16102pic_flag=$lt_lt_prog_compiler_pic
16103
16104# Compiler flag to prevent dynamic linking.
16105link_static_flag=$lt_lt_prog_compiler_static
16106
16107# Does compiler simultaneously support -c and -o options?
16108compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16109
16110# Whether or not to add -lc for building shared libraries.
16111build_libtool_need_lc=$archive_cmds_need_lc
16112
16113# Whether or not to disallow shared libs when runtime libs are static.
16114allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16115
16116# Compiler flag to allow reflexive dlopens.
16117export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16118
16119# Compiler flag to generate shared objects directly from archives.
16120whole_archive_flag_spec=$lt_whole_archive_flag_spec
16121
16122# Whether the compiler copes with passing no objects directly.
16123compiler_needs_object=$lt_compiler_needs_object
16124
16125# Create an old-style archive from a shared archive.
16126old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16127
16128# Create a temporary old-style archive to link instead of a shared archive.
16129old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16130
16131# Commands used to build a shared archive.
16132archive_cmds=$lt_archive_cmds
16133archive_expsym_cmds=$lt_archive_expsym_cmds
16134
16135# Commands used to build a loadable module if different from building
16136# a shared archive.
16137module_cmds=$lt_module_cmds
16138module_expsym_cmds=$lt_module_expsym_cmds
16139
16140# Whether we are building with GNU ld or not.
16141with_gnu_ld=$lt_with_gnu_ld
16142
16143# Flag that allows shared libraries with undefined symbols to be built.
16144allow_undefined_flag=$lt_allow_undefined_flag
16145
16146# Flag that enforces no undefined symbols.
16147no_undefined_flag=$lt_no_undefined_flag
16148
16149# Flag to hardcode \$libdir into a binary during linking.
16150# This must work even if \$libdir does not exist
16151hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16152
16153# If ld is used when linking, flag to hardcode \$libdir into a binary
16154# during linking.  This must work even if \$libdir does not exist.
16155hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16156
16157# Whether we need a single "-rpath" flag with a separated argument.
16158hardcode_libdir_separator=$lt_hardcode_libdir_separator
16159
16160# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16161# DIR into the resulting binary.
16162hardcode_direct=$hardcode_direct
16163
16164# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16165# DIR into the resulting binary and the resulting library dependency is
16166# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16167# library is relocated.
16168hardcode_direct_absolute=$hardcode_direct_absolute
16169
16170# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16171# into the resulting binary.
16172hardcode_minus_L=$hardcode_minus_L
16173
16174# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16175# into the resulting binary.
16176hardcode_shlibpath_var=$hardcode_shlibpath_var
16177
16178# Set to "yes" if building a shared library automatically hardcodes DIR
16179# into the library and all subsequent libraries and executables linked
16180# against it.
16181hardcode_automatic=$hardcode_automatic
16182
16183# Set to yes if linker adds runtime paths of dependent libraries
16184# to runtime path list.
16185inherit_rpath=$inherit_rpath
16186
16187# Whether libtool must link a program against all its dependency libraries.
16188link_all_deplibs=$link_all_deplibs
16189
16190# Fix the shell variable \$srcfile for the compiler.
16191fix_srcfile_path=$lt_fix_srcfile_path
16192
16193# Set to "yes" if exported symbols are required.
16194always_export_symbols=$always_export_symbols
16195
16196# The commands to list exported symbols.
16197export_symbols_cmds=$lt_export_symbols_cmds
16198
16199# Symbols that should not be listed in the preloaded symbols.
16200exclude_expsyms=$lt_exclude_expsyms
16201
16202# Symbols that must always be exported.
16203include_expsyms=$lt_include_expsyms
16204
16205# Commands necessary for linking programs (against libraries) with templates.
16206prelink_cmds=$lt_prelink_cmds
16207
16208# Specify filename containing input files.
16209file_list_spec=$lt_file_list_spec
16210
16211# How to hardcode a shared library path into an executable.
16212hardcode_action=$hardcode_action
16213
16214# The directories searched by this compiler when creating a shared library.
16215compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16216
16217# Dependencies to place before and after the objects being linked to
16218# create a shared library.
16219predep_objects=$lt_predep_objects
16220postdep_objects=$lt_postdep_objects
16221predeps=$lt_predeps
16222postdeps=$lt_postdeps
16223
16224# The library search path used internally by the compiler when linking
16225# a shared library.
16226compiler_lib_search_path=$lt_compiler_lib_search_path
16227
16228# ### END LIBTOOL CONFIG
16229
16230_LT_EOF
16231
16232  case $host_os in
16233  aix3*)
16234    cat <<\_LT_EOF >> "$cfgfile"
16235# AIX sometimes has problems with the GCC collect2 program.  For some
16236# reason, if we set the COLLECT_NAMES environment variable, the problems
16237# vanish in a puff of smoke.
16238if test "X${COLLECT_NAMES+set}" != Xset; then
16239  COLLECT_NAMES=
16240  export COLLECT_NAMES
16241fi
16242_LT_EOF
16243    ;;
16244  esac
16245
16246
16247ltmain="$ac_aux_dir/ltmain.sh"
16248
16249
16250  # We use sed instead of cat because bash on DJGPP gets confused if
16251  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16252  # text mode, it properly converts lines to CR/LF.  This bash problem
16253  # is reportedly fixed, but why not run on old versions too?
16254  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16255    || (rm -f "$cfgfile"; exit 1)
16256
16257  case $xsi_shell in
16258  yes)
16259    cat << \_LT_EOF >> "$cfgfile"
16260
16261# func_dirname file append nondir_replacement
16262# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16263# otherwise set result to NONDIR_REPLACEMENT.
16264func_dirname ()
16265{
16266  case ${1} in
16267    */*) func_dirname_result="${1%/*}${2}" ;;
16268    *  ) func_dirname_result="${3}" ;;
16269  esac
16270}
16271
16272# func_basename file
16273func_basename ()
16274{
16275  func_basename_result="${1##*/}"
16276}
16277
16278# func_dirname_and_basename file append nondir_replacement
16279# perform func_basename and func_dirname in a single function
16280# call:
16281#   dirname:  Compute the dirname of FILE.  If nonempty,
16282#             add APPEND to the result, otherwise set result
16283#             to NONDIR_REPLACEMENT.
16284#             value returned in "$func_dirname_result"
16285#   basename: Compute filename of FILE.
16286#             value retuned in "$func_basename_result"
16287# Implementation must be kept synchronized with func_dirname
16288# and func_basename. For efficiency, we do not delegate to
16289# those functions but instead duplicate the functionality here.
16290func_dirname_and_basename ()
16291{
16292  case ${1} in
16293    */*) func_dirname_result="${1%/*}${2}" ;;
16294    *  ) func_dirname_result="${3}" ;;
16295  esac
16296  func_basename_result="${1##*/}"
16297}
16298
16299# func_stripname prefix suffix name
16300# strip PREFIX and SUFFIX off of NAME.
16301# PREFIX and SUFFIX must not contain globbing or regex special
16302# characters, hashes, percent signs, but SUFFIX may contain a leading
16303# dot (in which case that matches only a dot).
16304func_stripname ()
16305{
16306  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16307  # positional parameters, so assign one to ordinary parameter first.
16308  func_stripname_result=${3}
16309  func_stripname_result=${func_stripname_result#"${1}"}
16310  func_stripname_result=${func_stripname_result%"${2}"}
16311}
16312
16313# func_opt_split
16314func_opt_split ()
16315{
16316  func_opt_split_opt=${1%%=*}
16317  func_opt_split_arg=${1#*=}
16318}
16319
16320# func_lo2o object
16321func_lo2o ()
16322{
16323  case ${1} in
16324    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16325    *)    func_lo2o_result=${1} ;;
16326  esac
16327}
16328
16329# func_xform libobj-or-source
16330func_xform ()
16331{
16332  func_xform_result=${1%.*}.lo
16333}
16334
16335# func_arith arithmetic-term...
16336func_arith ()
16337{
16338  func_arith_result=$(( $* ))
16339}
16340
16341# func_len string
16342# STRING may not start with a hyphen.
16343func_len ()
16344{
16345  func_len_result=${#1}
16346}
16347
16348_LT_EOF
16349    ;;
16350  *) # Bourne compatible functions.
16351    cat << \_LT_EOF >> "$cfgfile"
16352
16353# func_dirname file append nondir_replacement
16354# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16355# otherwise set result to NONDIR_REPLACEMENT.
16356func_dirname ()
16357{
16358  # Extract subdirectory from the argument.
16359  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16360  if test "X$func_dirname_result" = "X${1}"; then
16361    func_dirname_result="${3}"
16362  else
16363    func_dirname_result="$func_dirname_result${2}"
16364  fi
16365}
16366
16367# func_basename file
16368func_basename ()
16369{
16370  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16371}
16372
16373
16374# func_stripname prefix suffix name
16375# strip PREFIX and SUFFIX off of NAME.
16376# PREFIX and SUFFIX must not contain globbing or regex special
16377# characters, hashes, percent signs, but SUFFIX may contain a leading
16378# dot (in which case that matches only a dot).
16379# func_strip_suffix prefix name
16380func_stripname ()
16381{
16382  case ${2} in
16383    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16384    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16385  esac
16386}
16387
16388# sed scripts:
16389my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16390my_sed_long_arg='1s/^-[^=]*=//'
16391
16392# func_opt_split
16393func_opt_split ()
16394{
16395  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16396  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16397}
16398
16399# func_lo2o object
16400func_lo2o ()
16401{
16402  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16403}
16404
16405# func_xform libobj-or-source
16406func_xform ()
16407{
16408  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16409}
16410
16411# func_arith arithmetic-term...
16412func_arith ()
16413{
16414  func_arith_result=`expr "$@"`
16415}
16416
16417# func_len string
16418# STRING may not start with a hyphen.
16419func_len ()
16420{
16421  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16422}
16423
16424_LT_EOF
16425esac
16426
16427case $lt_shell_append in
16428  yes)
16429    cat << \_LT_EOF >> "$cfgfile"
16430
16431# func_append var value
16432# Append VALUE to the end of shell variable VAR.
16433func_append ()
16434{
16435  eval "$1+=\$2"
16436}
16437_LT_EOF
16438    ;;
16439  *)
16440    cat << \_LT_EOF >> "$cfgfile"
16441
16442# func_append var value
16443# Append VALUE to the end of shell variable VAR.
16444func_append ()
16445{
16446  eval "$1=\$$1\$2"
16447}
16448
16449_LT_EOF
16450    ;;
16451  esac
16452
16453
16454  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16455    || (rm -f "$cfgfile"; exit 1)
16456
16457  mv -f "$cfgfile" "$ofile" ||
16458    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16459  chmod +x "$ofile"
16460
16461
16462    cat <<_LT_EOF >> "$ofile"
16463
16464# ### BEGIN LIBTOOL TAG CONFIG: CXX
16465
16466# The linker used to build libraries.
16467LD=$lt_LD_CXX
16468
16469# How to create reloadable object files.
16470reload_flag=$lt_reload_flag_CXX
16471reload_cmds=$lt_reload_cmds_CXX
16472
16473# Commands used to build an old-style archive.
16474old_archive_cmds=$lt_old_archive_cmds_CXX
16475
16476# A language specific compiler.
16477CC=$lt_compiler_CXX
16478
16479# Is the compiler the GNU compiler?
16480with_gcc=$GCC_CXX
16481
16482# Compiler flag to turn off builtin functions.
16483no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16484
16485# How to pass a linker flag through the compiler.
16486wl=$lt_lt_prog_compiler_wl_CXX
16487
16488# Additional compiler flags for building library objects.
16489pic_flag=$lt_lt_prog_compiler_pic_CXX
16490
16491# Compiler flag to prevent dynamic linking.
16492link_static_flag=$lt_lt_prog_compiler_static_CXX
16493
16494# Does compiler simultaneously support -c and -o options?
16495compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16496
16497# Whether or not to add -lc for building shared libraries.
16498build_libtool_need_lc=$archive_cmds_need_lc_CXX
16499
16500# Whether or not to disallow shared libs when runtime libs are static.
16501allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16502
16503# Compiler flag to allow reflexive dlopens.
16504export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16505
16506# Compiler flag to generate shared objects directly from archives.
16507whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16508
16509# Whether the compiler copes with passing no objects directly.
16510compiler_needs_object=$lt_compiler_needs_object_CXX
16511
16512# Create an old-style archive from a shared archive.
16513old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16514
16515# Create a temporary old-style archive to link instead of a shared archive.
16516old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16517
16518# Commands used to build a shared archive.
16519archive_cmds=$lt_archive_cmds_CXX
16520archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16521
16522# Commands used to build a loadable module if different from building
16523# a shared archive.
16524module_cmds=$lt_module_cmds_CXX
16525module_expsym_cmds=$lt_module_expsym_cmds_CXX
16526
16527# Whether we are building with GNU ld or not.
16528with_gnu_ld=$lt_with_gnu_ld_CXX
16529
16530# Flag that allows shared libraries with undefined symbols to be built.
16531allow_undefined_flag=$lt_allow_undefined_flag_CXX
16532
16533# Flag that enforces no undefined symbols.
16534no_undefined_flag=$lt_no_undefined_flag_CXX
16535
16536# Flag to hardcode \$libdir into a binary during linking.
16537# This must work even if \$libdir does not exist
16538hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16539
16540# If ld is used when linking, flag to hardcode \$libdir into a binary
16541# during linking.  This must work even if \$libdir does not exist.
16542hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16543
16544# Whether we need a single "-rpath" flag with a separated argument.
16545hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16546
16547# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16548# DIR into the resulting binary.
16549hardcode_direct=$hardcode_direct_CXX
16550
16551# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16552# DIR into the resulting binary and the resulting library dependency is
16553# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16554# library is relocated.
16555hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16556
16557# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16558# into the resulting binary.
16559hardcode_minus_L=$hardcode_minus_L_CXX
16560
16561# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16562# into the resulting binary.
16563hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16564
16565# Set to "yes" if building a shared library automatically hardcodes DIR
16566# into the library and all subsequent libraries and executables linked
16567# against it.
16568hardcode_automatic=$hardcode_automatic_CXX
16569
16570# Set to yes if linker adds runtime paths of dependent libraries
16571# to runtime path list.
16572inherit_rpath=$inherit_rpath_CXX
16573
16574# Whether libtool must link a program against all its dependency libraries.
16575link_all_deplibs=$link_all_deplibs_CXX
16576
16577# Fix the shell variable \$srcfile for the compiler.
16578fix_srcfile_path=$lt_fix_srcfile_path_CXX
16579
16580# Set to "yes" if exported symbols are required.
16581always_export_symbols=$always_export_symbols_CXX
16582
16583# The commands to list exported symbols.
16584export_symbols_cmds=$lt_export_symbols_cmds_CXX
16585
16586# Symbols that should not be listed in the preloaded symbols.
16587exclude_expsyms=$lt_exclude_expsyms_CXX
16588
16589# Symbols that must always be exported.
16590include_expsyms=$lt_include_expsyms_CXX
16591
16592# Commands necessary for linking programs (against libraries) with templates.
16593prelink_cmds=$lt_prelink_cmds_CXX
16594
16595# Specify filename containing input files.
16596file_list_spec=$lt_file_list_spec_CXX
16597
16598# How to hardcode a shared library path into an executable.
16599hardcode_action=$hardcode_action_CXX
16600
16601# The directories searched by this compiler when creating a shared library.
16602compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16603
16604# Dependencies to place before and after the objects being linked to
16605# create a shared library.
16606predep_objects=$lt_predep_objects_CXX
16607postdep_objects=$lt_postdep_objects_CXX
16608predeps=$lt_predeps_CXX
16609postdeps=$lt_postdeps_CXX
16610
16611# The library search path used internally by the compiler when linking
16612# a shared library.
16613compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16614
16615# ### END LIBTOOL TAG CONFIG: CXX
16616_LT_EOF
16617
16618 ;;
16619
16620  esac
16621done # for ac_tag
16622
16623
16624as_fn_exit 0
16625_ACEOF
16626ac_clean_files=$ac_clean_files_save
16627
16628test $ac_write_fail = 0 ||
16629  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16630
16631
16632# configure is writing to config.log, and then calls config.status.
16633# config.status does its own redirection, appending to config.log.
16634# Unfortunately, on DOS this fails, as config.log is still kept open
16635# by configure, so config.status won't be able to write to it; its
16636# output is simply discarded.  So we exec the FD to /dev/null,
16637# effectively closing config.log, so it can be properly (re)opened and
16638# appended to by config.status.  When coming back to configure, we
16639# need to make the FD available again.
16640if test "$no_create" != yes; then
16641  ac_cs_success=:
16642  ac_config_status_args=
16643  test "$silent" = yes &&
16644    ac_config_status_args="$ac_config_status_args --quiet"
16645  exec 5>/dev/null
16646  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16647  exec 5>>config.log
16648  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16649  # would make configure fail if this is the last instruction.
16650  $ac_cs_success || as_fn_exit $?
16651fi
16652if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16653  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16654$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16655fi
16656
16657