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
604get_gcc_base_ver
605toolexeclibdir
606toolexecdir
607CXXCPP
608CPP
609OTOOL64
610OTOOL
611LIPO
612NMEDIT
613DSYMUTIL
614RANLIB
615AR
616OBJDUMP
617LN_S
618NM
619ac_ct_DUMPBIN
620DUMPBIN
621LD
622FGREP
623EGREP
624GREP
625SED
626LIBTOOL
627accel_target
628accel_search_dir
629PLUGIN_HOST_FALSE
630PLUGIN_HOST_TRUE
631multi_basedir
632am__fastdepCXX_FALSE
633am__fastdepCXX_TRUE
634CXXDEPMODE
635ac_ct_CXX
636CXXFLAGS
637CXX
638am__fastdepCC_FALSE
639am__fastdepCC_TRUE
640CCDEPMODE
641am__nodep
642AMDEPBACKSLASH
643AMDEP_FALSE
644AMDEP_TRUE
645am__quote
646am__include
647DEPDIR
648OBJEXT
649EXEEXT
650ac_ct_CC
651CPPFLAGS
652LDFLAGS
653CFLAGS
654CC
655MAINT
656MAINTAINER_MODE_FALSE
657MAINTAINER_MODE_TRUE
658am__untar
659am__tar
660AMTAR
661am__leading_dot
662SET_MAKE
663AWK
664mkdir_p
665MKDIR_P
666INSTALL_STRIP_PROGRAM
667STRIP
668install_sh
669MAKEINFO
670AUTOHEADER
671AUTOMAKE
672AUTOCONF
673ACLOCAL
674VERSION
675PACKAGE
676CYGPATH_W
677am__isrc
678INSTALL_DATA
679INSTALL_SCRIPT
680INSTALL_PROGRAM
681target_os
682target_vendor
683target_cpu
684target
685host_os
686host_vendor
687host_cpu
688host
689build_os
690build_vendor
691build_cpu
692build
693target_alias
694host_alias
695build_alias
696LIBS
697ECHO_T
698ECHO_N
699ECHO_C
700DEFS
701mandir
702localedir
703libdir
704psdir
705pdfdir
706dvidir
707htmldir
708infodir
709docdir
710oldincludedir
711includedir
712localstatedir
713sharedstatedir
714sysconfdir
715datadir
716datarootdir
717libexecdir
718sbindir
719bindir
720program_transform_name
721prefix
722exec_prefix
723PACKAGE_URL
724PACKAGE_BUGREPORT
725PACKAGE_STRING
726PACKAGE_VERSION
727PACKAGE_TARNAME
728PACKAGE_NAME
729PATH_SEPARATOR
730SHELL'
731ac_subst_files=''
732ac_user_opts='
733enable_option_checking
734enable_maintainer_mode
735enable_dependency_tracking
736enable_multilib
737enable_version_specific_runtime_libs
738enable_shared
739enable_static
740with_pic
741enable_fast_install
742with_gnu_ld
743enable_libtool_lock
744with_gcc_major_version_only
745'
746      ac_precious_vars='build_alias
747host_alias
748target_alias
749CC
750CFLAGS
751LDFLAGS
752LIBS
753CPPFLAGS
754CXX
755CXXFLAGS
756CCC
757CPP
758CXXCPP'
759
760
761# Initialize some variables set by options.
762ac_init_help=
763ac_init_version=false
764ac_unrecognized_opts=
765ac_unrecognized_sep=
766# The variables have the same names as the options, with
767# dashes changed to underlines.
768cache_file=/dev/null
769exec_prefix=NONE
770no_create=
771no_recursion=
772prefix=NONE
773program_prefix=NONE
774program_suffix=NONE
775program_transform_name=s,x,x,
776silent=
777site=
778srcdir=
779verbose=
780x_includes=NONE
781x_libraries=NONE
782
783# Installation directory options.
784# These are left unexpanded so users can "make install exec_prefix=/foo"
785# and all the variables that are supposed to be based on exec_prefix
786# by default will actually change.
787# Use braces instead of parens because sh, perl, etc. also accept them.
788# (The list follows the same order as the GNU Coding Standards.)
789bindir='${exec_prefix}/bin'
790sbindir='${exec_prefix}/sbin'
791libexecdir='${exec_prefix}/libexec'
792datarootdir='${prefix}/share'
793datadir='${datarootdir}'
794sysconfdir='${prefix}/etc'
795sharedstatedir='${prefix}/com'
796localstatedir='${prefix}/var'
797includedir='${prefix}/include'
798oldincludedir='/usr/include'
799docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
800infodir='${datarootdir}/info'
801htmldir='${docdir}'
802dvidir='${docdir}'
803pdfdir='${docdir}'
804psdir='${docdir}'
805libdir='${exec_prefix}/lib'
806localedir='${datarootdir}/locale'
807mandir='${datarootdir}/man'
808
809ac_prev=
810ac_dashdash=
811for ac_option
812do
813  # If the previous option needs an argument, assign it.
814  if test -n "$ac_prev"; then
815    eval $ac_prev=\$ac_option
816    ac_prev=
817    continue
818  fi
819
820  case $ac_option in
821  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822  *)	ac_optarg=yes ;;
823  esac
824
825  # Accept the important Cygnus configure options, so we can diagnose typos.
826
827  case $ac_dashdash$ac_option in
828  --)
829    ac_dashdash=yes ;;
830
831  -bindir | --bindir | --bindi | --bind | --bin | --bi)
832    ac_prev=bindir ;;
833  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834    bindir=$ac_optarg ;;
835
836  -build | --build | --buil | --bui | --bu)
837    ac_prev=build_alias ;;
838  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839    build_alias=$ac_optarg ;;
840
841  -cache-file | --cache-file | --cache-fil | --cache-fi \
842  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843    ac_prev=cache_file ;;
844  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846    cache_file=$ac_optarg ;;
847
848  --config-cache | -C)
849    cache_file=config.cache ;;
850
851  -datadir | --datadir | --datadi | --datad)
852    ac_prev=datadir ;;
853  -datadir=* | --datadir=* | --datadi=* | --datad=*)
854    datadir=$ac_optarg ;;
855
856  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857  | --dataroo | --dataro | --datar)
858    ac_prev=datarootdir ;;
859  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861    datarootdir=$ac_optarg ;;
862
863  -disable-* | --disable-*)
864    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865    # Reject names that are not valid shell variable names.
866    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867      as_fn_error "invalid feature name: $ac_useropt"
868    ac_useropt_orig=$ac_useropt
869    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870    case $ac_user_opts in
871      *"
872"enable_$ac_useropt"
873"*) ;;
874      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
875	 ac_unrecognized_sep=', ';;
876    esac
877    eval enable_$ac_useropt=no ;;
878
879  -docdir | --docdir | --docdi | --doc | --do)
880    ac_prev=docdir ;;
881  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
882    docdir=$ac_optarg ;;
883
884  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
885    ac_prev=dvidir ;;
886  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
887    dvidir=$ac_optarg ;;
888
889  -enable-* | --enable-*)
890    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
891    # Reject names that are not valid shell variable names.
892    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893      as_fn_error "invalid feature name: $ac_useropt"
894    ac_useropt_orig=$ac_useropt
895    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896    case $ac_user_opts in
897      *"
898"enable_$ac_useropt"
899"*) ;;
900      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
901	 ac_unrecognized_sep=', ';;
902    esac
903    eval enable_$ac_useropt=\$ac_optarg ;;
904
905  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
906  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
907  | --exec | --exe | --ex)
908    ac_prev=exec_prefix ;;
909  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
910  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
911  | --exec=* | --exe=* | --ex=*)
912    exec_prefix=$ac_optarg ;;
913
914  -gas | --gas | --ga | --g)
915    # Obsolete; use --with-gas.
916    with_gas=yes ;;
917
918  -help | --help | --hel | --he | -h)
919    ac_init_help=long ;;
920  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
921    ac_init_help=recursive ;;
922  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
923    ac_init_help=short ;;
924
925  -host | --host | --hos | --ho)
926    ac_prev=host_alias ;;
927  -host=* | --host=* | --hos=* | --ho=*)
928    host_alias=$ac_optarg ;;
929
930  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
931    ac_prev=htmldir ;;
932  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
933  | --ht=*)
934    htmldir=$ac_optarg ;;
935
936  -includedir | --includedir | --includedi | --included | --include \
937  | --includ | --inclu | --incl | --inc)
938    ac_prev=includedir ;;
939  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
940  | --includ=* | --inclu=* | --incl=* | --inc=*)
941    includedir=$ac_optarg ;;
942
943  -infodir | --infodir | --infodi | --infod | --info | --inf)
944    ac_prev=infodir ;;
945  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
946    infodir=$ac_optarg ;;
947
948  -libdir | --libdir | --libdi | --libd)
949    ac_prev=libdir ;;
950  -libdir=* | --libdir=* | --libdi=* | --libd=*)
951    libdir=$ac_optarg ;;
952
953  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
954  | --libexe | --libex | --libe)
955    ac_prev=libexecdir ;;
956  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
957  | --libexe=* | --libex=* | --libe=*)
958    libexecdir=$ac_optarg ;;
959
960  -localedir | --localedir | --localedi | --localed | --locale)
961    ac_prev=localedir ;;
962  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
963    localedir=$ac_optarg ;;
964
965  -localstatedir | --localstatedir | --localstatedi | --localstated \
966  | --localstate | --localstat | --localsta | --localst | --locals)
967    ac_prev=localstatedir ;;
968  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
969  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
970    localstatedir=$ac_optarg ;;
971
972  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
973    ac_prev=mandir ;;
974  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975    mandir=$ac_optarg ;;
976
977  -nfp | --nfp | --nf)
978    # Obsolete; use --without-fp.
979    with_fp=no ;;
980
981  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982  | --no-cr | --no-c | -n)
983    no_create=yes ;;
984
985  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987    no_recursion=yes ;;
988
989  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
990  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
991  | --oldin | --oldi | --old | --ol | --o)
992    ac_prev=oldincludedir ;;
993  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
994  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
995  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
996    oldincludedir=$ac_optarg ;;
997
998  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
999    ac_prev=prefix ;;
1000  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001    prefix=$ac_optarg ;;
1002
1003  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1004  | --program-pre | --program-pr | --program-p)
1005    ac_prev=program_prefix ;;
1006  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1007  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1008    program_prefix=$ac_optarg ;;
1009
1010  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1011  | --program-suf | --program-su | --program-s)
1012    ac_prev=program_suffix ;;
1013  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1014  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1015    program_suffix=$ac_optarg ;;
1016
1017  -program-transform-name | --program-transform-name \
1018  | --program-transform-nam | --program-transform-na \
1019  | --program-transform-n | --program-transform- \
1020  | --program-transform | --program-transfor \
1021  | --program-transfo | --program-transf \
1022  | --program-trans | --program-tran \
1023  | --progr-tra | --program-tr | --program-t)
1024    ac_prev=program_transform_name ;;
1025  -program-transform-name=* | --program-transform-name=* \
1026  | --program-transform-nam=* | --program-transform-na=* \
1027  | --program-transform-n=* | --program-transform-=* \
1028  | --program-transform=* | --program-transfor=* \
1029  | --program-transfo=* | --program-transf=* \
1030  | --program-trans=* | --program-tran=* \
1031  | --progr-tra=* | --program-tr=* | --program-t=*)
1032    program_transform_name=$ac_optarg ;;
1033
1034  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1035    ac_prev=pdfdir ;;
1036  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1037    pdfdir=$ac_optarg ;;
1038
1039  -psdir | --psdir | --psdi | --psd | --ps)
1040    ac_prev=psdir ;;
1041  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1042    psdir=$ac_optarg ;;
1043
1044  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045  | -silent | --silent | --silen | --sile | --sil)
1046    silent=yes ;;
1047
1048  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1049    ac_prev=sbindir ;;
1050  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1051  | --sbi=* | --sb=*)
1052    sbindir=$ac_optarg ;;
1053
1054  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1055  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1056  | --sharedst | --shareds | --shared | --share | --shar \
1057  | --sha | --sh)
1058    ac_prev=sharedstatedir ;;
1059  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1060  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1061  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1062  | --sha=* | --sh=*)
1063    sharedstatedir=$ac_optarg ;;
1064
1065  -site | --site | --sit)
1066    ac_prev=site ;;
1067  -site=* | --site=* | --sit=*)
1068    site=$ac_optarg ;;
1069
1070  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1071    ac_prev=srcdir ;;
1072  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1073    srcdir=$ac_optarg ;;
1074
1075  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1076  | --syscon | --sysco | --sysc | --sys | --sy)
1077    ac_prev=sysconfdir ;;
1078  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1079  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1080    sysconfdir=$ac_optarg ;;
1081
1082  -target | --target | --targe | --targ | --tar | --ta | --t)
1083    ac_prev=target_alias ;;
1084  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1085    target_alias=$ac_optarg ;;
1086
1087  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1088    verbose=yes ;;
1089
1090  -version | --version | --versio | --versi | --vers | -V)
1091    ac_init_version=: ;;
1092
1093  -with-* | --with-*)
1094    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095    # Reject names that are not valid shell variable names.
1096    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097      as_fn_error "invalid package name: $ac_useropt"
1098    ac_useropt_orig=$ac_useropt
1099    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100    case $ac_user_opts in
1101      *"
1102"with_$ac_useropt"
1103"*) ;;
1104      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1105	 ac_unrecognized_sep=', ';;
1106    esac
1107    eval with_$ac_useropt=\$ac_optarg ;;
1108
1109  -without-* | --without-*)
1110    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111    # Reject names that are not valid shell variable names.
1112    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113      as_fn_error "invalid package name: $ac_useropt"
1114    ac_useropt_orig=$ac_useropt
1115    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116    case $ac_user_opts in
1117      *"
1118"with_$ac_useropt"
1119"*) ;;
1120      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1121	 ac_unrecognized_sep=', ';;
1122    esac
1123    eval with_$ac_useropt=no ;;
1124
1125  --x)
1126    # Obsolete; use --with-x.
1127    with_x=yes ;;
1128
1129  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130  | --x-incl | --x-inc | --x-in | --x-i)
1131    ac_prev=x_includes ;;
1132  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134    x_includes=$ac_optarg ;;
1135
1136  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138    ac_prev=x_libraries ;;
1139  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141    x_libraries=$ac_optarg ;;
1142
1143  -*) as_fn_error "unrecognized option: \`$ac_option'
1144Try \`$0 --help' for more information."
1145    ;;
1146
1147  *=*)
1148    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149    # Reject names that are not valid shell variable names.
1150    case $ac_envvar in #(
1151      '' | [0-9]* | *[!_$as_cr_alnum]* )
1152      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1153    esac
1154    eval $ac_envvar=\$ac_optarg
1155    export $ac_envvar ;;
1156
1157  *)
1158    # FIXME: should be removed in autoconf 3.0.
1159    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1163    ;;
1164
1165  esac
1166done
1167
1168if test -n "$ac_prev"; then
1169  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170  as_fn_error "missing argument to $ac_option"
1171fi
1172
1173if test -n "$ac_unrecognized_opts"; then
1174  case $enable_option_checking in
1175    no) ;;
1176    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1177    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1178  esac
1179fi
1180
1181# Check all directory arguments for consistency.
1182for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183		datadir sysconfdir sharedstatedir localstatedir includedir \
1184		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185		libdir localedir mandir
1186do
1187  eval ac_val=\$$ac_var
1188  # Remove trailing slashes.
1189  case $ac_val in
1190    */ )
1191      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192      eval $ac_var=\$ac_val;;
1193  esac
1194  # Be sure to have absolute directory names.
1195  case $ac_val in
1196    [\\/$]* | ?:[\\/]* )  continue;;
1197    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198  esac
1199  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1200done
1201
1202# There might be people who depend on the old broken behavior: `$host'
1203# used to hold the argument of --host etc.
1204# FIXME: To remove some day.
1205build=$build_alias
1206host=$host_alias
1207target=$target_alias
1208
1209# FIXME: To remove some day.
1210if test "x$host_alias" != x; then
1211  if test "x$build_alias" = x; then
1212    cross_compiling=maybe
1213    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214    If a cross compiler is detected then cross compile mode will be used." >&2
1215  elif test "x$build_alias" != "x$host_alias"; then
1216    cross_compiling=yes
1217  fi
1218fi
1219
1220ac_tool_prefix=
1221test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222
1223test "$silent" = yes && exec 6>/dev/null
1224
1225
1226ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227ac_ls_di=`ls -di .` &&
1228ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229  as_fn_error "working directory cannot be determined"
1230test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231  as_fn_error "pwd does not report name of working directory"
1232
1233
1234# Find the source files, if location was not specified.
1235if test -z "$srcdir"; then
1236  ac_srcdir_defaulted=yes
1237  # Try the directory containing this script, then the parent directory.
1238  ac_confdir=`$as_dirname -- "$as_myself" ||
1239$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1240	 X"$as_myself" : 'X\(//\)[^/]' \| \
1241	 X"$as_myself" : 'X\(//\)$' \| \
1242	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1243$as_echo X"$as_myself" |
1244    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1245	    s//\1/
1246	    q
1247	  }
1248	  /^X\(\/\/\)[^/].*/{
1249	    s//\1/
1250	    q
1251	  }
1252	  /^X\(\/\/\)$/{
1253	    s//\1/
1254	    q
1255	  }
1256	  /^X\(\/\).*/{
1257	    s//\1/
1258	    q
1259	  }
1260	  s/.*/./; q'`
1261  srcdir=$ac_confdir
1262  if test ! -r "$srcdir/$ac_unique_file"; then
1263    srcdir=..
1264  fi
1265else
1266  ac_srcdir_defaulted=no
1267fi
1268if test ! -r "$srcdir/$ac_unique_file"; then
1269  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1270  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1271fi
1272ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1273ac_abs_confdir=`(
1274	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1275	pwd)`
1276# When building in place, set srcdir=.
1277if test "$ac_abs_confdir" = "$ac_pwd"; then
1278  srcdir=.
1279fi
1280# Remove unnecessary trailing slashes from srcdir.
1281# Double slashes in file names in object file debugging info
1282# mess up M-x gdb in Emacs.
1283case $srcdir in
1284*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1285esac
1286for ac_var in $ac_precious_vars; do
1287  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288  eval ac_env_${ac_var}_value=\$${ac_var}
1289  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1291done
1292
1293#
1294# Report the --help message.
1295#
1296if test "$ac_init_help" = "long"; then
1297  # Omit some internal or obsolete options to make the list less imposing.
1298  # This message is too long to be a string in the A/UX 3.1 sh.
1299  cat <<_ACEOF
1300\`configure' configures Intel MIC Offload Plugin 1.0 to adapt to many kinds of systems.
1301
1302Usage: $0 [OPTION]... [VAR=VALUE]...
1303
1304To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305VAR=VALUE.  See below for descriptions of some of the useful variables.
1306
1307Defaults for the options are specified in brackets.
1308
1309Configuration:
1310  -h, --help              display this help and exit
1311      --help=short        display options specific to this package
1312      --help=recursive    display the short help of all the included packages
1313  -V, --version           display version information and exit
1314  -q, --quiet, --silent   do not print \`checking...' messages
1315      --cache-file=FILE   cache test results in FILE [disabled]
1316  -C, --config-cache      alias for \`--cache-file=config.cache'
1317  -n, --no-create         do not create output files
1318      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1319
1320Installation directories:
1321  --prefix=PREFIX         install architecture-independent files in PREFIX
1322                          [$ac_default_prefix]
1323  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1324                          [PREFIX]
1325
1326By default, \`make install' will install all the files in
1327\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1328an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329for instance \`--prefix=\$HOME'.
1330
1331For better control, use the options below.
1332
1333Fine tuning of the installation directories:
1334  --bindir=DIR            user executables [EPREFIX/bin]
1335  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1336  --libexecdir=DIR        program executables [EPREFIX/libexec]
1337  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1338  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1339  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1340  --libdir=DIR            object code libraries [EPREFIX/lib]
1341  --includedir=DIR        C header files [PREFIX/include]
1342  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1343  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1344  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1345  --infodir=DIR           info documentation [DATAROOTDIR/info]
1346  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1347  --mandir=DIR            man documentation [DATAROOTDIR/man]
1348  --docdir=DIR            documentation root
1349                          [DATAROOTDIR/doc/libgomp-plugin-intelmic]
1350  --htmldir=DIR           html documentation [DOCDIR]
1351  --dvidir=DIR            dvi documentation [DOCDIR]
1352  --pdfdir=DIR            pdf documentation [DOCDIR]
1353  --psdir=DIR             ps documentation [DOCDIR]
1354_ACEOF
1355
1356  cat <<\_ACEOF
1357
1358Program names:
1359  --program-prefix=PREFIX            prepend PREFIX to installed program names
1360  --program-suffix=SUFFIX            append SUFFIX to installed program names
1361  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1362
1363System types:
1364  --build=BUILD     configure for building on BUILD [guessed]
1365  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1366  --target=TARGET   configure for building compilers for TARGET [HOST]
1367_ACEOF
1368fi
1369
1370if test -n "$ac_init_help"; then
1371  case $ac_init_help in
1372     short | recursive ) echo "Configuration of Intel MIC Offload Plugin 1.0:";;
1373   esac
1374  cat <<\_ACEOF
1375
1376Optional Features:
1377  --disable-option-checking  ignore unrecognized --enable/--with options
1378  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1379  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1380  --enable-maintainer-mode  enable make rules and dependencies not useful
1381			  (and sometimes confusing) to the casual installer
1382  --disable-dependency-tracking  speeds up one-time build
1383  --enable-dependency-tracking   do not reject slow dependency extractors
1384  --enable-multilib       build many library versions (default)
1385  --enable-version-specific-runtime-libs
1386                          Specify that runtime libraries should be installed
1387                          in a compiler-specific directory
1388  --enable-shared[=PKGS]  build shared libraries [default=yes]
1389  --enable-static[=PKGS]  build static libraries [default=yes]
1390  --enable-fast-install[=PKGS]
1391                          optimize for fast installation [default=yes]
1392  --disable-libtool-lock  avoid locking (might break parallel builds)
1393
1394Optional Packages:
1395  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1396  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1397  --with-pic              try to use only PIC/non-PIC objects [default=use
1398                          both]
1399  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1400  --with-gcc-major-version-only
1401                          use only GCC major number in filesystem paths
1402
1403Some influential environment variables:
1404  CC          C compiler command
1405  CFLAGS      C compiler flags
1406  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1407              nonstandard directory <lib dir>
1408  LIBS        libraries to pass to the linker, e.g. -l<library>
1409  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410              you have headers in a nonstandard directory <include dir>
1411  CXX         C++ compiler command
1412  CXXFLAGS    C++ compiler flags
1413  CPP         C preprocessor
1414  CXXCPP      C++ preprocessor
1415
1416Use these variables to override the choices made by `configure' or to help
1417it to find libraries and programs with nonstandard names/locations.
1418
1419Report bugs to the package provider.
1420_ACEOF
1421ac_status=$?
1422fi
1423
1424if test "$ac_init_help" = "recursive"; then
1425  # If there are subdirs, report their specific --help.
1426  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1427    test -d "$ac_dir" ||
1428      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1429      continue
1430    ac_builddir=.
1431
1432case "$ac_dir" in
1433.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434*)
1435  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1436  # A ".." for each directory in $ac_dir_suffix.
1437  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1438  case $ac_top_builddir_sub in
1439  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441  esac ;;
1442esac
1443ac_abs_top_builddir=$ac_pwd
1444ac_abs_builddir=$ac_pwd$ac_dir_suffix
1445# for backward compatibility:
1446ac_top_builddir=$ac_top_build_prefix
1447
1448case $srcdir in
1449  .)  # We are building in place.
1450    ac_srcdir=.
1451    ac_top_srcdir=$ac_top_builddir_sub
1452    ac_abs_top_srcdir=$ac_pwd ;;
1453  [\\/]* | ?:[\\/]* )  # Absolute name.
1454    ac_srcdir=$srcdir$ac_dir_suffix;
1455    ac_top_srcdir=$srcdir
1456    ac_abs_top_srcdir=$srcdir ;;
1457  *) # Relative name.
1458    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1459    ac_top_srcdir=$ac_top_build_prefix$srcdir
1460    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1461esac
1462ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1463
1464    cd "$ac_dir" || { ac_status=$?; continue; }
1465    # Check for guested configure.
1466    if test -f "$ac_srcdir/configure.gnu"; then
1467      echo &&
1468      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1469    elif test -f "$ac_srcdir/configure"; then
1470      echo &&
1471      $SHELL "$ac_srcdir/configure" --help=recursive
1472    else
1473      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1474    fi || ac_status=$?
1475    cd "$ac_pwd" || { ac_status=$?; break; }
1476  done
1477fi
1478
1479test -n "$ac_init_help" && exit $ac_status
1480if $ac_init_version; then
1481  cat <<\_ACEOF
1482Intel MIC Offload Plugin configure 1.0
1483generated by GNU Autoconf 2.64
1484
1485Copyright (C) 2009 Free Software Foundation, Inc.
1486This configure script is free software; the Free Software Foundation
1487gives unlimited permission to copy, distribute and modify it.
1488_ACEOF
1489  exit
1490fi
1491
1492## ------------------------ ##
1493## Autoconf initialization. ##
1494## ------------------------ ##
1495
1496# ac_fn_c_try_compile LINENO
1497# --------------------------
1498# Try to compile conftest.$ac_ext, and return whether this succeeded.
1499ac_fn_c_try_compile ()
1500{
1501  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502  rm -f conftest.$ac_objext
1503  if { { ac_try="$ac_compile"
1504case "(($ac_try" in
1505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1506  *) ac_try_echo=$ac_try;;
1507esac
1508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1509$as_echo "$ac_try_echo"; } >&5
1510  (eval "$ac_compile") 2>conftest.err
1511  ac_status=$?
1512  if test -s conftest.err; then
1513    grep -v '^ *+' conftest.err >conftest.er1
1514    cat conftest.er1 >&5
1515    mv -f conftest.er1 conftest.err
1516  fi
1517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518  test $ac_status = 0; } && {
1519	 test -z "$ac_c_werror_flag" ||
1520	 test ! -s conftest.err
1521       } && test -s conftest.$ac_objext; then :
1522  ac_retval=0
1523else
1524  $as_echo "$as_me: failed program was:" >&5
1525sed 's/^/| /' conftest.$ac_ext >&5
1526
1527	ac_retval=1
1528fi
1529  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1530  return $ac_retval
1531
1532} # ac_fn_c_try_compile
1533
1534# ac_fn_cxx_try_compile LINENO
1535# ----------------------------
1536# Try to compile conftest.$ac_ext, and return whether this succeeded.
1537ac_fn_cxx_try_compile ()
1538{
1539  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540  rm -f conftest.$ac_objext
1541  if { { ac_try="$ac_compile"
1542case "(($ac_try" in
1543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544  *) ac_try_echo=$ac_try;;
1545esac
1546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547$as_echo "$ac_try_echo"; } >&5
1548  (eval "$ac_compile") 2>conftest.err
1549  ac_status=$?
1550  if test -s conftest.err; then
1551    grep -v '^ *+' conftest.err >conftest.er1
1552    cat conftest.er1 >&5
1553    mv -f conftest.er1 conftest.err
1554  fi
1555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556  test $ac_status = 0; } && {
1557	 test -z "$ac_cxx_werror_flag" ||
1558	 test ! -s conftest.err
1559       } && test -s conftest.$ac_objext; then :
1560  ac_retval=0
1561else
1562  $as_echo "$as_me: failed program was:" >&5
1563sed 's/^/| /' conftest.$ac_ext >&5
1564
1565	ac_retval=1
1566fi
1567  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1568  return $ac_retval
1569
1570} # ac_fn_cxx_try_compile
1571
1572# ac_fn_c_try_link LINENO
1573# -----------------------
1574# Try to link conftest.$ac_ext, and return whether this succeeded.
1575ac_fn_c_try_link ()
1576{
1577  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578  rm -f conftest.$ac_objext conftest$ac_exeext
1579  if { { ac_try="$ac_link"
1580case "(($ac_try" in
1581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582  *) ac_try_echo=$ac_try;;
1583esac
1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585$as_echo "$ac_try_echo"; } >&5
1586  (eval "$ac_link") 2>conftest.err
1587  ac_status=$?
1588  if test -s conftest.err; then
1589    grep -v '^ *+' conftest.err >conftest.er1
1590    cat conftest.er1 >&5
1591    mv -f conftest.er1 conftest.err
1592  fi
1593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594  test $ac_status = 0; } && {
1595	 test -z "$ac_c_werror_flag" ||
1596	 test ! -s conftest.err
1597       } && test -s conftest$ac_exeext && {
1598	 test "$cross_compiling" = yes ||
1599	 $as_test_x conftest$ac_exeext
1600       }; then :
1601  ac_retval=0
1602else
1603  $as_echo "$as_me: failed program was:" >&5
1604sed 's/^/| /' conftest.$ac_ext >&5
1605
1606	ac_retval=1
1607fi
1608  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1609  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1610  # interfere with the next link command; also delete a directory that is
1611  # left behind by Apple's compiler.  We do this before executing the actions.
1612  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1613  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614  return $ac_retval
1615
1616} # ac_fn_c_try_link
1617
1618# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1619# -------------------------------------------------------
1620# Tests whether HEADER exists and can be compiled using the include files in
1621# INCLUDES, setting the cache variable VAR accordingly.
1622ac_fn_c_check_header_compile ()
1623{
1624  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626$as_echo_n "checking for $2... " >&6; }
1627if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1628  $as_echo_n "(cached) " >&6
1629else
1630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631/* end confdefs.h.  */
1632$4
1633#include <$2>
1634_ACEOF
1635if ac_fn_c_try_compile "$LINENO"; then :
1636  eval "$3=yes"
1637else
1638  eval "$3=no"
1639fi
1640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641fi
1642eval ac_res=\$$3
1643	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; }
1645  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646
1647} # ac_fn_c_check_header_compile
1648
1649# ac_fn_c_try_cpp LINENO
1650# ----------------------
1651# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_cpp ()
1653{
1654  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655  if { { ac_try="$ac_cpp conftest.$ac_ext"
1656case "(($ac_try" in
1657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658  *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663  ac_status=$?
1664  if test -s conftest.err; then
1665    grep -v '^ *+' conftest.err >conftest.er1
1666    cat conftest.er1 >&5
1667    mv -f conftest.er1 conftest.err
1668  fi
1669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670  test $ac_status = 0; } >/dev/null && {
1671	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672	 test ! -s conftest.err
1673       }; then :
1674  ac_retval=0
1675else
1676  $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679    ac_retval=1
1680fi
1681  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682  return $ac_retval
1683
1684} # ac_fn_c_try_cpp
1685
1686# ac_fn_c_try_run LINENO
1687# ----------------------
1688# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689# that executables *can* be run.
1690ac_fn_c_try_run ()
1691{
1692  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693  if { { ac_try="$ac_link"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_link") 2>&5
1701  ac_status=$?
1702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704  { { case "(($ac_try" in
1705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706  *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710  (eval "$ac_try") 2>&5
1711  ac_status=$?
1712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713  test $ac_status = 0; }; }; then :
1714  ac_retval=0
1715else
1716  $as_echo "$as_me: program exited with status $ac_status" >&5
1717       $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720       ac_retval=$ac_status
1721fi
1722  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724  return $ac_retval
1725
1726} # ac_fn_c_try_run
1727
1728# ac_fn_c_check_func LINENO FUNC VAR
1729# ----------------------------------
1730# Tests whether FUNC exists, setting the cache variable VAR accordingly
1731ac_fn_c_check_func ()
1732{
1733  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735$as_echo_n "checking for $2... " >&6; }
1736if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1737  $as_echo_n "(cached) " >&6
1738else
1739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740/* end confdefs.h.  */
1741/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1742   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1743#define $2 innocuous_$2
1744
1745/* System header to define __stub macros and hopefully few prototypes,
1746    which can conflict with char $2 (); below.
1747    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1748    <limits.h> exists even on freestanding compilers.  */
1749
1750#ifdef __STDC__
1751# include <limits.h>
1752#else
1753# include <assert.h>
1754#endif
1755
1756#undef $2
1757
1758/* Override any GCC internal prototype to avoid an error.
1759   Use char because int might match the return type of a GCC
1760   builtin and then its argument prototype would still apply.  */
1761#ifdef __cplusplus
1762extern "C"
1763#endif
1764char $2 ();
1765/* The GNU C library defines this for functions which it implements
1766    to always fail with ENOSYS.  Some functions are actually named
1767    something starting with __ and the normal name is an alias.  */
1768#if defined __stub_$2 || defined __stub___$2
1769choke me
1770#endif
1771
1772int
1773main ()
1774{
1775return $2 ();
1776  ;
1777  return 0;
1778}
1779_ACEOF
1780if ac_fn_c_try_link "$LINENO"; then :
1781  eval "$3=yes"
1782else
1783  eval "$3=no"
1784fi
1785rm -f core conftest.err conftest.$ac_objext \
1786    conftest$ac_exeext conftest.$ac_ext
1787fi
1788eval ac_res=\$$3
1789	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790$as_echo "$ac_res" >&6; }
1791  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792
1793} # ac_fn_c_check_func
1794
1795# ac_fn_cxx_try_cpp LINENO
1796# ------------------------
1797# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1798ac_fn_cxx_try_cpp ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  if { { ac_try="$ac_cpp conftest.$ac_ext"
1802case "(($ac_try" in
1803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804  *) ac_try_echo=$ac_try;;
1805esac
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807$as_echo "$ac_try_echo"; } >&5
1808  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1809  ac_status=$?
1810  if test -s conftest.err; then
1811    grep -v '^ *+' conftest.err >conftest.er1
1812    cat conftest.er1 >&5
1813    mv -f conftest.er1 conftest.err
1814  fi
1815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816  test $ac_status = 0; } >/dev/null && {
1817	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1818	 test ! -s conftest.err
1819       }; then :
1820  ac_retval=0
1821else
1822  $as_echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825    ac_retval=1
1826fi
1827  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828  return $ac_retval
1829
1830} # ac_fn_cxx_try_cpp
1831
1832# ac_fn_cxx_try_link LINENO
1833# -------------------------
1834# Try to link conftest.$ac_ext, and return whether this succeeded.
1835ac_fn_cxx_try_link ()
1836{
1837  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838  rm -f conftest.$ac_objext conftest$ac_exeext
1839  if { { ac_try="$ac_link"
1840case "(($ac_try" in
1841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842  *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846  (eval "$ac_link") 2>conftest.err
1847  ac_status=$?
1848  if test -s conftest.err; then
1849    grep -v '^ *+' conftest.err >conftest.er1
1850    cat conftest.er1 >&5
1851    mv -f conftest.er1 conftest.err
1852  fi
1853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854  test $ac_status = 0; } && {
1855	 test -z "$ac_cxx_werror_flag" ||
1856	 test ! -s conftest.err
1857       } && test -s conftest$ac_exeext && {
1858	 test "$cross_compiling" = yes ||
1859	 $as_test_x conftest$ac_exeext
1860       }; then :
1861  ac_retval=0
1862else
1863  $as_echo "$as_me: failed program was:" >&5
1864sed 's/^/| /' conftest.$ac_ext >&5
1865
1866	ac_retval=1
1867fi
1868  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870  # interfere with the next link command; also delete a directory that is
1871  # left behind by Apple's compiler.  We do this before executing the actions.
1872  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874  return $ac_retval
1875
1876} # ac_fn_cxx_try_link
1877cat >config.log <<_ACEOF
1878This file contains any messages produced by compilers while
1879running configure, to aid debugging if configure makes a mistake.
1880
1881It was created by Intel MIC Offload Plugin $as_me 1.0, which was
1882generated by GNU Autoconf 2.64.  Invocation command line was
1883
1884  $ $0 $@
1885
1886_ACEOF
1887exec 5>>config.log
1888{
1889cat <<_ASUNAME
1890## --------- ##
1891## Platform. ##
1892## --------- ##
1893
1894hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1895uname -m = `(uname -m) 2>/dev/null || echo unknown`
1896uname -r = `(uname -r) 2>/dev/null || echo unknown`
1897uname -s = `(uname -s) 2>/dev/null || echo unknown`
1898uname -v = `(uname -v) 2>/dev/null || echo unknown`
1899
1900/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1901/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1902
1903/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1904/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1905/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1906/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1907/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1908/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1909/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1910
1911_ASUNAME
1912
1913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914for as_dir in $PATH
1915do
1916  IFS=$as_save_IFS
1917  test -z "$as_dir" && as_dir=.
1918    $as_echo "PATH: $as_dir"
1919  done
1920IFS=$as_save_IFS
1921
1922} >&5
1923
1924cat >&5 <<_ACEOF
1925
1926
1927## ----------- ##
1928## Core tests. ##
1929## ----------- ##
1930
1931_ACEOF
1932
1933
1934# Keep a trace of the command line.
1935# Strip out --no-create and --no-recursion so they do not pile up.
1936# Strip out --silent because we don't want to record it for future runs.
1937# Also quote any args containing shell meta-characters.
1938# Make two passes to allow for proper duplicate-argument suppression.
1939ac_configure_args=
1940ac_configure_args0=
1941ac_configure_args1=
1942ac_must_keep_next=false
1943for ac_pass in 1 2
1944do
1945  for ac_arg
1946  do
1947    case $ac_arg in
1948    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1949    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1950    | -silent | --silent | --silen | --sile | --sil)
1951      continue ;;
1952    *\'*)
1953      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1954    esac
1955    case $ac_pass in
1956    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1957    2)
1958      as_fn_append ac_configure_args1 " '$ac_arg'"
1959      if test $ac_must_keep_next = true; then
1960	ac_must_keep_next=false # Got value, back to normal.
1961      else
1962	case $ac_arg in
1963	  *=* | --config-cache | -C | -disable-* | --disable-* \
1964	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1965	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1966	  | -with-* | --with-* | -without-* | --without-* | --x)
1967	    case "$ac_configure_args0 " in
1968	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1969	    esac
1970	    ;;
1971	  -* ) ac_must_keep_next=true ;;
1972	esac
1973      fi
1974      as_fn_append ac_configure_args " '$ac_arg'"
1975      ;;
1976    esac
1977  done
1978done
1979{ ac_configure_args0=; unset ac_configure_args0;}
1980{ ac_configure_args1=; unset ac_configure_args1;}
1981
1982# When interrupted or exit'd, cleanup temporary files, and complete
1983# config.log.  We remove comments because anyway the quotes in there
1984# would cause problems or look ugly.
1985# WARNING: Use '\'' to represent an apostrophe within the trap.
1986# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1987trap 'exit_status=$?
1988  # Save into config.log some information that might help in debugging.
1989  {
1990    echo
1991
1992    cat <<\_ASBOX
1993## ---------------- ##
1994## Cache variables. ##
1995## ---------------- ##
1996_ASBOX
1997    echo
1998    # The following way of writing the cache mishandles newlines in values,
1999(
2000  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001    eval ac_val=\$$ac_var
2002    case $ac_val in #(
2003    *${as_nl}*)
2004      case $ac_var in #(
2005      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007      esac
2008      case $ac_var in #(
2009      _ | IFS | as_nl) ;; #(
2010      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011      *) { eval $ac_var=; unset $ac_var;} ;;
2012      esac ;;
2013    esac
2014  done
2015  (set) 2>&1 |
2016    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017    *${as_nl}ac_space=\ *)
2018      sed -n \
2019	"s/'\''/'\''\\\\'\'''\''/g;
2020	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2021      ;; #(
2022    *)
2023      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2024      ;;
2025    esac |
2026    sort
2027)
2028    echo
2029
2030    cat <<\_ASBOX
2031## ----------------- ##
2032## Output variables. ##
2033## ----------------- ##
2034_ASBOX
2035    echo
2036    for ac_var in $ac_subst_vars
2037    do
2038      eval ac_val=\$$ac_var
2039      case $ac_val in
2040      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041      esac
2042      $as_echo "$ac_var='\''$ac_val'\''"
2043    done | sort
2044    echo
2045
2046    if test -n "$ac_subst_files"; then
2047      cat <<\_ASBOX
2048## ------------------- ##
2049## File substitutions. ##
2050## ------------------- ##
2051_ASBOX
2052      echo
2053      for ac_var in $ac_subst_files
2054      do
2055	eval ac_val=\$$ac_var
2056	case $ac_val in
2057	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2058	esac
2059	$as_echo "$ac_var='\''$ac_val'\''"
2060      done | sort
2061      echo
2062    fi
2063
2064    if test -s confdefs.h; then
2065      cat <<\_ASBOX
2066## ----------- ##
2067## confdefs.h. ##
2068## ----------- ##
2069_ASBOX
2070      echo
2071      cat confdefs.h
2072      echo
2073    fi
2074    test "$ac_signal" != 0 &&
2075      $as_echo "$as_me: caught signal $ac_signal"
2076    $as_echo "$as_me: exit $exit_status"
2077  } >&5
2078  rm -f core *.core core.conftest.* &&
2079    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2080    exit $exit_status
2081' 0
2082for ac_signal in 1 2 13 15; do
2083  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2084done
2085ac_signal=0
2086
2087# confdefs.h avoids OS command line length limits that DEFS can exceed.
2088rm -f -r conftest* confdefs.h
2089
2090$as_echo "/* confdefs.h */" > confdefs.h
2091
2092# Predefined preprocessor variables.
2093
2094cat >>confdefs.h <<_ACEOF
2095#define PACKAGE_NAME "$PACKAGE_NAME"
2096_ACEOF
2097
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2100_ACEOF
2101
2102cat >>confdefs.h <<_ACEOF
2103#define PACKAGE_VERSION "$PACKAGE_VERSION"
2104_ACEOF
2105
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_STRING "$PACKAGE_STRING"
2108_ACEOF
2109
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2112_ACEOF
2113
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_URL "$PACKAGE_URL"
2116_ACEOF
2117
2118
2119# Let the site file select an alternate cache file if it wants to.
2120# Prefer an explicitly selected file to automatically selected ones.
2121ac_site_file1=NONE
2122ac_site_file2=NONE
2123if test -n "$CONFIG_SITE"; then
2124  ac_site_file1=$CONFIG_SITE
2125elif test "x$prefix" != xNONE; then
2126  ac_site_file1=$prefix/share/config.site
2127  ac_site_file2=$prefix/etc/config.site
2128else
2129  ac_site_file1=$ac_default_prefix/share/config.site
2130  ac_site_file2=$ac_default_prefix/etc/config.site
2131fi
2132for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2133do
2134  test "x$ac_site_file" = xNONE && continue
2135  if test -r "$ac_site_file"; then
2136    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2137$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2138    sed 's/^/| /' "$ac_site_file" >&5
2139    . "$ac_site_file"
2140  fi
2141done
2142
2143if test -r "$cache_file"; then
2144  # Some versions of bash will fail to source /dev/null (special
2145  # files actually), so we avoid doing that.
2146  if test -f "$cache_file"; then
2147    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2148$as_echo "$as_me: loading cache $cache_file" >&6;}
2149    case $cache_file in
2150      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2151      *)                      . "./$cache_file";;
2152    esac
2153  fi
2154else
2155  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2156$as_echo "$as_me: creating cache $cache_file" >&6;}
2157  >$cache_file
2158fi
2159
2160# Check that the precious variables saved in the cache have kept the same
2161# value.
2162ac_cache_corrupted=false
2163for ac_var in $ac_precious_vars; do
2164  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2165  eval ac_new_set=\$ac_env_${ac_var}_set
2166  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2167  eval ac_new_val=\$ac_env_${ac_var}_value
2168  case $ac_old_set,$ac_new_set in
2169    set,)
2170      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2171$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2172      ac_cache_corrupted=: ;;
2173    ,set)
2174      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2175$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2176      ac_cache_corrupted=: ;;
2177    ,);;
2178    *)
2179      if test "x$ac_old_val" != "x$ac_new_val"; then
2180	# differences in whitespace do not lead to failure.
2181	ac_old_val_w=`echo x $ac_old_val`
2182	ac_new_val_w=`echo x $ac_new_val`
2183	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2184	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2185$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2186	  ac_cache_corrupted=:
2187	else
2188	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2189$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2190	  eval $ac_var=\$ac_old_val
2191	fi
2192	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2193$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2194	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2195$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2196      fi;;
2197  esac
2198  # Pass precious variables to config.status.
2199  if test "$ac_new_set" = set; then
2200    case $ac_new_val in
2201    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2202    *) ac_arg=$ac_var=$ac_new_val ;;
2203    esac
2204    case " $ac_configure_args " in
2205      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2206      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2207    esac
2208  fi
2209done
2210if $ac_cache_corrupted; then
2211  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2214$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2215  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2216fi
2217## -------------------- ##
2218## Main body of script. ##
2219## -------------------- ##
2220
2221ac_ext=c
2222ac_cpp='$CPP $CPPFLAGS'
2223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225ac_compiler_gnu=$ac_cv_c_compiler_gnu
2226
2227
2228
2229
2230
2231
2232ac_aux_dir=
2233for ac_dir in ../.. "$srcdir"/../..; do
2234  for ac_t in install-sh install.sh shtool; do
2235    if test -f "$ac_dir/$ac_t"; then
2236      ac_aux_dir=$ac_dir
2237      ac_install_sh="$ac_aux_dir/$ac_t -c"
2238      break 2
2239    fi
2240  done
2241done
2242if test -z "$ac_aux_dir"; then
2243  as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2244fi
2245
2246# These three variables are undocumented and unsupported,
2247# and are intended to be withdrawn in a future Autoconf release.
2248# They can cause serious problems if a builder's source tree is in a directory
2249# whose full name contains unusual characters.
2250ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2251ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2252ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2253
2254
2255
2256# Make sure we can run config.sub.
2257$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2258  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2259
2260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2261$as_echo_n "checking build system type... " >&6; }
2262if test "${ac_cv_build+set}" = set; then :
2263  $as_echo_n "(cached) " >&6
2264else
2265  ac_build_alias=$build_alias
2266test "x$ac_build_alias" = x &&
2267  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2268test "x$ac_build_alias" = x &&
2269  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2270ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2271  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2272
2273fi
2274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2275$as_echo "$ac_cv_build" >&6; }
2276case $ac_cv_build in
2277*-*-*) ;;
2278*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2279esac
2280build=$ac_cv_build
2281ac_save_IFS=$IFS; IFS='-'
2282set x $ac_cv_build
2283shift
2284build_cpu=$1
2285build_vendor=$2
2286shift; shift
2287# Remember, the first character of IFS is used to create $*,
2288# except with old shells:
2289build_os=$*
2290IFS=$ac_save_IFS
2291case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2292
2293
2294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2295$as_echo_n "checking host system type... " >&6; }
2296if test "${ac_cv_host+set}" = set; then :
2297  $as_echo_n "(cached) " >&6
2298else
2299  if test "x$host_alias" = x; then
2300  ac_cv_host=$ac_cv_build
2301else
2302  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2303    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2304fi
2305
2306fi
2307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2308$as_echo "$ac_cv_host" >&6; }
2309case $ac_cv_host in
2310*-*-*) ;;
2311*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2312esac
2313host=$ac_cv_host
2314ac_save_IFS=$IFS; IFS='-'
2315set x $ac_cv_host
2316shift
2317host_cpu=$1
2318host_vendor=$2
2319shift; shift
2320# Remember, the first character of IFS is used to create $*,
2321# except with old shells:
2322host_os=$*
2323IFS=$ac_save_IFS
2324case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2325
2326
2327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2328$as_echo_n "checking target system type... " >&6; }
2329if test "${ac_cv_target+set}" = set; then :
2330  $as_echo_n "(cached) " >&6
2331else
2332  if test "x$target_alias" = x; then
2333  ac_cv_target=$ac_cv_host
2334else
2335  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2336    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2337fi
2338
2339fi
2340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2341$as_echo "$ac_cv_target" >&6; }
2342case $ac_cv_target in
2343*-*-*) ;;
2344*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2345esac
2346target=$ac_cv_target
2347ac_save_IFS=$IFS; IFS='-'
2348set x $ac_cv_target
2349shift
2350target_cpu=$1
2351target_vendor=$2
2352shift; shift
2353# Remember, the first character of IFS is used to create $*,
2354# except with old shells:
2355target_os=$*
2356IFS=$ac_save_IFS
2357case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2358
2359
2360# The aliases save the names the user supplied, while $host etc.
2361# will get canonicalized.
2362test -n "$target_alias" &&
2363  test "$program_prefix$program_suffix$program_transform_name" = \
2364    NONENONEs,x,x, &&
2365  program_prefix=${target_alias}-
2366
2367target_alias=${target_alias-$host_alias}
2368
2369
2370am__api_version='1.11'
2371
2372# Find a good install program.  We prefer a C program (faster),
2373# so one script is as good as another.  But avoid the broken or
2374# incompatible versions:
2375# SysV /etc/install, /usr/sbin/install
2376# SunOS /usr/etc/install
2377# IRIX /sbin/install
2378# AIX /bin/install
2379# AmigaOS /C/install, which installs bootblocks on floppy discs
2380# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2381# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2382# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2383# OS/2's system install, which has a completely different semantic
2384# ./install, which can be erroneously created by make from ./install.sh.
2385# Reject install programs that cannot install multiple files.
2386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2387$as_echo_n "checking for a BSD-compatible install... " >&6; }
2388if test -z "$INSTALL"; then
2389if test "${ac_cv_path_install+set}" = set; then :
2390  $as_echo_n "(cached) " >&6
2391else
2392  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393for as_dir in $PATH
2394do
2395  IFS=$as_save_IFS
2396  test -z "$as_dir" && as_dir=.
2397    # Account for people who put trailing slashes in PATH elements.
2398case $as_dir/ in #((
2399  ./ | .// | /[cC]/* | \
2400  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2401  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2402  /usr/ucb/* ) ;;
2403  *)
2404    # OSF1 and SCO ODT 3.0 have their own names for install.
2405    # Don't use installbsd from OSF since it installs stuff as root
2406    # by default.
2407    for ac_prog in ginstall scoinst install; do
2408      for ac_exec_ext in '' $ac_executable_extensions; do
2409	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2410	  if test $ac_prog = install &&
2411	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2412	    # AIX install.  It has an incompatible calling convention.
2413	    :
2414	  elif test $ac_prog = install &&
2415	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2416	    # program-specific install script used by HP pwplus--don't use.
2417	    :
2418	  else
2419	    rm -rf conftest.one conftest.two conftest.dir
2420	    echo one > conftest.one
2421	    echo two > conftest.two
2422	    mkdir conftest.dir
2423	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2424	      test -s conftest.one && test -s conftest.two &&
2425	      test -s conftest.dir/conftest.one &&
2426	      test -s conftest.dir/conftest.two
2427	    then
2428	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2429	      break 3
2430	    fi
2431	  fi
2432	fi
2433      done
2434    done
2435    ;;
2436esac
2437
2438  done
2439IFS=$as_save_IFS
2440
2441rm -rf conftest.one conftest.two conftest.dir
2442
2443fi
2444  if test "${ac_cv_path_install+set}" = set; then
2445    INSTALL=$ac_cv_path_install
2446  else
2447    # As a last resort, use the slow shell script.  Don't cache a
2448    # value for INSTALL within a source directory, because that will
2449    # break other packages using the cache if that directory is
2450    # removed, or if the value is a relative name.
2451    INSTALL=$ac_install_sh
2452  fi
2453fi
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2455$as_echo "$INSTALL" >&6; }
2456
2457# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2458# It thinks the first close brace ends the variable substitution.
2459test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2460
2461test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2462
2463test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2464
2465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2466$as_echo_n "checking whether build environment is sane... " >&6; }
2467# Just in case
2468sleep 1
2469echo timestamp > conftest.file
2470# Reject unsafe characters in $srcdir or the absolute working directory
2471# name.  Accept space and tab only in the latter.
2472am_lf='
2473'
2474case `pwd` in
2475  *[\\\"\#\$\&\'\`$am_lf]*)
2476    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2477esac
2478case $srcdir in
2479  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2480    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2481esac
2482
2483# Do `set' in a subshell so we don't clobber the current shell's
2484# arguments.  Must try -L first in case configure is actually a
2485# symlink; some systems play weird games with the mod time of symlinks
2486# (eg FreeBSD returns the mod time of the symlink's containing
2487# directory).
2488if (
2489   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2490   if test "$*" = "X"; then
2491      # -L didn't work.
2492      set X `ls -t "$srcdir/configure" conftest.file`
2493   fi
2494   rm -f conftest.file
2495   if test "$*" != "X $srcdir/configure conftest.file" \
2496      && test "$*" != "X conftest.file $srcdir/configure"; then
2497
2498      # If neither matched, then we have a broken ls.  This can happen
2499      # if, for instance, CONFIG_SHELL is bash and it inherits a
2500      # broken ls alias from the environment.  This has actually
2501      # happened.  Such a system could not be considered "sane".
2502      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2503alias in your environment" "$LINENO" 5
2504   fi
2505
2506   test "$2" = conftest.file
2507   )
2508then
2509   # Ok.
2510   :
2511else
2512   as_fn_error "newly created file is older than distributed files!
2513Check your system clock" "$LINENO" 5
2514fi
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2516$as_echo "yes" >&6; }
2517test "$program_prefix" != NONE &&
2518  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2519# Use a double $ so make ignores it.
2520test "$program_suffix" != NONE &&
2521  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2522# Double any \ or $.
2523# By default was `s,x,x', remove it if useless.
2524ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2525program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2526
2527# expand $ac_aux_dir to an absolute path
2528am_aux_dir=`cd $ac_aux_dir && pwd`
2529
2530if test x"${MISSING+set}" != xset; then
2531  case $am_aux_dir in
2532  *\ * | *\	*)
2533    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2534  *)
2535    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2536  esac
2537fi
2538# Use eval to expand $SHELL
2539if eval "$MISSING --run true"; then
2540  am_missing_run="$MISSING --run "
2541else
2542  am_missing_run=
2543  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2544$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2545fi
2546
2547if test x"${install_sh}" != xset; then
2548  case $am_aux_dir in
2549  *\ * | *\	*)
2550    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2551  *)
2552    install_sh="\${SHELL} $am_aux_dir/install-sh"
2553  esac
2554fi
2555
2556# Installed binaries are usually stripped using `strip' when the user
2557# run `make install-strip'.  However `strip' might not be the right
2558# tool to use in cross-compilation environments, therefore Automake
2559# will honor the `STRIP' environment variable to overrule this program.
2560if test "$cross_compiling" != no; then
2561  if test -n "$ac_tool_prefix"; then
2562  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2563set dummy ${ac_tool_prefix}strip; ac_word=$2
2564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2565$as_echo_n "checking for $ac_word... " >&6; }
2566if test "${ac_cv_prog_STRIP+set}" = set; then :
2567  $as_echo_n "(cached) " >&6
2568else
2569  if test -n "$STRIP"; then
2570  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2571else
2572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573for as_dir in $PATH
2574do
2575  IFS=$as_save_IFS
2576  test -z "$as_dir" && as_dir=.
2577    for ac_exec_ext in '' $ac_executable_extensions; do
2578  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2581    break 2
2582  fi
2583done
2584  done
2585IFS=$as_save_IFS
2586
2587fi
2588fi
2589STRIP=$ac_cv_prog_STRIP
2590if test -n "$STRIP"; then
2591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2592$as_echo "$STRIP" >&6; }
2593else
2594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595$as_echo "no" >&6; }
2596fi
2597
2598
2599fi
2600if test -z "$ac_cv_prog_STRIP"; then
2601  ac_ct_STRIP=$STRIP
2602  # Extract the first word of "strip", so it can be a program name with args.
2603set dummy strip; ac_word=$2
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605$as_echo_n "checking for $ac_word... " >&6; }
2606if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2607  $as_echo_n "(cached) " >&6
2608else
2609  if test -n "$ac_ct_STRIP"; then
2610  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2611else
2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615  IFS=$as_save_IFS
2616  test -z "$as_dir" && as_dir=.
2617    for ac_exec_ext in '' $ac_executable_extensions; do
2618  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619    ac_cv_prog_ac_ct_STRIP="strip"
2620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621    break 2
2622  fi
2623done
2624  done
2625IFS=$as_save_IFS
2626
2627fi
2628fi
2629ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2630if test -n "$ac_ct_STRIP"; then
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2632$as_echo "$ac_ct_STRIP" >&6; }
2633else
2634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635$as_echo "no" >&6; }
2636fi
2637
2638  if test "x$ac_ct_STRIP" = x; then
2639    STRIP=":"
2640  else
2641    case $cross_compiling:$ac_tool_warned in
2642yes:)
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2645ac_tool_warned=yes ;;
2646esac
2647    STRIP=$ac_ct_STRIP
2648  fi
2649else
2650  STRIP="$ac_cv_prog_STRIP"
2651fi
2652
2653fi
2654INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2655
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2657$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2658if test -z "$MKDIR_P"; then
2659  if test "${ac_cv_path_mkdir+set}" = set; then :
2660  $as_echo_n "(cached) " >&6
2661else
2662  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2664do
2665  IFS=$as_save_IFS
2666  test -z "$as_dir" && as_dir=.
2667    for ac_prog in mkdir gmkdir; do
2668	 for ac_exec_ext in '' $ac_executable_extensions; do
2669	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2670	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2671	     'mkdir (GNU coreutils) '* | \
2672	     'mkdir (coreutils) '* | \
2673	     'mkdir (fileutils) '4.1*)
2674	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2675	       break 3;;
2676	   esac
2677	 done
2678       done
2679  done
2680IFS=$as_save_IFS
2681
2682fi
2683
2684  if test "${ac_cv_path_mkdir+set}" = set; then
2685    MKDIR_P="$ac_cv_path_mkdir -p"
2686  else
2687    # As a last resort, use the slow shell script.  Don't cache a
2688    # value for MKDIR_P within a source directory, because that will
2689    # break other packages using the cache if that directory is
2690    # removed, or if the value is a relative name.
2691    test -d ./--version && rmdir ./--version
2692    MKDIR_P="$ac_install_sh -d"
2693  fi
2694fi
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2696$as_echo "$MKDIR_P" >&6; }
2697
2698mkdir_p="$MKDIR_P"
2699case $mkdir_p in
2700  [\\/$]* | ?:[\\/]*) ;;
2701  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2702esac
2703
2704for ac_prog in gawk mawk nawk awk
2705do
2706  # Extract the first word of "$ac_prog", so it can be a program name with args.
2707set dummy $ac_prog; ac_word=$2
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709$as_echo_n "checking for $ac_word... " >&6; }
2710if test "${ac_cv_prog_AWK+set}" = set; then :
2711  $as_echo_n "(cached) " >&6
2712else
2713  if test -n "$AWK"; then
2714  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2715else
2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717for as_dir in $PATH
2718do
2719  IFS=$as_save_IFS
2720  test -z "$as_dir" && as_dir=.
2721    for ac_exec_ext in '' $ac_executable_extensions; do
2722  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723    ac_cv_prog_AWK="$ac_prog"
2724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725    break 2
2726  fi
2727done
2728  done
2729IFS=$as_save_IFS
2730
2731fi
2732fi
2733AWK=$ac_cv_prog_AWK
2734if test -n "$AWK"; then
2735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2736$as_echo "$AWK" >&6; }
2737else
2738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739$as_echo "no" >&6; }
2740fi
2741
2742
2743  test -n "$AWK" && break
2744done
2745
2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2747$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2748set x ${MAKE-make}
2749ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2750if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2751  $as_echo_n "(cached) " >&6
2752else
2753  cat >conftest.make <<\_ACEOF
2754SHELL = /bin/sh
2755all:
2756	@echo '@@@%%%=$(MAKE)=@@@%%%'
2757_ACEOF
2758# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2759case `${MAKE-make} -f conftest.make 2>/dev/null` in
2760  *@@@%%%=?*=@@@%%%*)
2761    eval ac_cv_prog_make_${ac_make}_set=yes;;
2762  *)
2763    eval ac_cv_prog_make_${ac_make}_set=no;;
2764esac
2765rm -f conftest.make
2766fi
2767if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2769$as_echo "yes" >&6; }
2770  SET_MAKE=
2771else
2772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773$as_echo "no" >&6; }
2774  SET_MAKE="MAKE=${MAKE-make}"
2775fi
2776
2777rm -rf .tst 2>/dev/null
2778mkdir .tst 2>/dev/null
2779if test -d .tst; then
2780  am__leading_dot=.
2781else
2782  am__leading_dot=_
2783fi
2784rmdir .tst 2>/dev/null
2785
2786if test "`cd $srcdir && pwd`" != "`pwd`"; then
2787  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2788  # is not polluted with repeated "-I."
2789  am__isrc=' -I$(srcdir)'
2790  # test to see if srcdir already configured
2791  if test -f $srcdir/config.status; then
2792    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2793  fi
2794fi
2795
2796# test whether we have cygpath
2797if test -z "$CYGPATH_W"; then
2798  if (cygpath --version) >/dev/null 2>/dev/null; then
2799    CYGPATH_W='cygpath -w'
2800  else
2801    CYGPATH_W=echo
2802  fi
2803fi
2804
2805
2806# Define the identity of the package.
2807 PACKAGE='libgomp-plugin-intelmic'
2808 VERSION='1.0'
2809
2810
2811cat >>confdefs.h <<_ACEOF
2812#define PACKAGE "$PACKAGE"
2813_ACEOF
2814
2815
2816cat >>confdefs.h <<_ACEOF
2817#define VERSION "$VERSION"
2818_ACEOF
2819
2820# Some tools Automake needs.
2821
2822ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2823
2824
2825AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2826
2827
2828AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2829
2830
2831AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2832
2833
2834MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2835
2836# We need awk for the "check" target.  The system "awk" is bad on
2837# some platforms.
2838# Always define AMTAR for backward compatibility.  Yes, it's still used
2839# in the wild :-(  We should find a proper way to deprecate it ...
2840AMTAR='$${TAR-tar}'
2841
2842am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2843
2844
2845
2846
2847
2848
2849
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2851$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2852    # Check whether --enable-maintainer-mode was given.
2853if test "${enable_maintainer_mode+set}" = set; then :
2854  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2855else
2856  USE_MAINTAINER_MODE=no
2857fi
2858
2859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2860$as_echo "$USE_MAINTAINER_MODE" >&6; }
2861   if test $USE_MAINTAINER_MODE = yes; then
2862  MAINTAINER_MODE_TRUE=
2863  MAINTAINER_MODE_FALSE='#'
2864else
2865  MAINTAINER_MODE_TRUE='#'
2866  MAINTAINER_MODE_FALSE=
2867fi
2868
2869  MAINT=$MAINTAINER_MODE_TRUE
2870
2871
2872
2873ac_ext=c
2874ac_cpp='$CPP $CPPFLAGS'
2875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877ac_compiler_gnu=$ac_cv_c_compiler_gnu
2878if test -n "$ac_tool_prefix"; then
2879  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2880set dummy ${ac_tool_prefix}gcc; ac_word=$2
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882$as_echo_n "checking for $ac_word... " >&6; }
2883if test "${ac_cv_prog_CC+set}" = set; then :
2884  $as_echo_n "(cached) " >&6
2885else
2886  if test -n "$CC"; then
2887  ac_cv_prog_CC="$CC" # Let the user override the test.
2888else
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892  IFS=$as_save_IFS
2893  test -z "$as_dir" && as_dir=.
2894    for ac_exec_ext in '' $ac_executable_extensions; do
2895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898    break 2
2899  fi
2900done
2901  done
2902IFS=$as_save_IFS
2903
2904fi
2905fi
2906CC=$ac_cv_prog_CC
2907if test -n "$CC"; then
2908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2909$as_echo "$CC" >&6; }
2910else
2911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912$as_echo "no" >&6; }
2913fi
2914
2915
2916fi
2917if test -z "$ac_cv_prog_CC"; then
2918  ac_ct_CC=$CC
2919  # Extract the first word of "gcc", so it can be a program name with args.
2920set dummy gcc; ac_word=$2
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922$as_echo_n "checking for $ac_word... " >&6; }
2923if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2924  $as_echo_n "(cached) " >&6
2925else
2926  if test -n "$ac_ct_CC"; then
2927  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2928else
2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930for as_dir in $PATH
2931do
2932  IFS=$as_save_IFS
2933  test -z "$as_dir" && as_dir=.
2934    for ac_exec_ext in '' $ac_executable_extensions; do
2935  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936    ac_cv_prog_ac_ct_CC="gcc"
2937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938    break 2
2939  fi
2940done
2941  done
2942IFS=$as_save_IFS
2943
2944fi
2945fi
2946ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947if test -n "$ac_ct_CC"; then
2948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2949$as_echo "$ac_ct_CC" >&6; }
2950else
2951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952$as_echo "no" >&6; }
2953fi
2954
2955  if test "x$ac_ct_CC" = x; then
2956    CC=""
2957  else
2958    case $cross_compiling:$ac_tool_warned in
2959yes:)
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2962ac_tool_warned=yes ;;
2963esac
2964    CC=$ac_ct_CC
2965  fi
2966else
2967  CC="$ac_cv_prog_CC"
2968fi
2969
2970if test -z "$CC"; then
2971          if test -n "$ac_tool_prefix"; then
2972    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2973set dummy ${ac_tool_prefix}cc; ac_word=$2
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975$as_echo_n "checking for $ac_word... " >&6; }
2976if test "${ac_cv_prog_CC+set}" = set; then :
2977  $as_echo_n "(cached) " >&6
2978else
2979  if test -n "$CC"; then
2980  ac_cv_prog_CC="$CC" # Let the user override the test.
2981else
2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983for as_dir in $PATH
2984do
2985  IFS=$as_save_IFS
2986  test -z "$as_dir" && as_dir=.
2987    for ac_exec_ext in '' $ac_executable_extensions; do
2988  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989    ac_cv_prog_CC="${ac_tool_prefix}cc"
2990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991    break 2
2992  fi
2993done
2994  done
2995IFS=$as_save_IFS
2996
2997fi
2998fi
2999CC=$ac_cv_prog_CC
3000if test -n "$CC"; then
3001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3002$as_echo "$CC" >&6; }
3003else
3004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005$as_echo "no" >&6; }
3006fi
3007
3008
3009  fi
3010fi
3011if test -z "$CC"; then
3012  # Extract the first word of "cc", so it can be a program name with args.
3013set dummy cc; ac_word=$2
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015$as_echo_n "checking for $ac_word... " >&6; }
3016if test "${ac_cv_prog_CC+set}" = set; then :
3017  $as_echo_n "(cached) " >&6
3018else
3019  if test -n "$CC"; then
3020  ac_cv_prog_CC="$CC" # Let the user override the test.
3021else
3022  ac_prog_rejected=no
3023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024for as_dir in $PATH
3025do
3026  IFS=$as_save_IFS
3027  test -z "$as_dir" && as_dir=.
3028    for ac_exec_ext in '' $ac_executable_extensions; do
3029  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3031       ac_prog_rejected=yes
3032       continue
3033     fi
3034    ac_cv_prog_CC="cc"
3035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036    break 2
3037  fi
3038done
3039  done
3040IFS=$as_save_IFS
3041
3042if test $ac_prog_rejected = yes; then
3043  # We found a bogon in the path, so make sure we never use it.
3044  set dummy $ac_cv_prog_CC
3045  shift
3046  if test $# != 0; then
3047    # We chose a different compiler from the bogus one.
3048    # However, it has the same basename, so the bogon will be chosen
3049    # first if we set CC to just the basename; use the full file name.
3050    shift
3051    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3052  fi
3053fi
3054fi
3055fi
3056CC=$ac_cv_prog_CC
3057if test -n "$CC"; then
3058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059$as_echo "$CC" >&6; }
3060else
3061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062$as_echo "no" >&6; }
3063fi
3064
3065
3066fi
3067if test -z "$CC"; then
3068  if test -n "$ac_tool_prefix"; then
3069  for ac_prog in cl.exe
3070  do
3071    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3072set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074$as_echo_n "checking for $ac_word... " >&6; }
3075if test "${ac_cv_prog_CC+set}" = set; then :
3076  $as_echo_n "(cached) " >&6
3077else
3078  if test -n "$CC"; then
3079  ac_cv_prog_CC="$CC" # Let the user override the test.
3080else
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084  IFS=$as_save_IFS
3085  test -z "$as_dir" && as_dir=.
3086    for ac_exec_ext in '' $ac_executable_extensions; do
3087  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090    break 2
3091  fi
3092done
3093  done
3094IFS=$as_save_IFS
3095
3096fi
3097fi
3098CC=$ac_cv_prog_CC
3099if test -n "$CC"; then
3100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101$as_echo "$CC" >&6; }
3102else
3103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104$as_echo "no" >&6; }
3105fi
3106
3107
3108    test -n "$CC" && break
3109  done
3110fi
3111if test -z "$CC"; then
3112  ac_ct_CC=$CC
3113  for ac_prog in cl.exe
3114do
3115  # Extract the first word of "$ac_prog", so it can be a program name with args.
3116set dummy $ac_prog; ac_word=$2
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118$as_echo_n "checking for $ac_word... " >&6; }
3119if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3120  $as_echo_n "(cached) " >&6
3121else
3122  if test -n "$ac_ct_CC"; then
3123  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3124else
3125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126for as_dir in $PATH
3127do
3128  IFS=$as_save_IFS
3129  test -z "$as_dir" && as_dir=.
3130    for ac_exec_ext in '' $ac_executable_extensions; do
3131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132    ac_cv_prog_ac_ct_CC="$ac_prog"
3133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134    break 2
3135  fi
3136done
3137  done
3138IFS=$as_save_IFS
3139
3140fi
3141fi
3142ac_ct_CC=$ac_cv_prog_ac_ct_CC
3143if test -n "$ac_ct_CC"; then
3144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3145$as_echo "$ac_ct_CC" >&6; }
3146else
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148$as_echo "no" >&6; }
3149fi
3150
3151
3152  test -n "$ac_ct_CC" && break
3153done
3154
3155  if test "x$ac_ct_CC" = x; then
3156    CC=""
3157  else
3158    case $cross_compiling:$ac_tool_warned in
3159yes:)
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3162ac_tool_warned=yes ;;
3163esac
3164    CC=$ac_ct_CC
3165  fi
3166fi
3167
3168fi
3169
3170
3171test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173as_fn_error "no acceptable C compiler found in \$PATH
3174See \`config.log' for more details." "$LINENO" 5; }
3175
3176# Provide some information about the compiler.
3177$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3178set X $ac_compile
3179ac_compiler=$2
3180for ac_option in --version -v -V -qversion; do
3181  { { ac_try="$ac_compiler $ac_option >&5"
3182case "(($ac_try" in
3183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184  *) ac_try_echo=$ac_try;;
3185esac
3186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187$as_echo "$ac_try_echo"; } >&5
3188  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3189  ac_status=$?
3190  if test -s conftest.err; then
3191    sed '10a\
3192... rest of stderr output deleted ...
3193         10q' conftest.err >conftest.er1
3194    cat conftest.er1 >&5
3195    rm -f conftest.er1 conftest.err
3196  fi
3197  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198  test $ac_status = 0; }
3199done
3200
3201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202/* end confdefs.h.  */
3203
3204int
3205main ()
3206{
3207
3208  ;
3209  return 0;
3210}
3211_ACEOF
3212ac_clean_files_save=$ac_clean_files
3213ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3214# Try to create an executable without -o first, disregard a.out.
3215# It will help us diagnose broken compilers, and finding out an intuition
3216# of exeext.
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3218$as_echo_n "checking for C compiler default output file name... " >&6; }
3219ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3220
3221# The possible output files:
3222ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3223
3224ac_rmfiles=
3225for ac_file in $ac_files
3226do
3227  case $ac_file in
3228    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3229    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3230  esac
3231done
3232rm -f $ac_rmfiles
3233
3234if { { ac_try="$ac_link_default"
3235case "(($ac_try" in
3236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237  *) ac_try_echo=$ac_try;;
3238esac
3239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240$as_echo "$ac_try_echo"; } >&5
3241  (eval "$ac_link_default") 2>&5
3242  ac_status=$?
3243  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244  test $ac_status = 0; }; then :
3245  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3246# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3247# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3248# so that the user can short-circuit this test for compilers unknown to
3249# Autoconf.
3250for ac_file in $ac_files ''
3251do
3252  test -f "$ac_file" || continue
3253  case $ac_file in
3254    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3255	;;
3256    [ab].out )
3257	# We found the default executable, but exeext='' is most
3258	# certainly right.
3259	break;;
3260    *.* )
3261	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3262	then :; else
3263	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3264	fi
3265	# We set ac_cv_exeext here because the later test for it is not
3266	# safe: cross compilers may not add the suffix if given an `-o'
3267	# argument, so we may need to know it at that point already.
3268	# Even if this section looks crufty: it has the advantage of
3269	# actually working.
3270	break;;
3271    * )
3272	break;;
3273  esac
3274done
3275test "$ac_cv_exeext" = no && ac_cv_exeext=
3276
3277else
3278  ac_file=''
3279fi
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3281$as_echo "$ac_file" >&6; }
3282if test -z "$ac_file"; then :
3283  $as_echo "$as_me: failed program was:" >&5
3284sed 's/^/| /' conftest.$ac_ext >&5
3285
3286{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288{ as_fn_set_status 77
3289as_fn_error "C compiler cannot create executables
3290See \`config.log' for more details." "$LINENO" 5; }; }
3291fi
3292ac_exeext=$ac_cv_exeext
3293
3294# Check that the compiler produces executables we can run.  If not, either
3295# the compiler is broken, or we cross compile.
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3297$as_echo_n "checking whether the C compiler works... " >&6; }
3298# If not cross compiling, check that we can run a simple program.
3299if test "$cross_compiling" != yes; then
3300  if { ac_try='./$ac_file'
3301  { { case "(($ac_try" in
3302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303  *) ac_try_echo=$ac_try;;
3304esac
3305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306$as_echo "$ac_try_echo"; } >&5
3307  (eval "$ac_try") 2>&5
3308  ac_status=$?
3309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310  test $ac_status = 0; }; }; then
3311    cross_compiling=no
3312  else
3313    if test "$cross_compiling" = maybe; then
3314	cross_compiling=yes
3315    else
3316	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318as_fn_error "cannot run C compiled programs.
3319If you meant to cross compile, use \`--host'.
3320See \`config.log' for more details." "$LINENO" 5; }
3321    fi
3322  fi
3323fi
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3325$as_echo "yes" >&6; }
3326
3327rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3328ac_clean_files=$ac_clean_files_save
3329# Check that the compiler produces executables we can run.  If not, either
3330# the compiler is broken, or we cross compile.
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3332$as_echo_n "checking whether we are cross compiling... " >&6; }
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3334$as_echo "$cross_compiling" >&6; }
3335
3336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3337$as_echo_n "checking for suffix of executables... " >&6; }
3338if { { ac_try="$ac_link"
3339case "(($ac_try" in
3340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341  *) ac_try_echo=$ac_try;;
3342esac
3343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344$as_echo "$ac_try_echo"; } >&5
3345  (eval "$ac_link") 2>&5
3346  ac_status=$?
3347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348  test $ac_status = 0; }; then :
3349  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3350# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3351# work properly (i.e., refer to `conftest.exe'), while it won't with
3352# `rm'.
3353for ac_file in conftest.exe conftest conftest.*; do
3354  test -f "$ac_file" || continue
3355  case $ac_file in
3356    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3357    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3358	  break;;
3359    * ) break;;
3360  esac
3361done
3362else
3363  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365as_fn_error "cannot compute suffix of executables: cannot compile and link
3366See \`config.log' for more details." "$LINENO" 5; }
3367fi
3368rm -f conftest$ac_cv_exeext
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3370$as_echo "$ac_cv_exeext" >&6; }
3371
3372rm -f conftest.$ac_ext
3373EXEEXT=$ac_cv_exeext
3374ac_exeext=$EXEEXT
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3376$as_echo_n "checking for suffix of object files... " >&6; }
3377if test "${ac_cv_objext+set}" = set; then :
3378  $as_echo_n "(cached) " >&6
3379else
3380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381/* end confdefs.h.  */
3382
3383int
3384main ()
3385{
3386
3387  ;
3388  return 0;
3389}
3390_ACEOF
3391rm -f conftest.o conftest.obj
3392if { { ac_try="$ac_compile"
3393case "(($ac_try" in
3394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395  *) ac_try_echo=$ac_try;;
3396esac
3397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398$as_echo "$ac_try_echo"; } >&5
3399  (eval "$ac_compile") 2>&5
3400  ac_status=$?
3401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402  test $ac_status = 0; }; then :
3403  for ac_file in conftest.o conftest.obj conftest.*; do
3404  test -f "$ac_file" || continue;
3405  case $ac_file in
3406    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3407    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3408       break;;
3409  esac
3410done
3411else
3412  $as_echo "$as_me: failed program was:" >&5
3413sed 's/^/| /' conftest.$ac_ext >&5
3414
3415{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417as_fn_error "cannot compute suffix of object files: cannot compile
3418See \`config.log' for more details." "$LINENO" 5; }
3419fi
3420rm -f conftest.$ac_cv_objext conftest.$ac_ext
3421fi
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3423$as_echo "$ac_cv_objext" >&6; }
3424OBJEXT=$ac_cv_objext
3425ac_objext=$OBJEXT
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3427$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3428if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3429  $as_echo_n "(cached) " >&6
3430else
3431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432/* end confdefs.h.  */
3433
3434int
3435main ()
3436{
3437#ifndef __GNUC__
3438       choke me
3439#endif
3440
3441  ;
3442  return 0;
3443}
3444_ACEOF
3445if ac_fn_c_try_compile "$LINENO"; then :
3446  ac_compiler_gnu=yes
3447else
3448  ac_compiler_gnu=no
3449fi
3450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451ac_cv_c_compiler_gnu=$ac_compiler_gnu
3452
3453fi
3454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3455$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3456if test $ac_compiler_gnu = yes; then
3457  GCC=yes
3458else
3459  GCC=
3460fi
3461ac_test_CFLAGS=${CFLAGS+set}
3462ac_save_CFLAGS=$CFLAGS
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3464$as_echo_n "checking whether $CC accepts -g... " >&6; }
3465if test "${ac_cv_prog_cc_g+set}" = set; then :
3466  $as_echo_n "(cached) " >&6
3467else
3468  ac_save_c_werror_flag=$ac_c_werror_flag
3469   ac_c_werror_flag=yes
3470   ac_cv_prog_cc_g=no
3471   CFLAGS="-g"
3472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473/* end confdefs.h.  */
3474
3475int
3476main ()
3477{
3478
3479  ;
3480  return 0;
3481}
3482_ACEOF
3483if ac_fn_c_try_compile "$LINENO"; then :
3484  ac_cv_prog_cc_g=yes
3485else
3486  CFLAGS=""
3487      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488/* end confdefs.h.  */
3489
3490int
3491main ()
3492{
3493
3494  ;
3495  return 0;
3496}
3497_ACEOF
3498if ac_fn_c_try_compile "$LINENO"; then :
3499
3500else
3501  ac_c_werror_flag=$ac_save_c_werror_flag
3502	 CFLAGS="-g"
3503	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504/* end confdefs.h.  */
3505
3506int
3507main ()
3508{
3509
3510  ;
3511  return 0;
3512}
3513_ACEOF
3514if ac_fn_c_try_compile "$LINENO"; then :
3515  ac_cv_prog_cc_g=yes
3516fi
3517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518fi
3519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520fi
3521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522   ac_c_werror_flag=$ac_save_c_werror_flag
3523fi
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3525$as_echo "$ac_cv_prog_cc_g" >&6; }
3526if test "$ac_test_CFLAGS" = set; then
3527  CFLAGS=$ac_save_CFLAGS
3528elif test $ac_cv_prog_cc_g = yes; then
3529  if test "$GCC" = yes; then
3530    CFLAGS="-g -O2"
3531  else
3532    CFLAGS="-g"
3533  fi
3534else
3535  if test "$GCC" = yes; then
3536    CFLAGS="-O2"
3537  else
3538    CFLAGS=
3539  fi
3540fi
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3542$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3543if test "${ac_cv_prog_cc_c89+set}" = set; then :
3544  $as_echo_n "(cached) " >&6
3545else
3546  ac_cv_prog_cc_c89=no
3547ac_save_CC=$CC
3548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549/* end confdefs.h.  */
3550#include <stdarg.h>
3551#include <stdio.h>
3552#include <sys/types.h>
3553#include <sys/stat.h>
3554/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3555struct buf { int x; };
3556FILE * (*rcsopen) (struct buf *, struct stat *, int);
3557static char *e (p, i)
3558     char **p;
3559     int i;
3560{
3561  return p[i];
3562}
3563static char *f (char * (*g) (char **, int), char **p, ...)
3564{
3565  char *s;
3566  va_list v;
3567  va_start (v,p);
3568  s = g (p, va_arg (v,int));
3569  va_end (v);
3570  return s;
3571}
3572
3573/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3574   function prototypes and stuff, but not '\xHH' hex character constants.
3575   These don't provoke an error unfortunately, instead are silently treated
3576   as 'x'.  The following induces an error, until -std is added to get
3577   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3578   array size at least.  It's necessary to write '\x00'==0 to get something
3579   that's true only with -std.  */
3580int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3581
3582/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3583   inside strings and character constants.  */
3584#define FOO(x) 'x'
3585int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3586
3587int test (int i, double x);
3588struct s1 {int (*f) (int a);};
3589struct s2 {int (*f) (double a);};
3590int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3591int argc;
3592char **argv;
3593int
3594main ()
3595{
3596return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3597  ;
3598  return 0;
3599}
3600_ACEOF
3601for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3602	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3603do
3604  CC="$ac_save_CC $ac_arg"
3605  if ac_fn_c_try_compile "$LINENO"; then :
3606  ac_cv_prog_cc_c89=$ac_arg
3607fi
3608rm -f core conftest.err conftest.$ac_objext
3609  test "x$ac_cv_prog_cc_c89" != "xno" && break
3610done
3611rm -f conftest.$ac_ext
3612CC=$ac_save_CC
3613
3614fi
3615# AC_CACHE_VAL
3616case "x$ac_cv_prog_cc_c89" in
3617  x)
3618    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3619$as_echo "none needed" >&6; } ;;
3620  xno)
3621    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3622$as_echo "unsupported" >&6; } ;;
3623  *)
3624    CC="$CC $ac_cv_prog_cc_c89"
3625    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3626$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3627esac
3628if test "x$ac_cv_prog_cc_c89" != xno; then :
3629
3630fi
3631
3632ac_ext=c
3633ac_cpp='$CPP $CPPFLAGS'
3634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637DEPDIR="${am__leading_dot}deps"
3638
3639ac_config_commands="$ac_config_commands depfiles"
3640
3641
3642am_make=${MAKE-make}
3643cat > confinc << 'END'
3644am__doit:
3645	@echo this is the am__doit target
3646.PHONY: am__doit
3647END
3648# If we don't find an include directive, just comment out the code.
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3650$as_echo_n "checking for style of include used by $am_make... " >&6; }
3651am__include="#"
3652am__quote=
3653_am_result=none
3654# First try GNU make style include.
3655echo "include confinc" > confmf
3656# Ignore all kinds of additional output from `make'.
3657case `$am_make -s -f confmf 2> /dev/null` in #(
3658*the\ am__doit\ target*)
3659  am__include=include
3660  am__quote=
3661  _am_result=GNU
3662  ;;
3663esac
3664# Now try BSD make style include.
3665if test "$am__include" = "#"; then
3666   echo '.include "confinc"' > confmf
3667   case `$am_make -s -f confmf 2> /dev/null` in #(
3668   *the\ am__doit\ target*)
3669     am__include=.include
3670     am__quote="\""
3671     _am_result=BSD
3672     ;;
3673   esac
3674fi
3675
3676
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3678$as_echo "$_am_result" >&6; }
3679rm -f confinc confmf
3680
3681# Check whether --enable-dependency-tracking was given.
3682if test "${enable_dependency_tracking+set}" = set; then :
3683  enableval=$enable_dependency_tracking;
3684fi
3685
3686if test "x$enable_dependency_tracking" != xno; then
3687  am_depcomp="$ac_aux_dir/depcomp"
3688  AMDEPBACKSLASH='\'
3689  am__nodep='_no'
3690fi
3691 if test "x$enable_dependency_tracking" != xno; then
3692  AMDEP_TRUE=
3693  AMDEP_FALSE='#'
3694else
3695  AMDEP_TRUE='#'
3696  AMDEP_FALSE=
3697fi
3698
3699
3700
3701depcc="$CC"   am_compiler_list=
3702
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3704$as_echo_n "checking dependency style of $depcc... " >&6; }
3705if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3706  $as_echo_n "(cached) " >&6
3707else
3708  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3709  # We make a subdir and do the tests there.  Otherwise we can end up
3710  # making bogus files that we don't know about and never remove.  For
3711  # instance it was reported that on HP-UX the gcc test will end up
3712  # making a dummy file named `D' -- because `-MD' means `put the output
3713  # in D'.
3714  rm -rf conftest.dir
3715  mkdir conftest.dir
3716  # Copy depcomp to subdir because otherwise we won't find it if we're
3717  # using a relative directory.
3718  cp "$am_depcomp" conftest.dir
3719  cd conftest.dir
3720  # We will build objects and dependencies in a subdirectory because
3721  # it helps to detect inapplicable dependency modes.  For instance
3722  # both Tru64's cc and ICC support -MD to output dependencies as a
3723  # side effect of compilation, but ICC will put the dependencies in
3724  # the current directory while Tru64 will put them in the object
3725  # directory.
3726  mkdir sub
3727
3728  am_cv_CC_dependencies_compiler_type=none
3729  if test "$am_compiler_list" = ""; then
3730     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3731  fi
3732  am__universal=false
3733  case " $depcc " in #(
3734     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3735     esac
3736
3737  for depmode in $am_compiler_list; do
3738    # Setup a source with many dependencies, because some compilers
3739    # like to wrap large dependency lists on column 80 (with \), and
3740    # we should not choose a depcomp mode which is confused by this.
3741    #
3742    # We need to recreate these files for each test, as the compiler may
3743    # overwrite some of them when testing with obscure command lines.
3744    # This happens at least with the AIX C compiler.
3745    : > sub/conftest.c
3746    for i in 1 2 3 4 5 6; do
3747      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3748      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3749      # Solaris 8's {/usr,}/bin/sh.
3750      touch sub/conftst$i.h
3751    done
3752    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3753
3754    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3755    # mode.  It turns out that the SunPro C++ compiler does not properly
3756    # handle `-M -o', and we need to detect this.  Also, some Intel
3757    # versions had trouble with output in subdirs
3758    am__obj=sub/conftest.${OBJEXT-o}
3759    am__minus_obj="-o $am__obj"
3760    case $depmode in
3761    gcc)
3762      # This depmode causes a compiler race in universal mode.
3763      test "$am__universal" = false || continue
3764      ;;
3765    nosideeffect)
3766      # after this tag, mechanisms are not by side-effect, so they'll
3767      # only be used when explicitly requested
3768      if test "x$enable_dependency_tracking" = xyes; then
3769	continue
3770      else
3771	break
3772      fi
3773      ;;
3774    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3775      # This compiler won't grok `-c -o', but also, the minuso test has
3776      # not run yet.  These depmodes are late enough in the game, and
3777      # so weak that their functioning should not be impacted.
3778      am__obj=conftest.${OBJEXT-o}
3779      am__minus_obj=
3780      ;;
3781    none) break ;;
3782    esac
3783    if depmode=$depmode \
3784       source=sub/conftest.c object=$am__obj \
3785       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3786       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3787         >/dev/null 2>conftest.err &&
3788       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3789       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3790       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3791       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3792      # icc doesn't choke on unknown options, it will just issue warnings
3793      # or remarks (even with -Werror).  So we grep stderr for any message
3794      # that says an option was ignored or not supported.
3795      # When given -MP, icc 7.0 and 7.1 complain thusly:
3796      #   icc: Command line warning: ignoring option '-M'; no argument required
3797      # The diagnosis changed in icc 8.0:
3798      #   icc: Command line remark: option '-MP' not supported
3799      if (grep 'ignoring option' conftest.err ||
3800          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3801        am_cv_CC_dependencies_compiler_type=$depmode
3802        break
3803      fi
3804    fi
3805  done
3806
3807  cd ..
3808  rm -rf conftest.dir
3809else
3810  am_cv_CC_dependencies_compiler_type=none
3811fi
3812
3813fi
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3815$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3816CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3817
3818 if
3819  test "x$enable_dependency_tracking" != xno \
3820  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3821  am__fastdepCC_TRUE=
3822  am__fastdepCC_FALSE='#'
3823else
3824  am__fastdepCC_TRUE='#'
3825  am__fastdepCC_FALSE=
3826fi
3827
3828
3829ac_ext=cpp
3830ac_cpp='$CXXCPP $CPPFLAGS'
3831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3834if test -z "$CXX"; then
3835  if test -n "$CCC"; then
3836    CXX=$CCC
3837  else
3838    if test -n "$ac_tool_prefix"; then
3839  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3840  do
3841    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3842set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844$as_echo_n "checking for $ac_word... " >&6; }
3845if test "${ac_cv_prog_CXX+set}" = set; then :
3846  $as_echo_n "(cached) " >&6
3847else
3848  if test -n "$CXX"; then
3849  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3850else
3851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH
3853do
3854  IFS=$as_save_IFS
3855  test -z "$as_dir" && as_dir=.
3856    for ac_exec_ext in '' $ac_executable_extensions; do
3857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3858    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860    break 2
3861  fi
3862done
3863  done
3864IFS=$as_save_IFS
3865
3866fi
3867fi
3868CXX=$ac_cv_prog_CXX
3869if test -n "$CXX"; then
3870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3871$as_echo "$CXX" >&6; }
3872else
3873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874$as_echo "no" >&6; }
3875fi
3876
3877
3878    test -n "$CXX" && break
3879  done
3880fi
3881if test -z "$CXX"; then
3882  ac_ct_CXX=$CXX
3883  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3884do
3885  # Extract the first word of "$ac_prog", so it can be a program name with args.
3886set dummy $ac_prog; ac_word=$2
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3888$as_echo_n "checking for $ac_word... " >&6; }
3889if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3890  $as_echo_n "(cached) " >&6
3891else
3892  if test -n "$ac_ct_CXX"; then
3893  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3894else
3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896for as_dir in $PATH
3897do
3898  IFS=$as_save_IFS
3899  test -z "$as_dir" && as_dir=.
3900    for ac_exec_ext in '' $ac_executable_extensions; do
3901  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3902    ac_cv_prog_ac_ct_CXX="$ac_prog"
3903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904    break 2
3905  fi
3906done
3907  done
3908IFS=$as_save_IFS
3909
3910fi
3911fi
3912ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3913if test -n "$ac_ct_CXX"; then
3914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3915$as_echo "$ac_ct_CXX" >&6; }
3916else
3917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918$as_echo "no" >&6; }
3919fi
3920
3921
3922  test -n "$ac_ct_CXX" && break
3923done
3924
3925  if test "x$ac_ct_CXX" = x; then
3926    CXX="g++"
3927  else
3928    case $cross_compiling:$ac_tool_warned in
3929yes:)
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3932ac_tool_warned=yes ;;
3933esac
3934    CXX=$ac_ct_CXX
3935  fi
3936fi
3937
3938  fi
3939fi
3940# Provide some information about the compiler.
3941$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3942set X $ac_compile
3943ac_compiler=$2
3944for ac_option in --version -v -V -qversion; do
3945  { { ac_try="$ac_compiler $ac_option >&5"
3946case "(($ac_try" in
3947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948  *) ac_try_echo=$ac_try;;
3949esac
3950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3951$as_echo "$ac_try_echo"; } >&5
3952  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3953  ac_status=$?
3954  if test -s conftest.err; then
3955    sed '10a\
3956... rest of stderr output deleted ...
3957         10q' conftest.err >conftest.er1
3958    cat conftest.er1 >&5
3959    rm -f conftest.er1 conftest.err
3960  fi
3961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962  test $ac_status = 0; }
3963done
3964
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3966$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3967if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3968  $as_echo_n "(cached) " >&6
3969else
3970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971/* end confdefs.h.  */
3972
3973int
3974main ()
3975{
3976#ifndef __GNUC__
3977       choke me
3978#endif
3979
3980  ;
3981  return 0;
3982}
3983_ACEOF
3984if ac_fn_cxx_try_compile "$LINENO"; then :
3985  ac_compiler_gnu=yes
3986else
3987  ac_compiler_gnu=no
3988fi
3989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3991
3992fi
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3994$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3995if test $ac_compiler_gnu = yes; then
3996  GXX=yes
3997else
3998  GXX=
3999fi
4000ac_test_CXXFLAGS=${CXXFLAGS+set}
4001ac_save_CXXFLAGS=$CXXFLAGS
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4003$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4004if test "${ac_cv_prog_cxx_g+set}" = set; then :
4005  $as_echo_n "(cached) " >&6
4006else
4007  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4008   ac_cxx_werror_flag=yes
4009   ac_cv_prog_cxx_g=no
4010   CXXFLAGS="-g"
4011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h.  */
4013
4014int
4015main ()
4016{
4017
4018  ;
4019  return 0;
4020}
4021_ACEOF
4022if ac_fn_cxx_try_compile "$LINENO"; then :
4023  ac_cv_prog_cxx_g=yes
4024else
4025  CXXFLAGS=""
4026      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h.  */
4028
4029int
4030main ()
4031{
4032
4033  ;
4034  return 0;
4035}
4036_ACEOF
4037if ac_fn_cxx_try_compile "$LINENO"; then :
4038
4039else
4040  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4041	 CXXFLAGS="-g"
4042	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h.  */
4044
4045int
4046main ()
4047{
4048
4049  ;
4050  return 0;
4051}
4052_ACEOF
4053if ac_fn_cxx_try_compile "$LINENO"; then :
4054  ac_cv_prog_cxx_g=yes
4055fi
4056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057fi
4058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059fi
4060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4062fi
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4064$as_echo "$ac_cv_prog_cxx_g" >&6; }
4065if test "$ac_test_CXXFLAGS" = set; then
4066  CXXFLAGS=$ac_save_CXXFLAGS
4067elif test $ac_cv_prog_cxx_g = yes; then
4068  if test "$GXX" = yes; then
4069    CXXFLAGS="-g -O2"
4070  else
4071    CXXFLAGS="-g"
4072  fi
4073else
4074  if test "$GXX" = yes; then
4075    CXXFLAGS="-O2"
4076  else
4077    CXXFLAGS=
4078  fi
4079fi
4080ac_ext=c
4081ac_cpp='$CPP $CPPFLAGS'
4082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085
4086depcc="$CXX"  am_compiler_list=
4087
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4089$as_echo_n "checking dependency style of $depcc... " >&6; }
4090if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4091  $as_echo_n "(cached) " >&6
4092else
4093  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4094  # We make a subdir and do the tests there.  Otherwise we can end up
4095  # making bogus files that we don't know about and never remove.  For
4096  # instance it was reported that on HP-UX the gcc test will end up
4097  # making a dummy file named `D' -- because `-MD' means `put the output
4098  # in D'.
4099  rm -rf conftest.dir
4100  mkdir conftest.dir
4101  # Copy depcomp to subdir because otherwise we won't find it if we're
4102  # using a relative directory.
4103  cp "$am_depcomp" conftest.dir
4104  cd conftest.dir
4105  # We will build objects and dependencies in a subdirectory because
4106  # it helps to detect inapplicable dependency modes.  For instance
4107  # both Tru64's cc and ICC support -MD to output dependencies as a
4108  # side effect of compilation, but ICC will put the dependencies in
4109  # the current directory while Tru64 will put them in the object
4110  # directory.
4111  mkdir sub
4112
4113  am_cv_CXX_dependencies_compiler_type=none
4114  if test "$am_compiler_list" = ""; then
4115     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4116  fi
4117  am__universal=false
4118  case " $depcc " in #(
4119     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4120     esac
4121
4122  for depmode in $am_compiler_list; do
4123    # Setup a source with many dependencies, because some compilers
4124    # like to wrap large dependency lists on column 80 (with \), and
4125    # we should not choose a depcomp mode which is confused by this.
4126    #
4127    # We need to recreate these files for each test, as the compiler may
4128    # overwrite some of them when testing with obscure command lines.
4129    # This happens at least with the AIX C compiler.
4130    : > sub/conftest.c
4131    for i in 1 2 3 4 5 6; do
4132      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4133      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4134      # Solaris 8's {/usr,}/bin/sh.
4135      touch sub/conftst$i.h
4136    done
4137    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4138
4139    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4140    # mode.  It turns out that the SunPro C++ compiler does not properly
4141    # handle `-M -o', and we need to detect this.  Also, some Intel
4142    # versions had trouble with output in subdirs
4143    am__obj=sub/conftest.${OBJEXT-o}
4144    am__minus_obj="-o $am__obj"
4145    case $depmode in
4146    gcc)
4147      # This depmode causes a compiler race in universal mode.
4148      test "$am__universal" = false || continue
4149      ;;
4150    nosideeffect)
4151      # after this tag, mechanisms are not by side-effect, so they'll
4152      # only be used when explicitly requested
4153      if test "x$enable_dependency_tracking" = xyes; then
4154	continue
4155      else
4156	break
4157      fi
4158      ;;
4159    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4160      # This compiler won't grok `-c -o', but also, the minuso test has
4161      # not run yet.  These depmodes are late enough in the game, and
4162      # so weak that their functioning should not be impacted.
4163      am__obj=conftest.${OBJEXT-o}
4164      am__minus_obj=
4165      ;;
4166    none) break ;;
4167    esac
4168    if depmode=$depmode \
4169       source=sub/conftest.c object=$am__obj \
4170       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4171       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4172         >/dev/null 2>conftest.err &&
4173       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4174       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4175       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4176       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4177      # icc doesn't choke on unknown options, it will just issue warnings
4178      # or remarks (even with -Werror).  So we grep stderr for any message
4179      # that says an option was ignored or not supported.
4180      # When given -MP, icc 7.0 and 7.1 complain thusly:
4181      #   icc: Command line warning: ignoring option '-M'; no argument required
4182      # The diagnosis changed in icc 8.0:
4183      #   icc: Command line remark: option '-MP' not supported
4184      if (grep 'ignoring option' conftest.err ||
4185          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4186        am_cv_CXX_dependencies_compiler_type=$depmode
4187        break
4188      fi
4189    fi
4190  done
4191
4192  cd ..
4193  rm -rf conftest.dir
4194else
4195  am_cv_CXX_dependencies_compiler_type=none
4196fi
4197
4198fi
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4200$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4201CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4202
4203 if
4204  test "x$enable_dependency_tracking" != xno \
4205  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4206  am__fastdepCXX_TRUE=
4207  am__fastdepCXX_FALSE='#'
4208else
4209  am__fastdepCXX_TRUE='#'
4210  am__fastdepCXX_FALSE=
4211fi
4212
4213
4214ac_config_files="$ac_config_files Makefile"
4215
4216# Default to --enable-multilib
4217# Check whether --enable-multilib was given.
4218if test "${enable_multilib+set}" = set; then :
4219  enableval=$enable_multilib; case "$enableval" in
4220  yes) multilib=yes ;;
4221  no)  multilib=no ;;
4222  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
4223 esac
4224else
4225  multilib=yes
4226fi
4227
4228
4229# We may get other options which we leave undocumented:
4230# --with-target-subdir, --with-multisrctop, --with-multisubdir
4231# See config-ml.in if you want the gory details.
4232
4233if test "$srcdir" = "."; then
4234  if test "$with_target_subdir" != "."; then
4235    multi_basedir="$srcdir/$with_multisrctop../../.."
4236  else
4237    multi_basedir="$srcdir/$with_multisrctop../.."
4238  fi
4239else
4240  multi_basedir="$srcdir/../.."
4241fi
4242
4243
4244# Even if the default multilib is not a cross compilation,
4245# it may be that some of the other multilibs are.
4246if test $cross_compiling = no && test $multilib = yes \
4247   && test "x${with_multisubdir}" != x ; then
4248   cross_compiling=maybe
4249fi
4250
4251ac_config_commands="$ac_config_commands default-1"
4252
4253
4254if test "${multilib}" = "yes"; then
4255  multilib_arg="--enable-multilib"
4256else
4257  multilib_arg=
4258fi
4259
4260# Make sure liboffloadmic is enabled
4261case "$enable_liboffloadmic" in
4262  host | target)
4263    ;;
4264  *)
4265    as_fn_error "Liboffloadmic is disabled" "$LINENO" 5 ;;
4266esac
4267 if test x"$enable_liboffloadmic" = xhost; then
4268  PLUGIN_HOST_TRUE=
4269  PLUGIN_HOST_FALSE='#'
4270else
4271  PLUGIN_HOST_TRUE='#'
4272  PLUGIN_HOST_FALSE=
4273fi
4274
4275
4276# Get accel target and path to build or install tree of accel compiler
4277accel_search_dir=
4278accel_target=
4279if test x"$enable_liboffloadmic" = xhost; then
4280  for accel in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
4281    accel_name=`echo $accel | sed 's/=.*//'`
4282    accel_dir=`echo $accel | grep '=' | sed 's/.*=//'`
4283    case "$accel_name" in
4284      *-intelmic-* | *-intelmicemul-*)
4285	accel_target=$accel_name
4286	accel_search_dir=$accel_dir
4287	;;
4288    esac
4289  done
4290  if test x"$accel_target" = x; then
4291    as_fn_error "--enable-offload-targets does not contain intelmic target" "$LINENO" 5
4292  fi
4293fi
4294
4295
4296
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4298$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4299# Check whether --enable-version-specific-runtime-libs was given.
4300if test "${enable_version_specific_runtime_libs+set}" = set; then :
4301  enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4302    yes) enable_version_specific_runtime_libs=yes ;;
4303    no)  enable_version_specific_runtime_libs=no ;;
4304    *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
4305   esac
4306else
4307  enable_version_specific_runtime_libs=no
4308fi
4309
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
4311$as_echo "$enable_version_specific_runtime_libs" >&6; }
4312
4313
4314# Calculate toolexeclibdir.
4315# Also toolexecdir, though it's only used in toolexeclibdir.
4316case ${enable_version_specific_runtime_libs} in
4317  yes)
4318    # Need the gcc compiler version to know where to install libraries
4319    # and header files if --enable-version-specific-runtime-libs option
4320    # is selected.
4321    toolexecdir='$(libdir)/gcc/$(target_alias)'
4322    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4323    ;;
4324  no)
4325    if test -n "$with_cross_host" &&
4326       test x"$with_cross_host" != x"no"; then
4327      # Install a library built with a cross compiler in tooldir, not libdir.
4328      toolexecdir='$(exec_prefix)/$(target_alias)'
4329      toolexeclibdir='$(toolexecdir)/lib'
4330    else
4331      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4332      toolexeclibdir='$(libdir)'
4333    fi
4334    multi_os_directory=`$CC -print-multi-os-directory`
4335    case $multi_os_directory in
4336      .) ;; # Avoid trailing /.
4337      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4338    esac
4339    ;;
4340esac
4341
4342enable_dlopen=yes
4343
4344
4345
4346case `pwd` in
4347  *\ * | *\	*)
4348    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4349$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4350esac
4351
4352
4353
4354macro_version='2.2.7a'
4355macro_revision='1.3134'
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369ltmain="$ac_aux_dir/ltmain.sh"
4370
4371# Backslashify metacharacters that are still active within
4372# double-quoted strings.
4373sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4374
4375# Same as above, but do not quote variable references.
4376double_quote_subst='s/\(["`\\]\)/\\\1/g'
4377
4378# Sed substitution to delay expansion of an escaped shell variable in a
4379# double_quote_subst'ed string.
4380delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4381
4382# Sed substitution to delay expansion of an escaped single quote.
4383delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4384
4385# Sed substitution to avoid accidental globbing in evaled expressions
4386no_glob_subst='s/\*/\\\*/g'
4387
4388ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4389ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4390ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4391
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4393$as_echo_n "checking how to print strings... " >&6; }
4394# Test print first, because it will be a builtin if present.
4395if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4396   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4397  ECHO='print -r --'
4398elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4399  ECHO='printf %s\n'
4400else
4401  # Use this function as a fallback that always works.
4402  func_fallback_echo ()
4403  {
4404    eval 'cat <<_LTECHO_EOF
4405$1
4406_LTECHO_EOF'
4407  }
4408  ECHO='func_fallback_echo'
4409fi
4410
4411# func_echo_all arg...
4412# Invoke $ECHO with all args, space-separated.
4413func_echo_all ()
4414{
4415    $ECHO ""
4416}
4417
4418case "$ECHO" in
4419  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4420$as_echo "printf" >&6; } ;;
4421  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4422$as_echo "print -r" >&6; } ;;
4423  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4424$as_echo "cat" >&6; } ;;
4425esac
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4441$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4442if test "${ac_cv_path_SED+set}" = set; then :
4443  $as_echo_n "(cached) " >&6
4444else
4445            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4446     for ac_i in 1 2 3 4 5 6 7; do
4447       ac_script="$ac_script$as_nl$ac_script"
4448     done
4449     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4450     { ac_script=; unset ac_script;}
4451     if test -z "$SED"; then
4452  ac_path_SED_found=false
4453  # Loop through the user's path and test for each of PROGNAME-LIST
4454  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455for as_dir in $PATH
4456do
4457  IFS=$as_save_IFS
4458  test -z "$as_dir" && as_dir=.
4459    for ac_prog in sed gsed; do
4460    for ac_exec_ext in '' $ac_executable_extensions; do
4461      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4462      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4463# Check for GNU ac_path_SED and select it if it is found.
4464  # Check for GNU $ac_path_SED
4465case `"$ac_path_SED" --version 2>&1` in
4466*GNU*)
4467  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4468*)
4469  ac_count=0
4470  $as_echo_n 0123456789 >"conftest.in"
4471  while :
4472  do
4473    cat "conftest.in" "conftest.in" >"conftest.tmp"
4474    mv "conftest.tmp" "conftest.in"
4475    cp "conftest.in" "conftest.nl"
4476    $as_echo '' >> "conftest.nl"
4477    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4478    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4479    as_fn_arith $ac_count + 1 && ac_count=$as_val
4480    if test $ac_count -gt ${ac_path_SED_max-0}; then
4481      # Best one so far, save it but keep looking for a better one
4482      ac_cv_path_SED="$ac_path_SED"
4483      ac_path_SED_max=$ac_count
4484    fi
4485    # 10*(2^10) chars as input seems more than enough
4486    test $ac_count -gt 10 && break
4487  done
4488  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4489esac
4490
4491      $ac_path_SED_found && break 3
4492    done
4493  done
4494  done
4495IFS=$as_save_IFS
4496  if test -z "$ac_cv_path_SED"; then
4497    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4498  fi
4499else
4500  ac_cv_path_SED=$SED
4501fi
4502
4503fi
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4505$as_echo "$ac_cv_path_SED" >&6; }
4506 SED="$ac_cv_path_SED"
4507  rm -f conftest.sed
4508
4509test -z "$SED" && SED=sed
4510Xsed="$SED -e 1s/^X//"
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4523$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4524if test "${ac_cv_path_GREP+set}" = set; then :
4525  $as_echo_n "(cached) " >&6
4526else
4527  if test -z "$GREP"; then
4528  ac_path_GREP_found=false
4529  # Loop through the user's path and test for each of PROGNAME-LIST
4530  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4532do
4533  IFS=$as_save_IFS
4534  test -z "$as_dir" && as_dir=.
4535    for ac_prog in grep ggrep; do
4536    for ac_exec_ext in '' $ac_executable_extensions; do
4537      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4538      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4539# Check for GNU ac_path_GREP and select it if it is found.
4540  # Check for GNU $ac_path_GREP
4541case `"$ac_path_GREP" --version 2>&1` in
4542*GNU*)
4543  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4544*)
4545  ac_count=0
4546  $as_echo_n 0123456789 >"conftest.in"
4547  while :
4548  do
4549    cat "conftest.in" "conftest.in" >"conftest.tmp"
4550    mv "conftest.tmp" "conftest.in"
4551    cp "conftest.in" "conftest.nl"
4552    $as_echo 'GREP' >> "conftest.nl"
4553    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4554    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4555    as_fn_arith $ac_count + 1 && ac_count=$as_val
4556    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4557      # Best one so far, save it but keep looking for a better one
4558      ac_cv_path_GREP="$ac_path_GREP"
4559      ac_path_GREP_max=$ac_count
4560    fi
4561    # 10*(2^10) chars as input seems more than enough
4562    test $ac_count -gt 10 && break
4563  done
4564  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4565esac
4566
4567      $ac_path_GREP_found && break 3
4568    done
4569  done
4570  done
4571IFS=$as_save_IFS
4572  if test -z "$ac_cv_path_GREP"; then
4573    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4574  fi
4575else
4576  ac_cv_path_GREP=$GREP
4577fi
4578
4579fi
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4581$as_echo "$ac_cv_path_GREP" >&6; }
4582 GREP="$ac_cv_path_GREP"
4583
4584
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4586$as_echo_n "checking for egrep... " >&6; }
4587if test "${ac_cv_path_EGREP+set}" = set; then :
4588  $as_echo_n "(cached) " >&6
4589else
4590  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4591   then ac_cv_path_EGREP="$GREP -E"
4592   else
4593     if test -z "$EGREP"; then
4594  ac_path_EGREP_found=false
4595  # Loop through the user's path and test for each of PROGNAME-LIST
4596  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4598do
4599  IFS=$as_save_IFS
4600  test -z "$as_dir" && as_dir=.
4601    for ac_prog in egrep; do
4602    for ac_exec_ext in '' $ac_executable_extensions; do
4603      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4604      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4605# Check for GNU ac_path_EGREP and select it if it is found.
4606  # Check for GNU $ac_path_EGREP
4607case `"$ac_path_EGREP" --version 2>&1` in
4608*GNU*)
4609  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4610*)
4611  ac_count=0
4612  $as_echo_n 0123456789 >"conftest.in"
4613  while :
4614  do
4615    cat "conftest.in" "conftest.in" >"conftest.tmp"
4616    mv "conftest.tmp" "conftest.in"
4617    cp "conftest.in" "conftest.nl"
4618    $as_echo 'EGREP' >> "conftest.nl"
4619    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4620    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4621    as_fn_arith $ac_count + 1 && ac_count=$as_val
4622    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4623      # Best one so far, save it but keep looking for a better one
4624      ac_cv_path_EGREP="$ac_path_EGREP"
4625      ac_path_EGREP_max=$ac_count
4626    fi
4627    # 10*(2^10) chars as input seems more than enough
4628    test $ac_count -gt 10 && break
4629  done
4630  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4631esac
4632
4633      $ac_path_EGREP_found && break 3
4634    done
4635  done
4636  done
4637IFS=$as_save_IFS
4638  if test -z "$ac_cv_path_EGREP"; then
4639    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4640  fi
4641else
4642  ac_cv_path_EGREP=$EGREP
4643fi
4644
4645   fi
4646fi
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4648$as_echo "$ac_cv_path_EGREP" >&6; }
4649 EGREP="$ac_cv_path_EGREP"
4650
4651
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4653$as_echo_n "checking for fgrep... " >&6; }
4654if test "${ac_cv_path_FGREP+set}" = set; then :
4655  $as_echo_n "(cached) " >&6
4656else
4657  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4658   then ac_cv_path_FGREP="$GREP -F"
4659   else
4660     if test -z "$FGREP"; then
4661  ac_path_FGREP_found=false
4662  # Loop through the user's path and test for each of PROGNAME-LIST
4663  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4665do
4666  IFS=$as_save_IFS
4667  test -z "$as_dir" && as_dir=.
4668    for ac_prog in fgrep; do
4669    for ac_exec_ext in '' $ac_executable_extensions; do
4670      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4671      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4672# Check for GNU ac_path_FGREP and select it if it is found.
4673  # Check for GNU $ac_path_FGREP
4674case `"$ac_path_FGREP" --version 2>&1` in
4675*GNU*)
4676  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4677*)
4678  ac_count=0
4679  $as_echo_n 0123456789 >"conftest.in"
4680  while :
4681  do
4682    cat "conftest.in" "conftest.in" >"conftest.tmp"
4683    mv "conftest.tmp" "conftest.in"
4684    cp "conftest.in" "conftest.nl"
4685    $as_echo 'FGREP' >> "conftest.nl"
4686    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4687    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4688    as_fn_arith $ac_count + 1 && ac_count=$as_val
4689    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4690      # Best one so far, save it but keep looking for a better one
4691      ac_cv_path_FGREP="$ac_path_FGREP"
4692      ac_path_FGREP_max=$ac_count
4693    fi
4694    # 10*(2^10) chars as input seems more than enough
4695    test $ac_count -gt 10 && break
4696  done
4697  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4698esac
4699
4700      $ac_path_FGREP_found && break 3
4701    done
4702  done
4703  done
4704IFS=$as_save_IFS
4705  if test -z "$ac_cv_path_FGREP"; then
4706    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4707  fi
4708else
4709  ac_cv_path_FGREP=$FGREP
4710fi
4711
4712   fi
4713fi
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4715$as_echo "$ac_cv_path_FGREP" >&6; }
4716 FGREP="$ac_cv_path_FGREP"
4717
4718
4719test -z "$GREP" && GREP=grep
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739# Check whether --with-gnu-ld was given.
4740if test "${with_gnu_ld+set}" = set; then :
4741  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4742else
4743  with_gnu_ld=no
4744fi
4745
4746ac_prog=ld
4747if test "$GCC" = yes; then
4748  # Check if gcc -print-prog-name=ld gives a path.
4749  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4750$as_echo_n "checking for ld used by $CC... " >&6; }
4751  case $host in
4752  *-*-mingw*)
4753    # gcc leaves a trailing carriage return which upsets mingw
4754    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4755  *)
4756    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4757  esac
4758  case $ac_prog in
4759    # Accept absolute paths.
4760    [\\/]* | ?:[\\/]*)
4761      re_direlt='/[^/][^/]*/\.\./'
4762      # Canonicalize the pathname of ld
4763      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4764      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4765	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4766      done
4767      test -z "$LD" && LD="$ac_prog"
4768      ;;
4769  "")
4770    # If it fails, then pretend we aren't using GCC.
4771    ac_prog=ld
4772    ;;
4773  *)
4774    # If it is relative, then search for the first ld in PATH.
4775    with_gnu_ld=unknown
4776    ;;
4777  esac
4778elif test "$with_gnu_ld" = yes; then
4779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4780$as_echo_n "checking for GNU ld... " >&6; }
4781else
4782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4783$as_echo_n "checking for non-GNU ld... " >&6; }
4784fi
4785if test "${lt_cv_path_LD+set}" = set; then :
4786  $as_echo_n "(cached) " >&6
4787else
4788  if test -z "$LD"; then
4789  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4790  for ac_dir in $PATH; do
4791    IFS="$lt_save_ifs"
4792    test -z "$ac_dir" && ac_dir=.
4793    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4794      lt_cv_path_LD="$ac_dir/$ac_prog"
4795      # Check to see if the program is GNU ld.  I'd rather use --version,
4796      # but apparently some variants of GNU ld only accept -v.
4797      # Break only if it was the GNU/non-GNU ld that we prefer.
4798      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4799      *GNU* | *'with BFD'*)
4800	test "$with_gnu_ld" != no && break
4801	;;
4802      *)
4803	test "$with_gnu_ld" != yes && break
4804	;;
4805      esac
4806    fi
4807  done
4808  IFS="$lt_save_ifs"
4809else
4810  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4811fi
4812fi
4813
4814LD="$lt_cv_path_LD"
4815if test -n "$LD"; then
4816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4817$as_echo "$LD" >&6; }
4818else
4819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820$as_echo "no" >&6; }
4821fi
4822test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4824$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4825if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4826  $as_echo_n "(cached) " >&6
4827else
4828  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4829case `$LD -v 2>&1 </dev/null` in
4830*GNU* | *'with BFD'*)
4831  lt_cv_prog_gnu_ld=yes
4832  ;;
4833*)
4834  lt_cv_prog_gnu_ld=no
4835  ;;
4836esac
4837fi
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4839$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4840with_gnu_ld=$lt_cv_prog_gnu_ld
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4851$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4852if test "${lt_cv_path_NM+set}" = set; then :
4853  $as_echo_n "(cached) " >&6
4854else
4855  if test -n "$NM"; then
4856  # Let the user override the test.
4857  lt_cv_path_NM="$NM"
4858else
4859  lt_nm_to_check="${ac_tool_prefix}nm"
4860  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4861    lt_nm_to_check="$lt_nm_to_check nm"
4862  fi
4863  for lt_tmp_nm in $lt_nm_to_check; do
4864    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4865    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4866      IFS="$lt_save_ifs"
4867      test -z "$ac_dir" && ac_dir=.
4868      tmp_nm="$ac_dir/$lt_tmp_nm"
4869      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4870	# Check to see if the nm accepts a BSD-compat flag.
4871	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4872	#   nm: unknown option "B" ignored
4873	# Tru64's nm complains that /dev/null is an invalid object file
4874	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4875	*/dev/null* | *'Invalid file or object type'*)
4876	  lt_cv_path_NM="$tmp_nm -B"
4877	  break
4878	  ;;
4879	*)
4880	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4881	  */dev/null*)
4882	    lt_cv_path_NM="$tmp_nm -p"
4883	    break
4884	    ;;
4885	  *)
4886	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4887	    continue # so that we can try to find one that supports BSD flags
4888	    ;;
4889	  esac
4890	  ;;
4891	esac
4892      fi
4893    done
4894    IFS="$lt_save_ifs"
4895  done
4896  : ${lt_cv_path_NM=no}
4897fi
4898fi
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4900$as_echo "$lt_cv_path_NM" >&6; }
4901if test "$lt_cv_path_NM" != "no"; then
4902  NM="$lt_cv_path_NM"
4903else
4904  # Didn't find any BSD compatible name lister, look for dumpbin.
4905  if test -n "$DUMPBIN"; then :
4906    # Let the user override the test.
4907  else
4908    if test -n "$ac_tool_prefix"; then
4909  for ac_prog in dumpbin "link -dump"
4910  do
4911    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4912set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914$as_echo_n "checking for $ac_word... " >&6; }
4915if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4916  $as_echo_n "(cached) " >&6
4917else
4918  if test -n "$DUMPBIN"; then
4919  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4920else
4921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922for as_dir in $PATH
4923do
4924  IFS=$as_save_IFS
4925  test -z "$as_dir" && as_dir=.
4926    for ac_exec_ext in '' $ac_executable_extensions; do
4927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4928    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930    break 2
4931  fi
4932done
4933  done
4934IFS=$as_save_IFS
4935
4936fi
4937fi
4938DUMPBIN=$ac_cv_prog_DUMPBIN
4939if test -n "$DUMPBIN"; then
4940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4941$as_echo "$DUMPBIN" >&6; }
4942else
4943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944$as_echo "no" >&6; }
4945fi
4946
4947
4948    test -n "$DUMPBIN" && break
4949  done
4950fi
4951if test -z "$DUMPBIN"; then
4952  ac_ct_DUMPBIN=$DUMPBIN
4953  for ac_prog in dumpbin "link -dump"
4954do
4955  # Extract the first word of "$ac_prog", so it can be a program name with args.
4956set dummy $ac_prog; ac_word=$2
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958$as_echo_n "checking for $ac_word... " >&6; }
4959if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4960  $as_echo_n "(cached) " >&6
4961else
4962  if test -n "$ac_ct_DUMPBIN"; then
4963  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4964else
4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH
4967do
4968  IFS=$as_save_IFS
4969  test -z "$as_dir" && as_dir=.
4970    for ac_exec_ext in '' $ac_executable_extensions; do
4971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974    break 2
4975  fi
4976done
4977  done
4978IFS=$as_save_IFS
4979
4980fi
4981fi
4982ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4983if test -n "$ac_ct_DUMPBIN"; then
4984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4985$as_echo "$ac_ct_DUMPBIN" >&6; }
4986else
4987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988$as_echo "no" >&6; }
4989fi
4990
4991
4992  test -n "$ac_ct_DUMPBIN" && break
4993done
4994
4995  if test "x$ac_ct_DUMPBIN" = x; then
4996    DUMPBIN=":"
4997  else
4998    case $cross_compiling:$ac_tool_warned in
4999yes:)
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5002ac_tool_warned=yes ;;
5003esac
5004    DUMPBIN=$ac_ct_DUMPBIN
5005  fi
5006fi
5007
5008    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5009    *COFF*)
5010      DUMPBIN="$DUMPBIN -symbols"
5011      ;;
5012    *)
5013      DUMPBIN=:
5014      ;;
5015    esac
5016  fi
5017
5018  if test "$DUMPBIN" != ":"; then
5019    NM="$DUMPBIN"
5020  fi
5021fi
5022test -z "$NM" && NM=nm
5023
5024
5025
5026
5027
5028
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5030$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5031if test "${lt_cv_nm_interface+set}" = set; then :
5032  $as_echo_n "(cached) " >&6
5033else
5034  lt_cv_nm_interface="BSD nm"
5035  echo "int some_variable = 0;" > conftest.$ac_ext
5036  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5037  (eval "$ac_compile" 2>conftest.err)
5038  cat conftest.err >&5
5039  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5040  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5041  cat conftest.err >&5
5042  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5043  cat conftest.out >&5
5044  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5045    lt_cv_nm_interface="MS dumpbin"
5046  fi
5047  rm -f conftest*
5048fi
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5050$as_echo "$lt_cv_nm_interface" >&6; }
5051
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5053$as_echo_n "checking whether ln -s works... " >&6; }
5054LN_S=$as_ln_s
5055if test "$LN_S" = "ln -s"; then
5056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5057$as_echo "yes" >&6; }
5058else
5059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5060$as_echo "no, using $LN_S" >&6; }
5061fi
5062
5063# find the maximum length of command line arguments
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5065$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5066if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5067  $as_echo_n "(cached) " >&6
5068else
5069    i=0
5070  teststring="ABCD"
5071
5072  case $build_os in
5073  msdosdjgpp*)
5074    # On DJGPP, this test can blow up pretty badly due to problems in libc
5075    # (any single argument exceeding 2000 bytes causes a buffer overrun
5076    # during glob expansion).  Even if it were fixed, the result of this
5077    # check would be larger than it should be.
5078    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5079    ;;
5080
5081  gnu*)
5082    # Under GNU Hurd, this test is not required because there is
5083    # no limit to the length of command line arguments.
5084    # Libtool will interpret -1 as no limit whatsoever
5085    lt_cv_sys_max_cmd_len=-1;
5086    ;;
5087
5088  cygwin* | mingw* | cegcc*)
5089    # On Win9x/ME, this test blows up -- it succeeds, but takes
5090    # about 5 minutes as the teststring grows exponentially.
5091    # Worse, since 9x/ME are not pre-emptively multitasking,
5092    # you end up with a "frozen" computer, even though with patience
5093    # the test eventually succeeds (with a max line length of 256k).
5094    # Instead, let's just punt: use the minimum linelength reported by
5095    # all of the supported platforms: 8192 (on NT/2K/XP).
5096    lt_cv_sys_max_cmd_len=8192;
5097    ;;
5098
5099  mint*)
5100    # On MiNT this can take a long time and run out of memory.
5101    lt_cv_sys_max_cmd_len=8192;
5102    ;;
5103
5104  amigaos*)
5105    # On AmigaOS with pdksh, this test takes hours, literally.
5106    # So we just punt and use a minimum line length of 8192.
5107    lt_cv_sys_max_cmd_len=8192;
5108    ;;
5109
5110  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5111    # This has been around since 386BSD, at least.  Likely further.
5112    if test -x /sbin/sysctl; then
5113      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5114    elif test -x /usr/sbin/sysctl; then
5115      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5116    else
5117      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5118    fi
5119    # And add a safety zone
5120    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5121    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5122    ;;
5123
5124  interix*)
5125    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5126    lt_cv_sys_max_cmd_len=196608
5127    ;;
5128
5129  osf*)
5130    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5131    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5132    # nice to cause kernel panics so lets avoid the loop below.
5133    # First set a reasonable default.
5134    lt_cv_sys_max_cmd_len=16384
5135    #
5136    if test -x /sbin/sysconfig; then
5137      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5138        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5139      esac
5140    fi
5141    ;;
5142  sco3.2v5*)
5143    lt_cv_sys_max_cmd_len=102400
5144    ;;
5145  sysv5* | sco5v6* | sysv4.2uw2*)
5146    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5147    if test -n "$kargmax"; then
5148      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5149    else
5150      lt_cv_sys_max_cmd_len=32768
5151    fi
5152    ;;
5153  *)
5154    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5155    if test -n "$lt_cv_sys_max_cmd_len"; then
5156      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5157      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5158    else
5159      # Make teststring a little bigger before we do anything with it.
5160      # a 1K string should be a reasonable start.
5161      for i in 1 2 3 4 5 6 7 8 ; do
5162        teststring=$teststring$teststring
5163      done
5164      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5165      # If test is not a shell built-in, we'll probably end up computing a
5166      # maximum length that is only half of the actual maximum length, but
5167      # we can't tell.
5168      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5169	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5170	      test $i != 17 # 1/2 MB should be enough
5171      do
5172        i=`expr $i + 1`
5173        teststring=$teststring$teststring
5174      done
5175      # Only check the string length outside the loop.
5176      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5177      teststring=
5178      # Add a significant safety factor because C++ compilers can tack on
5179      # massive amounts of additional arguments before passing them to the
5180      # linker.  It appears as though 1/2 is a usable value.
5181      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5182    fi
5183    ;;
5184  esac
5185
5186fi
5187
5188if test -n $lt_cv_sys_max_cmd_len ; then
5189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5190$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5191else
5192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5193$as_echo "none" >&6; }
5194fi
5195max_cmd_len=$lt_cv_sys_max_cmd_len
5196
5197
5198
5199
5200
5201
5202: ${CP="cp -f"}
5203: ${MV="mv -f"}
5204: ${RM="rm -f"}
5205
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5207$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5208# Try some XSI features
5209xsi_shell=no
5210( _lt_dummy="a/b/c"
5211  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5212      = c,a/b,, \
5213    && eval 'test $(( 1 + 1 )) -eq 2 \
5214    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5215  && xsi_shell=yes
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5217$as_echo "$xsi_shell" >&6; }
5218
5219
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5221$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5222lt_shell_append=no
5223( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5224    >/dev/null 2>&1 \
5225  && lt_shell_append=yes
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5227$as_echo "$lt_shell_append" >&6; }
5228
5229
5230if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5231  lt_unset=unset
5232else
5233  lt_unset=false
5234fi
5235
5236
5237
5238
5239
5240# test EBCDIC or ASCII
5241case `echo X|tr X '\101'` in
5242 A) # ASCII based system
5243    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5244  lt_SP2NL='tr \040 \012'
5245  lt_NL2SP='tr \015\012 \040\040'
5246  ;;
5247 *) # EBCDIC based system
5248  lt_SP2NL='tr \100 \n'
5249  lt_NL2SP='tr \r\n \100\100'
5250  ;;
5251esac
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5262$as_echo_n "checking for $LD option to reload object files... " >&6; }
5263if test "${lt_cv_ld_reload_flag+set}" = set; then :
5264  $as_echo_n "(cached) " >&6
5265else
5266  lt_cv_ld_reload_flag='-r'
5267fi
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5269$as_echo "$lt_cv_ld_reload_flag" >&6; }
5270reload_flag=$lt_cv_ld_reload_flag
5271case $reload_flag in
5272"" | " "*) ;;
5273*) reload_flag=" $reload_flag" ;;
5274esac
5275reload_cmds='$LD$reload_flag -o $output$reload_objs'
5276case $host_os in
5277  darwin*)
5278    if test "$GCC" = yes; then
5279      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5280    else
5281      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5282    fi
5283    ;;
5284esac
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294if test -n "$ac_tool_prefix"; then
5295  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5296set dummy ${ac_tool_prefix}objdump; ac_word=$2
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298$as_echo_n "checking for $ac_word... " >&6; }
5299if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5300  $as_echo_n "(cached) " >&6
5301else
5302  if test -n "$OBJDUMP"; then
5303  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5304else
5305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306for as_dir in $PATH
5307do
5308  IFS=$as_save_IFS
5309  test -z "$as_dir" && as_dir=.
5310    for ac_exec_ext in '' $ac_executable_extensions; do
5311  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5312    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314    break 2
5315  fi
5316done
5317  done
5318IFS=$as_save_IFS
5319
5320fi
5321fi
5322OBJDUMP=$ac_cv_prog_OBJDUMP
5323if test -n "$OBJDUMP"; then
5324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5325$as_echo "$OBJDUMP" >&6; }
5326else
5327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328$as_echo "no" >&6; }
5329fi
5330
5331
5332fi
5333if test -z "$ac_cv_prog_OBJDUMP"; then
5334  ac_ct_OBJDUMP=$OBJDUMP
5335  # Extract the first word of "objdump", so it can be a program name with args.
5336set dummy objdump; ac_word=$2
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338$as_echo_n "checking for $ac_word... " >&6; }
5339if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5340  $as_echo_n "(cached) " >&6
5341else
5342  if test -n "$ac_ct_OBJDUMP"; then
5343  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5344else
5345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346for as_dir in $PATH
5347do
5348  IFS=$as_save_IFS
5349  test -z "$as_dir" && as_dir=.
5350    for ac_exec_ext in '' $ac_executable_extensions; do
5351  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5352    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354    break 2
5355  fi
5356done
5357  done
5358IFS=$as_save_IFS
5359
5360fi
5361fi
5362ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5363if test -n "$ac_ct_OBJDUMP"; then
5364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5365$as_echo "$ac_ct_OBJDUMP" >&6; }
5366else
5367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368$as_echo "no" >&6; }
5369fi
5370
5371  if test "x$ac_ct_OBJDUMP" = x; then
5372    OBJDUMP="false"
5373  else
5374    case $cross_compiling:$ac_tool_warned in
5375yes:)
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5378ac_tool_warned=yes ;;
5379esac
5380    OBJDUMP=$ac_ct_OBJDUMP
5381  fi
5382else
5383  OBJDUMP="$ac_cv_prog_OBJDUMP"
5384fi
5385
5386test -z "$OBJDUMP" && OBJDUMP=objdump
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5397$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5398if test "${lt_cv_deplibs_check_method+set}" = set; then :
5399  $as_echo_n "(cached) " >&6
5400else
5401  lt_cv_file_magic_cmd='$MAGIC_CMD'
5402lt_cv_file_magic_test_file=
5403lt_cv_deplibs_check_method='unknown'
5404# Need to set the preceding variable on all platforms that support
5405# interlibrary dependencies.
5406# 'none' -- dependencies not supported.
5407# `unknown' -- same as none, but documents that we really don't know.
5408# 'pass_all' -- all dependencies passed with no checks.
5409# 'test_compile' -- check by making test program.
5410# 'file_magic [[regex]]' -- check by looking for files in library path
5411# which responds to the $file_magic_cmd with a given extended regex.
5412# If you have `file' or equivalent on your system and you're not sure
5413# whether `pass_all' will *always* work, you probably want this one.
5414
5415case $host_os in
5416aix[4-9]*)
5417  lt_cv_deplibs_check_method=pass_all
5418  ;;
5419
5420beos*)
5421  lt_cv_deplibs_check_method=pass_all
5422  ;;
5423
5424bsdi[45]*)
5425  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5426  lt_cv_file_magic_cmd='/usr/bin/file -L'
5427  lt_cv_file_magic_test_file=/shlib/libc.so
5428  ;;
5429
5430cygwin*)
5431  # func_win32_libid is a shell function defined in ltmain.sh
5432  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5433  lt_cv_file_magic_cmd='func_win32_libid'
5434  ;;
5435
5436mingw* | pw32*)
5437  # Base MSYS/MinGW do not provide the 'file' command needed by
5438  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5439  # unless we find 'file', for example because we are cross-compiling.
5440  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5441  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5442    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5443    lt_cv_file_magic_cmd='func_win32_libid'
5444  else
5445    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5446    lt_cv_file_magic_cmd='$OBJDUMP -f'
5447  fi
5448  ;;
5449
5450cegcc*)
5451  # use the weaker test based on 'objdump'. See mingw*.
5452  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5453  lt_cv_file_magic_cmd='$OBJDUMP -f'
5454  ;;
5455
5456darwin* | rhapsody*)
5457  lt_cv_deplibs_check_method=pass_all
5458  ;;
5459
5460freebsd* | dragonfly*)
5461  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5462    case $host_cpu in
5463    i*86 )
5464      # Not sure whether the presence of OpenBSD here was a mistake.
5465      # Let's accept both of them until this is cleared up.
5466      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5467      lt_cv_file_magic_cmd=/usr/bin/file
5468      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5469      ;;
5470    esac
5471  else
5472    lt_cv_deplibs_check_method=pass_all
5473  fi
5474  ;;
5475
5476gnu*)
5477  lt_cv_deplibs_check_method=pass_all
5478  ;;
5479
5480haiku*)
5481  lt_cv_deplibs_check_method=pass_all
5482  ;;
5483
5484hpux10.20* | hpux11*)
5485  lt_cv_file_magic_cmd=/usr/bin/file
5486  case $host_cpu in
5487  ia64*)
5488    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5489    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5490    ;;
5491  hppa*64*)
5492    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]'
5493    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5494    ;;
5495  *)
5496    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5497    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5498    ;;
5499  esac
5500  ;;
5501
5502interix[3-9]*)
5503  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5504  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5505  ;;
5506
5507irix5* | irix6* | nonstopux*)
5508  case $LD in
5509  *-32|*"-32 ") libmagic=32-bit;;
5510  *-n32|*"-n32 ") libmagic=N32;;
5511  *-64|*"-64 ") libmagic=64-bit;;
5512  *) libmagic=never-match;;
5513  esac
5514  lt_cv_deplibs_check_method=pass_all
5515  ;;
5516
5517# This must be Linux ELF.
5518linux* | k*bsd*-gnu | kopensolaris*-gnu)
5519  lt_cv_deplibs_check_method=pass_all
5520  ;;
5521
5522netbsd*)
5523  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5524    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5525  else
5526    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5527  fi
5528  ;;
5529
5530newos6*)
5531  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5532  lt_cv_file_magic_cmd=/usr/bin/file
5533  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5534  ;;
5535
5536*nto* | *qnx*)
5537  lt_cv_deplibs_check_method=pass_all
5538  ;;
5539
5540openbsd*)
5541  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5542    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5543  else
5544    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5545  fi
5546  ;;
5547
5548osf3* | osf4* | osf5*)
5549  lt_cv_deplibs_check_method=pass_all
5550  ;;
5551
5552rdos*)
5553  lt_cv_deplibs_check_method=pass_all
5554  ;;
5555
5556solaris*)
5557  lt_cv_deplibs_check_method=pass_all
5558  ;;
5559
5560sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5561  lt_cv_deplibs_check_method=pass_all
5562  ;;
5563
5564sysv4 | sysv4.3*)
5565  case $host_vendor in
5566  motorola)
5567    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]'
5568    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5569    ;;
5570  ncr)
5571    lt_cv_deplibs_check_method=pass_all
5572    ;;
5573  sequent)
5574    lt_cv_file_magic_cmd='/bin/file'
5575    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5576    ;;
5577  sni)
5578    lt_cv_file_magic_cmd='/bin/file'
5579    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5580    lt_cv_file_magic_test_file=/lib/libc.so
5581    ;;
5582  siemens)
5583    lt_cv_deplibs_check_method=pass_all
5584    ;;
5585  pc)
5586    lt_cv_deplibs_check_method=pass_all
5587    ;;
5588  esac
5589  ;;
5590
5591tpf*)
5592  lt_cv_deplibs_check_method=pass_all
5593  ;;
5594esac
5595
5596fi
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5598$as_echo "$lt_cv_deplibs_check_method" >&6; }
5599file_magic_cmd=$lt_cv_file_magic_cmd
5600deplibs_check_method=$lt_cv_deplibs_check_method
5601test -z "$deplibs_check_method" && deplibs_check_method=unknown
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614if test -n "$ac_tool_prefix"; then
5615  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5616set dummy ${ac_tool_prefix}ar; ac_word=$2
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618$as_echo_n "checking for $ac_word... " >&6; }
5619if test "${ac_cv_prog_AR+set}" = set; then :
5620  $as_echo_n "(cached) " >&6
5621else
5622  if test -n "$AR"; then
5623  ac_cv_prog_AR="$AR" # Let the user override the test.
5624else
5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626for as_dir in $PATH
5627do
5628  IFS=$as_save_IFS
5629  test -z "$as_dir" && as_dir=.
5630    for ac_exec_ext in '' $ac_executable_extensions; do
5631  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632    ac_cv_prog_AR="${ac_tool_prefix}ar"
5633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634    break 2
5635  fi
5636done
5637  done
5638IFS=$as_save_IFS
5639
5640fi
5641fi
5642AR=$ac_cv_prog_AR
5643if test -n "$AR"; then
5644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5645$as_echo "$AR" >&6; }
5646else
5647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648$as_echo "no" >&6; }
5649fi
5650
5651
5652fi
5653if test -z "$ac_cv_prog_AR"; then
5654  ac_ct_AR=$AR
5655  # Extract the first word of "ar", so it can be a program name with args.
5656set dummy ar; ac_word=$2
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658$as_echo_n "checking for $ac_word... " >&6; }
5659if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5660  $as_echo_n "(cached) " >&6
5661else
5662  if test -n "$ac_ct_AR"; then
5663  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5664else
5665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666for as_dir in $PATH
5667do
5668  IFS=$as_save_IFS
5669  test -z "$as_dir" && as_dir=.
5670    for ac_exec_ext in '' $ac_executable_extensions; do
5671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5672    ac_cv_prog_ac_ct_AR="ar"
5673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5674    break 2
5675  fi
5676done
5677  done
5678IFS=$as_save_IFS
5679
5680fi
5681fi
5682ac_ct_AR=$ac_cv_prog_ac_ct_AR
5683if test -n "$ac_ct_AR"; then
5684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5685$as_echo "$ac_ct_AR" >&6; }
5686else
5687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688$as_echo "no" >&6; }
5689fi
5690
5691  if test "x$ac_ct_AR" = x; then
5692    AR="false"
5693  else
5694    case $cross_compiling:$ac_tool_warned in
5695yes:)
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5698ac_tool_warned=yes ;;
5699esac
5700    AR=$ac_ct_AR
5701  fi
5702else
5703  AR="$ac_cv_prog_AR"
5704fi
5705
5706test -z "$AR" && AR=ar
5707test -z "$AR_FLAGS" && AR_FLAGS=cru
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719if test -n "$ac_tool_prefix"; then
5720  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5721set dummy ${ac_tool_prefix}strip; ac_word=$2
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723$as_echo_n "checking for $ac_word... " >&6; }
5724if test "${ac_cv_prog_STRIP+set}" = set; then :
5725  $as_echo_n "(cached) " >&6
5726else
5727  if test -n "$STRIP"; then
5728  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5729else
5730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731for as_dir in $PATH
5732do
5733  IFS=$as_save_IFS
5734  test -z "$as_dir" && as_dir=.
5735    for ac_exec_ext in '' $ac_executable_extensions; do
5736  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5737    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739    break 2
5740  fi
5741done
5742  done
5743IFS=$as_save_IFS
5744
5745fi
5746fi
5747STRIP=$ac_cv_prog_STRIP
5748if test -n "$STRIP"; then
5749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5750$as_echo "$STRIP" >&6; }
5751else
5752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753$as_echo "no" >&6; }
5754fi
5755
5756
5757fi
5758if test -z "$ac_cv_prog_STRIP"; then
5759  ac_ct_STRIP=$STRIP
5760  # Extract the first word of "strip", so it can be a program name with args.
5761set dummy strip; ac_word=$2
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763$as_echo_n "checking for $ac_word... " >&6; }
5764if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5765  $as_echo_n "(cached) " >&6
5766else
5767  if test -n "$ac_ct_STRIP"; then
5768  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5769else
5770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771for as_dir in $PATH
5772do
5773  IFS=$as_save_IFS
5774  test -z "$as_dir" && as_dir=.
5775    for ac_exec_ext in '' $ac_executable_extensions; do
5776  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5777    ac_cv_prog_ac_ct_STRIP="strip"
5778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779    break 2
5780  fi
5781done
5782  done
5783IFS=$as_save_IFS
5784
5785fi
5786fi
5787ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5788if test -n "$ac_ct_STRIP"; then
5789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5790$as_echo "$ac_ct_STRIP" >&6; }
5791else
5792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793$as_echo "no" >&6; }
5794fi
5795
5796  if test "x$ac_ct_STRIP" = x; then
5797    STRIP=":"
5798  else
5799    case $cross_compiling:$ac_tool_warned in
5800yes:)
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5802$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5803ac_tool_warned=yes ;;
5804esac
5805    STRIP=$ac_ct_STRIP
5806  fi
5807else
5808  STRIP="$ac_cv_prog_STRIP"
5809fi
5810
5811test -z "$STRIP" && STRIP=:
5812
5813
5814
5815
5816
5817
5818if test -n "$ac_tool_prefix"; then
5819  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5820set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822$as_echo_n "checking for $ac_word... " >&6; }
5823if test "${ac_cv_prog_RANLIB+set}" = set; then :
5824  $as_echo_n "(cached) " >&6
5825else
5826  if test -n "$RANLIB"; then
5827  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832  IFS=$as_save_IFS
5833  test -z "$as_dir" && as_dir=.
5834    for ac_exec_ext in '' $ac_executable_extensions; do
5835  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838    break 2
5839  fi
5840done
5841  done
5842IFS=$as_save_IFS
5843
5844fi
5845fi
5846RANLIB=$ac_cv_prog_RANLIB
5847if test -n "$RANLIB"; then
5848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5849$as_echo "$RANLIB" >&6; }
5850else
5851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852$as_echo "no" >&6; }
5853fi
5854
5855
5856fi
5857if test -z "$ac_cv_prog_RANLIB"; then
5858  ac_ct_RANLIB=$RANLIB
5859  # Extract the first word of "ranlib", so it can be a program name with args.
5860set dummy ranlib; ac_word=$2
5861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862$as_echo_n "checking for $ac_word... " >&6; }
5863if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5864  $as_echo_n "(cached) " >&6
5865else
5866  if test -n "$ac_ct_RANLIB"; then
5867  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5868else
5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870for as_dir in $PATH
5871do
5872  IFS=$as_save_IFS
5873  test -z "$as_dir" && as_dir=.
5874    for ac_exec_ext in '' $ac_executable_extensions; do
5875  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876    ac_cv_prog_ac_ct_RANLIB="ranlib"
5877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878    break 2
5879  fi
5880done
5881  done
5882IFS=$as_save_IFS
5883
5884fi
5885fi
5886ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5887if test -n "$ac_ct_RANLIB"; then
5888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5889$as_echo "$ac_ct_RANLIB" >&6; }
5890else
5891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892$as_echo "no" >&6; }
5893fi
5894
5895  if test "x$ac_ct_RANLIB" = x; then
5896    RANLIB=":"
5897  else
5898    case $cross_compiling:$ac_tool_warned in
5899yes:)
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5902ac_tool_warned=yes ;;
5903esac
5904    RANLIB=$ac_ct_RANLIB
5905  fi
5906else
5907  RANLIB="$ac_cv_prog_RANLIB"
5908fi
5909
5910test -z "$RANLIB" && RANLIB=:
5911
5912
5913
5914
5915
5916
5917# Determine commands to create old-style static archives.
5918old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5919old_postinstall_cmds='chmod 644 $oldlib'
5920old_postuninstall_cmds=
5921
5922if test -n "$RANLIB"; then
5923  case $host_os in
5924  openbsd*)
5925    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5926    ;;
5927  *)
5928    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5929    ;;
5930  esac
5931  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5932fi
5933
5934case $host_os in
5935  darwin*)
5936    lock_old_archive_extraction=yes ;;
5937  *)
5938    lock_old_archive_extraction=no ;;
5939esac
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
5972
5973
5974
5975
5976
5977
5978
5979# If no C compiler was specified, use CC.
5980LTCC=${LTCC-"$CC"}
5981
5982# If no C compiler flags were specified, use CFLAGS.
5983LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5984
5985# Allow CC to be a program name with arguments.
5986compiler=$CC
5987
5988
5989# Check for command to grab the raw symbol name followed by C symbol from nm.
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5991$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5992if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5993  $as_echo_n "(cached) " >&6
5994else
5995
5996# These are sane defaults that work on at least a few old systems.
5997# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5998
5999# Character class describing NM global symbol codes.
6000symcode='[BCDEGRST]'
6001
6002# Regexp to match symbols that can be accessed directly from C.
6003sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6004
6005# Define system-specific variables.
6006case $host_os in
6007aix*)
6008  symcode='[BCDT]'
6009  ;;
6010cygwin* | mingw* | pw32* | cegcc*)
6011  symcode='[ABCDGISTW]'
6012  ;;
6013hpux*)
6014  if test "$host_cpu" = ia64; then
6015    symcode='[ABCDEGRST]'
6016  fi
6017  ;;
6018irix* | nonstopux*)
6019  symcode='[BCDEGRST]'
6020  ;;
6021osf*)
6022  symcode='[BCDEGQRST]'
6023  ;;
6024solaris*)
6025  symcode='[BDRT]'
6026  ;;
6027sco3.2v5*)
6028  symcode='[DT]'
6029  ;;
6030sysv4.2uw2*)
6031  symcode='[DT]'
6032  ;;
6033sysv5* | sco5v6* | unixware* | OpenUNIX*)
6034  symcode='[ABDT]'
6035  ;;
6036sysv4)
6037  symcode='[DFNSTU]'
6038  ;;
6039esac
6040
6041# If we're using GNU nm, then use its standard symbol codes.
6042case `$NM -V 2>&1` in
6043*GNU* | *'with BFD'*)
6044  symcode='[ABCDGIRSTW]' ;;
6045esac
6046
6047# Transform an extracted symbol line into a proper C declaration.
6048# Some systems (esp. on ia64) link data and code symbols differently,
6049# so use this general approach.
6050lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6051
6052# Transform an extracted symbol line into symbol name and symbol address
6053lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6054lt_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'"
6055
6056# Handle CRLF in mingw tool chain
6057opt_cr=
6058case $build_os in
6059mingw*)
6060  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6061  ;;
6062esac
6063
6064# Try without a prefix underscore, then with it.
6065for ac_symprfx in "" "_"; do
6066
6067  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6068  symxfrm="\\1 $ac_symprfx\\2 \\2"
6069
6070  # Write the raw and C identifiers.
6071  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6072    # Fake it for dumpbin and say T for any non-static function
6073    # and D for any global variable.
6074    # Also find C++ and __fastcall symbols from MSVC++,
6075    # which start with @ or ?.
6076    lt_cv_sys_global_symbol_pipe="$AWK '"\
6077"     {last_section=section; section=\$ 3};"\
6078"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6079"     \$ 0!~/External *\|/{next};"\
6080"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6081"     {if(hide[section]) next};"\
6082"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6083"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6084"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6085"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6086"     ' prfx=^$ac_symprfx"
6087  else
6088    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6089  fi
6090
6091  # Check to see that the pipe works correctly.
6092  pipe_works=no
6093
6094  rm -f conftest*
6095  cat > conftest.$ac_ext <<_LT_EOF
6096#ifdef __cplusplus
6097extern "C" {
6098#endif
6099char nm_test_var;
6100void nm_test_func(void);
6101void nm_test_func(void){}
6102#ifdef __cplusplus
6103}
6104#endif
6105int main(){nm_test_var='a';nm_test_func();return(0);}
6106_LT_EOF
6107
6108  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6109  (eval $ac_compile) 2>&5
6110  ac_status=$?
6111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6112  test $ac_status = 0; }; then
6113    # Now try to grab the symbols.
6114    nlist=conftest.nm
6115    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6116  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6117  ac_status=$?
6118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6119  test $ac_status = 0; } && test -s "$nlist"; then
6120      # Try sorting and uniquifying the output.
6121      if sort "$nlist" | uniq > "$nlist"T; then
6122	mv -f "$nlist"T "$nlist"
6123      else
6124	rm -f "$nlist"T
6125      fi
6126
6127      # Make sure that we snagged all the symbols we need.
6128      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6129	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6130	  cat <<_LT_EOF > conftest.$ac_ext
6131#ifdef __cplusplus
6132extern "C" {
6133#endif
6134
6135_LT_EOF
6136	  # Now generate the symbol file.
6137	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6138
6139	  cat <<_LT_EOF >> conftest.$ac_ext
6140
6141/* The mapping between symbol names and symbols.  */
6142const struct {
6143  const char *name;
6144  void       *address;
6145}
6146lt__PROGRAM__LTX_preloaded_symbols[] =
6147{
6148  { "@PROGRAM@", (void *) 0 },
6149_LT_EOF
6150	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6151	  cat <<\_LT_EOF >> conftest.$ac_ext
6152  {0, (void *) 0}
6153};
6154
6155/* This works around a problem in FreeBSD linker */
6156#ifdef FREEBSD_WORKAROUND
6157static const void *lt_preloaded_setup() {
6158  return lt__PROGRAM__LTX_preloaded_symbols;
6159}
6160#endif
6161
6162#ifdef __cplusplus
6163}
6164#endif
6165_LT_EOF
6166	  # Now try linking the two files.
6167	  mv conftest.$ac_objext conftstm.$ac_objext
6168	  lt_save_LIBS="$LIBS"
6169	  lt_save_CFLAGS="$CFLAGS"
6170	  LIBS="conftstm.$ac_objext"
6171	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6172	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6173  (eval $ac_link) 2>&5
6174  ac_status=$?
6175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6176  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6177	    pipe_works=yes
6178	  fi
6179	  LIBS="$lt_save_LIBS"
6180	  CFLAGS="$lt_save_CFLAGS"
6181	else
6182	  echo "cannot find nm_test_func in $nlist" >&5
6183	fi
6184      else
6185	echo "cannot find nm_test_var in $nlist" >&5
6186      fi
6187    else
6188      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6189    fi
6190  else
6191    echo "$progname: failed program was:" >&5
6192    cat conftest.$ac_ext >&5
6193  fi
6194  rm -rf conftest* conftst*
6195
6196  # Do not use the global_symbol_pipe unless it works.
6197  if test "$pipe_works" = yes; then
6198    break
6199  else
6200    lt_cv_sys_global_symbol_pipe=
6201  fi
6202done
6203
6204fi
6205
6206if test -z "$lt_cv_sys_global_symbol_pipe"; then
6207  lt_cv_sys_global_symbol_to_cdecl=
6208fi
6209if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6211$as_echo "failed" >&6; }
6212else
6213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6214$as_echo "ok" >&6; }
6215fi
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239# Check whether --enable-libtool-lock was given.
6240if test "${enable_libtool_lock+set}" = set; then :
6241  enableval=$enable_libtool_lock;
6242fi
6243
6244test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6245
6246# Some flags need to be propagated to the compiler or linker for good
6247# libtool support.
6248case $host in
6249ia64-*-hpux*)
6250  # Find out which ABI we are using.
6251  echo 'int i;' > conftest.$ac_ext
6252  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6253  (eval $ac_compile) 2>&5
6254  ac_status=$?
6255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6256  test $ac_status = 0; }; then
6257    case `/usr/bin/file conftest.$ac_objext` in
6258      *ELF-32*)
6259	HPUX_IA64_MODE="32"
6260	;;
6261      *ELF-64*)
6262	HPUX_IA64_MODE="64"
6263	;;
6264    esac
6265  fi
6266  rm -rf conftest*
6267  ;;
6268*-*-irix6*)
6269  # Find out which ABI we are using.
6270  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6271  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6272  (eval $ac_compile) 2>&5
6273  ac_status=$?
6274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6275  test $ac_status = 0; }; then
6276    if test "$lt_cv_prog_gnu_ld" = yes; then
6277      case `/usr/bin/file conftest.$ac_objext` in
6278	*32-bit*)
6279	  LD="${LD-ld} -melf32bsmip"
6280	  ;;
6281	*N32*)
6282	  LD="${LD-ld} -melf32bmipn32"
6283	  ;;
6284	*64-bit*)
6285	  LD="${LD-ld} -melf64bmip"
6286	;;
6287      esac
6288    else
6289      case `/usr/bin/file conftest.$ac_objext` in
6290	*32-bit*)
6291	  LD="${LD-ld} -32"
6292	  ;;
6293	*N32*)
6294	  LD="${LD-ld} -n32"
6295	  ;;
6296	*64-bit*)
6297	  LD="${LD-ld} -64"
6298	  ;;
6299      esac
6300    fi
6301  fi
6302  rm -rf conftest*
6303  ;;
6304
6305x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6306s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6307  # Find out which ABI we are using.
6308  echo 'int i;' > conftest.$ac_ext
6309  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6310  (eval $ac_compile) 2>&5
6311  ac_status=$?
6312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6313  test $ac_status = 0; }; then
6314    case `/usr/bin/file conftest.o` in
6315      *32-bit*)
6316	case $host in
6317	  x86_64-*kfreebsd*-gnu)
6318	    LD="${LD-ld} -m elf_i386_fbsd"
6319	    ;;
6320	  x86_64-*linux*)
6321	    case `/usr/bin/file conftest.o` in
6322	      *x86-64*)
6323		LD="${LD-ld} -m elf32_x86_64"
6324		;;
6325	      *)
6326		LD="${LD-ld} -m elf_i386"
6327		;;
6328	    esac
6329	    ;;
6330	  powerpc64le-*linux*)
6331	    LD="${LD-ld} -m elf32lppclinux"
6332	    ;;
6333	  powerpc64-*linux*)
6334	    LD="${LD-ld} -m elf32ppclinux"
6335	    ;;
6336	  s390x-*linux*)
6337	    LD="${LD-ld} -m elf_s390"
6338	    ;;
6339	  sparc64-*linux*)
6340	    LD="${LD-ld} -m elf32_sparc"
6341	    ;;
6342	esac
6343	;;
6344      *64-bit*)
6345	case $host in
6346	  x86_64-*kfreebsd*-gnu)
6347	    LD="${LD-ld} -m elf_x86_64_fbsd"
6348	    ;;
6349	  x86_64-*linux*)
6350	    LD="${LD-ld} -m elf_x86_64"
6351	    ;;
6352	  powerpcle-*linux*)
6353	    LD="${LD-ld} -m elf64lppc"
6354	    ;;
6355	  powerpc-*linux*)
6356	    LD="${LD-ld} -m elf64ppc"
6357	    ;;
6358	  s390*-*linux*|s390*-*tpf*)
6359	    LD="${LD-ld} -m elf64_s390"
6360	    ;;
6361	  sparc*-*linux*)
6362	    LD="${LD-ld} -m elf64_sparc"
6363	    ;;
6364	esac
6365	;;
6366    esac
6367  fi
6368  rm -rf conftest*
6369  ;;
6370
6371*-*-sco3.2v5*)
6372  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6373  SAVE_CFLAGS="$CFLAGS"
6374  CFLAGS="$CFLAGS -belf"
6375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6376$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6377if test "${lt_cv_cc_needs_belf+set}" = set; then :
6378  $as_echo_n "(cached) " >&6
6379else
6380  ac_ext=c
6381ac_cpp='$CPP $CPPFLAGS'
6382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6384ac_compiler_gnu=$ac_cv_c_compiler_gnu
6385
6386     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387/* end confdefs.h.  */
6388
6389int
6390main ()
6391{
6392
6393  ;
6394  return 0;
6395}
6396_ACEOF
6397if ac_fn_c_try_link "$LINENO"; then :
6398  lt_cv_cc_needs_belf=yes
6399else
6400  lt_cv_cc_needs_belf=no
6401fi
6402rm -f core conftest.err conftest.$ac_objext \
6403    conftest$ac_exeext conftest.$ac_ext
6404     ac_ext=c
6405ac_cpp='$CPP $CPPFLAGS'
6406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6408ac_compiler_gnu=$ac_cv_c_compiler_gnu
6409
6410fi
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6412$as_echo "$lt_cv_cc_needs_belf" >&6; }
6413  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6414    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6415    CFLAGS="$SAVE_CFLAGS"
6416  fi
6417  ;;
6418sparc*-*solaris*)
6419  # Find out which ABI we are using.
6420  echo 'int i;' > conftest.$ac_ext
6421  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6422  (eval $ac_compile) 2>&5
6423  ac_status=$?
6424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6425  test $ac_status = 0; }; then
6426    case `/usr/bin/file conftest.o` in
6427    *64-bit*)
6428      case $lt_cv_prog_gnu_ld in
6429      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6430      *)
6431	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6432	  LD="${LD-ld} -64"
6433	fi
6434	;;
6435      esac
6436      ;;
6437    esac
6438  fi
6439  rm -rf conftest*
6440  ;;
6441esac
6442
6443need_locks="$enable_libtool_lock"
6444
6445
6446  case $host_os in
6447    rhapsody* | darwin*)
6448    if test -n "$ac_tool_prefix"; then
6449  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6450set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452$as_echo_n "checking for $ac_word... " >&6; }
6453if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6454  $as_echo_n "(cached) " >&6
6455else
6456  if test -n "$DSYMUTIL"; then
6457  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6458else
6459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460for as_dir in $PATH
6461do
6462  IFS=$as_save_IFS
6463  test -z "$as_dir" && as_dir=.
6464    for ac_exec_ext in '' $ac_executable_extensions; do
6465  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6466    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6467    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468    break 2
6469  fi
6470done
6471  done
6472IFS=$as_save_IFS
6473
6474fi
6475fi
6476DSYMUTIL=$ac_cv_prog_DSYMUTIL
6477if test -n "$DSYMUTIL"; then
6478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6479$as_echo "$DSYMUTIL" >&6; }
6480else
6481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482$as_echo "no" >&6; }
6483fi
6484
6485
6486fi
6487if test -z "$ac_cv_prog_DSYMUTIL"; then
6488  ac_ct_DSYMUTIL=$DSYMUTIL
6489  # Extract the first word of "dsymutil", so it can be a program name with args.
6490set dummy dsymutil; ac_word=$2
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492$as_echo_n "checking for $ac_word... " >&6; }
6493if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6494  $as_echo_n "(cached) " >&6
6495else
6496  if test -n "$ac_ct_DSYMUTIL"; then
6497  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6498else
6499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500for as_dir in $PATH
6501do
6502  IFS=$as_save_IFS
6503  test -z "$as_dir" && as_dir=.
6504    for ac_exec_ext in '' $ac_executable_extensions; do
6505  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6506    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508    break 2
6509  fi
6510done
6511  done
6512IFS=$as_save_IFS
6513
6514fi
6515fi
6516ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6517if test -n "$ac_ct_DSYMUTIL"; then
6518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6519$as_echo "$ac_ct_DSYMUTIL" >&6; }
6520else
6521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522$as_echo "no" >&6; }
6523fi
6524
6525  if test "x$ac_ct_DSYMUTIL" = x; then
6526    DSYMUTIL=":"
6527  else
6528    case $cross_compiling:$ac_tool_warned in
6529yes:)
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532ac_tool_warned=yes ;;
6533esac
6534    DSYMUTIL=$ac_ct_DSYMUTIL
6535  fi
6536else
6537  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6538fi
6539
6540    if test -n "$ac_tool_prefix"; then
6541  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6542set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544$as_echo_n "checking for $ac_word... " >&6; }
6545if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6546  $as_echo_n "(cached) " >&6
6547else
6548  if test -n "$NMEDIT"; then
6549  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6550else
6551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552for as_dir in $PATH
6553do
6554  IFS=$as_save_IFS
6555  test -z "$as_dir" && as_dir=.
6556    for ac_exec_ext in '' $ac_executable_extensions; do
6557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6558    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560    break 2
6561  fi
6562done
6563  done
6564IFS=$as_save_IFS
6565
6566fi
6567fi
6568NMEDIT=$ac_cv_prog_NMEDIT
6569if test -n "$NMEDIT"; then
6570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6571$as_echo "$NMEDIT" >&6; }
6572else
6573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574$as_echo "no" >&6; }
6575fi
6576
6577
6578fi
6579if test -z "$ac_cv_prog_NMEDIT"; then
6580  ac_ct_NMEDIT=$NMEDIT
6581  # Extract the first word of "nmedit", so it can be a program name with args.
6582set dummy nmedit; ac_word=$2
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584$as_echo_n "checking for $ac_word... " >&6; }
6585if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6586  $as_echo_n "(cached) " >&6
6587else
6588  if test -n "$ac_ct_NMEDIT"; then
6589  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6590else
6591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592for as_dir in $PATH
6593do
6594  IFS=$as_save_IFS
6595  test -z "$as_dir" && as_dir=.
6596    for ac_exec_ext in '' $ac_executable_extensions; do
6597  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600    break 2
6601  fi
6602done
6603  done
6604IFS=$as_save_IFS
6605
6606fi
6607fi
6608ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6609if test -n "$ac_ct_NMEDIT"; then
6610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6611$as_echo "$ac_ct_NMEDIT" >&6; }
6612else
6613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614$as_echo "no" >&6; }
6615fi
6616
6617  if test "x$ac_ct_NMEDIT" = x; then
6618    NMEDIT=":"
6619  else
6620    case $cross_compiling:$ac_tool_warned in
6621yes:)
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6624ac_tool_warned=yes ;;
6625esac
6626    NMEDIT=$ac_ct_NMEDIT
6627  fi
6628else
6629  NMEDIT="$ac_cv_prog_NMEDIT"
6630fi
6631
6632    if test -n "$ac_tool_prefix"; then
6633  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6634set dummy ${ac_tool_prefix}lipo; ac_word=$2
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636$as_echo_n "checking for $ac_word... " >&6; }
6637if test "${ac_cv_prog_LIPO+set}" = set; then :
6638  $as_echo_n "(cached) " >&6
6639else
6640  if test -n "$LIPO"; then
6641  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6642else
6643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644for as_dir in $PATH
6645do
6646  IFS=$as_save_IFS
6647  test -z "$as_dir" && as_dir=.
6648    for ac_exec_ext in '' $ac_executable_extensions; do
6649  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652    break 2
6653  fi
6654done
6655  done
6656IFS=$as_save_IFS
6657
6658fi
6659fi
6660LIPO=$ac_cv_prog_LIPO
6661if test -n "$LIPO"; then
6662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6663$as_echo "$LIPO" >&6; }
6664else
6665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666$as_echo "no" >&6; }
6667fi
6668
6669
6670fi
6671if test -z "$ac_cv_prog_LIPO"; then
6672  ac_ct_LIPO=$LIPO
6673  # Extract the first word of "lipo", so it can be a program name with args.
6674set dummy lipo; ac_word=$2
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676$as_echo_n "checking for $ac_word... " >&6; }
6677if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6678  $as_echo_n "(cached) " >&6
6679else
6680  if test -n "$ac_ct_LIPO"; then
6681  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6682else
6683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in $PATH
6685do
6686  IFS=$as_save_IFS
6687  test -z "$as_dir" && as_dir=.
6688    for ac_exec_ext in '' $ac_executable_extensions; do
6689  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690    ac_cv_prog_ac_ct_LIPO="lipo"
6691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692    break 2
6693  fi
6694done
6695  done
6696IFS=$as_save_IFS
6697
6698fi
6699fi
6700ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6701if test -n "$ac_ct_LIPO"; then
6702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6703$as_echo "$ac_ct_LIPO" >&6; }
6704else
6705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706$as_echo "no" >&6; }
6707fi
6708
6709  if test "x$ac_ct_LIPO" = x; then
6710    LIPO=":"
6711  else
6712    case $cross_compiling:$ac_tool_warned in
6713yes:)
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716ac_tool_warned=yes ;;
6717esac
6718    LIPO=$ac_ct_LIPO
6719  fi
6720else
6721  LIPO="$ac_cv_prog_LIPO"
6722fi
6723
6724    if test -n "$ac_tool_prefix"; then
6725  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6726set dummy ${ac_tool_prefix}otool; ac_word=$2
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728$as_echo_n "checking for $ac_word... " >&6; }
6729if test "${ac_cv_prog_OTOOL+set}" = set; then :
6730  $as_echo_n "(cached) " >&6
6731else
6732  if test -n "$OTOOL"; then
6733  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6734else
6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH
6737do
6738  IFS=$as_save_IFS
6739  test -z "$as_dir" && as_dir=.
6740    for ac_exec_ext in '' $ac_executable_extensions; do
6741  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744    break 2
6745  fi
6746done
6747  done
6748IFS=$as_save_IFS
6749
6750fi
6751fi
6752OTOOL=$ac_cv_prog_OTOOL
6753if test -n "$OTOOL"; then
6754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6755$as_echo "$OTOOL" >&6; }
6756else
6757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758$as_echo "no" >&6; }
6759fi
6760
6761
6762fi
6763if test -z "$ac_cv_prog_OTOOL"; then
6764  ac_ct_OTOOL=$OTOOL
6765  # Extract the first word of "otool", so it can be a program name with args.
6766set dummy otool; ac_word=$2
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768$as_echo_n "checking for $ac_word... " >&6; }
6769if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6770  $as_echo_n "(cached) " >&6
6771else
6772  if test -n "$ac_ct_OTOOL"; then
6773  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6774else
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778  IFS=$as_save_IFS
6779  test -z "$as_dir" && as_dir=.
6780    for ac_exec_ext in '' $ac_executable_extensions; do
6781  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6782    ac_cv_prog_ac_ct_OTOOL="otool"
6783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784    break 2
6785  fi
6786done
6787  done
6788IFS=$as_save_IFS
6789
6790fi
6791fi
6792ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6793if test -n "$ac_ct_OTOOL"; then
6794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6795$as_echo "$ac_ct_OTOOL" >&6; }
6796else
6797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798$as_echo "no" >&6; }
6799fi
6800
6801  if test "x$ac_ct_OTOOL" = x; then
6802    OTOOL=":"
6803  else
6804    case $cross_compiling:$ac_tool_warned in
6805yes:)
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808ac_tool_warned=yes ;;
6809esac
6810    OTOOL=$ac_ct_OTOOL
6811  fi
6812else
6813  OTOOL="$ac_cv_prog_OTOOL"
6814fi
6815
6816    if test -n "$ac_tool_prefix"; then
6817  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6818set dummy ${ac_tool_prefix}otool64; ac_word=$2
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820$as_echo_n "checking for $ac_word... " >&6; }
6821if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6822  $as_echo_n "(cached) " >&6
6823else
6824  if test -n "$OTOOL64"; then
6825  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6826else
6827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830  IFS=$as_save_IFS
6831  test -z "$as_dir" && as_dir=.
6832    for ac_exec_ext in '' $ac_executable_extensions; do
6833  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836    break 2
6837  fi
6838done
6839  done
6840IFS=$as_save_IFS
6841
6842fi
6843fi
6844OTOOL64=$ac_cv_prog_OTOOL64
6845if test -n "$OTOOL64"; then
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6847$as_echo "$OTOOL64" >&6; }
6848else
6849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850$as_echo "no" >&6; }
6851fi
6852
6853
6854fi
6855if test -z "$ac_cv_prog_OTOOL64"; then
6856  ac_ct_OTOOL64=$OTOOL64
6857  # Extract the first word of "otool64", so it can be a program name with args.
6858set dummy otool64; ac_word=$2
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860$as_echo_n "checking for $ac_word... " >&6; }
6861if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6862  $as_echo_n "(cached) " >&6
6863else
6864  if test -n "$ac_ct_OTOOL64"; then
6865  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6866else
6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870  IFS=$as_save_IFS
6871  test -z "$as_dir" && as_dir=.
6872    for ac_exec_ext in '' $ac_executable_extensions; do
6873  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874    ac_cv_prog_ac_ct_OTOOL64="otool64"
6875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876    break 2
6877  fi
6878done
6879  done
6880IFS=$as_save_IFS
6881
6882fi
6883fi
6884ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6885if test -n "$ac_ct_OTOOL64"; then
6886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6887$as_echo "$ac_ct_OTOOL64" >&6; }
6888else
6889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890$as_echo "no" >&6; }
6891fi
6892
6893  if test "x$ac_ct_OTOOL64" = x; then
6894    OTOOL64=":"
6895  else
6896    case $cross_compiling:$ac_tool_warned in
6897yes:)
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6900ac_tool_warned=yes ;;
6901esac
6902    OTOOL64=$ac_ct_OTOOL64
6903  fi
6904else
6905  OTOOL64="$ac_cv_prog_OTOOL64"
6906fi
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6935$as_echo_n "checking for -single_module linker flag... " >&6; }
6936if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6937  $as_echo_n "(cached) " >&6
6938else
6939  lt_cv_apple_cc_single_mod=no
6940      if test -z "${LT_MULTI_MODULE}"; then
6941	# By default we will add the -single_module flag. You can override
6942	# by either setting the environment variable LT_MULTI_MODULE
6943	# non-empty at configure time, or by adding -multi_module to the
6944	# link flags.
6945	rm -rf libconftest.dylib*
6946	echo "int foo(void){return 1;}" > conftest.c
6947	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6948-dynamiclib -Wl,-single_module conftest.c" >&5
6949	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6950	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6951        _lt_result=$?
6952	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6953	  lt_cv_apple_cc_single_mod=yes
6954	else
6955	  cat conftest.err >&5
6956	fi
6957	rm -rf libconftest.dylib*
6958	rm -f conftest.*
6959      fi
6960fi
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6962$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6963    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6964$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6965if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6966  $as_echo_n "(cached) " >&6
6967else
6968  lt_cv_ld_exported_symbols_list=no
6969      save_LDFLAGS=$LDFLAGS
6970      echo "_main" > conftest.sym
6971      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6972      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973/* end confdefs.h.  */
6974
6975int
6976main ()
6977{
6978
6979  ;
6980  return 0;
6981}
6982_ACEOF
6983if ac_fn_c_try_link "$LINENO"; then :
6984  lt_cv_ld_exported_symbols_list=yes
6985else
6986  lt_cv_ld_exported_symbols_list=no
6987fi
6988rm -f core conftest.err conftest.$ac_objext \
6989    conftest$ac_exeext conftest.$ac_ext
6990	LDFLAGS="$save_LDFLAGS"
6991
6992fi
6993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6994$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6995    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6996$as_echo_n "checking for -force_load linker flag... " >&6; }
6997if test "${lt_cv_ld_force_load+set}" = set; then :
6998  $as_echo_n "(cached) " >&6
6999else
7000  lt_cv_ld_force_load=no
7001      cat > conftest.c << _LT_EOF
7002int forced_loaded() { return 2;}
7003_LT_EOF
7004      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7005      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7006      echo "$AR cru libconftest.a conftest.o" >&5
7007      $AR cru libconftest.a conftest.o 2>&5
7008      cat > conftest.c << _LT_EOF
7009int main() { return 0;}
7010_LT_EOF
7011      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7012      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7013      _lt_result=$?
7014      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7015	lt_cv_ld_force_load=yes
7016      else
7017	cat conftest.err >&5
7018      fi
7019        rm -f conftest.err libconftest.a conftest conftest.c
7020        rm -rf conftest.dSYM
7021
7022fi
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7024$as_echo "$lt_cv_ld_force_load" >&6; }
7025    case $host_os in
7026    rhapsody* | darwin1.[012])
7027      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7028    darwin1.*)
7029      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7030    darwin*) # darwin 5.x on
7031      # if running on 10.5 or later, the deployment target defaults
7032      # to the OS version, if on x86, and 10.4, the deployment
7033      # target defaults to 10.4. Don't you love it?
7034      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7035	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7036	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7037	10.[012][,.]*)
7038	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7039	10.*)
7040	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7041      esac
7042    ;;
7043  esac
7044    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7045      _lt_dar_single_mod='$single_module'
7046    fi
7047    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7048      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7049    else
7050      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7051    fi
7052    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7053      _lt_dsymutil='~$DSYMUTIL $lib || :'
7054    else
7055      _lt_dsymutil=
7056    fi
7057    ;;
7058  esac
7059
7060ac_ext=c
7061ac_cpp='$CPP $CPPFLAGS'
7062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7064ac_compiler_gnu=$ac_cv_c_compiler_gnu
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7066$as_echo_n "checking how to run the C preprocessor... " >&6; }
7067# On Suns, sometimes $CPP names a directory.
7068if test -n "$CPP" && test -d "$CPP"; then
7069  CPP=
7070fi
7071if test -z "$CPP"; then
7072  if test "${ac_cv_prog_CPP+set}" = set; then :
7073  $as_echo_n "(cached) " >&6
7074else
7075      # Double quotes because CPP needs to be expanded
7076    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7077    do
7078      ac_preproc_ok=false
7079for ac_c_preproc_warn_flag in '' yes
7080do
7081  # Use a header file that comes with gcc, so configuring glibc
7082  # with a fresh cross-compiler works.
7083  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7084  # <limits.h> exists even on freestanding compilers.
7085  # On the NeXT, cc -E runs the code through the compiler's parser,
7086  # not just through cpp. "Syntax error" is here to catch this case.
7087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088/* end confdefs.h.  */
7089#ifdef __STDC__
7090# include <limits.h>
7091#else
7092# include <assert.h>
7093#endif
7094		     Syntax error
7095_ACEOF
7096if ac_fn_c_try_cpp "$LINENO"; then :
7097
7098else
7099  # Broken: fails on valid input.
7100continue
7101fi
7102rm -f conftest.err conftest.$ac_ext
7103
7104  # OK, works on sane cases.  Now check whether nonexistent headers
7105  # can be detected and how.
7106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107/* end confdefs.h.  */
7108#include <ac_nonexistent.h>
7109_ACEOF
7110if ac_fn_c_try_cpp "$LINENO"; then :
7111  # Broken: success on invalid input.
7112continue
7113else
7114  # Passes both tests.
7115ac_preproc_ok=:
7116break
7117fi
7118rm -f conftest.err conftest.$ac_ext
7119
7120done
7121# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7122rm -f conftest.err conftest.$ac_ext
7123if $ac_preproc_ok; then :
7124  break
7125fi
7126
7127    done
7128    ac_cv_prog_CPP=$CPP
7129
7130fi
7131  CPP=$ac_cv_prog_CPP
7132else
7133  ac_cv_prog_CPP=$CPP
7134fi
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7136$as_echo "$CPP" >&6; }
7137ac_preproc_ok=false
7138for ac_c_preproc_warn_flag in '' yes
7139do
7140  # Use a header file that comes with gcc, so configuring glibc
7141  # with a fresh cross-compiler works.
7142  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7143  # <limits.h> exists even on freestanding compilers.
7144  # On the NeXT, cc -E runs the code through the compiler's parser,
7145  # not just through cpp. "Syntax error" is here to catch this case.
7146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147/* end confdefs.h.  */
7148#ifdef __STDC__
7149# include <limits.h>
7150#else
7151# include <assert.h>
7152#endif
7153		     Syntax error
7154_ACEOF
7155if ac_fn_c_try_cpp "$LINENO"; then :
7156
7157else
7158  # Broken: fails on valid input.
7159continue
7160fi
7161rm -f conftest.err conftest.$ac_ext
7162
7163  # OK, works on sane cases.  Now check whether nonexistent headers
7164  # can be detected and how.
7165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166/* end confdefs.h.  */
7167#include <ac_nonexistent.h>
7168_ACEOF
7169if ac_fn_c_try_cpp "$LINENO"; then :
7170  # Broken: success on invalid input.
7171continue
7172else
7173  # Passes both tests.
7174ac_preproc_ok=:
7175break
7176fi
7177rm -f conftest.err conftest.$ac_ext
7178
7179done
7180# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7181rm -f conftest.err conftest.$ac_ext
7182if $ac_preproc_ok; then :
7183
7184else
7185  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7187as_fn_error "C preprocessor \"$CPP\" fails sanity check
7188See \`config.log' for more details." "$LINENO" 5; }
7189fi
7190
7191ac_ext=c
7192ac_cpp='$CPP $CPPFLAGS'
7193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7195ac_compiler_gnu=$ac_cv_c_compiler_gnu
7196
7197
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7199$as_echo_n "checking for ANSI C header files... " >&6; }
7200if test "${ac_cv_header_stdc+set}" = set; then :
7201  $as_echo_n "(cached) " >&6
7202else
7203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204/* end confdefs.h.  */
7205#include <stdlib.h>
7206#include <stdarg.h>
7207#include <string.h>
7208#include <float.h>
7209
7210int
7211main ()
7212{
7213
7214  ;
7215  return 0;
7216}
7217_ACEOF
7218if ac_fn_c_try_compile "$LINENO"; then :
7219  ac_cv_header_stdc=yes
7220else
7221  ac_cv_header_stdc=no
7222fi
7223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224
7225if test $ac_cv_header_stdc = yes; then
7226  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228/* end confdefs.h.  */
7229#include <string.h>
7230
7231_ACEOF
7232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7233  $EGREP "memchr" >/dev/null 2>&1; then :
7234
7235else
7236  ac_cv_header_stdc=no
7237fi
7238rm -f conftest*
7239
7240fi
7241
7242if test $ac_cv_header_stdc = yes; then
7243  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245/* end confdefs.h.  */
7246#include <stdlib.h>
7247
7248_ACEOF
7249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7250  $EGREP "free" >/dev/null 2>&1; then :
7251
7252else
7253  ac_cv_header_stdc=no
7254fi
7255rm -f conftest*
7256
7257fi
7258
7259if test $ac_cv_header_stdc = yes; then
7260  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7261  if test "$cross_compiling" = yes; then :
7262  :
7263else
7264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265/* end confdefs.h.  */
7266#include <ctype.h>
7267#include <stdlib.h>
7268#if ((' ' & 0x0FF) == 0x020)
7269# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7270# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7271#else
7272# define ISLOWER(c) \
7273		   (('a' <= (c) && (c) <= 'i') \
7274		     || ('j' <= (c) && (c) <= 'r') \
7275		     || ('s' <= (c) && (c) <= 'z'))
7276# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7277#endif
7278
7279#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7280int
7281main ()
7282{
7283  int i;
7284  for (i = 0; i < 256; i++)
7285    if (XOR (islower (i), ISLOWER (i))
7286	|| toupper (i) != TOUPPER (i))
7287      return 2;
7288  return 0;
7289}
7290_ACEOF
7291if ac_fn_c_try_run "$LINENO"; then :
7292
7293else
7294  ac_cv_header_stdc=no
7295fi
7296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7297  conftest.$ac_objext conftest.beam conftest.$ac_ext
7298fi
7299
7300fi
7301fi
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7303$as_echo "$ac_cv_header_stdc" >&6; }
7304if test $ac_cv_header_stdc = yes; then
7305
7306$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7307
7308fi
7309
7310# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7311for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7312		  inttypes.h stdint.h unistd.h
7313do :
7314  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7315ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7316"
7317eval as_val=\$$as_ac_Header
7318   if test "x$as_val" = x""yes; then :
7319  cat >>confdefs.h <<_ACEOF
7320#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7321_ACEOF
7322
7323fi
7324
7325done
7326
7327
7328for ac_header in dlfcn.h
7329do :
7330  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7331"
7332if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7333  cat >>confdefs.h <<_ACEOF
7334#define HAVE_DLFCN_H 1
7335_ACEOF
7336
7337fi
7338
7339done
7340
7341
7342
7343
7344
7345
7346# Set options
7347
7348
7349
7350
7351  enable_win32_dll=no
7352
7353
7354            # Check whether --enable-shared was given.
7355if test "${enable_shared+set}" = set; then :
7356  enableval=$enable_shared; p=${PACKAGE-default}
7357    case $enableval in
7358    yes) enable_shared=yes ;;
7359    no) enable_shared=no ;;
7360    *)
7361      enable_shared=no
7362      # Look at the argument we got.  We use all the common list separators.
7363      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7364      for pkg in $enableval; do
7365	IFS="$lt_save_ifs"
7366	if test "X$pkg" = "X$p"; then
7367	  enable_shared=yes
7368	fi
7369      done
7370      IFS="$lt_save_ifs"
7371      ;;
7372    esac
7373else
7374  enable_shared=yes
7375fi
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385  # Check whether --enable-static was given.
7386if test "${enable_static+set}" = set; then :
7387  enableval=$enable_static; p=${PACKAGE-default}
7388    case $enableval in
7389    yes) enable_static=yes ;;
7390    no) enable_static=no ;;
7391    *)
7392     enable_static=no
7393      # Look at the argument we got.  We use all the common list separators.
7394      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7395      for pkg in $enableval; do
7396	IFS="$lt_save_ifs"
7397	if test "X$pkg" = "X$p"; then
7398	  enable_static=yes
7399	fi
7400      done
7401      IFS="$lt_save_ifs"
7402      ;;
7403    esac
7404else
7405  enable_static=yes
7406fi
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417# Check whether --with-pic was given.
7418if test "${with_pic+set}" = set; then :
7419  withval=$with_pic; pic_mode="$withval"
7420else
7421  pic_mode=default
7422fi
7423
7424
7425test -z "$pic_mode" && pic_mode=default
7426
7427
7428
7429
7430
7431
7432
7433  # Check whether --enable-fast-install was given.
7434if test "${enable_fast_install+set}" = set; then :
7435  enableval=$enable_fast_install; p=${PACKAGE-default}
7436    case $enableval in
7437    yes) enable_fast_install=yes ;;
7438    no) enable_fast_install=no ;;
7439    *)
7440      enable_fast_install=no
7441      # Look at the argument we got.  We use all the common list separators.
7442      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7443      for pkg in $enableval; do
7444	IFS="$lt_save_ifs"
7445	if test "X$pkg" = "X$p"; then
7446	  enable_fast_install=yes
7447	fi
7448      done
7449      IFS="$lt_save_ifs"
7450      ;;
7451    esac
7452else
7453  enable_fast_install=yes
7454fi
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466# This can be used to rebuild libtool when needed
7467LIBTOOL_DEPS="$ltmain"
7468
7469# Always use our own libtool.
7470LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497test -z "$LN_S" && LN_S="ln -s"
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512if test -n "${ZSH_VERSION+set}" ; then
7513   setopt NO_GLOB_SUBST
7514fi
7515
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7517$as_echo_n "checking for objdir... " >&6; }
7518if test "${lt_cv_objdir+set}" = set; then :
7519  $as_echo_n "(cached) " >&6
7520else
7521  rm -f .libs 2>/dev/null
7522mkdir .libs 2>/dev/null
7523if test -d .libs; then
7524  lt_cv_objdir=.libs
7525else
7526  # MS-DOS does not allow filenames that begin with a dot.
7527  lt_cv_objdir=_libs
7528fi
7529rmdir .libs 2>/dev/null
7530fi
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7532$as_echo "$lt_cv_objdir" >&6; }
7533objdir=$lt_cv_objdir
7534
7535
7536
7537
7538
7539cat >>confdefs.h <<_ACEOF
7540#define LT_OBJDIR "$lt_cv_objdir/"
7541_ACEOF
7542
7543
7544
7545
7546case $host_os in
7547aix3*)
7548  # AIX sometimes has problems with the GCC collect2 program.  For some
7549  # reason, if we set the COLLECT_NAMES environment variable, the problems
7550  # vanish in a puff of smoke.
7551  if test "X${COLLECT_NAMES+set}" != Xset; then
7552    COLLECT_NAMES=
7553    export COLLECT_NAMES
7554  fi
7555  ;;
7556esac
7557
7558# Global variables:
7559ofile=libtool
7560can_build_shared=yes
7561
7562# All known linkers require a `.a' archive for static linking (except MSVC,
7563# which needs '.lib').
7564libext=a
7565
7566with_gnu_ld="$lt_cv_prog_gnu_ld"
7567
7568old_CC="$CC"
7569old_CFLAGS="$CFLAGS"
7570
7571# Set sane defaults for various variables
7572test -z "$CC" && CC=cc
7573test -z "$LTCC" && LTCC=$CC
7574test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7575test -z "$LD" && LD=ld
7576test -z "$ac_objext" && ac_objext=o
7577
7578for cc_temp in $compiler""; do
7579  case $cc_temp in
7580    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7581    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7582    \-*) ;;
7583    *) break;;
7584  esac
7585done
7586cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7587
7588
7589# Only perform the check for file, if the check method requires it
7590test -z "$MAGIC_CMD" && MAGIC_CMD=file
7591case $deplibs_check_method in
7592file_magic*)
7593  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7594    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7595$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7596if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7597  $as_echo_n "(cached) " >&6
7598else
7599  case $MAGIC_CMD in
7600[\\/*] |  ?:[\\/]*)
7601  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7602  ;;
7603*)
7604  lt_save_MAGIC_CMD="$MAGIC_CMD"
7605  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7606  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7607  for ac_dir in $ac_dummy; do
7608    IFS="$lt_save_ifs"
7609    test -z "$ac_dir" && ac_dir=.
7610    if test -f $ac_dir/${ac_tool_prefix}file; then
7611      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7612      if test -n "$file_magic_test_file"; then
7613	case $deplibs_check_method in
7614	"file_magic "*)
7615	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7616	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7617	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7618	    $EGREP "$file_magic_regex" > /dev/null; then
7619	    :
7620	  else
7621	    cat <<_LT_EOF 1>&2
7622
7623*** Warning: the command libtool uses to detect shared libraries,
7624*** $file_magic_cmd, produces output that libtool cannot recognize.
7625*** The result is that libtool may fail to recognize shared libraries
7626*** as such.  This will affect the creation of libtool libraries that
7627*** depend on shared libraries, but programs linked with such libtool
7628*** libraries will work regardless of this problem.  Nevertheless, you
7629*** may want to report the problem to your system manager and/or to
7630*** bug-libtool@gnu.org
7631
7632_LT_EOF
7633	  fi ;;
7634	esac
7635      fi
7636      break
7637    fi
7638  done
7639  IFS="$lt_save_ifs"
7640  MAGIC_CMD="$lt_save_MAGIC_CMD"
7641  ;;
7642esac
7643fi
7644
7645MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7646if test -n "$MAGIC_CMD"; then
7647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7648$as_echo "$MAGIC_CMD" >&6; }
7649else
7650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651$as_echo "no" >&6; }
7652fi
7653
7654
7655
7656
7657
7658if test -z "$lt_cv_path_MAGIC_CMD"; then
7659  if test -n "$ac_tool_prefix"; then
7660    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7661$as_echo_n "checking for file... " >&6; }
7662if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7663  $as_echo_n "(cached) " >&6
7664else
7665  case $MAGIC_CMD in
7666[\\/*] |  ?:[\\/]*)
7667  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7668  ;;
7669*)
7670  lt_save_MAGIC_CMD="$MAGIC_CMD"
7671  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7672  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7673  for ac_dir in $ac_dummy; do
7674    IFS="$lt_save_ifs"
7675    test -z "$ac_dir" && ac_dir=.
7676    if test -f $ac_dir/file; then
7677      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7678      if test -n "$file_magic_test_file"; then
7679	case $deplibs_check_method in
7680	"file_magic "*)
7681	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7682	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7683	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7684	    $EGREP "$file_magic_regex" > /dev/null; then
7685	    :
7686	  else
7687	    cat <<_LT_EOF 1>&2
7688
7689*** Warning: the command libtool uses to detect shared libraries,
7690*** $file_magic_cmd, produces output that libtool cannot recognize.
7691*** The result is that libtool may fail to recognize shared libraries
7692*** as such.  This will affect the creation of libtool libraries that
7693*** depend on shared libraries, but programs linked with such libtool
7694*** libraries will work regardless of this problem.  Nevertheless, you
7695*** may want to report the problem to your system manager and/or to
7696*** bug-libtool@gnu.org
7697
7698_LT_EOF
7699	  fi ;;
7700	esac
7701      fi
7702      break
7703    fi
7704  done
7705  IFS="$lt_save_ifs"
7706  MAGIC_CMD="$lt_save_MAGIC_CMD"
7707  ;;
7708esac
7709fi
7710
7711MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7712if test -n "$MAGIC_CMD"; then
7713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7714$as_echo "$MAGIC_CMD" >&6; }
7715else
7716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717$as_echo "no" >&6; }
7718fi
7719
7720
7721  else
7722    MAGIC_CMD=:
7723  fi
7724fi
7725
7726  fi
7727  ;;
7728esac
7729
7730# Use C for the default configuration in the libtool script
7731
7732lt_save_CC="$CC"
7733ac_ext=c
7734ac_cpp='$CPP $CPPFLAGS'
7735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738
7739
7740# Source file extension for C test sources.
7741ac_ext=c
7742
7743# Object file extension for compiled C test sources.
7744objext=o
7745objext=$objext
7746
7747# Code to be used in simple compile tests
7748lt_simple_compile_test_code="int some_variable = 0;"
7749
7750# Code to be used in simple link tests
7751lt_simple_link_test_code='int main(){return(0);}'
7752
7753
7754
7755
7756
7757
7758
7759# If no C compiler was specified, use CC.
7760LTCC=${LTCC-"$CC"}
7761
7762# If no C compiler flags were specified, use CFLAGS.
7763LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7764
7765# Allow CC to be a program name with arguments.
7766compiler=$CC
7767
7768# Save the default compiler, since it gets overwritten when the other
7769# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7770compiler_DEFAULT=$CC
7771
7772# save warnings/boilerplate of simple test code
7773ac_outfile=conftest.$ac_objext
7774echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7775eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7776_lt_compiler_boilerplate=`cat conftest.err`
7777$RM conftest*
7778
7779ac_outfile=conftest.$ac_objext
7780echo "$lt_simple_link_test_code" >conftest.$ac_ext
7781eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7782_lt_linker_boilerplate=`cat conftest.err`
7783$RM -r conftest*
7784
7785
7786## CAVEAT EMPTOR:
7787## There is no encapsulation within the following macros, do not change
7788## the running order or otherwise move them around unless you know exactly
7789## what you are doing...
7790if test -n "$compiler"; then
7791
7792lt_prog_compiler_no_builtin_flag=
7793
7794if test "$GCC" = yes; then
7795  case $cc_basename in
7796  nvcc*)
7797    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7798  *)
7799    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7800  esac
7801
7802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7803$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7804if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7805  $as_echo_n "(cached) " >&6
7806else
7807  lt_cv_prog_compiler_rtti_exceptions=no
7808   ac_outfile=conftest.$ac_objext
7809   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7810   lt_compiler_flag="-fno-rtti -fno-exceptions"
7811   # Insert the option either (1) after the last *FLAGS variable, or
7812   # (2) before a word containing "conftest.", or (3) at the end.
7813   # Note that $ac_compile itself does not contain backslashes and begins
7814   # with a dollar sign (not a hyphen), so the echo should work correctly.
7815   # The option is referenced via a variable to avoid confusing sed.
7816   lt_compile=`echo "$ac_compile" | $SED \
7817   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7818   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7819   -e 's:$: $lt_compiler_flag:'`
7820   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7821   (eval "$lt_compile" 2>conftest.err)
7822   ac_status=$?
7823   cat conftest.err >&5
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   if (exit $ac_status) && test -s "$ac_outfile"; then
7826     # The compiler can only warn and ignore the option if not recognized
7827     # So say no if there are warnings other than the usual output.
7828     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7829     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7830     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7831       lt_cv_prog_compiler_rtti_exceptions=yes
7832     fi
7833   fi
7834   $RM conftest*
7835
7836fi
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7838$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7839
7840if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7841    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7842else
7843    :
7844fi
7845
7846fi
7847
7848
7849
7850
7851
7852
7853  lt_prog_compiler_wl=
7854lt_prog_compiler_pic=
7855lt_prog_compiler_static=
7856
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7858$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7859
7860  if test "$GCC" = yes; then
7861    lt_prog_compiler_wl='-Wl,'
7862    lt_prog_compiler_static='-static'
7863
7864    case $host_os in
7865      aix*)
7866      # All AIX code is PIC.
7867      if test "$host_cpu" = ia64; then
7868	# AIX 5 now supports IA64 processor
7869	lt_prog_compiler_static='-Bstatic'
7870      fi
7871      lt_prog_compiler_pic='-fPIC'
7872      ;;
7873
7874    amigaos*)
7875      case $host_cpu in
7876      powerpc)
7877            # see comment about AmigaOS4 .so support
7878            lt_prog_compiler_pic='-fPIC'
7879        ;;
7880      m68k)
7881            # FIXME: we need at least 68020 code to build shared libraries, but
7882            # adding the `-m68020' flag to GCC prevents building anything better,
7883            # like `-m68040'.
7884            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7885        ;;
7886      esac
7887      ;;
7888
7889    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7890      # PIC is the default for these OSes.
7891      ;;
7892
7893    mingw* | cygwin* | pw32* | os2* | cegcc*)
7894      # This hack is so that the source file can tell whether it is being
7895      # built for inclusion in a dll (and should export symbols for example).
7896      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7897      # (--disable-auto-import) libraries
7898      lt_prog_compiler_pic='-DDLL_EXPORT'
7899      ;;
7900
7901    darwin* | rhapsody*)
7902      # PIC is the default on this platform
7903      # Common symbols not allowed in MH_DYLIB files
7904      lt_prog_compiler_pic='-fno-common'
7905      ;;
7906
7907    haiku*)
7908      # PIC is the default for Haiku.
7909      # The "-static" flag exists, but is broken.
7910      lt_prog_compiler_static=
7911      ;;
7912
7913    hpux*)
7914      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7915      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7916      # sets the default TLS model and affects inlining.
7917      case $host_cpu in
7918      hppa*64*)
7919	# +Z the default
7920	;;
7921      *)
7922	lt_prog_compiler_pic='-fPIC'
7923	;;
7924      esac
7925      ;;
7926
7927    interix[3-9]*)
7928      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7929      # Instead, we relocate shared libraries at runtime.
7930      ;;
7931
7932    msdosdjgpp*)
7933      # Just because we use GCC doesn't mean we suddenly get shared libraries
7934      # on systems that don't support them.
7935      lt_prog_compiler_can_build_shared=no
7936      enable_shared=no
7937      ;;
7938
7939    *nto* | *qnx*)
7940      # QNX uses GNU C++, but need to define -shared option too, otherwise
7941      # it will coredump.
7942      lt_prog_compiler_pic='-fPIC -shared'
7943      ;;
7944
7945    sysv4*MP*)
7946      if test -d /usr/nec; then
7947	lt_prog_compiler_pic=-Kconform_pic
7948      fi
7949      ;;
7950
7951    *)
7952      lt_prog_compiler_pic='-fPIC'
7953      ;;
7954    esac
7955
7956    case $cc_basename in
7957    nvcc*) # Cuda Compiler Driver 2.2
7958      lt_prog_compiler_wl='-Xlinker '
7959      lt_prog_compiler_pic='-Xcompiler -fPIC'
7960      ;;
7961    esac
7962  else
7963    # PORTME Check for flag to pass linker flags through the system compiler.
7964    case $host_os in
7965    aix*)
7966      lt_prog_compiler_wl='-Wl,'
7967      if test "$host_cpu" = ia64; then
7968	# AIX 5 now supports IA64 processor
7969	lt_prog_compiler_static='-Bstatic'
7970      else
7971	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7972      fi
7973      ;;
7974
7975    mingw* | cygwin* | pw32* | os2* | cegcc*)
7976      # This hack is so that the source file can tell whether it is being
7977      # built for inclusion in a dll (and should export symbols for example).
7978      lt_prog_compiler_pic='-DDLL_EXPORT'
7979      ;;
7980
7981    hpux9* | hpux10* | hpux11*)
7982      lt_prog_compiler_wl='-Wl,'
7983      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7984      # not for PA HP-UX.
7985      case $host_cpu in
7986      hppa*64*|ia64*)
7987	# +Z the default
7988	;;
7989      *)
7990	lt_prog_compiler_pic='+Z'
7991	;;
7992      esac
7993      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7994      lt_prog_compiler_static='${wl}-a ${wl}archive'
7995      ;;
7996
7997    irix5* | irix6* | nonstopux*)
7998      lt_prog_compiler_wl='-Wl,'
7999      # PIC (with -KPIC) is the default.
8000      lt_prog_compiler_static='-non_shared'
8001      ;;
8002
8003    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8004      case $cc_basename in
8005      # old Intel for x86_64 which still supported -KPIC.
8006      ecc*)
8007	lt_prog_compiler_wl='-Wl,'
8008	lt_prog_compiler_pic='-KPIC'
8009	lt_prog_compiler_static='-static'
8010        ;;
8011      # icc used to be incompatible with GCC.
8012      # ICC 10 doesn't accept -KPIC any more.
8013      icc* | ifort*)
8014	lt_prog_compiler_wl='-Wl,'
8015	lt_prog_compiler_pic='-fPIC'
8016	lt_prog_compiler_static='-static'
8017        ;;
8018      # Lahey Fortran 8.1.
8019      lf95*)
8020	lt_prog_compiler_wl='-Wl,'
8021	lt_prog_compiler_pic='--shared'
8022	lt_prog_compiler_static='--static'
8023	;;
8024      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8025        # Portland Group compilers (*not* the Pentium gcc compiler,
8026	# which looks to be a dead project)
8027	lt_prog_compiler_wl='-Wl,'
8028	lt_prog_compiler_pic='-fpic'
8029	lt_prog_compiler_static='-Bstatic'
8030        ;;
8031      ccc*)
8032        lt_prog_compiler_wl='-Wl,'
8033        # All Alpha code is PIC.
8034        lt_prog_compiler_static='-non_shared'
8035        ;;
8036      xl* | bgxl* | bgf* | mpixl*)
8037	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8038	lt_prog_compiler_wl='-Wl,'
8039	lt_prog_compiler_pic='-qpic'
8040	lt_prog_compiler_static='-qstaticlink'
8041	;;
8042      *)
8043	case `$CC -V 2>&1 | sed 5q` in
8044	*Sun\ F* | *Sun*Fortran*)
8045	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8046	  lt_prog_compiler_pic='-KPIC'
8047	  lt_prog_compiler_static='-Bstatic'
8048	  lt_prog_compiler_wl=''
8049	  ;;
8050	*Sun\ C*)
8051	  # Sun C 5.9
8052	  lt_prog_compiler_pic='-KPIC'
8053	  lt_prog_compiler_static='-Bstatic'
8054	  lt_prog_compiler_wl='-Wl,'
8055	  ;;
8056	esac
8057	;;
8058      esac
8059      ;;
8060
8061    newsos6)
8062      lt_prog_compiler_pic='-KPIC'
8063      lt_prog_compiler_static='-Bstatic'
8064      ;;
8065
8066    *nto* | *qnx*)
8067      # QNX uses GNU C++, but need to define -shared option too, otherwise
8068      # it will coredump.
8069      lt_prog_compiler_pic='-fPIC -shared'
8070      ;;
8071
8072    osf3* | osf4* | osf5*)
8073      lt_prog_compiler_wl='-Wl,'
8074      # All OSF/1 code is PIC.
8075      lt_prog_compiler_static='-non_shared'
8076      ;;
8077
8078    rdos*)
8079      lt_prog_compiler_static='-non_shared'
8080      ;;
8081
8082    solaris*)
8083      lt_prog_compiler_pic='-KPIC'
8084      lt_prog_compiler_static='-Bstatic'
8085      case $cc_basename in
8086      f77* | f90* | f95*)
8087	lt_prog_compiler_wl='-Qoption ld ';;
8088      *)
8089	lt_prog_compiler_wl='-Wl,';;
8090      esac
8091      ;;
8092
8093    sunos4*)
8094      lt_prog_compiler_wl='-Qoption ld '
8095      lt_prog_compiler_pic='-PIC'
8096      lt_prog_compiler_static='-Bstatic'
8097      ;;
8098
8099    sysv4 | sysv4.2uw2* | sysv4.3*)
8100      lt_prog_compiler_wl='-Wl,'
8101      lt_prog_compiler_pic='-KPIC'
8102      lt_prog_compiler_static='-Bstatic'
8103      ;;
8104
8105    sysv4*MP*)
8106      if test -d /usr/nec ;then
8107	lt_prog_compiler_pic='-Kconform_pic'
8108	lt_prog_compiler_static='-Bstatic'
8109      fi
8110      ;;
8111
8112    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8113      lt_prog_compiler_wl='-Wl,'
8114      lt_prog_compiler_pic='-KPIC'
8115      lt_prog_compiler_static='-Bstatic'
8116      ;;
8117
8118    unicos*)
8119      lt_prog_compiler_wl='-Wl,'
8120      lt_prog_compiler_can_build_shared=no
8121      ;;
8122
8123    uts4*)
8124      lt_prog_compiler_pic='-pic'
8125      lt_prog_compiler_static='-Bstatic'
8126      ;;
8127
8128    *)
8129      lt_prog_compiler_can_build_shared=no
8130      ;;
8131    esac
8132  fi
8133
8134case $host_os in
8135  # For platforms which do not support PIC, -DPIC is meaningless:
8136  *djgpp*)
8137    lt_prog_compiler_pic=
8138    ;;
8139  *)
8140    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8141    ;;
8142esac
8143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8144$as_echo "$lt_prog_compiler_pic" >&6; }
8145
8146
8147
8148
8149
8150
8151#
8152# Check to make sure the PIC flag actually works.
8153#
8154if test -n "$lt_prog_compiler_pic"; then
8155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8156$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8157if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8158  $as_echo_n "(cached) " >&6
8159else
8160  lt_cv_prog_compiler_pic_works=no
8161   ac_outfile=conftest.$ac_objext
8162   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8163   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8164   # Insert the option either (1) after the last *FLAGS variable, or
8165   # (2) before a word containing "conftest.", or (3) at the end.
8166   # Note that $ac_compile itself does not contain backslashes and begins
8167   # with a dollar sign (not a hyphen), so the echo should work correctly.
8168   # The option is referenced via a variable to avoid confusing sed.
8169   lt_compile=`echo "$ac_compile" | $SED \
8170   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8171   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8172   -e 's:$: $lt_compiler_flag:'`
8173   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8174   (eval "$lt_compile" 2>conftest.err)
8175   ac_status=$?
8176   cat conftest.err >&5
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   if (exit $ac_status) && test -s "$ac_outfile"; then
8179     # The compiler can only warn and ignore the option if not recognized
8180     # So say no if there are warnings other than the usual output.
8181     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8182     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8183     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8184       lt_cv_prog_compiler_pic_works=yes
8185     fi
8186   fi
8187   $RM conftest*
8188
8189fi
8190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8191$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8192
8193if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8194    case $lt_prog_compiler_pic in
8195     "" | " "*) ;;
8196     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8197     esac
8198else
8199    lt_prog_compiler_pic=
8200     lt_prog_compiler_can_build_shared=no
8201fi
8202
8203fi
8204
8205
8206
8207
8208
8209
8210#
8211# Check to make sure the static flag actually works.
8212#
8213wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8215$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8216if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8217  $as_echo_n "(cached) " >&6
8218else
8219  lt_cv_prog_compiler_static_works=no
8220   save_LDFLAGS="$LDFLAGS"
8221   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8222   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8223   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8224     # The linker can only warn and ignore the option if not recognized
8225     # So say no if there are warnings
8226     if test -s conftest.err; then
8227       # Append any errors to the config.log.
8228       cat conftest.err 1>&5
8229       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8230       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8231       if diff conftest.exp conftest.er2 >/dev/null; then
8232         lt_cv_prog_compiler_static_works=yes
8233       fi
8234     else
8235       lt_cv_prog_compiler_static_works=yes
8236     fi
8237   fi
8238   $RM -r conftest*
8239   LDFLAGS="$save_LDFLAGS"
8240
8241fi
8242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8243$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8244
8245if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8246    :
8247else
8248    lt_prog_compiler_static=
8249fi
8250
8251
8252
8253
8254
8255
8256
8257  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8258$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8259if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8260  $as_echo_n "(cached) " >&6
8261else
8262  lt_cv_prog_compiler_c_o=no
8263   $RM -r conftest 2>/dev/null
8264   mkdir conftest
8265   cd conftest
8266   mkdir out
8267   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8268
8269   lt_compiler_flag="-o out/conftest2.$ac_objext"
8270   # Insert the option either (1) after the last *FLAGS variable, or
8271   # (2) before a word containing "conftest.", or (3) at the end.
8272   # Note that $ac_compile itself does not contain backslashes and begins
8273   # with a dollar sign (not a hyphen), so the echo should work correctly.
8274   lt_compile=`echo "$ac_compile" | $SED \
8275   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8276   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8277   -e 's:$: $lt_compiler_flag:'`
8278   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8279   (eval "$lt_compile" 2>out/conftest.err)
8280   ac_status=$?
8281   cat out/conftest.err >&5
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8284   then
8285     # The compiler can only warn and ignore the option if not recognized
8286     # So say no if there are warnings
8287     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8288     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8289     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8290       lt_cv_prog_compiler_c_o=yes
8291     fi
8292   fi
8293   chmod u+w . 2>&5
8294   $RM conftest*
8295   # SGI C++ compiler will create directory out/ii_files/ for
8296   # template instantiation
8297   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8298   $RM out/* && rmdir out
8299   cd ..
8300   $RM -r conftest
8301   $RM conftest*
8302
8303fi
8304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8305$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8306
8307
8308
8309
8310
8311
8312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8313$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8314if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8315  $as_echo_n "(cached) " >&6
8316else
8317  lt_cv_prog_compiler_c_o=no
8318   $RM -r conftest 2>/dev/null
8319   mkdir conftest
8320   cd conftest
8321   mkdir out
8322   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8323
8324   lt_compiler_flag="-o out/conftest2.$ac_objext"
8325   # Insert the option either (1) after the last *FLAGS variable, or
8326   # (2) before a word containing "conftest.", or (3) at the end.
8327   # Note that $ac_compile itself does not contain backslashes and begins
8328   # with a dollar sign (not a hyphen), so the echo should work correctly.
8329   lt_compile=`echo "$ac_compile" | $SED \
8330   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8331   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8332   -e 's:$: $lt_compiler_flag:'`
8333   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8334   (eval "$lt_compile" 2>out/conftest.err)
8335   ac_status=$?
8336   cat out/conftest.err >&5
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8339   then
8340     # The compiler can only warn and ignore the option if not recognized
8341     # So say no if there are warnings
8342     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8343     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8344     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8345       lt_cv_prog_compiler_c_o=yes
8346     fi
8347   fi
8348   chmod u+w . 2>&5
8349   $RM conftest*
8350   # SGI C++ compiler will create directory out/ii_files/ for
8351   # template instantiation
8352   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8353   $RM out/* && rmdir out
8354   cd ..
8355   $RM -r conftest
8356   $RM conftest*
8357
8358fi
8359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8360$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8361
8362
8363
8364
8365hard_links="nottested"
8366if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8367  # do not overwrite the value of need_locks provided by the user
8368  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8369$as_echo_n "checking if we can lock with hard links... " >&6; }
8370  hard_links=yes
8371  $RM conftest*
8372  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8373  touch conftest.a
8374  ln conftest.a conftest.b 2>&5 || hard_links=no
8375  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8377$as_echo "$hard_links" >&6; }
8378  if test "$hard_links" = no; then
8379    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8380$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8381    need_locks=warn
8382  fi
8383else
8384  need_locks=no
8385fi
8386
8387
8388
8389
8390
8391
8392  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8393$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8394
8395  runpath_var=
8396  allow_undefined_flag=
8397  always_export_symbols=no
8398  archive_cmds=
8399  archive_expsym_cmds=
8400  compiler_needs_object=no
8401  enable_shared_with_static_runtimes=no
8402  export_dynamic_flag_spec=
8403  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8404  hardcode_automatic=no
8405  hardcode_direct=no
8406  hardcode_direct_absolute=no
8407  hardcode_libdir_flag_spec=
8408  hardcode_libdir_flag_spec_ld=
8409  hardcode_libdir_separator=
8410  hardcode_minus_L=no
8411  hardcode_shlibpath_var=unsupported
8412  inherit_rpath=no
8413  link_all_deplibs=unknown
8414  module_cmds=
8415  module_expsym_cmds=
8416  old_archive_from_new_cmds=
8417  old_archive_from_expsyms_cmds=
8418  thread_safe_flag_spec=
8419  whole_archive_flag_spec=
8420  # include_expsyms should be a list of space-separated symbols to be *always*
8421  # included in the symbol list
8422  include_expsyms=
8423  # exclude_expsyms can be an extended regexp of symbols to exclude
8424  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8425  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8426  # as well as any symbol that contains `d'.
8427  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8428  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8429  # platforms (ab)use it in PIC code, but their linkers get confused if
8430  # the symbol is explicitly referenced.  Since portable code cannot
8431  # rely on this symbol name, it's probably fine to never include it in
8432  # preloaded symbol tables.
8433  # Exclude shared library initialization/finalization symbols.
8434  extract_expsyms_cmds=
8435
8436  case $host_os in
8437  cygwin* | mingw* | pw32* | cegcc*)
8438    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8439    # When not using gcc, we currently assume that we are using
8440    # Microsoft Visual C++.
8441    if test "$GCC" != yes; then
8442      with_gnu_ld=no
8443    fi
8444    ;;
8445  interix*)
8446    # we just hope/assume this is gcc and not c89 (= MSVC++)
8447    with_gnu_ld=yes
8448    ;;
8449  openbsd*)
8450    with_gnu_ld=no
8451    ;;
8452  esac
8453
8454  ld_shlibs=yes
8455
8456  # On some targets, GNU ld is compatible enough with the native linker
8457  # that we're better off using the native interface for both.
8458  lt_use_gnu_ld_interface=no
8459  if test "$with_gnu_ld" = yes; then
8460    case $host_os in
8461      aix*)
8462	# The AIX port of GNU ld has always aspired to compatibility
8463	# with the native linker.  However, as the warning in the GNU ld
8464	# block says, versions before 2.19.5* couldn't really create working
8465	# shared libraries, regardless of the interface used.
8466	case `$LD -v 2>&1` in
8467	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8468	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8469	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8470	  *)
8471	    lt_use_gnu_ld_interface=yes
8472	    ;;
8473	esac
8474	;;
8475      *)
8476	lt_use_gnu_ld_interface=yes
8477	;;
8478    esac
8479  fi
8480
8481  if test "$lt_use_gnu_ld_interface" = yes; then
8482    # If archive_cmds runs LD, not CC, wlarc should be empty
8483    wlarc='${wl}'
8484
8485    # Set some defaults for GNU ld with shared library support. These
8486    # are reset later if shared libraries are not supported. Putting them
8487    # here allows them to be overridden if necessary.
8488    runpath_var=LD_RUN_PATH
8489    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8490    export_dynamic_flag_spec='${wl}--export-dynamic'
8491    # ancient GNU ld didn't support --whole-archive et. al.
8492    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8493      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8494    else
8495      whole_archive_flag_spec=
8496    fi
8497    supports_anon_versioning=no
8498    case `$LD -v 2>&1` in
8499      *GNU\ gold*) supports_anon_versioning=yes ;;
8500      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8501      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8502      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8503      *\ 2.11.*) ;; # other 2.11 versions
8504      *) supports_anon_versioning=yes ;;
8505    esac
8506
8507    # See if GNU ld supports shared libraries.
8508    case $host_os in
8509    aix[3-9]*)
8510      # On AIX/PPC, the GNU linker is very broken
8511      if test "$host_cpu" != ia64; then
8512	ld_shlibs=no
8513	cat <<_LT_EOF 1>&2
8514
8515*** Warning: the GNU linker, at least up to release 2.19, is reported
8516*** to be unable to reliably create shared libraries on AIX.
8517*** Therefore, libtool is disabling shared libraries support.  If you
8518*** really care for shared libraries, you may want to install binutils
8519*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8520*** You will then need to restart the configuration process.
8521
8522_LT_EOF
8523      fi
8524      ;;
8525
8526    amigaos*)
8527      case $host_cpu in
8528      powerpc)
8529            # see comment about AmigaOS4 .so support
8530            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8531            archive_expsym_cmds=''
8532        ;;
8533      m68k)
8534            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)'
8535            hardcode_libdir_flag_spec='-L$libdir'
8536            hardcode_minus_L=yes
8537        ;;
8538      esac
8539      ;;
8540
8541    beos*)
8542      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8543	allow_undefined_flag=unsupported
8544	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8545	# support --undefined.  This deserves some investigation.  FIXME
8546	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8547      else
8548	ld_shlibs=no
8549      fi
8550      ;;
8551
8552    cygwin* | mingw* | pw32* | cegcc*)
8553      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8554      # as there is no search path for DLLs.
8555      hardcode_libdir_flag_spec='-L$libdir'
8556      export_dynamic_flag_spec='${wl}--export-all-symbols'
8557      allow_undefined_flag=unsupported
8558      always_export_symbols=no
8559      enable_shared_with_static_runtimes=yes
8560      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8561
8562      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8563        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8564	# If the export-symbols file already is a .def file (1st line
8565	# is EXPORTS), use it as is; otherwise, prepend...
8566	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8567	  cp $export_symbols $output_objdir/$soname.def;
8568	else
8569	  echo EXPORTS > $output_objdir/$soname.def;
8570	  cat $export_symbols >> $output_objdir/$soname.def;
8571	fi~
8572	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8573      else
8574	ld_shlibs=no
8575      fi
8576      ;;
8577
8578    haiku*)
8579      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8580      link_all_deplibs=yes
8581      ;;
8582
8583    interix[3-9]*)
8584      hardcode_direct=no
8585      hardcode_shlibpath_var=no
8586      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8587      export_dynamic_flag_spec='${wl}-E'
8588      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8589      # Instead, shared libraries are loaded at an image base (0x10000000 by
8590      # default) and relocated if they conflict, which is a slow very memory
8591      # consuming and fragmenting process.  To avoid this, we pick a random,
8592      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8593      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8594      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8595      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'
8596      ;;
8597
8598    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8599      tmp_diet=no
8600      if test "$host_os" = linux-dietlibc; then
8601	case $cc_basename in
8602	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8603	esac
8604      fi
8605      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8606	 && test "$tmp_diet" = no
8607      then
8608	tmp_addflag=' $pic_flag'
8609	tmp_sharedflag='-shared'
8610	case $cc_basename,$host_cpu in
8611        pgcc*)				# Portland Group C compiler
8612	  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'
8613	  tmp_addflag=' $pic_flag'
8614	  ;;
8615	pgf77* | pgf90* | pgf95* | pgfortran*)
8616					# Portland Group f77 and f90 compilers
8617	  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'
8618	  tmp_addflag=' $pic_flag -Mnomain' ;;
8619	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8620	  tmp_addflag=' -i_dynamic' ;;
8621	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8622	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8623	ifc* | ifort*)			# Intel Fortran compiler
8624	  tmp_addflag=' -nofor_main' ;;
8625	lf95*)				# Lahey Fortran 8.1
8626	  whole_archive_flag_spec=
8627	  tmp_sharedflag='--shared' ;;
8628	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8629	  tmp_sharedflag='-qmkshrobj'
8630	  tmp_addflag= ;;
8631	nvcc*)	# Cuda Compiler Driver 2.2
8632	  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'
8633	  compiler_needs_object=yes
8634	  ;;
8635	esac
8636	case `$CC -V 2>&1 | sed 5q` in
8637	*Sun\ C*)			# Sun C 5.9
8638	  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'
8639	  compiler_needs_object=yes
8640	  tmp_sharedflag='-G' ;;
8641	*Sun\ F*)			# Sun Fortran 8.3
8642	  tmp_sharedflag='-G' ;;
8643	esac
8644	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8645
8646        if test "x$supports_anon_versioning" = xyes; then
8647          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8648	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8649	    echo "local: *; };" >> $output_objdir/$libname.ver~
8650	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8651        fi
8652
8653	case $cc_basename in
8654	xlf* | bgf* | bgxlf* | mpixlf*)
8655	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8656	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8657	  hardcode_libdir_flag_spec=
8658	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8659	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8660	  if test "x$supports_anon_versioning" = xyes; then
8661	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8662	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8663	      echo "local: *; };" >> $output_objdir/$libname.ver~
8664	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8665	  fi
8666	  ;;
8667	esac
8668      else
8669        ld_shlibs=no
8670      fi
8671      ;;
8672
8673    netbsd*)
8674      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8675	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8676	wlarc=
8677      else
8678	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8679	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8680      fi
8681      ;;
8682
8683    solaris*)
8684      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8685	ld_shlibs=no
8686	cat <<_LT_EOF 1>&2
8687
8688*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8689*** create shared libraries on Solaris systems.  Therefore, libtool
8690*** is disabling shared libraries support.  We urge you to upgrade GNU
8691*** binutils to release 2.9.1 or newer.  Another option is to modify
8692*** your PATH or compiler configuration so that the native linker is
8693*** used, and then restart.
8694
8695_LT_EOF
8696      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8697	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8699      else
8700	ld_shlibs=no
8701      fi
8702      ;;
8703
8704    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8705      case `$LD -v 2>&1` in
8706        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8707	ld_shlibs=no
8708	cat <<_LT_EOF 1>&2
8709
8710*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8711*** reliably create shared libraries on SCO systems.  Therefore, libtool
8712*** is disabling shared libraries support.  We urge you to upgrade GNU
8713*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8714*** your PATH or compiler configuration so that the native linker is
8715*** used, and then restart.
8716
8717_LT_EOF
8718	;;
8719	*)
8720	  # For security reasons, it is highly recommended that you always
8721	  # use absolute paths for naming shared libraries, and exclude the
8722	  # DT_RUNPATH tag from executables and libraries.  But doing so
8723	  # requires that you compile everything twice, which is a pain.
8724	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8725	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8726	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8727	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8728	  else
8729	    ld_shlibs=no
8730	  fi
8731	;;
8732      esac
8733      ;;
8734
8735    sunos4*)
8736      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8737      wlarc=
8738      hardcode_direct=yes
8739      hardcode_shlibpath_var=no
8740      ;;
8741
8742    *)
8743      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8744	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8745	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8746      else
8747	ld_shlibs=no
8748      fi
8749      ;;
8750    esac
8751
8752    if test "$ld_shlibs" = no; then
8753      runpath_var=
8754      hardcode_libdir_flag_spec=
8755      export_dynamic_flag_spec=
8756      whole_archive_flag_spec=
8757    fi
8758  else
8759    # PORTME fill in a description of your system's linker (not GNU ld)
8760    case $host_os in
8761    aix3*)
8762      allow_undefined_flag=unsupported
8763      always_export_symbols=yes
8764      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'
8765      # Note: this linker hardcodes the directories in LIBPATH if there
8766      # are no directories specified by -L.
8767      hardcode_minus_L=yes
8768      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8769	# Neither direct hardcoding nor static linking is supported with a
8770	# broken collect2.
8771	hardcode_direct=unsupported
8772      fi
8773      ;;
8774
8775    aix[4-9]*)
8776      if test "$host_cpu" = ia64; then
8777	# On IA64, the linker does run time linking by default, so we don't
8778	# have to do anything special.
8779	aix_use_runtimelinking=no
8780	exp_sym_flag='-Bexport'
8781	no_entry_flag=""
8782      else
8783	# If we're using GNU nm, then we don't want the "-C" option.
8784	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8785	# Also, AIX nm treats weak defined symbols like other global
8786	# defined symbols, whereas GNU nm marks them as "W".
8787	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8788	  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'
8789	else
8790	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8791	fi
8792	aix_use_runtimelinking=no
8793
8794	# Test if we are trying to use run time linking or normal
8795	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8796	# need to do runtime linking.
8797	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8798	  for ld_flag in $LDFLAGS; do
8799	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8800	    aix_use_runtimelinking=yes
8801	    break
8802	  fi
8803	  done
8804	  ;;
8805	esac
8806
8807	exp_sym_flag='-bexport'
8808	no_entry_flag='-bnoentry'
8809      fi
8810
8811      # When large executables or shared objects are built, AIX ld can
8812      # have problems creating the table of contents.  If linking a library
8813      # or program results in "error TOC overflow" add -mminimal-toc to
8814      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8815      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8816
8817      archive_cmds=''
8818      hardcode_direct=yes
8819      hardcode_direct_absolute=yes
8820      hardcode_libdir_separator=':'
8821      link_all_deplibs=yes
8822      file_list_spec='${wl}-f,'
8823
8824      if test "$GCC" = yes; then
8825	case $host_os in aix4.[012]|aix4.[012].*)
8826	# We only want to do this on AIX 4.2 and lower, the check
8827	# below for broken collect2 doesn't work under 4.3+
8828	  collect2name=`${CC} -print-prog-name=collect2`
8829	  if test -f "$collect2name" &&
8830	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8831	  then
8832	  # We have reworked collect2
8833	  :
8834	  else
8835	  # We have old collect2
8836	  hardcode_direct=unsupported
8837	  # It fails to find uninstalled libraries when the uninstalled
8838	  # path is not listed in the libpath.  Setting hardcode_minus_L
8839	  # to unsupported forces relinking
8840	  hardcode_minus_L=yes
8841	  hardcode_libdir_flag_spec='-L$libdir'
8842	  hardcode_libdir_separator=
8843	  fi
8844	  ;;
8845	esac
8846	shared_flag='-shared'
8847	if test "$aix_use_runtimelinking" = yes; then
8848	  shared_flag="$shared_flag "'${wl}-G'
8849	fi
8850      else
8851	# not using gcc
8852	if test "$host_cpu" = ia64; then
8853	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8854	# chokes on -Wl,-G. The following line is correct:
8855	  shared_flag='-G'
8856	else
8857	  if test "$aix_use_runtimelinking" = yes; then
8858	    shared_flag='${wl}-G'
8859	  else
8860	    shared_flag='${wl}-bM:SRE'
8861	  fi
8862	fi
8863      fi
8864
8865      export_dynamic_flag_spec='${wl}-bexpall'
8866      # It seems that -bexpall does not export symbols beginning with
8867      # underscore (_), so it is better to generate a list of symbols to export.
8868      always_export_symbols=yes
8869      if test "$aix_use_runtimelinking" = yes; then
8870	# Warning - without using the other runtime loading flags (-brtl),
8871	# -berok will link without error, but may produce a broken library.
8872	allow_undefined_flag='-berok'
8873        # Determine the default libpath from the value encoded in an
8874        # empty executable.
8875        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876/* end confdefs.h.  */
8877
8878int
8879main ()
8880{
8881
8882  ;
8883  return 0;
8884}
8885_ACEOF
8886if ac_fn_c_try_link "$LINENO"; then :
8887
8888lt_aix_libpath_sed='
8889    /Import File Strings/,/^$/ {
8890	/^0/ {
8891	    s/^0  *\(.*\)$/\1/
8892	    p
8893	}
8894    }'
8895aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8896# Check for a 64-bit object if we didn't find anything.
8897if test -z "$aix_libpath"; then
8898  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8899fi
8900fi
8901rm -f core conftest.err conftest.$ac_objext \
8902    conftest$ac_exeext conftest.$ac_ext
8903if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8904
8905        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8906        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"
8907      else
8908	if test "$host_cpu" = ia64; then
8909	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8910	  allow_undefined_flag="-z nodefs"
8911	  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"
8912	else
8913	 # Determine the default libpath from the value encoded in an
8914	 # empty executable.
8915	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916/* end confdefs.h.  */
8917
8918int
8919main ()
8920{
8921
8922  ;
8923  return 0;
8924}
8925_ACEOF
8926if ac_fn_c_try_link "$LINENO"; then :
8927
8928lt_aix_libpath_sed='
8929    /Import File Strings/,/^$/ {
8930	/^0/ {
8931	    s/^0  *\(.*\)$/\1/
8932	    p
8933	}
8934    }'
8935aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8936# Check for a 64-bit object if we didn't find anything.
8937if test -z "$aix_libpath"; then
8938  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8939fi
8940fi
8941rm -f core conftest.err conftest.$ac_objext \
8942    conftest$ac_exeext conftest.$ac_ext
8943if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8944
8945	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8946	  # Warning - without using the other run time loading flags,
8947	  # -berok will link without error, but may produce a broken library.
8948	  no_undefined_flag=' ${wl}-bernotok'
8949	  allow_undefined_flag=' ${wl}-berok'
8950	  if test "$with_gnu_ld" = yes; then
8951	    # We only use this code for GNU lds that support --whole-archive.
8952	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8953	  else
8954	    # Exported symbols can be pulled into shared objects from archives
8955	    whole_archive_flag_spec='$convenience'
8956	  fi
8957	  archive_cmds_need_lc=yes
8958	  # This is similar to how AIX traditionally builds its shared libraries.
8959	  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'
8960	fi
8961      fi
8962      ;;
8963
8964    amigaos*)
8965      case $host_cpu in
8966      powerpc)
8967            # see comment about AmigaOS4 .so support
8968            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969            archive_expsym_cmds=''
8970        ;;
8971      m68k)
8972            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)'
8973            hardcode_libdir_flag_spec='-L$libdir'
8974            hardcode_minus_L=yes
8975        ;;
8976      esac
8977      ;;
8978
8979    bsdi[45]*)
8980      export_dynamic_flag_spec=-rdynamic
8981      ;;
8982
8983    cygwin* | mingw* | pw32* | cegcc*)
8984      # When not using gcc, we currently assume that we are using
8985      # Microsoft Visual C++.
8986      # hardcode_libdir_flag_spec is actually meaningless, as there is
8987      # no search path for DLLs.
8988      hardcode_libdir_flag_spec=' '
8989      allow_undefined_flag=unsupported
8990      # Tell ltmain to make .lib files, not .a files.
8991      libext=lib
8992      # Tell ltmain to make .dll files, not .so files.
8993      shrext_cmds=".dll"
8994      # FIXME: Setting linknames here is a bad hack.
8995      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8996      # The linker will automatically build a .lib file if we build a DLL.
8997      old_archive_from_new_cmds='true'
8998      # FIXME: Should let the user specify the lib program.
8999      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9000      fix_srcfile_path='`cygpath -w "$srcfile"`'
9001      enable_shared_with_static_runtimes=yes
9002      ;;
9003
9004    darwin* | rhapsody*)
9005
9006
9007  archive_cmds_need_lc=no
9008  hardcode_direct=no
9009  hardcode_automatic=yes
9010  hardcode_shlibpath_var=unsupported
9011  if test "$lt_cv_ld_force_load" = "yes"; then
9012    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\"`'
9013  else
9014    whole_archive_flag_spec=''
9015  fi
9016  link_all_deplibs=yes
9017  allow_undefined_flag="$_lt_dar_allow_undefined"
9018  case $cc_basename in
9019     ifort*) _lt_dar_can_shared=yes ;;
9020     *) _lt_dar_can_shared=$GCC ;;
9021  esac
9022  if test "$_lt_dar_can_shared" = "yes"; then
9023    output_verbose_link_cmd=func_echo_all
9024    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9025    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9026    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}"
9027    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}"
9028
9029  else
9030  ld_shlibs=no
9031  fi
9032
9033      ;;
9034
9035    dgux*)
9036      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9037      hardcode_libdir_flag_spec='-L$libdir'
9038      hardcode_shlibpath_var=no
9039      ;;
9040
9041    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9042    # support.  Future versions do this automatically, but an explicit c++rt0.o
9043    # does not break anything, and helps significantly (at the cost of a little
9044    # extra space).
9045    freebsd2.2*)
9046      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9047      hardcode_libdir_flag_spec='-R$libdir'
9048      hardcode_direct=yes
9049      hardcode_shlibpath_var=no
9050      ;;
9051
9052    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9053    freebsd2.*)
9054      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9055      hardcode_direct=yes
9056      hardcode_minus_L=yes
9057      hardcode_shlibpath_var=no
9058      ;;
9059
9060    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9061    freebsd* | dragonfly*)
9062      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9063      hardcode_libdir_flag_spec='-R$libdir'
9064      hardcode_direct=yes
9065      hardcode_shlibpath_var=no
9066      ;;
9067
9068    hpux9*)
9069      if test "$GCC" = yes; then
9070	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'
9071      else
9072	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'
9073      fi
9074      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9075      hardcode_libdir_separator=:
9076      hardcode_direct=yes
9077
9078      # hardcode_minus_L: Not really in the search PATH,
9079      # but as the default location of the library.
9080      hardcode_minus_L=yes
9081      export_dynamic_flag_spec='${wl}-E'
9082      ;;
9083
9084    hpux10*)
9085      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9086	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9087      else
9088	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9089      fi
9090      if test "$with_gnu_ld" = no; then
9091	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9092	hardcode_libdir_flag_spec_ld='+b $libdir'
9093	hardcode_libdir_separator=:
9094	hardcode_direct=yes
9095	hardcode_direct_absolute=yes
9096	export_dynamic_flag_spec='${wl}-E'
9097	# hardcode_minus_L: Not really in the search PATH,
9098	# but as the default location of the library.
9099	hardcode_minus_L=yes
9100      fi
9101      ;;
9102
9103    hpux11*)
9104      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9105	case $host_cpu in
9106	hppa*64*)
9107	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9108	  ;;
9109	ia64*)
9110	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9111	  ;;
9112	*)
9113	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9114	  ;;
9115	esac
9116      else
9117	case $host_cpu in
9118	hppa*64*)
9119	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9120	  ;;
9121	ia64*)
9122	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9123	  ;;
9124	*)
9125
9126	  # Older versions of the 11.00 compiler do not understand -b yet
9127	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9128	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9129$as_echo_n "checking if $CC understands -b... " >&6; }
9130if test "${lt_cv_prog_compiler__b+set}" = set; then :
9131  $as_echo_n "(cached) " >&6
9132else
9133  lt_cv_prog_compiler__b=no
9134   save_LDFLAGS="$LDFLAGS"
9135   LDFLAGS="$LDFLAGS -b"
9136   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9137   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9138     # The linker can only warn and ignore the option if not recognized
9139     # So say no if there are warnings
9140     if test -s conftest.err; then
9141       # Append any errors to the config.log.
9142       cat conftest.err 1>&5
9143       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9144       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9145       if diff conftest.exp conftest.er2 >/dev/null; then
9146         lt_cv_prog_compiler__b=yes
9147       fi
9148     else
9149       lt_cv_prog_compiler__b=yes
9150     fi
9151   fi
9152   $RM -r conftest*
9153   LDFLAGS="$save_LDFLAGS"
9154
9155fi
9156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9157$as_echo "$lt_cv_prog_compiler__b" >&6; }
9158
9159if test x"$lt_cv_prog_compiler__b" = xyes; then
9160    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9161else
9162    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9163fi
9164
9165	  ;;
9166	esac
9167      fi
9168      if test "$with_gnu_ld" = no; then
9169	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9170	hardcode_libdir_separator=:
9171
9172	case $host_cpu in
9173	hppa*64*|ia64*)
9174	  hardcode_direct=no
9175	  hardcode_shlibpath_var=no
9176	  ;;
9177	*)
9178	  hardcode_direct=yes
9179	  hardcode_direct_absolute=yes
9180	  export_dynamic_flag_spec='${wl}-E'
9181
9182	  # hardcode_minus_L: Not really in the search PATH,
9183	  # but as the default location of the library.
9184	  hardcode_minus_L=yes
9185	  ;;
9186	esac
9187      fi
9188      ;;
9189
9190    irix5* | irix6* | nonstopux*)
9191      if test "$GCC" = yes; then
9192	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'
9193	# Try to use the -exported_symbol ld option, if it does not
9194	# work, assume that -exports_file does not work either and
9195	# implicitly export all symbols.
9196        save_LDFLAGS="$LDFLAGS"
9197        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9198        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199/* end confdefs.h.  */
9200int foo(void) {}
9201_ACEOF
9202if ac_fn_c_try_link "$LINENO"; then :
9203  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'
9204
9205fi
9206rm -f core conftest.err conftest.$ac_objext \
9207    conftest$ac_exeext conftest.$ac_ext
9208        LDFLAGS="$save_LDFLAGS"
9209      else
9210	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'
9211	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'
9212      fi
9213      archive_cmds_need_lc='no'
9214      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9215      hardcode_libdir_separator=:
9216      inherit_rpath=yes
9217      link_all_deplibs=yes
9218      ;;
9219
9220    netbsd*)
9221      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9222	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9223      else
9224	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9225      fi
9226      hardcode_libdir_flag_spec='-R$libdir'
9227      hardcode_direct=yes
9228      hardcode_shlibpath_var=no
9229      ;;
9230
9231    newsos6)
9232      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9233      hardcode_direct=yes
9234      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9235      hardcode_libdir_separator=:
9236      hardcode_shlibpath_var=no
9237      ;;
9238
9239    *nto* | *qnx*)
9240      ;;
9241
9242    openbsd*)
9243      if test -f /usr/libexec/ld.so; then
9244	hardcode_direct=yes
9245	hardcode_shlibpath_var=no
9246	hardcode_direct_absolute=yes
9247	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9248	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9249	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9250	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9251	  export_dynamic_flag_spec='${wl}-E'
9252	else
9253	  case $host_os in
9254	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9255	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9256	     hardcode_libdir_flag_spec='-R$libdir'
9257	     ;;
9258	   *)
9259	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9260	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9261	     ;;
9262	  esac
9263	fi
9264      else
9265	ld_shlibs=no
9266      fi
9267      ;;
9268
9269    os2*)
9270      hardcode_libdir_flag_spec='-L$libdir'
9271      hardcode_minus_L=yes
9272      allow_undefined_flag=unsupported
9273      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'
9274      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9275      ;;
9276
9277    osf3*)
9278      if test "$GCC" = yes; then
9279	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9280	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'
9281      else
9282	allow_undefined_flag=' -expect_unresolved \*'
9283	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'
9284      fi
9285      archive_cmds_need_lc='no'
9286      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9287      hardcode_libdir_separator=:
9288      ;;
9289
9290    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9291      if test "$GCC" = yes; then
9292	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9293	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'
9294	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9295      else
9296	allow_undefined_flag=' -expect_unresolved \*'
9297	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'
9298	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~
9299	$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'
9300
9301	# Both c and cxx compiler support -rpath directly
9302	hardcode_libdir_flag_spec='-rpath $libdir'
9303      fi
9304      archive_cmds_need_lc='no'
9305      hardcode_libdir_separator=:
9306      ;;
9307
9308    solaris*)
9309      no_undefined_flag=' -z defs'
9310      if test "$GCC" = yes; then
9311	wlarc='${wl}'
9312	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9313	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9314	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9315      else
9316	case `$CC -V 2>&1` in
9317	*"Compilers 5.0"*)
9318	  wlarc=''
9319	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9320	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9321	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9322	  ;;
9323	*)
9324	  wlarc='${wl}'
9325	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9326	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9327	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9328	  ;;
9329	esac
9330      fi
9331      hardcode_libdir_flag_spec='-R$libdir'
9332      hardcode_shlibpath_var=no
9333      case $host_os in
9334      solaris2.[0-5] | solaris2.[0-5].*) ;;
9335      *)
9336	# The compiler driver will combine and reorder linker options,
9337	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9338	# but is careful enough not to reorder.
9339	# Supported since Solaris 2.6 (maybe 2.5.1?)
9340	if test "$GCC" = yes; then
9341	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9342	else
9343	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9344	fi
9345	;;
9346      esac
9347      link_all_deplibs=yes
9348      ;;
9349
9350    sunos4*)
9351      if test "x$host_vendor" = xsequent; then
9352	# Use $CC to link under sequent, because it throws in some extra .o
9353	# files that make .init and .fini sections work.
9354	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9355      else
9356	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9357      fi
9358      hardcode_libdir_flag_spec='-L$libdir'
9359      hardcode_direct=yes
9360      hardcode_minus_L=yes
9361      hardcode_shlibpath_var=no
9362      ;;
9363
9364    sysv4)
9365      case $host_vendor in
9366	sni)
9367	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9368	  hardcode_direct=yes # is this really true???
9369	;;
9370	siemens)
9371	  ## LD is ld it makes a PLAMLIB
9372	  ## CC just makes a GrossModule.
9373	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9374	  reload_cmds='$CC -r -o $output$reload_objs'
9375	  hardcode_direct=no
9376        ;;
9377	motorola)
9378	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9379	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9380	;;
9381      esac
9382      runpath_var='LD_RUN_PATH'
9383      hardcode_shlibpath_var=no
9384      ;;
9385
9386    sysv4.3*)
9387      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9388      hardcode_shlibpath_var=no
9389      export_dynamic_flag_spec='-Bexport'
9390      ;;
9391
9392    sysv4*MP*)
9393      if test -d /usr/nec; then
9394	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9395	hardcode_shlibpath_var=no
9396	runpath_var=LD_RUN_PATH
9397	hardcode_runpath_var=yes
9398	ld_shlibs=yes
9399      fi
9400      ;;
9401
9402    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9403      no_undefined_flag='${wl}-z,text'
9404      archive_cmds_need_lc=no
9405      hardcode_shlibpath_var=no
9406      runpath_var='LD_RUN_PATH'
9407
9408      if test "$GCC" = yes; then
9409	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9410	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9411      else
9412	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9413	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9414      fi
9415      ;;
9416
9417    sysv5* | sco3.2v5* | sco5v6*)
9418      # Note: We can NOT use -z defs as we might desire, because we do not
9419      # link with -lc, and that would cause any symbols used from libc to
9420      # always be unresolved, which means just about no library would
9421      # ever link correctly.  If we're not using GNU ld we use -z text
9422      # though, which does catch some bad symbols but isn't as heavy-handed
9423      # as -z defs.
9424      no_undefined_flag='${wl}-z,text'
9425      allow_undefined_flag='${wl}-z,nodefs'
9426      archive_cmds_need_lc=no
9427      hardcode_shlibpath_var=no
9428      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9429      hardcode_libdir_separator=':'
9430      link_all_deplibs=yes
9431      export_dynamic_flag_spec='${wl}-Bexport'
9432      runpath_var='LD_RUN_PATH'
9433
9434      if test "$GCC" = yes; then
9435	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9436	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9437      else
9438	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9439	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440      fi
9441      ;;
9442
9443    uts4*)
9444      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9445      hardcode_libdir_flag_spec='-L$libdir'
9446      hardcode_shlibpath_var=no
9447      ;;
9448
9449    *)
9450      ld_shlibs=no
9451      ;;
9452    esac
9453
9454    if test x$host_vendor = xsni; then
9455      case $host in
9456      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9457	export_dynamic_flag_spec='${wl}-Blargedynsym'
9458	;;
9459      esac
9460    fi
9461  fi
9462
9463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9464$as_echo "$ld_shlibs" >&6; }
9465test "$ld_shlibs" = no && can_build_shared=no
9466
9467with_gnu_ld=$with_gnu_ld
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483#
9484# Do we need to explicitly link libc?
9485#
9486case "x$archive_cmds_need_lc" in
9487x|xyes)
9488  # Assume -lc should be added
9489  archive_cmds_need_lc=yes
9490
9491  if test "$enable_shared" = yes && test "$GCC" = yes; then
9492    case $archive_cmds in
9493    *'~'*)
9494      # FIXME: we may have to deal with multi-command sequences.
9495      ;;
9496    '$CC '*)
9497      # Test whether the compiler implicitly links with -lc since on some
9498      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9499      # to ld, don't add -lc before -lgcc.
9500      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9501$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9502if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9503  $as_echo_n "(cached) " >&6
9504else
9505  $RM conftest*
9506	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9507
9508	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9509  (eval $ac_compile) 2>&5
9510  ac_status=$?
9511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9512  test $ac_status = 0; } 2>conftest.err; then
9513	  soname=conftest
9514	  lib=conftest
9515	  libobjs=conftest.$ac_objext
9516	  deplibs=
9517	  wl=$lt_prog_compiler_wl
9518	  pic_flag=$lt_prog_compiler_pic
9519	  compiler_flags=-v
9520	  linker_flags=-v
9521	  verstring=
9522	  output_objdir=.
9523	  libname=conftest
9524	  lt_save_allow_undefined_flag=$allow_undefined_flag
9525	  allow_undefined_flag=
9526	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9527  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9528  ac_status=$?
9529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9530  test $ac_status = 0; }
9531	  then
9532	    lt_cv_archive_cmds_need_lc=no
9533	  else
9534	    lt_cv_archive_cmds_need_lc=yes
9535	  fi
9536	  allow_undefined_flag=$lt_save_allow_undefined_flag
9537	else
9538	  cat conftest.err 1>&5
9539	fi
9540	$RM conftest*
9541
9542fi
9543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9544$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9545      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9546      ;;
9547    esac
9548  fi
9549  ;;
9550esac
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
9701
9702
9703
9704
9705
9706
9707
9708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9709$as_echo_n "checking dynamic linker characteristics... " >&6; }
9710
9711if test "$GCC" = yes; then
9712  case $host_os in
9713    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9714    *) lt_awk_arg="/^libraries:/" ;;
9715  esac
9716  case $host_os in
9717    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9718    *) lt_sed_strip_eq="s,=/,/,g" ;;
9719  esac
9720  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9721  case $lt_search_path_spec in
9722  *\;*)
9723    # if the path contains ";" then we assume it to be the separator
9724    # otherwise default to the standard path separator (i.e. ":") - it is
9725    # assumed that no part of a normal pathname contains ";" but that should
9726    # okay in the real world where ";" in dirpaths is itself problematic.
9727    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9728    ;;
9729  *)
9730    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9731    ;;
9732  esac
9733  # Ok, now we have the path, separated by spaces, we can step through it
9734  # and add multilib dir if necessary.
9735  lt_tmp_lt_search_path_spec=
9736  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9737  for lt_sys_path in $lt_search_path_spec; do
9738    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9739      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9740    else
9741      test -d "$lt_sys_path" && \
9742	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9743    fi
9744  done
9745  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9746BEGIN {RS=" "; FS="/|\n";} {
9747  lt_foo="";
9748  lt_count=0;
9749  for (lt_i = NF; lt_i > 0; lt_i--) {
9750    if ($lt_i != "" && $lt_i != ".") {
9751      if ($lt_i == "..") {
9752        lt_count++;
9753      } else {
9754        if (lt_count == 0) {
9755          lt_foo="/" $lt_i lt_foo;
9756        } else {
9757          lt_count--;
9758        }
9759      }
9760    }
9761  }
9762  if (lt_foo != "") { lt_freq[lt_foo]++; }
9763  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9764}'`
9765  # AWK program above erroneously prepends '/' to C:/dos/paths
9766  # for these hosts.
9767  case $host_os in
9768    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9769      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9770  esac
9771  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9772else
9773  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9774fi
9775library_names_spec=
9776libname_spec='lib$name'
9777soname_spec=
9778shrext_cmds=".so"
9779postinstall_cmds=
9780postuninstall_cmds=
9781finish_cmds=
9782finish_eval=
9783shlibpath_var=
9784shlibpath_overrides_runpath=unknown
9785version_type=none
9786dynamic_linker="$host_os ld.so"
9787sys_lib_dlsearch_path_spec="/lib /usr/lib"
9788need_lib_prefix=unknown
9789hardcode_into_libs=no
9790
9791# when you set need_version to no, make sure it does not cause -set_version
9792# flags to be left without arguments
9793need_version=unknown
9794
9795case $host_os in
9796aix3*)
9797  version_type=linux
9798  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9799  shlibpath_var=LIBPATH
9800
9801  # AIX 3 has no versioning support, so we append a major version to the name.
9802  soname_spec='${libname}${release}${shared_ext}$major'
9803  ;;
9804
9805aix[4-9]*)
9806  version_type=linux
9807  need_lib_prefix=no
9808  need_version=no
9809  hardcode_into_libs=yes
9810  if test "$host_cpu" = ia64; then
9811    # AIX 5 supports IA64
9812    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9813    shlibpath_var=LD_LIBRARY_PATH
9814  else
9815    # With GCC up to 2.95.x, collect2 would create an import file
9816    # for dependence libraries.  The import file would start with
9817    # the line `#! .'.  This would cause the generated library to
9818    # depend on `.', always an invalid library.  This was fixed in
9819    # development snapshots of GCC prior to 3.0.
9820    case $host_os in
9821      aix4 | aix4.[01] | aix4.[01].*)
9822      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9823	   echo ' yes '
9824	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9825	:
9826      else
9827	can_build_shared=no
9828      fi
9829      ;;
9830    esac
9831    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9832    # soname into executable. Probably we can add versioning support to
9833    # collect2, so additional links can be useful in future.
9834    if test "$aix_use_runtimelinking" = yes; then
9835      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9836      # instead of lib<name>.a to let people know that these are not
9837      # typical AIX shared libraries.
9838      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9839    else
9840      # We preserve .a as extension for shared libraries through AIX4.2
9841      # and later when we are not doing run time linking.
9842      library_names_spec='${libname}${release}.a $libname.a'
9843      soname_spec='${libname}${release}${shared_ext}$major'
9844    fi
9845    shlibpath_var=LIBPATH
9846  fi
9847  ;;
9848
9849amigaos*)
9850  case $host_cpu in
9851  powerpc)
9852    # Since July 2007 AmigaOS4 officially supports .so libraries.
9853    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9854    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9855    ;;
9856  m68k)
9857    library_names_spec='$libname.ixlibrary $libname.a'
9858    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9859    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'
9860    ;;
9861  esac
9862  ;;
9863
9864beos*)
9865  library_names_spec='${libname}${shared_ext}'
9866  dynamic_linker="$host_os ld.so"
9867  shlibpath_var=LIBRARY_PATH
9868  ;;
9869
9870bsdi[45]*)
9871  version_type=linux
9872  need_version=no
9873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9874  soname_spec='${libname}${release}${shared_ext}$major'
9875  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9876  shlibpath_var=LD_LIBRARY_PATH
9877  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9878  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9879  # the default ld.so.conf also contains /usr/contrib/lib and
9880  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9881  # libtool to hard-code these into programs
9882  ;;
9883
9884cygwin* | mingw* | pw32* | cegcc*)
9885  version_type=windows
9886  shrext_cmds=".dll"
9887  need_version=no
9888  need_lib_prefix=no
9889
9890  case $GCC,$host_os in
9891  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9892    library_names_spec='$libname.dll.a'
9893    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9894    postinstall_cmds='base_file=`basename \${file}`~
9895      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9896      dldir=$destdir/`dirname \$dlpath`~
9897      test -d \$dldir || mkdir -p \$dldir~
9898      $install_prog $dir/$dlname \$dldir/$dlname~
9899      chmod a+x \$dldir/$dlname~
9900      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9901        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9902      fi'
9903    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9904      dlpath=$dir/\$dldll~
9905       $RM \$dlpath'
9906    shlibpath_overrides_runpath=yes
9907
9908    case $host_os in
9909    cygwin*)
9910      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9911      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9912
9913      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9914      ;;
9915    mingw* | cegcc*)
9916      # MinGW DLLs use traditional 'lib' prefix
9917      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9918      ;;
9919    pw32*)
9920      # pw32 DLLs use 'pw' prefix rather than 'lib'
9921      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9922      ;;
9923    esac
9924    ;;
9925
9926  *)
9927    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9928    ;;
9929  esac
9930  dynamic_linker='Win32 ld.exe'
9931  # FIXME: first we should search . and the directory the executable is in
9932  shlibpath_var=PATH
9933  ;;
9934
9935darwin* | rhapsody*)
9936  dynamic_linker="$host_os dyld"
9937  version_type=darwin
9938  need_lib_prefix=no
9939  need_version=no
9940  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9941  soname_spec='${libname}${release}${major}$shared_ext'
9942  shlibpath_overrides_runpath=yes
9943  shlibpath_var=DYLD_LIBRARY_PATH
9944  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9945
9946  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9947  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9948  ;;
9949
9950dgux*)
9951  version_type=linux
9952  need_lib_prefix=no
9953  need_version=no
9954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9955  soname_spec='${libname}${release}${shared_ext}$major'
9956  shlibpath_var=LD_LIBRARY_PATH
9957  ;;
9958
9959freebsd* | dragonfly*)
9960  # DragonFly does not have aout.  When/if they implement a new
9961  # versioning mechanism, adjust this.
9962  if test -x /usr/bin/objformat; then
9963    objformat=`/usr/bin/objformat`
9964  else
9965    case $host_os in
9966    freebsd[23].*) objformat=aout ;;
9967    *) objformat=elf ;;
9968    esac
9969  fi
9970  version_type=freebsd-$objformat
9971  case $version_type in
9972    freebsd-elf*)
9973      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9974      need_version=no
9975      need_lib_prefix=no
9976      ;;
9977    freebsd-*)
9978      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9979      need_version=yes
9980      ;;
9981  esac
9982  shlibpath_var=LD_LIBRARY_PATH
9983  case $host_os in
9984  freebsd2.*)
9985    shlibpath_overrides_runpath=yes
9986    ;;
9987  freebsd3.[01]* | freebsdelf3.[01]*)
9988    shlibpath_overrides_runpath=yes
9989    hardcode_into_libs=yes
9990    ;;
9991  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9992  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9993    shlibpath_overrides_runpath=no
9994    hardcode_into_libs=yes
9995    ;;
9996  *) # from 4.6 on, and DragonFly
9997    shlibpath_overrides_runpath=yes
9998    hardcode_into_libs=yes
9999    ;;
10000  esac
10001  ;;
10002
10003gnu*)
10004  version_type=linux
10005  need_lib_prefix=no
10006  need_version=no
10007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10008  soname_spec='${libname}${release}${shared_ext}$major'
10009  shlibpath_var=LD_LIBRARY_PATH
10010  hardcode_into_libs=yes
10011  ;;
10012
10013haiku*)
10014  version_type=linux
10015  need_lib_prefix=no
10016  need_version=no
10017  dynamic_linker="$host_os runtime_loader"
10018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10019  soname_spec='${libname}${release}${shared_ext}$major'
10020  shlibpath_var=LIBRARY_PATH
10021  shlibpath_overrides_runpath=yes
10022  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10023  hardcode_into_libs=yes
10024  ;;
10025
10026hpux9* | hpux10* | hpux11*)
10027  # Give a soname corresponding to the major version so that dld.sl refuses to
10028  # link against other versions.
10029  version_type=sunos
10030  need_lib_prefix=no
10031  need_version=no
10032  case $host_cpu in
10033  ia64*)
10034    shrext_cmds='.so'
10035    hardcode_into_libs=yes
10036    dynamic_linker="$host_os dld.so"
10037    shlibpath_var=LD_LIBRARY_PATH
10038    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10039    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10040    soname_spec='${libname}${release}${shared_ext}$major'
10041    if test "X$HPUX_IA64_MODE" = X32; then
10042      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10043    else
10044      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10045    fi
10046    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10047    ;;
10048  hppa*64*)
10049    shrext_cmds='.sl'
10050    hardcode_into_libs=yes
10051    dynamic_linker="$host_os dld.sl"
10052    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10053    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10054    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055    soname_spec='${libname}${release}${shared_ext}$major'
10056    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10057    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10058    ;;
10059  *)
10060    shrext_cmds='.sl'
10061    dynamic_linker="$host_os dld.sl"
10062    shlibpath_var=SHLIB_PATH
10063    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10064    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10065    soname_spec='${libname}${release}${shared_ext}$major'
10066    ;;
10067  esac
10068  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10069  postinstall_cmds='chmod 555 $lib'
10070  # or fails outright, so override atomically:
10071  install_override_mode=555
10072  ;;
10073
10074interix[3-9]*)
10075  version_type=linux
10076  need_lib_prefix=no
10077  need_version=no
10078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10079  soname_spec='${libname}${release}${shared_ext}$major'
10080  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10081  shlibpath_var=LD_LIBRARY_PATH
10082  shlibpath_overrides_runpath=no
10083  hardcode_into_libs=yes
10084  ;;
10085
10086irix5* | irix6* | nonstopux*)
10087  case $host_os in
10088    nonstopux*) version_type=nonstopux ;;
10089    *)
10090	if test "$lt_cv_prog_gnu_ld" = yes; then
10091		version_type=linux
10092	else
10093		version_type=irix
10094	fi ;;
10095  esac
10096  need_lib_prefix=no
10097  need_version=no
10098  soname_spec='${libname}${release}${shared_ext}$major'
10099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10100  case $host_os in
10101  irix5* | nonstopux*)
10102    libsuff= shlibsuff=
10103    ;;
10104  *)
10105    case $LD in # libtool.m4 will add one of these switches to LD
10106    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10107      libsuff= shlibsuff= libmagic=32-bit;;
10108    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10109      libsuff=32 shlibsuff=N32 libmagic=N32;;
10110    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10111      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10112    *) libsuff= shlibsuff= libmagic=never-match;;
10113    esac
10114    ;;
10115  esac
10116  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10117  shlibpath_overrides_runpath=no
10118  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10119  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10120  hardcode_into_libs=yes
10121  ;;
10122
10123# No shared lib support for Linux oldld, aout, or coff.
10124linux*oldld* | linux*aout* | linux*coff*)
10125  dynamic_linker=no
10126  ;;
10127
10128# This must be Linux ELF.
10129linux* | k*bsd*-gnu | kopensolaris*-gnu)
10130  version_type=linux
10131  need_lib_prefix=no
10132  need_version=no
10133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134  soname_spec='${libname}${release}${shared_ext}$major'
10135  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10136  shlibpath_var=LD_LIBRARY_PATH
10137  shlibpath_overrides_runpath=no
10138
10139  # Some binutils ld are patched to set DT_RUNPATH
10140  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10141  $as_echo_n "(cached) " >&6
10142else
10143  lt_cv_shlibpath_overrides_runpath=no
10144    save_LDFLAGS=$LDFLAGS
10145    save_libdir=$libdir
10146    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10147	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10148    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149/* end confdefs.h.  */
10150
10151int
10152main ()
10153{
10154
10155  ;
10156  return 0;
10157}
10158_ACEOF
10159if ac_fn_c_try_link "$LINENO"; then :
10160  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10161  lt_cv_shlibpath_overrides_runpath=yes
10162fi
10163fi
10164rm -f core conftest.err conftest.$ac_objext \
10165    conftest$ac_exeext conftest.$ac_ext
10166    LDFLAGS=$save_LDFLAGS
10167    libdir=$save_libdir
10168
10169fi
10170
10171  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10172
10173  # This implies no fast_install, which is unacceptable.
10174  # Some rework will be needed to allow for fast_install
10175  # before this can be enabled.
10176  hardcode_into_libs=yes
10177
10178  # Append ld.so.conf contents to the search path
10179  if test -f /etc/ld.so.conf; then
10180    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' ' '`
10181    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10182  fi
10183
10184  # We used to test for /lib/ld.so.1 and disable shared libraries on
10185  # powerpc, because MkLinux only supported shared libraries with the
10186  # GNU dynamic linker.  Since this was broken with cross compilers,
10187  # most powerpc-linux boxes support dynamic linking these days and
10188  # people can always --disable-shared, the test was removed, and we
10189  # assume the GNU/Linux dynamic linker is in use.
10190  dynamic_linker='GNU/Linux ld.so'
10191  ;;
10192
10193netbsd*)
10194  version_type=sunos
10195  need_lib_prefix=no
10196  need_version=no
10197  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10198    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10199    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10200    dynamic_linker='NetBSD (a.out) ld.so'
10201  else
10202    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10203    soname_spec='${libname}${release}${shared_ext}$major'
10204    dynamic_linker='NetBSD ld.elf_so'
10205  fi
10206  shlibpath_var=LD_LIBRARY_PATH
10207  shlibpath_overrides_runpath=yes
10208  hardcode_into_libs=yes
10209  ;;
10210
10211newsos6)
10212  version_type=linux
10213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214  shlibpath_var=LD_LIBRARY_PATH
10215  shlibpath_overrides_runpath=yes
10216  ;;
10217
10218*nto* | *qnx*)
10219  version_type=qnx
10220  need_lib_prefix=no
10221  need_version=no
10222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10223  soname_spec='${libname}${release}${shared_ext}$major'
10224  shlibpath_var=LD_LIBRARY_PATH
10225  shlibpath_overrides_runpath=no
10226  hardcode_into_libs=yes
10227  dynamic_linker='ldqnx.so'
10228  ;;
10229
10230openbsd*)
10231  version_type=sunos
10232  sys_lib_dlsearch_path_spec="/usr/lib"
10233  need_lib_prefix=no
10234  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10235  case $host_os in
10236    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10237    *)				need_version=no  ;;
10238  esac
10239  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10240  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10241  shlibpath_var=LD_LIBRARY_PATH
10242  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10243    case $host_os in
10244      openbsd2.[89] | openbsd2.[89].*)
10245	shlibpath_overrides_runpath=no
10246	;;
10247      *)
10248	shlibpath_overrides_runpath=yes
10249	;;
10250      esac
10251  else
10252    shlibpath_overrides_runpath=yes
10253  fi
10254  ;;
10255
10256os2*)
10257  libname_spec='$name'
10258  shrext_cmds=".dll"
10259  need_lib_prefix=no
10260  library_names_spec='$libname${shared_ext} $libname.a'
10261  dynamic_linker='OS/2 ld.exe'
10262  shlibpath_var=LIBPATH
10263  ;;
10264
10265osf3* | osf4* | osf5*)
10266  version_type=osf
10267  need_lib_prefix=no
10268  need_version=no
10269  soname_spec='${libname}${release}${shared_ext}$major'
10270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271  shlibpath_var=LD_LIBRARY_PATH
10272  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10273  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10274  ;;
10275
10276rdos*)
10277  dynamic_linker=no
10278  ;;
10279
10280solaris*)
10281  version_type=linux
10282  need_lib_prefix=no
10283  need_version=no
10284  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285  soname_spec='${libname}${release}${shared_ext}$major'
10286  shlibpath_var=LD_LIBRARY_PATH
10287  shlibpath_overrides_runpath=yes
10288  hardcode_into_libs=yes
10289  # ldd complains unless libraries are executable
10290  postinstall_cmds='chmod +x $lib'
10291  ;;
10292
10293sunos4*)
10294  version_type=sunos
10295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10296  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10297  shlibpath_var=LD_LIBRARY_PATH
10298  shlibpath_overrides_runpath=yes
10299  if test "$with_gnu_ld" = yes; then
10300    need_lib_prefix=no
10301  fi
10302  need_version=yes
10303  ;;
10304
10305sysv4 | sysv4.3*)
10306  version_type=linux
10307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308  soname_spec='${libname}${release}${shared_ext}$major'
10309  shlibpath_var=LD_LIBRARY_PATH
10310  case $host_vendor in
10311    sni)
10312      shlibpath_overrides_runpath=no
10313      need_lib_prefix=no
10314      runpath_var=LD_RUN_PATH
10315      ;;
10316    siemens)
10317      need_lib_prefix=no
10318      ;;
10319    motorola)
10320      need_lib_prefix=no
10321      need_version=no
10322      shlibpath_overrides_runpath=no
10323      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10324      ;;
10325  esac
10326  ;;
10327
10328sysv4*MP*)
10329  if test -d /usr/nec ;then
10330    version_type=linux
10331    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10332    soname_spec='$libname${shared_ext}.$major'
10333    shlibpath_var=LD_LIBRARY_PATH
10334  fi
10335  ;;
10336
10337sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10338  version_type=freebsd-elf
10339  need_lib_prefix=no
10340  need_version=no
10341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10342  soname_spec='${libname}${release}${shared_ext}$major'
10343  shlibpath_var=LD_LIBRARY_PATH
10344  shlibpath_overrides_runpath=yes
10345  hardcode_into_libs=yes
10346  if test "$with_gnu_ld" = yes; then
10347    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10348  else
10349    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10350    case $host_os in
10351      sco3.2v5*)
10352        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10353	;;
10354    esac
10355  fi
10356  sys_lib_dlsearch_path_spec='/usr/lib'
10357  ;;
10358
10359tpf*)
10360  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10361  version_type=linux
10362  need_lib_prefix=no
10363  need_version=no
10364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365  shlibpath_var=LD_LIBRARY_PATH
10366  shlibpath_overrides_runpath=no
10367  hardcode_into_libs=yes
10368  ;;
10369
10370uts4*)
10371  version_type=linux
10372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373  soname_spec='${libname}${release}${shared_ext}$major'
10374  shlibpath_var=LD_LIBRARY_PATH
10375  ;;
10376
10377*)
10378  dynamic_linker=no
10379  ;;
10380esac
10381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10382$as_echo "$dynamic_linker" >&6; }
10383test "$dynamic_linker" = no && can_build_shared=no
10384
10385variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10386if test "$GCC" = yes; then
10387  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10388fi
10389
10390if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10391  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10392fi
10393if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10394  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10395fi
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
10481
10482
10483
10484
10485
10486
10487
10488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10489$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10490hardcode_action=
10491if test -n "$hardcode_libdir_flag_spec" ||
10492   test -n "$runpath_var" ||
10493   test "X$hardcode_automatic" = "Xyes" ; then
10494
10495  # We can hardcode non-existent directories.
10496  if test "$hardcode_direct" != no &&
10497     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10498     # have to relink, otherwise we might link with an installed library
10499     # when we should be linking with a yet-to-be-installed one
10500     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10501     test "$hardcode_minus_L" != no; then
10502    # Linking always hardcodes the temporary library directory.
10503    hardcode_action=relink
10504  else
10505    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10506    hardcode_action=immediate
10507  fi
10508else
10509  # We cannot hardcode anything, or else we can only hardcode existing
10510  # directories.
10511  hardcode_action=unsupported
10512fi
10513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10514$as_echo "$hardcode_action" >&6; }
10515
10516if test "$hardcode_action" = relink ||
10517   test "$inherit_rpath" = yes; then
10518  # Fast installation is not supported
10519  enable_fast_install=no
10520elif test "$shlibpath_overrides_runpath" = yes ||
10521     test "$enable_shared" = no; then
10522  # Fast installation is not necessary
10523  enable_fast_install=needless
10524fi
10525
10526
10527
10528
10529
10530
10531  if test "x$enable_dlopen" != xyes; then
10532  enable_dlopen=unknown
10533  enable_dlopen_self=unknown
10534  enable_dlopen_self_static=unknown
10535else
10536  lt_cv_dlopen=no
10537  lt_cv_dlopen_libs=
10538
10539  case $host_os in
10540  beos*)
10541    lt_cv_dlopen="load_add_on"
10542    lt_cv_dlopen_libs=
10543    lt_cv_dlopen_self=yes
10544    ;;
10545
10546  mingw* | pw32* | cegcc*)
10547    lt_cv_dlopen="LoadLibrary"
10548    lt_cv_dlopen_libs=
10549    ;;
10550
10551  cygwin*)
10552    lt_cv_dlopen="dlopen"
10553    lt_cv_dlopen_libs=
10554    ;;
10555
10556  darwin*)
10557  # if libdl is installed we need to link against it
10558    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10559$as_echo_n "checking for dlopen in -ldl... " >&6; }
10560if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10561  $as_echo_n "(cached) " >&6
10562else
10563  ac_check_lib_save_LIBS=$LIBS
10564LIBS="-ldl  $LIBS"
10565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566/* end confdefs.h.  */
10567
10568/* Override any GCC internal prototype to avoid an error.
10569   Use char because int might match the return type of a GCC
10570   builtin and then its argument prototype would still apply.  */
10571#ifdef __cplusplus
10572extern "C"
10573#endif
10574char dlopen ();
10575int
10576main ()
10577{
10578return dlopen ();
10579  ;
10580  return 0;
10581}
10582_ACEOF
10583if ac_fn_c_try_link "$LINENO"; then :
10584  ac_cv_lib_dl_dlopen=yes
10585else
10586  ac_cv_lib_dl_dlopen=no
10587fi
10588rm -f core conftest.err conftest.$ac_objext \
10589    conftest$ac_exeext conftest.$ac_ext
10590LIBS=$ac_check_lib_save_LIBS
10591fi
10592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10593$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10594if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10595  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10596else
10597
10598    lt_cv_dlopen="dyld"
10599    lt_cv_dlopen_libs=
10600    lt_cv_dlopen_self=yes
10601
10602fi
10603
10604    ;;
10605
10606  *)
10607    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10608if test "x$ac_cv_func_shl_load" = x""yes; then :
10609  lt_cv_dlopen="shl_load"
10610else
10611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10612$as_echo_n "checking for shl_load in -ldld... " >&6; }
10613if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10614  $as_echo_n "(cached) " >&6
10615else
10616  ac_check_lib_save_LIBS=$LIBS
10617LIBS="-ldld  $LIBS"
10618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619/* end confdefs.h.  */
10620
10621/* Override any GCC internal prototype to avoid an error.
10622   Use char because int might match the return type of a GCC
10623   builtin and then its argument prototype would still apply.  */
10624#ifdef __cplusplus
10625extern "C"
10626#endif
10627char shl_load ();
10628int
10629main ()
10630{
10631return shl_load ();
10632  ;
10633  return 0;
10634}
10635_ACEOF
10636if ac_fn_c_try_link "$LINENO"; then :
10637  ac_cv_lib_dld_shl_load=yes
10638else
10639  ac_cv_lib_dld_shl_load=no
10640fi
10641rm -f core conftest.err conftest.$ac_objext \
10642    conftest$ac_exeext conftest.$ac_ext
10643LIBS=$ac_check_lib_save_LIBS
10644fi
10645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10646$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10647if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10648  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10649else
10650  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10651if test "x$ac_cv_func_dlopen" = x""yes; then :
10652  lt_cv_dlopen="dlopen"
10653else
10654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10655$as_echo_n "checking for dlopen in -ldl... " >&6; }
10656if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10657  $as_echo_n "(cached) " >&6
10658else
10659  ac_check_lib_save_LIBS=$LIBS
10660LIBS="-ldl  $LIBS"
10661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662/* end confdefs.h.  */
10663
10664/* Override any GCC internal prototype to avoid an error.
10665   Use char because int might match the return type of a GCC
10666   builtin and then its argument prototype would still apply.  */
10667#ifdef __cplusplus
10668extern "C"
10669#endif
10670char dlopen ();
10671int
10672main ()
10673{
10674return dlopen ();
10675  ;
10676  return 0;
10677}
10678_ACEOF
10679if ac_fn_c_try_link "$LINENO"; then :
10680  ac_cv_lib_dl_dlopen=yes
10681else
10682  ac_cv_lib_dl_dlopen=no
10683fi
10684rm -f core conftest.err conftest.$ac_objext \
10685    conftest$ac_exeext conftest.$ac_ext
10686LIBS=$ac_check_lib_save_LIBS
10687fi
10688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10689$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10690if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10691  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10692else
10693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10694$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10695if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10696  $as_echo_n "(cached) " >&6
10697else
10698  ac_check_lib_save_LIBS=$LIBS
10699LIBS="-lsvld  $LIBS"
10700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701/* end confdefs.h.  */
10702
10703/* Override any GCC internal prototype to avoid an error.
10704   Use char because int might match the return type of a GCC
10705   builtin and then its argument prototype would still apply.  */
10706#ifdef __cplusplus
10707extern "C"
10708#endif
10709char dlopen ();
10710int
10711main ()
10712{
10713return dlopen ();
10714  ;
10715  return 0;
10716}
10717_ACEOF
10718if ac_fn_c_try_link "$LINENO"; then :
10719  ac_cv_lib_svld_dlopen=yes
10720else
10721  ac_cv_lib_svld_dlopen=no
10722fi
10723rm -f core conftest.err conftest.$ac_objext \
10724    conftest$ac_exeext conftest.$ac_ext
10725LIBS=$ac_check_lib_save_LIBS
10726fi
10727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10728$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10729if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10730  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10731else
10732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10733$as_echo_n "checking for dld_link in -ldld... " >&6; }
10734if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10735  $as_echo_n "(cached) " >&6
10736else
10737  ac_check_lib_save_LIBS=$LIBS
10738LIBS="-ldld  $LIBS"
10739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740/* end confdefs.h.  */
10741
10742/* Override any GCC internal prototype to avoid an error.
10743   Use char because int might match the return type of a GCC
10744   builtin and then its argument prototype would still apply.  */
10745#ifdef __cplusplus
10746extern "C"
10747#endif
10748char dld_link ();
10749int
10750main ()
10751{
10752return dld_link ();
10753  ;
10754  return 0;
10755}
10756_ACEOF
10757if ac_fn_c_try_link "$LINENO"; then :
10758  ac_cv_lib_dld_dld_link=yes
10759else
10760  ac_cv_lib_dld_dld_link=no
10761fi
10762rm -f core conftest.err conftest.$ac_objext \
10763    conftest$ac_exeext conftest.$ac_ext
10764LIBS=$ac_check_lib_save_LIBS
10765fi
10766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10767$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10768if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10769  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10770fi
10771
10772
10773fi
10774
10775
10776fi
10777
10778
10779fi
10780
10781
10782fi
10783
10784
10785fi
10786
10787    ;;
10788  esac
10789
10790  if test "x$lt_cv_dlopen" != xno; then
10791    enable_dlopen=yes
10792  else
10793    enable_dlopen=no
10794  fi
10795
10796  case $lt_cv_dlopen in
10797  dlopen)
10798    save_CPPFLAGS="$CPPFLAGS"
10799    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10800
10801    save_LDFLAGS="$LDFLAGS"
10802    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10803
10804    save_LIBS="$LIBS"
10805    LIBS="$lt_cv_dlopen_libs $LIBS"
10806
10807    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10808$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10809if test "${lt_cv_dlopen_self+set}" = set; then :
10810  $as_echo_n "(cached) " >&6
10811else
10812  	  if test "$cross_compiling" = yes; then :
10813  lt_cv_dlopen_self=cross
10814else
10815  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10816  lt_status=$lt_dlunknown
10817  cat > conftest.$ac_ext <<_LT_EOF
10818#line 10818 "configure"
10819#include "confdefs.h"
10820
10821#if HAVE_DLFCN_H
10822#include <dlfcn.h>
10823#endif
10824
10825#include <stdio.h>
10826
10827#ifdef RTLD_GLOBAL
10828#  define LT_DLGLOBAL		RTLD_GLOBAL
10829#else
10830#  ifdef DL_GLOBAL
10831#    define LT_DLGLOBAL		DL_GLOBAL
10832#  else
10833#    define LT_DLGLOBAL		0
10834#  endif
10835#endif
10836
10837/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10838   find out it does not work in some platform. */
10839#ifndef LT_DLLAZY_OR_NOW
10840#  ifdef RTLD_LAZY
10841#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10842#  else
10843#    ifdef DL_LAZY
10844#      define LT_DLLAZY_OR_NOW		DL_LAZY
10845#    else
10846#      ifdef RTLD_NOW
10847#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10848#      else
10849#        ifdef DL_NOW
10850#          define LT_DLLAZY_OR_NOW	DL_NOW
10851#        else
10852#          define LT_DLLAZY_OR_NOW	0
10853#        endif
10854#      endif
10855#    endif
10856#  endif
10857#endif
10858
10859/* When -fvisbility=hidden is used, assume the code has been annotated
10860   correspondingly for the symbols needed.  */
10861#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10862void fnord () __attribute__((visibility("default")));
10863#endif
10864
10865void fnord () { int i=42; }
10866int main ()
10867{
10868  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10869  int status = $lt_dlunknown;
10870
10871  if (self)
10872    {
10873      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10874      else
10875        {
10876	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10877          else puts (dlerror ());
10878	}
10879      /* dlclose (self); */
10880    }
10881  else
10882    puts (dlerror ());
10883
10884  return status;
10885}
10886_LT_EOF
10887  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10888  (eval $ac_link) 2>&5
10889  ac_status=$?
10890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10891  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10892    (./conftest; exit; ) >&5 2>/dev/null
10893    lt_status=$?
10894    case x$lt_status in
10895      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10896      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10897      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10898    esac
10899  else :
10900    # compilation failed
10901    lt_cv_dlopen_self=no
10902  fi
10903fi
10904rm -fr conftest*
10905
10906
10907fi
10908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10909$as_echo "$lt_cv_dlopen_self" >&6; }
10910
10911    if test "x$lt_cv_dlopen_self" = xyes; then
10912      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10913      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10914$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10915if test "${lt_cv_dlopen_self_static+set}" = set; then :
10916  $as_echo_n "(cached) " >&6
10917else
10918  	  if test "$cross_compiling" = yes; then :
10919  lt_cv_dlopen_self_static=cross
10920else
10921  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10922  lt_status=$lt_dlunknown
10923  cat > conftest.$ac_ext <<_LT_EOF
10924#line 10924 "configure"
10925#include "confdefs.h"
10926
10927#if HAVE_DLFCN_H
10928#include <dlfcn.h>
10929#endif
10930
10931#include <stdio.h>
10932
10933#ifdef RTLD_GLOBAL
10934#  define LT_DLGLOBAL		RTLD_GLOBAL
10935#else
10936#  ifdef DL_GLOBAL
10937#    define LT_DLGLOBAL		DL_GLOBAL
10938#  else
10939#    define LT_DLGLOBAL		0
10940#  endif
10941#endif
10942
10943/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10944   find out it does not work in some platform. */
10945#ifndef LT_DLLAZY_OR_NOW
10946#  ifdef RTLD_LAZY
10947#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10948#  else
10949#    ifdef DL_LAZY
10950#      define LT_DLLAZY_OR_NOW		DL_LAZY
10951#    else
10952#      ifdef RTLD_NOW
10953#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10954#      else
10955#        ifdef DL_NOW
10956#          define LT_DLLAZY_OR_NOW	DL_NOW
10957#        else
10958#          define LT_DLLAZY_OR_NOW	0
10959#        endif
10960#      endif
10961#    endif
10962#  endif
10963#endif
10964
10965/* When -fvisbility=hidden is used, assume the code has been annotated
10966   correspondingly for the symbols needed.  */
10967#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10968void fnord () __attribute__((visibility("default")));
10969#endif
10970
10971void fnord () { int i=42; }
10972int main ()
10973{
10974  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10975  int status = $lt_dlunknown;
10976
10977  if (self)
10978    {
10979      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10980      else
10981        {
10982	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10983          else puts (dlerror ());
10984	}
10985      /* dlclose (self); */
10986    }
10987  else
10988    puts (dlerror ());
10989
10990  return status;
10991}
10992_LT_EOF
10993  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10994  (eval $ac_link) 2>&5
10995  ac_status=$?
10996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10997  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10998    (./conftest; exit; ) >&5 2>/dev/null
10999    lt_status=$?
11000    case x$lt_status in
11001      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11002      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11003      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11004    esac
11005  else :
11006    # compilation failed
11007    lt_cv_dlopen_self_static=no
11008  fi
11009fi
11010rm -fr conftest*
11011
11012
11013fi
11014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11015$as_echo "$lt_cv_dlopen_self_static" >&6; }
11016    fi
11017
11018    CPPFLAGS="$save_CPPFLAGS"
11019    LDFLAGS="$save_LDFLAGS"
11020    LIBS="$save_LIBS"
11021    ;;
11022  esac
11023
11024  case $lt_cv_dlopen_self in
11025  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11026  *) enable_dlopen_self=unknown ;;
11027  esac
11028
11029  case $lt_cv_dlopen_self_static in
11030  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11031  *) enable_dlopen_self_static=unknown ;;
11032  esac
11033fi
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051striplib=
11052old_striplib=
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11054$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11055if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11056  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11057  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11059$as_echo "yes" >&6; }
11060else
11061# FIXME - insert some real tests, host_os isn't really good enough
11062  case $host_os in
11063  darwin*)
11064    if test -n "$STRIP" ; then
11065      striplib="$STRIP -x"
11066      old_striplib="$STRIP -S"
11067      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11068$as_echo "yes" >&6; }
11069    else
11070      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071$as_echo "no" >&6; }
11072    fi
11073    ;;
11074  *)
11075    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076$as_echo "no" >&6; }
11077    ;;
11078  esac
11079fi
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092  # Report which library types will actually be built
11093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11094$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11096$as_echo "$can_build_shared" >&6; }
11097
11098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11099$as_echo_n "checking whether to build shared libraries... " >&6; }
11100  test "$can_build_shared" = "no" && enable_shared=no
11101
11102  # On AIX, shared libraries and static libraries use the same namespace, and
11103  # are all built from PIC.
11104  case $host_os in
11105  aix3*)
11106    test "$enable_shared" = yes && enable_static=no
11107    if test -n "$RANLIB"; then
11108      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11109      postinstall_cmds='$RANLIB $lib'
11110    fi
11111    ;;
11112
11113  aix[4-9]*)
11114    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11115      test "$enable_shared" = yes && enable_static=no
11116    fi
11117    ;;
11118  esac
11119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11120$as_echo "$enable_shared" >&6; }
11121
11122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11123$as_echo_n "checking whether to build static libraries... " >&6; }
11124  # Make sure either enable_shared or enable_static is yes.
11125  test "$enable_shared" = yes || enable_static=yes
11126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11127$as_echo "$enable_static" >&6; }
11128
11129
11130
11131
11132fi
11133ac_ext=c
11134ac_cpp='$CPP $CPPFLAGS'
11135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11137ac_compiler_gnu=$ac_cv_c_compiler_gnu
11138
11139CC="$lt_save_CC"
11140
11141      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11142    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11143    (test "X$CXX" != "Xg++"))) ; then
11144  ac_ext=cpp
11145ac_cpp='$CXXCPP $CPPFLAGS'
11146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11150$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11151if test -z "$CXXCPP"; then
11152  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11153  $as_echo_n "(cached) " >&6
11154else
11155      # Double quotes because CXXCPP needs to be expanded
11156    for CXXCPP in "$CXX -E" "/lib/cpp"
11157    do
11158      ac_preproc_ok=false
11159for ac_cxx_preproc_warn_flag in '' yes
11160do
11161  # Use a header file that comes with gcc, so configuring glibc
11162  # with a fresh cross-compiler works.
11163  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11164  # <limits.h> exists even on freestanding compilers.
11165  # On the NeXT, cc -E runs the code through the compiler's parser,
11166  # not just through cpp. "Syntax error" is here to catch this case.
11167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11168/* end confdefs.h.  */
11169#ifdef __STDC__
11170# include <limits.h>
11171#else
11172# include <assert.h>
11173#endif
11174		     Syntax error
11175_ACEOF
11176if ac_fn_cxx_try_cpp "$LINENO"; then :
11177
11178else
11179  # Broken: fails on valid input.
11180continue
11181fi
11182rm -f conftest.err conftest.$ac_ext
11183
11184  # OK, works on sane cases.  Now check whether nonexistent headers
11185  # can be detected and how.
11186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187/* end confdefs.h.  */
11188#include <ac_nonexistent.h>
11189_ACEOF
11190if ac_fn_cxx_try_cpp "$LINENO"; then :
11191  # Broken: success on invalid input.
11192continue
11193else
11194  # Passes both tests.
11195ac_preproc_ok=:
11196break
11197fi
11198rm -f conftest.err conftest.$ac_ext
11199
11200done
11201# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11202rm -f conftest.err conftest.$ac_ext
11203if $ac_preproc_ok; then :
11204  break
11205fi
11206
11207    done
11208    ac_cv_prog_CXXCPP=$CXXCPP
11209
11210fi
11211  CXXCPP=$ac_cv_prog_CXXCPP
11212else
11213  ac_cv_prog_CXXCPP=$CXXCPP
11214fi
11215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11216$as_echo "$CXXCPP" >&6; }
11217ac_preproc_ok=false
11218for ac_cxx_preproc_warn_flag in '' yes
11219do
11220  # Use a header file that comes with gcc, so configuring glibc
11221  # with a fresh cross-compiler works.
11222  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11223  # <limits.h> exists even on freestanding compilers.
11224  # On the NeXT, cc -E runs the code through the compiler's parser,
11225  # not just through cpp. "Syntax error" is here to catch this case.
11226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227/* end confdefs.h.  */
11228#ifdef __STDC__
11229# include <limits.h>
11230#else
11231# include <assert.h>
11232#endif
11233		     Syntax error
11234_ACEOF
11235if ac_fn_cxx_try_cpp "$LINENO"; then :
11236
11237else
11238  # Broken: fails on valid input.
11239continue
11240fi
11241rm -f conftest.err conftest.$ac_ext
11242
11243  # OK, works on sane cases.  Now check whether nonexistent headers
11244  # can be detected and how.
11245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246/* end confdefs.h.  */
11247#include <ac_nonexistent.h>
11248_ACEOF
11249if ac_fn_cxx_try_cpp "$LINENO"; then :
11250  # Broken: success on invalid input.
11251continue
11252else
11253  # Passes both tests.
11254ac_preproc_ok=:
11255break
11256fi
11257rm -f conftest.err conftest.$ac_ext
11258
11259done
11260# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11261rm -f conftest.err conftest.$ac_ext
11262if $ac_preproc_ok; then :
11263
11264else
11265  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11267as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11268See \`config.log' for more details." "$LINENO" 5; }
11269fi
11270
11271ac_ext=c
11272ac_cpp='$CPP $CPPFLAGS'
11273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11275ac_compiler_gnu=$ac_cv_c_compiler_gnu
11276
11277else
11278  _lt_caught_CXX_error=yes
11279fi
11280
11281ac_ext=cpp
11282ac_cpp='$CXXCPP $CPPFLAGS'
11283ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11284ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11285ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11286
11287archive_cmds_need_lc_CXX=no
11288allow_undefined_flag_CXX=
11289always_export_symbols_CXX=no
11290archive_expsym_cmds_CXX=
11291compiler_needs_object_CXX=no
11292export_dynamic_flag_spec_CXX=
11293hardcode_direct_CXX=no
11294hardcode_direct_absolute_CXX=no
11295hardcode_libdir_flag_spec_CXX=
11296hardcode_libdir_flag_spec_ld_CXX=
11297hardcode_libdir_separator_CXX=
11298hardcode_minus_L_CXX=no
11299hardcode_shlibpath_var_CXX=unsupported
11300hardcode_automatic_CXX=no
11301inherit_rpath_CXX=no
11302module_cmds_CXX=
11303module_expsym_cmds_CXX=
11304link_all_deplibs_CXX=unknown
11305old_archive_cmds_CXX=$old_archive_cmds
11306reload_flag_CXX=$reload_flag
11307reload_cmds_CXX=$reload_cmds
11308no_undefined_flag_CXX=
11309whole_archive_flag_spec_CXX=
11310enable_shared_with_static_runtimes_CXX=no
11311
11312# Source file extension for C++ test sources.
11313ac_ext=cpp
11314
11315# Object file extension for compiled C++ test sources.
11316objext=o
11317objext_CXX=$objext
11318
11319# No sense in running all these tests if we already determined that
11320# the CXX compiler isn't working.  Some variables (like enable_shared)
11321# are currently assumed to apply to all compilers on this platform,
11322# and will be corrupted by setting them based on a non-working compiler.
11323if test "$_lt_caught_CXX_error" != yes; then
11324  # Code to be used in simple compile tests
11325  lt_simple_compile_test_code="int some_variable = 0;"
11326
11327  # Code to be used in simple link tests
11328  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11329
11330  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11331
11332
11333
11334
11335
11336
11337# If no C compiler was specified, use CC.
11338LTCC=${LTCC-"$CC"}
11339
11340# If no C compiler flags were specified, use CFLAGS.
11341LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11342
11343# Allow CC to be a program name with arguments.
11344compiler=$CC
11345
11346
11347  # save warnings/boilerplate of simple test code
11348  ac_outfile=conftest.$ac_objext
11349echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11350eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11351_lt_compiler_boilerplate=`cat conftest.err`
11352$RM conftest*
11353
11354  ac_outfile=conftest.$ac_objext
11355echo "$lt_simple_link_test_code" >conftest.$ac_ext
11356eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11357_lt_linker_boilerplate=`cat conftest.err`
11358$RM -r conftest*
11359
11360
11361  # Allow CC to be a program name with arguments.
11362  lt_save_CC=$CC
11363  lt_save_LD=$LD
11364  lt_save_GCC=$GCC
11365  GCC=$GXX
11366  lt_save_with_gnu_ld=$with_gnu_ld
11367  lt_save_path_LD=$lt_cv_path_LD
11368  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11369    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11370  else
11371    $as_unset lt_cv_prog_gnu_ld
11372  fi
11373  if test -n "${lt_cv_path_LDCXX+set}"; then
11374    lt_cv_path_LD=$lt_cv_path_LDCXX
11375  else
11376    $as_unset lt_cv_path_LD
11377  fi
11378  test -z "${LDCXX+set}" || LD=$LDCXX
11379  CC=${CXX-"c++"}
11380  compiler=$CC
11381  compiler_CXX=$CC
11382  for cc_temp in $compiler""; do
11383  case $cc_temp in
11384    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11385    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11386    \-*) ;;
11387    *) break;;
11388  esac
11389done
11390cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11391
11392
11393  if test -n "$compiler"; then
11394    # We don't want -fno-exception when compiling C++ code, so set the
11395    # no_builtin_flag separately
11396    if test "$GXX" = yes; then
11397      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11398    else
11399      lt_prog_compiler_no_builtin_flag_CXX=
11400    fi
11401
11402    if test "$GXX" = yes; then
11403      # Set up default GNU C++ configuration
11404
11405
11406
11407# Check whether --with-gnu-ld was given.
11408if test "${with_gnu_ld+set}" = set; then :
11409  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11410else
11411  with_gnu_ld=no
11412fi
11413
11414ac_prog=ld
11415if test "$GCC" = yes; then
11416  # Check if gcc -print-prog-name=ld gives a path.
11417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11418$as_echo_n "checking for ld used by $CC... " >&6; }
11419  case $host in
11420  *-*-mingw*)
11421    # gcc leaves a trailing carriage return which upsets mingw
11422    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11423  *)
11424    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11425  esac
11426  case $ac_prog in
11427    # Accept absolute paths.
11428    [\\/]* | ?:[\\/]*)
11429      re_direlt='/[^/][^/]*/\.\./'
11430      # Canonicalize the pathname of ld
11431      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11432      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11433	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11434      done
11435      test -z "$LD" && LD="$ac_prog"
11436      ;;
11437  "")
11438    # If it fails, then pretend we aren't using GCC.
11439    ac_prog=ld
11440    ;;
11441  *)
11442    # If it is relative, then search for the first ld in PATH.
11443    with_gnu_ld=unknown
11444    ;;
11445  esac
11446elif test "$with_gnu_ld" = yes; then
11447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11448$as_echo_n "checking for GNU ld... " >&6; }
11449else
11450  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11451$as_echo_n "checking for non-GNU ld... " >&6; }
11452fi
11453if test "${lt_cv_path_LD+set}" = set; then :
11454  $as_echo_n "(cached) " >&6
11455else
11456  if test -z "$LD"; then
11457  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11458  for ac_dir in $PATH; do
11459    IFS="$lt_save_ifs"
11460    test -z "$ac_dir" && ac_dir=.
11461    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11462      lt_cv_path_LD="$ac_dir/$ac_prog"
11463      # Check to see if the program is GNU ld.  I'd rather use --version,
11464      # but apparently some variants of GNU ld only accept -v.
11465      # Break only if it was the GNU/non-GNU ld that we prefer.
11466      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11467      *GNU* | *'with BFD'*)
11468	test "$with_gnu_ld" != no && break
11469	;;
11470      *)
11471	test "$with_gnu_ld" != yes && break
11472	;;
11473      esac
11474    fi
11475  done
11476  IFS="$lt_save_ifs"
11477else
11478  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11479fi
11480fi
11481
11482LD="$lt_cv_path_LD"
11483if test -n "$LD"; then
11484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11485$as_echo "$LD" >&6; }
11486else
11487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488$as_echo "no" >&6; }
11489fi
11490test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11492$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11493if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11494  $as_echo_n "(cached) " >&6
11495else
11496  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11497case `$LD -v 2>&1 </dev/null` in
11498*GNU* | *'with BFD'*)
11499  lt_cv_prog_gnu_ld=yes
11500  ;;
11501*)
11502  lt_cv_prog_gnu_ld=no
11503  ;;
11504esac
11505fi
11506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11507$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11508with_gnu_ld=$lt_cv_prog_gnu_ld
11509
11510
11511
11512
11513
11514
11515
11516      # Check if GNU C++ uses GNU ld as the underlying linker, since the
11517      # archiving commands below assume that GNU ld is being used.
11518      if test "$with_gnu_ld" = yes; then
11519        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11520        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11521
11522        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11523        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11524
11525        # If archive_cmds runs LD, not CC, wlarc should be empty
11526        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11527        #     investigate it a little bit more. (MM)
11528        wlarc='${wl}'
11529
11530        # ancient GNU ld didn't support --whole-archive et. al.
11531        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11532	  $GREP 'no-whole-archive' > /dev/null; then
11533          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11534        else
11535          whole_archive_flag_spec_CXX=
11536        fi
11537      else
11538        with_gnu_ld=no
11539        wlarc=
11540
11541        # A generic and very simple default shared library creation
11542        # command for GNU C++ for the case where it uses the native
11543        # linker, instead of GNU ld.  If possible, this setting should
11544        # overridden to take advantage of the native linker features on
11545        # the platform it is being used on.
11546        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11547      fi
11548
11549      # Commands to make compiler produce verbose output that lists
11550      # what "hidden" libraries, object files and flags are used when
11551      # linking a shared library.
11552      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11553
11554    else
11555      GXX=no
11556      with_gnu_ld=no
11557      wlarc=
11558    fi
11559
11560    # PORTME: fill in a description of your system's C++ link characteristics
11561    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11562$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11563    ld_shlibs_CXX=yes
11564    case $host_os in
11565      aix3*)
11566        # FIXME: insert proper C++ library support
11567        ld_shlibs_CXX=no
11568        ;;
11569      aix[4-9]*)
11570        if test "$host_cpu" = ia64; then
11571          # On IA64, the linker does run time linking by default, so we don't
11572          # have to do anything special.
11573          aix_use_runtimelinking=no
11574          exp_sym_flag='-Bexport'
11575          no_entry_flag=""
11576        else
11577          aix_use_runtimelinking=no
11578
11579          # Test if we are trying to use run time linking or normal
11580          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11581          # need to do runtime linking.
11582          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11583	    for ld_flag in $LDFLAGS; do
11584	      case $ld_flag in
11585	      *-brtl*)
11586	        aix_use_runtimelinking=yes
11587	        break
11588	        ;;
11589	      esac
11590	    done
11591	    ;;
11592          esac
11593
11594          exp_sym_flag='-bexport'
11595          no_entry_flag='-bnoentry'
11596        fi
11597
11598        # When large executables or shared objects are built, AIX ld can
11599        # have problems creating the table of contents.  If linking a library
11600        # or program results in "error TOC overflow" add -mminimal-toc to
11601        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11602        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11603
11604        archive_cmds_CXX=''
11605        hardcode_direct_CXX=yes
11606        hardcode_direct_absolute_CXX=yes
11607        hardcode_libdir_separator_CXX=':'
11608        link_all_deplibs_CXX=yes
11609        file_list_spec_CXX='${wl}-f,'
11610
11611        if test "$GXX" = yes; then
11612          case $host_os in aix4.[012]|aix4.[012].*)
11613          # We only want to do this on AIX 4.2 and lower, the check
11614          # below for broken collect2 doesn't work under 4.3+
11615	  collect2name=`${CC} -print-prog-name=collect2`
11616	  if test -f "$collect2name" &&
11617	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11618	  then
11619	    # We have reworked collect2
11620	    :
11621	  else
11622	    # We have old collect2
11623	    hardcode_direct_CXX=unsupported
11624	    # It fails to find uninstalled libraries when the uninstalled
11625	    # path is not listed in the libpath.  Setting hardcode_minus_L
11626	    # to unsupported forces relinking
11627	    hardcode_minus_L_CXX=yes
11628	    hardcode_libdir_flag_spec_CXX='-L$libdir'
11629	    hardcode_libdir_separator_CXX=
11630	  fi
11631          esac
11632          shared_flag='-shared'
11633	  if test "$aix_use_runtimelinking" = yes; then
11634	    shared_flag="$shared_flag "'${wl}-G'
11635	  fi
11636        else
11637          # not using gcc
11638          if test "$host_cpu" = ia64; then
11639	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11640	  # chokes on -Wl,-G. The following line is correct:
11641	  shared_flag='-G'
11642          else
11643	    if test "$aix_use_runtimelinking" = yes; then
11644	      shared_flag='${wl}-G'
11645	    else
11646	      shared_flag='${wl}-bM:SRE'
11647	    fi
11648          fi
11649        fi
11650
11651        export_dynamic_flag_spec_CXX='${wl}-bexpall'
11652        # It seems that -bexpall does not export symbols beginning with
11653        # underscore (_), so it is better to generate a list of symbols to
11654	# export.
11655        always_export_symbols_CXX=yes
11656        if test "$aix_use_runtimelinking" = yes; then
11657          # Warning - without using the other runtime loading flags (-brtl),
11658          # -berok will link without error, but may produce a broken library.
11659          allow_undefined_flag_CXX='-berok'
11660          # Determine the default libpath from the value encoded in an empty
11661          # executable.
11662          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663/* end confdefs.h.  */
11664
11665int
11666main ()
11667{
11668
11669  ;
11670  return 0;
11671}
11672_ACEOF
11673if ac_fn_cxx_try_link "$LINENO"; then :
11674
11675lt_aix_libpath_sed='
11676    /Import File Strings/,/^$/ {
11677	/^0/ {
11678	    s/^0  *\(.*\)$/\1/
11679	    p
11680	}
11681    }'
11682aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11683# Check for a 64-bit object if we didn't find anything.
11684if test -z "$aix_libpath"; then
11685  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11686fi
11687fi
11688rm -f core conftest.err conftest.$ac_objext \
11689    conftest$ac_exeext conftest.$ac_ext
11690if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11691
11692          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11693
11694          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"
11695        else
11696          if test "$host_cpu" = ia64; then
11697	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11698	    allow_undefined_flag_CXX="-z nodefs"
11699	    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"
11700          else
11701	    # Determine the default libpath from the value encoded in an
11702	    # empty executable.
11703	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11704/* end confdefs.h.  */
11705
11706int
11707main ()
11708{
11709
11710  ;
11711  return 0;
11712}
11713_ACEOF
11714if ac_fn_cxx_try_link "$LINENO"; then :
11715
11716lt_aix_libpath_sed='
11717    /Import File Strings/,/^$/ {
11718	/^0/ {
11719	    s/^0  *\(.*\)$/\1/
11720	    p
11721	}
11722    }'
11723aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11724# Check for a 64-bit object if we didn't find anything.
11725if test -z "$aix_libpath"; then
11726  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11727fi
11728fi
11729rm -f core conftest.err conftest.$ac_objext \
11730    conftest$ac_exeext conftest.$ac_ext
11731if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11732
11733	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11734	    # Warning - without using the other run time loading flags,
11735	    # -berok will link without error, but may produce a broken library.
11736	    no_undefined_flag_CXX=' ${wl}-bernotok'
11737	    allow_undefined_flag_CXX=' ${wl}-berok'
11738	    if test "$with_gnu_ld" = yes; then
11739	      # We only use this code for GNU lds that support --whole-archive.
11740	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11741	    else
11742	      # Exported symbols can be pulled into shared objects from archives
11743	      whole_archive_flag_spec_CXX='$convenience'
11744	    fi
11745	    archive_cmds_need_lc_CXX=yes
11746	    # This is similar to how AIX traditionally builds its shared
11747	    # libraries.
11748	    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'
11749          fi
11750        fi
11751        ;;
11752
11753      beos*)
11754	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11755	  allow_undefined_flag_CXX=unsupported
11756	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11757	  # support --undefined.  This deserves some investigation.  FIXME
11758	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11759	else
11760	  ld_shlibs_CXX=no
11761	fi
11762	;;
11763
11764      chorus*)
11765        case $cc_basename in
11766          *)
11767	  # FIXME: insert proper C++ library support
11768	  ld_shlibs_CXX=no
11769	  ;;
11770        esac
11771        ;;
11772
11773      cygwin* | mingw* | pw32* | cegcc*)
11774        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11775        # as there is no search path for DLLs.
11776        hardcode_libdir_flag_spec_CXX='-L$libdir'
11777        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11778        allow_undefined_flag_CXX=unsupported
11779        always_export_symbols_CXX=no
11780        enable_shared_with_static_runtimes_CXX=yes
11781
11782        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11783          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'
11784          # If the export-symbols file already is a .def file (1st line
11785          # is EXPORTS), use it as is; otherwise, prepend...
11786          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11787	    cp $export_symbols $output_objdir/$soname.def;
11788          else
11789	    echo EXPORTS > $output_objdir/$soname.def;
11790	    cat $export_symbols >> $output_objdir/$soname.def;
11791          fi~
11792          $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'
11793        else
11794          ld_shlibs_CXX=no
11795        fi
11796        ;;
11797      darwin* | rhapsody*)
11798
11799
11800  archive_cmds_need_lc_CXX=no
11801  hardcode_direct_CXX=no
11802  hardcode_automatic_CXX=yes
11803  hardcode_shlibpath_var_CXX=unsupported
11804  if test "$lt_cv_ld_force_load" = "yes"; then
11805    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\"`'
11806  else
11807    whole_archive_flag_spec_CXX=''
11808  fi
11809  link_all_deplibs_CXX=yes
11810  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11811  case $cc_basename in
11812     ifort*) _lt_dar_can_shared=yes ;;
11813     *) _lt_dar_can_shared=$GCC ;;
11814  esac
11815  if test "$_lt_dar_can_shared" = "yes"; then
11816    output_verbose_link_cmd=func_echo_all
11817    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}"
11818    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11819    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}"
11820    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}"
11821       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11822      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}"
11823      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}"
11824    fi
11825
11826  else
11827  ld_shlibs_CXX=no
11828  fi
11829
11830	;;
11831
11832      dgux*)
11833        case $cc_basename in
11834          ec++*)
11835	    # FIXME: insert proper C++ library support
11836	    ld_shlibs_CXX=no
11837	    ;;
11838          ghcx*)
11839	    # Green Hills C++ Compiler
11840	    # FIXME: insert proper C++ library support
11841	    ld_shlibs_CXX=no
11842	    ;;
11843          *)
11844	    # FIXME: insert proper C++ library support
11845	    ld_shlibs_CXX=no
11846	    ;;
11847        esac
11848        ;;
11849
11850      freebsd2.*)
11851        # C++ shared libraries reported to be fairly broken before
11852	# switch to ELF
11853        ld_shlibs_CXX=no
11854        ;;
11855
11856      freebsd-elf*)
11857        archive_cmds_need_lc_CXX=no
11858        ;;
11859
11860      freebsd* | dragonfly*)
11861        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11862        # conventions
11863        ld_shlibs_CXX=yes
11864        ;;
11865
11866      gnu*)
11867        ;;
11868
11869      haiku*)
11870        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11871        link_all_deplibs_CXX=yes
11872        ;;
11873
11874      hpux9*)
11875        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11876        hardcode_libdir_separator_CXX=:
11877        export_dynamic_flag_spec_CXX='${wl}-E'
11878        hardcode_direct_CXX=yes
11879        hardcode_minus_L_CXX=yes # Not in the search PATH,
11880				             # but as the default
11881				             # location of the library.
11882
11883        case $cc_basename in
11884          CC*)
11885            # FIXME: insert proper C++ library support
11886            ld_shlibs_CXX=no
11887            ;;
11888          aCC*)
11889            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'
11890            # Commands to make compiler produce verbose output that lists
11891            # what "hidden" libraries, object files and flags are used when
11892            # linking a shared library.
11893            #
11894            # There doesn't appear to be a way to prevent this compiler from
11895            # explicitly linking system object files so we need to strip them
11896            # from the output so that they don't get included in the library
11897            # dependencies.
11898            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"'
11899            ;;
11900          *)
11901            if test "$GXX" = yes; then
11902              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'
11903            else
11904              # FIXME: insert proper C++ library support
11905              ld_shlibs_CXX=no
11906            fi
11907            ;;
11908        esac
11909        ;;
11910
11911      hpux10*|hpux11*)
11912        if test $with_gnu_ld = no; then
11913	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11914	  hardcode_libdir_separator_CXX=:
11915
11916          case $host_cpu in
11917            hppa*64*|ia64*)
11918              ;;
11919            *)
11920	      export_dynamic_flag_spec_CXX='${wl}-E'
11921              ;;
11922          esac
11923        fi
11924        case $host_cpu in
11925          hppa*64*|ia64*)
11926            hardcode_direct_CXX=no
11927            hardcode_shlibpath_var_CXX=no
11928            ;;
11929          *)
11930            hardcode_direct_CXX=yes
11931            hardcode_direct_absolute_CXX=yes
11932            hardcode_minus_L_CXX=yes # Not in the search PATH,
11933					         # but as the default
11934					         # location of the library.
11935            ;;
11936        esac
11937
11938        case $cc_basename in
11939          CC*)
11940	    # FIXME: insert proper C++ library support
11941	    ld_shlibs_CXX=no
11942	    ;;
11943          aCC*)
11944	    case $host_cpu in
11945	      hppa*64*)
11946	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11947	        ;;
11948	      ia64*)
11949	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11950	        ;;
11951	      *)
11952	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11953	        ;;
11954	    esac
11955	    # Commands to make compiler produce verbose output that lists
11956	    # what "hidden" libraries, object files and flags are used when
11957	    # linking a shared library.
11958	    #
11959	    # There doesn't appear to be a way to prevent this compiler from
11960	    # explicitly linking system object files so we need to strip them
11961	    # from the output so that they don't get included in the library
11962	    # dependencies.
11963	    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"'
11964	    ;;
11965          *)
11966	    if test "$GXX" = yes; then
11967	      if test $with_gnu_ld = no; then
11968	        case $host_cpu in
11969	          hppa*64*)
11970	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11971	            ;;
11972	          ia64*)
11973	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11974	            ;;
11975	          *)
11976	            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'
11977	            ;;
11978	        esac
11979	      fi
11980	    else
11981	      # FIXME: insert proper C++ library support
11982	      ld_shlibs_CXX=no
11983	    fi
11984	    ;;
11985        esac
11986        ;;
11987
11988      interix[3-9]*)
11989	hardcode_direct_CXX=no
11990	hardcode_shlibpath_var_CXX=no
11991	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11992	export_dynamic_flag_spec_CXX='${wl}-E'
11993	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11994	# Instead, shared libraries are loaded at an image base (0x10000000 by
11995	# default) and relocated if they conflict, which is a slow very memory
11996	# consuming and fragmenting process.  To avoid this, we pick a random,
11997	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11998	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11999	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'
12000	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'
12001	;;
12002      irix5* | irix6*)
12003        case $cc_basename in
12004          CC*)
12005	    # SGI C++
12006	    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'
12007
12008	    # Archives containing C++ object files must be created using
12009	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12010	    # necessary to make sure instantiated templates are included
12011	    # in the archive.
12012	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12013	    ;;
12014          *)
12015	    if test "$GXX" = yes; then
12016	      if test "$with_gnu_ld" = no; then
12017	        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'
12018	      else
12019	        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'
12020	      fi
12021	    fi
12022	    link_all_deplibs_CXX=yes
12023	    ;;
12024        esac
12025        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12026        hardcode_libdir_separator_CXX=:
12027        inherit_rpath_CXX=yes
12028        ;;
12029
12030      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12031        case $cc_basename in
12032          KCC*)
12033	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12034
12035	    # KCC will only create a shared library if the output file
12036	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12037	    # to its proper name (with version) after linking.
12038	    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'
12039	    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'
12040	    # Commands to make compiler produce verbose output that lists
12041	    # what "hidden" libraries, object files and flags are used when
12042	    # linking a shared library.
12043	    #
12044	    # There doesn't appear to be a way to prevent this compiler from
12045	    # explicitly linking system object files so we need to strip them
12046	    # from the output so that they don't get included in the library
12047	    # dependencies.
12048	    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"'
12049
12050	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12051	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12052
12053	    # Archives containing C++ object files must be created using
12054	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12055	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12056	    ;;
12057	  icpc* | ecpc* )
12058	    # Intel C++
12059	    with_gnu_ld=yes
12060	    # version 8.0 and above of icpc choke on multiply defined symbols
12061	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12062	    # earlier do not add the objects themselves.
12063	    case `$CC -V 2>&1` in
12064	      *"Version 7."*)
12065	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12066		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'
12067		;;
12068	      *)  # Version 8.0 or newer
12069	        tmp_idyn=
12070	        case $host_cpu in
12071		  ia64*) tmp_idyn=' -i_dynamic';;
12072		esac
12073	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12074		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'
12075		;;
12076	    esac
12077	    archive_cmds_need_lc_CXX=no
12078	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12079	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12080	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12081	    ;;
12082          pgCC* | pgcpp*)
12083            # Portland Group C++ compiler
12084	    case `$CC -V` in
12085	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12086	      prelink_cmds_CXX='tpldir=Template.dir~
12087		rm -rf $tpldir~
12088		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12089		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12090	      old_archive_cmds_CXX='tpldir=Template.dir~
12091		rm -rf $tpldir~
12092		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12093		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12094		$RANLIB $oldlib'
12095	      archive_cmds_CXX='tpldir=Template.dir~
12096		rm -rf $tpldir~
12097		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12098		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12099	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12100		rm -rf $tpldir~
12101		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12102		$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'
12103	      ;;
12104	    *) # Version 6 and above use weak symbols
12105	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12106	      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'
12107	      ;;
12108	    esac
12109
12110	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12111	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12112	    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'
12113            ;;
12114	  cxx*)
12115	    # Compaq C++
12116	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12117	    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'
12118
12119	    runpath_var=LD_RUN_PATH
12120	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12121	    hardcode_libdir_separator_CXX=:
12122
12123	    # Commands to make compiler produce verbose output that lists
12124	    # what "hidden" libraries, object files and flags are used when
12125	    # linking a shared library.
12126	    #
12127	    # There doesn't appear to be a way to prevent this compiler from
12128	    # explicitly linking system object files so we need to strip them
12129	    # from the output so that they don't get included in the library
12130	    # dependencies.
12131	    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'
12132	    ;;
12133	  xl* | mpixl* | bgxl*)
12134	    # IBM XL 8.0 on PPC, with GNU ld
12135	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12136	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12137	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12138	    if test "x$supports_anon_versioning" = xyes; then
12139	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12140		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12141		echo "local: *; };" >> $output_objdir/$libname.ver~
12142		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12143	    fi
12144	    ;;
12145	  *)
12146	    case `$CC -V 2>&1 | sed 5q` in
12147	    *Sun\ C*)
12148	      # Sun C++ 5.9
12149	      no_undefined_flag_CXX=' -zdefs'
12150	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12151	      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'
12152	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12153	      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'
12154	      compiler_needs_object_CXX=yes
12155
12156	      # Not sure whether something based on
12157	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12158	      # would be better.
12159	      output_verbose_link_cmd='func_echo_all'
12160
12161	      # Archives containing C++ object files must be created using
12162	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12163	      # necessary to make sure instantiated templates are included
12164	      # in the archive.
12165	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12166	      ;;
12167	    esac
12168	    ;;
12169	esac
12170	;;
12171
12172      lynxos*)
12173        # FIXME: insert proper C++ library support
12174	ld_shlibs_CXX=no
12175	;;
12176
12177      m88k*)
12178        # FIXME: insert proper C++ library support
12179        ld_shlibs_CXX=no
12180	;;
12181
12182      mvs*)
12183        case $cc_basename in
12184          cxx*)
12185	    # FIXME: insert proper C++ library support
12186	    ld_shlibs_CXX=no
12187	    ;;
12188	  *)
12189	    # FIXME: insert proper C++ library support
12190	    ld_shlibs_CXX=no
12191	    ;;
12192	esac
12193	;;
12194
12195      netbsd*)
12196        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12197	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12198	  wlarc=
12199	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12200	  hardcode_direct_CXX=yes
12201	  hardcode_shlibpath_var_CXX=no
12202	fi
12203	# Workaround some broken pre-1.5 toolchains
12204	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12205	;;
12206
12207      *nto* | *qnx*)
12208        ld_shlibs_CXX=yes
12209	;;
12210
12211      openbsd2*)
12212        # C++ shared libraries are fairly broken
12213	ld_shlibs_CXX=no
12214	;;
12215
12216      openbsd*)
12217	if test -f /usr/libexec/ld.so; then
12218	  hardcode_direct_CXX=yes
12219	  hardcode_shlibpath_var_CXX=no
12220	  hardcode_direct_absolute_CXX=yes
12221	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12222	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12223	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12224	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12225	    export_dynamic_flag_spec_CXX='${wl}-E'
12226	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12227	  fi
12228	  output_verbose_link_cmd=func_echo_all
12229	else
12230	  ld_shlibs_CXX=no
12231	fi
12232	;;
12233
12234      osf3* | osf4* | osf5*)
12235        case $cc_basename in
12236          KCC*)
12237	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12238
12239	    # KCC will only create a shared library if the output file
12240	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12241	    # to its proper name (with version) after linking.
12242	    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'
12243
12244	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12245	    hardcode_libdir_separator_CXX=:
12246
12247	    # Archives containing C++ object files must be created using
12248	    # the KAI C++ compiler.
12249	    case $host in
12250	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12251	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12252	    esac
12253	    ;;
12254          RCC*)
12255	    # Rational C++ 2.4.1
12256	    # FIXME: insert proper C++ library support
12257	    ld_shlibs_CXX=no
12258	    ;;
12259          cxx*)
12260	    case $host in
12261	      osf3*)
12262	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12263	        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'
12264	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12265		;;
12266	      *)
12267	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12268	        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'
12269	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12270	          echo "-hidden">> $lib.exp~
12271	          $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~
12272	          $RM $lib.exp'
12273	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12274		;;
12275	    esac
12276
12277	    hardcode_libdir_separator_CXX=:
12278
12279	    # Commands to make compiler produce verbose output that lists
12280	    # what "hidden" libraries, object files and flags are used when
12281	    # linking a shared library.
12282	    #
12283	    # There doesn't appear to be a way to prevent this compiler from
12284	    # explicitly linking system object files so we need to strip them
12285	    # from the output so that they don't get included in the library
12286	    # dependencies.
12287	    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"'
12288	    ;;
12289	  *)
12290	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12291	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12292	      case $host in
12293	        osf3*)
12294	          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'
12295		  ;;
12296	        *)
12297	          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'
12298		  ;;
12299	      esac
12300
12301	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12302	      hardcode_libdir_separator_CXX=:
12303
12304	      # Commands to make compiler produce verbose output that lists
12305	      # what "hidden" libraries, object files and flags are used when
12306	      # linking a shared library.
12307	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12308
12309	    else
12310	      # FIXME: insert proper C++ library support
12311	      ld_shlibs_CXX=no
12312	    fi
12313	    ;;
12314        esac
12315        ;;
12316
12317      psos*)
12318        # FIXME: insert proper C++ library support
12319        ld_shlibs_CXX=no
12320        ;;
12321
12322      sunos4*)
12323        case $cc_basename in
12324          CC*)
12325	    # Sun C++ 4.x
12326	    # FIXME: insert proper C++ library support
12327	    ld_shlibs_CXX=no
12328	    ;;
12329          lcc*)
12330	    # Lucid
12331	    # FIXME: insert proper C++ library support
12332	    ld_shlibs_CXX=no
12333	    ;;
12334          *)
12335	    # FIXME: insert proper C++ library support
12336	    ld_shlibs_CXX=no
12337	    ;;
12338        esac
12339        ;;
12340
12341      solaris*)
12342        case $cc_basename in
12343          CC*)
12344	    # Sun C++ 4.2, 5.x and Centerline C++
12345            archive_cmds_need_lc_CXX=yes
12346	    no_undefined_flag_CXX=' -zdefs'
12347	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12348	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12349	      $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'
12350
12351	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12352	    hardcode_shlibpath_var_CXX=no
12353	    case $host_os in
12354	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12355	      *)
12356		# The compiler driver will combine and reorder linker options,
12357		# but understands `-z linker_flag'.
12358	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12359		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12360	        ;;
12361	    esac
12362	    link_all_deplibs_CXX=yes
12363
12364	    output_verbose_link_cmd='func_echo_all'
12365
12366	    # Archives containing C++ object files must be created using
12367	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12368	    # necessary to make sure instantiated templates are included
12369	    # in the archive.
12370	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12371	    ;;
12372          gcx*)
12373	    # Green Hills C++ Compiler
12374	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12375
12376	    # The C++ compiler must be used to create the archive.
12377	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12378	    ;;
12379          *)
12380	    # GNU C++ compiler with Solaris linker
12381	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12382	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12383	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12384	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12385	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12386		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12387
12388	        # Commands to make compiler produce verbose output that lists
12389	        # what "hidden" libraries, object files and flags are used when
12390	        # linking a shared library.
12391	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12392	      else
12393	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
12394	        # platform.
12395	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12396	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12397		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12398
12399	        # Commands to make compiler produce verbose output that lists
12400	        # what "hidden" libraries, object files and flags are used when
12401	        # linking a shared library.
12402	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12403	      fi
12404
12405	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12406	      case $host_os in
12407		solaris2.[0-5] | solaris2.[0-5].*) ;;
12408		*)
12409		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12410		  ;;
12411	      esac
12412	    fi
12413	    ;;
12414        esac
12415        ;;
12416
12417    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12418      no_undefined_flag_CXX='${wl}-z,text'
12419      archive_cmds_need_lc_CXX=no
12420      hardcode_shlibpath_var_CXX=no
12421      runpath_var='LD_RUN_PATH'
12422
12423      case $cc_basename in
12424        CC*)
12425	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12426	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12427	  ;;
12428	*)
12429	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12430	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12431	  ;;
12432      esac
12433      ;;
12434
12435      sysv5* | sco3.2v5* | sco5v6*)
12436	# Note: We can NOT use -z defs as we might desire, because we do not
12437	# link with -lc, and that would cause any symbols used from libc to
12438	# always be unresolved, which means just about no library would
12439	# ever link correctly.  If we're not using GNU ld we use -z text
12440	# though, which does catch some bad symbols but isn't as heavy-handed
12441	# as -z defs.
12442	no_undefined_flag_CXX='${wl}-z,text'
12443	allow_undefined_flag_CXX='${wl}-z,nodefs'
12444	archive_cmds_need_lc_CXX=no
12445	hardcode_shlibpath_var_CXX=no
12446	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12447	hardcode_libdir_separator_CXX=':'
12448	link_all_deplibs_CXX=yes
12449	export_dynamic_flag_spec_CXX='${wl}-Bexport'
12450	runpath_var='LD_RUN_PATH'
12451
12452	case $cc_basename in
12453          CC*)
12454	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12455	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12456	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12457	      '"$old_archive_cmds_CXX"
12458	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12459	      '"$reload_cmds_CXX"
12460	    ;;
12461	  *)
12462	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12463	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12464	    ;;
12465	esac
12466      ;;
12467
12468      tandem*)
12469        case $cc_basename in
12470          NCC*)
12471	    # NonStop-UX NCC 3.20
12472	    # FIXME: insert proper C++ library support
12473	    ld_shlibs_CXX=no
12474	    ;;
12475          *)
12476	    # FIXME: insert proper C++ library support
12477	    ld_shlibs_CXX=no
12478	    ;;
12479        esac
12480        ;;
12481
12482      vxworks*)
12483        # FIXME: insert proper C++ library support
12484        ld_shlibs_CXX=no
12485        ;;
12486
12487      *)
12488        # FIXME: insert proper C++ library support
12489        ld_shlibs_CXX=no
12490        ;;
12491    esac
12492
12493    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12494$as_echo "$ld_shlibs_CXX" >&6; }
12495    test "$ld_shlibs_CXX" = no && can_build_shared=no
12496
12497    GCC_CXX="$GXX"
12498    LD_CXX="$LD"
12499
12500    ## CAVEAT EMPTOR:
12501    ## There is no encapsulation within the following macros, do not change
12502    ## the running order or otherwise move them around unless you know exactly
12503    ## what you are doing...
12504    # Dependencies to place before and after the object being linked:
12505predep_objects_CXX=
12506postdep_objects_CXX=
12507predeps_CXX=
12508postdeps_CXX=
12509compiler_lib_search_path_CXX=
12510
12511cat > conftest.$ac_ext <<_LT_EOF
12512class Foo
12513{
12514public:
12515  Foo (void) { a = 0; }
12516private:
12517  int a;
12518};
12519_LT_EOF
12520
12521if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12522  (eval $ac_compile) 2>&5
12523  ac_status=$?
12524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12525  test $ac_status = 0; }; then
12526  # Parse the compiler output and extract the necessary
12527  # objects, libraries and library flags.
12528
12529  # Sentinel used to keep track of whether or not we are before
12530  # the conftest object file.
12531  pre_test_object_deps_done=no
12532
12533  for p in `eval "$output_verbose_link_cmd"`; do
12534    case $p in
12535
12536    -L* | -R* | -l*)
12537       # Some compilers place space between "-{L,R}" and the path.
12538       # Remove the space.
12539       if test $p = "-L" ||
12540          test $p = "-R"; then
12541	 prev=$p
12542	 continue
12543       else
12544	 prev=
12545       fi
12546
12547       if test "$pre_test_object_deps_done" = no; then
12548	 case $p in
12549	 -L* | -R*)
12550	   # Internal compiler library paths should come after those
12551	   # provided the user.  The postdeps already come after the
12552	   # user supplied libs so there is no need to process them.
12553	   if test -z "$compiler_lib_search_path_CXX"; then
12554	     compiler_lib_search_path_CXX="${prev}${p}"
12555	   else
12556	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12557	   fi
12558	   ;;
12559	 # The "-l" case would never come before the object being
12560	 # linked, so don't bother handling this case.
12561	 esac
12562       else
12563	 if test -z "$postdeps_CXX"; then
12564	   postdeps_CXX="${prev}${p}"
12565	 else
12566	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12567	 fi
12568       fi
12569       ;;
12570
12571    *.$objext)
12572       # This assumes that the test object file only shows up
12573       # once in the compiler output.
12574       if test "$p" = "conftest.$objext"; then
12575	 pre_test_object_deps_done=yes
12576	 continue
12577       fi
12578
12579       if test "$pre_test_object_deps_done" = no; then
12580	 if test -z "$predep_objects_CXX"; then
12581	   predep_objects_CXX="$p"
12582	 else
12583	   predep_objects_CXX="$predep_objects_CXX $p"
12584	 fi
12585       else
12586	 if test -z "$postdep_objects_CXX"; then
12587	   postdep_objects_CXX="$p"
12588	 else
12589	   postdep_objects_CXX="$postdep_objects_CXX $p"
12590	 fi
12591       fi
12592       ;;
12593
12594    *) ;; # Ignore the rest.
12595
12596    esac
12597  done
12598
12599  # Clean up.
12600  rm -f a.out a.exe
12601else
12602  echo "libtool.m4: error: problem compiling CXX test program"
12603fi
12604
12605$RM -f confest.$objext
12606
12607# PORTME: override above test on systems where it is broken
12608case $host_os in
12609interix[3-9]*)
12610  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12611  # hack all around it, let's just trust "g++" to DTRT.
12612  predep_objects_CXX=
12613  postdep_objects_CXX=
12614  postdeps_CXX=
12615  ;;
12616
12617linux*)
12618  case `$CC -V 2>&1 | sed 5q` in
12619  *Sun\ C*)
12620    # Sun C++ 5.9
12621
12622    # The more standards-conforming stlport4 library is
12623    # incompatible with the Cstd library. Avoid specifying
12624    # it if it's in CXXFLAGS. Ignore libCrun as
12625    # -library=stlport4 depends on it.
12626    case " $CXX $CXXFLAGS " in
12627    *" -library=stlport4 "*)
12628      solaris_use_stlport4=yes
12629      ;;
12630    esac
12631
12632    if test "$solaris_use_stlport4" != yes; then
12633      postdeps_CXX='-library=Cstd -library=Crun'
12634    fi
12635    ;;
12636  esac
12637  ;;
12638
12639solaris*)
12640  case $cc_basename in
12641  CC*)
12642    # The more standards-conforming stlport4 library is
12643    # incompatible with the Cstd library. Avoid specifying
12644    # it if it's in CXXFLAGS. Ignore libCrun as
12645    # -library=stlport4 depends on it.
12646    case " $CXX $CXXFLAGS " in
12647    *" -library=stlport4 "*)
12648      solaris_use_stlport4=yes
12649      ;;
12650    esac
12651
12652    # Adding this requires a known-good setup of shared libraries for
12653    # Sun compiler versions before 5.6, else PIC objects from an old
12654    # archive will be linked into the output, leading to subtle bugs.
12655    if test "$solaris_use_stlport4" != yes; then
12656      postdeps_CXX='-library=Cstd -library=Crun'
12657    fi
12658    ;;
12659  esac
12660  ;;
12661esac
12662
12663
12664case " $postdeps_CXX " in
12665*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12666esac
12667 compiler_lib_search_dirs_CXX=
12668if test -n "${compiler_lib_search_path_CXX}"; then
12669 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12670fi
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702    lt_prog_compiler_wl_CXX=
12703lt_prog_compiler_pic_CXX=
12704lt_prog_compiler_static_CXX=
12705
12706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12707$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12708
12709  # C++ specific cases for pic, static, wl, etc.
12710  if test "$GXX" = yes; then
12711    lt_prog_compiler_wl_CXX='-Wl,'
12712    lt_prog_compiler_static_CXX='-static'
12713
12714    case $host_os in
12715    aix*)
12716      # All AIX code is PIC.
12717      if test "$host_cpu" = ia64; then
12718	# AIX 5 now supports IA64 processor
12719	lt_prog_compiler_static_CXX='-Bstatic'
12720      fi
12721      lt_prog_compiler_pic_CXX='-fPIC'
12722      ;;
12723
12724    amigaos*)
12725      case $host_cpu in
12726      powerpc)
12727            # see comment about AmigaOS4 .so support
12728            lt_prog_compiler_pic_CXX='-fPIC'
12729        ;;
12730      m68k)
12731            # FIXME: we need at least 68020 code to build shared libraries, but
12732            # adding the `-m68020' flag to GCC prevents building anything better,
12733            # like `-m68040'.
12734            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12735        ;;
12736      esac
12737      ;;
12738
12739    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12740      # PIC is the default for these OSes.
12741      ;;
12742    mingw* | cygwin* | os2* | pw32* | cegcc*)
12743      # This hack is so that the source file can tell whether it is being
12744      # built for inclusion in a dll (and should export symbols for example).
12745      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12746      # (--disable-auto-import) libraries
12747      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12748      ;;
12749    darwin* | rhapsody*)
12750      # PIC is the default on this platform
12751      # Common symbols not allowed in MH_DYLIB files
12752      lt_prog_compiler_pic_CXX='-fno-common'
12753      ;;
12754    *djgpp*)
12755      # DJGPP does not support shared libraries at all
12756      lt_prog_compiler_pic_CXX=
12757      ;;
12758    haiku*)
12759      # PIC is the default for Haiku.
12760      # The "-static" flag exists, but is broken.
12761      lt_prog_compiler_static_CXX=
12762      ;;
12763    interix[3-9]*)
12764      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12765      # Instead, we relocate shared libraries at runtime.
12766      ;;
12767    sysv4*MP*)
12768      if test -d /usr/nec; then
12769	lt_prog_compiler_pic_CXX=-Kconform_pic
12770      fi
12771      ;;
12772    hpux*)
12773      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12774      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12775      # sets the default TLS model and affects inlining.
12776      case $host_cpu in
12777      hppa*64*)
12778	;;
12779      *)
12780	lt_prog_compiler_pic_CXX='-fPIC'
12781	;;
12782      esac
12783      ;;
12784    *qnx* | *nto*)
12785      # QNX uses GNU C++, but need to define -shared option too, otherwise
12786      # it will coredump.
12787      lt_prog_compiler_pic_CXX='-fPIC -shared'
12788      ;;
12789    *)
12790      lt_prog_compiler_pic_CXX='-fPIC'
12791      ;;
12792    esac
12793  else
12794    case $host_os in
12795      aix[4-9]*)
12796	# All AIX code is PIC.
12797	if test "$host_cpu" = ia64; then
12798	  # AIX 5 now supports IA64 processor
12799	  lt_prog_compiler_static_CXX='-Bstatic'
12800	else
12801	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12802	fi
12803	;;
12804      chorus*)
12805	case $cc_basename in
12806	cxch68*)
12807	  # Green Hills C++ Compiler
12808	  # _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"
12809	  ;;
12810	esac
12811	;;
12812      dgux*)
12813	case $cc_basename in
12814	  ec++*)
12815	    lt_prog_compiler_pic_CXX='-KPIC'
12816	    ;;
12817	  ghcx*)
12818	    # Green Hills C++ Compiler
12819	    lt_prog_compiler_pic_CXX='-pic'
12820	    ;;
12821	  *)
12822	    ;;
12823	esac
12824	;;
12825      freebsd* | dragonfly*)
12826	# FreeBSD uses GNU C++
12827	;;
12828      hpux9* | hpux10* | hpux11*)
12829	case $cc_basename in
12830	  CC*)
12831	    lt_prog_compiler_wl_CXX='-Wl,'
12832	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12833	    if test "$host_cpu" != ia64; then
12834	      lt_prog_compiler_pic_CXX='+Z'
12835	    fi
12836	    ;;
12837	  aCC*)
12838	    lt_prog_compiler_wl_CXX='-Wl,'
12839	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12840	    case $host_cpu in
12841	    hppa*64*|ia64*)
12842	      # +Z the default
12843	      ;;
12844	    *)
12845	      lt_prog_compiler_pic_CXX='+Z'
12846	      ;;
12847	    esac
12848	    ;;
12849	  *)
12850	    ;;
12851	esac
12852	;;
12853      interix*)
12854	# This is c89, which is MS Visual C++ (no shared libs)
12855	# Anyone wants to do a port?
12856	;;
12857      irix5* | irix6* | nonstopux*)
12858	case $cc_basename in
12859	  CC*)
12860	    lt_prog_compiler_wl_CXX='-Wl,'
12861	    lt_prog_compiler_static_CXX='-non_shared'
12862	    # CC pic flag -KPIC is the default.
12863	    ;;
12864	  *)
12865	    ;;
12866	esac
12867	;;
12868      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12869	case $cc_basename in
12870	  KCC*)
12871	    # KAI C++ Compiler
12872	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12873	    lt_prog_compiler_pic_CXX='-fPIC'
12874	    ;;
12875	  ecpc* )
12876	    # old Intel C++ for x86_64 which still supported -KPIC.
12877	    lt_prog_compiler_wl_CXX='-Wl,'
12878	    lt_prog_compiler_pic_CXX='-KPIC'
12879	    lt_prog_compiler_static_CXX='-static'
12880	    ;;
12881	  icpc* )
12882	    # Intel C++, used to be incompatible with GCC.
12883	    # ICC 10 doesn't accept -KPIC any more.
12884	    lt_prog_compiler_wl_CXX='-Wl,'
12885	    lt_prog_compiler_pic_CXX='-fPIC'
12886	    lt_prog_compiler_static_CXX='-static'
12887	    ;;
12888	  pgCC* | pgcpp*)
12889	    # Portland Group C++ compiler
12890	    lt_prog_compiler_wl_CXX='-Wl,'
12891	    lt_prog_compiler_pic_CXX='-fpic'
12892	    lt_prog_compiler_static_CXX='-Bstatic'
12893	    ;;
12894	  cxx*)
12895	    # Compaq C++
12896	    # Make sure the PIC flag is empty.  It appears that all Alpha
12897	    # Linux and Compaq Tru64 Unix objects are PIC.
12898	    lt_prog_compiler_pic_CXX=
12899	    lt_prog_compiler_static_CXX='-non_shared'
12900	    ;;
12901	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
12902	    # IBM XL 8.0, 9.0 on PPC and BlueGene
12903	    lt_prog_compiler_wl_CXX='-Wl,'
12904	    lt_prog_compiler_pic_CXX='-qpic'
12905	    lt_prog_compiler_static_CXX='-qstaticlink'
12906	    ;;
12907	  *)
12908	    case `$CC -V 2>&1 | sed 5q` in
12909	    *Sun\ C*)
12910	      # Sun C++ 5.9
12911	      lt_prog_compiler_pic_CXX='-KPIC'
12912	      lt_prog_compiler_static_CXX='-Bstatic'
12913	      lt_prog_compiler_wl_CXX='-Qoption ld '
12914	      ;;
12915	    esac
12916	    ;;
12917	esac
12918	;;
12919      lynxos*)
12920	;;
12921      m88k*)
12922	;;
12923      mvs*)
12924	case $cc_basename in
12925	  cxx*)
12926	    lt_prog_compiler_pic_CXX='-W c,exportall'
12927	    ;;
12928	  *)
12929	    ;;
12930	esac
12931	;;
12932      netbsd*)
12933	;;
12934      *qnx* | *nto*)
12935        # QNX uses GNU C++, but need to define -shared option too, otherwise
12936        # it will coredump.
12937        lt_prog_compiler_pic_CXX='-fPIC -shared'
12938        ;;
12939      osf3* | osf4* | osf5*)
12940	case $cc_basename in
12941	  KCC*)
12942	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12943	    ;;
12944	  RCC*)
12945	    # Rational C++ 2.4.1
12946	    lt_prog_compiler_pic_CXX='-pic'
12947	    ;;
12948	  cxx*)
12949	    # Digital/Compaq C++
12950	    lt_prog_compiler_wl_CXX='-Wl,'
12951	    # Make sure the PIC flag is empty.  It appears that all Alpha
12952	    # Linux and Compaq Tru64 Unix objects are PIC.
12953	    lt_prog_compiler_pic_CXX=
12954	    lt_prog_compiler_static_CXX='-non_shared'
12955	    ;;
12956	  *)
12957	    ;;
12958	esac
12959	;;
12960      psos*)
12961	;;
12962      solaris*)
12963	case $cc_basename in
12964	  CC*)
12965	    # Sun C++ 4.2, 5.x and Centerline C++
12966	    lt_prog_compiler_pic_CXX='-KPIC'
12967	    lt_prog_compiler_static_CXX='-Bstatic'
12968	    lt_prog_compiler_wl_CXX='-Qoption ld '
12969	    ;;
12970	  gcx*)
12971	    # Green Hills C++ Compiler
12972	    lt_prog_compiler_pic_CXX='-PIC'
12973	    ;;
12974	  *)
12975	    ;;
12976	esac
12977	;;
12978      sunos4*)
12979	case $cc_basename in
12980	  CC*)
12981	    # Sun C++ 4.x
12982	    lt_prog_compiler_pic_CXX='-pic'
12983	    lt_prog_compiler_static_CXX='-Bstatic'
12984	    ;;
12985	  lcc*)
12986	    # Lucid
12987	    lt_prog_compiler_pic_CXX='-pic'
12988	    ;;
12989	  *)
12990	    ;;
12991	esac
12992	;;
12993      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12994	case $cc_basename in
12995	  CC*)
12996	    lt_prog_compiler_wl_CXX='-Wl,'
12997	    lt_prog_compiler_pic_CXX='-KPIC'
12998	    lt_prog_compiler_static_CXX='-Bstatic'
12999	    ;;
13000	esac
13001	;;
13002      tandem*)
13003	case $cc_basename in
13004	  NCC*)
13005	    # NonStop-UX NCC 3.20
13006	    lt_prog_compiler_pic_CXX='-KPIC'
13007	    ;;
13008	  *)
13009	    ;;
13010	esac
13011	;;
13012      vxworks*)
13013	;;
13014      *)
13015	lt_prog_compiler_can_build_shared_CXX=no
13016	;;
13017    esac
13018  fi
13019
13020case $host_os in
13021  # For platforms which do not support PIC, -DPIC is meaningless:
13022  *djgpp*)
13023    lt_prog_compiler_pic_CXX=
13024    ;;
13025  *)
13026    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13027    ;;
13028esac
13029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13030$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13031
13032
13033
13034#
13035# Check to make sure the PIC flag actually works.
13036#
13037if test -n "$lt_prog_compiler_pic_CXX"; then
13038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13039$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13040if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13041  $as_echo_n "(cached) " >&6
13042else
13043  lt_cv_prog_compiler_pic_works_CXX=no
13044   ac_outfile=conftest.$ac_objext
13045   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13046   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13047   # Insert the option either (1) after the last *FLAGS variable, or
13048   # (2) before a word containing "conftest.", or (3) at the end.
13049   # Note that $ac_compile itself does not contain backslashes and begins
13050   # with a dollar sign (not a hyphen), so the echo should work correctly.
13051   # The option is referenced via a variable to avoid confusing sed.
13052   lt_compile=`echo "$ac_compile" | $SED \
13053   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13054   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13055   -e 's:$: $lt_compiler_flag:'`
13056   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13057   (eval "$lt_compile" 2>conftest.err)
13058   ac_status=$?
13059   cat conftest.err >&5
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   if (exit $ac_status) && test -s "$ac_outfile"; then
13062     # The compiler can only warn and ignore the option if not recognized
13063     # So say no if there are warnings other than the usual output.
13064     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13065     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13066     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13067       lt_cv_prog_compiler_pic_works_CXX=yes
13068     fi
13069   fi
13070   $RM conftest*
13071
13072fi
13073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13074$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13075
13076if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13077    case $lt_prog_compiler_pic_CXX in
13078     "" | " "*) ;;
13079     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13080     esac
13081else
13082    lt_prog_compiler_pic_CXX=
13083     lt_prog_compiler_can_build_shared_CXX=no
13084fi
13085
13086fi
13087
13088
13089
13090#
13091# Check to make sure the static flag actually works.
13092#
13093wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13095$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13096if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13097  $as_echo_n "(cached) " >&6
13098else
13099  lt_cv_prog_compiler_static_works_CXX=no
13100   save_LDFLAGS="$LDFLAGS"
13101   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13102   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13103   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13104     # The linker can only warn and ignore the option if not recognized
13105     # So say no if there are warnings
13106     if test -s conftest.err; then
13107       # Append any errors to the config.log.
13108       cat conftest.err 1>&5
13109       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13110       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13111       if diff conftest.exp conftest.er2 >/dev/null; then
13112         lt_cv_prog_compiler_static_works_CXX=yes
13113       fi
13114     else
13115       lt_cv_prog_compiler_static_works_CXX=yes
13116     fi
13117   fi
13118   $RM -r conftest*
13119   LDFLAGS="$save_LDFLAGS"
13120
13121fi
13122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13123$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13124
13125if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13126    :
13127else
13128    lt_prog_compiler_static_CXX=
13129fi
13130
13131
13132
13133
13134    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13135$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13136if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13137  $as_echo_n "(cached) " >&6
13138else
13139  lt_cv_prog_compiler_c_o_CXX=no
13140   $RM -r conftest 2>/dev/null
13141   mkdir conftest
13142   cd conftest
13143   mkdir out
13144   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13145
13146   lt_compiler_flag="-o out/conftest2.$ac_objext"
13147   # Insert the option either (1) after the last *FLAGS variable, or
13148   # (2) before a word containing "conftest.", or (3) at the end.
13149   # Note that $ac_compile itself does not contain backslashes and begins
13150   # with a dollar sign (not a hyphen), so the echo should work correctly.
13151   lt_compile=`echo "$ac_compile" | $SED \
13152   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13153   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13154   -e 's:$: $lt_compiler_flag:'`
13155   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13156   (eval "$lt_compile" 2>out/conftest.err)
13157   ac_status=$?
13158   cat out/conftest.err >&5
13159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13161   then
13162     # The compiler can only warn and ignore the option if not recognized
13163     # So say no if there are warnings
13164     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13165     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13166     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13167       lt_cv_prog_compiler_c_o_CXX=yes
13168     fi
13169   fi
13170   chmod u+w . 2>&5
13171   $RM conftest*
13172   # SGI C++ compiler will create directory out/ii_files/ for
13173   # template instantiation
13174   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13175   $RM out/* && rmdir out
13176   cd ..
13177   $RM -r conftest
13178   $RM conftest*
13179
13180fi
13181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13182$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13183
13184
13185
13186    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13187$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13188if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13189  $as_echo_n "(cached) " >&6
13190else
13191  lt_cv_prog_compiler_c_o_CXX=no
13192   $RM -r conftest 2>/dev/null
13193   mkdir conftest
13194   cd conftest
13195   mkdir out
13196   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13197
13198   lt_compiler_flag="-o out/conftest2.$ac_objext"
13199   # Insert the option either (1) after the last *FLAGS variable, or
13200   # (2) before a word containing "conftest.", or (3) at the end.
13201   # Note that $ac_compile itself does not contain backslashes and begins
13202   # with a dollar sign (not a hyphen), so the echo should work correctly.
13203   lt_compile=`echo "$ac_compile" | $SED \
13204   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13205   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13206   -e 's:$: $lt_compiler_flag:'`
13207   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13208   (eval "$lt_compile" 2>out/conftest.err)
13209   ac_status=$?
13210   cat out/conftest.err >&5
13211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13213   then
13214     # The compiler can only warn and ignore the option if not recognized
13215     # So say no if there are warnings
13216     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13217     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13218     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13219       lt_cv_prog_compiler_c_o_CXX=yes
13220     fi
13221   fi
13222   chmod u+w . 2>&5
13223   $RM conftest*
13224   # SGI C++ compiler will create directory out/ii_files/ for
13225   # template instantiation
13226   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13227   $RM out/* && rmdir out
13228   cd ..
13229   $RM -r conftest
13230   $RM conftest*
13231
13232fi
13233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13234$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13235
13236
13237
13238
13239hard_links="nottested"
13240if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13241  # do not overwrite the value of need_locks provided by the user
13242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13243$as_echo_n "checking if we can lock with hard links... " >&6; }
13244  hard_links=yes
13245  $RM conftest*
13246  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13247  touch conftest.a
13248  ln conftest.a conftest.b 2>&5 || hard_links=no
13249  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13251$as_echo "$hard_links" >&6; }
13252  if test "$hard_links" = no; then
13253    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13254$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13255    need_locks=warn
13256  fi
13257else
13258  need_locks=no
13259fi
13260
13261
13262
13263    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13264$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13265
13266  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13267  case $host_os in
13268  aix[4-9]*)
13269    # If we're using GNU nm, then we don't want the "-C" option.
13270    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13271    # Also, AIX nm treats weak defined symbols like other global defined
13272    # symbols, whereas GNU nm marks them as "W".
13273    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13274      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'
13275    else
13276      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13277    fi
13278    ;;
13279  pw32*)
13280    export_symbols_cmds_CXX="$ltdll_cmds"
13281  ;;
13282  cygwin* | mingw* | cegcc*)
13283    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'
13284  ;;
13285  *)
13286    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13287  ;;
13288  esac
13289  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13290
13291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13292$as_echo "$ld_shlibs_CXX" >&6; }
13293test "$ld_shlibs_CXX" = no && can_build_shared=no
13294
13295with_gnu_ld_CXX=$with_gnu_ld
13296
13297
13298
13299
13300
13301
13302#
13303# Do we need to explicitly link libc?
13304#
13305case "x$archive_cmds_need_lc_CXX" in
13306x|xyes)
13307  # Assume -lc should be added
13308  archive_cmds_need_lc_CXX=yes
13309
13310  if test "$enable_shared" = yes && test "$GCC" = yes; then
13311    case $archive_cmds_CXX in
13312    *'~'*)
13313      # FIXME: we may have to deal with multi-command sequences.
13314      ;;
13315    '$CC '*)
13316      # Test whether the compiler implicitly links with -lc since on some
13317      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13318      # to ld, don't add -lc before -lgcc.
13319      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13320$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13321if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13322  $as_echo_n "(cached) " >&6
13323else
13324  $RM conftest*
13325	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13326
13327	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13328  (eval $ac_compile) 2>&5
13329  ac_status=$?
13330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13331  test $ac_status = 0; } 2>conftest.err; then
13332	  soname=conftest
13333	  lib=conftest
13334	  libobjs=conftest.$ac_objext
13335	  deplibs=
13336	  wl=$lt_prog_compiler_wl_CXX
13337	  pic_flag=$lt_prog_compiler_pic_CXX
13338	  compiler_flags=-v
13339	  linker_flags=-v
13340	  verstring=
13341	  output_objdir=.
13342	  libname=conftest
13343	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13344	  allow_undefined_flag_CXX=
13345	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13346  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13347  ac_status=$?
13348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13349  test $ac_status = 0; }
13350	  then
13351	    lt_cv_archive_cmds_need_lc_CXX=no
13352	  else
13353	    lt_cv_archive_cmds_need_lc_CXX=yes
13354	  fi
13355	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13356	else
13357	  cat conftest.err 1>&5
13358	fi
13359	$RM conftest*
13360
13361fi
13362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13363$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13364      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13365      ;;
13366    esac
13367  fi
13368  ;;
13369esac
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
13427
13428
13429
13430
13431
13432
13433
13434    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13435$as_echo_n "checking dynamic linker characteristics... " >&6; }
13436
13437library_names_spec=
13438libname_spec='lib$name'
13439soname_spec=
13440shrext_cmds=".so"
13441postinstall_cmds=
13442postuninstall_cmds=
13443finish_cmds=
13444finish_eval=
13445shlibpath_var=
13446shlibpath_overrides_runpath=unknown
13447version_type=none
13448dynamic_linker="$host_os ld.so"
13449sys_lib_dlsearch_path_spec="/lib /usr/lib"
13450need_lib_prefix=unknown
13451hardcode_into_libs=no
13452
13453# when you set need_version to no, make sure it does not cause -set_version
13454# flags to be left without arguments
13455need_version=unknown
13456
13457case $host_os in
13458aix3*)
13459  version_type=linux
13460  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13461  shlibpath_var=LIBPATH
13462
13463  # AIX 3 has no versioning support, so we append a major version to the name.
13464  soname_spec='${libname}${release}${shared_ext}$major'
13465  ;;
13466
13467aix[4-9]*)
13468  version_type=linux
13469  need_lib_prefix=no
13470  need_version=no
13471  hardcode_into_libs=yes
13472  if test "$host_cpu" = ia64; then
13473    # AIX 5 supports IA64
13474    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13475    shlibpath_var=LD_LIBRARY_PATH
13476  else
13477    # With GCC up to 2.95.x, collect2 would create an import file
13478    # for dependence libraries.  The import file would start with
13479    # the line `#! .'.  This would cause the generated library to
13480    # depend on `.', always an invalid library.  This was fixed in
13481    # development snapshots of GCC prior to 3.0.
13482    case $host_os in
13483      aix4 | aix4.[01] | aix4.[01].*)
13484      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13485	   echo ' yes '
13486	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13487	:
13488      else
13489	can_build_shared=no
13490      fi
13491      ;;
13492    esac
13493    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13494    # soname into executable. Probably we can add versioning support to
13495    # collect2, so additional links can be useful in future.
13496    if test "$aix_use_runtimelinking" = yes; then
13497      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13498      # instead of lib<name>.a to let people know that these are not
13499      # typical AIX shared libraries.
13500      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13501    else
13502      # We preserve .a as extension for shared libraries through AIX4.2
13503      # and later when we are not doing run time linking.
13504      library_names_spec='${libname}${release}.a $libname.a'
13505      soname_spec='${libname}${release}${shared_ext}$major'
13506    fi
13507    shlibpath_var=LIBPATH
13508  fi
13509  ;;
13510
13511amigaos*)
13512  case $host_cpu in
13513  powerpc)
13514    # Since July 2007 AmigaOS4 officially supports .so libraries.
13515    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13516    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13517    ;;
13518  m68k)
13519    library_names_spec='$libname.ixlibrary $libname.a'
13520    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13521    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'
13522    ;;
13523  esac
13524  ;;
13525
13526beos*)
13527  library_names_spec='${libname}${shared_ext}'
13528  dynamic_linker="$host_os ld.so"
13529  shlibpath_var=LIBRARY_PATH
13530  ;;
13531
13532bsdi[45]*)
13533  version_type=linux
13534  need_version=no
13535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13536  soname_spec='${libname}${release}${shared_ext}$major'
13537  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13538  shlibpath_var=LD_LIBRARY_PATH
13539  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13540  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13541  # the default ld.so.conf also contains /usr/contrib/lib and
13542  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13543  # libtool to hard-code these into programs
13544  ;;
13545
13546cygwin* | mingw* | pw32* | cegcc*)
13547  version_type=windows
13548  shrext_cmds=".dll"
13549  need_version=no
13550  need_lib_prefix=no
13551
13552  case $GCC,$host_os in
13553  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13554    library_names_spec='$libname.dll.a'
13555    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13556    postinstall_cmds='base_file=`basename \${file}`~
13557      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13558      dldir=$destdir/`dirname \$dlpath`~
13559      test -d \$dldir || mkdir -p \$dldir~
13560      $install_prog $dir/$dlname \$dldir/$dlname~
13561      chmod a+x \$dldir/$dlname~
13562      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13563        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13564      fi'
13565    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13566      dlpath=$dir/\$dldll~
13567       $RM \$dlpath'
13568    shlibpath_overrides_runpath=yes
13569
13570    case $host_os in
13571    cygwin*)
13572      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13573      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13574
13575      ;;
13576    mingw* | cegcc*)
13577      # MinGW DLLs use traditional 'lib' prefix
13578      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13579      ;;
13580    pw32*)
13581      # pw32 DLLs use 'pw' prefix rather than 'lib'
13582      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13583      ;;
13584    esac
13585    ;;
13586
13587  *)
13588    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13589    ;;
13590  esac
13591  dynamic_linker='Win32 ld.exe'
13592  # FIXME: first we should search . and the directory the executable is in
13593  shlibpath_var=PATH
13594  ;;
13595
13596darwin* | rhapsody*)
13597  dynamic_linker="$host_os dyld"
13598  version_type=darwin
13599  need_lib_prefix=no
13600  need_version=no
13601  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13602  soname_spec='${libname}${release}${major}$shared_ext'
13603  shlibpath_overrides_runpath=yes
13604  shlibpath_var=DYLD_LIBRARY_PATH
13605  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13606
13607  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13608  ;;
13609
13610dgux*)
13611  version_type=linux
13612  need_lib_prefix=no
13613  need_version=no
13614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13615  soname_spec='${libname}${release}${shared_ext}$major'
13616  shlibpath_var=LD_LIBRARY_PATH
13617  ;;
13618
13619freebsd* | dragonfly*)
13620  # DragonFly does not have aout.  When/if they implement a new
13621  # versioning mechanism, adjust this.
13622  if test -x /usr/bin/objformat; then
13623    objformat=`/usr/bin/objformat`
13624  else
13625    case $host_os in
13626    freebsd[23].*) objformat=aout ;;
13627    *) objformat=elf ;;
13628    esac
13629  fi
13630  version_type=freebsd-$objformat
13631  case $version_type in
13632    freebsd-elf*)
13633      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13634      need_version=no
13635      need_lib_prefix=no
13636      ;;
13637    freebsd-*)
13638      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13639      need_version=yes
13640      ;;
13641  esac
13642  shlibpath_var=LD_LIBRARY_PATH
13643  case $host_os in
13644  freebsd2.*)
13645    shlibpath_overrides_runpath=yes
13646    ;;
13647  freebsd3.[01]* | freebsdelf3.[01]*)
13648    shlibpath_overrides_runpath=yes
13649    hardcode_into_libs=yes
13650    ;;
13651  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13652  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13653    shlibpath_overrides_runpath=no
13654    hardcode_into_libs=yes
13655    ;;
13656  *) # from 4.6 on, and DragonFly
13657    shlibpath_overrides_runpath=yes
13658    hardcode_into_libs=yes
13659    ;;
13660  esac
13661  ;;
13662
13663gnu*)
13664  version_type=linux
13665  need_lib_prefix=no
13666  need_version=no
13667  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13668  soname_spec='${libname}${release}${shared_ext}$major'
13669  shlibpath_var=LD_LIBRARY_PATH
13670  hardcode_into_libs=yes
13671  ;;
13672
13673haiku*)
13674  version_type=linux
13675  need_lib_prefix=no
13676  need_version=no
13677  dynamic_linker="$host_os runtime_loader"
13678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13679  soname_spec='${libname}${release}${shared_ext}$major'
13680  shlibpath_var=LIBRARY_PATH
13681  shlibpath_overrides_runpath=yes
13682  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13683  hardcode_into_libs=yes
13684  ;;
13685
13686hpux9* | hpux10* | hpux11*)
13687  # Give a soname corresponding to the major version so that dld.sl refuses to
13688  # link against other versions.
13689  version_type=sunos
13690  need_lib_prefix=no
13691  need_version=no
13692  case $host_cpu in
13693  ia64*)
13694    shrext_cmds='.so'
13695    hardcode_into_libs=yes
13696    dynamic_linker="$host_os dld.so"
13697    shlibpath_var=LD_LIBRARY_PATH
13698    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13699    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13700    soname_spec='${libname}${release}${shared_ext}$major'
13701    if test "X$HPUX_IA64_MODE" = X32; then
13702      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13703    else
13704      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13705    fi
13706    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13707    ;;
13708  hppa*64*)
13709    shrext_cmds='.sl'
13710    hardcode_into_libs=yes
13711    dynamic_linker="$host_os dld.sl"
13712    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13713    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13714    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13715    soname_spec='${libname}${release}${shared_ext}$major'
13716    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13717    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13718    ;;
13719  *)
13720    shrext_cmds='.sl'
13721    dynamic_linker="$host_os dld.sl"
13722    shlibpath_var=SHLIB_PATH
13723    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13724    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13725    soname_spec='${libname}${release}${shared_ext}$major'
13726    ;;
13727  esac
13728  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13729  postinstall_cmds='chmod 555 $lib'
13730  # or fails outright, so override atomically:
13731  install_override_mode=555
13732  ;;
13733
13734interix[3-9]*)
13735  version_type=linux
13736  need_lib_prefix=no
13737  need_version=no
13738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13739  soname_spec='${libname}${release}${shared_ext}$major'
13740  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13741  shlibpath_var=LD_LIBRARY_PATH
13742  shlibpath_overrides_runpath=no
13743  hardcode_into_libs=yes
13744  ;;
13745
13746irix5* | irix6* | nonstopux*)
13747  case $host_os in
13748    nonstopux*) version_type=nonstopux ;;
13749    *)
13750	if test "$lt_cv_prog_gnu_ld" = yes; then
13751		version_type=linux
13752	else
13753		version_type=irix
13754	fi ;;
13755  esac
13756  need_lib_prefix=no
13757  need_version=no
13758  soname_spec='${libname}${release}${shared_ext}$major'
13759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13760  case $host_os in
13761  irix5* | nonstopux*)
13762    libsuff= shlibsuff=
13763    ;;
13764  *)
13765    case $LD in # libtool.m4 will add one of these switches to LD
13766    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13767      libsuff= shlibsuff= libmagic=32-bit;;
13768    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13769      libsuff=32 shlibsuff=N32 libmagic=N32;;
13770    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13771      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13772    *) libsuff= shlibsuff= libmagic=never-match;;
13773    esac
13774    ;;
13775  esac
13776  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13777  shlibpath_overrides_runpath=no
13778  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13779  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13780  hardcode_into_libs=yes
13781  ;;
13782
13783# No shared lib support for Linux oldld, aout, or coff.
13784linux*oldld* | linux*aout* | linux*coff*)
13785  dynamic_linker=no
13786  ;;
13787
13788# This must be Linux ELF.
13789linux* | k*bsd*-gnu | kopensolaris*-gnu)
13790  version_type=linux
13791  need_lib_prefix=no
13792  need_version=no
13793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13794  soname_spec='${libname}${release}${shared_ext}$major'
13795  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13796  shlibpath_var=LD_LIBRARY_PATH
13797  shlibpath_overrides_runpath=no
13798
13799  # Some binutils ld are patched to set DT_RUNPATH
13800  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13801  $as_echo_n "(cached) " >&6
13802else
13803  lt_cv_shlibpath_overrides_runpath=no
13804    save_LDFLAGS=$LDFLAGS
13805    save_libdir=$libdir
13806    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13807	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13808    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809/* end confdefs.h.  */
13810
13811int
13812main ()
13813{
13814
13815  ;
13816  return 0;
13817}
13818_ACEOF
13819if ac_fn_cxx_try_link "$LINENO"; then :
13820  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13821  lt_cv_shlibpath_overrides_runpath=yes
13822fi
13823fi
13824rm -f core conftest.err conftest.$ac_objext \
13825    conftest$ac_exeext conftest.$ac_ext
13826    LDFLAGS=$save_LDFLAGS
13827    libdir=$save_libdir
13828
13829fi
13830
13831  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13832
13833  # This implies no fast_install, which is unacceptable.
13834  # Some rework will be needed to allow for fast_install
13835  # before this can be enabled.
13836  hardcode_into_libs=yes
13837
13838  # Append ld.so.conf contents to the search path
13839  if test -f /etc/ld.so.conf; then
13840    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' ' '`
13841    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13842  fi
13843
13844  # We used to test for /lib/ld.so.1 and disable shared libraries on
13845  # powerpc, because MkLinux only supported shared libraries with the
13846  # GNU dynamic linker.  Since this was broken with cross compilers,
13847  # most powerpc-linux boxes support dynamic linking these days and
13848  # people can always --disable-shared, the test was removed, and we
13849  # assume the GNU/Linux dynamic linker is in use.
13850  dynamic_linker='GNU/Linux ld.so'
13851  ;;
13852
13853netbsd*)
13854  version_type=sunos
13855  need_lib_prefix=no
13856  need_version=no
13857  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13858    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13859    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13860    dynamic_linker='NetBSD (a.out) ld.so'
13861  else
13862    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13863    soname_spec='${libname}${release}${shared_ext}$major'
13864    dynamic_linker='NetBSD ld.elf_so'
13865  fi
13866  shlibpath_var=LD_LIBRARY_PATH
13867  shlibpath_overrides_runpath=yes
13868  hardcode_into_libs=yes
13869  ;;
13870
13871newsos6)
13872  version_type=linux
13873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13874  shlibpath_var=LD_LIBRARY_PATH
13875  shlibpath_overrides_runpath=yes
13876  ;;
13877
13878*nto* | *qnx*)
13879  version_type=qnx
13880  need_lib_prefix=no
13881  need_version=no
13882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13883  soname_spec='${libname}${release}${shared_ext}$major'
13884  shlibpath_var=LD_LIBRARY_PATH
13885  shlibpath_overrides_runpath=no
13886  hardcode_into_libs=yes
13887  dynamic_linker='ldqnx.so'
13888  ;;
13889
13890openbsd*)
13891  version_type=sunos
13892  sys_lib_dlsearch_path_spec="/usr/lib"
13893  need_lib_prefix=no
13894  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13895  case $host_os in
13896    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
13897    *)				need_version=no  ;;
13898  esac
13899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13900  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13901  shlibpath_var=LD_LIBRARY_PATH
13902  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13903    case $host_os in
13904      openbsd2.[89] | openbsd2.[89].*)
13905	shlibpath_overrides_runpath=no
13906	;;
13907      *)
13908	shlibpath_overrides_runpath=yes
13909	;;
13910      esac
13911  else
13912    shlibpath_overrides_runpath=yes
13913  fi
13914  ;;
13915
13916os2*)
13917  libname_spec='$name'
13918  shrext_cmds=".dll"
13919  need_lib_prefix=no
13920  library_names_spec='$libname${shared_ext} $libname.a'
13921  dynamic_linker='OS/2 ld.exe'
13922  shlibpath_var=LIBPATH
13923  ;;
13924
13925osf3* | osf4* | osf5*)
13926  version_type=osf
13927  need_lib_prefix=no
13928  need_version=no
13929  soname_spec='${libname}${release}${shared_ext}$major'
13930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13931  shlibpath_var=LD_LIBRARY_PATH
13932  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13933  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13934  ;;
13935
13936rdos*)
13937  dynamic_linker=no
13938  ;;
13939
13940solaris*)
13941  version_type=linux
13942  need_lib_prefix=no
13943  need_version=no
13944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13945  soname_spec='${libname}${release}${shared_ext}$major'
13946  shlibpath_var=LD_LIBRARY_PATH
13947  shlibpath_overrides_runpath=yes
13948  hardcode_into_libs=yes
13949  # ldd complains unless libraries are executable
13950  postinstall_cmds='chmod +x $lib'
13951  ;;
13952
13953sunos4*)
13954  version_type=sunos
13955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13956  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13957  shlibpath_var=LD_LIBRARY_PATH
13958  shlibpath_overrides_runpath=yes
13959  if test "$with_gnu_ld" = yes; then
13960    need_lib_prefix=no
13961  fi
13962  need_version=yes
13963  ;;
13964
13965sysv4 | sysv4.3*)
13966  version_type=linux
13967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13968  soname_spec='${libname}${release}${shared_ext}$major'
13969  shlibpath_var=LD_LIBRARY_PATH
13970  case $host_vendor in
13971    sni)
13972      shlibpath_overrides_runpath=no
13973      need_lib_prefix=no
13974      runpath_var=LD_RUN_PATH
13975      ;;
13976    siemens)
13977      need_lib_prefix=no
13978      ;;
13979    motorola)
13980      need_lib_prefix=no
13981      need_version=no
13982      shlibpath_overrides_runpath=no
13983      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13984      ;;
13985  esac
13986  ;;
13987
13988sysv4*MP*)
13989  if test -d /usr/nec ;then
13990    version_type=linux
13991    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13992    soname_spec='$libname${shared_ext}.$major'
13993    shlibpath_var=LD_LIBRARY_PATH
13994  fi
13995  ;;
13996
13997sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13998  version_type=freebsd-elf
13999  need_lib_prefix=no
14000  need_version=no
14001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14002  soname_spec='${libname}${release}${shared_ext}$major'
14003  shlibpath_var=LD_LIBRARY_PATH
14004  shlibpath_overrides_runpath=yes
14005  hardcode_into_libs=yes
14006  if test "$with_gnu_ld" = yes; then
14007    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14008  else
14009    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14010    case $host_os in
14011      sco3.2v5*)
14012        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14013	;;
14014    esac
14015  fi
14016  sys_lib_dlsearch_path_spec='/usr/lib'
14017  ;;
14018
14019tpf*)
14020  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14021  version_type=linux
14022  need_lib_prefix=no
14023  need_version=no
14024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025  shlibpath_var=LD_LIBRARY_PATH
14026  shlibpath_overrides_runpath=no
14027  hardcode_into_libs=yes
14028  ;;
14029
14030uts4*)
14031  version_type=linux
14032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14033  soname_spec='${libname}${release}${shared_ext}$major'
14034  shlibpath_var=LD_LIBRARY_PATH
14035  ;;
14036
14037*)
14038  dynamic_linker=no
14039  ;;
14040esac
14041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14042$as_echo "$dynamic_linker" >&6; }
14043test "$dynamic_linker" = no && can_build_shared=no
14044
14045variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14046if test "$GCC" = yes; then
14047  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14048fi
14049
14050if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14051  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14052fi
14053if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14054  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14055fi
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
14087
14088
14089
14090
14091
14092
14093
14094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14095$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14096hardcode_action_CXX=
14097if test -n "$hardcode_libdir_flag_spec_CXX" ||
14098   test -n "$runpath_var_CXX" ||
14099   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14100
14101  # We can hardcode non-existent directories.
14102  if test "$hardcode_direct_CXX" != no &&
14103     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14104     # have to relink, otherwise we might link with an installed library
14105     # when we should be linking with a yet-to-be-installed one
14106     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14107     test "$hardcode_minus_L_CXX" != no; then
14108    # Linking always hardcodes the temporary library directory.
14109    hardcode_action_CXX=relink
14110  else
14111    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14112    hardcode_action_CXX=immediate
14113  fi
14114else
14115  # We cannot hardcode anything, or else we can only hardcode existing
14116  # directories.
14117  hardcode_action_CXX=unsupported
14118fi
14119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14120$as_echo "$hardcode_action_CXX" >&6; }
14121
14122if test "$hardcode_action_CXX" = relink ||
14123   test "$inherit_rpath_CXX" = yes; then
14124  # Fast installation is not supported
14125  enable_fast_install=no
14126elif test "$shlibpath_overrides_runpath" = yes ||
14127     test "$enable_shared" = no; then
14128  # Fast installation is not necessary
14129  enable_fast_install=needless
14130fi
14131
14132
14133
14134
14135
14136
14137
14138  fi # test -n "$compiler"
14139
14140  CC=$lt_save_CC
14141  LDCXX=$LD
14142  LD=$lt_save_LD
14143  GCC=$lt_save_GCC
14144  with_gnu_ld=$lt_save_with_gnu_ld
14145  lt_cv_path_LDCXX=$lt_cv_path_LD
14146  lt_cv_path_LD=$lt_save_path_LD
14147  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14148  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14149fi # test "$_lt_caught_CXX_error" != yes
14150
14151ac_ext=c
14152ac_cpp='$CPP $CPPFLAGS'
14153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14155ac_compiler_gnu=$ac_cv_c_compiler_gnu
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169        ac_config_commands="$ac_config_commands libtool"
14170
14171
14172
14173
14174# Only expand once:
14175
14176
14177# Forbid libtool to hardcode RPATH, because we want to be able to specify
14178# library search directory using LD_LIBRARY_PATH
14179hardcode_into_libs=no
14180
14181
14182
14183# Determine what GCC version number to use in filesystem paths.
14184
14185  get_gcc_base_ver="cat"
14186
14187# Check whether --with-gcc-major-version-only was given.
14188if test "${with_gcc_major_version_only+set}" = set; then :
14189  withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14190        get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14191      fi
14192
14193fi
14194
14195
14196
14197
14198# Must be last
14199cat >confcache <<\_ACEOF
14200# This file is a shell script that caches the results of configure
14201# tests run on this system so they can be shared between configure
14202# scripts and configure runs, see configure's option --config-cache.
14203# It is not useful on other systems.  If it contains results you don't
14204# want to keep, you may remove or edit it.
14205#
14206# config.status only pays attention to the cache file if you give it
14207# the --recheck option to rerun configure.
14208#
14209# `ac_cv_env_foo' variables (set or unset) will be overridden when
14210# loading this file, other *unset* `ac_cv_foo' will be assigned the
14211# following values.
14212
14213_ACEOF
14214
14215# The following way of writing the cache mishandles newlines in values,
14216# but we know of no workaround that is simple, portable, and efficient.
14217# So, we kill variables containing newlines.
14218# Ultrix sh set writes to stderr and can't be redirected directly,
14219# and sets the high bit in the cache file unless we assign to the vars.
14220(
14221  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14222    eval ac_val=\$$ac_var
14223    case $ac_val in #(
14224    *${as_nl}*)
14225      case $ac_var in #(
14226      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14227$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14228      esac
14229      case $ac_var in #(
14230      _ | IFS | as_nl) ;; #(
14231      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14232      *) { eval $ac_var=; unset $ac_var;} ;;
14233      esac ;;
14234    esac
14235  done
14236
14237  (set) 2>&1 |
14238    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14239    *${as_nl}ac_space=\ *)
14240      # `set' does not quote correctly, so add quotes: double-quote
14241      # substitution turns \\\\ into \\, and sed turns \\ into \.
14242      sed -n \
14243	"s/'/'\\\\''/g;
14244	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14245      ;; #(
14246    *)
14247      # `set' quotes correctly as required by POSIX, so do not add quotes.
14248      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14249      ;;
14250    esac |
14251    sort
14252) |
14253  sed '
14254     /^ac_cv_env_/b end
14255     t clear
14256     :clear
14257     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14258     t end
14259     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14260     :end' >>confcache
14261if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14262  if test -w "$cache_file"; then
14263    test "x$cache_file" != "x/dev/null" &&
14264      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14265$as_echo "$as_me: updating cache $cache_file" >&6;}
14266    cat confcache >$cache_file
14267  else
14268    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14269$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14270  fi
14271fi
14272rm -f confcache
14273
14274test "x$prefix" = xNONE && prefix=$ac_default_prefix
14275# Let make expand exec_prefix.
14276test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14277
14278# Transform confdefs.h into DEFS.
14279# Protect against shell expansion while executing Makefile rules.
14280# Protect against Makefile macro expansion.
14281#
14282# If the first sed substitution is executed (which looks for macros that
14283# take arguments), then branch to the quote section.  Otherwise,
14284# look for a macro that doesn't take arguments.
14285ac_script='
14286:mline
14287/\\$/{
14288 N
14289 s,\\\n,,
14290 b mline
14291}
14292t clear
14293:clear
14294s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
14295t quote
14296s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
14297t quote
14298b any
14299:quote
14300s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14301s/\[/\\&/g
14302s/\]/\\&/g
14303s/\$/$$/g
14304H
14305:any
14306${
14307	g
14308	s/^\n//
14309	s/\n/ /g
14310	p
14311}
14312'
14313DEFS=`sed -n "$ac_script" confdefs.h`
14314
14315
14316ac_libobjs=
14317ac_ltlibobjs=
14318for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14319  # 1. Remove the extension, and $U if already installed.
14320  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14321  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14322  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14323  #    will be set to the directory where LIBOBJS objects are built.
14324  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14325  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14326done
14327LIBOBJS=$ac_libobjs
14328
14329LTLIBOBJS=$ac_ltlibobjs
14330
14331
14332 if test -n "$EXEEXT"; then
14333  am__EXEEXT_TRUE=
14334  am__EXEEXT_FALSE='#'
14335else
14336  am__EXEEXT_TRUE='#'
14337  am__EXEEXT_FALSE=
14338fi
14339
14340if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14341  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14342Usually this means the macro was only invoked conditionally." "$LINENO" 5
14343fi
14344if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14345  as_fn_error "conditional \"AMDEP\" was never defined.
14346Usually this means the macro was only invoked conditionally." "$LINENO" 5
14347fi
14348if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14349  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14350Usually this means the macro was only invoked conditionally." "$LINENO" 5
14351fi
14352if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14353  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14354Usually this means the macro was only invoked conditionally." "$LINENO" 5
14355fi
14356if test -z "${PLUGIN_HOST_TRUE}" && test -z "${PLUGIN_HOST_FALSE}"; then
14357  as_fn_error "conditional \"PLUGIN_HOST\" was never defined.
14358Usually this means the macro was only invoked conditionally." "$LINENO" 5
14359fi
14360
14361: ${CONFIG_STATUS=./config.status}
14362ac_write_fail=0
14363ac_clean_files_save=$ac_clean_files
14364ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14365{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14366$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14367as_write_fail=0
14368cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14369#! $SHELL
14370# Generated by $as_me.
14371# Run this file to recreate the current configuration.
14372# Compiler output produced by configure, useful for debugging
14373# configure, is in config.log if it exists.
14374
14375debug=false
14376ac_cs_recheck=false
14377ac_cs_silent=false
14378
14379SHELL=\${CONFIG_SHELL-$SHELL}
14380export SHELL
14381_ASEOF
14382cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14383## -------------------- ##
14384## M4sh Initialization. ##
14385## -------------------- ##
14386
14387# Be more Bourne compatible
14388DUALCASE=1; export DUALCASE # for MKS sh
14389if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14390  emulate sh
14391  NULLCMD=:
14392  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14393  # is contrary to our usage.  Disable this feature.
14394  alias -g '${1+"$@"}'='"$@"'
14395  setopt NO_GLOB_SUBST
14396else
14397  case `(set -o) 2>/dev/null` in #(
14398  *posix*) :
14399    set -o posix ;; #(
14400  *) :
14401     ;;
14402esac
14403fi
14404
14405
14406as_nl='
14407'
14408export as_nl
14409# Printing a long string crashes Solaris 7 /usr/bin/printf.
14410as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14411as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14412as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14413# Prefer a ksh shell builtin over an external printf program on Solaris,
14414# but without wasting forks for bash or zsh.
14415if test -z "$BASH_VERSION$ZSH_VERSION" \
14416    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14417  as_echo='print -r --'
14418  as_echo_n='print -rn --'
14419elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14420  as_echo='printf %s\n'
14421  as_echo_n='printf %s'
14422else
14423  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14424    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14425    as_echo_n='/usr/ucb/echo -n'
14426  else
14427    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14428    as_echo_n_body='eval
14429      arg=$1;
14430      case $arg in #(
14431      *"$as_nl"*)
14432	expr "X$arg" : "X\\(.*\\)$as_nl";
14433	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14434      esac;
14435      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14436    '
14437    export as_echo_n_body
14438    as_echo_n='sh -c $as_echo_n_body as_echo'
14439  fi
14440  export as_echo_body
14441  as_echo='sh -c $as_echo_body as_echo'
14442fi
14443
14444# The user is always right.
14445if test "${PATH_SEPARATOR+set}" != set; then
14446  PATH_SEPARATOR=:
14447  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14448    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14449      PATH_SEPARATOR=';'
14450  }
14451fi
14452
14453
14454# IFS
14455# We need space, tab and new line, in precisely that order.  Quoting is
14456# there to prevent editors from complaining about space-tab.
14457# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14458# splitting by setting IFS to empty value.)
14459IFS=" ""	$as_nl"
14460
14461# Find who we are.  Look in the path if we contain no directory separator.
14462case $0 in #((
14463  *[\\/]* ) as_myself=$0 ;;
14464  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14465for as_dir in $PATH
14466do
14467  IFS=$as_save_IFS
14468  test -z "$as_dir" && as_dir=.
14469    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14470  done
14471IFS=$as_save_IFS
14472
14473     ;;
14474esac
14475# We did not find ourselves, most probably we were run as `sh COMMAND'
14476# in which case we are not to be found in the path.
14477if test "x$as_myself" = x; then
14478  as_myself=$0
14479fi
14480if test ! -f "$as_myself"; then
14481  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14482  exit 1
14483fi
14484
14485# Unset variables that we do not need and which cause bugs (e.g. in
14486# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14487# suppresses any "Segmentation fault" message there.  '((' could
14488# trigger a bug in pdksh 5.2.14.
14489for as_var in BASH_ENV ENV MAIL MAILPATH
14490do eval test x\${$as_var+set} = xset \
14491  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14492done
14493PS1='$ '
14494PS2='> '
14495PS4='+ '
14496
14497# NLS nuisances.
14498LC_ALL=C
14499export LC_ALL
14500LANGUAGE=C
14501export LANGUAGE
14502
14503# CDPATH.
14504(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14505
14506
14507# as_fn_error ERROR [LINENO LOG_FD]
14508# ---------------------------------
14509# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14510# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14511# script with status $?, using 1 if that was 0.
14512as_fn_error ()
14513{
14514  as_status=$?; test $as_status -eq 0 && as_status=1
14515  if test "$3"; then
14516    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14517    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14518  fi
14519  $as_echo "$as_me: error: $1" >&2
14520  as_fn_exit $as_status
14521} # as_fn_error
14522
14523
14524# as_fn_set_status STATUS
14525# -----------------------
14526# Set $? to STATUS, without forking.
14527as_fn_set_status ()
14528{
14529  return $1
14530} # as_fn_set_status
14531
14532# as_fn_exit STATUS
14533# -----------------
14534# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14535as_fn_exit ()
14536{
14537  set +e
14538  as_fn_set_status $1
14539  exit $1
14540} # as_fn_exit
14541
14542# as_fn_unset VAR
14543# ---------------
14544# Portably unset VAR.
14545as_fn_unset ()
14546{
14547  { eval $1=; unset $1;}
14548}
14549as_unset=as_fn_unset
14550# as_fn_append VAR VALUE
14551# ----------------------
14552# Append the text in VALUE to the end of the definition contained in VAR. Take
14553# advantage of any shell optimizations that allow amortized linear growth over
14554# repeated appends, instead of the typical quadratic growth present in naive
14555# implementations.
14556if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14557  eval 'as_fn_append ()
14558  {
14559    eval $1+=\$2
14560  }'
14561else
14562  as_fn_append ()
14563  {
14564    eval $1=\$$1\$2
14565  }
14566fi # as_fn_append
14567
14568# as_fn_arith ARG...
14569# ------------------
14570# Perform arithmetic evaluation on the ARGs, and store the result in the
14571# global $as_val. Take advantage of shells that can avoid forks. The arguments
14572# must be portable across $(()) and expr.
14573if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14574  eval 'as_fn_arith ()
14575  {
14576    as_val=$(( $* ))
14577  }'
14578else
14579  as_fn_arith ()
14580  {
14581    as_val=`expr "$@" || test $? -eq 1`
14582  }
14583fi # as_fn_arith
14584
14585
14586if expr a : '\(a\)' >/dev/null 2>&1 &&
14587   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14588  as_expr=expr
14589else
14590  as_expr=false
14591fi
14592
14593if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14594  as_basename=basename
14595else
14596  as_basename=false
14597fi
14598
14599if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14600  as_dirname=dirname
14601else
14602  as_dirname=false
14603fi
14604
14605as_me=`$as_basename -- "$0" ||
14606$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14607	 X"$0" : 'X\(//\)$' \| \
14608	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14609$as_echo X/"$0" |
14610    sed '/^.*\/\([^/][^/]*\)\/*$/{
14611	    s//\1/
14612	    q
14613	  }
14614	  /^X\/\(\/\/\)$/{
14615	    s//\1/
14616	    q
14617	  }
14618	  /^X\/\(\/\).*/{
14619	    s//\1/
14620	    q
14621	  }
14622	  s/.*/./; q'`
14623
14624# Avoid depending upon Character Ranges.
14625as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14626as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14627as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14628as_cr_digits='0123456789'
14629as_cr_alnum=$as_cr_Letters$as_cr_digits
14630
14631ECHO_C= ECHO_N= ECHO_T=
14632case `echo -n x` in #(((((
14633-n*)
14634  case `echo 'xy\c'` in
14635  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14636  xy)  ECHO_C='\c';;
14637  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14638       ECHO_T='	';;
14639  esac;;
14640*)
14641  ECHO_N='-n';;
14642esac
14643
14644rm -f conf$$ conf$$.exe conf$$.file
14645if test -d conf$$.dir; then
14646  rm -f conf$$.dir/conf$$.file
14647else
14648  rm -f conf$$.dir
14649  mkdir conf$$.dir 2>/dev/null
14650fi
14651if (echo >conf$$.file) 2>/dev/null; then
14652  if ln -s conf$$.file conf$$ 2>/dev/null; then
14653    as_ln_s='ln -s'
14654    # ... but there are two gotchas:
14655    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14656    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14657    # In both cases, we have to default to `cp -p'.
14658    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14659      as_ln_s='cp -p'
14660  elif ln conf$$.file conf$$ 2>/dev/null; then
14661    as_ln_s=ln
14662  else
14663    as_ln_s='cp -p'
14664  fi
14665else
14666  as_ln_s='cp -p'
14667fi
14668rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14669rmdir conf$$.dir 2>/dev/null
14670
14671
14672# as_fn_mkdir_p
14673# -------------
14674# Create "$as_dir" as a directory, including parents if necessary.
14675as_fn_mkdir_p ()
14676{
14677
14678  case $as_dir in #(
14679  -*) as_dir=./$as_dir;;
14680  esac
14681  test -d "$as_dir" || eval $as_mkdir_p || {
14682    as_dirs=
14683    while :; do
14684      case $as_dir in #(
14685      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14686      *) as_qdir=$as_dir;;
14687      esac
14688      as_dirs="'$as_qdir' $as_dirs"
14689      as_dir=`$as_dirname -- "$as_dir" ||
14690$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14691	 X"$as_dir" : 'X\(//\)[^/]' \| \
14692	 X"$as_dir" : 'X\(//\)$' \| \
14693	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14694$as_echo X"$as_dir" |
14695    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14696	    s//\1/
14697	    q
14698	  }
14699	  /^X\(\/\/\)[^/].*/{
14700	    s//\1/
14701	    q
14702	  }
14703	  /^X\(\/\/\)$/{
14704	    s//\1/
14705	    q
14706	  }
14707	  /^X\(\/\).*/{
14708	    s//\1/
14709	    q
14710	  }
14711	  s/.*/./; q'`
14712      test -d "$as_dir" && break
14713    done
14714    test -z "$as_dirs" || eval "mkdir $as_dirs"
14715  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14716
14717
14718} # as_fn_mkdir_p
14719if mkdir -p . 2>/dev/null; then
14720  as_mkdir_p='mkdir -p "$as_dir"'
14721else
14722  test -d ./-p && rmdir ./-p
14723  as_mkdir_p=false
14724fi
14725
14726if test -x / >/dev/null 2>&1; then
14727  as_test_x='test -x'
14728else
14729  if ls -dL / >/dev/null 2>&1; then
14730    as_ls_L_option=L
14731  else
14732    as_ls_L_option=
14733  fi
14734  as_test_x='
14735    eval sh -c '\''
14736      if test -d "$1"; then
14737	test -d "$1/.";
14738      else
14739	case $1 in #(
14740	-*)set "./$1";;
14741	esac;
14742	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14743	???[sx]*):;;*)false;;esac;fi
14744    '\'' sh
14745  '
14746fi
14747as_executable_p=$as_test_x
14748
14749# Sed expression to map a string onto a valid CPP name.
14750as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14751
14752# Sed expression to map a string onto a valid variable name.
14753as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14754
14755
14756exec 6>&1
14757## ----------------------------------- ##
14758## Main body of $CONFIG_STATUS script. ##
14759## ----------------------------------- ##
14760_ASEOF
14761test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14762
14763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14764# Save the log message, to keep $0 and so on meaningful, and to
14765# report actual input values of CONFIG_FILES etc. instead of their
14766# values after options handling.
14767ac_log="
14768This file was extended by Intel MIC Offload Plugin $as_me 1.0, which was
14769generated by GNU Autoconf 2.64.  Invocation command line was
14770
14771  CONFIG_FILES    = $CONFIG_FILES
14772  CONFIG_HEADERS  = $CONFIG_HEADERS
14773  CONFIG_LINKS    = $CONFIG_LINKS
14774  CONFIG_COMMANDS = $CONFIG_COMMANDS
14775  $ $0 $@
14776
14777on `(hostname || uname -n) 2>/dev/null | sed 1q`
14778"
14779
14780_ACEOF
14781
14782case $ac_config_files in *"
14783"*) set x $ac_config_files; shift; ac_config_files=$*;;
14784esac
14785
14786
14787
14788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14789# Files that config.status was made for.
14790config_files="$ac_config_files"
14791config_commands="$ac_config_commands"
14792
14793_ACEOF
14794
14795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14796ac_cs_usage="\
14797\`$as_me' instantiates files and other configuration actions
14798from templates according to the current configuration.  Unless the files
14799and actions are specified as TAGs, all are instantiated by default.
14800
14801Usage: $0 [OPTION]... [TAG]...
14802
14803  -h, --help       print this help, then exit
14804  -V, --version    print version number and configuration settings, then exit
14805  -q, --quiet, --silent
14806                   do not print progress messages
14807  -d, --debug      don't remove temporary files
14808      --recheck    update $as_me by reconfiguring in the same conditions
14809      --file=FILE[:TEMPLATE]
14810                   instantiate the configuration file FILE
14811
14812Configuration files:
14813$config_files
14814
14815Configuration commands:
14816$config_commands
14817
14818Report bugs to the package provider."
14819
14820_ACEOF
14821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14822ac_cs_version="\\
14823Intel MIC Offload Plugin config.status 1.0
14824configured by $0, generated by GNU Autoconf 2.64,
14825  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14826
14827Copyright (C) 2009 Free Software Foundation, Inc.
14828This config.status script is free software; the Free Software Foundation
14829gives unlimited permission to copy, distribute and modify it."
14830
14831ac_pwd='$ac_pwd'
14832srcdir='$srcdir'
14833INSTALL='$INSTALL'
14834MKDIR_P='$MKDIR_P'
14835AWK='$AWK'
14836test -n "\$AWK" || AWK=awk
14837_ACEOF
14838
14839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14840# The default lists apply if the user does not specify any file.
14841ac_need_defaults=:
14842while test $# != 0
14843do
14844  case $1 in
14845  --*=*)
14846    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14847    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14848    ac_shift=:
14849    ;;
14850  *)
14851    ac_option=$1
14852    ac_optarg=$2
14853    ac_shift=shift
14854    ;;
14855  esac
14856
14857  case $ac_option in
14858  # Handling of the options.
14859  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14860    ac_cs_recheck=: ;;
14861  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14862    $as_echo "$ac_cs_version"; exit ;;
14863  --debug | --debu | --deb | --de | --d | -d )
14864    debug=: ;;
14865  --file | --fil | --fi | --f )
14866    $ac_shift
14867    case $ac_optarg in
14868    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14869    esac
14870    as_fn_append CONFIG_FILES " '$ac_optarg'"
14871    ac_need_defaults=false;;
14872  --he | --h |  --help | --hel | -h )
14873    $as_echo "$ac_cs_usage"; exit ;;
14874  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14875  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14876    ac_cs_silent=: ;;
14877
14878  # This is an error.
14879  -*) as_fn_error "unrecognized option: \`$1'
14880Try \`$0 --help' for more information." ;;
14881
14882  *) as_fn_append ac_config_targets " $1"
14883     ac_need_defaults=false ;;
14884
14885  esac
14886  shift
14887done
14888
14889ac_configure_extra_args=
14890
14891if $ac_cs_silent; then
14892  exec 6>/dev/null
14893  ac_configure_extra_args="$ac_configure_extra_args --silent"
14894fi
14895
14896_ACEOF
14897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14898if \$ac_cs_recheck; then
14899  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14900  shift
14901  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14902  CONFIG_SHELL='$SHELL'
14903  export CONFIG_SHELL
14904  exec "\$@"
14905fi
14906
14907_ACEOF
14908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14909exec 5>>config.log
14910{
14911  echo
14912  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14913## Running $as_me. ##
14914_ASBOX
14915  $as_echo "$ac_log"
14916} >&5
14917
14918_ACEOF
14919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14920#
14921# INIT-COMMANDS
14922#
14923AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14924
14925srcdir="$srcdir"
14926host="$host"
14927target="$target"
14928with_multisubdir="$with_multisubdir"
14929with_multisrctop="$with_multisrctop"
14930with_target_subdir="$with_target_subdir"
14931ac_configure_args="${multilib_arg} ${ac_configure_args}"
14932multi_basedir="$multi_basedir"
14933CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14934CC="$CC"
14935CXX="$CXX"
14936GFORTRAN="$GFORTRAN"
14937
14938
14939# The HP-UX ksh and POSIX shell print the target directory to stdout
14940# if CDPATH is set.
14941(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14942
14943sed_quote_subst='$sed_quote_subst'
14944double_quote_subst='$double_quote_subst'
14945delay_variable_subst='$delay_variable_subst'
14946macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14947macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14948enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14949enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14950pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14951enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14952SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14953ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14954host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14955host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14956host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14957build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14958build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14959build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14960SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14961Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14962GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14963EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14964FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14965LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14966NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14967LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14968max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14969ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14970exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14971lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14972lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14973lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14974reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14975reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14976OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14977deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14978file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14979AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14980AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14981STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14982RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14983old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14984old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14985old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14986lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14987CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14988CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14989compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14990GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14991lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14992lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14993lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14994lt_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"`'
14995objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14996MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14997lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14998lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14999lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15000lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15001lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15002need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15003DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15004NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15005LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15006OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15007OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15008libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15009shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15010extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15011archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15012enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15013export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15014whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15015compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15016old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15017old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15018archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15019archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15020module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15021module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15022with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15023allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15024no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15025hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15026hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15027hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15028hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15029hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15030hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15031hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15032hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15033inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15034link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15035fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15036always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15037export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15038exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15039include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15040prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15041file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15042variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15043need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15044need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15045version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15046runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15047shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15048shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15049libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15050library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15051soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15052install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15053postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15054postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15055finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15056finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15057hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15058sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15059sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15060hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15061enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15062enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15063enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15064old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15065striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15066compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15067predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15068postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15069predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15070postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15071compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15072LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15073reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15074reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15075old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15076compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15077GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15078lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15079lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15080lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15081lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15082lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15083archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15084enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15085export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15086whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15087compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15088old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15089old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15090archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15091archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15092module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15093module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15094with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15095allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15096no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15097hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15098hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15099hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15100hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15101hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15102hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15103hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15104hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15105inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15106link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15107fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15108always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15109export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15110exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15111include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15112prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15113file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15114hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15115compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15116predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15117postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15118predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15119postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15120compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15121
15122LTCC='$LTCC'
15123LTCFLAGS='$LTCFLAGS'
15124compiler='$compiler_DEFAULT'
15125
15126# A function that is used when there is no print builtin or printf.
15127func_fallback_echo ()
15128{
15129  eval 'cat <<_LTECHO_EOF
15130\$1
15131_LTECHO_EOF'
15132}
15133
15134# Quote evaled strings.
15135for var in SHELL \
15136ECHO \
15137SED \
15138GREP \
15139EGREP \
15140FGREP \
15141LD \
15142NM \
15143LN_S \
15144lt_SP2NL \
15145lt_NL2SP \
15146reload_flag \
15147OBJDUMP \
15148deplibs_check_method \
15149file_magic_cmd \
15150AR \
15151AR_FLAGS \
15152STRIP \
15153RANLIB \
15154CC \
15155CFLAGS \
15156compiler \
15157lt_cv_sys_global_symbol_pipe \
15158lt_cv_sys_global_symbol_to_cdecl \
15159lt_cv_sys_global_symbol_to_c_name_address \
15160lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15161lt_prog_compiler_no_builtin_flag \
15162lt_prog_compiler_wl \
15163lt_prog_compiler_pic \
15164lt_prog_compiler_static \
15165lt_cv_prog_compiler_c_o \
15166need_locks \
15167DSYMUTIL \
15168NMEDIT \
15169LIPO \
15170OTOOL \
15171OTOOL64 \
15172shrext_cmds \
15173export_dynamic_flag_spec \
15174whole_archive_flag_spec \
15175compiler_needs_object \
15176with_gnu_ld \
15177allow_undefined_flag \
15178no_undefined_flag \
15179hardcode_libdir_flag_spec \
15180hardcode_libdir_flag_spec_ld \
15181hardcode_libdir_separator \
15182fix_srcfile_path \
15183exclude_expsyms \
15184include_expsyms \
15185file_list_spec \
15186variables_saved_for_relink \
15187libname_spec \
15188library_names_spec \
15189soname_spec \
15190install_override_mode \
15191finish_eval \
15192old_striplib \
15193striplib \
15194compiler_lib_search_dirs \
15195predep_objects \
15196postdep_objects \
15197predeps \
15198postdeps \
15199compiler_lib_search_path \
15200LD_CXX \
15201reload_flag_CXX \
15202compiler_CXX \
15203lt_prog_compiler_no_builtin_flag_CXX \
15204lt_prog_compiler_wl_CXX \
15205lt_prog_compiler_pic_CXX \
15206lt_prog_compiler_static_CXX \
15207lt_cv_prog_compiler_c_o_CXX \
15208export_dynamic_flag_spec_CXX \
15209whole_archive_flag_spec_CXX \
15210compiler_needs_object_CXX \
15211with_gnu_ld_CXX \
15212allow_undefined_flag_CXX \
15213no_undefined_flag_CXX \
15214hardcode_libdir_flag_spec_CXX \
15215hardcode_libdir_flag_spec_ld_CXX \
15216hardcode_libdir_separator_CXX \
15217fix_srcfile_path_CXX \
15218exclude_expsyms_CXX \
15219include_expsyms_CXX \
15220file_list_spec_CXX \
15221compiler_lib_search_dirs_CXX \
15222predep_objects_CXX \
15223postdep_objects_CXX \
15224predeps_CXX \
15225postdeps_CXX \
15226compiler_lib_search_path_CXX; do
15227    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15228    *[\\\\\\\`\\"\\\$]*)
15229      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15230      ;;
15231    *)
15232      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15233      ;;
15234    esac
15235done
15236
15237# Double-quote double-evaled strings.
15238for var in reload_cmds \
15239old_postinstall_cmds \
15240old_postuninstall_cmds \
15241old_archive_cmds \
15242extract_expsyms_cmds \
15243old_archive_from_new_cmds \
15244old_archive_from_expsyms_cmds \
15245archive_cmds \
15246archive_expsym_cmds \
15247module_cmds \
15248module_expsym_cmds \
15249export_symbols_cmds \
15250prelink_cmds \
15251postinstall_cmds \
15252postuninstall_cmds \
15253finish_cmds \
15254sys_lib_search_path_spec \
15255sys_lib_dlsearch_path_spec \
15256reload_cmds_CXX \
15257old_archive_cmds_CXX \
15258old_archive_from_new_cmds_CXX \
15259old_archive_from_expsyms_cmds_CXX \
15260archive_cmds_CXX \
15261archive_expsym_cmds_CXX \
15262module_cmds_CXX \
15263module_expsym_cmds_CXX \
15264export_symbols_cmds_CXX \
15265prelink_cmds_CXX; do
15266    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15267    *[\\\\\\\`\\"\\\$]*)
15268      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15269      ;;
15270    *)
15271      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15272      ;;
15273    esac
15274done
15275
15276ac_aux_dir='$ac_aux_dir'
15277xsi_shell='$xsi_shell'
15278lt_shell_append='$lt_shell_append'
15279
15280# See if we are running on zsh, and set the options which allow our
15281# commands through without removal of \ escapes INIT.
15282if test -n "\${ZSH_VERSION+set}" ; then
15283   setopt NO_GLOB_SUBST
15284fi
15285
15286
15287    PACKAGE='$PACKAGE'
15288    VERSION='$VERSION'
15289    TIMESTAMP='$TIMESTAMP'
15290    RM='$RM'
15291    ofile='$ofile'
15292
15293
15294
15295
15296
15297
15298_ACEOF
15299
15300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15301
15302# Handling of arguments.
15303for ac_config_target in $ac_config_targets
15304do
15305  case $ac_config_target in
15306    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15307    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15308    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15309    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15310
15311  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15312  esac
15313done
15314
15315
15316# If the user did not use the arguments to specify the items to instantiate,
15317# then the envvar interface is used.  Set only those that are not.
15318# We use the long form for the default assignment because of an extremely
15319# bizarre bug on SunOS 4.1.3.
15320if $ac_need_defaults; then
15321  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15322  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15323fi
15324
15325# Have a temporary directory for convenience.  Make it in the build tree
15326# simply because there is no reason against having it here, and in addition,
15327# creating and moving files from /tmp can sometimes cause problems.
15328# Hook for its removal unless debugging.
15329# Note that there is a small window in which the directory will not be cleaned:
15330# after its creation but before its name has been assigned to `$tmp'.
15331$debug ||
15332{
15333  tmp=
15334  trap 'exit_status=$?
15335  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15336' 0
15337  trap 'as_fn_exit 1' 1 2 13 15
15338}
15339# Create a (secure) tmp directory for tmp files.
15340
15341{
15342  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15343  test -n "$tmp" && test -d "$tmp"
15344}  ||
15345{
15346  tmp=./conf$$-$RANDOM
15347  (umask 077 && mkdir "$tmp")
15348} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15349
15350# Set up the scripts for CONFIG_FILES section.
15351# No need to generate them if there are no CONFIG_FILES.
15352# This happens for instance with `./config.status config.h'.
15353if test -n "$CONFIG_FILES"; then
15354
15355
15356ac_cr=`echo X | tr X '\015'`
15357# On cygwin, bash can eat \r inside `` if the user requested igncr.
15358# But we know of no other shell where ac_cr would be empty at this
15359# point, so we can use a bashism as a fallback.
15360if test "x$ac_cr" = x; then
15361  eval ac_cr=\$\'\\r\'
15362fi
15363ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15364if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15365  ac_cs_awk_cr='\r'
15366else
15367  ac_cs_awk_cr=$ac_cr
15368fi
15369
15370echo 'BEGIN {' >"$tmp/subs1.awk" &&
15371_ACEOF
15372
15373
15374{
15375  echo "cat >conf$$subs.awk <<_ACEOF" &&
15376  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15377  echo "_ACEOF"
15378} >conf$$subs.sh ||
15379  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15380ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15381ac_delim='%!_!# '
15382for ac_last_try in false false false false false :; do
15383  . ./conf$$subs.sh ||
15384    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15385
15386  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15387  if test $ac_delim_n = $ac_delim_num; then
15388    break
15389  elif $ac_last_try; then
15390    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15391  else
15392    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15393  fi
15394done
15395rm -f conf$$subs.sh
15396
15397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15398cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15399_ACEOF
15400sed -n '
15401h
15402s/^/S["/; s/!.*/"]=/
15403p
15404g
15405s/^[^!]*!//
15406:repl
15407t repl
15408s/'"$ac_delim"'$//
15409t delim
15410:nl
15411h
15412s/\(.\{148\}\).*/\1/
15413t more1
15414s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15415p
15416n
15417b repl
15418:more1
15419s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15420p
15421g
15422s/.\{148\}//
15423t nl
15424:delim
15425h
15426s/\(.\{148\}\).*/\1/
15427t more2
15428s/["\\]/\\&/g; s/^/"/; s/$/"/
15429p
15430b
15431:more2
15432s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15433p
15434g
15435s/.\{148\}//
15436t delim
15437' <conf$$subs.awk | sed '
15438/^[^""]/{
15439  N
15440  s/\n//
15441}
15442' >>$CONFIG_STATUS || ac_write_fail=1
15443rm -f conf$$subs.awk
15444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15445_ACAWK
15446cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15447  for (key in S) S_is_set[key] = 1
15448  FS = ""
15449
15450}
15451{
15452  line = $ 0
15453  nfields = split(line, field, "@")
15454  substed = 0
15455  len = length(field[1])
15456  for (i = 2; i < nfields; i++) {
15457    key = field[i]
15458    keylen = length(key)
15459    if (S_is_set[key]) {
15460      value = S[key]
15461      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15462      len += length(value) + length(field[++i])
15463      substed = 1
15464    } else
15465      len += 1 + keylen
15466  }
15467
15468  print line
15469}
15470
15471_ACAWK
15472_ACEOF
15473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15474if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15475  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15476else
15477  cat
15478fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15479  || as_fn_error "could not setup config files machinery" "$LINENO" 5
15480_ACEOF
15481
15482# VPATH may cause trouble with some makes, so we remove $(srcdir),
15483# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15484# trailing colons and then remove the whole line if VPATH becomes empty
15485# (actually we leave an empty line to preserve line numbers).
15486if test "x$srcdir" = x.; then
15487  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15488s/:*\$(srcdir):*/:/
15489s/:*\${srcdir}:*/:/
15490s/:*@srcdir@:*/:/
15491s/^\([^=]*=[	 ]*\):*/\1/
15492s/:*$//
15493s/^[^=]*=[	 ]*$//
15494}'
15495fi
15496
15497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15498fi # test -n "$CONFIG_FILES"
15499
15500
15501eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
15502shift
15503for ac_tag
15504do
15505  case $ac_tag in
15506  :[FHLC]) ac_mode=$ac_tag; continue;;
15507  esac
15508  case $ac_mode$ac_tag in
15509  :[FHL]*:*);;
15510  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15511  :[FH]-) ac_tag=-:-;;
15512  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15513  esac
15514  ac_save_IFS=$IFS
15515  IFS=:
15516  set x $ac_tag
15517  IFS=$ac_save_IFS
15518  shift
15519  ac_file=$1
15520  shift
15521
15522  case $ac_mode in
15523  :L) ac_source=$1;;
15524  :[FH])
15525    ac_file_inputs=
15526    for ac_f
15527    do
15528      case $ac_f in
15529      -) ac_f="$tmp/stdin";;
15530      *) # Look for the file first in the build tree, then in the source tree
15531	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15532	 # because $ac_f cannot contain `:'.
15533	 test -f "$ac_f" ||
15534	   case $ac_f in
15535	   [\\/$]*) false;;
15536	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15537	   esac ||
15538	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15539      esac
15540      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15541      as_fn_append ac_file_inputs " '$ac_f'"
15542    done
15543
15544    # Let's still pretend it is `configure' which instantiates (i.e., don't
15545    # use $as_me), people would be surprised to read:
15546    #    /* config.h.  Generated by config.status.  */
15547    configure_input='Generated from '`
15548	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15549	`' by configure.'
15550    if test x"$ac_file" != x-; then
15551      configure_input="$ac_file.  $configure_input"
15552      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15553$as_echo "$as_me: creating $ac_file" >&6;}
15554    fi
15555    # Neutralize special characters interpreted by sed in replacement strings.
15556    case $configure_input in #(
15557    *\&* | *\|* | *\\* )
15558       ac_sed_conf_input=`$as_echo "$configure_input" |
15559       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15560    *) ac_sed_conf_input=$configure_input;;
15561    esac
15562
15563    case $ac_tag in
15564    *:-:* | *:-) cat >"$tmp/stdin" \
15565      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15566    esac
15567    ;;
15568  esac
15569
15570  ac_dir=`$as_dirname -- "$ac_file" ||
15571$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15572	 X"$ac_file" : 'X\(//\)[^/]' \| \
15573	 X"$ac_file" : 'X\(//\)$' \| \
15574	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15575$as_echo X"$ac_file" |
15576    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15577	    s//\1/
15578	    q
15579	  }
15580	  /^X\(\/\/\)[^/].*/{
15581	    s//\1/
15582	    q
15583	  }
15584	  /^X\(\/\/\)$/{
15585	    s//\1/
15586	    q
15587	  }
15588	  /^X\(\/\).*/{
15589	    s//\1/
15590	    q
15591	  }
15592	  s/.*/./; q'`
15593  as_dir="$ac_dir"; as_fn_mkdir_p
15594  ac_builddir=.
15595
15596case "$ac_dir" in
15597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15598*)
15599  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15600  # A ".." for each directory in $ac_dir_suffix.
15601  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15602  case $ac_top_builddir_sub in
15603  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15604  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15605  esac ;;
15606esac
15607ac_abs_top_builddir=$ac_pwd
15608ac_abs_builddir=$ac_pwd$ac_dir_suffix
15609# for backward compatibility:
15610ac_top_builddir=$ac_top_build_prefix
15611
15612case $srcdir in
15613  .)  # We are building in place.
15614    ac_srcdir=.
15615    ac_top_srcdir=$ac_top_builddir_sub
15616    ac_abs_top_srcdir=$ac_pwd ;;
15617  [\\/]* | ?:[\\/]* )  # Absolute name.
15618    ac_srcdir=$srcdir$ac_dir_suffix;
15619    ac_top_srcdir=$srcdir
15620    ac_abs_top_srcdir=$srcdir ;;
15621  *) # Relative name.
15622    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15623    ac_top_srcdir=$ac_top_build_prefix$srcdir
15624    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15625esac
15626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15627
15628
15629  case $ac_mode in
15630  :F)
15631  #
15632  # CONFIG_FILE
15633  #
15634
15635  case $INSTALL in
15636  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15637  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15638  esac
15639  ac_MKDIR_P=$MKDIR_P
15640  case $MKDIR_P in
15641  [\\/$]* | ?:[\\/]* ) ;;
15642  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15643  esac
15644_ACEOF
15645
15646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15647# If the template does not know about datarootdir, expand it.
15648# FIXME: This hack should be removed a few years after 2.60.
15649ac_datarootdir_hack=; ac_datarootdir_seen=
15650ac_sed_dataroot='
15651/datarootdir/ {
15652  p
15653  q
15654}
15655/@datadir@/p
15656/@docdir@/p
15657/@infodir@/p
15658/@localedir@/p
15659/@mandir@/p'
15660case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15661*datarootdir*) ac_datarootdir_seen=yes;;
15662*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15663  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15664$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15665_ACEOF
15666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15667  ac_datarootdir_hack='
15668  s&@datadir@&$datadir&g
15669  s&@docdir@&$docdir&g
15670  s&@infodir@&$infodir&g
15671  s&@localedir@&$localedir&g
15672  s&@mandir@&$mandir&g
15673  s&\\\${datarootdir}&$datarootdir&g' ;;
15674esac
15675_ACEOF
15676
15677# Neutralize VPATH when `$srcdir' = `.'.
15678# Shell code in configure.ac might set extrasub.
15679# FIXME: do we really want to maintain this feature?
15680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15681ac_sed_extra="$ac_vpsub
15682$extrasub
15683_ACEOF
15684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15685:t
15686/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15687s|@configure_input@|$ac_sed_conf_input|;t t
15688s&@top_builddir@&$ac_top_builddir_sub&;t t
15689s&@top_build_prefix@&$ac_top_build_prefix&;t t
15690s&@srcdir@&$ac_srcdir&;t t
15691s&@abs_srcdir@&$ac_abs_srcdir&;t t
15692s&@top_srcdir@&$ac_top_srcdir&;t t
15693s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15694s&@builddir@&$ac_builddir&;t t
15695s&@abs_builddir@&$ac_abs_builddir&;t t
15696s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15697s&@INSTALL@&$ac_INSTALL&;t t
15698s&@MKDIR_P@&$ac_MKDIR_P&;t t
15699$ac_datarootdir_hack
15700"
15701eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15702  || as_fn_error "could not create $ac_file" "$LINENO" 5
15703
15704test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15705  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15706  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15707  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15708which seems to be undefined.  Please make sure it is defined." >&5
15709$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15710which seems to be undefined.  Please make sure it is defined." >&2;}
15711
15712  rm -f "$tmp/stdin"
15713  case $ac_file in
15714  -) cat "$tmp/out" && rm -f "$tmp/out";;
15715  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15716  esac \
15717  || as_fn_error "could not create $ac_file" "$LINENO" 5
15718 ;;
15719
15720
15721  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15722$as_echo "$as_me: executing $ac_file commands" >&6;}
15723 ;;
15724  esac
15725
15726
15727  case $ac_file$ac_mode in
15728    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15729  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15730  # are listed without --file.  Let's play safe and only enable the eval
15731  # if we detect the quoting.
15732  case $CONFIG_FILES in
15733  *\'*) eval set x "$CONFIG_FILES" ;;
15734  *)   set x $CONFIG_FILES ;;
15735  esac
15736  shift
15737  for mf
15738  do
15739    # Strip MF so we end up with the name of the file.
15740    mf=`echo "$mf" | sed -e 's/:.*$//'`
15741    # Check whether this is an Automake generated Makefile or not.
15742    # We used to match only the files named `Makefile.in', but
15743    # some people rename them; so instead we look at the file content.
15744    # Grep'ing the first line is not enough: some people post-process
15745    # each Makefile.in and add a new line on top of each file to say so.
15746    # Grep'ing the whole file is not good either: AIX grep has a line
15747    # limit of 2048, but all sed's we know have understand at least 4000.
15748    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15749      dirpart=`$as_dirname -- "$mf" ||
15750$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15751	 X"$mf" : 'X\(//\)[^/]' \| \
15752	 X"$mf" : 'X\(//\)$' \| \
15753	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15754$as_echo X"$mf" |
15755    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15756	    s//\1/
15757	    q
15758	  }
15759	  /^X\(\/\/\)[^/].*/{
15760	    s//\1/
15761	    q
15762	  }
15763	  /^X\(\/\/\)$/{
15764	    s//\1/
15765	    q
15766	  }
15767	  /^X\(\/\).*/{
15768	    s//\1/
15769	    q
15770	  }
15771	  s/.*/./; q'`
15772    else
15773      continue
15774    fi
15775    # Extract the definition of DEPDIR, am__include, and am__quote
15776    # from the Makefile without running `make'.
15777    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15778    test -z "$DEPDIR" && continue
15779    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15780    test -z "am__include" && continue
15781    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15782    # When using ansi2knr, U may be empty or an underscore; expand it
15783    U=`sed -n 's/^U = //p' < "$mf"`
15784    # Find all dependency output files, they are included files with
15785    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15786    # simplest approach to changing $(DEPDIR) to its actual value in the
15787    # expansion.
15788    for file in `sed -n "
15789      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15790	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15791      # Make sure the directory exists.
15792      test -f "$dirpart/$file" && continue
15793      fdir=`$as_dirname -- "$file" ||
15794$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15795	 X"$file" : 'X\(//\)[^/]' \| \
15796	 X"$file" : 'X\(//\)$' \| \
15797	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15798$as_echo X"$file" |
15799    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15800	    s//\1/
15801	    q
15802	  }
15803	  /^X\(\/\/\)[^/].*/{
15804	    s//\1/
15805	    q
15806	  }
15807	  /^X\(\/\/\)$/{
15808	    s//\1/
15809	    q
15810	  }
15811	  /^X\(\/\).*/{
15812	    s//\1/
15813	    q
15814	  }
15815	  s/.*/./; q'`
15816      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15817      # echo "creating $dirpart/$file"
15818      echo '# dummy' > "$dirpart/$file"
15819    done
15820  done
15821}
15822 ;;
15823    "default-1":C)
15824# Only add multilib support code if we just rebuilt the top-level
15825# Makefile.
15826case " $CONFIG_FILES " in
15827 *" Makefile "*)
15828   ac_file=Makefile . ${multi_basedir}/config-ml.in
15829   ;;
15830esac ;;
15831    "libtool":C)
15832
15833    # See if we are running on zsh, and set the options which allow our
15834    # commands through without removal of \ escapes.
15835    if test -n "${ZSH_VERSION+set}" ; then
15836      setopt NO_GLOB_SUBST
15837    fi
15838
15839    cfgfile="${ofile}T"
15840    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15841    $RM "$cfgfile"
15842
15843    cat <<_LT_EOF >> "$cfgfile"
15844#! $SHELL
15845
15846# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15847# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15848# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15849# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15850#
15851#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15852#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15853#   Written by Gordon Matzigkeit, 1996
15854#
15855#   This file is part of GNU Libtool.
15856#
15857# GNU Libtool is free software; you can redistribute it and/or
15858# modify it under the terms of the GNU General Public License as
15859# published by the Free Software Foundation; either version 2 of
15860# the License, or (at your option) any later version.
15861#
15862# As a special exception to the GNU General Public License,
15863# if you distribute this file as part of a program or library that
15864# is built using GNU Libtool, you may include this file under the
15865# same distribution terms that you use for the rest of that program.
15866#
15867# GNU Libtool is distributed in the hope that it will be useful,
15868# but WITHOUT ANY WARRANTY; without even the implied warranty of
15869# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15870# GNU General Public License for more details.
15871#
15872# You should have received a copy of the GNU General Public License
15873# along with GNU Libtool; see the file COPYING.  If not, a copy
15874# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15875# obtained by writing to the Free Software Foundation, Inc.,
15876# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15877
15878
15879# The names of the tagged configurations supported by this script.
15880available_tags="CXX "
15881
15882# ### BEGIN LIBTOOL CONFIG
15883
15884# Which release of libtool.m4 was used?
15885macro_version=$macro_version
15886macro_revision=$macro_revision
15887
15888# Whether or not to build shared libraries.
15889build_libtool_libs=$enable_shared
15890
15891# Whether or not to build static libraries.
15892build_old_libs=$enable_static
15893
15894# What type of objects to build.
15895pic_mode=$pic_mode
15896
15897# Whether or not to optimize for fast installation.
15898fast_install=$enable_fast_install
15899
15900# Shell to use when invoking shell scripts.
15901SHELL=$lt_SHELL
15902
15903# An echo program that protects backslashes.
15904ECHO=$lt_ECHO
15905
15906# The host system.
15907host_alias=$host_alias
15908host=$host
15909host_os=$host_os
15910
15911# The build system.
15912build_alias=$build_alias
15913build=$build
15914build_os=$build_os
15915
15916# A sed program that does not truncate output.
15917SED=$lt_SED
15918
15919# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15920Xsed="\$SED -e 1s/^X//"
15921
15922# A grep program that handles long lines.
15923GREP=$lt_GREP
15924
15925# An ERE matcher.
15926EGREP=$lt_EGREP
15927
15928# A literal string matcher.
15929FGREP=$lt_FGREP
15930
15931# A BSD- or MS-compatible name lister.
15932NM=$lt_NM
15933
15934# Whether we need soft or hard links.
15935LN_S=$lt_LN_S
15936
15937# What is the maximum length of a command?
15938max_cmd_len=$max_cmd_len
15939
15940# Object file suffix (normally "o").
15941objext=$ac_objext
15942
15943# Executable file suffix (normally "").
15944exeext=$exeext
15945
15946# whether the shell understands "unset".
15947lt_unset=$lt_unset
15948
15949# turn spaces into newlines.
15950SP2NL=$lt_lt_SP2NL
15951
15952# turn newlines into spaces.
15953NL2SP=$lt_lt_NL2SP
15954
15955# An object symbol dumper.
15956OBJDUMP=$lt_OBJDUMP
15957
15958# Method to check whether dependent libraries are shared objects.
15959deplibs_check_method=$lt_deplibs_check_method
15960
15961# Command to use when deplibs_check_method == "file_magic".
15962file_magic_cmd=$lt_file_magic_cmd
15963
15964# The archiver.
15965AR=$lt_AR
15966AR_FLAGS=$lt_AR_FLAGS
15967
15968# A symbol stripping program.
15969STRIP=$lt_STRIP
15970
15971# Commands used to install an old-style archive.
15972RANLIB=$lt_RANLIB
15973old_postinstall_cmds=$lt_old_postinstall_cmds
15974old_postuninstall_cmds=$lt_old_postuninstall_cmds
15975
15976# Whether to use a lock for old archive extraction.
15977lock_old_archive_extraction=$lock_old_archive_extraction
15978
15979# A C compiler.
15980LTCC=$lt_CC
15981
15982# LTCC compiler flags.
15983LTCFLAGS=$lt_CFLAGS
15984
15985# Take the output of nm and produce a listing of raw symbols and C names.
15986global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15987
15988# Transform the output of nm in a proper C declaration.
15989global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15990
15991# Transform the output of nm in a C name address pair.
15992global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15993
15994# Transform the output of nm in a C name address pair when lib prefix is needed.
15995global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15996
15997# The name of the directory that contains temporary libtool files.
15998objdir=$objdir
15999
16000# Used to examine libraries when file_magic_cmd begins with "file".
16001MAGIC_CMD=$MAGIC_CMD
16002
16003# Must we lock files when doing compilation?
16004need_locks=$lt_need_locks
16005
16006# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16007DSYMUTIL=$lt_DSYMUTIL
16008
16009# Tool to change global to local symbols on Mac OS X.
16010NMEDIT=$lt_NMEDIT
16011
16012# Tool to manipulate fat objects and archives on Mac OS X.
16013LIPO=$lt_LIPO
16014
16015# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16016OTOOL=$lt_OTOOL
16017
16018# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16019OTOOL64=$lt_OTOOL64
16020
16021# Old archive suffix (normally "a").
16022libext=$libext
16023
16024# Shared library suffix (normally ".so").
16025shrext_cmds=$lt_shrext_cmds
16026
16027# The commands to extract the exported symbol list from a shared archive.
16028extract_expsyms_cmds=$lt_extract_expsyms_cmds
16029
16030# Variables whose values should be saved in libtool wrapper scripts and
16031# restored at link time.
16032variables_saved_for_relink=$lt_variables_saved_for_relink
16033
16034# Do we need the "lib" prefix for modules?
16035need_lib_prefix=$need_lib_prefix
16036
16037# Do we need a version for libraries?
16038need_version=$need_version
16039
16040# Library versioning type.
16041version_type=$version_type
16042
16043# Shared library runtime path variable.
16044runpath_var=$runpath_var
16045
16046# Shared library path variable.
16047shlibpath_var=$shlibpath_var
16048
16049# Is shlibpath searched before the hard-coded library search path?
16050shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16051
16052# Format of library name prefix.
16053libname_spec=$lt_libname_spec
16054
16055# List of archive names.  First name is the real one, the rest are links.
16056# The last name is the one that the linker finds with -lNAME
16057library_names_spec=$lt_library_names_spec
16058
16059# The coded name of the library, if different from the real name.
16060soname_spec=$lt_soname_spec
16061
16062# Permission mode override for installation of shared libraries.
16063install_override_mode=$lt_install_override_mode
16064
16065# Command to use after installation of a shared archive.
16066postinstall_cmds=$lt_postinstall_cmds
16067
16068# Command to use after uninstallation of a shared archive.
16069postuninstall_cmds=$lt_postuninstall_cmds
16070
16071# Commands used to finish a libtool library installation in a directory.
16072finish_cmds=$lt_finish_cmds
16073
16074# As "finish_cmds", except a single script fragment to be evaled but
16075# not shown.
16076finish_eval=$lt_finish_eval
16077
16078# Whether we should hardcode library paths into libraries.
16079hardcode_into_libs=$hardcode_into_libs
16080
16081# Compile-time system search path for libraries.
16082sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16083
16084# Run-time system search path for libraries.
16085sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16086
16087# Whether dlopen is supported.
16088dlopen_support=$enable_dlopen
16089
16090# Whether dlopen of programs is supported.
16091dlopen_self=$enable_dlopen_self
16092
16093# Whether dlopen of statically linked programs is supported.
16094dlopen_self_static=$enable_dlopen_self_static
16095
16096# Commands to strip libraries.
16097old_striplib=$lt_old_striplib
16098striplib=$lt_striplib
16099
16100
16101# The linker used to build libraries.
16102LD=$lt_LD
16103
16104# How to create reloadable object files.
16105reload_flag=$lt_reload_flag
16106reload_cmds=$lt_reload_cmds
16107
16108# Commands used to build an old-style archive.
16109old_archive_cmds=$lt_old_archive_cmds
16110
16111# A language specific compiler.
16112CC=$lt_compiler
16113
16114# Is the compiler the GNU compiler?
16115with_gcc=$GCC
16116
16117# Compiler flag to turn off builtin functions.
16118no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16119
16120# How to pass a linker flag through the compiler.
16121wl=$lt_lt_prog_compiler_wl
16122
16123# Additional compiler flags for building library objects.
16124pic_flag=$lt_lt_prog_compiler_pic
16125
16126# Compiler flag to prevent dynamic linking.
16127link_static_flag=$lt_lt_prog_compiler_static
16128
16129# Does compiler simultaneously support -c and -o options?
16130compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16131
16132# Whether or not to add -lc for building shared libraries.
16133build_libtool_need_lc=$archive_cmds_need_lc
16134
16135# Whether or not to disallow shared libs when runtime libs are static.
16136allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16137
16138# Compiler flag to allow reflexive dlopens.
16139export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16140
16141# Compiler flag to generate shared objects directly from archives.
16142whole_archive_flag_spec=$lt_whole_archive_flag_spec
16143
16144# Whether the compiler copes with passing no objects directly.
16145compiler_needs_object=$lt_compiler_needs_object
16146
16147# Create an old-style archive from a shared archive.
16148old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16149
16150# Create a temporary old-style archive to link instead of a shared archive.
16151old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16152
16153# Commands used to build a shared archive.
16154archive_cmds=$lt_archive_cmds
16155archive_expsym_cmds=$lt_archive_expsym_cmds
16156
16157# Commands used to build a loadable module if different from building
16158# a shared archive.
16159module_cmds=$lt_module_cmds
16160module_expsym_cmds=$lt_module_expsym_cmds
16161
16162# Whether we are building with GNU ld or not.
16163with_gnu_ld=$lt_with_gnu_ld
16164
16165# Flag that allows shared libraries with undefined symbols to be built.
16166allow_undefined_flag=$lt_allow_undefined_flag
16167
16168# Flag that enforces no undefined symbols.
16169no_undefined_flag=$lt_no_undefined_flag
16170
16171# Flag to hardcode \$libdir into a binary during linking.
16172# This must work even if \$libdir does not exist
16173hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16174
16175# If ld is used when linking, flag to hardcode \$libdir into a binary
16176# during linking.  This must work even if \$libdir does not exist.
16177hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16178
16179# Whether we need a single "-rpath" flag with a separated argument.
16180hardcode_libdir_separator=$lt_hardcode_libdir_separator
16181
16182# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16183# DIR into the resulting binary.
16184hardcode_direct=$hardcode_direct
16185
16186# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16187# DIR into the resulting binary and the resulting library dependency is
16188# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16189# library is relocated.
16190hardcode_direct_absolute=$hardcode_direct_absolute
16191
16192# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16193# into the resulting binary.
16194hardcode_minus_L=$hardcode_minus_L
16195
16196# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16197# into the resulting binary.
16198hardcode_shlibpath_var=$hardcode_shlibpath_var
16199
16200# Set to "yes" if building a shared library automatically hardcodes DIR
16201# into the library and all subsequent libraries and executables linked
16202# against it.
16203hardcode_automatic=$hardcode_automatic
16204
16205# Set to yes if linker adds runtime paths of dependent libraries
16206# to runtime path list.
16207inherit_rpath=$inherit_rpath
16208
16209# Whether libtool must link a program against all its dependency libraries.
16210link_all_deplibs=$link_all_deplibs
16211
16212# Fix the shell variable \$srcfile for the compiler.
16213fix_srcfile_path=$lt_fix_srcfile_path
16214
16215# Set to "yes" if exported symbols are required.
16216always_export_symbols=$always_export_symbols
16217
16218# The commands to list exported symbols.
16219export_symbols_cmds=$lt_export_symbols_cmds
16220
16221# Symbols that should not be listed in the preloaded symbols.
16222exclude_expsyms=$lt_exclude_expsyms
16223
16224# Symbols that must always be exported.
16225include_expsyms=$lt_include_expsyms
16226
16227# Commands necessary for linking programs (against libraries) with templates.
16228prelink_cmds=$lt_prelink_cmds
16229
16230# Specify filename containing input files.
16231file_list_spec=$lt_file_list_spec
16232
16233# How to hardcode a shared library path into an executable.
16234hardcode_action=$hardcode_action
16235
16236# The directories searched by this compiler when creating a shared library.
16237compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16238
16239# Dependencies to place before and after the objects being linked to
16240# create a shared library.
16241predep_objects=$lt_predep_objects
16242postdep_objects=$lt_postdep_objects
16243predeps=$lt_predeps
16244postdeps=$lt_postdeps
16245
16246# The library search path used internally by the compiler when linking
16247# a shared library.
16248compiler_lib_search_path=$lt_compiler_lib_search_path
16249
16250# ### END LIBTOOL CONFIG
16251
16252_LT_EOF
16253
16254  case $host_os in
16255  aix3*)
16256    cat <<\_LT_EOF >> "$cfgfile"
16257# AIX sometimes has problems with the GCC collect2 program.  For some
16258# reason, if we set the COLLECT_NAMES environment variable, the problems
16259# vanish in a puff of smoke.
16260if test "X${COLLECT_NAMES+set}" != Xset; then
16261  COLLECT_NAMES=
16262  export COLLECT_NAMES
16263fi
16264_LT_EOF
16265    ;;
16266  esac
16267
16268
16269ltmain="$ac_aux_dir/ltmain.sh"
16270
16271
16272  # We use sed instead of cat because bash on DJGPP gets confused if
16273  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16274  # text mode, it properly converts lines to CR/LF.  This bash problem
16275  # is reportedly fixed, but why not run on old versions too?
16276  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16277    || (rm -f "$cfgfile"; exit 1)
16278
16279  case $xsi_shell in
16280  yes)
16281    cat << \_LT_EOF >> "$cfgfile"
16282
16283# func_dirname file append nondir_replacement
16284# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16285# otherwise set result to NONDIR_REPLACEMENT.
16286func_dirname ()
16287{
16288  case ${1} in
16289    */*) func_dirname_result="${1%/*}${2}" ;;
16290    *  ) func_dirname_result="${3}" ;;
16291  esac
16292}
16293
16294# func_basename file
16295func_basename ()
16296{
16297  func_basename_result="${1##*/}"
16298}
16299
16300# func_dirname_and_basename file append nondir_replacement
16301# perform func_basename and func_dirname in a single function
16302# call:
16303#   dirname:  Compute the dirname of FILE.  If nonempty,
16304#             add APPEND to the result, otherwise set result
16305#             to NONDIR_REPLACEMENT.
16306#             value returned in "$func_dirname_result"
16307#   basename: Compute filename of FILE.
16308#             value retuned in "$func_basename_result"
16309# Implementation must be kept synchronized with func_dirname
16310# and func_basename. For efficiency, we do not delegate to
16311# those functions but instead duplicate the functionality here.
16312func_dirname_and_basename ()
16313{
16314  case ${1} in
16315    */*) func_dirname_result="${1%/*}${2}" ;;
16316    *  ) func_dirname_result="${3}" ;;
16317  esac
16318  func_basename_result="${1##*/}"
16319}
16320
16321# func_stripname prefix suffix name
16322# strip PREFIX and SUFFIX off of NAME.
16323# PREFIX and SUFFIX must not contain globbing or regex special
16324# characters, hashes, percent signs, but SUFFIX may contain a leading
16325# dot (in which case that matches only a dot).
16326func_stripname ()
16327{
16328  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16329  # positional parameters, so assign one to ordinary parameter first.
16330  func_stripname_result=${3}
16331  func_stripname_result=${func_stripname_result#"${1}"}
16332  func_stripname_result=${func_stripname_result%"${2}"}
16333}
16334
16335# func_opt_split
16336func_opt_split ()
16337{
16338  func_opt_split_opt=${1%%=*}
16339  func_opt_split_arg=${1#*=}
16340}
16341
16342# func_lo2o object
16343func_lo2o ()
16344{
16345  case ${1} in
16346    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16347    *)    func_lo2o_result=${1} ;;
16348  esac
16349}
16350
16351# func_xform libobj-or-source
16352func_xform ()
16353{
16354  func_xform_result=${1%.*}.lo
16355}
16356
16357# func_arith arithmetic-term...
16358func_arith ()
16359{
16360  func_arith_result=$(( $* ))
16361}
16362
16363# func_len string
16364# STRING may not start with a hyphen.
16365func_len ()
16366{
16367  func_len_result=${#1}
16368}
16369
16370_LT_EOF
16371    ;;
16372  *) # Bourne compatible functions.
16373    cat << \_LT_EOF >> "$cfgfile"
16374
16375# func_dirname file append nondir_replacement
16376# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16377# otherwise set result to NONDIR_REPLACEMENT.
16378func_dirname ()
16379{
16380  # Extract subdirectory from the argument.
16381  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16382  if test "X$func_dirname_result" = "X${1}"; then
16383    func_dirname_result="${3}"
16384  else
16385    func_dirname_result="$func_dirname_result${2}"
16386  fi
16387}
16388
16389# func_basename file
16390func_basename ()
16391{
16392  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16393}
16394
16395
16396# func_stripname prefix suffix name
16397# strip PREFIX and SUFFIX off of NAME.
16398# PREFIX and SUFFIX must not contain globbing or regex special
16399# characters, hashes, percent signs, but SUFFIX may contain a leading
16400# dot (in which case that matches only a dot).
16401# func_strip_suffix prefix name
16402func_stripname ()
16403{
16404  case ${2} in
16405    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16406    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16407  esac
16408}
16409
16410# sed scripts:
16411my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16412my_sed_long_arg='1s/^-[^=]*=//'
16413
16414# func_opt_split
16415func_opt_split ()
16416{
16417  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16418  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16419}
16420
16421# func_lo2o object
16422func_lo2o ()
16423{
16424  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16425}
16426
16427# func_xform libobj-or-source
16428func_xform ()
16429{
16430  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16431}
16432
16433# func_arith arithmetic-term...
16434func_arith ()
16435{
16436  func_arith_result=`expr "$@"`
16437}
16438
16439# func_len string
16440# STRING may not start with a hyphen.
16441func_len ()
16442{
16443  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16444}
16445
16446_LT_EOF
16447esac
16448
16449case $lt_shell_append in
16450  yes)
16451    cat << \_LT_EOF >> "$cfgfile"
16452
16453# func_append var value
16454# Append VALUE to the end of shell variable VAR.
16455func_append ()
16456{
16457  eval "$1+=\$2"
16458}
16459_LT_EOF
16460    ;;
16461  *)
16462    cat << \_LT_EOF >> "$cfgfile"
16463
16464# func_append var value
16465# Append VALUE to the end of shell variable VAR.
16466func_append ()
16467{
16468  eval "$1=\$$1\$2"
16469}
16470
16471_LT_EOF
16472    ;;
16473  esac
16474
16475
16476  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16477    || (rm -f "$cfgfile"; exit 1)
16478
16479  mv -f "$cfgfile" "$ofile" ||
16480    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16481  chmod +x "$ofile"
16482
16483
16484    cat <<_LT_EOF >> "$ofile"
16485
16486# ### BEGIN LIBTOOL TAG CONFIG: CXX
16487
16488# The linker used to build libraries.
16489LD=$lt_LD_CXX
16490
16491# How to create reloadable object files.
16492reload_flag=$lt_reload_flag_CXX
16493reload_cmds=$lt_reload_cmds_CXX
16494
16495# Commands used to build an old-style archive.
16496old_archive_cmds=$lt_old_archive_cmds_CXX
16497
16498# A language specific compiler.
16499CC=$lt_compiler_CXX
16500
16501# Is the compiler the GNU compiler?
16502with_gcc=$GCC_CXX
16503
16504# Compiler flag to turn off builtin functions.
16505no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16506
16507# How to pass a linker flag through the compiler.
16508wl=$lt_lt_prog_compiler_wl_CXX
16509
16510# Additional compiler flags for building library objects.
16511pic_flag=$lt_lt_prog_compiler_pic_CXX
16512
16513# Compiler flag to prevent dynamic linking.
16514link_static_flag=$lt_lt_prog_compiler_static_CXX
16515
16516# Does compiler simultaneously support -c and -o options?
16517compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16518
16519# Whether or not to add -lc for building shared libraries.
16520build_libtool_need_lc=$archive_cmds_need_lc_CXX
16521
16522# Whether or not to disallow shared libs when runtime libs are static.
16523allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16524
16525# Compiler flag to allow reflexive dlopens.
16526export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16527
16528# Compiler flag to generate shared objects directly from archives.
16529whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16530
16531# Whether the compiler copes with passing no objects directly.
16532compiler_needs_object=$lt_compiler_needs_object_CXX
16533
16534# Create an old-style archive from a shared archive.
16535old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16536
16537# Create a temporary old-style archive to link instead of a shared archive.
16538old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16539
16540# Commands used to build a shared archive.
16541archive_cmds=$lt_archive_cmds_CXX
16542archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16543
16544# Commands used to build a loadable module if different from building
16545# a shared archive.
16546module_cmds=$lt_module_cmds_CXX
16547module_expsym_cmds=$lt_module_expsym_cmds_CXX
16548
16549# Whether we are building with GNU ld or not.
16550with_gnu_ld=$lt_with_gnu_ld_CXX
16551
16552# Flag that allows shared libraries with undefined symbols to be built.
16553allow_undefined_flag=$lt_allow_undefined_flag_CXX
16554
16555# Flag that enforces no undefined symbols.
16556no_undefined_flag=$lt_no_undefined_flag_CXX
16557
16558# Flag to hardcode \$libdir into a binary during linking.
16559# This must work even if \$libdir does not exist
16560hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16561
16562# If ld is used when linking, flag to hardcode \$libdir into a binary
16563# during linking.  This must work even if \$libdir does not exist.
16564hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16565
16566# Whether we need a single "-rpath" flag with a separated argument.
16567hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16568
16569# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16570# DIR into the resulting binary.
16571hardcode_direct=$hardcode_direct_CXX
16572
16573# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16574# DIR into the resulting binary and the resulting library dependency is
16575# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16576# library is relocated.
16577hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16578
16579# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16580# into the resulting binary.
16581hardcode_minus_L=$hardcode_minus_L_CXX
16582
16583# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16584# into the resulting binary.
16585hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16586
16587# Set to "yes" if building a shared library automatically hardcodes DIR
16588# into the library and all subsequent libraries and executables linked
16589# against it.
16590hardcode_automatic=$hardcode_automatic_CXX
16591
16592# Set to yes if linker adds runtime paths of dependent libraries
16593# to runtime path list.
16594inherit_rpath=$inherit_rpath_CXX
16595
16596# Whether libtool must link a program against all its dependency libraries.
16597link_all_deplibs=$link_all_deplibs_CXX
16598
16599# Fix the shell variable \$srcfile for the compiler.
16600fix_srcfile_path=$lt_fix_srcfile_path_CXX
16601
16602# Set to "yes" if exported symbols are required.
16603always_export_symbols=$always_export_symbols_CXX
16604
16605# The commands to list exported symbols.
16606export_symbols_cmds=$lt_export_symbols_cmds_CXX
16607
16608# Symbols that should not be listed in the preloaded symbols.
16609exclude_expsyms=$lt_exclude_expsyms_CXX
16610
16611# Symbols that must always be exported.
16612include_expsyms=$lt_include_expsyms_CXX
16613
16614# Commands necessary for linking programs (against libraries) with templates.
16615prelink_cmds=$lt_prelink_cmds_CXX
16616
16617# Specify filename containing input files.
16618file_list_spec=$lt_file_list_spec_CXX
16619
16620# How to hardcode a shared library path into an executable.
16621hardcode_action=$hardcode_action_CXX
16622
16623# The directories searched by this compiler when creating a shared library.
16624compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16625
16626# Dependencies to place before and after the objects being linked to
16627# create a shared library.
16628predep_objects=$lt_predep_objects_CXX
16629postdep_objects=$lt_postdep_objects_CXX
16630predeps=$lt_predeps_CXX
16631postdeps=$lt_postdeps_CXX
16632
16633# The library search path used internally by the compiler when linking
16634# a shared library.
16635compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16636
16637# ### END LIBTOOL TAG CONFIG: CXX
16638_LT_EOF
16639
16640 ;;
16641
16642  esac
16643done # for ac_tag
16644
16645
16646as_fn_exit 0
16647_ACEOF
16648ac_clean_files=$ac_clean_files_save
16649
16650test $ac_write_fail = 0 ||
16651  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16652
16653
16654# configure is writing to config.log, and then calls config.status.
16655# config.status does its own redirection, appending to config.log.
16656# Unfortunately, on DOS this fails, as config.log is still kept open
16657# by configure, so config.status won't be able to write to it; its
16658# output is simply discarded.  So we exec the FD to /dev/null,
16659# effectively closing config.log, so it can be properly (re)opened and
16660# appended to by config.status.  When coming back to configure, we
16661# need to make the FD available again.
16662if test "$no_create" != yes; then
16663  ac_cs_success=:
16664  ac_config_status_args=
16665  test "$silent" = yes &&
16666    ac_config_status_args="$ac_config_status_args --quiet"
16667  exec 5>/dev/null
16668  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16669  exec 5>>config.log
16670  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16671  # would make configure fail if this is the last instruction.
16672  $ac_cs_success || as_fn_exit $?
16673fi
16674if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16675  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16676$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16677fi
16678
16679