1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for VERSIONTEST 1.1.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
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.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    PATH=/empty FPATH=/empty; export PATH FPATH
205    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='VERSIONTEST'
589PACKAGE_TARNAME='versiontest'
590PACKAGE_VERSION='1.1'
591PACKAGE_STRING='VERSIONTEST 1.1'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
598#ifdef HAVE_SYS_TYPES_H
599# include <sys/types.h>
600#endif
601#ifdef HAVE_SYS_STAT_H
602# include <sys/stat.h>
603#endif
604#ifdef STDC_HEADERS
605# include <stdlib.h>
606# include <stddef.h>
607#else
608# ifdef HAVE_STDLIB_H
609#  include <stdlib.h>
610# endif
611#endif
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614#  include <memory.h>
615# endif
616# include <string.h>
617#endif
618#ifdef HAVE_STRINGS_H
619# include <strings.h>
620#endif
621#ifdef HAVE_INTTYPES_H
622# include <inttypes.h>
623#endif
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
628# include <unistd.h>
629#endif"
630
631ac_subst_vars='CPP
632LT_SYS_LIBRARY_PATH
633OTOOL64
634OTOOL
635LIPO
636NMEDIT
637DSYMUTIL
638MANIFEST_TOOL
639RANLIB
640ac_ct_AR
641AR
642DLLTOOL
643OBJDUMP
644LN_S
645NM
646ac_ct_DUMPBIN
647DUMPBIN
648LD
649FGREP
650EGREP
651GREP
652SED
653am__fastdepCC_FALSE
654am__fastdepCC_TRUE
655CCDEPMODE
656am__nodep
657AMDEPBACKSLASH
658AMDEP_FALSE
659AMDEP_TRUE
660am__quote
661am__include
662DEPDIR
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670host_os
671host_vendor
672host_cpu
673host
674build_os
675build_vendor
676build_cpu
677build
678LIBTOOL
679AM_BACKSLASH
680AM_DEFAULT_VERBOSITY
681AM_DEFAULT_V
682AM_V
683am__untar
684am__tar
685AMTAR
686am__leading_dot
687SET_MAKE
688AWK
689mkdir_p
690MKDIR_P
691INSTALL_STRIP_PROGRAM
692STRIP
693install_sh
694MAKEINFO
695AUTOHEADER
696AUTOMAKE
697AUTOCONF
698ACLOCAL
699VERSION
700PACKAGE
701CYGPATH_W
702am__isrc
703INSTALL_DATA
704INSTALL_SCRIPT
705INSTALL_PROGRAM
706target_alias
707host_alias
708build_alias
709LIBS
710ECHO_T
711ECHO_N
712ECHO_C
713DEFS
714mandir
715localedir
716libdir
717psdir
718pdfdir
719dvidir
720htmldir
721infodir
722docdir
723oldincludedir
724includedir
725runstatedir
726localstatedir
727sharedstatedir
728sysconfdir
729datadir
730datarootdir
731libexecdir
732sbindir
733bindir
734program_transform_name
735prefix
736exec_prefix
737PACKAGE_URL
738PACKAGE_BUGREPORT
739PACKAGE_STRING
740PACKAGE_VERSION
741PACKAGE_TARNAME
742PACKAGE_NAME
743PATH_SEPARATOR
744SHELL'
745ac_subst_files=''
746ac_user_opts='
747enable_option_checking
748enable_silent_rules
749enable_shared
750enable_static
751with_pic
752enable_fast_install
753with_aix_soname
754enable_dependency_tracking
755with_gnu_ld
756with_sysroot
757enable_libtool_lock
758'
759      ac_precious_vars='build_alias
760host_alias
761target_alias
762CC
763CFLAGS
764LDFLAGS
765LIBS
766CPPFLAGS
767LT_SYS_LIBRARY_PATH
768CPP'
769
770
771# Initialize some variables set by options.
772ac_init_help=
773ac_init_version=false
774ac_unrecognized_opts=
775ac_unrecognized_sep=
776# The variables have the same names as the options, with
777# dashes changed to underlines.
778cache_file=/dev/null
779exec_prefix=NONE
780no_create=
781no_recursion=
782prefix=NONE
783program_prefix=NONE
784program_suffix=NONE
785program_transform_name=s,x,x,
786silent=
787site=
788srcdir=
789verbose=
790x_includes=NONE
791x_libraries=NONE
792
793# Installation directory options.
794# These are left unexpanded so users can "make install exec_prefix=/foo"
795# and all the variables that are supposed to be based on exec_prefix
796# by default will actually change.
797# Use braces instead of parens because sh, perl, etc. also accept them.
798# (The list follows the same order as the GNU Coding Standards.)
799bindir='${exec_prefix}/bin'
800sbindir='${exec_prefix}/sbin'
801libexecdir='${exec_prefix}/libexec'
802datarootdir='${prefix}/share'
803datadir='${datarootdir}'
804sysconfdir='${prefix}/etc'
805sharedstatedir='${prefix}/com'
806localstatedir='${prefix}/var'
807runstatedir='${localstatedir}/run'
808includedir='${prefix}/include'
809oldincludedir='/usr/include'
810docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811infodir='${datarootdir}/info'
812htmldir='${docdir}'
813dvidir='${docdir}'
814pdfdir='${docdir}'
815psdir='${docdir}'
816libdir='${exec_prefix}/lib'
817localedir='${datarootdir}/locale'
818mandir='${datarootdir}/man'
819
820ac_prev=
821ac_dashdash=
822for ac_option
823do
824  # If the previous option needs an argument, assign it.
825  if test -n "$ac_prev"; then
826    eval $ac_prev=\$ac_option
827    ac_prev=
828    continue
829  fi
830
831  case $ac_option in
832  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833  *=)   ac_optarg= ;;
834  *)    ac_optarg=yes ;;
835  esac
836
837  # Accept the important Cygnus configure options, so we can diagnose typos.
838
839  case $ac_dashdash$ac_option in
840  --)
841    ac_dashdash=yes ;;
842
843  -bindir | --bindir | --bindi | --bind | --bin | --bi)
844    ac_prev=bindir ;;
845  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846    bindir=$ac_optarg ;;
847
848  -build | --build | --buil | --bui | --bu)
849    ac_prev=build_alias ;;
850  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851    build_alias=$ac_optarg ;;
852
853  -cache-file | --cache-file | --cache-fil | --cache-fi \
854  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855    ac_prev=cache_file ;;
856  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858    cache_file=$ac_optarg ;;
859
860  --config-cache | -C)
861    cache_file=config.cache ;;
862
863  -datadir | --datadir | --datadi | --datad)
864    ac_prev=datadir ;;
865  -datadir=* | --datadir=* | --datadi=* | --datad=*)
866    datadir=$ac_optarg ;;
867
868  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869  | --dataroo | --dataro | --datar)
870    ac_prev=datarootdir ;;
871  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873    datarootdir=$ac_optarg ;;
874
875  -disable-* | --disable-*)
876    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877    # Reject names that are not valid shell variable names.
878    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879      as_fn_error $? "invalid feature name: $ac_useropt"
880    ac_useropt_orig=$ac_useropt
881    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882    case $ac_user_opts in
883      *"
884"enable_$ac_useropt"
885"*) ;;
886      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887	 ac_unrecognized_sep=', ';;
888    esac
889    eval enable_$ac_useropt=no ;;
890
891  -docdir | --docdir | --docdi | --doc | --do)
892    ac_prev=docdir ;;
893  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894    docdir=$ac_optarg ;;
895
896  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897    ac_prev=dvidir ;;
898  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899    dvidir=$ac_optarg ;;
900
901  -enable-* | --enable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: $ac_useropt"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=\$ac_optarg ;;
916
917  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919  | --exec | --exe | --ex)
920    ac_prev=exec_prefix ;;
921  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923  | --exec=* | --exe=* | --ex=*)
924    exec_prefix=$ac_optarg ;;
925
926  -gas | --gas | --ga | --g)
927    # Obsolete; use --with-gas.
928    with_gas=yes ;;
929
930  -help | --help | --hel | --he | -h)
931    ac_init_help=long ;;
932  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933    ac_init_help=recursive ;;
934  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935    ac_init_help=short ;;
936
937  -host | --host | --hos | --ho)
938    ac_prev=host_alias ;;
939  -host=* | --host=* | --hos=* | --ho=*)
940    host_alias=$ac_optarg ;;
941
942  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943    ac_prev=htmldir ;;
944  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945  | --ht=*)
946    htmldir=$ac_optarg ;;
947
948  -includedir | --includedir | --includedi | --included | --include \
949  | --includ | --inclu | --incl | --inc)
950    ac_prev=includedir ;;
951  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952  | --includ=* | --inclu=* | --incl=* | --inc=*)
953    includedir=$ac_optarg ;;
954
955  -infodir | --infodir | --infodi | --infod | --info | --inf)
956    ac_prev=infodir ;;
957  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958    infodir=$ac_optarg ;;
959
960  -libdir | --libdir | --libdi | --libd)
961    ac_prev=libdir ;;
962  -libdir=* | --libdir=* | --libdi=* | --libd=*)
963    libdir=$ac_optarg ;;
964
965  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966  | --libexe | --libex | --libe)
967    ac_prev=libexecdir ;;
968  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969  | --libexe=* | --libex=* | --libe=*)
970    libexecdir=$ac_optarg ;;
971
972  -localedir | --localedir | --localedi | --localed | --locale)
973    ac_prev=localedir ;;
974  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975    localedir=$ac_optarg ;;
976
977  -localstatedir | --localstatedir | --localstatedi | --localstated \
978  | --localstate | --localstat | --localsta | --localst | --locals)
979    ac_prev=localstatedir ;;
980  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982    localstatedir=$ac_optarg ;;
983
984  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985    ac_prev=mandir ;;
986  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987    mandir=$ac_optarg ;;
988
989  -nfp | --nfp | --nf)
990    # Obsolete; use --without-fp.
991    with_fp=no ;;
992
993  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994  | --no-cr | --no-c | -n)
995    no_create=yes ;;
996
997  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999    no_recursion=yes ;;
1000
1001  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003  | --oldin | --oldi | --old | --ol | --o)
1004    ac_prev=oldincludedir ;;
1005  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008    oldincludedir=$ac_optarg ;;
1009
1010  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011    ac_prev=prefix ;;
1012  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013    prefix=$ac_optarg ;;
1014
1015  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016  | --program-pre | --program-pr | --program-p)
1017    ac_prev=program_prefix ;;
1018  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020    program_prefix=$ac_optarg ;;
1021
1022  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023  | --program-suf | --program-su | --program-s)
1024    ac_prev=program_suffix ;;
1025  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027    program_suffix=$ac_optarg ;;
1028
1029  -program-transform-name | --program-transform-name \
1030  | --program-transform-nam | --program-transform-na \
1031  | --program-transform-n | --program-transform- \
1032  | --program-transform | --program-transfor \
1033  | --program-transfo | --program-transf \
1034  | --program-trans | --program-tran \
1035  | --progr-tra | --program-tr | --program-t)
1036    ac_prev=program_transform_name ;;
1037  -program-transform-name=* | --program-transform-name=* \
1038  | --program-transform-nam=* | --program-transform-na=* \
1039  | --program-transform-n=* | --program-transform-=* \
1040  | --program-transform=* | --program-transfor=* \
1041  | --program-transfo=* | --program-transf=* \
1042  | --program-trans=* | --program-tran=* \
1043  | --progr-tra=* | --program-tr=* | --program-t=*)
1044    program_transform_name=$ac_optarg ;;
1045
1046  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047    ac_prev=pdfdir ;;
1048  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049    pdfdir=$ac_optarg ;;
1050
1051  -psdir | --psdir | --psdi | --psd | --ps)
1052    ac_prev=psdir ;;
1053  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054    psdir=$ac_optarg ;;
1055
1056  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057  | -silent | --silent | --silen | --sile | --sil)
1058    silent=yes ;;
1059
1060  -runstatedir | --runstatedir | --runstatedi | --runstated \
1061  | --runstate | --runstat | --runsta | --runst | --runs \
1062  | --run | --ru | --r)
1063    ac_prev=runstatedir ;;
1064  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1065  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1066  | --run=* | --ru=* | --r=*)
1067    runstatedir=$ac_optarg ;;
1068
1069  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070    ac_prev=sbindir ;;
1071  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072  | --sbi=* | --sb=*)
1073    sbindir=$ac_optarg ;;
1074
1075  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077  | --sharedst | --shareds | --shared | --share | --shar \
1078  | --sha | --sh)
1079    ac_prev=sharedstatedir ;;
1080  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083  | --sha=* | --sh=*)
1084    sharedstatedir=$ac_optarg ;;
1085
1086  -site | --site | --sit)
1087    ac_prev=site ;;
1088  -site=* | --site=* | --sit=*)
1089    site=$ac_optarg ;;
1090
1091  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092    ac_prev=srcdir ;;
1093  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094    srcdir=$ac_optarg ;;
1095
1096  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097  | --syscon | --sysco | --sysc | --sys | --sy)
1098    ac_prev=sysconfdir ;;
1099  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101    sysconfdir=$ac_optarg ;;
1102
1103  -target | --target | --targe | --targ | --tar | --ta | --t)
1104    ac_prev=target_alias ;;
1105  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106    target_alias=$ac_optarg ;;
1107
1108  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109    verbose=yes ;;
1110
1111  -version | --version | --versio | --versi | --vers | -V)
1112    ac_init_version=: ;;
1113
1114  -with-* | --with-*)
1115    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116    # Reject names that are not valid shell variable names.
1117    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118      as_fn_error $? "invalid package name: $ac_useropt"
1119    ac_useropt_orig=$ac_useropt
1120    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121    case $ac_user_opts in
1122      *"
1123"with_$ac_useropt"
1124"*) ;;
1125      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126	 ac_unrecognized_sep=', ';;
1127    esac
1128    eval with_$ac_useropt=\$ac_optarg ;;
1129
1130  -without-* | --without-*)
1131    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132    # Reject names that are not valid shell variable names.
1133    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134      as_fn_error $? "invalid package name: $ac_useropt"
1135    ac_useropt_orig=$ac_useropt
1136    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137    case $ac_user_opts in
1138      *"
1139"with_$ac_useropt"
1140"*) ;;
1141      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142	 ac_unrecognized_sep=', ';;
1143    esac
1144    eval with_$ac_useropt=no ;;
1145
1146  --x)
1147    # Obsolete; use --with-x.
1148    with_x=yes ;;
1149
1150  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151  | --x-incl | --x-inc | --x-in | --x-i)
1152    ac_prev=x_includes ;;
1153  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155    x_includes=$ac_optarg ;;
1156
1157  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159    ac_prev=x_libraries ;;
1160  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162    x_libraries=$ac_optarg ;;
1163
1164  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1165Try \`$0 --help' for more information"
1166    ;;
1167
1168  *=*)
1169    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170    # Reject names that are not valid shell variable names.
1171    case $ac_envvar in #(
1172      '' | [0-9]* | *[!_$as_cr_alnum]* )
1173      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174    esac
1175    eval $ac_envvar=\$ac_optarg
1176    export $ac_envvar ;;
1177
1178  *)
1179    # FIXME: should be removed in autoconf 3.0.
1180    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1184    ;;
1185
1186  esac
1187done
1188
1189if test -n "$ac_prev"; then
1190  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191  as_fn_error $? "missing argument to $ac_option"
1192fi
1193
1194if test -n "$ac_unrecognized_opts"; then
1195  case $enable_option_checking in
1196    no) ;;
1197    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1198    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199  esac
1200fi
1201
1202# Check all directory arguments for consistency.
1203for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204		datadir sysconfdir sharedstatedir localstatedir includedir \
1205		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206		libdir localedir mandir runstatedir
1207do
1208  eval ac_val=\$$ac_var
1209  # Remove trailing slashes.
1210  case $ac_val in
1211    */ )
1212      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213      eval $ac_var=\$ac_val;;
1214  esac
1215  # Be sure to have absolute directory names.
1216  case $ac_val in
1217    [\\/$]* | ?:[\\/]* )  continue;;
1218    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219  esac
1220  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1221done
1222
1223# There might be people who depend on the old broken behavior: `$host'
1224# used to hold the argument of --host etc.
1225# FIXME: To remove some day.
1226build=$build_alias
1227host=$host_alias
1228target=$target_alias
1229
1230# FIXME: To remove some day.
1231if test "x$host_alias" != x; then
1232  if test "x$build_alias" = x; then
1233    cross_compiling=maybe
1234  elif test "x$build_alias" != "x$host_alias"; then
1235    cross_compiling=yes
1236  fi
1237fi
1238
1239ac_tool_prefix=
1240test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242test "$silent" = yes && exec 6>/dev/null
1243
1244
1245ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246ac_ls_di=`ls -di .` &&
1247ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248  as_fn_error $? "working directory cannot be determined"
1249test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250  as_fn_error $? "pwd does not report name of working directory"
1251
1252
1253# Find the source files, if location was not specified.
1254if test -z "$srcdir"; then
1255  ac_srcdir_defaulted=yes
1256  # Try the directory containing this script, then the parent directory.
1257  ac_confdir=`$as_dirname -- "$as_myself" ||
1258$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259	 X"$as_myself" : 'X\(//\)[^/]' \| \
1260	 X"$as_myself" : 'X\(//\)$' \| \
1261	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262$as_echo X"$as_myself" |
1263    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264	    s//\1/
1265	    q
1266	  }
1267	  /^X\(\/\/\)[^/].*/{
1268	    s//\1/
1269	    q
1270	  }
1271	  /^X\(\/\/\)$/{
1272	    s//\1/
1273	    q
1274	  }
1275	  /^X\(\/\).*/{
1276	    s//\1/
1277	    q
1278	  }
1279	  s/.*/./; q'`
1280  srcdir=$ac_confdir
1281  if test ! -r "$srcdir/$ac_unique_file"; then
1282    srcdir=..
1283  fi
1284else
1285  ac_srcdir_defaulted=no
1286fi
1287if test ! -r "$srcdir/$ac_unique_file"; then
1288  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1290fi
1291ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292ac_abs_confdir=`(
1293	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1294	pwd)`
1295# When building in place, set srcdir=.
1296if test "$ac_abs_confdir" = "$ac_pwd"; then
1297  srcdir=.
1298fi
1299# Remove unnecessary trailing slashes from srcdir.
1300# Double slashes in file names in object file debugging info
1301# mess up M-x gdb in Emacs.
1302case $srcdir in
1303*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304esac
1305for ac_var in $ac_precious_vars; do
1306  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307  eval ac_env_${ac_var}_value=\$${ac_var}
1308  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310done
1311
1312#
1313# Report the --help message.
1314#
1315if test "$ac_init_help" = "long"; then
1316  # Omit some internal or obsolete options to make the list less imposing.
1317  # This message is too long to be a string in the A/UX 3.1 sh.
1318  cat <<_ACEOF
1319\`configure' configures VERSIONTEST 1.1 to adapt to many kinds of systems.
1320
1321Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
1326Defaults for the options are specified in brackets.
1327
1328Configuration:
1329  -h, --help              display this help and exit
1330      --help=short        display options specific to this package
1331      --help=recursive    display the short help of all the included packages
1332  -V, --version           display version information and exit
1333  -q, --quiet, --silent   do not print \`checking ...' messages
1334      --cache-file=FILE   cache test results in FILE [disabled]
1335  -C, --config-cache      alias for \`--cache-file=config.cache'
1336  -n, --no-create         do not create output files
1337      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
1339Installation directories:
1340  --prefix=PREFIX         install architecture-independent files in PREFIX
1341                          [$ac_default_prefix]
1342  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343                          [PREFIX]
1344
1345By default, \`make install' will install all the files in
1346\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348for instance \`--prefix=\$HOME'.
1349
1350For better control, use the options below.
1351
1352Fine tuning of the installation directories:
1353  --bindir=DIR            user executables [EPREFIX/bin]
1354  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1355  --libexecdir=DIR        program executables [EPREFIX/libexec]
1356  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1357  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1358  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1359  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1360  --libdir=DIR            object code libraries [EPREFIX/lib]
1361  --includedir=DIR        C header files [PREFIX/include]
1362  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1363  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1364  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1365  --infodir=DIR           info documentation [DATAROOTDIR/info]
1366  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1367  --mandir=DIR            man documentation [DATAROOTDIR/man]
1368  --docdir=DIR            documentation root [DATAROOTDIR/doc/versiontest]
1369  --htmldir=DIR           html documentation [DOCDIR]
1370  --dvidir=DIR            dvi documentation [DOCDIR]
1371  --pdfdir=DIR            pdf documentation [DOCDIR]
1372  --psdir=DIR             ps documentation [DOCDIR]
1373_ACEOF
1374
1375  cat <<\_ACEOF
1376
1377Program names:
1378  --program-prefix=PREFIX            prepend PREFIX to installed program names
1379  --program-suffix=SUFFIX            append SUFFIX to installed program names
1380  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1381
1382System types:
1383  --build=BUILD     configure for building on BUILD [guessed]
1384  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1385_ACEOF
1386fi
1387
1388if test -n "$ac_init_help"; then
1389  case $ac_init_help in
1390     short | recursive ) echo "Configuration of VERSIONTEST 1.1:";;
1391   esac
1392  cat <<\_ACEOF
1393
1394Optional Features:
1395  --disable-option-checking  ignore unrecognized --enable/--with options
1396  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398  --enable-silent-rules   less verbose build output (undo: "make V=1")
1399  --disable-silent-rules  verbose build output (undo: "make V=0")
1400  --enable-shared[=PKGS]  build shared libraries [default=yes]
1401  --enable-static[=PKGS]  build static libraries [default=yes]
1402  --enable-fast-install[=PKGS]
1403                          optimize for fast installation [default=yes]
1404  --enable-dependency-tracking
1405                          do not reject slow dependency extractors
1406  --disable-dependency-tracking
1407                          speeds up one-time build
1408  --disable-libtool-lock  avoid locking (might break parallel builds)
1409
1410Optional Packages:
1411  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1412  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1413  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1414                          both]
1415  --with-aix-soname=aix|svr4|both
1416                          shared library versioning (aka "SONAME") variant to
1417                          provide on AIX, [default=aix].
1418  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1419  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1420                          compiler's sysroot if not specified).
1421
1422Some influential environment variables:
1423  CC          C compiler command
1424  CFLAGS      C compiler flags
1425  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1426              nonstandard directory <lib dir>
1427  LIBS        libraries to pass to the linker, e.g. -l<library>
1428  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1429              you have headers in a nonstandard directory <include dir>
1430  LT_SYS_LIBRARY_PATH
1431              User-defined run-time library search path.
1432  CPP         C preprocessor
1433
1434Use these variables to override the choices made by `configure' or to help
1435it to find libraries and programs with nonstandard names/locations.
1436
1437Report bugs to the package provider.
1438_ACEOF
1439ac_status=$?
1440fi
1441
1442if test "$ac_init_help" = "recursive"; then
1443  # If there are subdirs, report their specific --help.
1444  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445    test -d "$ac_dir" ||
1446      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447      continue
1448    ac_builddir=.
1449
1450case "$ac_dir" in
1451.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452*)
1453  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1454  # A ".." for each directory in $ac_dir_suffix.
1455  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1456  case $ac_top_builddir_sub in
1457  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459  esac ;;
1460esac
1461ac_abs_top_builddir=$ac_pwd
1462ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463# for backward compatibility:
1464ac_top_builddir=$ac_top_build_prefix
1465
1466case $srcdir in
1467  .)  # We are building in place.
1468    ac_srcdir=.
1469    ac_top_srcdir=$ac_top_builddir_sub
1470    ac_abs_top_srcdir=$ac_pwd ;;
1471  [\\/]* | ?:[\\/]* )  # Absolute name.
1472    ac_srcdir=$srcdir$ac_dir_suffix;
1473    ac_top_srcdir=$srcdir
1474    ac_abs_top_srcdir=$srcdir ;;
1475  *) # Relative name.
1476    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477    ac_top_srcdir=$ac_top_build_prefix$srcdir
1478    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479esac
1480ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481
1482    cd "$ac_dir" || { ac_status=$?; continue; }
1483    # Check for guested configure.
1484    if test -f "$ac_srcdir/configure.gnu"; then
1485      echo &&
1486      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487    elif test -f "$ac_srcdir/configure"; then
1488      echo &&
1489      $SHELL "$ac_srcdir/configure" --help=recursive
1490    else
1491      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492    fi || ac_status=$?
1493    cd "$ac_pwd" || { ac_status=$?; break; }
1494  done
1495fi
1496
1497test -n "$ac_init_help" && exit $ac_status
1498if $ac_init_version; then
1499  cat <<\_ACEOF
1500VERSIONTEST configure 1.1
1501generated by GNU Autoconf 2.69
1502
1503Copyright (C) 2012 Free Software Foundation, Inc.
1504This configure script is free software; the Free Software Foundation
1505gives unlimited permission to copy, distribute and modify it.
1506_ACEOF
1507  exit
1508fi
1509
1510## ------------------------ ##
1511## Autoconf initialization. ##
1512## ------------------------ ##
1513
1514# ac_fn_c_try_compile LINENO
1515# --------------------------
1516# Try to compile conftest.$ac_ext, and return whether this succeeded.
1517ac_fn_c_try_compile ()
1518{
1519  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520  rm -f conftest.$ac_objext
1521  if { { ac_try="$ac_compile"
1522case "(($ac_try" in
1523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524  *) ac_try_echo=$ac_try;;
1525esac
1526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527$as_echo "$ac_try_echo"; } >&5
1528  (eval "$ac_compile") 2>conftest.err
1529  ac_status=$?
1530  if test -s conftest.err; then
1531    grep -v '^ *+' conftest.err >conftest.er1
1532    cat conftest.er1 >&5
1533    mv -f conftest.er1 conftest.err
1534  fi
1535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536  test $ac_status = 0; } && {
1537	 test -z "$ac_c_werror_flag" ||
1538	 test ! -s conftest.err
1539       } && test -s conftest.$ac_objext; then :
1540  ac_retval=0
1541else
1542  $as_echo "$as_me: failed program was:" >&5
1543sed 's/^/| /' conftest.$ac_ext >&5
1544
1545	ac_retval=1
1546fi
1547  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548  as_fn_set_status $ac_retval
1549
1550} # ac_fn_c_try_compile
1551
1552# ac_fn_c_try_link LINENO
1553# -----------------------
1554# Try to link conftest.$ac_ext, and return whether this succeeded.
1555ac_fn_c_try_link ()
1556{
1557  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558  rm -f conftest.$ac_objext conftest$ac_exeext
1559  if { { ac_try="$ac_link"
1560case "(($ac_try" in
1561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562  *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565$as_echo "$ac_try_echo"; } >&5
1566  (eval "$ac_link") 2>conftest.err
1567  ac_status=$?
1568  if test -s conftest.err; then
1569    grep -v '^ *+' conftest.err >conftest.er1
1570    cat conftest.er1 >&5
1571    mv -f conftest.er1 conftest.err
1572  fi
1573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574  test $ac_status = 0; } && {
1575	 test -z "$ac_c_werror_flag" ||
1576	 test ! -s conftest.err
1577       } && test -s conftest$ac_exeext && {
1578	 test "$cross_compiling" = yes ||
1579	 test -x conftest$ac_exeext
1580       }; then :
1581  ac_retval=0
1582else
1583  $as_echo "$as_me: failed program was:" >&5
1584sed 's/^/| /' conftest.$ac_ext >&5
1585
1586	ac_retval=1
1587fi
1588  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1589  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1590  # interfere with the next link command; also delete a directory that is
1591  # left behind by Apple's compiler.  We do this before executing the actions.
1592  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1593  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594  as_fn_set_status $ac_retval
1595
1596} # ac_fn_c_try_link
1597
1598# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1599# -------------------------------------------------------
1600# Tests whether HEADER exists and can be compiled using the include files in
1601# INCLUDES, setting the cache variable VAR accordingly.
1602ac_fn_c_check_header_compile ()
1603{
1604  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606$as_echo_n "checking for $2... " >&6; }
1607if eval \${$3+:} false; then :
1608  $as_echo_n "(cached) " >&6
1609else
1610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611/* end confdefs.h.  */
1612$4
1613#include <$2>
1614_ACEOF
1615if ac_fn_c_try_compile "$LINENO"; then :
1616  eval "$3=yes"
1617else
1618  eval "$3=no"
1619fi
1620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621fi
1622eval ac_res=\$$3
1623	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624$as_echo "$ac_res" >&6; }
1625  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626
1627} # ac_fn_c_check_header_compile
1628
1629# ac_fn_c_try_cpp LINENO
1630# ----------------------
1631# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1632ac_fn_c_try_cpp ()
1633{
1634  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635  if { { ac_try="$ac_cpp conftest.$ac_ext"
1636case "(($ac_try" in
1637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638  *) ac_try_echo=$ac_try;;
1639esac
1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641$as_echo "$ac_try_echo"; } >&5
1642  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1643  ac_status=$?
1644  if test -s conftest.err; then
1645    grep -v '^ *+' conftest.err >conftest.er1
1646    cat conftest.er1 >&5
1647    mv -f conftest.er1 conftest.err
1648  fi
1649  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650  test $ac_status = 0; } > conftest.i && {
1651	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1652	 test ! -s conftest.err
1653       }; then :
1654  ac_retval=0
1655else
1656  $as_echo "$as_me: failed program was:" >&5
1657sed 's/^/| /' conftest.$ac_ext >&5
1658
1659    ac_retval=1
1660fi
1661  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662  as_fn_set_status $ac_retval
1663
1664} # ac_fn_c_try_cpp
1665
1666# ac_fn_c_try_run LINENO
1667# ----------------------
1668# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669# that executables *can* be run.
1670ac_fn_c_try_run ()
1671{
1672  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673  if { { ac_try="$ac_link"
1674case "(($ac_try" in
1675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676  *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680  (eval "$ac_link") 2>&5
1681  ac_status=$?
1682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684  { { case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690  (eval "$ac_try") 2>&5
1691  ac_status=$?
1692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693  test $ac_status = 0; }; }; then :
1694  ac_retval=0
1695else
1696  $as_echo "$as_me: program exited with status $ac_status" >&5
1697       $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700       ac_retval=$ac_status
1701fi
1702  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704  as_fn_set_status $ac_retval
1705
1706} # ac_fn_c_try_run
1707
1708# ac_fn_c_check_func LINENO FUNC VAR
1709# ----------------------------------
1710# Tests whether FUNC exists, setting the cache variable VAR accordingly
1711ac_fn_c_check_func ()
1712{
1713  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715$as_echo_n "checking for $2... " >&6; }
1716if eval \${$3+:} false; then :
1717  $as_echo_n "(cached) " >&6
1718else
1719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720/* end confdefs.h.  */
1721/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1722   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1723#define $2 innocuous_$2
1724
1725/* System header to define __stub macros and hopefully few prototypes,
1726    which can conflict with char $2 (); below.
1727    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1728    <limits.h> exists even on freestanding compilers.  */
1729
1730#ifdef __STDC__
1731# include <limits.h>
1732#else
1733# include <assert.h>
1734#endif
1735
1736#undef $2
1737
1738/* Override any GCC internal prototype to avoid an error.
1739   Use char because int might match the return type of a GCC
1740   builtin and then its argument prototype would still apply.  */
1741#ifdef __cplusplus
1742extern "C"
1743#endif
1744char $2 ();
1745/* The GNU C library defines this for functions which it implements
1746    to always fail with ENOSYS.  Some functions are actually named
1747    something starting with __ and the normal name is an alias.  */
1748#if defined __stub_$2 || defined __stub___$2
1749choke me
1750#endif
1751
1752int
1753main ()
1754{
1755return $2 ();
1756  ;
1757  return 0;
1758}
1759_ACEOF
1760if ac_fn_c_try_link "$LINENO"; then :
1761  eval "$3=yes"
1762else
1763  eval "$3=no"
1764fi
1765rm -f core conftest.err conftest.$ac_objext \
1766    conftest$ac_exeext conftest.$ac_ext
1767fi
1768eval ac_res=\$$3
1769	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770$as_echo "$ac_res" >&6; }
1771  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
1773} # ac_fn_c_check_func
1774cat >config.log <<_ACEOF
1775This file contains any messages produced by compilers while
1776running configure, to aid debugging if configure makes a mistake.
1777
1778It was created by VERSIONTEST $as_me 1.1, which was
1779generated by GNU Autoconf 2.69.  Invocation command line was
1780
1781  $ $0 $@
1782
1783_ACEOF
1784exec 5>>config.log
1785{
1786cat <<_ASUNAME
1787## --------- ##
1788## Platform. ##
1789## --------- ##
1790
1791hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1792uname -m = `(uname -m) 2>/dev/null || echo unknown`
1793uname -r = `(uname -r) 2>/dev/null || echo unknown`
1794uname -s = `(uname -s) 2>/dev/null || echo unknown`
1795uname -v = `(uname -v) 2>/dev/null || echo unknown`
1796
1797/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1798/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1799
1800/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1801/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1802/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1803/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1804/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1805/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1806/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1807
1808_ASUNAME
1809
1810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811for as_dir in $PATH
1812do
1813  IFS=$as_save_IFS
1814  test -z "$as_dir" && as_dir=.
1815    $as_echo "PATH: $as_dir"
1816  done
1817IFS=$as_save_IFS
1818
1819} >&5
1820
1821cat >&5 <<_ACEOF
1822
1823
1824## ----------- ##
1825## Core tests. ##
1826## ----------- ##
1827
1828_ACEOF
1829
1830
1831# Keep a trace of the command line.
1832# Strip out --no-create and --no-recursion so they do not pile up.
1833# Strip out --silent because we don't want to record it for future runs.
1834# Also quote any args containing shell meta-characters.
1835# Make two passes to allow for proper duplicate-argument suppression.
1836ac_configure_args=
1837ac_configure_args0=
1838ac_configure_args1=
1839ac_must_keep_next=false
1840for ac_pass in 1 2
1841do
1842  for ac_arg
1843  do
1844    case $ac_arg in
1845    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1846    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1847    | -silent | --silent | --silen | --sile | --sil)
1848      continue ;;
1849    *\'*)
1850      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1851    esac
1852    case $ac_pass in
1853    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1854    2)
1855      as_fn_append ac_configure_args1 " '$ac_arg'"
1856      if test $ac_must_keep_next = true; then
1857	ac_must_keep_next=false # Got value, back to normal.
1858      else
1859	case $ac_arg in
1860	  *=* | --config-cache | -C | -disable-* | --disable-* \
1861	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1862	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1863	  | -with-* | --with-* | -without-* | --without-* | --x)
1864	    case "$ac_configure_args0 " in
1865	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1866	    esac
1867	    ;;
1868	  -* ) ac_must_keep_next=true ;;
1869	esac
1870      fi
1871      as_fn_append ac_configure_args " '$ac_arg'"
1872      ;;
1873    esac
1874  done
1875done
1876{ ac_configure_args0=; unset ac_configure_args0;}
1877{ ac_configure_args1=; unset ac_configure_args1;}
1878
1879# When interrupted or exit'd, cleanup temporary files, and complete
1880# config.log.  We remove comments because anyway the quotes in there
1881# would cause problems or look ugly.
1882# WARNING: Use '\'' to represent an apostrophe within the trap.
1883# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1884trap 'exit_status=$?
1885  # Save into config.log some information that might help in debugging.
1886  {
1887    echo
1888
1889    $as_echo "## ---------------- ##
1890## Cache variables. ##
1891## ---------------- ##"
1892    echo
1893    # The following way of writing the cache mishandles newlines in values,
1894(
1895  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1896    eval ac_val=\$$ac_var
1897    case $ac_val in #(
1898    *${as_nl}*)
1899      case $ac_var in #(
1900      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1901$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1902      esac
1903      case $ac_var in #(
1904      _ | IFS | as_nl) ;; #(
1905      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1906      *) { eval $ac_var=; unset $ac_var;} ;;
1907      esac ;;
1908    esac
1909  done
1910  (set) 2>&1 |
1911    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1912    *${as_nl}ac_space=\ *)
1913      sed -n \
1914	"s/'\''/'\''\\\\'\'''\''/g;
1915	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1916      ;; #(
1917    *)
1918      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1919      ;;
1920    esac |
1921    sort
1922)
1923    echo
1924
1925    $as_echo "## ----------------- ##
1926## Output variables. ##
1927## ----------------- ##"
1928    echo
1929    for ac_var in $ac_subst_vars
1930    do
1931      eval ac_val=\$$ac_var
1932      case $ac_val in
1933      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1934      esac
1935      $as_echo "$ac_var='\''$ac_val'\''"
1936    done | sort
1937    echo
1938
1939    if test -n "$ac_subst_files"; then
1940      $as_echo "## ------------------- ##
1941## File substitutions. ##
1942## ------------------- ##"
1943      echo
1944      for ac_var in $ac_subst_files
1945      do
1946	eval ac_val=\$$ac_var
1947	case $ac_val in
1948	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1949	esac
1950	$as_echo "$ac_var='\''$ac_val'\''"
1951      done | sort
1952      echo
1953    fi
1954
1955    if test -s confdefs.h; then
1956      $as_echo "## ----------- ##
1957## confdefs.h. ##
1958## ----------- ##"
1959      echo
1960      cat confdefs.h
1961      echo
1962    fi
1963    test "$ac_signal" != 0 &&
1964      $as_echo "$as_me: caught signal $ac_signal"
1965    $as_echo "$as_me: exit $exit_status"
1966  } >&5
1967  rm -f core *.core core.conftest.* &&
1968    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1969    exit $exit_status
1970' 0
1971for ac_signal in 1 2 13 15; do
1972  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1973done
1974ac_signal=0
1975
1976# confdefs.h avoids OS command line length limits that DEFS can exceed.
1977rm -f -r conftest* confdefs.h
1978
1979$as_echo "/* confdefs.h */" > confdefs.h
1980
1981# Predefined preprocessor variables.
1982
1983cat >>confdefs.h <<_ACEOF
1984#define PACKAGE_NAME "$PACKAGE_NAME"
1985_ACEOF
1986
1987cat >>confdefs.h <<_ACEOF
1988#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1989_ACEOF
1990
1991cat >>confdefs.h <<_ACEOF
1992#define PACKAGE_VERSION "$PACKAGE_VERSION"
1993_ACEOF
1994
1995cat >>confdefs.h <<_ACEOF
1996#define PACKAGE_STRING "$PACKAGE_STRING"
1997_ACEOF
1998
1999cat >>confdefs.h <<_ACEOF
2000#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2001_ACEOF
2002
2003cat >>confdefs.h <<_ACEOF
2004#define PACKAGE_URL "$PACKAGE_URL"
2005_ACEOF
2006
2007
2008# Let the site file select an alternate cache file if it wants to.
2009# Prefer an explicitly selected file to automatically selected ones.
2010ac_site_file1=NONE
2011ac_site_file2=NONE
2012if test -n "$CONFIG_SITE"; then
2013  # We do not want a PATH search for config.site.
2014  case $CONFIG_SITE in #((
2015    -*)  ac_site_file1=./$CONFIG_SITE;;
2016    */*) ac_site_file1=$CONFIG_SITE;;
2017    *)   ac_site_file1=./$CONFIG_SITE;;
2018  esac
2019elif test "x$prefix" != xNONE; then
2020  ac_site_file1=$prefix/share/config.site
2021  ac_site_file2=$prefix/etc/config.site
2022else
2023  ac_site_file1=$ac_default_prefix/share/config.site
2024  ac_site_file2=$ac_default_prefix/etc/config.site
2025fi
2026for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2027do
2028  test "x$ac_site_file" = xNONE && continue
2029  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2030    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2031$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2032    sed 's/^/| /' "$ac_site_file" >&5
2033    . "$ac_site_file" \
2034      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2036as_fn_error $? "failed to load site script $ac_site_file
2037See \`config.log' for more details" "$LINENO" 5; }
2038  fi
2039done
2040
2041if test -r "$cache_file"; then
2042  # Some versions of bash will fail to source /dev/null (special files
2043  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2044  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2045    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2046$as_echo "$as_me: loading cache $cache_file" >&6;}
2047    case $cache_file in
2048      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2049      *)                      . "./$cache_file";;
2050    esac
2051  fi
2052else
2053  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2054$as_echo "$as_me: creating cache $cache_file" >&6;}
2055  >$cache_file
2056fi
2057
2058# Check that the precious variables saved in the cache have kept the same
2059# value.
2060ac_cache_corrupted=false
2061for ac_var in $ac_precious_vars; do
2062  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2063  eval ac_new_set=\$ac_env_${ac_var}_set
2064  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2065  eval ac_new_val=\$ac_env_${ac_var}_value
2066  case $ac_old_set,$ac_new_set in
2067    set,)
2068      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2069$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2070      ac_cache_corrupted=: ;;
2071    ,set)
2072      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2073$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2074      ac_cache_corrupted=: ;;
2075    ,);;
2076    *)
2077      if test "x$ac_old_val" != "x$ac_new_val"; then
2078	# differences in whitespace do not lead to failure.
2079	ac_old_val_w=`echo x $ac_old_val`
2080	ac_new_val_w=`echo x $ac_new_val`
2081	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2082	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2083$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2084	  ac_cache_corrupted=:
2085	else
2086	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2087$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2088	  eval $ac_var=\$ac_old_val
2089	fi
2090	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2091$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2092	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2093$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2094      fi;;
2095  esac
2096  # Pass precious variables to config.status.
2097  if test "$ac_new_set" = set; then
2098    case $ac_new_val in
2099    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2100    *) ac_arg=$ac_var=$ac_new_val ;;
2101    esac
2102    case " $ac_configure_args " in
2103      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2104      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2105    esac
2106  fi
2107done
2108if $ac_cache_corrupted; then
2109  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2111  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2112$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2113  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2114fi
2115## -------------------- ##
2116## Main body of script. ##
2117## -------------------- ##
2118
2119ac_ext=c
2120ac_cpp='$CPP $CPPFLAGS'
2121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123ac_compiler_gnu=$ac_cv_c_compiler_gnu
2124
2125
2126
2127
2128
2129
2130
2131ac_aux_dir=
2132for ac_dir in . "$srcdir"/.; do
2133  if test -f "$ac_dir/install-sh"; then
2134    ac_aux_dir=$ac_dir
2135    ac_install_sh="$ac_aux_dir/install-sh -c"
2136    break
2137  elif test -f "$ac_dir/install.sh"; then
2138    ac_aux_dir=$ac_dir
2139    ac_install_sh="$ac_aux_dir/install.sh -c"
2140    break
2141  elif test -f "$ac_dir/shtool"; then
2142    ac_aux_dir=$ac_dir
2143    ac_install_sh="$ac_aux_dir/shtool install -c"
2144    break
2145  fi
2146done
2147if test -z "$ac_aux_dir"; then
2148  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2149fi
2150
2151# These three variables are undocumented and unsupported,
2152# and are intended to be withdrawn in a future Autoconf release.
2153# They can cause serious problems if a builder's source tree is in a directory
2154# whose full name contains unusual characters.
2155ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2156ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2157ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2158
2159
2160
2161am__api_version='1.15'
2162
2163# Find a good install program.  We prefer a C program (faster),
2164# so one script is as good as another.  But avoid the broken or
2165# incompatible versions:
2166# SysV /etc/install, /usr/sbin/install
2167# SunOS /usr/etc/install
2168# IRIX /sbin/install
2169# AIX /bin/install
2170# AmigaOS /C/install, which installs bootblocks on floppy discs
2171# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2172# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2173# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2174# OS/2's system install, which has a completely different semantic
2175# ./install, which can be erroneously created by make from ./install.sh.
2176# Reject install programs that cannot install multiple files.
2177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2178$as_echo_n "checking for a BSD-compatible install... " >&6; }
2179if test -z "$INSTALL"; then
2180if ${ac_cv_path_install+:} false; then :
2181  $as_echo_n "(cached) " >&6
2182else
2183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184for as_dir in $PATH
2185do
2186  IFS=$as_save_IFS
2187  test -z "$as_dir" && as_dir=.
2188    # Account for people who put trailing slashes in PATH elements.
2189case $as_dir/ in #((
2190  ./ | .// | /[cC]/* | \
2191  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2192  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2193  /usr/ucb/* ) ;;
2194  *)
2195    # OSF1 and SCO ODT 3.0 have their own names for install.
2196    # Don't use installbsd from OSF since it installs stuff as root
2197    # by default.
2198    for ac_prog in ginstall scoinst install; do
2199      for ac_exec_ext in '' $ac_executable_extensions; do
2200	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2201	  if test $ac_prog = install &&
2202	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2203	    # AIX install.  It has an incompatible calling convention.
2204	    :
2205	  elif test $ac_prog = install &&
2206	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2207	    # program-specific install script used by HP pwplus--don't use.
2208	    :
2209	  else
2210	    rm -rf conftest.one conftest.two conftest.dir
2211	    echo one > conftest.one
2212	    echo two > conftest.two
2213	    mkdir conftest.dir
2214	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2215	      test -s conftest.one && test -s conftest.two &&
2216	      test -s conftest.dir/conftest.one &&
2217	      test -s conftest.dir/conftest.two
2218	    then
2219	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2220	      break 3
2221	    fi
2222	  fi
2223	fi
2224      done
2225    done
2226    ;;
2227esac
2228
2229  done
2230IFS=$as_save_IFS
2231
2232rm -rf conftest.one conftest.two conftest.dir
2233
2234fi
2235  if test "${ac_cv_path_install+set}" = set; then
2236    INSTALL=$ac_cv_path_install
2237  else
2238    # As a last resort, use the slow shell script.  Don't cache a
2239    # value for INSTALL within a source directory, because that will
2240    # break other packages using the cache if that directory is
2241    # removed, or if the value is a relative name.
2242    INSTALL=$ac_install_sh
2243  fi
2244fi
2245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2246$as_echo "$INSTALL" >&6; }
2247
2248# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2249# It thinks the first close brace ends the variable substitution.
2250test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2251
2252test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2253
2254test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2255
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2257$as_echo_n "checking whether build environment is sane... " >&6; }
2258# Reject unsafe characters in $srcdir or the absolute working directory
2259# name.  Accept space and tab only in the latter.
2260am_lf='
2261'
2262case `pwd` in
2263  *[\\\"\#\$\&\'\`$am_lf]*)
2264    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2265esac
2266case $srcdir in
2267  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2268    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2269esac
2270
2271# Do 'set' in a subshell so we don't clobber the current shell's
2272# arguments.  Must try -L first in case configure is actually a
2273# symlink; some systems play weird games with the mod time of symlinks
2274# (eg FreeBSD returns the mod time of the symlink's containing
2275# directory).
2276if (
2277   am_has_slept=no
2278   for am_try in 1 2; do
2279     echo "timestamp, slept: $am_has_slept" > conftest.file
2280     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2281     if test "$*" = "X"; then
2282	# -L didn't work.
2283	set X `ls -t "$srcdir/configure" conftest.file`
2284     fi
2285     if test "$*" != "X $srcdir/configure conftest.file" \
2286	&& test "$*" != "X conftest.file $srcdir/configure"; then
2287
2288	# If neither matched, then we have a broken ls.  This can happen
2289	# if, for instance, CONFIG_SHELL is bash and it inherits a
2290	# broken ls alias from the environment.  This has actually
2291	# happened.  Such a system could not be considered "sane".
2292	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2293  alias in your environment" "$LINENO" 5
2294     fi
2295     if test "$2" = conftest.file || test $am_try -eq 2; then
2296       break
2297     fi
2298     # Just in case.
2299     sleep 1
2300     am_has_slept=yes
2301   done
2302   test "$2" = conftest.file
2303   )
2304then
2305   # Ok.
2306   :
2307else
2308   as_fn_error $? "newly created file is older than distributed files!
2309Check your system clock" "$LINENO" 5
2310fi
2311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2312$as_echo "yes" >&6; }
2313# If we didn't sleep, we still need to ensure time stamps of config.status and
2314# generated files are strictly newer.
2315am_sleep_pid=
2316if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2317  ( sleep 1 ) &
2318  am_sleep_pid=$!
2319fi
2320
2321rm -f conftest.file
2322
2323test "$program_prefix" != NONE &&
2324  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2325# Use a double $ so make ignores it.
2326test "$program_suffix" != NONE &&
2327  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2328# Double any \ or $.
2329# By default was `s,x,x', remove it if useless.
2330ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2331program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2332
2333# Expand $ac_aux_dir to an absolute path.
2334am_aux_dir=`cd "$ac_aux_dir" && pwd`
2335
2336if test x"${MISSING+set}" != xset; then
2337  case $am_aux_dir in
2338  *\ * | *\	*)
2339    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2340  *)
2341    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2342  esac
2343fi
2344# Use eval to expand $SHELL
2345if eval "$MISSING --is-lightweight"; then
2346  am_missing_run="$MISSING "
2347else
2348  am_missing_run=
2349  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2350$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2351fi
2352
2353if test x"${install_sh+set}" != xset; then
2354  case $am_aux_dir in
2355  *\ * | *\	*)
2356    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2357  *)
2358    install_sh="\${SHELL} $am_aux_dir/install-sh"
2359  esac
2360fi
2361
2362# Installed binaries are usually stripped using 'strip' when the user
2363# run "make install-strip".  However 'strip' might not be the right
2364# tool to use in cross-compilation environments, therefore Automake
2365# will honor the 'STRIP' environment variable to overrule this program.
2366if test "$cross_compiling" != no; then
2367  if test -n "$ac_tool_prefix"; then
2368  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2369set dummy ${ac_tool_prefix}strip; ac_word=$2
2370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2371$as_echo_n "checking for $ac_word... " >&6; }
2372if ${ac_cv_prog_STRIP+:} false; then :
2373  $as_echo_n "(cached) " >&6
2374else
2375  if test -n "$STRIP"; then
2376  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2377else
2378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379for as_dir in $PATH
2380do
2381  IFS=$as_save_IFS
2382  test -z "$as_dir" && as_dir=.
2383    for ac_exec_ext in '' $ac_executable_extensions; do
2384  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2385    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2387    break 2
2388  fi
2389done
2390  done
2391IFS=$as_save_IFS
2392
2393fi
2394fi
2395STRIP=$ac_cv_prog_STRIP
2396if test -n "$STRIP"; then
2397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2398$as_echo "$STRIP" >&6; }
2399else
2400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2401$as_echo "no" >&6; }
2402fi
2403
2404
2405fi
2406if test -z "$ac_cv_prog_STRIP"; then
2407  ac_ct_STRIP=$STRIP
2408  # Extract the first word of "strip", so it can be a program name with args.
2409set dummy strip; ac_word=$2
2410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2411$as_echo_n "checking for $ac_word... " >&6; }
2412if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2413  $as_echo_n "(cached) " >&6
2414else
2415  if test -n "$ac_ct_STRIP"; then
2416  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2417else
2418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419for as_dir in $PATH
2420do
2421  IFS=$as_save_IFS
2422  test -z "$as_dir" && as_dir=.
2423    for ac_exec_ext in '' $ac_executable_extensions; do
2424  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2425    ac_cv_prog_ac_ct_STRIP="strip"
2426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2427    break 2
2428  fi
2429done
2430  done
2431IFS=$as_save_IFS
2432
2433fi
2434fi
2435ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2436if test -n "$ac_ct_STRIP"; then
2437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2438$as_echo "$ac_ct_STRIP" >&6; }
2439else
2440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2441$as_echo "no" >&6; }
2442fi
2443
2444  if test "x$ac_ct_STRIP" = x; then
2445    STRIP=":"
2446  else
2447    case $cross_compiling:$ac_tool_warned in
2448yes:)
2449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2451ac_tool_warned=yes ;;
2452esac
2453    STRIP=$ac_ct_STRIP
2454  fi
2455else
2456  STRIP="$ac_cv_prog_STRIP"
2457fi
2458
2459fi
2460INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2461
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2463$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2464if test -z "$MKDIR_P"; then
2465  if ${ac_cv_path_mkdir+:} false; then :
2466  $as_echo_n "(cached) " >&6
2467else
2468  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2470do
2471  IFS=$as_save_IFS
2472  test -z "$as_dir" && as_dir=.
2473    for ac_prog in mkdir gmkdir; do
2474	 for ac_exec_ext in '' $ac_executable_extensions; do
2475	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2476	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2477	     'mkdir (GNU coreutils) '* | \
2478	     'mkdir (coreutils) '* | \
2479	     'mkdir (fileutils) '4.1*)
2480	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2481	       break 3;;
2482	   esac
2483	 done
2484       done
2485  done
2486IFS=$as_save_IFS
2487
2488fi
2489
2490  test -d ./--version && rmdir ./--version
2491  if test "${ac_cv_path_mkdir+set}" = set; then
2492    MKDIR_P="$ac_cv_path_mkdir -p"
2493  else
2494    # As a last resort, use the slow shell script.  Don't cache a
2495    # value for MKDIR_P within a source directory, because that will
2496    # break other packages using the cache if that directory is
2497    # removed, or if the value is a relative name.
2498    MKDIR_P="$ac_install_sh -d"
2499  fi
2500fi
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2502$as_echo "$MKDIR_P" >&6; }
2503
2504for ac_prog in gawk mawk nawk awk
2505do
2506  # Extract the first word of "$ac_prog", so it can be a program name with args.
2507set dummy $ac_prog; ac_word=$2
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509$as_echo_n "checking for $ac_word... " >&6; }
2510if ${ac_cv_prog_AWK+:} false; then :
2511  $as_echo_n "(cached) " >&6
2512else
2513  if test -n "$AWK"; then
2514  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2515else
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH
2518do
2519  IFS=$as_save_IFS
2520  test -z "$as_dir" && as_dir=.
2521    for ac_exec_ext in '' $ac_executable_extensions; do
2522  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2523    ac_cv_prog_AWK="$ac_prog"
2524    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2525    break 2
2526  fi
2527done
2528  done
2529IFS=$as_save_IFS
2530
2531fi
2532fi
2533AWK=$ac_cv_prog_AWK
2534if test -n "$AWK"; then
2535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2536$as_echo "$AWK" >&6; }
2537else
2538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539$as_echo "no" >&6; }
2540fi
2541
2542
2543  test -n "$AWK" && break
2544done
2545
2546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2547$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2548set x ${MAKE-make}
2549ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2550if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2551  $as_echo_n "(cached) " >&6
2552else
2553  cat >conftest.make <<\_ACEOF
2554SHELL = /bin/sh
2555all:
2556	@echo '@@@%%%=$(MAKE)=@@@%%%'
2557_ACEOF
2558# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2559case `${MAKE-make} -f conftest.make 2>/dev/null` in
2560  *@@@%%%=?*=@@@%%%*)
2561    eval ac_cv_prog_make_${ac_make}_set=yes;;
2562  *)
2563    eval ac_cv_prog_make_${ac_make}_set=no;;
2564esac
2565rm -f conftest.make
2566fi
2567if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2569$as_echo "yes" >&6; }
2570  SET_MAKE=
2571else
2572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573$as_echo "no" >&6; }
2574  SET_MAKE="MAKE=${MAKE-make}"
2575fi
2576
2577rm -rf .tst 2>/dev/null
2578mkdir .tst 2>/dev/null
2579if test -d .tst; then
2580  am__leading_dot=.
2581else
2582  am__leading_dot=_
2583fi
2584rmdir .tst 2>/dev/null
2585
2586# Check whether --enable-silent-rules was given.
2587if test "${enable_silent_rules+set}" = set; then :
2588  enableval=$enable_silent_rules;
2589fi
2590
2591case $enable_silent_rules in # (((
2592  yes) AM_DEFAULT_VERBOSITY=0;;
2593   no) AM_DEFAULT_VERBOSITY=1;;
2594    *) AM_DEFAULT_VERBOSITY=1;;
2595esac
2596am_make=${MAKE-make}
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2598$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2599if ${am_cv_make_support_nested_variables+:} false; then :
2600  $as_echo_n "(cached) " >&6
2601else
2602  if $as_echo 'TRUE=$(BAR$(V))
2603BAR0=false
2604BAR1=true
2605V=1
2606am__doit:
2607	@$(TRUE)
2608.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2609  am_cv_make_support_nested_variables=yes
2610else
2611  am_cv_make_support_nested_variables=no
2612fi
2613fi
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2615$as_echo "$am_cv_make_support_nested_variables" >&6; }
2616if test $am_cv_make_support_nested_variables = yes; then
2617    AM_V='$(V)'
2618  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2619else
2620  AM_V=$AM_DEFAULT_VERBOSITY
2621  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2622fi
2623AM_BACKSLASH='\'
2624
2625if test "`cd $srcdir && pwd`" != "`pwd`"; then
2626  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2627  # is not polluted with repeated "-I."
2628  am__isrc=' -I$(srcdir)'
2629  # test to see if srcdir already configured
2630  if test -f $srcdir/config.status; then
2631    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2632  fi
2633fi
2634
2635# test whether we have cygpath
2636if test -z "$CYGPATH_W"; then
2637  if (cygpath --version) >/dev/null 2>/dev/null; then
2638    CYGPATH_W='cygpath -w'
2639  else
2640    CYGPATH_W=echo
2641  fi
2642fi
2643
2644
2645# Define the identity of the package.
2646 PACKAGE='versiontest'
2647 VERSION='1.1'
2648
2649
2650cat >>confdefs.h <<_ACEOF
2651#define PACKAGE "$PACKAGE"
2652_ACEOF
2653
2654
2655cat >>confdefs.h <<_ACEOF
2656#define VERSION "$VERSION"
2657_ACEOF
2658
2659# Some tools Automake needs.
2660
2661ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2662
2663
2664AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2665
2666
2667AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2668
2669
2670AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2671
2672
2673MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2674
2675# For better backward compatibility.  To be removed once Automake 1.9.x
2676# dies out for good.  For more background, see:
2677# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2678# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2679mkdir_p='$(MKDIR_P)'
2680
2681# We need awk for the "check" target (and possibly the TAP driver).  The
2682# system "awk" is bad on some platforms.
2683# Always define AMTAR for backward compatibility.  Yes, it's still used
2684# in the wild :-(  We should find a proper way to deprecate it ...
2685AMTAR='$${TAR-tar}'
2686
2687
2688# We'll loop over all known methods to create a tar archive until one works.
2689_am_tools='gnutar  pax cpio none'
2690
2691am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2692
2693
2694
2695
2696
2697
2698# POSIX will say in a future version that running "rm -f" with no argument
2699# is OK; and we want to be able to make that assumption in our Makefile
2700# recipes.  So use an aggressive probe to check that the usage we want is
2701# actually supported "in the wild" to an acceptable degree.
2702# See automake bug#10828.
2703# To make any issue more visible, cause the running configure to be aborted
2704# by default if the 'rm' program in use doesn't match our expectations; the
2705# user can still override this though.
2706if rm -f && rm -fr && rm -rf; then : OK; else
2707  cat >&2 <<'END'
2708Oops!
2709
2710Your 'rm' program seems unable to run without file operands specified
2711on the command line, even when the '-f' option is present.  This is contrary
2712to the behaviour of most rm programs out there, and not conforming with
2713the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2714
2715Please tell bug-automake@gnu.org about your system, including the value
2716of your $PATH and any error possibly output before this message.  This
2717can help us improve future automake versions.
2718
2719END
2720  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2721    echo 'Configuration will proceed anyway, since you have set the' >&2
2722    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2723    echo >&2
2724  else
2725    cat >&2 <<'END'
2726Aborting the configuration process, to ensure you take notice of the issue.
2727
2728You can download and install GNU coreutils to get an 'rm' implementation
2729that behaves properly: <http://www.gnu.org/software/coreutils/>.
2730
2731If you want to complete the configuration process using your problematic
2732'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2733to "yes", and re-run configure.
2734
2735END
2736    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2737  fi
2738fi
2739
2740
2741case `pwd` in
2742  *\ * | *\	*)
2743    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2744$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2745esac
2746
2747
2748
2749macro_version='2.4.6'
2750macro_revision='2.4.6'
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764ltmain=$ac_aux_dir/ltmain.sh
2765
2766# Make sure we can run config.sub.
2767$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2768  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2769
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2771$as_echo_n "checking build system type... " >&6; }
2772if ${ac_cv_build+:} false; then :
2773  $as_echo_n "(cached) " >&6
2774else
2775  ac_build_alias=$build_alias
2776test "x$ac_build_alias" = x &&
2777  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2778test "x$ac_build_alias" = x &&
2779  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2780ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2781  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2782
2783fi
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2785$as_echo "$ac_cv_build" >&6; }
2786case $ac_cv_build in
2787*-*-*) ;;
2788*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2789esac
2790build=$ac_cv_build
2791ac_save_IFS=$IFS; IFS='-'
2792set x $ac_cv_build
2793shift
2794build_cpu=$1
2795build_vendor=$2
2796shift; shift
2797# Remember, the first character of IFS is used to create $*,
2798# except with old shells:
2799build_os=$*
2800IFS=$ac_save_IFS
2801case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2802
2803
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2805$as_echo_n "checking host system type... " >&6; }
2806if ${ac_cv_host+:} false; then :
2807  $as_echo_n "(cached) " >&6
2808else
2809  if test "x$host_alias" = x; then
2810  ac_cv_host=$ac_cv_build
2811else
2812  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2813    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2814fi
2815
2816fi
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2818$as_echo "$ac_cv_host" >&6; }
2819case $ac_cv_host in
2820*-*-*) ;;
2821*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2822esac
2823host=$ac_cv_host
2824ac_save_IFS=$IFS; IFS='-'
2825set x $ac_cv_host
2826shift
2827host_cpu=$1
2828host_vendor=$2
2829shift; shift
2830# Remember, the first character of IFS is used to create $*,
2831# except with old shells:
2832host_os=$*
2833IFS=$ac_save_IFS
2834case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2835
2836
2837# Backslashify metacharacters that are still active within
2838# double-quoted strings.
2839sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2840
2841# Same as above, but do not quote variable references.
2842double_quote_subst='s/\(["`\\]\)/\\\1/g'
2843
2844# Sed substitution to delay expansion of an escaped shell variable in a
2845# double_quote_subst'ed string.
2846delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2847
2848# Sed substitution to delay expansion of an escaped single quote.
2849delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2850
2851# Sed substitution to avoid accidental globbing in evaled expressions
2852no_glob_subst='s/\*/\\\*/g'
2853
2854ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2855ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2856ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2857
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2859$as_echo_n "checking how to print strings... " >&6; }
2860# Test print first, because it will be a builtin if present.
2861if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2862   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2863  ECHO='print -r --'
2864elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2865  ECHO='printf %s\n'
2866else
2867  # Use this function as a fallback that always works.
2868  func_fallback_echo ()
2869  {
2870    eval 'cat <<_LTECHO_EOF
2871$1
2872_LTECHO_EOF'
2873  }
2874  ECHO='func_fallback_echo'
2875fi
2876
2877# func_echo_all arg...
2878# Invoke $ECHO with all args, space-separated.
2879func_echo_all ()
2880{
2881    $ECHO ""
2882}
2883
2884case $ECHO in
2885  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2886$as_echo "printf" >&6; } ;;
2887  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2888$as_echo "print -r" >&6; } ;;
2889  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2890$as_echo "cat" >&6; } ;;
2891esac
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906DEPDIR="${am__leading_dot}deps"
2907
2908ac_config_commands="$ac_config_commands depfiles"
2909
2910
2911am_make=${MAKE-make}
2912cat > confinc << 'END'
2913am__doit:
2914	@echo this is the am__doit target
2915.PHONY: am__doit
2916END
2917# If we don't find an include directive, just comment out the code.
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2919$as_echo_n "checking for style of include used by $am_make... " >&6; }
2920am__include="#"
2921am__quote=
2922_am_result=none
2923# First try GNU make style include.
2924echo "include confinc" > confmf
2925# Ignore all kinds of additional output from 'make'.
2926case `$am_make -s -f confmf 2> /dev/null` in #(
2927*the\ am__doit\ target*)
2928  am__include=include
2929  am__quote=
2930  _am_result=GNU
2931  ;;
2932esac
2933# Now try BSD make style include.
2934if test "$am__include" = "#"; then
2935   echo '.include "confinc"' > confmf
2936   case `$am_make -s -f confmf 2> /dev/null` in #(
2937   *the\ am__doit\ target*)
2938     am__include=.include
2939     am__quote="\""
2940     _am_result=BSD
2941     ;;
2942   esac
2943fi
2944
2945
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2947$as_echo "$_am_result" >&6; }
2948rm -f confinc confmf
2949
2950# Check whether --enable-dependency-tracking was given.
2951if test "${enable_dependency_tracking+set}" = set; then :
2952  enableval=$enable_dependency_tracking;
2953fi
2954
2955if test "x$enable_dependency_tracking" != xno; then
2956  am_depcomp="$ac_aux_dir/depcomp"
2957  AMDEPBACKSLASH='\'
2958  am__nodep='_no'
2959fi
2960 if test "x$enable_dependency_tracking" != xno; then
2961  AMDEP_TRUE=
2962  AMDEP_FALSE='#'
2963else
2964  AMDEP_TRUE='#'
2965  AMDEP_FALSE=
2966fi
2967
2968
2969ac_ext=c
2970ac_cpp='$CPP $CPPFLAGS'
2971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2973ac_compiler_gnu=$ac_cv_c_compiler_gnu
2974if test -n "$ac_tool_prefix"; then
2975  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2976set dummy ${ac_tool_prefix}gcc; ac_word=$2
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978$as_echo_n "checking for $ac_word... " >&6; }
2979if ${ac_cv_prog_CC+:} false; then :
2980  $as_echo_n "(cached) " >&6
2981else
2982  if test -n "$CC"; then
2983  ac_cv_prog_CC="$CC" # Let the user override the test.
2984else
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988  IFS=$as_save_IFS
2989  test -z "$as_dir" && as_dir=.
2990    for ac_exec_ext in '' $ac_executable_extensions; do
2991  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994    break 2
2995  fi
2996done
2997  done
2998IFS=$as_save_IFS
2999
3000fi
3001fi
3002CC=$ac_cv_prog_CC
3003if test -n "$CC"; then
3004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3005$as_echo "$CC" >&6; }
3006else
3007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008$as_echo "no" >&6; }
3009fi
3010
3011
3012fi
3013if test -z "$ac_cv_prog_CC"; then
3014  ac_ct_CC=$CC
3015  # Extract the first word of "gcc", so it can be a program name with args.
3016set dummy gcc; ac_word=$2
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018$as_echo_n "checking for $ac_word... " >&6; }
3019if ${ac_cv_prog_ac_ct_CC+:} false; then :
3020  $as_echo_n "(cached) " >&6
3021else
3022  if test -n "$ac_ct_CC"; then
3023  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3024else
3025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026for as_dir in $PATH
3027do
3028  IFS=$as_save_IFS
3029  test -z "$as_dir" && as_dir=.
3030    for ac_exec_ext in '' $ac_executable_extensions; do
3031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3032    ac_cv_prog_ac_ct_CC="gcc"
3033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034    break 2
3035  fi
3036done
3037  done
3038IFS=$as_save_IFS
3039
3040fi
3041fi
3042ac_ct_CC=$ac_cv_prog_ac_ct_CC
3043if test -n "$ac_ct_CC"; then
3044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3045$as_echo "$ac_ct_CC" >&6; }
3046else
3047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048$as_echo "no" >&6; }
3049fi
3050
3051  if test "x$ac_ct_CC" = x; then
3052    CC=""
3053  else
3054    case $cross_compiling:$ac_tool_warned in
3055yes:)
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3058ac_tool_warned=yes ;;
3059esac
3060    CC=$ac_ct_CC
3061  fi
3062else
3063  CC="$ac_cv_prog_CC"
3064fi
3065
3066if test -z "$CC"; then
3067          if test -n "$ac_tool_prefix"; then
3068    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3069set dummy ${ac_tool_prefix}cc; ac_word=$2
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071$as_echo_n "checking for $ac_word... " >&6; }
3072if ${ac_cv_prog_CC+:} false; then :
3073  $as_echo_n "(cached) " >&6
3074else
3075  if test -n "$CC"; then
3076  ac_cv_prog_CC="$CC" # Let the user override the test.
3077else
3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079for as_dir in $PATH
3080do
3081  IFS=$as_save_IFS
3082  test -z "$as_dir" && as_dir=.
3083    for ac_exec_ext in '' $ac_executable_extensions; do
3084  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3085    ac_cv_prog_CC="${ac_tool_prefix}cc"
3086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087    break 2
3088  fi
3089done
3090  done
3091IFS=$as_save_IFS
3092
3093fi
3094fi
3095CC=$ac_cv_prog_CC
3096if test -n "$CC"; then
3097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3098$as_echo "$CC" >&6; }
3099else
3100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101$as_echo "no" >&6; }
3102fi
3103
3104
3105  fi
3106fi
3107if test -z "$CC"; then
3108  # Extract the first word of "cc", so it can be a program name with args.
3109set dummy cc; ac_word=$2
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111$as_echo_n "checking for $ac_word... " >&6; }
3112if ${ac_cv_prog_CC+:} false; then :
3113  $as_echo_n "(cached) " >&6
3114else
3115  if test -n "$CC"; then
3116  ac_cv_prog_CC="$CC" # Let the user override the test.
3117else
3118  ac_prog_rejected=no
3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH
3121do
3122  IFS=$as_save_IFS
3123  test -z "$as_dir" && as_dir=.
3124    for ac_exec_ext in '' $ac_executable_extensions; do
3125  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3127       ac_prog_rejected=yes
3128       continue
3129     fi
3130    ac_cv_prog_CC="cc"
3131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132    break 2
3133  fi
3134done
3135  done
3136IFS=$as_save_IFS
3137
3138if test $ac_prog_rejected = yes; then
3139  # We found a bogon in the path, so make sure we never use it.
3140  set dummy $ac_cv_prog_CC
3141  shift
3142  if test $# != 0; then
3143    # We chose a different compiler from the bogus one.
3144    # However, it has the same basename, so the bogon will be chosen
3145    # first if we set CC to just the basename; use the full file name.
3146    shift
3147    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3148  fi
3149fi
3150fi
3151fi
3152CC=$ac_cv_prog_CC
3153if test -n "$CC"; then
3154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3155$as_echo "$CC" >&6; }
3156else
3157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158$as_echo "no" >&6; }
3159fi
3160
3161
3162fi
3163if test -z "$CC"; then
3164  if test -n "$ac_tool_prefix"; then
3165  for ac_prog in cl.exe
3166  do
3167    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3168set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170$as_echo_n "checking for $ac_word... " >&6; }
3171if ${ac_cv_prog_CC+:} false; then :
3172  $as_echo_n "(cached) " >&6
3173else
3174  if test -n "$CC"; then
3175  ac_cv_prog_CC="$CC" # Let the user override the test.
3176else
3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178for as_dir in $PATH
3179do
3180  IFS=$as_save_IFS
3181  test -z "$as_dir" && as_dir=.
3182    for ac_exec_ext in '' $ac_executable_extensions; do
3183  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186    break 2
3187  fi
3188done
3189  done
3190IFS=$as_save_IFS
3191
3192fi
3193fi
3194CC=$ac_cv_prog_CC
3195if test -n "$CC"; then
3196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197$as_echo "$CC" >&6; }
3198else
3199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200$as_echo "no" >&6; }
3201fi
3202
3203
3204    test -n "$CC" && break
3205  done
3206fi
3207if test -z "$CC"; then
3208  ac_ct_CC=$CC
3209  for ac_prog in cl.exe
3210do
3211  # Extract the first word of "$ac_prog", so it can be a program name with args.
3212set dummy $ac_prog; ac_word=$2
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214$as_echo_n "checking for $ac_word... " >&6; }
3215if ${ac_cv_prog_ac_ct_CC+:} false; then :
3216  $as_echo_n "(cached) " >&6
3217else
3218  if test -n "$ac_ct_CC"; then
3219  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3220else
3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222for as_dir in $PATH
3223do
3224  IFS=$as_save_IFS
3225  test -z "$as_dir" && as_dir=.
3226    for ac_exec_ext in '' $ac_executable_extensions; do
3227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228    ac_cv_prog_ac_ct_CC="$ac_prog"
3229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230    break 2
3231  fi
3232done
3233  done
3234IFS=$as_save_IFS
3235
3236fi
3237fi
3238ac_ct_CC=$ac_cv_prog_ac_ct_CC
3239if test -n "$ac_ct_CC"; then
3240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3241$as_echo "$ac_ct_CC" >&6; }
3242else
3243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244$as_echo "no" >&6; }
3245fi
3246
3247
3248  test -n "$ac_ct_CC" && break
3249done
3250
3251  if test "x$ac_ct_CC" = x; then
3252    CC=""
3253  else
3254    case $cross_compiling:$ac_tool_warned in
3255yes:)
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3258ac_tool_warned=yes ;;
3259esac
3260    CC=$ac_ct_CC
3261  fi
3262fi
3263
3264fi
3265
3266
3267test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3269as_fn_error $? "no acceptable C compiler found in \$PATH
3270See \`config.log' for more details" "$LINENO" 5; }
3271
3272# Provide some information about the compiler.
3273$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3274set X $ac_compile
3275ac_compiler=$2
3276for ac_option in --version -v -V -qversion; do
3277  { { ac_try="$ac_compiler $ac_option >&5"
3278case "(($ac_try" in
3279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280  *) ac_try_echo=$ac_try;;
3281esac
3282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283$as_echo "$ac_try_echo"; } >&5
3284  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3285  ac_status=$?
3286  if test -s conftest.err; then
3287    sed '10a\
3288... rest of stderr output deleted ...
3289         10q' conftest.err >conftest.er1
3290    cat conftest.er1 >&5
3291  fi
3292  rm -f conftest.er1 conftest.err
3293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294  test $ac_status = 0; }
3295done
3296
3297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298/* end confdefs.h.  */
3299
3300int
3301main ()
3302{
3303
3304  ;
3305  return 0;
3306}
3307_ACEOF
3308ac_clean_files_save=$ac_clean_files
3309ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3310# Try to create an executable without -o first, disregard a.out.
3311# It will help us diagnose broken compilers, and finding out an intuition
3312# of exeext.
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3314$as_echo_n "checking whether the C compiler works... " >&6; }
3315ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3316
3317# The possible output files:
3318ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3319
3320ac_rmfiles=
3321for ac_file in $ac_files
3322do
3323  case $ac_file in
3324    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3325    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3326  esac
3327done
3328rm -f $ac_rmfiles
3329
3330if { { ac_try="$ac_link_default"
3331case "(($ac_try" in
3332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333  *) ac_try_echo=$ac_try;;
3334esac
3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336$as_echo "$ac_try_echo"; } >&5
3337  (eval "$ac_link_default") 2>&5
3338  ac_status=$?
3339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340  test $ac_status = 0; }; then :
3341  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3342# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3343# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3344# so that the user can short-circuit this test for compilers unknown to
3345# Autoconf.
3346for ac_file in $ac_files ''
3347do
3348  test -f "$ac_file" || continue
3349  case $ac_file in
3350    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3351	;;
3352    [ab].out )
3353	# We found the default executable, but exeext='' is most
3354	# certainly right.
3355	break;;
3356    *.* )
3357	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3358	then :; else
3359	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3360	fi
3361	# We set ac_cv_exeext here because the later test for it is not
3362	# safe: cross compilers may not add the suffix if given an `-o'
3363	# argument, so we may need to know it at that point already.
3364	# Even if this section looks crufty: it has the advantage of
3365	# actually working.
3366	break;;
3367    * )
3368	break;;
3369  esac
3370done
3371test "$ac_cv_exeext" = no && ac_cv_exeext=
3372
3373else
3374  ac_file=''
3375fi
3376if test -z "$ac_file"; then :
3377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378$as_echo "no" >&6; }
3379$as_echo "$as_me: failed program was:" >&5
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
3382{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384as_fn_error 77 "C compiler cannot create executables
3385See \`config.log' for more details" "$LINENO" 5; }
3386else
3387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3388$as_echo "yes" >&6; }
3389fi
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3391$as_echo_n "checking for C compiler default output file name... " >&6; }
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3393$as_echo "$ac_file" >&6; }
3394ac_exeext=$ac_cv_exeext
3395
3396rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3397ac_clean_files=$ac_clean_files_save
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3399$as_echo_n "checking for suffix of executables... " >&6; }
3400if { { ac_try="$ac_link"
3401case "(($ac_try" in
3402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403  *) ac_try_echo=$ac_try;;
3404esac
3405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406$as_echo "$ac_try_echo"; } >&5
3407  (eval "$ac_link") 2>&5
3408  ac_status=$?
3409  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410  test $ac_status = 0; }; then :
3411  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3412# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3413# work properly (i.e., refer to `conftest.exe'), while it won't with
3414# `rm'.
3415for ac_file in conftest.exe conftest conftest.*; do
3416  test -f "$ac_file" || continue
3417  case $ac_file in
3418    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3419    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3420	  break;;
3421    * ) break;;
3422  esac
3423done
3424else
3425  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3428See \`config.log' for more details" "$LINENO" 5; }
3429fi
3430rm -f conftest conftest$ac_cv_exeext
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3432$as_echo "$ac_cv_exeext" >&6; }
3433
3434rm -f conftest.$ac_ext
3435EXEEXT=$ac_cv_exeext
3436ac_exeext=$EXEEXT
3437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438/* end confdefs.h.  */
3439#include <stdio.h>
3440int
3441main ()
3442{
3443FILE *f = fopen ("conftest.out", "w");
3444 return ferror (f) || fclose (f) != 0;
3445
3446  ;
3447  return 0;
3448}
3449_ACEOF
3450ac_clean_files="$ac_clean_files conftest.out"
3451# Check that the compiler produces executables we can run.  If not, either
3452# the compiler is broken, or we cross compile.
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3454$as_echo_n "checking whether we are cross compiling... " >&6; }
3455if test "$cross_compiling" != yes; then
3456  { { ac_try="$ac_link"
3457case "(($ac_try" in
3458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459  *) ac_try_echo=$ac_try;;
3460esac
3461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462$as_echo "$ac_try_echo"; } >&5
3463  (eval "$ac_link") 2>&5
3464  ac_status=$?
3465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466  test $ac_status = 0; }
3467  if { ac_try='./conftest$ac_cv_exeext'
3468  { { case "(($ac_try" in
3469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470  *) ac_try_echo=$ac_try;;
3471esac
3472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473$as_echo "$ac_try_echo"; } >&5
3474  (eval "$ac_try") 2>&5
3475  ac_status=$?
3476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477  test $ac_status = 0; }; }; then
3478    cross_compiling=no
3479  else
3480    if test "$cross_compiling" = maybe; then
3481	cross_compiling=yes
3482    else
3483	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485as_fn_error $? "cannot run C compiled programs.
3486If you meant to cross compile, use \`--host'.
3487See \`config.log' for more details" "$LINENO" 5; }
3488    fi
3489  fi
3490fi
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3492$as_echo "$cross_compiling" >&6; }
3493
3494rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3495ac_clean_files=$ac_clean_files_save
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3497$as_echo_n "checking for suffix of object files... " >&6; }
3498if ${ac_cv_objext+:} false; then :
3499  $as_echo_n "(cached) " >&6
3500else
3501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502/* end confdefs.h.  */
3503
3504int
3505main ()
3506{
3507
3508  ;
3509  return 0;
3510}
3511_ACEOF
3512rm -f conftest.o conftest.obj
3513if { { ac_try="$ac_compile"
3514case "(($ac_try" in
3515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516  *) ac_try_echo=$ac_try;;
3517esac
3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519$as_echo "$ac_try_echo"; } >&5
3520  (eval "$ac_compile") 2>&5
3521  ac_status=$?
3522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523  test $ac_status = 0; }; then :
3524  for ac_file in conftest.o conftest.obj conftest.*; do
3525  test -f "$ac_file" || continue;
3526  case $ac_file in
3527    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3528    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3529       break;;
3530  esac
3531done
3532else
3533  $as_echo "$as_me: failed program was:" >&5
3534sed 's/^/| /' conftest.$ac_ext >&5
3535
3536{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3538as_fn_error $? "cannot compute suffix of object files: cannot compile
3539See \`config.log' for more details" "$LINENO" 5; }
3540fi
3541rm -f conftest.$ac_cv_objext conftest.$ac_ext
3542fi
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3544$as_echo "$ac_cv_objext" >&6; }
3545OBJEXT=$ac_cv_objext
3546ac_objext=$OBJEXT
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3548$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3549if ${ac_cv_c_compiler_gnu+:} false; then :
3550  $as_echo_n "(cached) " >&6
3551else
3552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553/* end confdefs.h.  */
3554
3555int
3556main ()
3557{
3558#ifndef __GNUC__
3559       choke me
3560#endif
3561
3562  ;
3563  return 0;
3564}
3565_ACEOF
3566if ac_fn_c_try_compile "$LINENO"; then :
3567  ac_compiler_gnu=yes
3568else
3569  ac_compiler_gnu=no
3570fi
3571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572ac_cv_c_compiler_gnu=$ac_compiler_gnu
3573
3574fi
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3576$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3577if test $ac_compiler_gnu = yes; then
3578  GCC=yes
3579else
3580  GCC=
3581fi
3582ac_test_CFLAGS=${CFLAGS+set}
3583ac_save_CFLAGS=$CFLAGS
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3585$as_echo_n "checking whether $CC accepts -g... " >&6; }
3586if ${ac_cv_prog_cc_g+:} false; then :
3587  $as_echo_n "(cached) " >&6
3588else
3589  ac_save_c_werror_flag=$ac_c_werror_flag
3590   ac_c_werror_flag=yes
3591   ac_cv_prog_cc_g=no
3592   CFLAGS="-g"
3593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594/* end confdefs.h.  */
3595
3596int
3597main ()
3598{
3599
3600  ;
3601  return 0;
3602}
3603_ACEOF
3604if ac_fn_c_try_compile "$LINENO"; then :
3605  ac_cv_prog_cc_g=yes
3606else
3607  CFLAGS=""
3608      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609/* end confdefs.h.  */
3610
3611int
3612main ()
3613{
3614
3615  ;
3616  return 0;
3617}
3618_ACEOF
3619if ac_fn_c_try_compile "$LINENO"; then :
3620
3621else
3622  ac_c_werror_flag=$ac_save_c_werror_flag
3623	 CFLAGS="-g"
3624	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625/* end confdefs.h.  */
3626
3627int
3628main ()
3629{
3630
3631  ;
3632  return 0;
3633}
3634_ACEOF
3635if ac_fn_c_try_compile "$LINENO"; then :
3636  ac_cv_prog_cc_g=yes
3637fi
3638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639fi
3640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641fi
3642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643   ac_c_werror_flag=$ac_save_c_werror_flag
3644fi
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3646$as_echo "$ac_cv_prog_cc_g" >&6; }
3647if test "$ac_test_CFLAGS" = set; then
3648  CFLAGS=$ac_save_CFLAGS
3649elif test $ac_cv_prog_cc_g = yes; then
3650  if test "$GCC" = yes; then
3651    CFLAGS="-g -O2"
3652  else
3653    CFLAGS="-g"
3654  fi
3655else
3656  if test "$GCC" = yes; then
3657    CFLAGS="-O2"
3658  else
3659    CFLAGS=
3660  fi
3661fi
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3663$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3664if ${ac_cv_prog_cc_c89+:} false; then :
3665  $as_echo_n "(cached) " >&6
3666else
3667  ac_cv_prog_cc_c89=no
3668ac_save_CC=$CC
3669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670/* end confdefs.h.  */
3671#include <stdarg.h>
3672#include <stdio.h>
3673struct stat;
3674/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3675struct buf { int x; };
3676FILE * (*rcsopen) (struct buf *, struct stat *, int);
3677static char *e (p, i)
3678     char **p;
3679     int i;
3680{
3681  return p[i];
3682}
3683static char *f (char * (*g) (char **, int), char **p, ...)
3684{
3685  char *s;
3686  va_list v;
3687  va_start (v,p);
3688  s = g (p, va_arg (v,int));
3689  va_end (v);
3690  return s;
3691}
3692
3693/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3694   function prototypes and stuff, but not '\xHH' hex character constants.
3695   These don't provoke an error unfortunately, instead are silently treated
3696   as 'x'.  The following induces an error, until -std is added to get
3697   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3698   array size at least.  It's necessary to write '\x00'==0 to get something
3699   that's true only with -std.  */
3700int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3701
3702/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3703   inside strings and character constants.  */
3704#define FOO(x) 'x'
3705int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3706
3707int test (int i, double x);
3708struct s1 {int (*f) (int a);};
3709struct s2 {int (*f) (double a);};
3710int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3711int argc;
3712char **argv;
3713int
3714main ()
3715{
3716return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3717  ;
3718  return 0;
3719}
3720_ACEOF
3721for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3722	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3723do
3724  CC="$ac_save_CC $ac_arg"
3725  if ac_fn_c_try_compile "$LINENO"; then :
3726  ac_cv_prog_cc_c89=$ac_arg
3727fi
3728rm -f core conftest.err conftest.$ac_objext
3729  test "x$ac_cv_prog_cc_c89" != "xno" && break
3730done
3731rm -f conftest.$ac_ext
3732CC=$ac_save_CC
3733
3734fi
3735# AC_CACHE_VAL
3736case "x$ac_cv_prog_cc_c89" in
3737  x)
3738    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3739$as_echo "none needed" >&6; } ;;
3740  xno)
3741    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3742$as_echo "unsupported" >&6; } ;;
3743  *)
3744    CC="$CC $ac_cv_prog_cc_c89"
3745    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3746$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3747esac
3748if test "x$ac_cv_prog_cc_c89" != xno; then :
3749
3750fi
3751
3752ac_ext=c
3753ac_cpp='$CPP $CPPFLAGS'
3754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3756ac_compiler_gnu=$ac_cv_c_compiler_gnu
3757
3758ac_ext=c
3759ac_cpp='$CPP $CPPFLAGS'
3760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762ac_compiler_gnu=$ac_cv_c_compiler_gnu
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3764$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3765if ${am_cv_prog_cc_c_o+:} false; then :
3766  $as_echo_n "(cached) " >&6
3767else
3768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769/* end confdefs.h.  */
3770
3771int
3772main ()
3773{
3774
3775  ;
3776  return 0;
3777}
3778_ACEOF
3779  # Make sure it works both with $CC and with simple cc.
3780  # Following AC_PROG_CC_C_O, we do the test twice because some
3781  # compilers refuse to overwrite an existing .o file with -o,
3782  # though they will create one.
3783  am_cv_prog_cc_c_o=yes
3784  for am_i in 1 2; do
3785    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3786   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3787   ac_status=$?
3788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789   (exit $ac_status); } \
3790         && test -f conftest2.$ac_objext; then
3791      : OK
3792    else
3793      am_cv_prog_cc_c_o=no
3794      break
3795    fi
3796  done
3797  rm -f core conftest*
3798  unset am_i
3799fi
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3801$as_echo "$am_cv_prog_cc_c_o" >&6; }
3802if test "$am_cv_prog_cc_c_o" != yes; then
3803   # Losing compiler, so override with the script.
3804   # FIXME: It is wrong to rewrite CC.
3805   # But if we don't then we get into trouble of one sort or another.
3806   # A longer-term fix would be to have automake use am__CC in this case,
3807   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3808   CC="$am_aux_dir/compile $CC"
3809fi
3810ac_ext=c
3811ac_cpp='$CPP $CPPFLAGS'
3812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815
3816
3817depcc="$CC"   am_compiler_list=
3818
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3820$as_echo_n "checking dependency style of $depcc... " >&6; }
3821if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3822  $as_echo_n "(cached) " >&6
3823else
3824  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3825  # We make a subdir and do the tests there.  Otherwise we can end up
3826  # making bogus files that we don't know about and never remove.  For
3827  # instance it was reported that on HP-UX the gcc test will end up
3828  # making a dummy file named 'D' -- because '-MD' means "put the output
3829  # in D".
3830  rm -rf conftest.dir
3831  mkdir conftest.dir
3832  # Copy depcomp to subdir because otherwise we won't find it if we're
3833  # using a relative directory.
3834  cp "$am_depcomp" conftest.dir
3835  cd conftest.dir
3836  # We will build objects and dependencies in a subdirectory because
3837  # it helps to detect inapplicable dependency modes.  For instance
3838  # both Tru64's cc and ICC support -MD to output dependencies as a
3839  # side effect of compilation, but ICC will put the dependencies in
3840  # the current directory while Tru64 will put them in the object
3841  # directory.
3842  mkdir sub
3843
3844  am_cv_CC_dependencies_compiler_type=none
3845  if test "$am_compiler_list" = ""; then
3846     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3847  fi
3848  am__universal=false
3849  case " $depcc " in #(
3850     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3851     esac
3852
3853  for depmode in $am_compiler_list; do
3854    # Setup a source with many dependencies, because some compilers
3855    # like to wrap large dependency lists on column 80 (with \), and
3856    # we should not choose a depcomp mode which is confused by this.
3857    #
3858    # We need to recreate these files for each test, as the compiler may
3859    # overwrite some of them when testing with obscure command lines.
3860    # This happens at least with the AIX C compiler.
3861    : > sub/conftest.c
3862    for i in 1 2 3 4 5 6; do
3863      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3864      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3865      # Solaris 10 /bin/sh.
3866      echo '/* dummy */' > sub/conftst$i.h
3867    done
3868    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3869
3870    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3871    # mode.  It turns out that the SunPro C++ compiler does not properly
3872    # handle '-M -o', and we need to detect this.  Also, some Intel
3873    # versions had trouble with output in subdirs.
3874    am__obj=sub/conftest.${OBJEXT-o}
3875    am__minus_obj="-o $am__obj"
3876    case $depmode in
3877    gcc)
3878      # This depmode causes a compiler race in universal mode.
3879      test "$am__universal" = false || continue
3880      ;;
3881    nosideeffect)
3882      # After this tag, mechanisms are not by side-effect, so they'll
3883      # only be used when explicitly requested.
3884      if test "x$enable_dependency_tracking" = xyes; then
3885	continue
3886      else
3887	break
3888      fi
3889      ;;
3890    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3891      # This compiler won't grok '-c -o', but also, the minuso test has
3892      # not run yet.  These depmodes are late enough in the game, and
3893      # so weak that their functioning should not be impacted.
3894      am__obj=conftest.${OBJEXT-o}
3895      am__minus_obj=
3896      ;;
3897    none) break ;;
3898    esac
3899    if depmode=$depmode \
3900       source=sub/conftest.c object=$am__obj \
3901       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3902       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3903         >/dev/null 2>conftest.err &&
3904       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3905       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3906       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3907       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3908      # icc doesn't choke on unknown options, it will just issue warnings
3909      # or remarks (even with -Werror).  So we grep stderr for any message
3910      # that says an option was ignored or not supported.
3911      # When given -MP, icc 7.0 and 7.1 complain thusly:
3912      #   icc: Command line warning: ignoring option '-M'; no argument required
3913      # The diagnosis changed in icc 8.0:
3914      #   icc: Command line remark: option '-MP' not supported
3915      if (grep 'ignoring option' conftest.err ||
3916          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3917        am_cv_CC_dependencies_compiler_type=$depmode
3918        break
3919      fi
3920    fi
3921  done
3922
3923  cd ..
3924  rm -rf conftest.dir
3925else
3926  am_cv_CC_dependencies_compiler_type=none
3927fi
3928
3929fi
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3931$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3932CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3933
3934 if
3935  test "x$enable_dependency_tracking" != xno \
3936  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3937  am__fastdepCC_TRUE=
3938  am__fastdepCC_FALSE='#'
3939else
3940  am__fastdepCC_TRUE='#'
3941  am__fastdepCC_FALSE=
3942fi
3943
3944
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3946$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3947if ${ac_cv_path_SED+:} false; then :
3948  $as_echo_n "(cached) " >&6
3949else
3950            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3951     for ac_i in 1 2 3 4 5 6 7; do
3952       ac_script="$ac_script$as_nl$ac_script"
3953     done
3954     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3955     { ac_script=; unset ac_script;}
3956     if test -z "$SED"; then
3957  ac_path_SED_found=false
3958  # Loop through the user's path and test for each of PROGNAME-LIST
3959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH
3961do
3962  IFS=$as_save_IFS
3963  test -z "$as_dir" && as_dir=.
3964    for ac_prog in sed gsed; do
3965    for ac_exec_ext in '' $ac_executable_extensions; do
3966      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3967      as_fn_executable_p "$ac_path_SED" || continue
3968# Check for GNU ac_path_SED and select it if it is found.
3969  # Check for GNU $ac_path_SED
3970case `"$ac_path_SED" --version 2>&1` in
3971*GNU*)
3972  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3973*)
3974  ac_count=0
3975  $as_echo_n 0123456789 >"conftest.in"
3976  while :
3977  do
3978    cat "conftest.in" "conftest.in" >"conftest.tmp"
3979    mv "conftest.tmp" "conftest.in"
3980    cp "conftest.in" "conftest.nl"
3981    $as_echo '' >> "conftest.nl"
3982    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3983    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3984    as_fn_arith $ac_count + 1 && ac_count=$as_val
3985    if test $ac_count -gt ${ac_path_SED_max-0}; then
3986      # Best one so far, save it but keep looking for a better one
3987      ac_cv_path_SED="$ac_path_SED"
3988      ac_path_SED_max=$ac_count
3989    fi
3990    # 10*(2^10) chars as input seems more than enough
3991    test $ac_count -gt 10 && break
3992  done
3993  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3994esac
3995
3996      $ac_path_SED_found && break 3
3997    done
3998  done
3999  done
4000IFS=$as_save_IFS
4001  if test -z "$ac_cv_path_SED"; then
4002    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4003  fi
4004else
4005  ac_cv_path_SED=$SED
4006fi
4007
4008fi
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4010$as_echo "$ac_cv_path_SED" >&6; }
4011 SED="$ac_cv_path_SED"
4012  rm -f conftest.sed
4013
4014test -z "$SED" && SED=sed
4015Xsed="$SED -e 1s/^X//"
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4028$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4029if ${ac_cv_path_GREP+:} false; then :
4030  $as_echo_n "(cached) " >&6
4031else
4032  if test -z "$GREP"; then
4033  ac_path_GREP_found=false
4034  # Loop through the user's path and test for each of PROGNAME-LIST
4035  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4037do
4038  IFS=$as_save_IFS
4039  test -z "$as_dir" && as_dir=.
4040    for ac_prog in grep ggrep; do
4041    for ac_exec_ext in '' $ac_executable_extensions; do
4042      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4043      as_fn_executable_p "$ac_path_GREP" || continue
4044# Check for GNU ac_path_GREP and select it if it is found.
4045  # Check for GNU $ac_path_GREP
4046case `"$ac_path_GREP" --version 2>&1` in
4047*GNU*)
4048  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4049*)
4050  ac_count=0
4051  $as_echo_n 0123456789 >"conftest.in"
4052  while :
4053  do
4054    cat "conftest.in" "conftest.in" >"conftest.tmp"
4055    mv "conftest.tmp" "conftest.in"
4056    cp "conftest.in" "conftest.nl"
4057    $as_echo 'GREP' >> "conftest.nl"
4058    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4059    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4060    as_fn_arith $ac_count + 1 && ac_count=$as_val
4061    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4062      # Best one so far, save it but keep looking for a better one
4063      ac_cv_path_GREP="$ac_path_GREP"
4064      ac_path_GREP_max=$ac_count
4065    fi
4066    # 10*(2^10) chars as input seems more than enough
4067    test $ac_count -gt 10 && break
4068  done
4069  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4070esac
4071
4072      $ac_path_GREP_found && break 3
4073    done
4074  done
4075  done
4076IFS=$as_save_IFS
4077  if test -z "$ac_cv_path_GREP"; then
4078    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4079  fi
4080else
4081  ac_cv_path_GREP=$GREP
4082fi
4083
4084fi
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4086$as_echo "$ac_cv_path_GREP" >&6; }
4087 GREP="$ac_cv_path_GREP"
4088
4089
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4091$as_echo_n "checking for egrep... " >&6; }
4092if ${ac_cv_path_EGREP+:} false; then :
4093  $as_echo_n "(cached) " >&6
4094else
4095  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4096   then ac_cv_path_EGREP="$GREP -E"
4097   else
4098     if test -z "$EGREP"; then
4099  ac_path_EGREP_found=false
4100  # Loop through the user's path and test for each of PROGNAME-LIST
4101  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4103do
4104  IFS=$as_save_IFS
4105  test -z "$as_dir" && as_dir=.
4106    for ac_prog in egrep; do
4107    for ac_exec_ext in '' $ac_executable_extensions; do
4108      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4109      as_fn_executable_p "$ac_path_EGREP" || continue
4110# Check for GNU ac_path_EGREP and select it if it is found.
4111  # Check for GNU $ac_path_EGREP
4112case `"$ac_path_EGREP" --version 2>&1` in
4113*GNU*)
4114  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4115*)
4116  ac_count=0
4117  $as_echo_n 0123456789 >"conftest.in"
4118  while :
4119  do
4120    cat "conftest.in" "conftest.in" >"conftest.tmp"
4121    mv "conftest.tmp" "conftest.in"
4122    cp "conftest.in" "conftest.nl"
4123    $as_echo 'EGREP' >> "conftest.nl"
4124    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4125    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4126    as_fn_arith $ac_count + 1 && ac_count=$as_val
4127    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4128      # Best one so far, save it but keep looking for a better one
4129      ac_cv_path_EGREP="$ac_path_EGREP"
4130      ac_path_EGREP_max=$ac_count
4131    fi
4132    # 10*(2^10) chars as input seems more than enough
4133    test $ac_count -gt 10 && break
4134  done
4135  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4136esac
4137
4138      $ac_path_EGREP_found && break 3
4139    done
4140  done
4141  done
4142IFS=$as_save_IFS
4143  if test -z "$ac_cv_path_EGREP"; then
4144    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4145  fi
4146else
4147  ac_cv_path_EGREP=$EGREP
4148fi
4149
4150   fi
4151fi
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4153$as_echo "$ac_cv_path_EGREP" >&6; }
4154 EGREP="$ac_cv_path_EGREP"
4155
4156
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4158$as_echo_n "checking for fgrep... " >&6; }
4159if ${ac_cv_path_FGREP+:} false; then :
4160  $as_echo_n "(cached) " >&6
4161else
4162  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4163   then ac_cv_path_FGREP="$GREP -F"
4164   else
4165     if test -z "$FGREP"; then
4166  ac_path_FGREP_found=false
4167  # Loop through the user's path and test for each of PROGNAME-LIST
4168  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4170do
4171  IFS=$as_save_IFS
4172  test -z "$as_dir" && as_dir=.
4173    for ac_prog in fgrep; do
4174    for ac_exec_ext in '' $ac_executable_extensions; do
4175      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4176      as_fn_executable_p "$ac_path_FGREP" || continue
4177# Check for GNU ac_path_FGREP and select it if it is found.
4178  # Check for GNU $ac_path_FGREP
4179case `"$ac_path_FGREP" --version 2>&1` in
4180*GNU*)
4181  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4182*)
4183  ac_count=0
4184  $as_echo_n 0123456789 >"conftest.in"
4185  while :
4186  do
4187    cat "conftest.in" "conftest.in" >"conftest.tmp"
4188    mv "conftest.tmp" "conftest.in"
4189    cp "conftest.in" "conftest.nl"
4190    $as_echo 'FGREP' >> "conftest.nl"
4191    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4192    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4193    as_fn_arith $ac_count + 1 && ac_count=$as_val
4194    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4195      # Best one so far, save it but keep looking for a better one
4196      ac_cv_path_FGREP="$ac_path_FGREP"
4197      ac_path_FGREP_max=$ac_count
4198    fi
4199    # 10*(2^10) chars as input seems more than enough
4200    test $ac_count -gt 10 && break
4201  done
4202  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4203esac
4204
4205      $ac_path_FGREP_found && break 3
4206    done
4207  done
4208  done
4209IFS=$as_save_IFS
4210  if test -z "$ac_cv_path_FGREP"; then
4211    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4212  fi
4213else
4214  ac_cv_path_FGREP=$FGREP
4215fi
4216
4217   fi
4218fi
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4220$as_echo "$ac_cv_path_FGREP" >&6; }
4221 FGREP="$ac_cv_path_FGREP"
4222
4223
4224test -z "$GREP" && GREP=grep
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244# Check whether --with-gnu-ld was given.
4245if test "${with_gnu_ld+set}" = set; then :
4246  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4247else
4248  with_gnu_ld=no
4249fi
4250
4251ac_prog=ld
4252if test yes = "$GCC"; then
4253  # Check if gcc -print-prog-name=ld gives a path.
4254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4255$as_echo_n "checking for ld used by $CC... " >&6; }
4256  case $host in
4257  *-*-mingw*)
4258    # gcc leaves a trailing carriage return, which upsets mingw
4259    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4260  *)
4261    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4262  esac
4263  case $ac_prog in
4264    # Accept absolute paths.
4265    [\\/]* | ?:[\\/]*)
4266      re_direlt='/[^/][^/]*/\.\./'
4267      # Canonicalize the pathname of ld
4268      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4269      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4270	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4271      done
4272      test -z "$LD" && LD=$ac_prog
4273      ;;
4274  "")
4275    # If it fails, then pretend we aren't using GCC.
4276    ac_prog=ld
4277    ;;
4278  *)
4279    # If it is relative, then search for the first ld in PATH.
4280    with_gnu_ld=unknown
4281    ;;
4282  esac
4283elif test yes = "$with_gnu_ld"; then
4284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4285$as_echo_n "checking for GNU ld... " >&6; }
4286else
4287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4288$as_echo_n "checking for non-GNU ld... " >&6; }
4289fi
4290if ${lt_cv_path_LD+:} false; then :
4291  $as_echo_n "(cached) " >&6
4292else
4293  if test -z "$LD"; then
4294  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4295  for ac_dir in $PATH; do
4296    IFS=$lt_save_ifs
4297    test -z "$ac_dir" && ac_dir=.
4298    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4299      lt_cv_path_LD=$ac_dir/$ac_prog
4300      # Check to see if the program is GNU ld.  I'd rather use --version,
4301      # but apparently some variants of GNU ld only accept -v.
4302      # Break only if it was the GNU/non-GNU ld that we prefer.
4303      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4304      *GNU* | *'with BFD'*)
4305	test no != "$with_gnu_ld" && break
4306	;;
4307      *)
4308	test yes != "$with_gnu_ld" && break
4309	;;
4310      esac
4311    fi
4312  done
4313  IFS=$lt_save_ifs
4314else
4315  lt_cv_path_LD=$LD # Let the user override the test with a path.
4316fi
4317fi
4318
4319LD=$lt_cv_path_LD
4320if test -n "$LD"; then
4321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4322$as_echo "$LD" >&6; }
4323else
4324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325$as_echo "no" >&6; }
4326fi
4327test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4329$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4330if ${lt_cv_prog_gnu_ld+:} false; then :
4331  $as_echo_n "(cached) " >&6
4332else
4333  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4334case `$LD -v 2>&1 </dev/null` in
4335*GNU* | *'with BFD'*)
4336  lt_cv_prog_gnu_ld=yes
4337  ;;
4338*)
4339  lt_cv_prog_gnu_ld=no
4340  ;;
4341esac
4342fi
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4344$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4345with_gnu_ld=$lt_cv_prog_gnu_ld
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4356$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4357if ${lt_cv_path_NM+:} false; then :
4358  $as_echo_n "(cached) " >&6
4359else
4360  if test -n "$NM"; then
4361  # Let the user override the test.
4362  lt_cv_path_NM=$NM
4363else
4364  lt_nm_to_check=${ac_tool_prefix}nm
4365  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4366    lt_nm_to_check="$lt_nm_to_check nm"
4367  fi
4368  for lt_tmp_nm in $lt_nm_to_check; do
4369    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4370    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4371      IFS=$lt_save_ifs
4372      test -z "$ac_dir" && ac_dir=.
4373      tmp_nm=$ac_dir/$lt_tmp_nm
4374      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4375	# Check to see if the nm accepts a BSD-compat flag.
4376	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4377	#   nm: unknown option "B" ignored
4378	# Tru64's nm complains that /dev/null is an invalid object file
4379	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4380	case $build_os in
4381	mingw*) lt_bad_file=conftest.nm/nofile ;;
4382	*) lt_bad_file=/dev/null ;;
4383	esac
4384	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4385	*$lt_bad_file* | *'Invalid file or object type'*)
4386	  lt_cv_path_NM="$tmp_nm -B"
4387	  break 2
4388	  ;;
4389	*)
4390	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4391	  */dev/null*)
4392	    lt_cv_path_NM="$tmp_nm -p"
4393	    break 2
4394	    ;;
4395	  *)
4396	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4397	    continue # so that we can try to find one that supports BSD flags
4398	    ;;
4399	  esac
4400	  ;;
4401	esac
4402      fi
4403    done
4404    IFS=$lt_save_ifs
4405  done
4406  : ${lt_cv_path_NM=no}
4407fi
4408fi
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4410$as_echo "$lt_cv_path_NM" >&6; }
4411if test no != "$lt_cv_path_NM"; then
4412  NM=$lt_cv_path_NM
4413else
4414  # Didn't find any BSD compatible name lister, look for dumpbin.
4415  if test -n "$DUMPBIN"; then :
4416    # Let the user override the test.
4417  else
4418    if test -n "$ac_tool_prefix"; then
4419  for ac_prog in dumpbin "link -dump"
4420  do
4421    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4422set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424$as_echo_n "checking for $ac_word... " >&6; }
4425if ${ac_cv_prog_DUMPBIN+:} false; then :
4426  $as_echo_n "(cached) " >&6
4427else
4428  if test -n "$DUMPBIN"; then
4429  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4430else
4431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH
4433do
4434  IFS=$as_save_IFS
4435  test -z "$as_dir" && as_dir=.
4436    for ac_exec_ext in '' $ac_executable_extensions; do
4437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4440    break 2
4441  fi
4442done
4443  done
4444IFS=$as_save_IFS
4445
4446fi
4447fi
4448DUMPBIN=$ac_cv_prog_DUMPBIN
4449if test -n "$DUMPBIN"; then
4450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4451$as_echo "$DUMPBIN" >&6; }
4452else
4453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454$as_echo "no" >&6; }
4455fi
4456
4457
4458    test -n "$DUMPBIN" && break
4459  done
4460fi
4461if test -z "$DUMPBIN"; then
4462  ac_ct_DUMPBIN=$DUMPBIN
4463  for ac_prog in dumpbin "link -dump"
4464do
4465  # Extract the first word of "$ac_prog", so it can be a program name with args.
4466set dummy $ac_prog; ac_word=$2
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468$as_echo_n "checking for $ac_word... " >&6; }
4469if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4470  $as_echo_n "(cached) " >&6
4471else
4472  if test -n "$ac_ct_DUMPBIN"; then
4473  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4474else
4475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476for as_dir in $PATH
4477do
4478  IFS=$as_save_IFS
4479  test -z "$as_dir" && as_dir=.
4480    for ac_exec_ext in '' $ac_executable_extensions; do
4481  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484    break 2
4485  fi
4486done
4487  done
4488IFS=$as_save_IFS
4489
4490fi
4491fi
4492ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4493if test -n "$ac_ct_DUMPBIN"; then
4494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4495$as_echo "$ac_ct_DUMPBIN" >&6; }
4496else
4497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498$as_echo "no" >&6; }
4499fi
4500
4501
4502  test -n "$ac_ct_DUMPBIN" && break
4503done
4504
4505  if test "x$ac_ct_DUMPBIN" = x; then
4506    DUMPBIN=":"
4507  else
4508    case $cross_compiling:$ac_tool_warned in
4509yes:)
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4512ac_tool_warned=yes ;;
4513esac
4514    DUMPBIN=$ac_ct_DUMPBIN
4515  fi
4516fi
4517
4518    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4519    *COFF*)
4520      DUMPBIN="$DUMPBIN -symbols -headers"
4521      ;;
4522    *)
4523      DUMPBIN=:
4524      ;;
4525    esac
4526  fi
4527
4528  if test : != "$DUMPBIN"; then
4529    NM=$DUMPBIN
4530  fi
4531fi
4532test -z "$NM" && NM=nm
4533
4534
4535
4536
4537
4538
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4540$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4541if ${lt_cv_nm_interface+:} false; then :
4542  $as_echo_n "(cached) " >&6
4543else
4544  lt_cv_nm_interface="BSD nm"
4545  echo "int some_variable = 0;" > conftest.$ac_ext
4546  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4547  (eval "$ac_compile" 2>conftest.err)
4548  cat conftest.err >&5
4549  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4550  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4551  cat conftest.err >&5
4552  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4553  cat conftest.out >&5
4554  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4555    lt_cv_nm_interface="MS dumpbin"
4556  fi
4557  rm -f conftest*
4558fi
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4560$as_echo "$lt_cv_nm_interface" >&6; }
4561
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4563$as_echo_n "checking whether ln -s works... " >&6; }
4564LN_S=$as_ln_s
4565if test "$LN_S" = "ln -s"; then
4566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4567$as_echo "yes" >&6; }
4568else
4569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4570$as_echo "no, using $LN_S" >&6; }
4571fi
4572
4573# find the maximum length of command line arguments
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4575$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4576if ${lt_cv_sys_max_cmd_len+:} false; then :
4577  $as_echo_n "(cached) " >&6
4578else
4579    i=0
4580  teststring=ABCD
4581
4582  case $build_os in
4583  msdosdjgpp*)
4584    # On DJGPP, this test can blow up pretty badly due to problems in libc
4585    # (any single argument exceeding 2000 bytes causes a buffer overrun
4586    # during glob expansion).  Even if it were fixed, the result of this
4587    # check would be larger than it should be.
4588    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4589    ;;
4590
4591  gnu*)
4592    # Under GNU Hurd, this test is not required because there is
4593    # no limit to the length of command line arguments.
4594    # Libtool will interpret -1 as no limit whatsoever
4595    lt_cv_sys_max_cmd_len=-1;
4596    ;;
4597
4598  cygwin* | mingw* | cegcc*)
4599    # On Win9x/ME, this test blows up -- it succeeds, but takes
4600    # about 5 minutes as the teststring grows exponentially.
4601    # Worse, since 9x/ME are not pre-emptively multitasking,
4602    # you end up with a "frozen" computer, even though with patience
4603    # the test eventually succeeds (with a max line length of 256k).
4604    # Instead, let's just punt: use the minimum linelength reported by
4605    # all of the supported platforms: 8192 (on NT/2K/XP).
4606    lt_cv_sys_max_cmd_len=8192;
4607    ;;
4608
4609  mint*)
4610    # On MiNT this can take a long time and run out of memory.
4611    lt_cv_sys_max_cmd_len=8192;
4612    ;;
4613
4614  amigaos*)
4615    # On AmigaOS with pdksh, this test takes hours, literally.
4616    # So we just punt and use a minimum line length of 8192.
4617    lt_cv_sys_max_cmd_len=8192;
4618    ;;
4619
4620  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4621    # This has been around since 386BSD, at least.  Likely further.
4622    if test -x /sbin/sysctl; then
4623      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4624    elif test -x /usr/sbin/sysctl; then
4625      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4626    else
4627      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4628    fi
4629    # And add a safety zone
4630    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4631    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4632    ;;
4633
4634  interix*)
4635    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4636    lt_cv_sys_max_cmd_len=196608
4637    ;;
4638
4639  os2*)
4640    # The test takes a long time on OS/2.
4641    lt_cv_sys_max_cmd_len=8192
4642    ;;
4643
4644  osf*)
4645    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4646    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4647    # nice to cause kernel panics so lets avoid the loop below.
4648    # First set a reasonable default.
4649    lt_cv_sys_max_cmd_len=16384
4650    #
4651    if test -x /sbin/sysconfig; then
4652      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4653        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4654      esac
4655    fi
4656    ;;
4657  sco3.2v5*)
4658    lt_cv_sys_max_cmd_len=102400
4659    ;;
4660  sysv5* | sco5v6* | sysv4.2uw2*)
4661    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4662    if test -n "$kargmax"; then
4663      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4664    else
4665      lt_cv_sys_max_cmd_len=32768
4666    fi
4667    ;;
4668  *)
4669    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4670    if test -n "$lt_cv_sys_max_cmd_len" && \
4671       test undefined != "$lt_cv_sys_max_cmd_len"; then
4672      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4673      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4674    else
4675      # Make teststring a little bigger before we do anything with it.
4676      # a 1K string should be a reasonable start.
4677      for i in 1 2 3 4 5 6 7 8; do
4678        teststring=$teststring$teststring
4679      done
4680      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4681      # If test is not a shell built-in, we'll probably end up computing a
4682      # maximum length that is only half of the actual maximum length, but
4683      # we can't tell.
4684      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4685	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4686	      test 17 != "$i" # 1/2 MB should be enough
4687      do
4688        i=`expr $i + 1`
4689        teststring=$teststring$teststring
4690      done
4691      # Only check the string length outside the loop.
4692      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4693      teststring=
4694      # Add a significant safety factor because C++ compilers can tack on
4695      # massive amounts of additional arguments before passing them to the
4696      # linker.  It appears as though 1/2 is a usable value.
4697      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4698    fi
4699    ;;
4700  esac
4701
4702fi
4703
4704if test -n "$lt_cv_sys_max_cmd_len"; then
4705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4706$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4707else
4708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4709$as_echo "none" >&6; }
4710fi
4711max_cmd_len=$lt_cv_sys_max_cmd_len
4712
4713
4714
4715
4716
4717
4718: ${CP="cp -f"}
4719: ${MV="mv -f"}
4720: ${RM="rm -f"}
4721
4722if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4723  lt_unset=unset
4724else
4725  lt_unset=false
4726fi
4727
4728
4729
4730
4731
4732# test EBCDIC or ASCII
4733case `echo X|tr X '\101'` in
4734 A) # ASCII based system
4735    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4736  lt_SP2NL='tr \040 \012'
4737  lt_NL2SP='tr \015\012 \040\040'
4738  ;;
4739 *) # EBCDIC based system
4740  lt_SP2NL='tr \100 \n'
4741  lt_NL2SP='tr \r\n \100\100'
4742  ;;
4743esac
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4754$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4755if ${lt_cv_to_host_file_cmd+:} false; then :
4756  $as_echo_n "(cached) " >&6
4757else
4758  case $host in
4759  *-*-mingw* )
4760    case $build in
4761      *-*-mingw* ) # actually msys
4762        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4763        ;;
4764      *-*-cygwin* )
4765        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4766        ;;
4767      * ) # otherwise, assume *nix
4768        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4769        ;;
4770    esac
4771    ;;
4772  *-*-cygwin* )
4773    case $build in
4774      *-*-mingw* ) # actually msys
4775        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4776        ;;
4777      *-*-cygwin* )
4778        lt_cv_to_host_file_cmd=func_convert_file_noop
4779        ;;
4780      * ) # otherwise, assume *nix
4781        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4782        ;;
4783    esac
4784    ;;
4785  * ) # unhandled hosts (and "normal" native builds)
4786    lt_cv_to_host_file_cmd=func_convert_file_noop
4787    ;;
4788esac
4789
4790fi
4791
4792to_host_file_cmd=$lt_cv_to_host_file_cmd
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4794$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4795
4796
4797
4798
4799
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4801$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4802if ${lt_cv_to_tool_file_cmd+:} false; then :
4803  $as_echo_n "(cached) " >&6
4804else
4805  #assume ordinary cross tools, or native build.
4806lt_cv_to_tool_file_cmd=func_convert_file_noop
4807case $host in
4808  *-*-mingw* )
4809    case $build in
4810      *-*-mingw* ) # actually msys
4811        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4812        ;;
4813    esac
4814    ;;
4815esac
4816
4817fi
4818
4819to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4821$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4822
4823
4824
4825
4826
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4828$as_echo_n "checking for $LD option to reload object files... " >&6; }
4829if ${lt_cv_ld_reload_flag+:} false; then :
4830  $as_echo_n "(cached) " >&6
4831else
4832  lt_cv_ld_reload_flag='-r'
4833fi
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4835$as_echo "$lt_cv_ld_reload_flag" >&6; }
4836reload_flag=$lt_cv_ld_reload_flag
4837case $reload_flag in
4838"" | " "*) ;;
4839*) reload_flag=" $reload_flag" ;;
4840esac
4841reload_cmds='$LD$reload_flag -o $output$reload_objs'
4842case $host_os in
4843  cygwin* | mingw* | pw32* | cegcc*)
4844    if test yes != "$GCC"; then
4845      reload_cmds=false
4846    fi
4847    ;;
4848  darwin*)
4849    if test yes = "$GCC"; then
4850      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4851    else
4852      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4853    fi
4854    ;;
4855esac
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865if test -n "$ac_tool_prefix"; then
4866  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4867set dummy ${ac_tool_prefix}objdump; ac_word=$2
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869$as_echo_n "checking for $ac_word... " >&6; }
4870if ${ac_cv_prog_OBJDUMP+:} false; then :
4871  $as_echo_n "(cached) " >&6
4872else
4873  if test -n "$OBJDUMP"; then
4874  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4875else
4876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH
4878do
4879  IFS=$as_save_IFS
4880  test -z "$as_dir" && as_dir=.
4881    for ac_exec_ext in '' $ac_executable_extensions; do
4882  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885    break 2
4886  fi
4887done
4888  done
4889IFS=$as_save_IFS
4890
4891fi
4892fi
4893OBJDUMP=$ac_cv_prog_OBJDUMP
4894if test -n "$OBJDUMP"; then
4895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4896$as_echo "$OBJDUMP" >&6; }
4897else
4898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899$as_echo "no" >&6; }
4900fi
4901
4902
4903fi
4904if test -z "$ac_cv_prog_OBJDUMP"; then
4905  ac_ct_OBJDUMP=$OBJDUMP
4906  # Extract the first word of "objdump", so it can be a program name with args.
4907set dummy objdump; ac_word=$2
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909$as_echo_n "checking for $ac_word... " >&6; }
4910if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4911  $as_echo_n "(cached) " >&6
4912else
4913  if test -n "$ac_ct_OBJDUMP"; then
4914  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4915else
4916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917for as_dir in $PATH
4918do
4919  IFS=$as_save_IFS
4920  test -z "$as_dir" && as_dir=.
4921    for ac_exec_ext in '' $ac_executable_extensions; do
4922  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4923    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925    break 2
4926  fi
4927done
4928  done
4929IFS=$as_save_IFS
4930
4931fi
4932fi
4933ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4934if test -n "$ac_ct_OBJDUMP"; then
4935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4936$as_echo "$ac_ct_OBJDUMP" >&6; }
4937else
4938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939$as_echo "no" >&6; }
4940fi
4941
4942  if test "x$ac_ct_OBJDUMP" = x; then
4943    OBJDUMP="false"
4944  else
4945    case $cross_compiling:$ac_tool_warned in
4946yes:)
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4949ac_tool_warned=yes ;;
4950esac
4951    OBJDUMP=$ac_ct_OBJDUMP
4952  fi
4953else
4954  OBJDUMP="$ac_cv_prog_OBJDUMP"
4955fi
4956
4957test -z "$OBJDUMP" && OBJDUMP=objdump
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4968$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4969if ${lt_cv_deplibs_check_method+:} false; then :
4970  $as_echo_n "(cached) " >&6
4971else
4972  lt_cv_file_magic_cmd='$MAGIC_CMD'
4973lt_cv_file_magic_test_file=
4974lt_cv_deplibs_check_method='unknown'
4975# Need to set the preceding variable on all platforms that support
4976# interlibrary dependencies.
4977# 'none' -- dependencies not supported.
4978# 'unknown' -- same as none, but documents that we really don't know.
4979# 'pass_all' -- all dependencies passed with no checks.
4980# 'test_compile' -- check by making test program.
4981# 'file_magic [[regex]]' -- check by looking for files in library path
4982# that responds to the $file_magic_cmd with a given extended regex.
4983# If you have 'file' or equivalent on your system and you're not sure
4984# whether 'pass_all' will *always* work, you probably want this one.
4985
4986case $host_os in
4987aix[4-9]*)
4988  lt_cv_deplibs_check_method=pass_all
4989  ;;
4990
4991beos*)
4992  lt_cv_deplibs_check_method=pass_all
4993  ;;
4994
4995bsdi[45]*)
4996  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4997  lt_cv_file_magic_cmd='/usr/bin/file -L'
4998  lt_cv_file_magic_test_file=/shlib/libc.so
4999  ;;
5000
5001cygwin*)
5002  # func_win32_libid is a shell function defined in ltmain.sh
5003  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5004  lt_cv_file_magic_cmd='func_win32_libid'
5005  ;;
5006
5007mingw* | pw32*)
5008  # Base MSYS/MinGW do not provide the 'file' command needed by
5009  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5010  # unless we find 'file', for example because we are cross-compiling.
5011  if ( file / ) >/dev/null 2>&1; then
5012    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5013    lt_cv_file_magic_cmd='func_win32_libid'
5014  else
5015    # Keep this pattern in sync with the one in func_win32_libid.
5016    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5017    lt_cv_file_magic_cmd='$OBJDUMP -f'
5018  fi
5019  ;;
5020
5021cegcc*)
5022  # use the weaker test based on 'objdump'. See mingw*.
5023  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5024  lt_cv_file_magic_cmd='$OBJDUMP -f'
5025  ;;
5026
5027darwin* | rhapsody*)
5028  lt_cv_deplibs_check_method=pass_all
5029  ;;
5030
5031freebsd* | dragonfly*)
5032  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5033    case $host_cpu in
5034    i*86 )
5035      # Not sure whether the presence of OpenBSD here was a mistake.
5036      # Let's accept both of them until this is cleared up.
5037      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5038      lt_cv_file_magic_cmd=/usr/bin/file
5039      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5040      ;;
5041    esac
5042  else
5043    lt_cv_deplibs_check_method=pass_all
5044  fi
5045  ;;
5046
5047haiku*)
5048  lt_cv_deplibs_check_method=pass_all
5049  ;;
5050
5051hpux10.20* | hpux11*)
5052  lt_cv_file_magic_cmd=/usr/bin/file
5053  case $host_cpu in
5054  ia64*)
5055    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5056    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5057    ;;
5058  hppa*64*)
5059    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]'
5060    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5061    ;;
5062  *)
5063    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5064    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5065    ;;
5066  esac
5067  ;;
5068
5069interix[3-9]*)
5070  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5071  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5072  ;;
5073
5074irix5* | irix6* | nonstopux*)
5075  case $LD in
5076  *-32|*"-32 ") libmagic=32-bit;;
5077  *-n32|*"-n32 ") libmagic=N32;;
5078  *-64|*"-64 ") libmagic=64-bit;;
5079  *) libmagic=never-match;;
5080  esac
5081  lt_cv_deplibs_check_method=pass_all
5082  ;;
5083
5084# This must be glibc/ELF.
5085linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5086  lt_cv_deplibs_check_method=pass_all
5087  ;;
5088
5089netbsd* | netbsdelf*-gnu)
5090  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5091    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5092  else
5093    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5094  fi
5095  ;;
5096
5097newos6*)
5098  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5099  lt_cv_file_magic_cmd=/usr/bin/file
5100  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5101  ;;
5102
5103*nto* | *qnx*)
5104  lt_cv_deplibs_check_method=pass_all
5105  ;;
5106
5107openbsd* | bitrig*)
5108  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5109    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5110  else
5111    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5112  fi
5113  ;;
5114
5115osf3* | osf4* | osf5*)
5116  lt_cv_deplibs_check_method=pass_all
5117  ;;
5118
5119rdos*)
5120  lt_cv_deplibs_check_method=pass_all
5121  ;;
5122
5123solaris*)
5124  lt_cv_deplibs_check_method=pass_all
5125  ;;
5126
5127sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5128  lt_cv_deplibs_check_method=pass_all
5129  ;;
5130
5131sysv4 | sysv4.3*)
5132  case $host_vendor in
5133  motorola)
5134    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]'
5135    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5136    ;;
5137  ncr)
5138    lt_cv_deplibs_check_method=pass_all
5139    ;;
5140  sequent)
5141    lt_cv_file_magic_cmd='/bin/file'
5142    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5143    ;;
5144  sni)
5145    lt_cv_file_magic_cmd='/bin/file'
5146    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5147    lt_cv_file_magic_test_file=/lib/libc.so
5148    ;;
5149  siemens)
5150    lt_cv_deplibs_check_method=pass_all
5151    ;;
5152  pc)
5153    lt_cv_deplibs_check_method=pass_all
5154    ;;
5155  esac
5156  ;;
5157
5158tpf*)
5159  lt_cv_deplibs_check_method=pass_all
5160  ;;
5161os2*)
5162  lt_cv_deplibs_check_method=pass_all
5163  ;;
5164esac
5165
5166fi
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5168$as_echo "$lt_cv_deplibs_check_method" >&6; }
5169
5170file_magic_glob=
5171want_nocaseglob=no
5172if test "$build" = "$host"; then
5173  case $host_os in
5174  mingw* | pw32*)
5175    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5176      want_nocaseglob=yes
5177    else
5178      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5179    fi
5180    ;;
5181  esac
5182fi
5183
5184file_magic_cmd=$lt_cv_file_magic_cmd
5185deplibs_check_method=$lt_cv_deplibs_check_method
5186test -z "$deplibs_check_method" && deplibs_check_method=unknown
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209if test -n "$ac_tool_prefix"; then
5210  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5211set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213$as_echo_n "checking for $ac_word... " >&6; }
5214if ${ac_cv_prog_DLLTOOL+:} false; then :
5215  $as_echo_n "(cached) " >&6
5216else
5217  if test -n "$DLLTOOL"; then
5218  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5219else
5220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223  IFS=$as_save_IFS
5224  test -z "$as_dir" && as_dir=.
5225    for ac_exec_ext in '' $ac_executable_extensions; do
5226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229    break 2
5230  fi
5231done
5232  done
5233IFS=$as_save_IFS
5234
5235fi
5236fi
5237DLLTOOL=$ac_cv_prog_DLLTOOL
5238if test -n "$DLLTOOL"; then
5239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5240$as_echo "$DLLTOOL" >&6; }
5241else
5242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243$as_echo "no" >&6; }
5244fi
5245
5246
5247fi
5248if test -z "$ac_cv_prog_DLLTOOL"; then
5249  ac_ct_DLLTOOL=$DLLTOOL
5250  # Extract the first word of "dlltool", so it can be a program name with args.
5251set dummy dlltool; ac_word=$2
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253$as_echo_n "checking for $ac_word... " >&6; }
5254if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5255  $as_echo_n "(cached) " >&6
5256else
5257  if test -n "$ac_ct_DLLTOOL"; then
5258  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5259else
5260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261for as_dir in $PATH
5262do
5263  IFS=$as_save_IFS
5264  test -z "$as_dir" && as_dir=.
5265    for ac_exec_ext in '' $ac_executable_extensions; do
5266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269    break 2
5270  fi
5271done
5272  done
5273IFS=$as_save_IFS
5274
5275fi
5276fi
5277ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5278if test -n "$ac_ct_DLLTOOL"; then
5279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5280$as_echo "$ac_ct_DLLTOOL" >&6; }
5281else
5282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283$as_echo "no" >&6; }
5284fi
5285
5286  if test "x$ac_ct_DLLTOOL" = x; then
5287    DLLTOOL="false"
5288  else
5289    case $cross_compiling:$ac_tool_warned in
5290yes:)
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5293ac_tool_warned=yes ;;
5294esac
5295    DLLTOOL=$ac_ct_DLLTOOL
5296  fi
5297else
5298  DLLTOOL="$ac_cv_prog_DLLTOOL"
5299fi
5300
5301test -z "$DLLTOOL" && DLLTOOL=dlltool
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5313$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5314if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5315  $as_echo_n "(cached) " >&6
5316else
5317  lt_cv_sharedlib_from_linklib_cmd='unknown'
5318
5319case $host_os in
5320cygwin* | mingw* | pw32* | cegcc*)
5321  # two different shell functions defined in ltmain.sh;
5322  # decide which one to use based on capabilities of $DLLTOOL
5323  case `$DLLTOOL --help 2>&1` in
5324  *--identify-strict*)
5325    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5326    ;;
5327  *)
5328    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5329    ;;
5330  esac
5331  ;;
5332*)
5333  # fallback: assume linklib IS sharedlib
5334  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5335  ;;
5336esac
5337
5338fi
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5340$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5341sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5342test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5343
5344
5345
5346
5347
5348
5349
5350
5351if test -n "$ac_tool_prefix"; then
5352  for ac_prog in ar
5353  do
5354    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5355set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357$as_echo_n "checking for $ac_word... " >&6; }
5358if ${ac_cv_prog_AR+:} false; then :
5359  $as_echo_n "(cached) " >&6
5360else
5361  if test -n "$AR"; then
5362  ac_cv_prog_AR="$AR" # Let the user override the test.
5363else
5364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365for as_dir in $PATH
5366do
5367  IFS=$as_save_IFS
5368  test -z "$as_dir" && as_dir=.
5369    for ac_exec_ext in '' $ac_executable_extensions; do
5370  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5371    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373    break 2
5374  fi
5375done
5376  done
5377IFS=$as_save_IFS
5378
5379fi
5380fi
5381AR=$ac_cv_prog_AR
5382if test -n "$AR"; then
5383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5384$as_echo "$AR" >&6; }
5385else
5386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387$as_echo "no" >&6; }
5388fi
5389
5390
5391    test -n "$AR" && break
5392  done
5393fi
5394if test -z "$AR"; then
5395  ac_ct_AR=$AR
5396  for ac_prog in ar
5397do
5398  # Extract the first word of "$ac_prog", so it can be a program name with args.
5399set dummy $ac_prog; ac_word=$2
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401$as_echo_n "checking for $ac_word... " >&6; }
5402if ${ac_cv_prog_ac_ct_AR+:} false; then :
5403  $as_echo_n "(cached) " >&6
5404else
5405  if test -n "$ac_ct_AR"; then
5406  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5407else
5408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409for as_dir in $PATH
5410do
5411  IFS=$as_save_IFS
5412  test -z "$as_dir" && as_dir=.
5413    for ac_exec_ext in '' $ac_executable_extensions; do
5414  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5415    ac_cv_prog_ac_ct_AR="$ac_prog"
5416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417    break 2
5418  fi
5419done
5420  done
5421IFS=$as_save_IFS
5422
5423fi
5424fi
5425ac_ct_AR=$ac_cv_prog_ac_ct_AR
5426if test -n "$ac_ct_AR"; then
5427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5428$as_echo "$ac_ct_AR" >&6; }
5429else
5430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431$as_echo "no" >&6; }
5432fi
5433
5434
5435  test -n "$ac_ct_AR" && break
5436done
5437
5438  if test "x$ac_ct_AR" = x; then
5439    AR="false"
5440  else
5441    case $cross_compiling:$ac_tool_warned in
5442yes:)
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5445ac_tool_warned=yes ;;
5446esac
5447    AR=$ac_ct_AR
5448  fi
5449fi
5450
5451: ${AR=ar}
5452: ${AR_FLAGS=cru}
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5465$as_echo_n "checking for archiver @FILE support... " >&6; }
5466if ${lt_cv_ar_at_file+:} false; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469  lt_cv_ar_at_file=no
5470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471/* end confdefs.h.  */
5472
5473int
5474main ()
5475{
5476
5477  ;
5478  return 0;
5479}
5480_ACEOF
5481if ac_fn_c_try_compile "$LINENO"; then :
5482  echo conftest.$ac_objext > conftest.lst
5483      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5484      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5485  (eval $lt_ar_try) 2>&5
5486  ac_status=$?
5487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5488  test $ac_status = 0; }
5489      if test 0 -eq "$ac_status"; then
5490	# Ensure the archiver fails upon bogus file names.
5491	rm -f conftest.$ac_objext libconftest.a
5492	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5493  (eval $lt_ar_try) 2>&5
5494  ac_status=$?
5495  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5496  test $ac_status = 0; }
5497	if test 0 -ne "$ac_status"; then
5498          lt_cv_ar_at_file=@
5499        fi
5500      fi
5501      rm -f conftest.* libconftest.a
5502
5503fi
5504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505
5506fi
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5508$as_echo "$lt_cv_ar_at_file" >&6; }
5509
5510if test no = "$lt_cv_ar_at_file"; then
5511  archiver_list_spec=
5512else
5513  archiver_list_spec=$lt_cv_ar_at_file
5514fi
5515
5516
5517
5518
5519
5520
5521
5522if test -n "$ac_tool_prefix"; then
5523  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5524set dummy ${ac_tool_prefix}strip; ac_word=$2
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526$as_echo_n "checking for $ac_word... " >&6; }
5527if ${ac_cv_prog_STRIP+:} false; then :
5528  $as_echo_n "(cached) " >&6
5529else
5530  if test -n "$STRIP"; then
5531  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5532else
5533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534for as_dir in $PATH
5535do
5536  IFS=$as_save_IFS
5537  test -z "$as_dir" && as_dir=.
5538    for ac_exec_ext in '' $ac_executable_extensions; do
5539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5540    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542    break 2
5543  fi
5544done
5545  done
5546IFS=$as_save_IFS
5547
5548fi
5549fi
5550STRIP=$ac_cv_prog_STRIP
5551if test -n "$STRIP"; then
5552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5553$as_echo "$STRIP" >&6; }
5554else
5555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556$as_echo "no" >&6; }
5557fi
5558
5559
5560fi
5561if test -z "$ac_cv_prog_STRIP"; then
5562  ac_ct_STRIP=$STRIP
5563  # Extract the first word of "strip", so it can be a program name with args.
5564set dummy strip; ac_word=$2
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566$as_echo_n "checking for $ac_word... " >&6; }
5567if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5568  $as_echo_n "(cached) " >&6
5569else
5570  if test -n "$ac_ct_STRIP"; then
5571  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5572else
5573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574for as_dir in $PATH
5575do
5576  IFS=$as_save_IFS
5577  test -z "$as_dir" && as_dir=.
5578    for ac_exec_ext in '' $ac_executable_extensions; do
5579  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580    ac_cv_prog_ac_ct_STRIP="strip"
5581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582    break 2
5583  fi
5584done
5585  done
5586IFS=$as_save_IFS
5587
5588fi
5589fi
5590ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5591if test -n "$ac_ct_STRIP"; then
5592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5593$as_echo "$ac_ct_STRIP" >&6; }
5594else
5595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596$as_echo "no" >&6; }
5597fi
5598
5599  if test "x$ac_ct_STRIP" = x; then
5600    STRIP=":"
5601  else
5602    case $cross_compiling:$ac_tool_warned in
5603yes:)
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5606ac_tool_warned=yes ;;
5607esac
5608    STRIP=$ac_ct_STRIP
5609  fi
5610else
5611  STRIP="$ac_cv_prog_STRIP"
5612fi
5613
5614test -z "$STRIP" && STRIP=:
5615
5616
5617
5618
5619
5620
5621if test -n "$ac_tool_prefix"; then
5622  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5623set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625$as_echo_n "checking for $ac_word... " >&6; }
5626if ${ac_cv_prog_RANLIB+:} false; then :
5627  $as_echo_n "(cached) " >&6
5628else
5629  if test -n "$RANLIB"; then
5630  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5631else
5632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633for as_dir in $PATH
5634do
5635  IFS=$as_save_IFS
5636  test -z "$as_dir" && as_dir=.
5637    for ac_exec_ext in '' $ac_executable_extensions; do
5638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5639    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641    break 2
5642  fi
5643done
5644  done
5645IFS=$as_save_IFS
5646
5647fi
5648fi
5649RANLIB=$ac_cv_prog_RANLIB
5650if test -n "$RANLIB"; then
5651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5652$as_echo "$RANLIB" >&6; }
5653else
5654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655$as_echo "no" >&6; }
5656fi
5657
5658
5659fi
5660if test -z "$ac_cv_prog_RANLIB"; then
5661  ac_ct_RANLIB=$RANLIB
5662  # Extract the first word of "ranlib", so it can be a program name with args.
5663set dummy ranlib; ac_word=$2
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665$as_echo_n "checking for $ac_word... " >&6; }
5666if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5667  $as_echo_n "(cached) " >&6
5668else
5669  if test -n "$ac_ct_RANLIB"; then
5670  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5671else
5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673for as_dir in $PATH
5674do
5675  IFS=$as_save_IFS
5676  test -z "$as_dir" && as_dir=.
5677    for ac_exec_ext in '' $ac_executable_extensions; do
5678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679    ac_cv_prog_ac_ct_RANLIB="ranlib"
5680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681    break 2
5682  fi
5683done
5684  done
5685IFS=$as_save_IFS
5686
5687fi
5688fi
5689ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5690if test -n "$ac_ct_RANLIB"; then
5691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5692$as_echo "$ac_ct_RANLIB" >&6; }
5693else
5694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695$as_echo "no" >&6; }
5696fi
5697
5698  if test "x$ac_ct_RANLIB" = x; then
5699    RANLIB=":"
5700  else
5701    case $cross_compiling:$ac_tool_warned in
5702yes:)
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5705ac_tool_warned=yes ;;
5706esac
5707    RANLIB=$ac_ct_RANLIB
5708  fi
5709else
5710  RANLIB="$ac_cv_prog_RANLIB"
5711fi
5712
5713test -z "$RANLIB" && RANLIB=:
5714
5715
5716
5717
5718
5719
5720# Determine commands to create old-style static archives.
5721old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5722old_postinstall_cmds='chmod 644 $oldlib'
5723old_postuninstall_cmds=
5724
5725if test -n "$RANLIB"; then
5726  case $host_os in
5727  bitrig* | openbsd*)
5728    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5729    ;;
5730  *)
5731    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5732    ;;
5733  esac
5734  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5735fi
5736
5737case $host_os in
5738  darwin*)
5739    lock_old_archive_extraction=yes ;;
5740  *)
5741    lock_old_archive_extraction=no ;;
5742esac
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782# If no C compiler was specified, use CC.
5783LTCC=${LTCC-"$CC"}
5784
5785# If no C compiler flags were specified, use CFLAGS.
5786LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5787
5788# Allow CC to be a program name with arguments.
5789compiler=$CC
5790
5791
5792# Check for command to grab the raw symbol name followed by C symbol from nm.
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5794$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5795if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5796  $as_echo_n "(cached) " >&6
5797else
5798
5799# These are sane defaults that work on at least a few old systems.
5800# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5801
5802# Character class describing NM global symbol codes.
5803symcode='[BCDEGRST]'
5804
5805# Regexp to match symbols that can be accessed directly from C.
5806sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5807
5808# Define system-specific variables.
5809case $host_os in
5810aix*)
5811  symcode='[BCDT]'
5812  ;;
5813cygwin* | mingw* | pw32* | cegcc*)
5814  symcode='[ABCDGISTW]'
5815  ;;
5816hpux*)
5817  if test ia64 = "$host_cpu"; then
5818    symcode='[ABCDEGRST]'
5819  fi
5820  ;;
5821irix* | nonstopux*)
5822  symcode='[BCDEGRST]'
5823  ;;
5824osf*)
5825  symcode='[BCDEGQRST]'
5826  ;;
5827solaris*)
5828  symcode='[BDRT]'
5829  ;;
5830sco3.2v5*)
5831  symcode='[DT]'
5832  ;;
5833sysv4.2uw2*)
5834  symcode='[DT]'
5835  ;;
5836sysv5* | sco5v6* | unixware* | OpenUNIX*)
5837  symcode='[ABDT]'
5838  ;;
5839sysv4)
5840  symcode='[DFNSTU]'
5841  ;;
5842esac
5843
5844# If we're using GNU nm, then use its standard symbol codes.
5845case `$NM -V 2>&1` in
5846*GNU* | *'with BFD'*)
5847  symcode='[ABCDGIRSTW]' ;;
5848esac
5849
5850if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5851  # Gets list of data symbols to import.
5852  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5853  # Adjust the below global symbol transforms to fixup imported variables.
5854  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5855  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
5856  lt_c_name_lib_hook="\
5857  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
5858  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
5859else
5860  # Disable hooks by default.
5861  lt_cv_sys_global_symbol_to_import=
5862  lt_cdecl_hook=
5863  lt_c_name_hook=
5864  lt_c_name_lib_hook=
5865fi
5866
5867# Transform an extracted symbol line into a proper C declaration.
5868# Some systems (esp. on ia64) link data and code symbols differently,
5869# so use this general approach.
5870lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5871$lt_cdecl_hook\
5872" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5873" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5874
5875# Transform an extracted symbol line into symbol name and symbol address
5876lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5877$lt_c_name_hook\
5878" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5879" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
5880
5881# Transform an extracted symbol line into symbol name with lib prefix and
5882# symbol address.
5883lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5884$lt_c_name_lib_hook\
5885" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5886" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
5887" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
5888
5889# Handle CRLF in mingw tool chain
5890opt_cr=
5891case $build_os in
5892mingw*)
5893  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5894  ;;
5895esac
5896
5897# Try without a prefix underscore, then with it.
5898for ac_symprfx in "" "_"; do
5899
5900  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5901  symxfrm="\\1 $ac_symprfx\\2 \\2"
5902
5903  # Write the raw and C identifiers.
5904  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5905    # Fake it for dumpbin and say T for any non-static function,
5906    # D for any global variable and I for any imported variable.
5907    # Also find C++ and __fastcall symbols from MSVC++,
5908    # which start with @ or ?.
5909    lt_cv_sys_global_symbol_pipe="$AWK '"\
5910"     {last_section=section; section=\$ 3};"\
5911"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5912"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5913"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5914"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5915"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5916"     \$ 0!~/External *\|/{next};"\
5917"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5918"     {if(hide[section]) next};"\
5919"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5920"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5921"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5922"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5923"     ' prfx=^$ac_symprfx"
5924  else
5925    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5926  fi
5927  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5928
5929  # Check to see that the pipe works correctly.
5930  pipe_works=no
5931
5932  rm -f conftest*
5933  cat > conftest.$ac_ext <<_LT_EOF
5934#ifdef __cplusplus
5935extern "C" {
5936#endif
5937char nm_test_var;
5938void nm_test_func(void);
5939void nm_test_func(void){}
5940#ifdef __cplusplus
5941}
5942#endif
5943int main(){nm_test_var='a';nm_test_func();return(0);}
5944_LT_EOF
5945
5946  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5947  (eval $ac_compile) 2>&5
5948  ac_status=$?
5949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5950  test $ac_status = 0; }; then
5951    # Now try to grab the symbols.
5952    nlist=conftest.nm
5953    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5954  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5955  ac_status=$?
5956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5957  test $ac_status = 0; } && test -s "$nlist"; then
5958      # Try sorting and uniquifying the output.
5959      if sort "$nlist" | uniq > "$nlist"T; then
5960	mv -f "$nlist"T "$nlist"
5961      else
5962	rm -f "$nlist"T
5963      fi
5964
5965      # Make sure that we snagged all the symbols we need.
5966      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5967	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5968	  cat <<_LT_EOF > conftest.$ac_ext
5969/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5970#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5971/* DATA imports from DLLs on WIN32 can't be const, because runtime
5972   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5973# define LT_DLSYM_CONST
5974#elif defined __osf__
5975/* This system does not cope well with relocations in const data.  */
5976# define LT_DLSYM_CONST
5977#else
5978# define LT_DLSYM_CONST const
5979#endif
5980
5981#ifdef __cplusplus
5982extern "C" {
5983#endif
5984
5985_LT_EOF
5986	  # Now generate the symbol file.
5987	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5988
5989	  cat <<_LT_EOF >> conftest.$ac_ext
5990
5991/* The mapping between symbol names and symbols.  */
5992LT_DLSYM_CONST struct {
5993  const char *name;
5994  void       *address;
5995}
5996lt__PROGRAM__LTX_preloaded_symbols[] =
5997{
5998  { "@PROGRAM@", (void *) 0 },
5999_LT_EOF
6000	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6001	  cat <<\_LT_EOF >> conftest.$ac_ext
6002  {0, (void *) 0}
6003};
6004
6005/* This works around a problem in FreeBSD linker */
6006#ifdef FREEBSD_WORKAROUND
6007static const void *lt_preloaded_setup() {
6008  return lt__PROGRAM__LTX_preloaded_symbols;
6009}
6010#endif
6011
6012#ifdef __cplusplus
6013}
6014#endif
6015_LT_EOF
6016	  # Now try linking the two files.
6017	  mv conftest.$ac_objext conftstm.$ac_objext
6018	  lt_globsym_save_LIBS=$LIBS
6019	  lt_globsym_save_CFLAGS=$CFLAGS
6020	  LIBS=conftstm.$ac_objext
6021	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6022	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6023  (eval $ac_link) 2>&5
6024  ac_status=$?
6025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6026  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6027	    pipe_works=yes
6028	  fi
6029	  LIBS=$lt_globsym_save_LIBS
6030	  CFLAGS=$lt_globsym_save_CFLAGS
6031	else
6032	  echo "cannot find nm_test_func in $nlist" >&5
6033	fi
6034      else
6035	echo "cannot find nm_test_var in $nlist" >&5
6036      fi
6037    else
6038      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6039    fi
6040  else
6041    echo "$progname: failed program was:" >&5
6042    cat conftest.$ac_ext >&5
6043  fi
6044  rm -rf conftest* conftst*
6045
6046  # Do not use the global_symbol_pipe unless it works.
6047  if test yes = "$pipe_works"; then
6048    break
6049  else
6050    lt_cv_sys_global_symbol_pipe=
6051  fi
6052done
6053
6054fi
6055
6056if test -z "$lt_cv_sys_global_symbol_pipe"; then
6057  lt_cv_sys_global_symbol_to_cdecl=
6058fi
6059if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6061$as_echo "failed" >&6; }
6062else
6063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6064$as_echo "ok" >&6; }
6065fi
6066
6067# Response file support.
6068if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6069  nm_file_list_spec='@'
6070elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6071  nm_file_list_spec='@'
6072fi
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6111$as_echo_n "checking for sysroot... " >&6; }
6112
6113# Check whether --with-sysroot was given.
6114if test "${with_sysroot+set}" = set; then :
6115  withval=$with_sysroot;
6116else
6117  with_sysroot=no
6118fi
6119
6120
6121lt_sysroot=
6122case $with_sysroot in #(
6123 yes)
6124   if test yes = "$GCC"; then
6125     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6126   fi
6127   ;; #(
6128 /*)
6129   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6130   ;; #(
6131 no|'')
6132   ;; #(
6133 *)
6134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6135$as_echo "$with_sysroot" >&6; }
6136   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6137   ;;
6138esac
6139
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6141$as_echo "${lt_sysroot:-no}" >&6; }
6142
6143
6144
6145
6146
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6148$as_echo_n "checking for a working dd... " >&6; }
6149if ${ac_cv_path_lt_DD+:} false; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152  printf 0123456789abcdef0123456789abcdef >conftest.i
6153cat conftest.i conftest.i >conftest2.i
6154: ${lt_DD:=$DD}
6155if test -z "$lt_DD"; then
6156  ac_path_lt_DD_found=false
6157  # Loop through the user's path and test for each of PROGNAME-LIST
6158  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH
6160do
6161  IFS=$as_save_IFS
6162  test -z "$as_dir" && as_dir=.
6163    for ac_prog in dd; do
6164    for ac_exec_ext in '' $ac_executable_extensions; do
6165      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6166      as_fn_executable_p "$ac_path_lt_DD" || continue
6167if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6168  cmp -s conftest.i conftest.out \
6169  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6170fi
6171      $ac_path_lt_DD_found && break 3
6172    done
6173  done
6174  done
6175IFS=$as_save_IFS
6176  if test -z "$ac_cv_path_lt_DD"; then
6177    :
6178  fi
6179else
6180  ac_cv_path_lt_DD=$lt_DD
6181fi
6182
6183rm -f conftest.i conftest2.i conftest.out
6184fi
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6186$as_echo "$ac_cv_path_lt_DD" >&6; }
6187
6188
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6190$as_echo_n "checking how to truncate binary pipes... " >&6; }
6191if ${lt_cv_truncate_bin+:} false; then :
6192  $as_echo_n "(cached) " >&6
6193else
6194  printf 0123456789abcdef0123456789abcdef >conftest.i
6195cat conftest.i conftest.i >conftest2.i
6196lt_cv_truncate_bin=
6197if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6198  cmp -s conftest.i conftest.out \
6199  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6200fi
6201rm -f conftest.i conftest2.i conftest.out
6202test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6203fi
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6205$as_echo "$lt_cv_truncate_bin" >&6; }
6206
6207
6208
6209
6210
6211
6212
6213# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6214func_cc_basename ()
6215{
6216    for cc_temp in $*""; do
6217      case $cc_temp in
6218        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6219        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6220        \-*) ;;
6221        *) break;;
6222      esac
6223    done
6224    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6225}
6226
6227# Check whether --enable-libtool-lock was given.
6228if test "${enable_libtool_lock+set}" = set; then :
6229  enableval=$enable_libtool_lock;
6230fi
6231
6232test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6233
6234# Some flags need to be propagated to the compiler or linker for good
6235# libtool support.
6236case $host in
6237ia64-*-hpux*)
6238  # Find out what ABI is being produced by ac_compile, and set mode
6239  # options accordingly.
6240  echo 'int i;' > conftest.$ac_ext
6241  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6242  (eval $ac_compile) 2>&5
6243  ac_status=$?
6244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6245  test $ac_status = 0; }; then
6246    case `/usr/bin/file conftest.$ac_objext` in
6247      *ELF-32*)
6248	HPUX_IA64_MODE=32
6249	;;
6250      *ELF-64*)
6251	HPUX_IA64_MODE=64
6252	;;
6253    esac
6254  fi
6255  rm -rf conftest*
6256  ;;
6257*-*-irix6*)
6258  # Find out what ABI is being produced by ac_compile, and set linker
6259  # options accordingly.
6260  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6261  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6262  (eval $ac_compile) 2>&5
6263  ac_status=$?
6264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6265  test $ac_status = 0; }; then
6266    if test yes = "$lt_cv_prog_gnu_ld"; then
6267      case `/usr/bin/file conftest.$ac_objext` in
6268	*32-bit*)
6269	  LD="${LD-ld} -melf32bsmip"
6270	  ;;
6271	*N32*)
6272	  LD="${LD-ld} -melf32bmipn32"
6273	  ;;
6274	*64-bit*)
6275	  LD="${LD-ld} -melf64bmip"
6276	;;
6277      esac
6278    else
6279      case `/usr/bin/file conftest.$ac_objext` in
6280	*32-bit*)
6281	  LD="${LD-ld} -32"
6282	  ;;
6283	*N32*)
6284	  LD="${LD-ld} -n32"
6285	  ;;
6286	*64-bit*)
6287	  LD="${LD-ld} -64"
6288	  ;;
6289      esac
6290    fi
6291  fi
6292  rm -rf conftest*
6293  ;;
6294
6295mips64*-*linux*)
6296  # Find out what ABI is being produced by ac_compile, and set linker
6297  # options accordingly.
6298  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6299  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6300  (eval $ac_compile) 2>&5
6301  ac_status=$?
6302  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6303  test $ac_status = 0; }; then
6304    emul=elf
6305    case `/usr/bin/file conftest.$ac_objext` in
6306      *32-bit*)
6307	emul="${emul}32"
6308	;;
6309      *64-bit*)
6310	emul="${emul}64"
6311	;;
6312    esac
6313    case `/usr/bin/file conftest.$ac_objext` in
6314      *MSB*)
6315	emul="${emul}btsmip"
6316	;;
6317      *LSB*)
6318	emul="${emul}ltsmip"
6319	;;
6320    esac
6321    case `/usr/bin/file conftest.$ac_objext` in
6322      *N32*)
6323	emul="${emul}n32"
6324	;;
6325    esac
6326    LD="${LD-ld} -m $emul"
6327  fi
6328  rm -rf conftest*
6329  ;;
6330
6331x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6332s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6333  # Find out what ABI is being produced by ac_compile, and set linker
6334  # options accordingly.  Note that the listed cases only cover the
6335  # situations where additional linker options are needed (such as when
6336  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6337  # vice versa); the common cases where no linker options are needed do
6338  # not appear in the list.
6339  echo 'int i;' > conftest.$ac_ext
6340  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6341  (eval $ac_compile) 2>&5
6342  ac_status=$?
6343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6344  test $ac_status = 0; }; then
6345    case `/usr/bin/file conftest.o` in
6346      *32-bit*)
6347	case $host in
6348	  x86_64-*kfreebsd*-gnu)
6349	    LD="${LD-ld} -m elf_i386_fbsd"
6350	    ;;
6351	  x86_64-*linux*)
6352	    case `/usr/bin/file conftest.o` in
6353	      *x86-64*)
6354		LD="${LD-ld} -m elf32_x86_64"
6355		;;
6356	      *)
6357		LD="${LD-ld} -m elf_i386"
6358		;;
6359	    esac
6360	    ;;
6361	  powerpc64le-*linux*)
6362	    LD="${LD-ld} -m elf32lppclinux"
6363	    ;;
6364	  powerpc64-*linux*)
6365	    LD="${LD-ld} -m elf32ppclinux"
6366	    ;;
6367	  s390x-*linux*)
6368	    LD="${LD-ld} -m elf_s390"
6369	    ;;
6370	  sparc64-*linux*)
6371	    LD="${LD-ld} -m elf32_sparc"
6372	    ;;
6373	esac
6374	;;
6375      *64-bit*)
6376	case $host in
6377	  x86_64-*kfreebsd*-gnu)
6378	    LD="${LD-ld} -m elf_x86_64_fbsd"
6379	    ;;
6380	  x86_64-*linux*)
6381	    LD="${LD-ld} -m elf_x86_64"
6382	    ;;
6383	  powerpcle-*linux*)
6384	    LD="${LD-ld} -m elf64lppc"
6385	    ;;
6386	  powerpc-*linux*)
6387	    LD="${LD-ld} -m elf64ppc"
6388	    ;;
6389	  s390*-*linux*|s390*-*tpf*)
6390	    LD="${LD-ld} -m elf64_s390"
6391	    ;;
6392	  sparc*-*linux*)
6393	    LD="${LD-ld} -m elf64_sparc"
6394	    ;;
6395	esac
6396	;;
6397    esac
6398  fi
6399  rm -rf conftest*
6400  ;;
6401
6402*-*-sco3.2v5*)
6403  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6404  SAVE_CFLAGS=$CFLAGS
6405  CFLAGS="$CFLAGS -belf"
6406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6407$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6408if ${lt_cv_cc_needs_belf+:} false; then :
6409  $as_echo_n "(cached) " >&6
6410else
6411  ac_ext=c
6412ac_cpp='$CPP $CPPFLAGS'
6413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6415ac_compiler_gnu=$ac_cv_c_compiler_gnu
6416
6417     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418/* end confdefs.h.  */
6419
6420int
6421main ()
6422{
6423
6424  ;
6425  return 0;
6426}
6427_ACEOF
6428if ac_fn_c_try_link "$LINENO"; then :
6429  lt_cv_cc_needs_belf=yes
6430else
6431  lt_cv_cc_needs_belf=no
6432fi
6433rm -f core conftest.err conftest.$ac_objext \
6434    conftest$ac_exeext conftest.$ac_ext
6435     ac_ext=c
6436ac_cpp='$CPP $CPPFLAGS'
6437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6439ac_compiler_gnu=$ac_cv_c_compiler_gnu
6440
6441fi
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6443$as_echo "$lt_cv_cc_needs_belf" >&6; }
6444  if test yes != "$lt_cv_cc_needs_belf"; then
6445    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6446    CFLAGS=$SAVE_CFLAGS
6447  fi
6448  ;;
6449*-*solaris*)
6450  # Find out what ABI is being produced by ac_compile, and set linker
6451  # options accordingly.
6452  echo 'int i;' > conftest.$ac_ext
6453  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6454  (eval $ac_compile) 2>&5
6455  ac_status=$?
6456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6457  test $ac_status = 0; }; then
6458    case `/usr/bin/file conftest.o` in
6459    *64-bit*)
6460      case $lt_cv_prog_gnu_ld in
6461      yes*)
6462        case $host in
6463        i?86-*-solaris*|x86_64-*-solaris*)
6464          LD="${LD-ld} -m elf_x86_64"
6465          ;;
6466        sparc*-*-solaris*)
6467          LD="${LD-ld} -m elf64_sparc"
6468          ;;
6469        esac
6470        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6471        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6472          LD=${LD-ld}_sol2
6473        fi
6474        ;;
6475      *)
6476	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6477	  LD="${LD-ld} -64"
6478	fi
6479	;;
6480      esac
6481      ;;
6482    esac
6483  fi
6484  rm -rf conftest*
6485  ;;
6486esac
6487
6488need_locks=$enable_libtool_lock
6489
6490if test -n "$ac_tool_prefix"; then
6491  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6492set dummy ${ac_tool_prefix}mt; ac_word=$2
6493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494$as_echo_n "checking for $ac_word... " >&6; }
6495if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6496  $as_echo_n "(cached) " >&6
6497else
6498  if test -n "$MANIFEST_TOOL"; then
6499  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6500else
6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504  IFS=$as_save_IFS
6505  test -z "$as_dir" && as_dir=.
6506    for ac_exec_ext in '' $ac_executable_extensions; do
6507  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510    break 2
6511  fi
6512done
6513  done
6514IFS=$as_save_IFS
6515
6516fi
6517fi
6518MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6519if test -n "$MANIFEST_TOOL"; then
6520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6521$as_echo "$MANIFEST_TOOL" >&6; }
6522else
6523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524$as_echo "no" >&6; }
6525fi
6526
6527
6528fi
6529if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6530  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6531  # Extract the first word of "mt", so it can be a program name with args.
6532set dummy mt; ac_word=$2
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534$as_echo_n "checking for $ac_word... " >&6; }
6535if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6536  $as_echo_n "(cached) " >&6
6537else
6538  if test -n "$ac_ct_MANIFEST_TOOL"; then
6539  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6540else
6541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542for as_dir in $PATH
6543do
6544  IFS=$as_save_IFS
6545  test -z "$as_dir" && as_dir=.
6546    for ac_exec_ext in '' $ac_executable_extensions; do
6547  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550    break 2
6551  fi
6552done
6553  done
6554IFS=$as_save_IFS
6555
6556fi
6557fi
6558ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6559if test -n "$ac_ct_MANIFEST_TOOL"; then
6560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6561$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6562else
6563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564$as_echo "no" >&6; }
6565fi
6566
6567  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6568    MANIFEST_TOOL=":"
6569  else
6570    case $cross_compiling:$ac_tool_warned in
6571yes:)
6572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6574ac_tool_warned=yes ;;
6575esac
6576    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6577  fi
6578else
6579  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6580fi
6581
6582test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6584$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6585if ${lt_cv_path_mainfest_tool+:} false; then :
6586  $as_echo_n "(cached) " >&6
6587else
6588  lt_cv_path_mainfest_tool=no
6589  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6590  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6591  cat conftest.err >&5
6592  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6593    lt_cv_path_mainfest_tool=yes
6594  fi
6595  rm -f conftest*
6596fi
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6598$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6599if test yes != "$lt_cv_path_mainfest_tool"; then
6600  MANIFEST_TOOL=:
6601fi
6602
6603
6604
6605
6606
6607
6608  case $host_os in
6609    rhapsody* | darwin*)
6610    if test -n "$ac_tool_prefix"; then
6611  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6612set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614$as_echo_n "checking for $ac_word... " >&6; }
6615if ${ac_cv_prog_DSYMUTIL+:} false; then :
6616  $as_echo_n "(cached) " >&6
6617else
6618  if test -n "$DSYMUTIL"; then
6619  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6620else
6621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622for as_dir in $PATH
6623do
6624  IFS=$as_save_IFS
6625  test -z "$as_dir" && as_dir=.
6626    for ac_exec_ext in '' $ac_executable_extensions; do
6627  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630    break 2
6631  fi
6632done
6633  done
6634IFS=$as_save_IFS
6635
6636fi
6637fi
6638DSYMUTIL=$ac_cv_prog_DSYMUTIL
6639if test -n "$DSYMUTIL"; then
6640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6641$as_echo "$DSYMUTIL" >&6; }
6642else
6643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644$as_echo "no" >&6; }
6645fi
6646
6647
6648fi
6649if test -z "$ac_cv_prog_DSYMUTIL"; then
6650  ac_ct_DSYMUTIL=$DSYMUTIL
6651  # Extract the first word of "dsymutil", so it can be a program name with args.
6652set dummy dsymutil; ac_word=$2
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654$as_echo_n "checking for $ac_word... " >&6; }
6655if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6656  $as_echo_n "(cached) " >&6
6657else
6658  if test -n "$ac_ct_DSYMUTIL"; then
6659  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6660else
6661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662for as_dir in $PATH
6663do
6664  IFS=$as_save_IFS
6665  test -z "$as_dir" && as_dir=.
6666    for ac_exec_ext in '' $ac_executable_extensions; do
6667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670    break 2
6671  fi
6672done
6673  done
6674IFS=$as_save_IFS
6675
6676fi
6677fi
6678ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6679if test -n "$ac_ct_DSYMUTIL"; then
6680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6681$as_echo "$ac_ct_DSYMUTIL" >&6; }
6682else
6683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684$as_echo "no" >&6; }
6685fi
6686
6687  if test "x$ac_ct_DSYMUTIL" = x; then
6688    DSYMUTIL=":"
6689  else
6690    case $cross_compiling:$ac_tool_warned in
6691yes:)
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6694ac_tool_warned=yes ;;
6695esac
6696    DSYMUTIL=$ac_ct_DSYMUTIL
6697  fi
6698else
6699  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6700fi
6701
6702    if test -n "$ac_tool_prefix"; then
6703  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6704set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706$as_echo_n "checking for $ac_word... " >&6; }
6707if ${ac_cv_prog_NMEDIT+:} false; then :
6708  $as_echo_n "(cached) " >&6
6709else
6710  if test -n "$NMEDIT"; then
6711  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6712else
6713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714for as_dir in $PATH
6715do
6716  IFS=$as_save_IFS
6717  test -z "$as_dir" && as_dir=.
6718    for ac_exec_ext in '' $ac_executable_extensions; do
6719  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6720    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722    break 2
6723  fi
6724done
6725  done
6726IFS=$as_save_IFS
6727
6728fi
6729fi
6730NMEDIT=$ac_cv_prog_NMEDIT
6731if test -n "$NMEDIT"; then
6732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6733$as_echo "$NMEDIT" >&6; }
6734else
6735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736$as_echo "no" >&6; }
6737fi
6738
6739
6740fi
6741if test -z "$ac_cv_prog_NMEDIT"; then
6742  ac_ct_NMEDIT=$NMEDIT
6743  # Extract the first word of "nmedit", so it can be a program name with args.
6744set dummy nmedit; ac_word=$2
6745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6746$as_echo_n "checking for $ac_word... " >&6; }
6747if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6748  $as_echo_n "(cached) " >&6
6749else
6750  if test -n "$ac_ct_NMEDIT"; then
6751  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6752else
6753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754for as_dir in $PATH
6755do
6756  IFS=$as_save_IFS
6757  test -z "$as_dir" && as_dir=.
6758    for ac_exec_ext in '' $ac_executable_extensions; do
6759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6760    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6762    break 2
6763  fi
6764done
6765  done
6766IFS=$as_save_IFS
6767
6768fi
6769fi
6770ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6771if test -n "$ac_ct_NMEDIT"; then
6772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6773$as_echo "$ac_ct_NMEDIT" >&6; }
6774else
6775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776$as_echo "no" >&6; }
6777fi
6778
6779  if test "x$ac_ct_NMEDIT" = x; then
6780    NMEDIT=":"
6781  else
6782    case $cross_compiling:$ac_tool_warned in
6783yes:)
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6786ac_tool_warned=yes ;;
6787esac
6788    NMEDIT=$ac_ct_NMEDIT
6789  fi
6790else
6791  NMEDIT="$ac_cv_prog_NMEDIT"
6792fi
6793
6794    if test -n "$ac_tool_prefix"; then
6795  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6796set dummy ${ac_tool_prefix}lipo; ac_word=$2
6797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798$as_echo_n "checking for $ac_word... " >&6; }
6799if ${ac_cv_prog_LIPO+:} false; then :
6800  $as_echo_n "(cached) " >&6
6801else
6802  if test -n "$LIPO"; then
6803  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6804else
6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808  IFS=$as_save_IFS
6809  test -z "$as_dir" && as_dir=.
6810    for ac_exec_ext in '' $ac_executable_extensions; do
6811  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6812    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6813    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814    break 2
6815  fi
6816done
6817  done
6818IFS=$as_save_IFS
6819
6820fi
6821fi
6822LIPO=$ac_cv_prog_LIPO
6823if test -n "$LIPO"; then
6824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6825$as_echo "$LIPO" >&6; }
6826else
6827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828$as_echo "no" >&6; }
6829fi
6830
6831
6832fi
6833if test -z "$ac_cv_prog_LIPO"; then
6834  ac_ct_LIPO=$LIPO
6835  # Extract the first word of "lipo", so it can be a program name with args.
6836set dummy lipo; ac_word=$2
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838$as_echo_n "checking for $ac_word... " >&6; }
6839if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6840  $as_echo_n "(cached) " >&6
6841else
6842  if test -n "$ac_ct_LIPO"; then
6843  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6844else
6845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846for as_dir in $PATH
6847do
6848  IFS=$as_save_IFS
6849  test -z "$as_dir" && as_dir=.
6850    for ac_exec_ext in '' $ac_executable_extensions; do
6851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6852    ac_cv_prog_ac_ct_LIPO="lipo"
6853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854    break 2
6855  fi
6856done
6857  done
6858IFS=$as_save_IFS
6859
6860fi
6861fi
6862ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6863if test -n "$ac_ct_LIPO"; then
6864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6865$as_echo "$ac_ct_LIPO" >&6; }
6866else
6867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868$as_echo "no" >&6; }
6869fi
6870
6871  if test "x$ac_ct_LIPO" = x; then
6872    LIPO=":"
6873  else
6874    case $cross_compiling:$ac_tool_warned in
6875yes:)
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6878ac_tool_warned=yes ;;
6879esac
6880    LIPO=$ac_ct_LIPO
6881  fi
6882else
6883  LIPO="$ac_cv_prog_LIPO"
6884fi
6885
6886    if test -n "$ac_tool_prefix"; then
6887  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6888set dummy ${ac_tool_prefix}otool; ac_word=$2
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890$as_echo_n "checking for $ac_word... " >&6; }
6891if ${ac_cv_prog_OTOOL+:} false; then :
6892  $as_echo_n "(cached) " >&6
6893else
6894  if test -n "$OTOOL"; then
6895  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6896else
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900  IFS=$as_save_IFS
6901  test -z "$as_dir" && as_dir=.
6902    for ac_exec_ext in '' $ac_executable_extensions; do
6903  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6904    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906    break 2
6907  fi
6908done
6909  done
6910IFS=$as_save_IFS
6911
6912fi
6913fi
6914OTOOL=$ac_cv_prog_OTOOL
6915if test -n "$OTOOL"; then
6916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6917$as_echo "$OTOOL" >&6; }
6918else
6919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920$as_echo "no" >&6; }
6921fi
6922
6923
6924fi
6925if test -z "$ac_cv_prog_OTOOL"; then
6926  ac_ct_OTOOL=$OTOOL
6927  # Extract the first word of "otool", so it can be a program name with args.
6928set dummy otool; ac_word=$2
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930$as_echo_n "checking for $ac_word... " >&6; }
6931if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6932  $as_echo_n "(cached) " >&6
6933else
6934  if test -n "$ac_ct_OTOOL"; then
6935  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6936else
6937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938for as_dir in $PATH
6939do
6940  IFS=$as_save_IFS
6941  test -z "$as_dir" && as_dir=.
6942    for ac_exec_ext in '' $ac_executable_extensions; do
6943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6944    ac_cv_prog_ac_ct_OTOOL="otool"
6945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946    break 2
6947  fi
6948done
6949  done
6950IFS=$as_save_IFS
6951
6952fi
6953fi
6954ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6955if test -n "$ac_ct_OTOOL"; then
6956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6957$as_echo "$ac_ct_OTOOL" >&6; }
6958else
6959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960$as_echo "no" >&6; }
6961fi
6962
6963  if test "x$ac_ct_OTOOL" = x; then
6964    OTOOL=":"
6965  else
6966    case $cross_compiling:$ac_tool_warned in
6967yes:)
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6970ac_tool_warned=yes ;;
6971esac
6972    OTOOL=$ac_ct_OTOOL
6973  fi
6974else
6975  OTOOL="$ac_cv_prog_OTOOL"
6976fi
6977
6978    if test -n "$ac_tool_prefix"; then
6979  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6980set dummy ${ac_tool_prefix}otool64; ac_word=$2
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982$as_echo_n "checking for $ac_word... " >&6; }
6983if ${ac_cv_prog_OTOOL64+:} false; then :
6984  $as_echo_n "(cached) " >&6
6985else
6986  if test -n "$OTOOL64"; then
6987  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6988else
6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992  IFS=$as_save_IFS
6993  test -z "$as_dir" && as_dir=.
6994    for ac_exec_ext in '' $ac_executable_extensions; do
6995  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998    break 2
6999  fi
7000done
7001  done
7002IFS=$as_save_IFS
7003
7004fi
7005fi
7006OTOOL64=$ac_cv_prog_OTOOL64
7007if test -n "$OTOOL64"; then
7008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7009$as_echo "$OTOOL64" >&6; }
7010else
7011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012$as_echo "no" >&6; }
7013fi
7014
7015
7016fi
7017if test -z "$ac_cv_prog_OTOOL64"; then
7018  ac_ct_OTOOL64=$OTOOL64
7019  # Extract the first word of "otool64", so it can be a program name with args.
7020set dummy otool64; ac_word=$2
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022$as_echo_n "checking for $ac_word... " >&6; }
7023if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7024  $as_echo_n "(cached) " >&6
7025else
7026  if test -n "$ac_ct_OTOOL64"; then
7027  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7028else
7029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032  IFS=$as_save_IFS
7033  test -z "$as_dir" && as_dir=.
7034    for ac_exec_ext in '' $ac_executable_extensions; do
7035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036    ac_cv_prog_ac_ct_OTOOL64="otool64"
7037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038    break 2
7039  fi
7040done
7041  done
7042IFS=$as_save_IFS
7043
7044fi
7045fi
7046ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7047if test -n "$ac_ct_OTOOL64"; then
7048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7049$as_echo "$ac_ct_OTOOL64" >&6; }
7050else
7051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052$as_echo "no" >&6; }
7053fi
7054
7055  if test "x$ac_ct_OTOOL64" = x; then
7056    OTOOL64=":"
7057  else
7058    case $cross_compiling:$ac_tool_warned in
7059yes:)
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7062ac_tool_warned=yes ;;
7063esac
7064    OTOOL64=$ac_ct_OTOOL64
7065  fi
7066else
7067  OTOOL64="$ac_cv_prog_OTOOL64"
7068fi
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7097$as_echo_n "checking for -single_module linker flag... " >&6; }
7098if ${lt_cv_apple_cc_single_mod+:} false; then :
7099  $as_echo_n "(cached) " >&6
7100else
7101  lt_cv_apple_cc_single_mod=no
7102      if test -z "$LT_MULTI_MODULE"; then
7103	# By default we will add the -single_module flag. You can override
7104	# by either setting the environment variable LT_MULTI_MODULE
7105	# non-empty at configure time, or by adding -multi_module to the
7106	# link flags.
7107	rm -rf libconftest.dylib*
7108	echo "int foo(void){return 1;}" > conftest.c
7109	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7110-dynamiclib -Wl,-single_module conftest.c" >&5
7111	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7112	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7113        _lt_result=$?
7114	# If there is a non-empty error log, and "single_module"
7115	# appears in it, assume the flag caused a linker warning
7116        if test -s conftest.err && $GREP single_module conftest.err; then
7117	  cat conftest.err >&5
7118	# Otherwise, if the output was created with a 0 exit code from
7119	# the compiler, it worked.
7120	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7121	  lt_cv_apple_cc_single_mod=yes
7122	else
7123	  cat conftest.err >&5
7124	fi
7125	rm -rf libconftest.dylib*
7126	rm -f conftest.*
7127      fi
7128fi
7129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7130$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7131
7132    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7133$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7134if ${lt_cv_ld_exported_symbols_list+:} false; then :
7135  $as_echo_n "(cached) " >&6
7136else
7137  lt_cv_ld_exported_symbols_list=no
7138      save_LDFLAGS=$LDFLAGS
7139      echo "_main" > conftest.sym
7140      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7141      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142/* end confdefs.h.  */
7143
7144int
7145main ()
7146{
7147
7148  ;
7149  return 0;
7150}
7151_ACEOF
7152if ac_fn_c_try_link "$LINENO"; then :
7153  lt_cv_ld_exported_symbols_list=yes
7154else
7155  lt_cv_ld_exported_symbols_list=no
7156fi
7157rm -f core conftest.err conftest.$ac_objext \
7158    conftest$ac_exeext conftest.$ac_ext
7159	LDFLAGS=$save_LDFLAGS
7160
7161fi
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7163$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7164
7165    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7166$as_echo_n "checking for -force_load linker flag... " >&6; }
7167if ${lt_cv_ld_force_load+:} false; then :
7168  $as_echo_n "(cached) " >&6
7169else
7170  lt_cv_ld_force_load=no
7171      cat > conftest.c << _LT_EOF
7172int forced_loaded() { return 2;}
7173_LT_EOF
7174      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7175      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7176      echo "$AR cru libconftest.a conftest.o" >&5
7177      $AR cru libconftest.a conftest.o 2>&5
7178      echo "$RANLIB libconftest.a" >&5
7179      $RANLIB libconftest.a 2>&5
7180      cat > conftest.c << _LT_EOF
7181int main() { return 0;}
7182_LT_EOF
7183      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7184      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7185      _lt_result=$?
7186      if test -s conftest.err && $GREP force_load conftest.err; then
7187	cat conftest.err >&5
7188      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7189	lt_cv_ld_force_load=yes
7190      else
7191	cat conftest.err >&5
7192      fi
7193        rm -f conftest.err libconftest.a conftest conftest.c
7194        rm -rf conftest.dSYM
7195
7196fi
7197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7198$as_echo "$lt_cv_ld_force_load" >&6; }
7199    case $host_os in
7200    rhapsody* | darwin1.[012])
7201      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7202    darwin1.*)
7203      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7204    darwin*) # darwin 5.x on
7205      # if running on 10.5 or later, the deployment target defaults
7206      # to the OS version, if on x86, and 10.4, the deployment
7207      # target defaults to 10.4. Don't you love it?
7208      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7209	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7210	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7211	10.[012][,.]*)
7212	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7213	10.*)
7214	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7215      esac
7216    ;;
7217  esac
7218    if test yes = "$lt_cv_apple_cc_single_mod"; then
7219      _lt_dar_single_mod='$single_module'
7220    fi
7221    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7222      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7223    else
7224      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7225    fi
7226    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7227      _lt_dsymutil='~$DSYMUTIL $lib || :'
7228    else
7229      _lt_dsymutil=
7230    fi
7231    ;;
7232  esac
7233
7234# func_munge_path_list VARIABLE PATH
7235# -----------------------------------
7236# VARIABLE is name of variable containing _space_ separated list of
7237# directories to be munged by the contents of PATH, which is string
7238# having a format:
7239# "DIR[:DIR]:"
7240#       string "DIR[ DIR]" will be prepended to VARIABLE
7241# ":DIR[:DIR]"
7242#       string "DIR[ DIR]" will be appended to VARIABLE
7243# "DIRP[:DIRP]::[DIRA:]DIRA"
7244#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7245#       "DIRA[ DIRA]" will be appended to VARIABLE
7246# "DIR[:DIR]"
7247#       VARIABLE will be replaced by "DIR[ DIR]"
7248func_munge_path_list ()
7249{
7250    case x$2 in
7251    x)
7252        ;;
7253    *:)
7254        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7255        ;;
7256    x:*)
7257        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7258        ;;
7259    *::*)
7260        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7261        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7262        ;;
7263    *)
7264        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7265        ;;
7266    esac
7267}
7268
7269ac_ext=c
7270ac_cpp='$CPP $CPPFLAGS'
7271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7273ac_compiler_gnu=$ac_cv_c_compiler_gnu
7274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7275$as_echo_n "checking how to run the C preprocessor... " >&6; }
7276# On Suns, sometimes $CPP names a directory.
7277if test -n "$CPP" && test -d "$CPP"; then
7278  CPP=
7279fi
7280if test -z "$CPP"; then
7281  if ${ac_cv_prog_CPP+:} false; then :
7282  $as_echo_n "(cached) " >&6
7283else
7284      # Double quotes because CPP needs to be expanded
7285    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7286    do
7287      ac_preproc_ok=false
7288for ac_c_preproc_warn_flag in '' yes
7289do
7290  # Use a header file that comes with gcc, so configuring glibc
7291  # with a fresh cross-compiler works.
7292  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7293  # <limits.h> exists even on freestanding compilers.
7294  # On the NeXT, cc -E runs the code through the compiler's parser,
7295  # not just through cpp. "Syntax error" is here to catch this case.
7296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297/* end confdefs.h.  */
7298#ifdef __STDC__
7299# include <limits.h>
7300#else
7301# include <assert.h>
7302#endif
7303		     Syntax error
7304_ACEOF
7305if ac_fn_c_try_cpp "$LINENO"; then :
7306
7307else
7308  # Broken: fails on valid input.
7309continue
7310fi
7311rm -f conftest.err conftest.i conftest.$ac_ext
7312
7313  # OK, works on sane cases.  Now check whether nonexistent headers
7314  # can be detected and how.
7315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316/* end confdefs.h.  */
7317#include <ac_nonexistent.h>
7318_ACEOF
7319if ac_fn_c_try_cpp "$LINENO"; then :
7320  # Broken: success on invalid input.
7321continue
7322else
7323  # Passes both tests.
7324ac_preproc_ok=:
7325break
7326fi
7327rm -f conftest.err conftest.i conftest.$ac_ext
7328
7329done
7330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7331rm -f conftest.i conftest.err conftest.$ac_ext
7332if $ac_preproc_ok; then :
7333  break
7334fi
7335
7336    done
7337    ac_cv_prog_CPP=$CPP
7338
7339fi
7340  CPP=$ac_cv_prog_CPP
7341else
7342  ac_cv_prog_CPP=$CPP
7343fi
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7345$as_echo "$CPP" >&6; }
7346ac_preproc_ok=false
7347for ac_c_preproc_warn_flag in '' yes
7348do
7349  # Use a header file that comes with gcc, so configuring glibc
7350  # with a fresh cross-compiler works.
7351  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7352  # <limits.h> exists even on freestanding compilers.
7353  # On the NeXT, cc -E runs the code through the compiler's parser,
7354  # not just through cpp. "Syntax error" is here to catch this case.
7355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356/* end confdefs.h.  */
7357#ifdef __STDC__
7358# include <limits.h>
7359#else
7360# include <assert.h>
7361#endif
7362		     Syntax error
7363_ACEOF
7364if ac_fn_c_try_cpp "$LINENO"; then :
7365
7366else
7367  # Broken: fails on valid input.
7368continue
7369fi
7370rm -f conftest.err conftest.i conftest.$ac_ext
7371
7372  # OK, works on sane cases.  Now check whether nonexistent headers
7373  # can be detected and how.
7374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375/* end confdefs.h.  */
7376#include <ac_nonexistent.h>
7377_ACEOF
7378if ac_fn_c_try_cpp "$LINENO"; then :
7379  # Broken: success on invalid input.
7380continue
7381else
7382  # Passes both tests.
7383ac_preproc_ok=:
7384break
7385fi
7386rm -f conftest.err conftest.i conftest.$ac_ext
7387
7388done
7389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7390rm -f conftest.i conftest.err conftest.$ac_ext
7391if $ac_preproc_ok; then :
7392
7393else
7394  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7396as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7397See \`config.log' for more details" "$LINENO" 5; }
7398fi
7399
7400ac_ext=c
7401ac_cpp='$CPP $CPPFLAGS'
7402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404ac_compiler_gnu=$ac_cv_c_compiler_gnu
7405
7406
7407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7408$as_echo_n "checking for ANSI C header files... " >&6; }
7409if ${ac_cv_header_stdc+:} false; then :
7410  $as_echo_n "(cached) " >&6
7411else
7412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413/* end confdefs.h.  */
7414#include <stdlib.h>
7415#include <stdarg.h>
7416#include <string.h>
7417#include <float.h>
7418
7419int
7420main ()
7421{
7422
7423  ;
7424  return 0;
7425}
7426_ACEOF
7427if ac_fn_c_try_compile "$LINENO"; then :
7428  ac_cv_header_stdc=yes
7429else
7430  ac_cv_header_stdc=no
7431fi
7432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433
7434if test $ac_cv_header_stdc = yes; then
7435  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437/* end confdefs.h.  */
7438#include <string.h>
7439
7440_ACEOF
7441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7442  $EGREP "memchr" >/dev/null 2>&1; then :
7443
7444else
7445  ac_cv_header_stdc=no
7446fi
7447rm -f conftest*
7448
7449fi
7450
7451if test $ac_cv_header_stdc = yes; then
7452  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454/* end confdefs.h.  */
7455#include <stdlib.h>
7456
7457_ACEOF
7458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7459  $EGREP "free" >/dev/null 2>&1; then :
7460
7461else
7462  ac_cv_header_stdc=no
7463fi
7464rm -f conftest*
7465
7466fi
7467
7468if test $ac_cv_header_stdc = yes; then
7469  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7470  if test "$cross_compiling" = yes; then :
7471  :
7472else
7473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474/* end confdefs.h.  */
7475#include <ctype.h>
7476#include <stdlib.h>
7477#if ((' ' & 0x0FF) == 0x020)
7478# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7479# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7480#else
7481# define ISLOWER(c) \
7482		   (('a' <= (c) && (c) <= 'i') \
7483		     || ('j' <= (c) && (c) <= 'r') \
7484		     || ('s' <= (c) && (c) <= 'z'))
7485# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7486#endif
7487
7488#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7489int
7490main ()
7491{
7492  int i;
7493  for (i = 0; i < 256; i++)
7494    if (XOR (islower (i), ISLOWER (i))
7495	|| toupper (i) != TOUPPER (i))
7496      return 2;
7497  return 0;
7498}
7499_ACEOF
7500if ac_fn_c_try_run "$LINENO"; then :
7501
7502else
7503  ac_cv_header_stdc=no
7504fi
7505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7506  conftest.$ac_objext conftest.beam conftest.$ac_ext
7507fi
7508
7509fi
7510fi
7511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7512$as_echo "$ac_cv_header_stdc" >&6; }
7513if test $ac_cv_header_stdc = yes; then
7514
7515$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7516
7517fi
7518
7519# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7520for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7521		  inttypes.h stdint.h unistd.h
7522do :
7523  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7524ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7525"
7526if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7527  cat >>confdefs.h <<_ACEOF
7528#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7529_ACEOF
7530
7531fi
7532
7533done
7534
7535
7536for ac_header in dlfcn.h
7537do :
7538  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7539"
7540if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7541  cat >>confdefs.h <<_ACEOF
7542#define HAVE_DLFCN_H 1
7543_ACEOF
7544
7545fi
7546
7547done
7548
7549
7550
7551
7552
7553# Set options
7554
7555
7556
7557        enable_dlopen=no
7558
7559
7560  enable_win32_dll=no
7561
7562
7563            # Check whether --enable-shared was given.
7564if test "${enable_shared+set}" = set; then :
7565  enableval=$enable_shared; p=${PACKAGE-default}
7566    case $enableval in
7567    yes) enable_shared=yes ;;
7568    no) enable_shared=no ;;
7569    *)
7570      enable_shared=no
7571      # Look at the argument we got.  We use all the common list separators.
7572      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7573      for pkg in $enableval; do
7574	IFS=$lt_save_ifs
7575	if test "X$pkg" = "X$p"; then
7576	  enable_shared=yes
7577	fi
7578      done
7579      IFS=$lt_save_ifs
7580      ;;
7581    esac
7582else
7583  enable_shared=yes
7584fi
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594  # Check whether --enable-static was given.
7595if test "${enable_static+set}" = set; then :
7596  enableval=$enable_static; p=${PACKAGE-default}
7597    case $enableval in
7598    yes) enable_static=yes ;;
7599    no) enable_static=no ;;
7600    *)
7601     enable_static=no
7602      # Look at the argument we got.  We use all the common list separators.
7603      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7604      for pkg in $enableval; do
7605	IFS=$lt_save_ifs
7606	if test "X$pkg" = "X$p"; then
7607	  enable_static=yes
7608	fi
7609      done
7610      IFS=$lt_save_ifs
7611      ;;
7612    esac
7613else
7614  enable_static=yes
7615fi
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626# Check whether --with-pic was given.
7627if test "${with_pic+set}" = set; then :
7628  withval=$with_pic; lt_p=${PACKAGE-default}
7629    case $withval in
7630    yes|no) pic_mode=$withval ;;
7631    *)
7632      pic_mode=default
7633      # Look at the argument we got.  We use all the common list separators.
7634      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7635      for lt_pkg in $withval; do
7636	IFS=$lt_save_ifs
7637	if test "X$lt_pkg" = "X$lt_p"; then
7638	  pic_mode=yes
7639	fi
7640      done
7641      IFS=$lt_save_ifs
7642      ;;
7643    esac
7644else
7645  pic_mode=default
7646fi
7647
7648
7649
7650
7651
7652
7653
7654
7655  # Check whether --enable-fast-install was given.
7656if test "${enable_fast_install+set}" = set; then :
7657  enableval=$enable_fast_install; p=${PACKAGE-default}
7658    case $enableval in
7659    yes) enable_fast_install=yes ;;
7660    no) enable_fast_install=no ;;
7661    *)
7662      enable_fast_install=no
7663      # Look at the argument we got.  We use all the common list separators.
7664      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7665      for pkg in $enableval; do
7666	IFS=$lt_save_ifs
7667	if test "X$pkg" = "X$p"; then
7668	  enable_fast_install=yes
7669	fi
7670      done
7671      IFS=$lt_save_ifs
7672      ;;
7673    esac
7674else
7675  enable_fast_install=yes
7676fi
7677
7678
7679
7680
7681
7682
7683
7684
7685  shared_archive_member_spec=
7686case $host,$enable_shared in
7687power*-*-aix[5-9]*,yes)
7688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7689$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7690
7691# Check whether --with-aix-soname was given.
7692if test "${with_aix_soname+set}" = set; then :
7693  withval=$with_aix_soname; case $withval in
7694    aix|svr4|both)
7695      ;;
7696    *)
7697      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7698      ;;
7699    esac
7700    lt_cv_with_aix_soname=$with_aix_soname
7701else
7702  if ${lt_cv_with_aix_soname+:} false; then :
7703  $as_echo_n "(cached) " >&6
7704else
7705  lt_cv_with_aix_soname=aix
7706fi
7707
7708    with_aix_soname=$lt_cv_with_aix_soname
7709fi
7710
7711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7712$as_echo "$with_aix_soname" >&6; }
7713  if test aix != "$with_aix_soname"; then
7714    # For the AIX way of multilib, we name the shared archive member
7715    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7716    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7717    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7718    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7719    if test 64 = "${OBJECT_MODE-32}"; then
7720      shared_archive_member_spec=shr_64
7721    else
7722      shared_archive_member_spec=shr
7723    fi
7724  fi
7725  ;;
7726*)
7727  with_aix_soname=aix
7728  ;;
7729esac
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740# This can be used to rebuild libtool when needed
7741LIBTOOL_DEPS=$ltmain
7742
7743# Always use our own libtool.
7744LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775test -z "$LN_S" && LN_S="ln -s"
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790if test -n "${ZSH_VERSION+set}"; then
7791   setopt NO_GLOB_SUBST
7792fi
7793
7794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7795$as_echo_n "checking for objdir... " >&6; }
7796if ${lt_cv_objdir+:} false; then :
7797  $as_echo_n "(cached) " >&6
7798else
7799  rm -f .libs 2>/dev/null
7800mkdir .libs 2>/dev/null
7801if test -d .libs; then
7802  lt_cv_objdir=.libs
7803else
7804  # MS-DOS does not allow filenames that begin with a dot.
7805  lt_cv_objdir=_libs
7806fi
7807rmdir .libs 2>/dev/null
7808fi
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7810$as_echo "$lt_cv_objdir" >&6; }
7811objdir=$lt_cv_objdir
7812
7813
7814
7815
7816
7817cat >>confdefs.h <<_ACEOF
7818#define LT_OBJDIR "$lt_cv_objdir/"
7819_ACEOF
7820
7821
7822
7823
7824case $host_os in
7825aix3*)
7826  # AIX sometimes has problems with the GCC collect2 program.  For some
7827  # reason, if we set the COLLECT_NAMES environment variable, the problems
7828  # vanish in a puff of smoke.
7829  if test set != "${COLLECT_NAMES+set}"; then
7830    COLLECT_NAMES=
7831    export COLLECT_NAMES
7832  fi
7833  ;;
7834esac
7835
7836# Global variables:
7837ofile=libtool
7838can_build_shared=yes
7839
7840# All known linkers require a '.a' archive for static linking (except MSVC,
7841# which needs '.lib').
7842libext=a
7843
7844with_gnu_ld=$lt_cv_prog_gnu_ld
7845
7846old_CC=$CC
7847old_CFLAGS=$CFLAGS
7848
7849# Set sane defaults for various variables
7850test -z "$CC" && CC=cc
7851test -z "$LTCC" && LTCC=$CC
7852test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7853test -z "$LD" && LD=ld
7854test -z "$ac_objext" && ac_objext=o
7855
7856func_cc_basename $compiler
7857cc_basename=$func_cc_basename_result
7858
7859
7860# Only perform the check for file, if the check method requires it
7861test -z "$MAGIC_CMD" && MAGIC_CMD=file
7862case $deplibs_check_method in
7863file_magic*)
7864  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7865    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7866$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7867if ${lt_cv_path_MAGIC_CMD+:} false; then :
7868  $as_echo_n "(cached) " >&6
7869else
7870  case $MAGIC_CMD in
7871[\\/*] |  ?:[\\/]*)
7872  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7873  ;;
7874*)
7875  lt_save_MAGIC_CMD=$MAGIC_CMD
7876  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7877  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7878  for ac_dir in $ac_dummy; do
7879    IFS=$lt_save_ifs
7880    test -z "$ac_dir" && ac_dir=.
7881    if test -f "$ac_dir/${ac_tool_prefix}file"; then
7882      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7883      if test -n "$file_magic_test_file"; then
7884	case $deplibs_check_method in
7885	"file_magic "*)
7886	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7887	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7888	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7889	    $EGREP "$file_magic_regex" > /dev/null; then
7890	    :
7891	  else
7892	    cat <<_LT_EOF 1>&2
7893
7894*** Warning: the command libtool uses to detect shared libraries,
7895*** $file_magic_cmd, produces output that libtool cannot recognize.
7896*** The result is that libtool may fail to recognize shared libraries
7897*** as such.  This will affect the creation of libtool libraries that
7898*** depend on shared libraries, but programs linked with such libtool
7899*** libraries will work regardless of this problem.  Nevertheless, you
7900*** may want to report the problem to your system manager and/or to
7901*** bug-libtool@gnu.org
7902
7903_LT_EOF
7904	  fi ;;
7905	esac
7906      fi
7907      break
7908    fi
7909  done
7910  IFS=$lt_save_ifs
7911  MAGIC_CMD=$lt_save_MAGIC_CMD
7912  ;;
7913esac
7914fi
7915
7916MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7917if test -n "$MAGIC_CMD"; then
7918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7919$as_echo "$MAGIC_CMD" >&6; }
7920else
7921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922$as_echo "no" >&6; }
7923fi
7924
7925
7926
7927
7928
7929if test -z "$lt_cv_path_MAGIC_CMD"; then
7930  if test -n "$ac_tool_prefix"; then
7931    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7932$as_echo_n "checking for file... " >&6; }
7933if ${lt_cv_path_MAGIC_CMD+:} false; then :
7934  $as_echo_n "(cached) " >&6
7935else
7936  case $MAGIC_CMD in
7937[\\/*] |  ?:[\\/]*)
7938  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7939  ;;
7940*)
7941  lt_save_MAGIC_CMD=$MAGIC_CMD
7942  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7943  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7944  for ac_dir in $ac_dummy; do
7945    IFS=$lt_save_ifs
7946    test -z "$ac_dir" && ac_dir=.
7947    if test -f "$ac_dir/file"; then
7948      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7949      if test -n "$file_magic_test_file"; then
7950	case $deplibs_check_method in
7951	"file_magic "*)
7952	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7953	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7954	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7955	    $EGREP "$file_magic_regex" > /dev/null; then
7956	    :
7957	  else
7958	    cat <<_LT_EOF 1>&2
7959
7960*** Warning: the command libtool uses to detect shared libraries,
7961*** $file_magic_cmd, produces output that libtool cannot recognize.
7962*** The result is that libtool may fail to recognize shared libraries
7963*** as such.  This will affect the creation of libtool libraries that
7964*** depend on shared libraries, but programs linked with such libtool
7965*** libraries will work regardless of this problem.  Nevertheless, you
7966*** may want to report the problem to your system manager and/or to
7967*** bug-libtool@gnu.org
7968
7969_LT_EOF
7970	  fi ;;
7971	esac
7972      fi
7973      break
7974    fi
7975  done
7976  IFS=$lt_save_ifs
7977  MAGIC_CMD=$lt_save_MAGIC_CMD
7978  ;;
7979esac
7980fi
7981
7982MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7983if test -n "$MAGIC_CMD"; then
7984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7985$as_echo "$MAGIC_CMD" >&6; }
7986else
7987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988$as_echo "no" >&6; }
7989fi
7990
7991
7992  else
7993    MAGIC_CMD=:
7994  fi
7995fi
7996
7997  fi
7998  ;;
7999esac
8000
8001# Use C for the default configuration in the libtool script
8002
8003lt_save_CC=$CC
8004ac_ext=c
8005ac_cpp='$CPP $CPPFLAGS'
8006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8008ac_compiler_gnu=$ac_cv_c_compiler_gnu
8009
8010
8011# Source file extension for C test sources.
8012ac_ext=c
8013
8014# Object file extension for compiled C test sources.
8015objext=o
8016objext=$objext
8017
8018# Code to be used in simple compile tests
8019lt_simple_compile_test_code="int some_variable = 0;"
8020
8021# Code to be used in simple link tests
8022lt_simple_link_test_code='int main(){return(0);}'
8023
8024
8025
8026
8027
8028
8029
8030# If no C compiler was specified, use CC.
8031LTCC=${LTCC-"$CC"}
8032
8033# If no C compiler flags were specified, use CFLAGS.
8034LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8035
8036# Allow CC to be a program name with arguments.
8037compiler=$CC
8038
8039# Save the default compiler, since it gets overwritten when the other
8040# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8041compiler_DEFAULT=$CC
8042
8043# save warnings/boilerplate of simple test code
8044ac_outfile=conftest.$ac_objext
8045echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8046eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8047_lt_compiler_boilerplate=`cat conftest.err`
8048$RM conftest*
8049
8050ac_outfile=conftest.$ac_objext
8051echo "$lt_simple_link_test_code" >conftest.$ac_ext
8052eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8053_lt_linker_boilerplate=`cat conftest.err`
8054$RM -r conftest*
8055
8056
8057## CAVEAT EMPTOR:
8058## There is no encapsulation within the following macros, do not change
8059## the running order or otherwise move them around unless you know exactly
8060## what you are doing...
8061if test -n "$compiler"; then
8062
8063lt_prog_compiler_no_builtin_flag=
8064
8065if test yes = "$GCC"; then
8066  case $cc_basename in
8067  nvcc*)
8068    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8069  *)
8070    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8071  esac
8072
8073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8074$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8075if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8076  $as_echo_n "(cached) " >&6
8077else
8078  lt_cv_prog_compiler_rtti_exceptions=no
8079   ac_outfile=conftest.$ac_objext
8080   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8081   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8082   # Insert the option either (1) after the last *FLAGS variable, or
8083   # (2) before a word containing "conftest.", or (3) at the end.
8084   # Note that $ac_compile itself does not contain backslashes and begins
8085   # with a dollar sign (not a hyphen), so the echo should work correctly.
8086   # The option is referenced via a variable to avoid confusing sed.
8087   lt_compile=`echo "$ac_compile" | $SED \
8088   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8089   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8090   -e 's:$: $lt_compiler_flag:'`
8091   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8092   (eval "$lt_compile" 2>conftest.err)
8093   ac_status=$?
8094   cat conftest.err >&5
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   if (exit $ac_status) && test -s "$ac_outfile"; then
8097     # The compiler can only warn and ignore the option if not recognized
8098     # So say no if there are warnings other than the usual output.
8099     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8100     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8101     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8102       lt_cv_prog_compiler_rtti_exceptions=yes
8103     fi
8104   fi
8105   $RM conftest*
8106
8107fi
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8109$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8110
8111if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8112    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8113else
8114    :
8115fi
8116
8117fi
8118
8119
8120
8121
8122
8123
8124  lt_prog_compiler_wl=
8125lt_prog_compiler_pic=
8126lt_prog_compiler_static=
8127
8128
8129  if test yes = "$GCC"; then
8130    lt_prog_compiler_wl='-Wl,'
8131    lt_prog_compiler_static='-static'
8132
8133    case $host_os in
8134      aix*)
8135      # All AIX code is PIC.
8136      if test ia64 = "$host_cpu"; then
8137	# AIX 5 now supports IA64 processor
8138	lt_prog_compiler_static='-Bstatic'
8139      fi
8140      lt_prog_compiler_pic='-fPIC'
8141      ;;
8142
8143    amigaos*)
8144      case $host_cpu in
8145      powerpc)
8146            # see comment about AmigaOS4 .so support
8147            lt_prog_compiler_pic='-fPIC'
8148        ;;
8149      m68k)
8150            # FIXME: we need at least 68020 code to build shared libraries, but
8151            # adding the '-m68020' flag to GCC prevents building anything better,
8152            # like '-m68040'.
8153            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8154        ;;
8155      esac
8156      ;;
8157
8158    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8159      # PIC is the default for these OSes.
8160      ;;
8161
8162    mingw* | cygwin* | pw32* | os2* | cegcc*)
8163      # This hack is so that the source file can tell whether it is being
8164      # built for inclusion in a dll (and should export symbols for example).
8165      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8166      # (--disable-auto-import) libraries
8167      lt_prog_compiler_pic='-DDLL_EXPORT'
8168      case $host_os in
8169      os2*)
8170	lt_prog_compiler_static='$wl-static'
8171	;;
8172      esac
8173      ;;
8174
8175    darwin* | rhapsody*)
8176      # PIC is the default on this platform
8177      # Common symbols not allowed in MH_DYLIB files
8178      lt_prog_compiler_pic='-fno-common'
8179      ;;
8180
8181    haiku*)
8182      # PIC is the default for Haiku.
8183      # The "-static" flag exists, but is broken.
8184      lt_prog_compiler_static=
8185      ;;
8186
8187    hpux*)
8188      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8189      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8190      # sets the default TLS model and affects inlining.
8191      case $host_cpu in
8192      hppa*64*)
8193	# +Z the default
8194	;;
8195      *)
8196	lt_prog_compiler_pic='-fPIC'
8197	;;
8198      esac
8199      ;;
8200
8201    interix[3-9]*)
8202      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8203      # Instead, we relocate shared libraries at runtime.
8204      ;;
8205
8206    msdosdjgpp*)
8207      # Just because we use GCC doesn't mean we suddenly get shared libraries
8208      # on systems that don't support them.
8209      lt_prog_compiler_can_build_shared=no
8210      enable_shared=no
8211      ;;
8212
8213    *nto* | *qnx*)
8214      # QNX uses GNU C++, but need to define -shared option too, otherwise
8215      # it will coredump.
8216      lt_prog_compiler_pic='-fPIC -shared'
8217      ;;
8218
8219    sysv4*MP*)
8220      if test -d /usr/nec; then
8221	lt_prog_compiler_pic=-Kconform_pic
8222      fi
8223      ;;
8224
8225    *)
8226      lt_prog_compiler_pic='-fPIC'
8227      ;;
8228    esac
8229
8230    case $cc_basename in
8231    nvcc*) # Cuda Compiler Driver 2.2
8232      lt_prog_compiler_wl='-Xlinker '
8233      if test -n "$lt_prog_compiler_pic"; then
8234        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8235      fi
8236      ;;
8237    esac
8238  else
8239    # PORTME Check for flag to pass linker flags through the system compiler.
8240    case $host_os in
8241    aix*)
8242      lt_prog_compiler_wl='-Wl,'
8243      if test ia64 = "$host_cpu"; then
8244	# AIX 5 now supports IA64 processor
8245	lt_prog_compiler_static='-Bstatic'
8246      else
8247	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8248      fi
8249      ;;
8250
8251    darwin* | rhapsody*)
8252      # PIC is the default on this platform
8253      # Common symbols not allowed in MH_DYLIB files
8254      lt_prog_compiler_pic='-fno-common'
8255      case $cc_basename in
8256      nagfor*)
8257        # NAG Fortran compiler
8258        lt_prog_compiler_wl='-Wl,-Wl,,'
8259        lt_prog_compiler_pic='-PIC'
8260        lt_prog_compiler_static='-Bstatic'
8261        ;;
8262      esac
8263      ;;
8264
8265    mingw* | cygwin* | pw32* | os2* | cegcc*)
8266      # This hack is so that the source file can tell whether it is being
8267      # built for inclusion in a dll (and should export symbols for example).
8268      lt_prog_compiler_pic='-DDLL_EXPORT'
8269      case $host_os in
8270      os2*)
8271	lt_prog_compiler_static='$wl-static'
8272	;;
8273      esac
8274      ;;
8275
8276    hpux9* | hpux10* | hpux11*)
8277      lt_prog_compiler_wl='-Wl,'
8278      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8279      # not for PA HP-UX.
8280      case $host_cpu in
8281      hppa*64*|ia64*)
8282	# +Z the default
8283	;;
8284      *)
8285	lt_prog_compiler_pic='+Z'
8286	;;
8287      esac
8288      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8289      lt_prog_compiler_static='$wl-a ${wl}archive'
8290      ;;
8291
8292    irix5* | irix6* | nonstopux*)
8293      lt_prog_compiler_wl='-Wl,'
8294      # PIC (with -KPIC) is the default.
8295      lt_prog_compiler_static='-non_shared'
8296      ;;
8297
8298    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8299      case $cc_basename in
8300      # old Intel for x86_64, which still supported -KPIC.
8301      ecc*)
8302	lt_prog_compiler_wl='-Wl,'
8303	lt_prog_compiler_pic='-KPIC'
8304	lt_prog_compiler_static='-static'
8305        ;;
8306      # icc used to be incompatible with GCC.
8307      # ICC 10 doesn't accept -KPIC any more.
8308      icc* | ifort*)
8309	lt_prog_compiler_wl='-Wl,'
8310	lt_prog_compiler_pic='-fPIC'
8311	lt_prog_compiler_static='-static'
8312        ;;
8313      # Lahey Fortran 8.1.
8314      lf95*)
8315	lt_prog_compiler_wl='-Wl,'
8316	lt_prog_compiler_pic='--shared'
8317	lt_prog_compiler_static='--static'
8318	;;
8319      nagfor*)
8320	# NAG Fortran compiler
8321	lt_prog_compiler_wl='-Wl,-Wl,,'
8322	lt_prog_compiler_pic='-PIC'
8323	lt_prog_compiler_static='-Bstatic'
8324	;;
8325      tcc*)
8326	# Fabrice Bellard et al's Tiny C Compiler
8327	lt_prog_compiler_wl='-Wl,'
8328	lt_prog_compiler_pic='-fPIC'
8329	lt_prog_compiler_static='-static'
8330	;;
8331      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8332        # Portland Group compilers (*not* the Pentium gcc compiler,
8333	# which looks to be a dead project)
8334	lt_prog_compiler_wl='-Wl,'
8335	lt_prog_compiler_pic='-fpic'
8336	lt_prog_compiler_static='-Bstatic'
8337        ;;
8338      ccc*)
8339        lt_prog_compiler_wl='-Wl,'
8340        # All Alpha code is PIC.
8341        lt_prog_compiler_static='-non_shared'
8342        ;;
8343      xl* | bgxl* | bgf* | mpixl*)
8344	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8345	lt_prog_compiler_wl='-Wl,'
8346	lt_prog_compiler_pic='-qpic'
8347	lt_prog_compiler_static='-qstaticlink'
8348	;;
8349      *)
8350	case `$CC -V 2>&1 | sed 5q` in
8351	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8352	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8353	  lt_prog_compiler_pic='-KPIC'
8354	  lt_prog_compiler_static='-Bstatic'
8355	  lt_prog_compiler_wl=''
8356	  ;;
8357	*Sun\ F* | *Sun*Fortran*)
8358	  lt_prog_compiler_pic='-KPIC'
8359	  lt_prog_compiler_static='-Bstatic'
8360	  lt_prog_compiler_wl='-Qoption ld '
8361	  ;;
8362	*Sun\ C*)
8363	  # Sun C 5.9
8364	  lt_prog_compiler_pic='-KPIC'
8365	  lt_prog_compiler_static='-Bstatic'
8366	  lt_prog_compiler_wl='-Wl,'
8367	  ;;
8368        *Intel*\ [CF]*Compiler*)
8369	  lt_prog_compiler_wl='-Wl,'
8370	  lt_prog_compiler_pic='-fPIC'
8371	  lt_prog_compiler_static='-static'
8372	  ;;
8373	*Portland\ Group*)
8374	  lt_prog_compiler_wl='-Wl,'
8375	  lt_prog_compiler_pic='-fpic'
8376	  lt_prog_compiler_static='-Bstatic'
8377	  ;;
8378	esac
8379	;;
8380      esac
8381      ;;
8382
8383    newsos6)
8384      lt_prog_compiler_pic='-KPIC'
8385      lt_prog_compiler_static='-Bstatic'
8386      ;;
8387
8388    *nto* | *qnx*)
8389      # QNX uses GNU C++, but need to define -shared option too, otherwise
8390      # it will coredump.
8391      lt_prog_compiler_pic='-fPIC -shared'
8392      ;;
8393
8394    osf3* | osf4* | osf5*)
8395      lt_prog_compiler_wl='-Wl,'
8396      # All OSF/1 code is PIC.
8397      lt_prog_compiler_static='-non_shared'
8398      ;;
8399
8400    rdos*)
8401      lt_prog_compiler_static='-non_shared'
8402      ;;
8403
8404    solaris*)
8405      lt_prog_compiler_pic='-KPIC'
8406      lt_prog_compiler_static='-Bstatic'
8407      case $cc_basename in
8408      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8409	lt_prog_compiler_wl='-Qoption ld ';;
8410      *)
8411	lt_prog_compiler_wl='-Wl,';;
8412      esac
8413      ;;
8414
8415    sunos4*)
8416      lt_prog_compiler_wl='-Qoption ld '
8417      lt_prog_compiler_pic='-PIC'
8418      lt_prog_compiler_static='-Bstatic'
8419      ;;
8420
8421    sysv4 | sysv4.2uw2* | sysv4.3*)
8422      lt_prog_compiler_wl='-Wl,'
8423      lt_prog_compiler_pic='-KPIC'
8424      lt_prog_compiler_static='-Bstatic'
8425      ;;
8426
8427    sysv4*MP*)
8428      if test -d /usr/nec; then
8429	lt_prog_compiler_pic='-Kconform_pic'
8430	lt_prog_compiler_static='-Bstatic'
8431      fi
8432      ;;
8433
8434    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8435      lt_prog_compiler_wl='-Wl,'
8436      lt_prog_compiler_pic='-KPIC'
8437      lt_prog_compiler_static='-Bstatic'
8438      ;;
8439
8440    unicos*)
8441      lt_prog_compiler_wl='-Wl,'
8442      lt_prog_compiler_can_build_shared=no
8443      ;;
8444
8445    uts4*)
8446      lt_prog_compiler_pic='-pic'
8447      lt_prog_compiler_static='-Bstatic'
8448      ;;
8449
8450    *)
8451      lt_prog_compiler_can_build_shared=no
8452      ;;
8453    esac
8454  fi
8455
8456case $host_os in
8457  # For platforms that do not support PIC, -DPIC is meaningless:
8458  *djgpp*)
8459    lt_prog_compiler_pic=
8460    ;;
8461  *)
8462    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8463    ;;
8464esac
8465
8466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8467$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8468if ${lt_cv_prog_compiler_pic+:} false; then :
8469  $as_echo_n "(cached) " >&6
8470else
8471  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8472fi
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8474$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8475lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8476
8477#
8478# Check to make sure the PIC flag actually works.
8479#
8480if test -n "$lt_prog_compiler_pic"; then
8481  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8482$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8483if ${lt_cv_prog_compiler_pic_works+:} false; then :
8484  $as_echo_n "(cached) " >&6
8485else
8486  lt_cv_prog_compiler_pic_works=no
8487   ac_outfile=conftest.$ac_objext
8488   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8489   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8490   # Insert the option either (1) after the last *FLAGS variable, or
8491   # (2) before a word containing "conftest.", or (3) at the end.
8492   # Note that $ac_compile itself does not contain backslashes and begins
8493   # with a dollar sign (not a hyphen), so the echo should work correctly.
8494   # The option is referenced via a variable to avoid confusing sed.
8495   lt_compile=`echo "$ac_compile" | $SED \
8496   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8497   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8498   -e 's:$: $lt_compiler_flag:'`
8499   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8500   (eval "$lt_compile" 2>conftest.err)
8501   ac_status=$?
8502   cat conftest.err >&5
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   if (exit $ac_status) && test -s "$ac_outfile"; then
8505     # The compiler can only warn and ignore the option if not recognized
8506     # So say no if there are warnings other than the usual output.
8507     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8508     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8509     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8510       lt_cv_prog_compiler_pic_works=yes
8511     fi
8512   fi
8513   $RM conftest*
8514
8515fi
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8517$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8518
8519if test yes = "$lt_cv_prog_compiler_pic_works"; then
8520    case $lt_prog_compiler_pic in
8521     "" | " "*) ;;
8522     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8523     esac
8524else
8525    lt_prog_compiler_pic=
8526     lt_prog_compiler_can_build_shared=no
8527fi
8528
8529fi
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541#
8542# Check to make sure the static flag actually works.
8543#
8544wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8546$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8547if ${lt_cv_prog_compiler_static_works+:} false; then :
8548  $as_echo_n "(cached) " >&6
8549else
8550  lt_cv_prog_compiler_static_works=no
8551   save_LDFLAGS=$LDFLAGS
8552   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8553   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8554   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8555     # The linker can only warn and ignore the option if not recognized
8556     # So say no if there are warnings
8557     if test -s conftest.err; then
8558       # Append any errors to the config.log.
8559       cat conftest.err 1>&5
8560       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8561       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8562       if diff conftest.exp conftest.er2 >/dev/null; then
8563         lt_cv_prog_compiler_static_works=yes
8564       fi
8565     else
8566       lt_cv_prog_compiler_static_works=yes
8567     fi
8568   fi
8569   $RM -r conftest*
8570   LDFLAGS=$save_LDFLAGS
8571
8572fi
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8574$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8575
8576if test yes = "$lt_cv_prog_compiler_static_works"; then
8577    :
8578else
8579    lt_prog_compiler_static=
8580fi
8581
8582
8583
8584
8585
8586
8587
8588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8589$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8590if ${lt_cv_prog_compiler_c_o+:} false; then :
8591  $as_echo_n "(cached) " >&6
8592else
8593  lt_cv_prog_compiler_c_o=no
8594   $RM -r conftest 2>/dev/null
8595   mkdir conftest
8596   cd conftest
8597   mkdir out
8598   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8599
8600   lt_compiler_flag="-o out/conftest2.$ac_objext"
8601   # Insert the option either (1) after the last *FLAGS variable, or
8602   # (2) before a word containing "conftest.", or (3) at the end.
8603   # Note that $ac_compile itself does not contain backslashes and begins
8604   # with a dollar sign (not a hyphen), so the echo should work correctly.
8605   lt_compile=`echo "$ac_compile" | $SED \
8606   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8607   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8608   -e 's:$: $lt_compiler_flag:'`
8609   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8610   (eval "$lt_compile" 2>out/conftest.err)
8611   ac_status=$?
8612   cat out/conftest.err >&5
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8615   then
8616     # The compiler can only warn and ignore the option if not recognized
8617     # So say no if there are warnings
8618     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8619     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8620     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8621       lt_cv_prog_compiler_c_o=yes
8622     fi
8623   fi
8624   chmod u+w . 2>&5
8625   $RM conftest*
8626   # SGI C++ compiler will create directory out/ii_files/ for
8627   # template instantiation
8628   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8629   $RM out/* && rmdir out
8630   cd ..
8631   $RM -r conftest
8632   $RM conftest*
8633
8634fi
8635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8636$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8637
8638
8639
8640
8641
8642
8643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8644$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8645if ${lt_cv_prog_compiler_c_o+:} false; then :
8646  $as_echo_n "(cached) " >&6
8647else
8648  lt_cv_prog_compiler_c_o=no
8649   $RM -r conftest 2>/dev/null
8650   mkdir conftest
8651   cd conftest
8652   mkdir out
8653   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8654
8655   lt_compiler_flag="-o out/conftest2.$ac_objext"
8656   # Insert the option either (1) after the last *FLAGS variable, or
8657   # (2) before a word containing "conftest.", or (3) at the end.
8658   # Note that $ac_compile itself does not contain backslashes and begins
8659   # with a dollar sign (not a hyphen), so the echo should work correctly.
8660   lt_compile=`echo "$ac_compile" | $SED \
8661   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8662   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8663   -e 's:$: $lt_compiler_flag:'`
8664   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8665   (eval "$lt_compile" 2>out/conftest.err)
8666   ac_status=$?
8667   cat out/conftest.err >&5
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8670   then
8671     # The compiler can only warn and ignore the option if not recognized
8672     # So say no if there are warnings
8673     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8674     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8675     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8676       lt_cv_prog_compiler_c_o=yes
8677     fi
8678   fi
8679   chmod u+w . 2>&5
8680   $RM conftest*
8681   # SGI C++ compiler will create directory out/ii_files/ for
8682   # template instantiation
8683   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8684   $RM out/* && rmdir out
8685   cd ..
8686   $RM -r conftest
8687   $RM conftest*
8688
8689fi
8690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8691$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8692
8693
8694
8695
8696hard_links=nottested
8697if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8698  # do not overwrite the value of need_locks provided by the user
8699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8700$as_echo_n "checking if we can lock with hard links... " >&6; }
8701  hard_links=yes
8702  $RM conftest*
8703  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8704  touch conftest.a
8705  ln conftest.a conftest.b 2>&5 || hard_links=no
8706  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8708$as_echo "$hard_links" >&6; }
8709  if test no = "$hard_links"; then
8710    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8711$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8712    need_locks=warn
8713  fi
8714else
8715  need_locks=no
8716fi
8717
8718
8719
8720
8721
8722
8723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8724$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8725
8726  runpath_var=
8727  allow_undefined_flag=
8728  always_export_symbols=no
8729  archive_cmds=
8730  archive_expsym_cmds=
8731  compiler_needs_object=no
8732  enable_shared_with_static_runtimes=no
8733  export_dynamic_flag_spec=
8734  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8735  hardcode_automatic=no
8736  hardcode_direct=no
8737  hardcode_direct_absolute=no
8738  hardcode_libdir_flag_spec=
8739  hardcode_libdir_separator=
8740  hardcode_minus_L=no
8741  hardcode_shlibpath_var=unsupported
8742  inherit_rpath=no
8743  link_all_deplibs=unknown
8744  module_cmds=
8745  module_expsym_cmds=
8746  old_archive_from_new_cmds=
8747  old_archive_from_expsyms_cmds=
8748  thread_safe_flag_spec=
8749  whole_archive_flag_spec=
8750  # include_expsyms should be a list of space-separated symbols to be *always*
8751  # included in the symbol list
8752  include_expsyms=
8753  # exclude_expsyms can be an extended regexp of symbols to exclude
8754  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8755  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8756  # as well as any symbol that contains 'd'.
8757  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8758  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8759  # platforms (ab)use it in PIC code, but their linkers get confused if
8760  # the symbol is explicitly referenced.  Since portable code cannot
8761  # rely on this symbol name, it's probably fine to never include it in
8762  # preloaded symbol tables.
8763  # Exclude shared library initialization/finalization symbols.
8764  extract_expsyms_cmds=
8765
8766  case $host_os in
8767  cygwin* | mingw* | pw32* | cegcc*)
8768    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8769    # When not using gcc, we currently assume that we are using
8770    # Microsoft Visual C++.
8771    if test yes != "$GCC"; then
8772      with_gnu_ld=no
8773    fi
8774    ;;
8775  interix*)
8776    # we just hope/assume this is gcc and not c89 (= MSVC++)
8777    with_gnu_ld=yes
8778    ;;
8779  openbsd* | bitrig*)
8780    with_gnu_ld=no
8781    ;;
8782  linux* | k*bsd*-gnu | gnu*)
8783    link_all_deplibs=no
8784    ;;
8785  esac
8786
8787  ld_shlibs=yes
8788
8789  # On some targets, GNU ld is compatible enough with the native linker
8790  # that we're better off using the native interface for both.
8791  lt_use_gnu_ld_interface=no
8792  if test yes = "$with_gnu_ld"; then
8793    case $host_os in
8794      aix*)
8795	# The AIX port of GNU ld has always aspired to compatibility
8796	# with the native linker.  However, as the warning in the GNU ld
8797	# block says, versions before 2.19.5* couldn't really create working
8798	# shared libraries, regardless of the interface used.
8799	case `$LD -v 2>&1` in
8800	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8801	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8802	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8803	  *)
8804	    lt_use_gnu_ld_interface=yes
8805	    ;;
8806	esac
8807	;;
8808      *)
8809	lt_use_gnu_ld_interface=yes
8810	;;
8811    esac
8812  fi
8813
8814  if test yes = "$lt_use_gnu_ld_interface"; then
8815    # If archive_cmds runs LD, not CC, wlarc should be empty
8816    wlarc='$wl'
8817
8818    # Set some defaults for GNU ld with shared library support. These
8819    # are reset later if shared libraries are not supported. Putting them
8820    # here allows them to be overridden if necessary.
8821    runpath_var=LD_RUN_PATH
8822    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8823    export_dynamic_flag_spec='$wl--export-dynamic'
8824    # ancient GNU ld didn't support --whole-archive et. al.
8825    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8826      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8827    else
8828      whole_archive_flag_spec=
8829    fi
8830    supports_anon_versioning=no
8831    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8832      *GNU\ gold*) supports_anon_versioning=yes ;;
8833      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8834      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8835      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8836      *\ 2.11.*) ;; # other 2.11 versions
8837      *) supports_anon_versioning=yes ;;
8838    esac
8839
8840    # See if GNU ld supports shared libraries.
8841    case $host_os in
8842    aix[3-9]*)
8843      # On AIX/PPC, the GNU linker is very broken
8844      if test ia64 != "$host_cpu"; then
8845	ld_shlibs=no
8846	cat <<_LT_EOF 1>&2
8847
8848*** Warning: the GNU linker, at least up to release 2.19, is reported
8849*** to be unable to reliably create shared libraries on AIX.
8850*** Therefore, libtool is disabling shared libraries support.  If you
8851*** really care for shared libraries, you may want to install binutils
8852*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8853*** You will then need to restart the configuration process.
8854
8855_LT_EOF
8856      fi
8857      ;;
8858
8859    amigaos*)
8860      case $host_cpu in
8861      powerpc)
8862            # see comment about AmigaOS4 .so support
8863            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8864            archive_expsym_cmds=''
8865        ;;
8866      m68k)
8867            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)'
8868            hardcode_libdir_flag_spec='-L$libdir'
8869            hardcode_minus_L=yes
8870        ;;
8871      esac
8872      ;;
8873
8874    beos*)
8875      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8876	allow_undefined_flag=unsupported
8877	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8878	# support --undefined.  This deserves some investigation.  FIXME
8879	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8880      else
8881	ld_shlibs=no
8882      fi
8883      ;;
8884
8885    cygwin* | mingw* | pw32* | cegcc*)
8886      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8887      # as there is no search path for DLLs.
8888      hardcode_libdir_flag_spec='-L$libdir'
8889      export_dynamic_flag_spec='$wl--export-all-symbols'
8890      allow_undefined_flag=unsupported
8891      always_export_symbols=no
8892      enable_shared_with_static_runtimes=yes
8893      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8894      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8895
8896      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8897        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8898	# If the export-symbols file already is a .def file, use it as
8899	# is; otherwise, prepend EXPORTS...
8900	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8901          cp $export_symbols $output_objdir/$soname.def;
8902        else
8903          echo EXPORTS > $output_objdir/$soname.def;
8904          cat $export_symbols >> $output_objdir/$soname.def;
8905        fi~
8906        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8907      else
8908	ld_shlibs=no
8909      fi
8910      ;;
8911
8912    haiku*)
8913      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8914      link_all_deplibs=yes
8915      ;;
8916
8917    os2*)
8918      hardcode_libdir_flag_spec='-L$libdir'
8919      hardcode_minus_L=yes
8920      allow_undefined_flag=unsupported
8921      shrext_cmds=.dll
8922      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8923	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8924	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8925	$ECHO EXPORTS >> $output_objdir/$libname.def~
8926	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8927	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8928	emximp -o $lib $output_objdir/$libname.def'
8929      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8930	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8931	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8932	$ECHO EXPORTS >> $output_objdir/$libname.def~
8933	prefix_cmds="$SED"~
8934	if test EXPORTS = "`$SED 1q $export_symbols`"; then
8935	  prefix_cmds="$prefix_cmds -e 1d";
8936	fi~
8937	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8938	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8939	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8940	emximp -o $lib $output_objdir/$libname.def'
8941      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8942      enable_shared_with_static_runtimes=yes
8943      ;;
8944
8945    interix[3-9]*)
8946      hardcode_direct=no
8947      hardcode_shlibpath_var=no
8948      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8949      export_dynamic_flag_spec='$wl-E'
8950      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8951      # Instead, shared libraries are loaded at an image base (0x10000000 by
8952      # default) and relocated if they conflict, which is a slow very memory
8953      # consuming and fragmenting process.  To avoid this, we pick a random,
8954      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8955      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8956      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8957      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'
8958      ;;
8959
8960    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8961      tmp_diet=no
8962      if test linux-dietlibc = "$host_os"; then
8963	case $cc_basename in
8964	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8965	esac
8966      fi
8967      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8968	 && test no = "$tmp_diet"
8969      then
8970	tmp_addflag=' $pic_flag'
8971	tmp_sharedflag='-shared'
8972	case $cc_basename,$host_cpu in
8973        pgcc*)				# Portland Group C compiler
8974	  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'
8975	  tmp_addflag=' $pic_flag'
8976	  ;;
8977	pgf77* | pgf90* | pgf95* | pgfortran*)
8978					# Portland Group f77 and f90 compilers
8979	  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'
8980	  tmp_addflag=' $pic_flag -Mnomain' ;;
8981	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8982	  tmp_addflag=' -i_dynamic' ;;
8983	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8984	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8985	ifc* | ifort*)			# Intel Fortran compiler
8986	  tmp_addflag=' -nofor_main' ;;
8987	lf95*)				# Lahey Fortran 8.1
8988	  whole_archive_flag_spec=
8989	  tmp_sharedflag='--shared' ;;
8990        nagfor*)                        # NAGFOR 5.3
8991          tmp_sharedflag='-Wl,-shared' ;;
8992	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8993	  tmp_sharedflag='-qmkshrobj'
8994	  tmp_addflag= ;;
8995	nvcc*)	# Cuda Compiler Driver 2.2
8996	  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'
8997	  compiler_needs_object=yes
8998	  ;;
8999	esac
9000	case `$CC -V 2>&1 | sed 5q` in
9001	*Sun\ C*)			# Sun C 5.9
9002	  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'
9003	  compiler_needs_object=yes
9004	  tmp_sharedflag='-G' ;;
9005	*Sun\ F*)			# Sun Fortran 8.3
9006	  tmp_sharedflag='-G' ;;
9007	esac
9008	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9009
9010        if test yes = "$supports_anon_versioning"; then
9011          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9012            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9013            echo "local: *; };" >> $output_objdir/$libname.ver~
9014            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9015        fi
9016
9017	case $cc_basename in
9018	tcc*)
9019	  export_dynamic_flag_spec='-rdynamic'
9020	  ;;
9021	xlf* | bgf* | bgxlf* | mpixlf*)
9022	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9023	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9024	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9025	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9026	  if test yes = "$supports_anon_versioning"; then
9027	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9028              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9029              echo "local: *; };" >> $output_objdir/$libname.ver~
9030              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9031	  fi
9032	  ;;
9033	esac
9034      else
9035        ld_shlibs=no
9036      fi
9037      ;;
9038
9039    netbsd* | netbsdelf*-gnu)
9040      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9041	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9042	wlarc=
9043      else
9044	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9045	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9046      fi
9047      ;;
9048
9049    solaris*)
9050      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9051	ld_shlibs=no
9052	cat <<_LT_EOF 1>&2
9053
9054*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9055*** create shared libraries on Solaris systems.  Therefore, libtool
9056*** is disabling shared libraries support.  We urge you to upgrade GNU
9057*** binutils to release 2.9.1 or newer.  Another option is to modify
9058*** your PATH or compiler configuration so that the native linker is
9059*** used, and then restart.
9060
9061_LT_EOF
9062      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9063	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9064	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9065      else
9066	ld_shlibs=no
9067      fi
9068      ;;
9069
9070    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9071      case `$LD -v 2>&1` in
9072        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9073	ld_shlibs=no
9074	cat <<_LT_EOF 1>&2
9075
9076*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9077*** reliably create shared libraries on SCO systems.  Therefore, libtool
9078*** is disabling shared libraries support.  We urge you to upgrade GNU
9079*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9080*** your PATH or compiler configuration so that the native linker is
9081*** used, and then restart.
9082
9083_LT_EOF
9084	;;
9085	*)
9086	  # For security reasons, it is highly recommended that you always
9087	  # use absolute paths for naming shared libraries, and exclude the
9088	  # DT_RUNPATH tag from executables and libraries.  But doing so
9089	  # requires that you compile everything twice, which is a pain.
9090	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9091	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9092	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9093	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9094	  else
9095	    ld_shlibs=no
9096	  fi
9097	;;
9098      esac
9099      ;;
9100
9101    sunos4*)
9102      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9103      wlarc=
9104      hardcode_direct=yes
9105      hardcode_shlibpath_var=no
9106      ;;
9107
9108    *)
9109      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9110	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9111	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9112      else
9113	ld_shlibs=no
9114      fi
9115      ;;
9116    esac
9117
9118    if test no = "$ld_shlibs"; then
9119      runpath_var=
9120      hardcode_libdir_flag_spec=
9121      export_dynamic_flag_spec=
9122      whole_archive_flag_spec=
9123    fi
9124  else
9125    # PORTME fill in a description of your system's linker (not GNU ld)
9126    case $host_os in
9127    aix3*)
9128      allow_undefined_flag=unsupported
9129      always_export_symbols=yes
9130      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'
9131      # Note: this linker hardcodes the directories in LIBPATH if there
9132      # are no directories specified by -L.
9133      hardcode_minus_L=yes
9134      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9135	# Neither direct hardcoding nor static linking is supported with a
9136	# broken collect2.
9137	hardcode_direct=unsupported
9138      fi
9139      ;;
9140
9141    aix[4-9]*)
9142      if test ia64 = "$host_cpu"; then
9143	# On IA64, the linker does run time linking by default, so we don't
9144	# have to do anything special.
9145	aix_use_runtimelinking=no
9146	exp_sym_flag='-Bexport'
9147	no_entry_flag=
9148      else
9149	# If we're using GNU nm, then we don't want the "-C" option.
9150	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9151	# Without the "-l" option, or with the "-B" option, AIX nm treats
9152	# weak defined symbols like other global defined symbols, whereas
9153	# GNU nm marks them as "W".
9154	# While the 'weak' keyword is ignored in the Export File, we need
9155	# it in the Import File for the 'aix-soname' feature, so we have
9156	# to replace the "-B" option with "-P" for AIX nm.
9157	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9158	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9159	else
9160	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9161	fi
9162	aix_use_runtimelinking=no
9163
9164	# Test if we are trying to use run time linking or normal
9165	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9166	# have runtime linking enabled, and use it for executables.
9167	# For shared libraries, we enable/disable runtime linking
9168	# depending on the kind of the shared library created -
9169	# when "with_aix_soname,aix_use_runtimelinking" is:
9170	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9171	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9172	#            lib.a           static archive
9173	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9174	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9175	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9176	#            lib.a(lib.so.V) shared, rtl:no
9177	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9178	#            lib.a           static archive
9179	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9180	  for ld_flag in $LDFLAGS; do
9181	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9182	    aix_use_runtimelinking=yes
9183	    break
9184	  fi
9185	  done
9186	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9187	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9188	    # so we don't have lib.a shared libs to link our executables.
9189	    # We have to force runtime linking in this case.
9190	    aix_use_runtimelinking=yes
9191	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9192	  fi
9193	  ;;
9194	esac
9195
9196	exp_sym_flag='-bexport'
9197	no_entry_flag='-bnoentry'
9198      fi
9199
9200      # When large executables or shared objects are built, AIX ld can
9201      # have problems creating the table of contents.  If linking a library
9202      # or program results in "error TOC overflow" add -mminimal-toc to
9203      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9204      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9205
9206      archive_cmds=''
9207      hardcode_direct=yes
9208      hardcode_direct_absolute=yes
9209      hardcode_libdir_separator=':'
9210      link_all_deplibs=yes
9211      file_list_spec='$wl-f,'
9212      case $with_aix_soname,$aix_use_runtimelinking in
9213      aix,*) ;; # traditional, no import file
9214      svr4,* | *,yes) # use import file
9215	# The Import File defines what to hardcode.
9216	hardcode_direct=no
9217	hardcode_direct_absolute=no
9218	;;
9219      esac
9220
9221      if test yes = "$GCC"; then
9222	case $host_os in aix4.[012]|aix4.[012].*)
9223	# We only want to do this on AIX 4.2 and lower, the check
9224	# below for broken collect2 doesn't work under 4.3+
9225	  collect2name=`$CC -print-prog-name=collect2`
9226	  if test -f "$collect2name" &&
9227	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9228	  then
9229	  # We have reworked collect2
9230	  :
9231	  else
9232	  # We have old collect2
9233	  hardcode_direct=unsupported
9234	  # It fails to find uninstalled libraries when the uninstalled
9235	  # path is not listed in the libpath.  Setting hardcode_minus_L
9236	  # to unsupported forces relinking
9237	  hardcode_minus_L=yes
9238	  hardcode_libdir_flag_spec='-L$libdir'
9239	  hardcode_libdir_separator=
9240	  fi
9241	  ;;
9242	esac
9243	shared_flag='-shared'
9244	if test yes = "$aix_use_runtimelinking"; then
9245	  shared_flag="$shared_flag "'$wl-G'
9246	fi
9247	# Need to ensure runtime linking is disabled for the traditional
9248	# shared library, or the linker may eventually find shared libraries
9249	# /with/ Import File - we do not want to mix them.
9250	shared_flag_aix='-shared'
9251	shared_flag_svr4='-shared $wl-G'
9252      else
9253	# not using gcc
9254	if test ia64 = "$host_cpu"; then
9255	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9256	# chokes on -Wl,-G. The following line is correct:
9257	  shared_flag='-G'
9258	else
9259	  if test yes = "$aix_use_runtimelinking"; then
9260	    shared_flag='$wl-G'
9261	  else
9262	    shared_flag='$wl-bM:SRE'
9263	  fi
9264	  shared_flag_aix='$wl-bM:SRE'
9265	  shared_flag_svr4='$wl-G'
9266	fi
9267      fi
9268
9269      export_dynamic_flag_spec='$wl-bexpall'
9270      # It seems that -bexpall does not export symbols beginning with
9271      # underscore (_), so it is better to generate a list of symbols to export.
9272      always_export_symbols=yes
9273      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9274	# Warning - without using the other runtime loading flags (-brtl),
9275	# -berok will link without error, but may produce a broken library.
9276	allow_undefined_flag='-berok'
9277        # Determine the default libpath from the value encoded in an
9278        # empty executable.
9279        if test set = "${lt_cv_aix_libpath+set}"; then
9280  aix_libpath=$lt_cv_aix_libpath
9281else
9282  if ${lt_cv_aix_libpath_+:} false; then :
9283  $as_echo_n "(cached) " >&6
9284else
9285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286/* end confdefs.h.  */
9287
9288int
9289main ()
9290{
9291
9292  ;
9293  return 0;
9294}
9295_ACEOF
9296if ac_fn_c_try_link "$LINENO"; then :
9297
9298  lt_aix_libpath_sed='
9299      /Import File Strings/,/^$/ {
9300	  /^0/ {
9301	      s/^0  *\([^ ]*\) *$/\1/
9302	      p
9303	  }
9304      }'
9305  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9306  # Check for a 64-bit object if we didn't find anything.
9307  if test -z "$lt_cv_aix_libpath_"; then
9308    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9309  fi
9310fi
9311rm -f core conftest.err conftest.$ac_objext \
9312    conftest$ac_exeext conftest.$ac_ext
9313  if test -z "$lt_cv_aix_libpath_"; then
9314    lt_cv_aix_libpath_=/usr/lib:/lib
9315  fi
9316
9317fi
9318
9319  aix_libpath=$lt_cv_aix_libpath_
9320fi
9321
9322        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9323        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9324      else
9325	if test ia64 = "$host_cpu"; then
9326	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9327	  allow_undefined_flag="-z nodefs"
9328	  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"
9329	else
9330	 # Determine the default libpath from the value encoded in an
9331	 # empty executable.
9332	 if test set = "${lt_cv_aix_libpath+set}"; then
9333  aix_libpath=$lt_cv_aix_libpath
9334else
9335  if ${lt_cv_aix_libpath_+:} false; then :
9336  $as_echo_n "(cached) " >&6
9337else
9338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339/* end confdefs.h.  */
9340
9341int
9342main ()
9343{
9344
9345  ;
9346  return 0;
9347}
9348_ACEOF
9349if ac_fn_c_try_link "$LINENO"; then :
9350
9351  lt_aix_libpath_sed='
9352      /Import File Strings/,/^$/ {
9353	  /^0/ {
9354	      s/^0  *\([^ ]*\) *$/\1/
9355	      p
9356	  }
9357      }'
9358  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9359  # Check for a 64-bit object if we didn't find anything.
9360  if test -z "$lt_cv_aix_libpath_"; then
9361    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9362  fi
9363fi
9364rm -f core conftest.err conftest.$ac_objext \
9365    conftest$ac_exeext conftest.$ac_ext
9366  if test -z "$lt_cv_aix_libpath_"; then
9367    lt_cv_aix_libpath_=/usr/lib:/lib
9368  fi
9369
9370fi
9371
9372  aix_libpath=$lt_cv_aix_libpath_
9373fi
9374
9375	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9376	  # Warning - without using the other run time loading flags,
9377	  # -berok will link without error, but may produce a broken library.
9378	  no_undefined_flag=' $wl-bernotok'
9379	  allow_undefined_flag=' $wl-berok'
9380	  if test yes = "$with_gnu_ld"; then
9381	    # We only use this code for GNU lds that support --whole-archive.
9382	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9383	  else
9384	    # Exported symbols can be pulled into shared objects from archives
9385	    whole_archive_flag_spec='$convenience'
9386	  fi
9387	  archive_cmds_need_lc=yes
9388	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9389	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9390	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9391	  if test svr4 != "$with_aix_soname"; then
9392	    # This is similar to how AIX traditionally builds its shared libraries.
9393	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9394	  fi
9395	  if test aix != "$with_aix_soname"; then
9396	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9397	  else
9398	    # used by -dlpreopen to get the symbols
9399	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9400	  fi
9401	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9402	fi
9403      fi
9404      ;;
9405
9406    amigaos*)
9407      case $host_cpu in
9408      powerpc)
9409            # see comment about AmigaOS4 .so support
9410            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9411            archive_expsym_cmds=''
9412        ;;
9413      m68k)
9414            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)'
9415            hardcode_libdir_flag_spec='-L$libdir'
9416            hardcode_minus_L=yes
9417        ;;
9418      esac
9419      ;;
9420
9421    bsdi[45]*)
9422      export_dynamic_flag_spec=-rdynamic
9423      ;;
9424
9425    cygwin* | mingw* | pw32* | cegcc*)
9426      # When not using gcc, we currently assume that we are using
9427      # Microsoft Visual C++.
9428      # hardcode_libdir_flag_spec is actually meaningless, as there is
9429      # no search path for DLLs.
9430      case $cc_basename in
9431      cl*)
9432	# Native MSVC
9433	hardcode_libdir_flag_spec=' '
9434	allow_undefined_flag=unsupported
9435	always_export_symbols=yes
9436	file_list_spec='@'
9437	# Tell ltmain to make .lib files, not .a files.
9438	libext=lib
9439	# Tell ltmain to make .dll files, not .so files.
9440	shrext_cmds=.dll
9441	# FIXME: Setting linknames here is a bad hack.
9442	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9443	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9444            cp "$export_symbols" "$output_objdir/$soname.def";
9445            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9446          else
9447            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9448          fi~
9449          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9450          linknames='
9451	# The linker will not automatically build a static lib if we build a DLL.
9452	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9453	enable_shared_with_static_runtimes=yes
9454	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9455	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9456	# Don't use ranlib
9457	old_postinstall_cmds='chmod 644 $oldlib'
9458	postlink_cmds='lt_outputfile="@OUTPUT@"~
9459          lt_tool_outputfile="@TOOL_OUTPUT@"~
9460          case $lt_outputfile in
9461            *.exe|*.EXE) ;;
9462            *)
9463              lt_outputfile=$lt_outputfile.exe
9464              lt_tool_outputfile=$lt_tool_outputfile.exe
9465              ;;
9466          esac~
9467          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9468            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9469            $RM "$lt_outputfile.manifest";
9470          fi'
9471	;;
9472      *)
9473	# Assume MSVC wrapper
9474	hardcode_libdir_flag_spec=' '
9475	allow_undefined_flag=unsupported
9476	# Tell ltmain to make .lib files, not .a files.
9477	libext=lib
9478	# Tell ltmain to make .dll files, not .so files.
9479	shrext_cmds=.dll
9480	# FIXME: Setting linknames here is a bad hack.
9481	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9482	# The linker will automatically build a .lib file if we build a DLL.
9483	old_archive_from_new_cmds='true'
9484	# FIXME: Should let the user specify the lib program.
9485	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9486	enable_shared_with_static_runtimes=yes
9487	;;
9488      esac
9489      ;;
9490
9491    darwin* | rhapsody*)
9492
9493
9494  archive_cmds_need_lc=no
9495  hardcode_direct=no
9496  hardcode_automatic=yes
9497  hardcode_shlibpath_var=unsupported
9498  if test yes = "$lt_cv_ld_force_load"; then
9499    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\"`'
9500
9501  else
9502    whole_archive_flag_spec=''
9503  fi
9504  link_all_deplibs=yes
9505  allow_undefined_flag=$_lt_dar_allow_undefined
9506  case $cc_basename in
9507     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9508     *) _lt_dar_can_shared=$GCC ;;
9509  esac
9510  if test yes = "$_lt_dar_can_shared"; then
9511    output_verbose_link_cmd=func_echo_all
9512    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9513    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9514    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"
9515    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"
9516
9517  else
9518  ld_shlibs=no
9519  fi
9520
9521      ;;
9522
9523    dgux*)
9524      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9525      hardcode_libdir_flag_spec='-L$libdir'
9526      hardcode_shlibpath_var=no
9527      ;;
9528
9529    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9530    # support.  Future versions do this automatically, but an explicit c++rt0.o
9531    # does not break anything, and helps significantly (at the cost of a little
9532    # extra space).
9533    freebsd2.2*)
9534      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9535      hardcode_libdir_flag_spec='-R$libdir'
9536      hardcode_direct=yes
9537      hardcode_shlibpath_var=no
9538      ;;
9539
9540    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9541    freebsd2.*)
9542      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9543      hardcode_direct=yes
9544      hardcode_minus_L=yes
9545      hardcode_shlibpath_var=no
9546      ;;
9547
9548    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9549    freebsd* | dragonfly*)
9550      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9551      hardcode_libdir_flag_spec='-R$libdir'
9552      hardcode_direct=yes
9553      hardcode_shlibpath_var=no
9554      ;;
9555
9556    hpux9*)
9557      if test yes = "$GCC"; then
9558	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9559      else
9560	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9561      fi
9562      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9563      hardcode_libdir_separator=:
9564      hardcode_direct=yes
9565
9566      # hardcode_minus_L: Not really in the search PATH,
9567      # but as the default location of the library.
9568      hardcode_minus_L=yes
9569      export_dynamic_flag_spec='$wl-E'
9570      ;;
9571
9572    hpux10*)
9573      if test yes,no = "$GCC,$with_gnu_ld"; then
9574	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9575      else
9576	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9577      fi
9578      if test no = "$with_gnu_ld"; then
9579	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9580	hardcode_libdir_separator=:
9581	hardcode_direct=yes
9582	hardcode_direct_absolute=yes
9583	export_dynamic_flag_spec='$wl-E'
9584	# hardcode_minus_L: Not really in the search PATH,
9585	# but as the default location of the library.
9586	hardcode_minus_L=yes
9587      fi
9588      ;;
9589
9590    hpux11*)
9591      if test yes,no = "$GCC,$with_gnu_ld"; then
9592	case $host_cpu in
9593	hppa*64*)
9594	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9595	  ;;
9596	ia64*)
9597	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9598	  ;;
9599	*)
9600	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9601	  ;;
9602	esac
9603      else
9604	case $host_cpu in
9605	hppa*64*)
9606	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9607	  ;;
9608	ia64*)
9609	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9610	  ;;
9611	*)
9612
9613	  # Older versions of the 11.00 compiler do not understand -b yet
9614	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9615	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9616$as_echo_n "checking if $CC understands -b... " >&6; }
9617if ${lt_cv_prog_compiler__b+:} false; then :
9618  $as_echo_n "(cached) " >&6
9619else
9620  lt_cv_prog_compiler__b=no
9621   save_LDFLAGS=$LDFLAGS
9622   LDFLAGS="$LDFLAGS -b"
9623   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9624   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9625     # The linker can only warn and ignore the option if not recognized
9626     # So say no if there are warnings
9627     if test -s conftest.err; then
9628       # Append any errors to the config.log.
9629       cat conftest.err 1>&5
9630       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9631       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9632       if diff conftest.exp conftest.er2 >/dev/null; then
9633         lt_cv_prog_compiler__b=yes
9634       fi
9635     else
9636       lt_cv_prog_compiler__b=yes
9637     fi
9638   fi
9639   $RM -r conftest*
9640   LDFLAGS=$save_LDFLAGS
9641
9642fi
9643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9644$as_echo "$lt_cv_prog_compiler__b" >&6; }
9645
9646if test yes = "$lt_cv_prog_compiler__b"; then
9647    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9648else
9649    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9650fi
9651
9652	  ;;
9653	esac
9654      fi
9655      if test no = "$with_gnu_ld"; then
9656	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9657	hardcode_libdir_separator=:
9658
9659	case $host_cpu in
9660	hppa*64*|ia64*)
9661	  hardcode_direct=no
9662	  hardcode_shlibpath_var=no
9663	  ;;
9664	*)
9665	  hardcode_direct=yes
9666	  hardcode_direct_absolute=yes
9667	  export_dynamic_flag_spec='$wl-E'
9668
9669	  # hardcode_minus_L: Not really in the search PATH,
9670	  # but as the default location of the library.
9671	  hardcode_minus_L=yes
9672	  ;;
9673	esac
9674      fi
9675      ;;
9676
9677    irix5* | irix6* | nonstopux*)
9678      if test yes = "$GCC"; then
9679	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9680	# Try to use the -exported_symbol ld option, if it does not
9681	# work, assume that -exports_file does not work either and
9682	# implicitly export all symbols.
9683	# This should be the same for all languages, so no per-tag cache variable.
9684	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9685$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9686if ${lt_cv_irix_exported_symbol+:} false; then :
9687  $as_echo_n "(cached) " >&6
9688else
9689  save_LDFLAGS=$LDFLAGS
9690	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9691	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692/* end confdefs.h.  */
9693int foo (void) { return 0; }
9694_ACEOF
9695if ac_fn_c_try_link "$LINENO"; then :
9696  lt_cv_irix_exported_symbol=yes
9697else
9698  lt_cv_irix_exported_symbol=no
9699fi
9700rm -f core conftest.err conftest.$ac_objext \
9701    conftest$ac_exeext conftest.$ac_ext
9702           LDFLAGS=$save_LDFLAGS
9703fi
9704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9705$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9706	if test yes = "$lt_cv_irix_exported_symbol"; then
9707          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9708	fi
9709	link_all_deplibs=no
9710      else
9711	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'
9712	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'
9713      fi
9714      archive_cmds_need_lc='no'
9715      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9716      hardcode_libdir_separator=:
9717      inherit_rpath=yes
9718      link_all_deplibs=yes
9719      ;;
9720
9721    linux*)
9722      case $cc_basename in
9723      tcc*)
9724	# Fabrice Bellard et al's Tiny C Compiler
9725	ld_shlibs=yes
9726	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9727	;;
9728      esac
9729      ;;
9730
9731    netbsd* | netbsdelf*-gnu)
9732      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9733	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9734      else
9735	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9736      fi
9737      hardcode_libdir_flag_spec='-R$libdir'
9738      hardcode_direct=yes
9739      hardcode_shlibpath_var=no
9740      ;;
9741
9742    newsos6)
9743      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744      hardcode_direct=yes
9745      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9746      hardcode_libdir_separator=:
9747      hardcode_shlibpath_var=no
9748      ;;
9749
9750    *nto* | *qnx*)
9751      ;;
9752
9753    openbsd* | bitrig*)
9754      if test -f /usr/libexec/ld.so; then
9755	hardcode_direct=yes
9756	hardcode_shlibpath_var=no
9757	hardcode_direct_absolute=yes
9758	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9759	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9760	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9761	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9762	  export_dynamic_flag_spec='$wl-E'
9763	else
9764	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9765	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9766	fi
9767      else
9768	ld_shlibs=no
9769      fi
9770      ;;
9771
9772    os2*)
9773      hardcode_libdir_flag_spec='-L$libdir'
9774      hardcode_minus_L=yes
9775      allow_undefined_flag=unsupported
9776      shrext_cmds=.dll
9777      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9778	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9779	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9780	$ECHO EXPORTS >> $output_objdir/$libname.def~
9781	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9782	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9783	emximp -o $lib $output_objdir/$libname.def'
9784      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9785	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9786	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9787	$ECHO EXPORTS >> $output_objdir/$libname.def~
9788	prefix_cmds="$SED"~
9789	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9790	  prefix_cmds="$prefix_cmds -e 1d";
9791	fi~
9792	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9793	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9794	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9795	emximp -o $lib $output_objdir/$libname.def'
9796      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9797      enable_shared_with_static_runtimes=yes
9798      ;;
9799
9800    osf3*)
9801      if test yes = "$GCC"; then
9802	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9803	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'
9804      else
9805	allow_undefined_flag=' -expect_unresolved \*'
9806	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'
9807      fi
9808      archive_cmds_need_lc='no'
9809      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9810      hardcode_libdir_separator=:
9811      ;;
9812
9813    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9814      if test yes = "$GCC"; then
9815	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9816	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9817	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9818      else
9819	allow_undefined_flag=' -expect_unresolved \*'
9820	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'
9821	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~
9822          $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'
9823
9824	# Both c and cxx compiler support -rpath directly
9825	hardcode_libdir_flag_spec='-rpath $libdir'
9826      fi
9827      archive_cmds_need_lc='no'
9828      hardcode_libdir_separator=:
9829      ;;
9830
9831    solaris*)
9832      no_undefined_flag=' -z defs'
9833      if test yes = "$GCC"; then
9834	wlarc='$wl'
9835	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9836	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9837          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9838      else
9839	case `$CC -V 2>&1` in
9840	*"Compilers 5.0"*)
9841	  wlarc=''
9842	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9843	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9844            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9845	  ;;
9846	*)
9847	  wlarc='$wl'
9848	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9849	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9850            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9851	  ;;
9852	esac
9853      fi
9854      hardcode_libdir_flag_spec='-R$libdir'
9855      hardcode_shlibpath_var=no
9856      case $host_os in
9857      solaris2.[0-5] | solaris2.[0-5].*) ;;
9858      *)
9859	# The compiler driver will combine and reorder linker options,
9860	# but understands '-z linker_flag'.  GCC discards it without '$wl',
9861	# but is careful enough not to reorder.
9862	# Supported since Solaris 2.6 (maybe 2.5.1?)
9863	if test yes = "$GCC"; then
9864	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9865	else
9866	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9867	fi
9868	;;
9869      esac
9870      link_all_deplibs=yes
9871      ;;
9872
9873    sunos4*)
9874      if test sequent = "$host_vendor"; then
9875	# Use $CC to link under sequent, because it throws in some extra .o
9876	# files that make .init and .fini sections work.
9877	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9878      else
9879	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9880      fi
9881      hardcode_libdir_flag_spec='-L$libdir'
9882      hardcode_direct=yes
9883      hardcode_minus_L=yes
9884      hardcode_shlibpath_var=no
9885      ;;
9886
9887    sysv4)
9888      case $host_vendor in
9889	sni)
9890	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9891	  hardcode_direct=yes # is this really true???
9892	;;
9893	siemens)
9894	  ## LD is ld it makes a PLAMLIB
9895	  ## CC just makes a GrossModule.
9896	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9897	  reload_cmds='$CC -r -o $output$reload_objs'
9898	  hardcode_direct=no
9899        ;;
9900	motorola)
9901	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9902	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9903	;;
9904      esac
9905      runpath_var='LD_RUN_PATH'
9906      hardcode_shlibpath_var=no
9907      ;;
9908
9909    sysv4.3*)
9910      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9911      hardcode_shlibpath_var=no
9912      export_dynamic_flag_spec='-Bexport'
9913      ;;
9914
9915    sysv4*MP*)
9916      if test -d /usr/nec; then
9917	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9918	hardcode_shlibpath_var=no
9919	runpath_var=LD_RUN_PATH
9920	hardcode_runpath_var=yes
9921	ld_shlibs=yes
9922      fi
9923      ;;
9924
9925    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9926      no_undefined_flag='$wl-z,text'
9927      archive_cmds_need_lc=no
9928      hardcode_shlibpath_var=no
9929      runpath_var='LD_RUN_PATH'
9930
9931      if test yes = "$GCC"; then
9932	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9933	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9934      else
9935	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9936	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9937      fi
9938      ;;
9939
9940    sysv5* | sco3.2v5* | sco5v6*)
9941      # Note: We CANNOT use -z defs as we might desire, because we do not
9942      # link with -lc, and that would cause any symbols used from libc to
9943      # always be unresolved, which means just about no library would
9944      # ever link correctly.  If we're not using GNU ld we use -z text
9945      # though, which does catch some bad symbols but isn't as heavy-handed
9946      # as -z defs.
9947      no_undefined_flag='$wl-z,text'
9948      allow_undefined_flag='$wl-z,nodefs'
9949      archive_cmds_need_lc=no
9950      hardcode_shlibpath_var=no
9951      hardcode_libdir_flag_spec='$wl-R,$libdir'
9952      hardcode_libdir_separator=':'
9953      link_all_deplibs=yes
9954      export_dynamic_flag_spec='$wl-Bexport'
9955      runpath_var='LD_RUN_PATH'
9956
9957      if test yes = "$GCC"; then
9958	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9959	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9960      else
9961	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9962	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9963      fi
9964      ;;
9965
9966    uts4*)
9967      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9968      hardcode_libdir_flag_spec='-L$libdir'
9969      hardcode_shlibpath_var=no
9970      ;;
9971
9972    *)
9973      ld_shlibs=no
9974      ;;
9975    esac
9976
9977    if test sni = "$host_vendor"; then
9978      case $host in
9979      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9980	export_dynamic_flag_spec='$wl-Blargedynsym'
9981	;;
9982      esac
9983    fi
9984  fi
9985
9986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9987$as_echo "$ld_shlibs" >&6; }
9988test no = "$ld_shlibs" && can_build_shared=no
9989
9990with_gnu_ld=$with_gnu_ld
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006#
10007# Do we need to explicitly link libc?
10008#
10009case "x$archive_cmds_need_lc" in
10010x|xyes)
10011  # Assume -lc should be added
10012  archive_cmds_need_lc=yes
10013
10014  if test yes,yes = "$GCC,$enable_shared"; then
10015    case $archive_cmds in
10016    *'~'*)
10017      # FIXME: we may have to deal with multi-command sequences.
10018      ;;
10019    '$CC '*)
10020      # Test whether the compiler implicitly links with -lc since on some
10021      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10022      # to ld, don't add -lc before -lgcc.
10023      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10024$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10025if ${lt_cv_archive_cmds_need_lc+:} false; then :
10026  $as_echo_n "(cached) " >&6
10027else
10028  $RM conftest*
10029	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10030
10031	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10032  (eval $ac_compile) 2>&5
10033  ac_status=$?
10034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10035  test $ac_status = 0; } 2>conftest.err; then
10036	  soname=conftest
10037	  lib=conftest
10038	  libobjs=conftest.$ac_objext
10039	  deplibs=
10040	  wl=$lt_prog_compiler_wl
10041	  pic_flag=$lt_prog_compiler_pic
10042	  compiler_flags=-v
10043	  linker_flags=-v
10044	  verstring=
10045	  output_objdir=.
10046	  libname=conftest
10047	  lt_save_allow_undefined_flag=$allow_undefined_flag
10048	  allow_undefined_flag=
10049	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10050  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10051  ac_status=$?
10052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10053  test $ac_status = 0; }
10054	  then
10055	    lt_cv_archive_cmds_need_lc=no
10056	  else
10057	    lt_cv_archive_cmds_need_lc=yes
10058	  fi
10059	  allow_undefined_flag=$lt_save_allow_undefined_flag
10060	else
10061	  cat conftest.err 1>&5
10062	fi
10063	$RM conftest*
10064
10065fi
10066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10067$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10068      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10069      ;;
10070    esac
10071  fi
10072  ;;
10073esac
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10227$as_echo_n "checking dynamic linker characteristics... " >&6; }
10228
10229if test yes = "$GCC"; then
10230  case $host_os in
10231    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10232    *) lt_awk_arg='/^libraries:/' ;;
10233  esac
10234  case $host_os in
10235    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10236    *) lt_sed_strip_eq='s|=/|/|g' ;;
10237  esac
10238  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10239  case $lt_search_path_spec in
10240  *\;*)
10241    # if the path contains ";" then we assume it to be the separator
10242    # otherwise default to the standard path separator (i.e. ":") - it is
10243    # assumed that no part of a normal pathname contains ";" but that should
10244    # okay in the real world where ";" in dirpaths is itself problematic.
10245    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10246    ;;
10247  *)
10248    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10249    ;;
10250  esac
10251  # Ok, now we have the path, separated by spaces, we can step through it
10252  # and add multilib dir if necessary...
10253  lt_tmp_lt_search_path_spec=
10254  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10255  # ...but if some path component already ends with the multilib dir we assume
10256  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10257  case "$lt_multi_os_dir; $lt_search_path_spec " in
10258  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10259    lt_multi_os_dir=
10260    ;;
10261  esac
10262  for lt_sys_path in $lt_search_path_spec; do
10263    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10264      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10265    elif test -n "$lt_multi_os_dir"; then
10266      test -d "$lt_sys_path" && \
10267	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10268    fi
10269  done
10270  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10271BEGIN {RS = " "; FS = "/|\n";} {
10272  lt_foo = "";
10273  lt_count = 0;
10274  for (lt_i = NF; lt_i > 0; lt_i--) {
10275    if ($lt_i != "" && $lt_i != ".") {
10276      if ($lt_i == "..") {
10277        lt_count++;
10278      } else {
10279        if (lt_count == 0) {
10280          lt_foo = "/" $lt_i lt_foo;
10281        } else {
10282          lt_count--;
10283        }
10284      }
10285    }
10286  }
10287  if (lt_foo != "") { lt_freq[lt_foo]++; }
10288  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10289}'`
10290  # AWK program above erroneously prepends '/' to C:/dos/paths
10291  # for these hosts.
10292  case $host_os in
10293    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10294      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10295  esac
10296  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10297else
10298  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10299fi
10300library_names_spec=
10301libname_spec='lib$name'
10302soname_spec=
10303shrext_cmds=.so
10304postinstall_cmds=
10305postuninstall_cmds=
10306finish_cmds=
10307finish_eval=
10308shlibpath_var=
10309shlibpath_overrides_runpath=unknown
10310version_type=none
10311dynamic_linker="$host_os ld.so"
10312sys_lib_dlsearch_path_spec="/lib /usr/lib"
10313need_lib_prefix=unknown
10314hardcode_into_libs=no
10315
10316# when you set need_version to no, make sure it does not cause -set_version
10317# flags to be left without arguments
10318need_version=unknown
10319
10320
10321
10322case $host_os in
10323aix3*)
10324  version_type=linux # correct to gnu/linux during the next big refactor
10325  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10326  shlibpath_var=LIBPATH
10327
10328  # AIX 3 has no versioning support, so we append a major version to the name.
10329  soname_spec='$libname$release$shared_ext$major'
10330  ;;
10331
10332aix[4-9]*)
10333  version_type=linux # correct to gnu/linux during the next big refactor
10334  need_lib_prefix=no
10335  need_version=no
10336  hardcode_into_libs=yes
10337  if test ia64 = "$host_cpu"; then
10338    # AIX 5 supports IA64
10339    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10340    shlibpath_var=LD_LIBRARY_PATH
10341  else
10342    # With GCC up to 2.95.x, collect2 would create an import file
10343    # for dependence libraries.  The import file would start with
10344    # the line '#! .'.  This would cause the generated library to
10345    # depend on '.', always an invalid library.  This was fixed in
10346    # development snapshots of GCC prior to 3.0.
10347    case $host_os in
10348      aix4 | aix4.[01] | aix4.[01].*)
10349      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10350	   echo ' yes '
10351	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10352	:
10353      else
10354	can_build_shared=no
10355      fi
10356      ;;
10357    esac
10358    # Using Import Files as archive members, it is possible to support
10359    # filename-based versioning of shared library archives on AIX. While
10360    # this would work for both with and without runtime linking, it will
10361    # prevent static linking of such archives. So we do filename-based
10362    # shared library versioning with .so extension only, which is used
10363    # when both runtime linking and shared linking is enabled.
10364    # Unfortunately, runtime linking may impact performance, so we do
10365    # not want this to be the default eventually. Also, we use the
10366    # versioned .so libs for executables only if there is the -brtl
10367    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10368    # To allow for filename-based versioning support, we need to create
10369    # libNAME.so.V as an archive file, containing:
10370    # *) an Import File, referring to the versioned filename of the
10371    #    archive as well as the shared archive member, telling the
10372    #    bitwidth (32 or 64) of that shared object, and providing the
10373    #    list of exported symbols of that shared object, eventually
10374    #    decorated with the 'weak' keyword
10375    # *) the shared object with the F_LOADONLY flag set, to really avoid
10376    #    it being seen by the linker.
10377    # At run time we better use the real file rather than another symlink,
10378    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10379
10380    case $with_aix_soname,$aix_use_runtimelinking in
10381    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10382    # soname into executable. Probably we can add versioning support to
10383    # collect2, so additional links can be useful in future.
10384    aix,yes) # traditional libtool
10385      dynamic_linker='AIX unversionable lib.so'
10386      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10387      # instead of lib<name>.a to let people know that these are not
10388      # typical AIX shared libraries.
10389      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10390      ;;
10391    aix,no) # traditional AIX only
10392      dynamic_linker='AIX lib.a(lib.so.V)'
10393      # We preserve .a as extension for shared libraries through AIX4.2
10394      # and later when we are not doing run time linking.
10395      library_names_spec='$libname$release.a $libname.a'
10396      soname_spec='$libname$release$shared_ext$major'
10397      ;;
10398    svr4,*) # full svr4 only
10399      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10400      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10401      # We do not specify a path in Import Files, so LIBPATH fires.
10402      shlibpath_overrides_runpath=yes
10403      ;;
10404    *,yes) # both, prefer svr4
10405      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10406      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10407      # unpreferred sharedlib libNAME.a needs extra handling
10408      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10409      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10410      # We do not specify a path in Import Files, so LIBPATH fires.
10411      shlibpath_overrides_runpath=yes
10412      ;;
10413    *,no) # both, prefer aix
10414      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10415      library_names_spec='$libname$release.a $libname.a'
10416      soname_spec='$libname$release$shared_ext$major'
10417      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10418      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10419      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10420      ;;
10421    esac
10422    shlibpath_var=LIBPATH
10423  fi
10424  ;;
10425
10426amigaos*)
10427  case $host_cpu in
10428  powerpc)
10429    # Since July 2007 AmigaOS4 officially supports .so libraries.
10430    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10431    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10432    ;;
10433  m68k)
10434    library_names_spec='$libname.ixlibrary $libname.a'
10435    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10436    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10437    ;;
10438  esac
10439  ;;
10440
10441beos*)
10442  library_names_spec='$libname$shared_ext'
10443  dynamic_linker="$host_os ld.so"
10444  shlibpath_var=LIBRARY_PATH
10445  ;;
10446
10447bsdi[45]*)
10448  version_type=linux # correct to gnu/linux during the next big refactor
10449  need_version=no
10450  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10451  soname_spec='$libname$release$shared_ext$major'
10452  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10453  shlibpath_var=LD_LIBRARY_PATH
10454  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10455  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10456  # the default ld.so.conf also contains /usr/contrib/lib and
10457  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10458  # libtool to hard-code these into programs
10459  ;;
10460
10461cygwin* | mingw* | pw32* | cegcc*)
10462  version_type=windows
10463  shrext_cmds=.dll
10464  need_version=no
10465  need_lib_prefix=no
10466
10467  case $GCC,$cc_basename in
10468  yes,*)
10469    # gcc
10470    library_names_spec='$libname.dll.a'
10471    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10472    postinstall_cmds='base_file=`basename \$file`~
10473      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10474      dldir=$destdir/`dirname \$dlpath`~
10475      test -d \$dldir || mkdir -p \$dldir~
10476      $install_prog $dir/$dlname \$dldir/$dlname~
10477      chmod a+x \$dldir/$dlname~
10478      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10479        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10480      fi'
10481    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10482      dlpath=$dir/\$dldll~
10483       $RM \$dlpath'
10484    shlibpath_overrides_runpath=yes
10485
10486    case $host_os in
10487    cygwin*)
10488      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10489      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10490
10491      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10492      ;;
10493    mingw* | cegcc*)
10494      # MinGW DLLs use traditional 'lib' prefix
10495      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10496      ;;
10497    pw32*)
10498      # pw32 DLLs use 'pw' prefix rather than 'lib'
10499      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10500      ;;
10501    esac
10502    dynamic_linker='Win32 ld.exe'
10503    ;;
10504
10505  *,cl*)
10506    # Native MSVC
10507    libname_spec='$name'
10508    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10509    library_names_spec='$libname.dll.lib'
10510
10511    case $build_os in
10512    mingw*)
10513      sys_lib_search_path_spec=
10514      lt_save_ifs=$IFS
10515      IFS=';'
10516      for lt_path in $LIB
10517      do
10518        IFS=$lt_save_ifs
10519        # Let DOS variable expansion print the short 8.3 style file name.
10520        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10521        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10522      done
10523      IFS=$lt_save_ifs
10524      # Convert to MSYS style.
10525      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10526      ;;
10527    cygwin*)
10528      # Convert to unix form, then to dos form, then back to unix form
10529      # but this time dos style (no spaces!) so that the unix form looks
10530      # like /cygdrive/c/PROGRA~1:/cygdr...
10531      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10532      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10533      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10534      ;;
10535    *)
10536      sys_lib_search_path_spec=$LIB
10537      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10538        # It is most probably a Windows format PATH.
10539        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10540      else
10541        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10542      fi
10543      # FIXME: find the short name or the path components, as spaces are
10544      # common. (e.g. "Program Files" -> "PROGRA~1")
10545      ;;
10546    esac
10547
10548    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10549    postinstall_cmds='base_file=`basename \$file`~
10550      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10551      dldir=$destdir/`dirname \$dlpath`~
10552      test -d \$dldir || mkdir -p \$dldir~
10553      $install_prog $dir/$dlname \$dldir/$dlname'
10554    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10555      dlpath=$dir/\$dldll~
10556       $RM \$dlpath'
10557    shlibpath_overrides_runpath=yes
10558    dynamic_linker='Win32 link.exe'
10559    ;;
10560
10561  *)
10562    # Assume MSVC wrapper
10563    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10564    dynamic_linker='Win32 ld.exe'
10565    ;;
10566  esac
10567  # FIXME: first we should search . and the directory the executable is in
10568  shlibpath_var=PATH
10569  ;;
10570
10571darwin* | rhapsody*)
10572  dynamic_linker="$host_os dyld"
10573  version_type=darwin
10574  need_lib_prefix=no
10575  need_version=no
10576  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10577  soname_spec='$libname$release$major$shared_ext'
10578  shlibpath_overrides_runpath=yes
10579  shlibpath_var=DYLD_LIBRARY_PATH
10580  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10581
10582  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10583  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10584  ;;
10585
10586dgux*)
10587  version_type=linux # correct to gnu/linux during the next big refactor
10588  need_lib_prefix=no
10589  need_version=no
10590  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10591  soname_spec='$libname$release$shared_ext$major'
10592  shlibpath_var=LD_LIBRARY_PATH
10593  ;;
10594
10595freebsd* | dragonfly*)
10596  # DragonFly does not have aout.  When/if they implement a new
10597  # versioning mechanism, adjust this.
10598  if test -x /usr/bin/objformat; then
10599    objformat=`/usr/bin/objformat`
10600  else
10601    case $host_os in
10602    freebsd[23].*) objformat=aout ;;
10603    *) objformat=elf ;;
10604    esac
10605  fi
10606  version_type=freebsd-$objformat
10607  case $version_type in
10608    freebsd-elf*)
10609      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10610      soname_spec='$libname$release$shared_ext$major'
10611      need_version=no
10612      need_lib_prefix=no
10613      ;;
10614    freebsd-*)
10615      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10616      need_version=yes
10617      ;;
10618  esac
10619  shlibpath_var=LD_LIBRARY_PATH
10620  case $host_os in
10621  freebsd2.*)
10622    shlibpath_overrides_runpath=yes
10623    ;;
10624  freebsd3.[01]* | freebsdelf3.[01]*)
10625    shlibpath_overrides_runpath=yes
10626    hardcode_into_libs=yes
10627    ;;
10628  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10629  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10630    shlibpath_overrides_runpath=no
10631    hardcode_into_libs=yes
10632    ;;
10633  *) # from 4.6 on, and DragonFly
10634    shlibpath_overrides_runpath=yes
10635    hardcode_into_libs=yes
10636    ;;
10637  esac
10638  ;;
10639
10640haiku*)
10641  version_type=linux # correct to gnu/linux during the next big refactor
10642  need_lib_prefix=no
10643  need_version=no
10644  dynamic_linker="$host_os runtime_loader"
10645  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10646  soname_spec='$libname$release$shared_ext$major'
10647  shlibpath_var=LIBRARY_PATH
10648  shlibpath_overrides_runpath=no
10649  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10650  hardcode_into_libs=yes
10651  ;;
10652
10653hpux9* | hpux10* | hpux11*)
10654  # Give a soname corresponding to the major version so that dld.sl refuses to
10655  # link against other versions.
10656  version_type=sunos
10657  need_lib_prefix=no
10658  need_version=no
10659  case $host_cpu in
10660  ia64*)
10661    shrext_cmds='.so'
10662    hardcode_into_libs=yes
10663    dynamic_linker="$host_os dld.so"
10664    shlibpath_var=LD_LIBRARY_PATH
10665    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10666    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10667    soname_spec='$libname$release$shared_ext$major'
10668    if test 32 = "$HPUX_IA64_MODE"; then
10669      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10670      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10671    else
10672      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10673      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10674    fi
10675    ;;
10676  hppa*64*)
10677    shrext_cmds='.sl'
10678    hardcode_into_libs=yes
10679    dynamic_linker="$host_os dld.sl"
10680    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10681    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10682    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10683    soname_spec='$libname$release$shared_ext$major'
10684    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10685    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10686    ;;
10687  *)
10688    shrext_cmds='.sl'
10689    dynamic_linker="$host_os dld.sl"
10690    shlibpath_var=SHLIB_PATH
10691    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10692    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10693    soname_spec='$libname$release$shared_ext$major'
10694    ;;
10695  esac
10696  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10697  postinstall_cmds='chmod 555 $lib'
10698  # or fails outright, so override atomically:
10699  install_override_mode=555
10700  ;;
10701
10702interix[3-9]*)
10703  version_type=linux # correct to gnu/linux during the next big refactor
10704  need_lib_prefix=no
10705  need_version=no
10706  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10707  soname_spec='$libname$release$shared_ext$major'
10708  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10709  shlibpath_var=LD_LIBRARY_PATH
10710  shlibpath_overrides_runpath=no
10711  hardcode_into_libs=yes
10712  ;;
10713
10714irix5* | irix6* | nonstopux*)
10715  case $host_os in
10716    nonstopux*) version_type=nonstopux ;;
10717    *)
10718	if test yes = "$lt_cv_prog_gnu_ld"; then
10719		version_type=linux # correct to gnu/linux during the next big refactor
10720	else
10721		version_type=irix
10722	fi ;;
10723  esac
10724  need_lib_prefix=no
10725  need_version=no
10726  soname_spec='$libname$release$shared_ext$major'
10727  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10728  case $host_os in
10729  irix5* | nonstopux*)
10730    libsuff= shlibsuff=
10731    ;;
10732  *)
10733    case $LD in # libtool.m4 will add one of these switches to LD
10734    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10735      libsuff= shlibsuff= libmagic=32-bit;;
10736    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10737      libsuff=32 shlibsuff=N32 libmagic=N32;;
10738    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10739      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10740    *) libsuff= shlibsuff= libmagic=never-match;;
10741    esac
10742    ;;
10743  esac
10744  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10745  shlibpath_overrides_runpath=no
10746  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10747  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10748  hardcode_into_libs=yes
10749  ;;
10750
10751# No shared lib support for Linux oldld, aout, or coff.
10752linux*oldld* | linux*aout* | linux*coff*)
10753  dynamic_linker=no
10754  ;;
10755
10756linux*android*)
10757  version_type=none # Android doesn't support versioned libraries.
10758  need_lib_prefix=no
10759  need_version=no
10760  library_names_spec='$libname$release$shared_ext'
10761  soname_spec='$libname$release$shared_ext'
10762  finish_cmds=
10763  shlibpath_var=LD_LIBRARY_PATH
10764  shlibpath_overrides_runpath=yes
10765
10766  # This implies no fast_install, which is unacceptable.
10767  # Some rework will be needed to allow for fast_install
10768  # before this can be enabled.
10769  hardcode_into_libs=yes
10770
10771  dynamic_linker='Android linker'
10772  # Don't embed -rpath directories since the linker doesn't support them.
10773  hardcode_libdir_flag_spec='-L$libdir'
10774  ;;
10775
10776# This must be glibc/ELF.
10777linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10778  version_type=linux # correct to gnu/linux during the next big refactor
10779  need_lib_prefix=no
10780  need_version=no
10781  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10782  soname_spec='$libname$release$shared_ext$major'
10783  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10784  shlibpath_var=LD_LIBRARY_PATH
10785  shlibpath_overrides_runpath=no
10786
10787  # Some binutils ld are patched to set DT_RUNPATH
10788  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10789  $as_echo_n "(cached) " >&6
10790else
10791  lt_cv_shlibpath_overrides_runpath=no
10792    save_LDFLAGS=$LDFLAGS
10793    save_libdir=$libdir
10794    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10795	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10796    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797/* end confdefs.h.  */
10798
10799int
10800main ()
10801{
10802
10803  ;
10804  return 0;
10805}
10806_ACEOF
10807if ac_fn_c_try_link "$LINENO"; then :
10808  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10809  lt_cv_shlibpath_overrides_runpath=yes
10810fi
10811fi
10812rm -f core conftest.err conftest.$ac_objext \
10813    conftest$ac_exeext conftest.$ac_ext
10814    LDFLAGS=$save_LDFLAGS
10815    libdir=$save_libdir
10816
10817fi
10818
10819  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10820
10821  # This implies no fast_install, which is unacceptable.
10822  # Some rework will be needed to allow for fast_install
10823  # before this can be enabled.
10824  hardcode_into_libs=yes
10825
10826  # Ideally, we could use ldconfig to report *all* directores which are
10827  # searched for libraries, however this is still not possible.  Aside from not
10828  # being certain /sbin/ldconfig is available, command
10829  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10830  # even though it is searched at run-time.  Try to do the best guess by
10831  # appending ld.so.conf contents (and includes) to the search path.
10832  if test -f /etc/ld.so.conf; then
10833    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' ' '`
10834    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10835  fi
10836
10837  # We used to test for /lib/ld.so.1 and disable shared libraries on
10838  # powerpc, because MkLinux only supported shared libraries with the
10839  # GNU dynamic linker.  Since this was broken with cross compilers,
10840  # most powerpc-linux boxes support dynamic linking these days and
10841  # people can always --disable-shared, the test was removed, and we
10842  # assume the GNU/Linux dynamic linker is in use.
10843  dynamic_linker='GNU/Linux ld.so'
10844  ;;
10845
10846netbsdelf*-gnu)
10847  version_type=linux
10848  need_lib_prefix=no
10849  need_version=no
10850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10851  soname_spec='${libname}${release}${shared_ext}$major'
10852  shlibpath_var=LD_LIBRARY_PATH
10853  shlibpath_overrides_runpath=no
10854  hardcode_into_libs=yes
10855  dynamic_linker='NetBSD ld.elf_so'
10856  ;;
10857
10858netbsd*)
10859  version_type=sunos
10860  need_lib_prefix=no
10861  need_version=no
10862  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10863    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10864    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10865    dynamic_linker='NetBSD (a.out) ld.so'
10866  else
10867    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10868    soname_spec='$libname$release$shared_ext$major'
10869    dynamic_linker='NetBSD ld.elf_so'
10870  fi
10871  shlibpath_var=LD_LIBRARY_PATH
10872  shlibpath_overrides_runpath=yes
10873  hardcode_into_libs=yes
10874  ;;
10875
10876newsos6)
10877  version_type=linux # correct to gnu/linux during the next big refactor
10878  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10879  shlibpath_var=LD_LIBRARY_PATH
10880  shlibpath_overrides_runpath=yes
10881  ;;
10882
10883*nto* | *qnx*)
10884  version_type=qnx
10885  need_lib_prefix=no
10886  need_version=no
10887  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10888  soname_spec='$libname$release$shared_ext$major'
10889  shlibpath_var=LD_LIBRARY_PATH
10890  shlibpath_overrides_runpath=no
10891  hardcode_into_libs=yes
10892  dynamic_linker='ldqnx.so'
10893  ;;
10894
10895openbsd* | bitrig*)
10896  version_type=sunos
10897  sys_lib_dlsearch_path_spec=/usr/lib
10898  need_lib_prefix=no
10899  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10900    need_version=no
10901  else
10902    need_version=yes
10903  fi
10904  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10905  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10906  shlibpath_var=LD_LIBRARY_PATH
10907  shlibpath_overrides_runpath=yes
10908  ;;
10909
10910os2*)
10911  libname_spec='$name'
10912  version_type=windows
10913  shrext_cmds=.dll
10914  need_version=no
10915  need_lib_prefix=no
10916  # OS/2 can only load a DLL with a base name of 8 characters or less.
10917  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10918    v=$($ECHO $release$versuffix | tr -d .-);
10919    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10920    $ECHO $n$v`$shared_ext'
10921  library_names_spec='${libname}_dll.$libext'
10922  dynamic_linker='OS/2 ld.exe'
10923  shlibpath_var=BEGINLIBPATH
10924  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10925  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10926  postinstall_cmds='base_file=`basename \$file`~
10927    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10928    dldir=$destdir/`dirname \$dlpath`~
10929    test -d \$dldir || mkdir -p \$dldir~
10930    $install_prog $dir/$dlname \$dldir/$dlname~
10931    chmod a+x \$dldir/$dlname~
10932    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10933      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10934    fi'
10935  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10936    dlpath=$dir/\$dldll~
10937    $RM \$dlpath'
10938  ;;
10939
10940osf3* | osf4* | osf5*)
10941  version_type=osf
10942  need_lib_prefix=no
10943  need_version=no
10944  soname_spec='$libname$release$shared_ext$major'
10945  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10946  shlibpath_var=LD_LIBRARY_PATH
10947  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10948  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10949  ;;
10950
10951rdos*)
10952  dynamic_linker=no
10953  ;;
10954
10955solaris*)
10956  version_type=linux # correct to gnu/linux during the next big refactor
10957  need_lib_prefix=no
10958  need_version=no
10959  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10960  soname_spec='$libname$release$shared_ext$major'
10961  shlibpath_var=LD_LIBRARY_PATH
10962  shlibpath_overrides_runpath=yes
10963  hardcode_into_libs=yes
10964  # ldd complains unless libraries are executable
10965  postinstall_cmds='chmod +x $lib'
10966  ;;
10967
10968sunos4*)
10969  version_type=sunos
10970  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10971  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10972  shlibpath_var=LD_LIBRARY_PATH
10973  shlibpath_overrides_runpath=yes
10974  if test yes = "$with_gnu_ld"; then
10975    need_lib_prefix=no
10976  fi
10977  need_version=yes
10978  ;;
10979
10980sysv4 | sysv4.3*)
10981  version_type=linux # correct to gnu/linux during the next big refactor
10982  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10983  soname_spec='$libname$release$shared_ext$major'
10984  shlibpath_var=LD_LIBRARY_PATH
10985  case $host_vendor in
10986    sni)
10987      shlibpath_overrides_runpath=no
10988      need_lib_prefix=no
10989      runpath_var=LD_RUN_PATH
10990      ;;
10991    siemens)
10992      need_lib_prefix=no
10993      ;;
10994    motorola)
10995      need_lib_prefix=no
10996      need_version=no
10997      shlibpath_overrides_runpath=no
10998      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10999      ;;
11000  esac
11001  ;;
11002
11003sysv4*MP*)
11004  if test -d /usr/nec; then
11005    version_type=linux # correct to gnu/linux during the next big refactor
11006    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11007    soname_spec='$libname$shared_ext.$major'
11008    shlibpath_var=LD_LIBRARY_PATH
11009  fi
11010  ;;
11011
11012sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11013  version_type=sco
11014  need_lib_prefix=no
11015  need_version=no
11016  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11017  soname_spec='$libname$release$shared_ext$major'
11018  shlibpath_var=LD_LIBRARY_PATH
11019  shlibpath_overrides_runpath=yes
11020  hardcode_into_libs=yes
11021  if test yes = "$with_gnu_ld"; then
11022    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11023  else
11024    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11025    case $host_os in
11026      sco3.2v5*)
11027        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11028	;;
11029    esac
11030  fi
11031  sys_lib_dlsearch_path_spec='/usr/lib'
11032  ;;
11033
11034tpf*)
11035  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11036  version_type=linux # correct to gnu/linux during the next big refactor
11037  need_lib_prefix=no
11038  need_version=no
11039  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11040  shlibpath_var=LD_LIBRARY_PATH
11041  shlibpath_overrides_runpath=no
11042  hardcode_into_libs=yes
11043  ;;
11044
11045uts4*)
11046  version_type=linux # correct to gnu/linux during the next big refactor
11047  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11048  soname_spec='$libname$release$shared_ext$major'
11049  shlibpath_var=LD_LIBRARY_PATH
11050  ;;
11051
11052*)
11053  dynamic_linker=no
11054  ;;
11055esac
11056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11057$as_echo "$dynamic_linker" >&6; }
11058test no = "$dynamic_linker" && can_build_shared=no
11059
11060variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11061if test yes = "$GCC"; then
11062  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11063fi
11064
11065if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11066  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11067fi
11068
11069if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11070  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11071fi
11072
11073# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11074configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11075
11076# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11077func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11078
11079# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11080configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11179$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11180hardcode_action=
11181if test -n "$hardcode_libdir_flag_spec" ||
11182   test -n "$runpath_var" ||
11183   test yes = "$hardcode_automatic"; then
11184
11185  # We can hardcode non-existent directories.
11186  if test no != "$hardcode_direct" &&
11187     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11188     # have to relink, otherwise we might link with an installed library
11189     # when we should be linking with a yet-to-be-installed one
11190     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11191     test no != "$hardcode_minus_L"; then
11192    # Linking always hardcodes the temporary library directory.
11193    hardcode_action=relink
11194  else
11195    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11196    hardcode_action=immediate
11197  fi
11198else
11199  # We cannot hardcode anything, or else we can only hardcode existing
11200  # directories.
11201  hardcode_action=unsupported
11202fi
11203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11204$as_echo "$hardcode_action" >&6; }
11205
11206if test relink = "$hardcode_action" ||
11207   test yes = "$inherit_rpath"; then
11208  # Fast installation is not supported
11209  enable_fast_install=no
11210elif test yes = "$shlibpath_overrides_runpath" ||
11211     test no = "$enable_shared"; then
11212  # Fast installation is not necessary
11213  enable_fast_install=needless
11214fi
11215
11216
11217
11218
11219
11220
11221  if test yes != "$enable_dlopen"; then
11222  enable_dlopen=unknown
11223  enable_dlopen_self=unknown
11224  enable_dlopen_self_static=unknown
11225else
11226  lt_cv_dlopen=no
11227  lt_cv_dlopen_libs=
11228
11229  case $host_os in
11230  beos*)
11231    lt_cv_dlopen=load_add_on
11232    lt_cv_dlopen_libs=
11233    lt_cv_dlopen_self=yes
11234    ;;
11235
11236  mingw* | pw32* | cegcc*)
11237    lt_cv_dlopen=LoadLibrary
11238    lt_cv_dlopen_libs=
11239    ;;
11240
11241  cygwin*)
11242    lt_cv_dlopen=dlopen
11243    lt_cv_dlopen_libs=
11244    ;;
11245
11246  darwin*)
11247    # if libdl is installed we need to link against it
11248    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11249$as_echo_n "checking for dlopen in -ldl... " >&6; }
11250if ${ac_cv_lib_dl_dlopen+:} false; then :
11251  $as_echo_n "(cached) " >&6
11252else
11253  ac_check_lib_save_LIBS=$LIBS
11254LIBS="-ldl  $LIBS"
11255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256/* end confdefs.h.  */
11257
11258/* Override any GCC internal prototype to avoid an error.
11259   Use char because int might match the return type of a GCC
11260   builtin and then its argument prototype would still apply.  */
11261#ifdef __cplusplus
11262extern "C"
11263#endif
11264char dlopen ();
11265int
11266main ()
11267{
11268return dlopen ();
11269  ;
11270  return 0;
11271}
11272_ACEOF
11273if ac_fn_c_try_link "$LINENO"; then :
11274  ac_cv_lib_dl_dlopen=yes
11275else
11276  ac_cv_lib_dl_dlopen=no
11277fi
11278rm -f core conftest.err conftest.$ac_objext \
11279    conftest$ac_exeext conftest.$ac_ext
11280LIBS=$ac_check_lib_save_LIBS
11281fi
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11283$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11284if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11285  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11286else
11287
11288    lt_cv_dlopen=dyld
11289    lt_cv_dlopen_libs=
11290    lt_cv_dlopen_self=yes
11291
11292fi
11293
11294    ;;
11295
11296  tpf*)
11297    # Don't try to run any link tests for TPF.  We know it's impossible
11298    # because TPF is a cross-compiler, and we know how we open DSOs.
11299    lt_cv_dlopen=dlopen
11300    lt_cv_dlopen_libs=
11301    lt_cv_dlopen_self=no
11302    ;;
11303
11304  *)
11305    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11306if test "x$ac_cv_func_shl_load" = xyes; then :
11307  lt_cv_dlopen=shl_load
11308else
11309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11310$as_echo_n "checking for shl_load in -ldld... " >&6; }
11311if ${ac_cv_lib_dld_shl_load+:} false; then :
11312  $as_echo_n "(cached) " >&6
11313else
11314  ac_check_lib_save_LIBS=$LIBS
11315LIBS="-ldld  $LIBS"
11316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317/* end confdefs.h.  */
11318
11319/* Override any GCC internal prototype to avoid an error.
11320   Use char because int might match the return type of a GCC
11321   builtin and then its argument prototype would still apply.  */
11322#ifdef __cplusplus
11323extern "C"
11324#endif
11325char shl_load ();
11326int
11327main ()
11328{
11329return shl_load ();
11330  ;
11331  return 0;
11332}
11333_ACEOF
11334if ac_fn_c_try_link "$LINENO"; then :
11335  ac_cv_lib_dld_shl_load=yes
11336else
11337  ac_cv_lib_dld_shl_load=no
11338fi
11339rm -f core conftest.err conftest.$ac_objext \
11340    conftest$ac_exeext conftest.$ac_ext
11341LIBS=$ac_check_lib_save_LIBS
11342fi
11343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11344$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11345if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11346  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11347else
11348  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11349if test "x$ac_cv_func_dlopen" = xyes; then :
11350  lt_cv_dlopen=dlopen
11351else
11352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11353$as_echo_n "checking for dlopen in -ldl... " >&6; }
11354if ${ac_cv_lib_dl_dlopen+:} false; then :
11355  $as_echo_n "(cached) " >&6
11356else
11357  ac_check_lib_save_LIBS=$LIBS
11358LIBS="-ldl  $LIBS"
11359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360/* end confdefs.h.  */
11361
11362/* Override any GCC internal prototype to avoid an error.
11363   Use char because int might match the return type of a GCC
11364   builtin and then its argument prototype would still apply.  */
11365#ifdef __cplusplus
11366extern "C"
11367#endif
11368char dlopen ();
11369int
11370main ()
11371{
11372return dlopen ();
11373  ;
11374  return 0;
11375}
11376_ACEOF
11377if ac_fn_c_try_link "$LINENO"; then :
11378  ac_cv_lib_dl_dlopen=yes
11379else
11380  ac_cv_lib_dl_dlopen=no
11381fi
11382rm -f core conftest.err conftest.$ac_objext \
11383    conftest$ac_exeext conftest.$ac_ext
11384LIBS=$ac_check_lib_save_LIBS
11385fi
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11387$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11388if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11389  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11390else
11391  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11392$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11393if ${ac_cv_lib_svld_dlopen+:} false; then :
11394  $as_echo_n "(cached) " >&6
11395else
11396  ac_check_lib_save_LIBS=$LIBS
11397LIBS="-lsvld  $LIBS"
11398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399/* end confdefs.h.  */
11400
11401/* Override any GCC internal prototype to avoid an error.
11402   Use char because int might match the return type of a GCC
11403   builtin and then its argument prototype would still apply.  */
11404#ifdef __cplusplus
11405extern "C"
11406#endif
11407char dlopen ();
11408int
11409main ()
11410{
11411return dlopen ();
11412  ;
11413  return 0;
11414}
11415_ACEOF
11416if ac_fn_c_try_link "$LINENO"; then :
11417  ac_cv_lib_svld_dlopen=yes
11418else
11419  ac_cv_lib_svld_dlopen=no
11420fi
11421rm -f core conftest.err conftest.$ac_objext \
11422    conftest$ac_exeext conftest.$ac_ext
11423LIBS=$ac_check_lib_save_LIBS
11424fi
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11426$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11427if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11428  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11429else
11430  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11431$as_echo_n "checking for dld_link in -ldld... " >&6; }
11432if ${ac_cv_lib_dld_dld_link+:} false; then :
11433  $as_echo_n "(cached) " >&6
11434else
11435  ac_check_lib_save_LIBS=$LIBS
11436LIBS="-ldld  $LIBS"
11437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438/* end confdefs.h.  */
11439
11440/* Override any GCC internal prototype to avoid an error.
11441   Use char because int might match the return type of a GCC
11442   builtin and then its argument prototype would still apply.  */
11443#ifdef __cplusplus
11444extern "C"
11445#endif
11446char dld_link ();
11447int
11448main ()
11449{
11450return dld_link ();
11451  ;
11452  return 0;
11453}
11454_ACEOF
11455if ac_fn_c_try_link "$LINENO"; then :
11456  ac_cv_lib_dld_dld_link=yes
11457else
11458  ac_cv_lib_dld_dld_link=no
11459fi
11460rm -f core conftest.err conftest.$ac_objext \
11461    conftest$ac_exeext conftest.$ac_ext
11462LIBS=$ac_check_lib_save_LIBS
11463fi
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11465$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11466if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11467  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11468fi
11469
11470
11471fi
11472
11473
11474fi
11475
11476
11477fi
11478
11479
11480fi
11481
11482
11483fi
11484
11485    ;;
11486  esac
11487
11488  if test no = "$lt_cv_dlopen"; then
11489    enable_dlopen=no
11490  else
11491    enable_dlopen=yes
11492  fi
11493
11494  case $lt_cv_dlopen in
11495  dlopen)
11496    save_CPPFLAGS=$CPPFLAGS
11497    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11498
11499    save_LDFLAGS=$LDFLAGS
11500    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11501
11502    save_LIBS=$LIBS
11503    LIBS="$lt_cv_dlopen_libs $LIBS"
11504
11505    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11506$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11507if ${lt_cv_dlopen_self+:} false; then :
11508  $as_echo_n "(cached) " >&6
11509else
11510  	  if test yes = "$cross_compiling"; then :
11511  lt_cv_dlopen_self=cross
11512else
11513  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11514  lt_status=$lt_dlunknown
11515  cat > conftest.$ac_ext <<_LT_EOF
11516#line $LINENO "configure"
11517#include "confdefs.h"
11518
11519#if HAVE_DLFCN_H
11520#include <dlfcn.h>
11521#endif
11522
11523#include <stdio.h>
11524
11525#ifdef RTLD_GLOBAL
11526#  define LT_DLGLOBAL		RTLD_GLOBAL
11527#else
11528#  ifdef DL_GLOBAL
11529#    define LT_DLGLOBAL		DL_GLOBAL
11530#  else
11531#    define LT_DLGLOBAL		0
11532#  endif
11533#endif
11534
11535/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11536   find out it does not work in some platform. */
11537#ifndef LT_DLLAZY_OR_NOW
11538#  ifdef RTLD_LAZY
11539#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11540#  else
11541#    ifdef DL_LAZY
11542#      define LT_DLLAZY_OR_NOW		DL_LAZY
11543#    else
11544#      ifdef RTLD_NOW
11545#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11546#      else
11547#        ifdef DL_NOW
11548#          define LT_DLLAZY_OR_NOW	DL_NOW
11549#        else
11550#          define LT_DLLAZY_OR_NOW	0
11551#        endif
11552#      endif
11553#    endif
11554#  endif
11555#endif
11556
11557/* When -fvisibility=hidden is used, assume the code has been annotated
11558   correspondingly for the symbols needed.  */
11559#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11560int fnord () __attribute__((visibility("default")));
11561#endif
11562
11563int fnord () { return 42; }
11564int main ()
11565{
11566  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11567  int status = $lt_dlunknown;
11568
11569  if (self)
11570    {
11571      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11572      else
11573        {
11574	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11575          else puts (dlerror ());
11576	}
11577      /* dlclose (self); */
11578    }
11579  else
11580    puts (dlerror ());
11581
11582  return status;
11583}
11584_LT_EOF
11585  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11586  (eval $ac_link) 2>&5
11587  ac_status=$?
11588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11589  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11590    (./conftest; exit; ) >&5 2>/dev/null
11591    lt_status=$?
11592    case x$lt_status in
11593      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11594      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11595      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11596    esac
11597  else :
11598    # compilation failed
11599    lt_cv_dlopen_self=no
11600  fi
11601fi
11602rm -fr conftest*
11603
11604
11605fi
11606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11607$as_echo "$lt_cv_dlopen_self" >&6; }
11608
11609    if test yes = "$lt_cv_dlopen_self"; then
11610      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11611      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11612$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11613if ${lt_cv_dlopen_self_static+:} false; then :
11614  $as_echo_n "(cached) " >&6
11615else
11616  	  if test yes = "$cross_compiling"; then :
11617  lt_cv_dlopen_self_static=cross
11618else
11619  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11620  lt_status=$lt_dlunknown
11621  cat > conftest.$ac_ext <<_LT_EOF
11622#line $LINENO "configure"
11623#include "confdefs.h"
11624
11625#if HAVE_DLFCN_H
11626#include <dlfcn.h>
11627#endif
11628
11629#include <stdio.h>
11630
11631#ifdef RTLD_GLOBAL
11632#  define LT_DLGLOBAL		RTLD_GLOBAL
11633#else
11634#  ifdef DL_GLOBAL
11635#    define LT_DLGLOBAL		DL_GLOBAL
11636#  else
11637#    define LT_DLGLOBAL		0
11638#  endif
11639#endif
11640
11641/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11642   find out it does not work in some platform. */
11643#ifndef LT_DLLAZY_OR_NOW
11644#  ifdef RTLD_LAZY
11645#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11646#  else
11647#    ifdef DL_LAZY
11648#      define LT_DLLAZY_OR_NOW		DL_LAZY
11649#    else
11650#      ifdef RTLD_NOW
11651#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11652#      else
11653#        ifdef DL_NOW
11654#          define LT_DLLAZY_OR_NOW	DL_NOW
11655#        else
11656#          define LT_DLLAZY_OR_NOW	0
11657#        endif
11658#      endif
11659#    endif
11660#  endif
11661#endif
11662
11663/* When -fvisibility=hidden is used, assume the code has been annotated
11664   correspondingly for the symbols needed.  */
11665#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11666int fnord () __attribute__((visibility("default")));
11667#endif
11668
11669int fnord () { return 42; }
11670int main ()
11671{
11672  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11673  int status = $lt_dlunknown;
11674
11675  if (self)
11676    {
11677      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11678      else
11679        {
11680	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11681          else puts (dlerror ());
11682	}
11683      /* dlclose (self); */
11684    }
11685  else
11686    puts (dlerror ());
11687
11688  return status;
11689}
11690_LT_EOF
11691  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11692  (eval $ac_link) 2>&5
11693  ac_status=$?
11694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11695  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11696    (./conftest; exit; ) >&5 2>/dev/null
11697    lt_status=$?
11698    case x$lt_status in
11699      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11700      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11701      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11702    esac
11703  else :
11704    # compilation failed
11705    lt_cv_dlopen_self_static=no
11706  fi
11707fi
11708rm -fr conftest*
11709
11710
11711fi
11712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11713$as_echo "$lt_cv_dlopen_self_static" >&6; }
11714    fi
11715
11716    CPPFLAGS=$save_CPPFLAGS
11717    LDFLAGS=$save_LDFLAGS
11718    LIBS=$save_LIBS
11719    ;;
11720  esac
11721
11722  case $lt_cv_dlopen_self in
11723  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11724  *) enable_dlopen_self=unknown ;;
11725  esac
11726
11727  case $lt_cv_dlopen_self_static in
11728  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11729  *) enable_dlopen_self_static=unknown ;;
11730  esac
11731fi
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749striplib=
11750old_striplib=
11751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11752$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11753if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11754  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11755  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11757$as_echo "yes" >&6; }
11758else
11759# FIXME - insert some real tests, host_os isn't really good enough
11760  case $host_os in
11761  darwin*)
11762    if test -n "$STRIP"; then
11763      striplib="$STRIP -x"
11764      old_striplib="$STRIP -S"
11765      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11766$as_echo "yes" >&6; }
11767    else
11768      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769$as_echo "no" >&6; }
11770    fi
11771    ;;
11772  *)
11773    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774$as_echo "no" >&6; }
11775    ;;
11776  esac
11777fi
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790  # Report what library types will actually be built
11791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11792$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11794$as_echo "$can_build_shared" >&6; }
11795
11796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11797$as_echo_n "checking whether to build shared libraries... " >&6; }
11798  test no = "$can_build_shared" && enable_shared=no
11799
11800  # On AIX, shared libraries and static libraries use the same namespace, and
11801  # are all built from PIC.
11802  case $host_os in
11803  aix3*)
11804    test yes = "$enable_shared" && enable_static=no
11805    if test -n "$RANLIB"; then
11806      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11807      postinstall_cmds='$RANLIB $lib'
11808    fi
11809    ;;
11810
11811  aix[4-9]*)
11812    if test ia64 != "$host_cpu"; then
11813      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11814      yes,aix,yes) ;;			# shared object as lib.so file only
11815      yes,svr4,*) ;;			# shared object as lib.so archive member only
11816      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
11817      esac
11818    fi
11819    ;;
11820  esac
11821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11822$as_echo "$enable_shared" >&6; }
11823
11824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11825$as_echo_n "checking whether to build static libraries... " >&6; }
11826  # Make sure either enable_shared or enable_static is yes.
11827  test yes = "$enable_shared" || enable_static=yes
11828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11829$as_echo "$enable_static" >&6; }
11830
11831
11832
11833
11834fi
11835ac_ext=c
11836ac_cpp='$CPP $CPPFLAGS'
11837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11839ac_compiler_gnu=$ac_cv_c_compiler_gnu
11840
11841CC=$lt_save_CC
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857        ac_config_commands="$ac_config_commands libtool"
11858
11859
11860
11861
11862# Only expand once:
11863
11864
11865
11866ac_config_files="$ac_config_files Makefile"
11867
11868
11869# end of "configure.ac"
11870
11871