1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Spine Poller 0.8.8h.
4#
5# Report bugs to <http://www.cacti.net/bugs.php>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.cacti.net/bugs.php about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='Spine Poller'
592PACKAGE_TARNAME='spine-poller'
593PACKAGE_VERSION='0.8.8h'
594PACKAGE_STRING='Spine Poller 0.8.8h'
595PACKAGE_BUGREPORT='http://www.cacti.net/bugs.php'
596PACKAGE_URL=''
597
598ac_unique_file="spine.c"
599ac_default_prefix=/usr/local/spine
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640HAVE_HELP2MAN_FALSE
641HAVE_HELP2MAN_TRUE
642HELP2MAN
643LT_SYS_LIBRARY_PATH
644OTOOL64
645OTOOL
646LIPO
647NMEDIT
648DSYMUTIL
649MANIFEST_TOOL
650RANLIB
651ac_ct_AR
652AR
653DLLTOOL
654OBJDUMP
655NM
656ac_ct_DUMPBIN
657DUMPBIN
658LD
659FGREP
660EGREP
661GREP
662SED
663LIBTOOL
664LN_S
665CPP
666am__fastdepCC_FALSE
667am__fastdepCC_TRUE
668CCDEPMODE
669am__nodep
670AMDEPBACKSLASH
671AMDEP_FALSE
672AMDEP_TRUE
673am__quote
674am__include
675DEPDIR
676OBJEXT
677EXEEXT
678ac_ct_CC
679CPPFLAGS
680LDFLAGS
681CFLAGS
682CC
683AM_BACKSLASH
684AM_DEFAULT_VERBOSITY
685AM_DEFAULT_V
686AM_V
687am__untar
688am__tar
689AMTAR
690am__leading_dot
691SET_MAKE
692AWK
693mkdir_p
694MKDIR_P
695INSTALL_STRIP_PROGRAM
696STRIP
697install_sh
698MAKEINFO
699AUTOHEADER
700AUTOMAKE
701AUTOCONF
702ACLOCAL
703VERSION
704PACKAGE
705CYGPATH_W
706am__isrc
707INSTALL_DATA
708INSTALL_SCRIPT
709INSTALL_PROGRAM
710host_os
711host_vendor
712host_cpu
713host
714build_os
715build_vendor
716build_cpu
717build
718ac_aux_dir
719target_alias
720host_alias
721build_alias
722LIBS
723ECHO_T
724ECHO_N
725ECHO_C
726DEFS
727mandir
728localedir
729libdir
730psdir
731pdfdir
732dvidir
733htmldir
734infodir
735docdir
736oldincludedir
737includedir
738localstatedir
739sharedstatedir
740sysconfdir
741datadir
742datarootdir
743libexecdir
744sbindir
745bindir
746program_transform_name
747prefix
748exec_prefix
749PACKAGE_URL
750PACKAGE_BUGREPORT
751PACKAGE_STRING
752PACKAGE_VERSION
753PACKAGE_TARNAME
754PACKAGE_NAME
755PATH_SEPARATOR
756SHELL'
757ac_subst_files=''
758ac_user_opts='
759enable_option_checking
760enable_silent_rules
761with_static
762with_mysql
763with_snmp
764enable_dependency_tracking
765enable_shared
766enable_static
767with_pic
768enable_fast_install
769with_aix_soname
770with_gnu_ld
771with_sysroot
772enable_libtool_lock
773enable_warnings
774enable_threadsafe_gethostbyname
775enable_solaris_priv
776enable_lcap
777with_results_buffer
778with_max_scripts
779with_max_mysql_buffer
780enable_popen
781enable_strict_snmp
782'
783      ac_precious_vars='build_alias
784host_alias
785target_alias
786CC
787CFLAGS
788LDFLAGS
789LIBS
790CPPFLAGS
791CPP
792LT_SYS_LIBRARY_PATH'
793
794
795# Initialize some variables set by options.
796ac_init_help=
797ac_init_version=false
798ac_unrecognized_opts=
799ac_unrecognized_sep=
800# The variables have the same names as the options, with
801# dashes changed to underlines.
802cache_file=/dev/null
803exec_prefix=NONE
804no_create=
805no_recursion=
806prefix=NONE
807program_prefix=NONE
808program_suffix=NONE
809program_transform_name=s,x,x,
810silent=
811site=
812srcdir=
813verbose=
814x_includes=NONE
815x_libraries=NONE
816
817# Installation directory options.
818# These are left unexpanded so users can "make install exec_prefix=/foo"
819# and all the variables that are supposed to be based on exec_prefix
820# by default will actually change.
821# Use braces instead of parens because sh, perl, etc. also accept them.
822# (The list follows the same order as the GNU Coding Standards.)
823bindir='${exec_prefix}/bin'
824sbindir='${exec_prefix}/sbin'
825libexecdir='${exec_prefix}/libexec'
826datarootdir='${prefix}/share'
827datadir='${datarootdir}'
828sysconfdir='${prefix}/etc'
829sharedstatedir='${prefix}/com'
830localstatedir='${prefix}/var'
831includedir='${prefix}/include'
832oldincludedir='/usr/include'
833docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834infodir='${datarootdir}/info'
835htmldir='${docdir}'
836dvidir='${docdir}'
837pdfdir='${docdir}'
838psdir='${docdir}'
839libdir='${exec_prefix}/lib'
840localedir='${datarootdir}/locale'
841mandir='${datarootdir}/man'
842
843ac_prev=
844ac_dashdash=
845for ac_option
846do
847  # If the previous option needs an argument, assign it.
848  if test -n "$ac_prev"; then
849    eval $ac_prev=\$ac_option
850    ac_prev=
851    continue
852  fi
853
854  case $ac_option in
855  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856  *=)   ac_optarg= ;;
857  *)    ac_optarg=yes ;;
858  esac
859
860  # Accept the important Cygnus configure options, so we can diagnose typos.
861
862  case $ac_dashdash$ac_option in
863  --)
864    ac_dashdash=yes ;;
865
866  -bindir | --bindir | --bindi | --bind | --bin | --bi)
867    ac_prev=bindir ;;
868  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869    bindir=$ac_optarg ;;
870
871  -build | --build | --buil | --bui | --bu)
872    ac_prev=build_alias ;;
873  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874    build_alias=$ac_optarg ;;
875
876  -cache-file | --cache-file | --cache-fil | --cache-fi \
877  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878    ac_prev=cache_file ;;
879  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881    cache_file=$ac_optarg ;;
882
883  --config-cache | -C)
884    cache_file=config.cache ;;
885
886  -datadir | --datadir | --datadi | --datad)
887    ac_prev=datadir ;;
888  -datadir=* | --datadir=* | --datadi=* | --datad=*)
889    datadir=$ac_optarg ;;
890
891  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892  | --dataroo | --dataro | --datar)
893    ac_prev=datarootdir ;;
894  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896    datarootdir=$ac_optarg ;;
897
898  -disable-* | --disable-*)
899    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900    # Reject names that are not valid shell variable names.
901    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902      as_fn_error $? "invalid feature name: $ac_useropt"
903    ac_useropt_orig=$ac_useropt
904    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905    case $ac_user_opts in
906      *"
907"enable_$ac_useropt"
908"*) ;;
909      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910	 ac_unrecognized_sep=', ';;
911    esac
912    eval enable_$ac_useropt=no ;;
913
914  -docdir | --docdir | --docdi | --doc | --do)
915    ac_prev=docdir ;;
916  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917    docdir=$ac_optarg ;;
918
919  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920    ac_prev=dvidir ;;
921  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922    dvidir=$ac_optarg ;;
923
924  -enable-* | --enable-*)
925    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926    # Reject names that are not valid shell variable names.
927    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928      as_fn_error $? "invalid feature name: $ac_useropt"
929    ac_useropt_orig=$ac_useropt
930    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931    case $ac_user_opts in
932      *"
933"enable_$ac_useropt"
934"*) ;;
935      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936	 ac_unrecognized_sep=', ';;
937    esac
938    eval enable_$ac_useropt=\$ac_optarg ;;
939
940  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942  | --exec | --exe | --ex)
943    ac_prev=exec_prefix ;;
944  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946  | --exec=* | --exe=* | --ex=*)
947    exec_prefix=$ac_optarg ;;
948
949  -gas | --gas | --ga | --g)
950    # Obsolete; use --with-gas.
951    with_gas=yes ;;
952
953  -help | --help | --hel | --he | -h)
954    ac_init_help=long ;;
955  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956    ac_init_help=recursive ;;
957  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958    ac_init_help=short ;;
959
960  -host | --host | --hos | --ho)
961    ac_prev=host_alias ;;
962  -host=* | --host=* | --hos=* | --ho=*)
963    host_alias=$ac_optarg ;;
964
965  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966    ac_prev=htmldir ;;
967  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968  | --ht=*)
969    htmldir=$ac_optarg ;;
970
971  -includedir | --includedir | --includedi | --included | --include \
972  | --includ | --inclu | --incl | --inc)
973    ac_prev=includedir ;;
974  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975  | --includ=* | --inclu=* | --incl=* | --inc=*)
976    includedir=$ac_optarg ;;
977
978  -infodir | --infodir | --infodi | --infod | --info | --inf)
979    ac_prev=infodir ;;
980  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981    infodir=$ac_optarg ;;
982
983  -libdir | --libdir | --libdi | --libd)
984    ac_prev=libdir ;;
985  -libdir=* | --libdir=* | --libdi=* | --libd=*)
986    libdir=$ac_optarg ;;
987
988  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989  | --libexe | --libex | --libe)
990    ac_prev=libexecdir ;;
991  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992  | --libexe=* | --libex=* | --libe=*)
993    libexecdir=$ac_optarg ;;
994
995  -localedir | --localedir | --localedi | --localed | --locale)
996    ac_prev=localedir ;;
997  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998    localedir=$ac_optarg ;;
999
1000  -localstatedir | --localstatedir | --localstatedi | --localstated \
1001  | --localstate | --localstat | --localsta | --localst | --locals)
1002    ac_prev=localstatedir ;;
1003  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005    localstatedir=$ac_optarg ;;
1006
1007  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008    ac_prev=mandir ;;
1009  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010    mandir=$ac_optarg ;;
1011
1012  -nfp | --nfp | --nf)
1013    # Obsolete; use --without-fp.
1014    with_fp=no ;;
1015
1016  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017  | --no-cr | --no-c | -n)
1018    no_create=yes ;;
1019
1020  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022    no_recursion=yes ;;
1023
1024  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026  | --oldin | --oldi | --old | --ol | --o)
1027    ac_prev=oldincludedir ;;
1028  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031    oldincludedir=$ac_optarg ;;
1032
1033  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034    ac_prev=prefix ;;
1035  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036    prefix=$ac_optarg ;;
1037
1038  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039  | --program-pre | --program-pr | --program-p)
1040    ac_prev=program_prefix ;;
1041  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043    program_prefix=$ac_optarg ;;
1044
1045  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046  | --program-suf | --program-su | --program-s)
1047    ac_prev=program_suffix ;;
1048  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050    program_suffix=$ac_optarg ;;
1051
1052  -program-transform-name | --program-transform-name \
1053  | --program-transform-nam | --program-transform-na \
1054  | --program-transform-n | --program-transform- \
1055  | --program-transform | --program-transfor \
1056  | --program-transfo | --program-transf \
1057  | --program-trans | --program-tran \
1058  | --progr-tra | --program-tr | --program-t)
1059    ac_prev=program_transform_name ;;
1060  -program-transform-name=* | --program-transform-name=* \
1061  | --program-transform-nam=* | --program-transform-na=* \
1062  | --program-transform-n=* | --program-transform-=* \
1063  | --program-transform=* | --program-transfor=* \
1064  | --program-transfo=* | --program-transf=* \
1065  | --program-trans=* | --program-tran=* \
1066  | --progr-tra=* | --program-tr=* | --program-t=*)
1067    program_transform_name=$ac_optarg ;;
1068
1069  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070    ac_prev=pdfdir ;;
1071  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072    pdfdir=$ac_optarg ;;
1073
1074  -psdir | --psdir | --psdi | --psd | --ps)
1075    ac_prev=psdir ;;
1076  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077    psdir=$ac_optarg ;;
1078
1079  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080  | -silent | --silent | --silen | --sile | --sil)
1081    silent=yes ;;
1082
1083  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084    ac_prev=sbindir ;;
1085  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086  | --sbi=* | --sb=*)
1087    sbindir=$ac_optarg ;;
1088
1089  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091  | --sharedst | --shareds | --shared | --share | --shar \
1092  | --sha | --sh)
1093    ac_prev=sharedstatedir ;;
1094  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097  | --sha=* | --sh=*)
1098    sharedstatedir=$ac_optarg ;;
1099
1100  -site | --site | --sit)
1101    ac_prev=site ;;
1102  -site=* | --site=* | --sit=*)
1103    site=$ac_optarg ;;
1104
1105  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106    ac_prev=srcdir ;;
1107  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108    srcdir=$ac_optarg ;;
1109
1110  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111  | --syscon | --sysco | --sysc | --sys | --sy)
1112    ac_prev=sysconfdir ;;
1113  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115    sysconfdir=$ac_optarg ;;
1116
1117  -target | --target | --targe | --targ | --tar | --ta | --t)
1118    ac_prev=target_alias ;;
1119  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120    target_alias=$ac_optarg ;;
1121
1122  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123    verbose=yes ;;
1124
1125  -version | --version | --versio | --versi | --vers | -V)
1126    ac_init_version=: ;;
1127
1128  -with-* | --with-*)
1129    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130    # Reject names that are not valid shell variable names.
1131    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132      as_fn_error $? "invalid package name: $ac_useropt"
1133    ac_useropt_orig=$ac_useropt
1134    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135    case $ac_user_opts in
1136      *"
1137"with_$ac_useropt"
1138"*) ;;
1139      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140	 ac_unrecognized_sep=', ';;
1141    esac
1142    eval with_$ac_useropt=\$ac_optarg ;;
1143
1144  -without-* | --without-*)
1145    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146    # Reject names that are not valid shell variable names.
1147    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148      as_fn_error $? "invalid package name: $ac_useropt"
1149    ac_useropt_orig=$ac_useropt
1150    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151    case $ac_user_opts in
1152      *"
1153"with_$ac_useropt"
1154"*) ;;
1155      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156	 ac_unrecognized_sep=', ';;
1157    esac
1158    eval with_$ac_useropt=no ;;
1159
1160  --x)
1161    # Obsolete; use --with-x.
1162    with_x=yes ;;
1163
1164  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165  | --x-incl | --x-inc | --x-in | --x-i)
1166    ac_prev=x_includes ;;
1167  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169    x_includes=$ac_optarg ;;
1170
1171  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173    ac_prev=x_libraries ;;
1174  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176    x_libraries=$ac_optarg ;;
1177
1178  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179Try \`$0 --help' for more information"
1180    ;;
1181
1182  *=*)
1183    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184    # Reject names that are not valid shell variable names.
1185    case $ac_envvar in #(
1186      '' | [0-9]* | *[!_$as_cr_alnum]* )
1187      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188    esac
1189    eval $ac_envvar=\$ac_optarg
1190    export $ac_envvar ;;
1191
1192  *)
1193    # FIXME: should be removed in autoconf 3.0.
1194    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198    ;;
1199
1200  esac
1201done
1202
1203if test -n "$ac_prev"; then
1204  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205  as_fn_error $? "missing argument to $ac_option"
1206fi
1207
1208if test -n "$ac_unrecognized_opts"; then
1209  case $enable_option_checking in
1210    no) ;;
1211    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213  esac
1214fi
1215
1216# Check all directory arguments for consistency.
1217for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218		datadir sysconfdir sharedstatedir localstatedir includedir \
1219		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220		libdir localedir mandir
1221do
1222  eval ac_val=\$$ac_var
1223  # Remove trailing slashes.
1224  case $ac_val in
1225    */ )
1226      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227      eval $ac_var=\$ac_val;;
1228  esac
1229  # Be sure to have absolute directory names.
1230  case $ac_val in
1231    [\\/$]* | ?:[\\/]* )  continue;;
1232    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233  esac
1234  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235done
1236
1237# There might be people who depend on the old broken behavior: `$host'
1238# used to hold the argument of --host etc.
1239# FIXME: To remove some day.
1240build=$build_alias
1241host=$host_alias
1242target=$target_alias
1243
1244# FIXME: To remove some day.
1245if test "x$host_alias" != x; then
1246  if test "x$build_alias" = x; then
1247    cross_compiling=maybe
1248  elif test "x$build_alias" != "x$host_alias"; then
1249    cross_compiling=yes
1250  fi
1251fi
1252
1253ac_tool_prefix=
1254test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255
1256test "$silent" = yes && exec 6>/dev/null
1257
1258
1259ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260ac_ls_di=`ls -di .` &&
1261ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262  as_fn_error $? "working directory cannot be determined"
1263test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264  as_fn_error $? "pwd does not report name of working directory"
1265
1266
1267# Find the source files, if location was not specified.
1268if test -z "$srcdir"; then
1269  ac_srcdir_defaulted=yes
1270  # Try the directory containing this script, then the parent directory.
1271  ac_confdir=`$as_dirname -- "$as_myself" ||
1272$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273	 X"$as_myself" : 'X\(//\)[^/]' \| \
1274	 X"$as_myself" : 'X\(//\)$' \| \
1275	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276$as_echo X"$as_myself" |
1277    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278	    s//\1/
1279	    q
1280	  }
1281	  /^X\(\/\/\)[^/].*/{
1282	    s//\1/
1283	    q
1284	  }
1285	  /^X\(\/\/\)$/{
1286	    s//\1/
1287	    q
1288	  }
1289	  /^X\(\/\).*/{
1290	    s//\1/
1291	    q
1292	  }
1293	  s/.*/./; q'`
1294  srcdir=$ac_confdir
1295  if test ! -r "$srcdir/$ac_unique_file"; then
1296    srcdir=..
1297  fi
1298else
1299  ac_srcdir_defaulted=no
1300fi
1301if test ! -r "$srcdir/$ac_unique_file"; then
1302  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304fi
1305ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306ac_abs_confdir=`(
1307	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308	pwd)`
1309# When building in place, set srcdir=.
1310if test "$ac_abs_confdir" = "$ac_pwd"; then
1311  srcdir=.
1312fi
1313# Remove unnecessary trailing slashes from srcdir.
1314# Double slashes in file names in object file debugging info
1315# mess up M-x gdb in Emacs.
1316case $srcdir in
1317*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318esac
1319for ac_var in $ac_precious_vars; do
1320  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321  eval ac_env_${ac_var}_value=\$${ac_var}
1322  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324done
1325
1326#
1327# Report the --help message.
1328#
1329if test "$ac_init_help" = "long"; then
1330  # Omit some internal or obsolete options to make the list less imposing.
1331  # This message is too long to be a string in the A/UX 3.1 sh.
1332  cat <<_ACEOF
1333\`configure' configures Spine Poller 0.8.8h to adapt to many kinds of systems.
1334
1335Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338VAR=VALUE.  See below for descriptions of some of the useful variables.
1339
1340Defaults for the options are specified in brackets.
1341
1342Configuration:
1343  -h, --help              display this help and exit
1344      --help=short        display options specific to this package
1345      --help=recursive    display the short help of all the included packages
1346  -V, --version           display version information and exit
1347  -q, --quiet, --silent   do not print \`checking ...' messages
1348      --cache-file=FILE   cache test results in FILE [disabled]
1349  -C, --config-cache      alias for \`--cache-file=config.cache'
1350  -n, --no-create         do not create output files
1351      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1352
1353Installation directories:
1354  --prefix=PREFIX         install architecture-independent files in PREFIX
1355                          [$ac_default_prefix]
1356  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1357                          [PREFIX]
1358
1359By default, \`make install' will install all the files in
1360\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1361an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362for instance \`--prefix=\$HOME'.
1363
1364For better control, use the options below.
1365
1366Fine tuning of the installation directories:
1367  --bindir=DIR            user executables [EPREFIX/bin]
1368  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1369  --libexecdir=DIR        program executables [EPREFIX/libexec]
1370  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1371  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1372  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1373  --libdir=DIR            object code libraries [EPREFIX/lib]
1374  --includedir=DIR        C header files [PREFIX/include]
1375  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1376  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1377  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1378  --infodir=DIR           info documentation [DATAROOTDIR/info]
1379  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1380  --mandir=DIR            man documentation [DATAROOTDIR/man]
1381  --docdir=DIR            documentation root [DATAROOTDIR/doc/spine-poller]
1382  --htmldir=DIR           html documentation [DOCDIR]
1383  --dvidir=DIR            dvi documentation [DOCDIR]
1384  --pdfdir=DIR            pdf documentation [DOCDIR]
1385  --psdir=DIR             ps documentation [DOCDIR]
1386_ACEOF
1387
1388  cat <<\_ACEOF
1389
1390Program names:
1391  --program-prefix=PREFIX            prepend PREFIX to installed program names
1392  --program-suffix=SUFFIX            append SUFFIX to installed program names
1393  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1394
1395System types:
1396  --build=BUILD     configure for building on BUILD [guessed]
1397  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1398_ACEOF
1399fi
1400
1401if test -n "$ac_init_help"; then
1402  case $ac_init_help in
1403     short | recursive ) echo "Configuration of Spine Poller 0.8.8h:";;
1404   esac
1405  cat <<\_ACEOF
1406
1407Optional Features:
1408  --disable-option-checking  ignore unrecognized --enable/--with options
1409  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1410  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1411  --enable-silent-rules   less verbose build output (undo: "make V=1")
1412  --disable-silent-rules  verbose build output (undo: "make V=0")
1413  --enable-dependency-tracking
1414                          do not reject slow dependency extractors
1415  --disable-dependency-tracking
1416                          speeds up one-time build
1417  --enable-shared[=PKGS]  build shared libraries [default=yes]
1418  --enable-static[=PKGS]  build static libraries [default=yes]
1419  --enable-fast-install[=PKGS]
1420                          optimize for fast installation [default=yes]
1421  --disable-libtool-lock  avoid locking (might break parallel builds)
1422  --enable-warnings       Enable -Wall if using gcc.
1423  --enable-threadsafe-gethostbyname
1424                          Assume gethostbyname() is threadsafe
1425
1426  --enable-solaris-priv   Enable support for the Solaris process privilege model (default: disabled)
1427  --enable-lcap   Enable support for the Linux Capabilities (default: disabled)
1428  --enable-popen          Enable the traditional popen implementation of nifty popen (default: disabled)
1429  --enable-strict-snmp    Enable checking of Net-SNMP library vs header versions  (default: disabled)
1430
1431Optional Packages:
1432  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1433  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1434  --with-static           Build using static libraries
1435  --with-mysql            MySQL base directory [[/usr/local/mysql]]
1436  --with-snmp             SNMP base directory [[/usr/(local/)include]]
1437  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1438                          both]
1439  --with-aix-soname=aix|svr4|both
1440                          shared library versioning (aka "SONAME") variant to
1441                          provide on AIX, [default=aix].
1442  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1443  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1444                          compiler's sysroot if not specified).
1445  --with-results-buffer=N The size of the spine results buffer (default=1024)
1446  --with-max-scripts=N    The maximum simultaneous spine scripts that can run
1447                          (default=20)
1448  --with-max-mysql-buffer=N
1449                          The maximum SQL insert size allowed (default=65536)
1450
1451Some influential environment variables:
1452  CC          C compiler command
1453  CFLAGS      C compiler flags
1454  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1455              nonstandard directory <lib dir>
1456  LIBS        libraries to pass to the linker, e.g. -l<library>
1457  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458              you have headers in a nonstandard directory <include dir>
1459  CPP         C preprocessor
1460  LT_SYS_LIBRARY_PATH
1461              User-defined run-time library search path.
1462
1463Use these variables to override the choices made by `configure' or to help
1464it to find libraries and programs with nonstandard names/locations.
1465
1466Report bugs to <http://www.cacti.net/bugs.php>.
1467_ACEOF
1468ac_status=$?
1469fi
1470
1471if test "$ac_init_help" = "recursive"; then
1472  # If there are subdirs, report their specific --help.
1473  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1474    test -d "$ac_dir" ||
1475      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476      continue
1477    ac_builddir=.
1478
1479case "$ac_dir" in
1480.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481*)
1482  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1483  # A ".." for each directory in $ac_dir_suffix.
1484  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1485  case $ac_top_builddir_sub in
1486  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488  esac ;;
1489esac
1490ac_abs_top_builddir=$ac_pwd
1491ac_abs_builddir=$ac_pwd$ac_dir_suffix
1492# for backward compatibility:
1493ac_top_builddir=$ac_top_build_prefix
1494
1495case $srcdir in
1496  .)  # We are building in place.
1497    ac_srcdir=.
1498    ac_top_srcdir=$ac_top_builddir_sub
1499    ac_abs_top_srcdir=$ac_pwd ;;
1500  [\\/]* | ?:[\\/]* )  # Absolute name.
1501    ac_srcdir=$srcdir$ac_dir_suffix;
1502    ac_top_srcdir=$srcdir
1503    ac_abs_top_srcdir=$srcdir ;;
1504  *) # Relative name.
1505    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506    ac_top_srcdir=$ac_top_build_prefix$srcdir
1507    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508esac
1509ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510
1511    cd "$ac_dir" || { ac_status=$?; continue; }
1512    # Check for guested configure.
1513    if test -f "$ac_srcdir/configure.gnu"; then
1514      echo &&
1515      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516    elif test -f "$ac_srcdir/configure"; then
1517      echo &&
1518      $SHELL "$ac_srcdir/configure" --help=recursive
1519    else
1520      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521    fi || ac_status=$?
1522    cd "$ac_pwd" || { ac_status=$?; break; }
1523  done
1524fi
1525
1526test -n "$ac_init_help" && exit $ac_status
1527if $ac_init_version; then
1528  cat <<\_ACEOF
1529Spine Poller configure 0.8.8h
1530generated by GNU Autoconf 2.69
1531
1532Copyright (C) 2012 Free Software Foundation, Inc.
1533This configure script is free software; the Free Software Foundation
1534gives unlimited permission to copy, distribute and modify it.
1535_ACEOF
1536  exit
1537fi
1538
1539## ------------------------ ##
1540## Autoconf initialization. ##
1541## ------------------------ ##
1542
1543# ac_fn_c_try_compile LINENO
1544# --------------------------
1545# Try to compile conftest.$ac_ext, and return whether this succeeded.
1546ac_fn_c_try_compile ()
1547{
1548  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549  rm -f conftest.$ac_objext
1550  if { { ac_try="$ac_compile"
1551case "(($ac_try" in
1552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553  *) ac_try_echo=$ac_try;;
1554esac
1555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556$as_echo "$ac_try_echo"; } >&5
1557  (eval "$ac_compile") 2>conftest.err
1558  ac_status=$?
1559  if test -s conftest.err; then
1560    grep -v '^ *+' conftest.err >conftest.er1
1561    cat conftest.er1 >&5
1562    mv -f conftest.er1 conftest.err
1563  fi
1564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565  test $ac_status = 0; } && {
1566	 test -z "$ac_c_werror_flag" ||
1567	 test ! -s conftest.err
1568       } && test -s conftest.$ac_objext; then :
1569  ac_retval=0
1570else
1571  $as_echo "$as_me: failed program was:" >&5
1572sed 's/^/| /' conftest.$ac_ext >&5
1573
1574	ac_retval=1
1575fi
1576  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577  as_fn_set_status $ac_retval
1578
1579} # ac_fn_c_try_compile
1580
1581# ac_fn_c_try_cpp LINENO
1582# ----------------------
1583# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584ac_fn_c_try_cpp ()
1585{
1586  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587  if { { ac_try="$ac_cpp conftest.$ac_ext"
1588case "(($ac_try" in
1589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590  *) ac_try_echo=$ac_try;;
1591esac
1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593$as_echo "$ac_try_echo"; } >&5
1594  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1595  ac_status=$?
1596  if test -s conftest.err; then
1597    grep -v '^ *+' conftest.err >conftest.er1
1598    cat conftest.er1 >&5
1599    mv -f conftest.er1 conftest.err
1600  fi
1601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602  test $ac_status = 0; } > conftest.i && {
1603	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1604	 test ! -s conftest.err
1605       }; then :
1606  ac_retval=0
1607else
1608  $as_echo "$as_me: failed program was:" >&5
1609sed 's/^/| /' conftest.$ac_ext >&5
1610
1611    ac_retval=1
1612fi
1613  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614  as_fn_set_status $ac_retval
1615
1616} # ac_fn_c_try_cpp
1617
1618# ac_fn_c_try_link LINENO
1619# -----------------------
1620# Try to link conftest.$ac_ext, and return whether this succeeded.
1621ac_fn_c_try_link ()
1622{
1623  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624  rm -f conftest.$ac_objext conftest$ac_exeext
1625  if { { ac_try="$ac_link"
1626case "(($ac_try" in
1627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628  *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632  (eval "$ac_link") 2>conftest.err
1633  ac_status=$?
1634  if test -s conftest.err; then
1635    grep -v '^ *+' conftest.err >conftest.er1
1636    cat conftest.er1 >&5
1637    mv -f conftest.er1 conftest.err
1638  fi
1639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640  test $ac_status = 0; } && {
1641	 test -z "$ac_c_werror_flag" ||
1642	 test ! -s conftest.err
1643       } && test -s conftest$ac_exeext && {
1644	 test "$cross_compiling" = yes ||
1645	 test -x conftest$ac_exeext
1646       }; then :
1647  ac_retval=0
1648else
1649  $as_echo "$as_me: failed program was:" >&5
1650sed 's/^/| /' conftest.$ac_ext >&5
1651
1652	ac_retval=1
1653fi
1654  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1655  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1656  # interfere with the next link command; also delete a directory that is
1657  # left behind by Apple's compiler.  We do this before executing the actions.
1658  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1659  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660  as_fn_set_status $ac_retval
1661
1662} # ac_fn_c_try_link
1663
1664# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665# -------------------------------------------------------
1666# Tests whether HEADER exists and can be compiled using the include files in
1667# INCLUDES, setting the cache variable VAR accordingly.
1668ac_fn_c_check_header_compile ()
1669{
1670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672$as_echo_n "checking for $2... " >&6; }
1673if eval \${$3+:} false; then :
1674  $as_echo_n "(cached) " >&6
1675else
1676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677/* end confdefs.h.  */
1678$4
1679#include <$2>
1680_ACEOF
1681if ac_fn_c_try_compile "$LINENO"; then :
1682  eval "$3=yes"
1683else
1684  eval "$3=no"
1685fi
1686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687fi
1688eval ac_res=\$$3
1689	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690$as_echo "$ac_res" >&6; }
1691  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692
1693} # ac_fn_c_check_header_compile
1694
1695# ac_fn_c_try_run LINENO
1696# ----------------------
1697# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698# that executables *can* be run.
1699ac_fn_c_try_run ()
1700{
1701  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702  if { { ac_try="$ac_link"
1703case "(($ac_try" in
1704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705  *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709  (eval "$ac_link") 2>&5
1710  ac_status=$?
1711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713  { { case "(($ac_try" in
1714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715  *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719  (eval "$ac_try") 2>&5
1720  ac_status=$?
1721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722  test $ac_status = 0; }; }; then :
1723  ac_retval=0
1724else
1725  $as_echo "$as_me: program exited with status $ac_status" >&5
1726       $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729       ac_retval=$ac_status
1730fi
1731  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733  as_fn_set_status $ac_retval
1734
1735} # ac_fn_c_try_run
1736
1737# ac_fn_c_check_func LINENO FUNC VAR
1738# ----------------------------------
1739# Tests whether FUNC exists, setting the cache variable VAR accordingly
1740ac_fn_c_check_func ()
1741{
1742  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744$as_echo_n "checking for $2... " >&6; }
1745if eval \${$3+:} false; then :
1746  $as_echo_n "(cached) " >&6
1747else
1748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h.  */
1750/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1751   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1752#define $2 innocuous_$2
1753
1754/* System header to define __stub macros and hopefully few prototypes,
1755    which can conflict with char $2 (); below.
1756    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1757    <limits.h> exists even on freestanding compilers.  */
1758
1759#ifdef __STDC__
1760# include <limits.h>
1761#else
1762# include <assert.h>
1763#endif
1764
1765#undef $2
1766
1767/* Override any GCC internal prototype to avoid an error.
1768   Use char because int might match the return type of a GCC
1769   builtin and then its argument prototype would still apply.  */
1770#ifdef __cplusplus
1771extern "C"
1772#endif
1773char $2 ();
1774/* The GNU C library defines this for functions which it implements
1775    to always fail with ENOSYS.  Some functions are actually named
1776    something starting with __ and the normal name is an alias.  */
1777#if defined __stub_$2 || defined __stub___$2
1778choke me
1779#endif
1780
1781int
1782main ()
1783{
1784return $2 ();
1785  ;
1786  return 0;
1787}
1788_ACEOF
1789if ac_fn_c_try_link "$LINENO"; then :
1790  eval "$3=yes"
1791else
1792  eval "$3=no"
1793fi
1794rm -f core conftest.err conftest.$ac_objext \
1795    conftest$ac_exeext conftest.$ac_ext
1796fi
1797eval ac_res=\$$3
1798	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799$as_echo "$ac_res" >&6; }
1800  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801
1802} # ac_fn_c_check_func
1803
1804# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1805# -------------------------------------------------------
1806# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1807# the include files in INCLUDES and setting the cache variable VAR
1808# accordingly.
1809ac_fn_c_check_header_mongrel ()
1810{
1811  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812  if eval \${$3+:} false; then :
1813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814$as_echo_n "checking for $2... " >&6; }
1815if eval \${$3+:} false; then :
1816  $as_echo_n "(cached) " >&6
1817fi
1818eval ac_res=\$$3
1819	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820$as_echo "$ac_res" >&6; }
1821else
1822  # Is the header compilable?
1823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1824$as_echo_n "checking $2 usability... " >&6; }
1825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h.  */
1827$4
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_compile "$LINENO"; then :
1831  ac_header_compiler=yes
1832else
1833  ac_header_compiler=no
1834fi
1835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1837$as_echo "$ac_header_compiler" >&6; }
1838
1839# Is the header present?
1840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1841$as_echo_n "checking $2 presence... " >&6; }
1842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h.  */
1844#include <$2>
1845_ACEOF
1846if ac_fn_c_try_cpp "$LINENO"; then :
1847  ac_header_preproc=yes
1848else
1849  ac_header_preproc=no
1850fi
1851rm -f conftest.err conftest.i conftest.$ac_ext
1852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1853$as_echo "$ac_header_preproc" >&6; }
1854
1855# So?  What about this header?
1856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1857  yes:no: )
1858    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1859$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1860    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862    ;;
1863  no:yes:* )
1864    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1865$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1866    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1867$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1868    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1869$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1870    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1871$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1872    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874( $as_echo "## -------------------------------------------- ##
1875## Report this to http://www.cacti.net/bugs.php ##
1876## -------------------------------------------- ##"
1877     ) | sed "s/^/$as_me: WARNING:     /" >&2
1878    ;;
1879esac
1880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881$as_echo_n "checking for $2... " >&6; }
1882if eval \${$3+:} false; then :
1883  $as_echo_n "(cached) " >&6
1884else
1885  eval "$3=\$ac_header_compiler"
1886fi
1887eval ac_res=\$$3
1888	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889$as_echo "$ac_res" >&6; }
1890fi
1891  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893} # ac_fn_c_check_header_mongrel
1894
1895# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1896# -------------------------------------------
1897# Tests whether TYPE exists after having included INCLUDES, setting cache
1898# variable VAR accordingly.
1899ac_fn_c_check_type ()
1900{
1901  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903$as_echo_n "checking for $2... " >&6; }
1904if eval \${$3+:} false; then :
1905  $as_echo_n "(cached) " >&6
1906else
1907  eval "$3=no"
1908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909/* end confdefs.h.  */
1910$4
1911int
1912main ()
1913{
1914if (sizeof ($2))
1915	 return 0;
1916  ;
1917  return 0;
1918}
1919_ACEOF
1920if ac_fn_c_try_compile "$LINENO"; then :
1921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922/* end confdefs.h.  */
1923$4
1924int
1925main ()
1926{
1927if (sizeof (($2)))
1928	    return 0;
1929  ;
1930  return 0;
1931}
1932_ACEOF
1933if ac_fn_c_try_compile "$LINENO"; then :
1934
1935else
1936  eval "$3=yes"
1937fi
1938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939fi
1940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941fi
1942eval ac_res=\$$3
1943	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944$as_echo "$ac_res" >&6; }
1945  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946
1947} # ac_fn_c_check_type
1948cat >config.log <<_ACEOF
1949This file contains any messages produced by compilers while
1950running configure, to aid debugging if configure makes a mistake.
1951
1952It was created by Spine Poller $as_me 0.8.8h, which was
1953generated by GNU Autoconf 2.69.  Invocation command line was
1954
1955  $ $0 $@
1956
1957_ACEOF
1958exec 5>>config.log
1959{
1960cat <<_ASUNAME
1961## --------- ##
1962## Platform. ##
1963## --------- ##
1964
1965hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1966uname -m = `(uname -m) 2>/dev/null || echo unknown`
1967uname -r = `(uname -r) 2>/dev/null || echo unknown`
1968uname -s = `(uname -s) 2>/dev/null || echo unknown`
1969uname -v = `(uname -v) 2>/dev/null || echo unknown`
1970
1971/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1972/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1973
1974/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1975/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1976/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1977/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1978/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1979/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1980/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1981
1982_ASUNAME
1983
1984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985for as_dir in $PATH
1986do
1987  IFS=$as_save_IFS
1988  test -z "$as_dir" && as_dir=.
1989    $as_echo "PATH: $as_dir"
1990  done
1991IFS=$as_save_IFS
1992
1993} >&5
1994
1995cat >&5 <<_ACEOF
1996
1997
1998## ----------- ##
1999## Core tests. ##
2000## ----------- ##
2001
2002_ACEOF
2003
2004
2005# Keep a trace of the command line.
2006# Strip out --no-create and --no-recursion so they do not pile up.
2007# Strip out --silent because we don't want to record it for future runs.
2008# Also quote any args containing shell meta-characters.
2009# Make two passes to allow for proper duplicate-argument suppression.
2010ac_configure_args=
2011ac_configure_args0=
2012ac_configure_args1=
2013ac_must_keep_next=false
2014for ac_pass in 1 2
2015do
2016  for ac_arg
2017  do
2018    case $ac_arg in
2019    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2020    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2021    | -silent | --silent | --silen | --sile | --sil)
2022      continue ;;
2023    *\'*)
2024      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2025    esac
2026    case $ac_pass in
2027    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2028    2)
2029      as_fn_append ac_configure_args1 " '$ac_arg'"
2030      if test $ac_must_keep_next = true; then
2031	ac_must_keep_next=false # Got value, back to normal.
2032      else
2033	case $ac_arg in
2034	  *=* | --config-cache | -C | -disable-* | --disable-* \
2035	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2036	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2037	  | -with-* | --with-* | -without-* | --without-* | --x)
2038	    case "$ac_configure_args0 " in
2039	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2040	    esac
2041	    ;;
2042	  -* ) ac_must_keep_next=true ;;
2043	esac
2044      fi
2045      as_fn_append ac_configure_args " '$ac_arg'"
2046      ;;
2047    esac
2048  done
2049done
2050{ ac_configure_args0=; unset ac_configure_args0;}
2051{ ac_configure_args1=; unset ac_configure_args1;}
2052
2053# When interrupted or exit'd, cleanup temporary files, and complete
2054# config.log.  We remove comments because anyway the quotes in there
2055# would cause problems or look ugly.
2056# WARNING: Use '\'' to represent an apostrophe within the trap.
2057# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2058trap 'exit_status=$?
2059  # Save into config.log some information that might help in debugging.
2060  {
2061    echo
2062
2063    $as_echo "## ---------------- ##
2064## Cache variables. ##
2065## ---------------- ##"
2066    echo
2067    # The following way of writing the cache mishandles newlines in values,
2068(
2069  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2070    eval ac_val=\$$ac_var
2071    case $ac_val in #(
2072    *${as_nl}*)
2073      case $ac_var in #(
2074      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2075$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2076      esac
2077      case $ac_var in #(
2078      _ | IFS | as_nl) ;; #(
2079      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2080      *) { eval $ac_var=; unset $ac_var;} ;;
2081      esac ;;
2082    esac
2083  done
2084  (set) 2>&1 |
2085    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2086    *${as_nl}ac_space=\ *)
2087      sed -n \
2088	"s/'\''/'\''\\\\'\'''\''/g;
2089	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2090      ;; #(
2091    *)
2092      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2093      ;;
2094    esac |
2095    sort
2096)
2097    echo
2098
2099    $as_echo "## ----------------- ##
2100## Output variables. ##
2101## ----------------- ##"
2102    echo
2103    for ac_var in $ac_subst_vars
2104    do
2105      eval ac_val=\$$ac_var
2106      case $ac_val in
2107      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2108      esac
2109      $as_echo "$ac_var='\''$ac_val'\''"
2110    done | sort
2111    echo
2112
2113    if test -n "$ac_subst_files"; then
2114      $as_echo "## ------------------- ##
2115## File substitutions. ##
2116## ------------------- ##"
2117      echo
2118      for ac_var in $ac_subst_files
2119      do
2120	eval ac_val=\$$ac_var
2121	case $ac_val in
2122	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2123	esac
2124	$as_echo "$ac_var='\''$ac_val'\''"
2125      done | sort
2126      echo
2127    fi
2128
2129    if test -s confdefs.h; then
2130      $as_echo "## ----------- ##
2131## confdefs.h. ##
2132## ----------- ##"
2133      echo
2134      cat confdefs.h
2135      echo
2136    fi
2137    test "$ac_signal" != 0 &&
2138      $as_echo "$as_me: caught signal $ac_signal"
2139    $as_echo "$as_me: exit $exit_status"
2140  } >&5
2141  rm -f core *.core core.conftest.* &&
2142    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2143    exit $exit_status
2144' 0
2145for ac_signal in 1 2 13 15; do
2146  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2147done
2148ac_signal=0
2149
2150# confdefs.h avoids OS command line length limits that DEFS can exceed.
2151rm -f -r conftest* confdefs.h
2152
2153$as_echo "/* confdefs.h */" > confdefs.h
2154
2155# Predefined preprocessor variables.
2156
2157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_NAME "$PACKAGE_NAME"
2159_ACEOF
2160
2161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2163_ACEOF
2164
2165cat >>confdefs.h <<_ACEOF
2166#define PACKAGE_VERSION "$PACKAGE_VERSION"
2167_ACEOF
2168
2169cat >>confdefs.h <<_ACEOF
2170#define PACKAGE_STRING "$PACKAGE_STRING"
2171_ACEOF
2172
2173cat >>confdefs.h <<_ACEOF
2174#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2175_ACEOF
2176
2177cat >>confdefs.h <<_ACEOF
2178#define PACKAGE_URL "$PACKAGE_URL"
2179_ACEOF
2180
2181
2182# Let the site file select an alternate cache file if it wants to.
2183# Prefer an explicitly selected file to automatically selected ones.
2184ac_site_file1=NONE
2185ac_site_file2=NONE
2186if test -n "$CONFIG_SITE"; then
2187  # We do not want a PATH search for config.site.
2188  case $CONFIG_SITE in #((
2189    -*)  ac_site_file1=./$CONFIG_SITE;;
2190    */*) ac_site_file1=$CONFIG_SITE;;
2191    *)   ac_site_file1=./$CONFIG_SITE;;
2192  esac
2193elif test "x$prefix" != xNONE; then
2194  ac_site_file1=$prefix/share/config.site
2195  ac_site_file2=$prefix/etc/config.site
2196else
2197  ac_site_file1=$ac_default_prefix/share/config.site
2198  ac_site_file2=$ac_default_prefix/etc/config.site
2199fi
2200for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2201do
2202  test "x$ac_site_file" = xNONE && continue
2203  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2204    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2205$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2206    sed 's/^/| /' "$ac_site_file" >&5
2207    . "$ac_site_file" \
2208      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210as_fn_error $? "failed to load site script $ac_site_file
2211See \`config.log' for more details" "$LINENO" 5; }
2212  fi
2213done
2214
2215if test -r "$cache_file"; then
2216  # Some versions of bash will fail to source /dev/null (special files
2217  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2218  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2219    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2220$as_echo "$as_me: loading cache $cache_file" >&6;}
2221    case $cache_file in
2222      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2223      *)                      . "./$cache_file";;
2224    esac
2225  fi
2226else
2227  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2228$as_echo "$as_me: creating cache $cache_file" >&6;}
2229  >$cache_file
2230fi
2231
2232# Check that the precious variables saved in the cache have kept the same
2233# value.
2234ac_cache_corrupted=false
2235for ac_var in $ac_precious_vars; do
2236  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2237  eval ac_new_set=\$ac_env_${ac_var}_set
2238  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2239  eval ac_new_val=\$ac_env_${ac_var}_value
2240  case $ac_old_set,$ac_new_set in
2241    set,)
2242      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2243$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2244      ac_cache_corrupted=: ;;
2245    ,set)
2246      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2247$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2248      ac_cache_corrupted=: ;;
2249    ,);;
2250    *)
2251      if test "x$ac_old_val" != "x$ac_new_val"; then
2252	# differences in whitespace do not lead to failure.
2253	ac_old_val_w=`echo x $ac_old_val`
2254	ac_new_val_w=`echo x $ac_new_val`
2255	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2256	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2257$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2258	  ac_cache_corrupted=:
2259	else
2260	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2261$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2262	  eval $ac_var=\$ac_old_val
2263	fi
2264	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2265$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2266	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2267$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2268      fi;;
2269  esac
2270  # Pass precious variables to config.status.
2271  if test "$ac_new_set" = set; then
2272    case $ac_new_val in
2273    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2274    *) ac_arg=$ac_var=$ac_new_val ;;
2275    esac
2276    case " $ac_configure_args " in
2277      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2278      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2279    esac
2280  fi
2281done
2282if $ac_cache_corrupted; then
2283  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2285  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2286$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2287  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2288fi
2289## -------------------- ##
2290## Main body of script. ##
2291## -------------------- ##
2292
2293ac_ext=c
2294ac_cpp='$CPP $CPPFLAGS'
2295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298
2299
2300
2301ac_aux_dir=
2302for ac_dir in config "$srcdir"/config; do
2303  if test -f "$ac_dir/install-sh"; then
2304    ac_aux_dir=$ac_dir
2305    ac_install_sh="$ac_aux_dir/install-sh -c"
2306    break
2307  elif test -f "$ac_dir/install.sh"; then
2308    ac_aux_dir=$ac_dir
2309    ac_install_sh="$ac_aux_dir/install.sh -c"
2310    break
2311  elif test -f "$ac_dir/shtool"; then
2312    ac_aux_dir=$ac_dir
2313    ac_install_sh="$ac_aux_dir/shtool install -c"
2314    break
2315  fi
2316done
2317if test -z "$ac_aux_dir"; then
2318  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2319fi
2320
2321# These three variables are undocumented and unsupported,
2322# and are intended to be withdrawn in a future Autoconf release.
2323# They can cause serious problems if a builder's source tree is in a directory
2324# whose full name contains unusual characters.
2325ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2326ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2327ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2328
2329
2330
2331
2332# Make sure we can run config.sub.
2333$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2334  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2335
2336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2337$as_echo_n "checking build system type... " >&6; }
2338if ${ac_cv_build+:} false; then :
2339  $as_echo_n "(cached) " >&6
2340else
2341  ac_build_alias=$build_alias
2342test "x$ac_build_alias" = x &&
2343  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2344test "x$ac_build_alias" = x &&
2345  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2346ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2347  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2348
2349fi
2350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2351$as_echo "$ac_cv_build" >&6; }
2352case $ac_cv_build in
2353*-*-*) ;;
2354*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2355esac
2356build=$ac_cv_build
2357ac_save_IFS=$IFS; IFS='-'
2358set x $ac_cv_build
2359shift
2360build_cpu=$1
2361build_vendor=$2
2362shift; shift
2363# Remember, the first character of IFS is used to create $*,
2364# except with old shells:
2365build_os=$*
2366IFS=$ac_save_IFS
2367case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2368
2369
2370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2371$as_echo_n "checking host system type... " >&6; }
2372if ${ac_cv_host+:} false; then :
2373  $as_echo_n "(cached) " >&6
2374else
2375  if test "x$host_alias" = x; then
2376  ac_cv_host=$ac_cv_build
2377else
2378  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2379    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2380fi
2381
2382fi
2383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2384$as_echo "$ac_cv_host" >&6; }
2385case $ac_cv_host in
2386*-*-*) ;;
2387*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2388esac
2389host=$ac_cv_host
2390ac_save_IFS=$IFS; IFS='-'
2391set x $ac_cv_host
2392shift
2393host_cpu=$1
2394host_vendor=$2
2395shift; shift
2396# Remember, the first character of IFS is used to create $*,
2397# except with old shells:
2398host_os=$*
2399IFS=$ac_save_IFS
2400case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2401
2402
2403
2404
2405ac_ext=c
2406ac_cpp='$CPP $CPPFLAGS'
2407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410
2411
2412am__api_version='1.15'
2413
2414# Find a good install program.  We prefer a C program (faster),
2415# so one script is as good as another.  But avoid the broken or
2416# incompatible versions:
2417# SysV /etc/install, /usr/sbin/install
2418# SunOS /usr/etc/install
2419# IRIX /sbin/install
2420# AIX /bin/install
2421# AmigaOS /C/install, which installs bootblocks on floppy discs
2422# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2423# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2424# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2425# OS/2's system install, which has a completely different semantic
2426# ./install, which can be erroneously created by make from ./install.sh.
2427# Reject install programs that cannot install multiple files.
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2429$as_echo_n "checking for a BSD-compatible install... " >&6; }
2430if test -z "$INSTALL"; then
2431if ${ac_cv_path_install+:} false; then :
2432  $as_echo_n "(cached) " >&6
2433else
2434  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435for as_dir in $PATH
2436do
2437  IFS=$as_save_IFS
2438  test -z "$as_dir" && as_dir=.
2439    # Account for people who put trailing slashes in PATH elements.
2440case $as_dir/ in #((
2441  ./ | .// | /[cC]/* | \
2442  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2443  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2444  /usr/ucb/* ) ;;
2445  *)
2446    # OSF1 and SCO ODT 3.0 have their own names for install.
2447    # Don't use installbsd from OSF since it installs stuff as root
2448    # by default.
2449    for ac_prog in ginstall scoinst install; do
2450      for ac_exec_ext in '' $ac_executable_extensions; do
2451	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2452	  if test $ac_prog = install &&
2453	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2454	    # AIX install.  It has an incompatible calling convention.
2455	    :
2456	  elif test $ac_prog = install &&
2457	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2458	    # program-specific install script used by HP pwplus--don't use.
2459	    :
2460	  else
2461	    rm -rf conftest.one conftest.two conftest.dir
2462	    echo one > conftest.one
2463	    echo two > conftest.two
2464	    mkdir conftest.dir
2465	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2466	      test -s conftest.one && test -s conftest.two &&
2467	      test -s conftest.dir/conftest.one &&
2468	      test -s conftest.dir/conftest.two
2469	    then
2470	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2471	      break 3
2472	    fi
2473	  fi
2474	fi
2475      done
2476    done
2477    ;;
2478esac
2479
2480  done
2481IFS=$as_save_IFS
2482
2483rm -rf conftest.one conftest.two conftest.dir
2484
2485fi
2486  if test "${ac_cv_path_install+set}" = set; then
2487    INSTALL=$ac_cv_path_install
2488  else
2489    # As a last resort, use the slow shell script.  Don't cache a
2490    # value for INSTALL within a source directory, because that will
2491    # break other packages using the cache if that directory is
2492    # removed, or if the value is a relative name.
2493    INSTALL=$ac_install_sh
2494  fi
2495fi
2496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2497$as_echo "$INSTALL" >&6; }
2498
2499# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2500# It thinks the first close brace ends the variable substitution.
2501test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2502
2503test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2504
2505test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2506
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2508$as_echo_n "checking whether build environment is sane... " >&6; }
2509# Reject unsafe characters in $srcdir or the absolute working directory
2510# name.  Accept space and tab only in the latter.
2511am_lf='
2512'
2513case `pwd` in
2514  *[\\\"\#\$\&\'\`$am_lf]*)
2515    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2516esac
2517case $srcdir in
2518  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2519    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2520esac
2521
2522# Do 'set' in a subshell so we don't clobber the current shell's
2523# arguments.  Must try -L first in case configure is actually a
2524# symlink; some systems play weird games with the mod time of symlinks
2525# (eg FreeBSD returns the mod time of the symlink's containing
2526# directory).
2527if (
2528   am_has_slept=no
2529   for am_try in 1 2; do
2530     echo "timestamp, slept: $am_has_slept" > conftest.file
2531     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2532     if test "$*" = "X"; then
2533	# -L didn't work.
2534	set X `ls -t "$srcdir/configure" conftest.file`
2535     fi
2536     if test "$*" != "X $srcdir/configure conftest.file" \
2537	&& test "$*" != "X conftest.file $srcdir/configure"; then
2538
2539	# If neither matched, then we have a broken ls.  This can happen
2540	# if, for instance, CONFIG_SHELL is bash and it inherits a
2541	# broken ls alias from the environment.  This has actually
2542	# happened.  Such a system could not be considered "sane".
2543	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2544  alias in your environment" "$LINENO" 5
2545     fi
2546     if test "$2" = conftest.file || test $am_try -eq 2; then
2547       break
2548     fi
2549     # Just in case.
2550     sleep 1
2551     am_has_slept=yes
2552   done
2553   test "$2" = conftest.file
2554   )
2555then
2556   # Ok.
2557   :
2558else
2559   as_fn_error $? "newly created file is older than distributed files!
2560Check your system clock" "$LINENO" 5
2561fi
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2563$as_echo "yes" >&6; }
2564# If we didn't sleep, we still need to ensure time stamps of config.status and
2565# generated files are strictly newer.
2566am_sleep_pid=
2567if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2568  ( sleep 1 ) &
2569  am_sleep_pid=$!
2570fi
2571
2572rm -f conftest.file
2573
2574test "$program_prefix" != NONE &&
2575  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2576# Use a double $ so make ignores it.
2577test "$program_suffix" != NONE &&
2578  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2579# Double any \ or $.
2580# By default was `s,x,x', remove it if useless.
2581ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2582program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2583
2584# Expand $ac_aux_dir to an absolute path.
2585am_aux_dir=`cd "$ac_aux_dir" && pwd`
2586
2587if test x"${MISSING+set}" != xset; then
2588  case $am_aux_dir in
2589  *\ * | *\	*)
2590    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2591  *)
2592    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2593  esac
2594fi
2595# Use eval to expand $SHELL
2596if eval "$MISSING --is-lightweight"; then
2597  am_missing_run="$MISSING "
2598else
2599  am_missing_run=
2600  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2601$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2602fi
2603
2604if test x"${install_sh+set}" != xset; then
2605  case $am_aux_dir in
2606  *\ * | *\	*)
2607    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2608  *)
2609    install_sh="\${SHELL} $am_aux_dir/install-sh"
2610  esac
2611fi
2612
2613# Installed binaries are usually stripped using 'strip' when the user
2614# run "make install-strip".  However 'strip' might not be the right
2615# tool to use in cross-compilation environments, therefore Automake
2616# will honor the 'STRIP' environment variable to overrule this program.
2617if test "$cross_compiling" != no; then
2618  if test -n "$ac_tool_prefix"; then
2619  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2620set dummy ${ac_tool_prefix}strip; ac_word=$2
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622$as_echo_n "checking for $ac_word... " >&6; }
2623if ${ac_cv_prog_STRIP+:} false; then :
2624  $as_echo_n "(cached) " >&6
2625else
2626  if test -n "$STRIP"; then
2627  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2628else
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632  IFS=$as_save_IFS
2633  test -z "$as_dir" && as_dir=.
2634    for ac_exec_ext in '' $ac_executable_extensions; do
2635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638    break 2
2639  fi
2640done
2641  done
2642IFS=$as_save_IFS
2643
2644fi
2645fi
2646STRIP=$ac_cv_prog_STRIP
2647if test -n "$STRIP"; then
2648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2649$as_echo "$STRIP" >&6; }
2650else
2651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652$as_echo "no" >&6; }
2653fi
2654
2655
2656fi
2657if test -z "$ac_cv_prog_STRIP"; then
2658  ac_ct_STRIP=$STRIP
2659  # Extract the first word of "strip", so it can be a program name with args.
2660set dummy strip; ac_word=$2
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662$as_echo_n "checking for $ac_word... " >&6; }
2663if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2664  $as_echo_n "(cached) " >&6
2665else
2666  if test -n "$ac_ct_STRIP"; then
2667  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2668else
2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH
2671do
2672  IFS=$as_save_IFS
2673  test -z "$as_dir" && as_dir=.
2674    for ac_exec_ext in '' $ac_executable_extensions; do
2675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676    ac_cv_prog_ac_ct_STRIP="strip"
2677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678    break 2
2679  fi
2680done
2681  done
2682IFS=$as_save_IFS
2683
2684fi
2685fi
2686ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2687if test -n "$ac_ct_STRIP"; then
2688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2689$as_echo "$ac_ct_STRIP" >&6; }
2690else
2691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692$as_echo "no" >&6; }
2693fi
2694
2695  if test "x$ac_ct_STRIP" = x; then
2696    STRIP=":"
2697  else
2698    case $cross_compiling:$ac_tool_warned in
2699yes:)
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2702ac_tool_warned=yes ;;
2703esac
2704    STRIP=$ac_ct_STRIP
2705  fi
2706else
2707  STRIP="$ac_cv_prog_STRIP"
2708fi
2709
2710fi
2711INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2712
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2714$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2715if test -z "$MKDIR_P"; then
2716  if ${ac_cv_path_mkdir+:} false; then :
2717  $as_echo_n "(cached) " >&6
2718else
2719  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2721do
2722  IFS=$as_save_IFS
2723  test -z "$as_dir" && as_dir=.
2724    for ac_prog in mkdir gmkdir; do
2725	 for ac_exec_ext in '' $ac_executable_extensions; do
2726	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2727	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2728	     'mkdir (GNU coreutils) '* | \
2729	     'mkdir (coreutils) '* | \
2730	     'mkdir (fileutils) '4.1*)
2731	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2732	       break 3;;
2733	   esac
2734	 done
2735       done
2736  done
2737IFS=$as_save_IFS
2738
2739fi
2740
2741  test -d ./--version && rmdir ./--version
2742  if test "${ac_cv_path_mkdir+set}" = set; then
2743    MKDIR_P="$ac_cv_path_mkdir -p"
2744  else
2745    # As a last resort, use the slow shell script.  Don't cache a
2746    # value for MKDIR_P within a source directory, because that will
2747    # break other packages using the cache if that directory is
2748    # removed, or if the value is a relative name.
2749    MKDIR_P="$ac_install_sh -d"
2750  fi
2751fi
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2753$as_echo "$MKDIR_P" >&6; }
2754
2755for ac_prog in gawk mawk nawk awk
2756do
2757  # Extract the first word of "$ac_prog", so it can be a program name with args.
2758set dummy $ac_prog; ac_word=$2
2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760$as_echo_n "checking for $ac_word... " >&6; }
2761if ${ac_cv_prog_AWK+:} false; then :
2762  $as_echo_n "(cached) " >&6
2763else
2764  if test -n "$AWK"; then
2765  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2766else
2767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768for as_dir in $PATH
2769do
2770  IFS=$as_save_IFS
2771  test -z "$as_dir" && as_dir=.
2772    for ac_exec_ext in '' $ac_executable_extensions; do
2773  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774    ac_cv_prog_AWK="$ac_prog"
2775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776    break 2
2777  fi
2778done
2779  done
2780IFS=$as_save_IFS
2781
2782fi
2783fi
2784AWK=$ac_cv_prog_AWK
2785if test -n "$AWK"; then
2786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2787$as_echo "$AWK" >&6; }
2788else
2789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790$as_echo "no" >&6; }
2791fi
2792
2793
2794  test -n "$AWK" && break
2795done
2796
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2798$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2799set x ${MAKE-make}
2800ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2801if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2802  $as_echo_n "(cached) " >&6
2803else
2804  cat >conftest.make <<\_ACEOF
2805SHELL = /bin/sh
2806all:
2807	@echo '@@@%%%=$(MAKE)=@@@%%%'
2808_ACEOF
2809# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2810case `${MAKE-make} -f conftest.make 2>/dev/null` in
2811  *@@@%%%=?*=@@@%%%*)
2812    eval ac_cv_prog_make_${ac_make}_set=yes;;
2813  *)
2814    eval ac_cv_prog_make_${ac_make}_set=no;;
2815esac
2816rm -f conftest.make
2817fi
2818if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2820$as_echo "yes" >&6; }
2821  SET_MAKE=
2822else
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824$as_echo "no" >&6; }
2825  SET_MAKE="MAKE=${MAKE-make}"
2826fi
2827
2828rm -rf .tst 2>/dev/null
2829mkdir .tst 2>/dev/null
2830if test -d .tst; then
2831  am__leading_dot=.
2832else
2833  am__leading_dot=_
2834fi
2835rmdir .tst 2>/dev/null
2836
2837# Check whether --enable-silent-rules was given.
2838if test "${enable_silent_rules+set}" = set; then :
2839  enableval=$enable_silent_rules;
2840fi
2841
2842case $enable_silent_rules in # (((
2843  yes) AM_DEFAULT_VERBOSITY=0;;
2844   no) AM_DEFAULT_VERBOSITY=1;;
2845    *) AM_DEFAULT_VERBOSITY=1;;
2846esac
2847am_make=${MAKE-make}
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2849$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2850if ${am_cv_make_support_nested_variables+:} false; then :
2851  $as_echo_n "(cached) " >&6
2852else
2853  if $as_echo 'TRUE=$(BAR$(V))
2854BAR0=false
2855BAR1=true
2856V=1
2857am__doit:
2858	@$(TRUE)
2859.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2860  am_cv_make_support_nested_variables=yes
2861else
2862  am_cv_make_support_nested_variables=no
2863fi
2864fi
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2866$as_echo "$am_cv_make_support_nested_variables" >&6; }
2867if test $am_cv_make_support_nested_variables = yes; then
2868    AM_V='$(V)'
2869  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2870else
2871  AM_V=$AM_DEFAULT_VERBOSITY
2872  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2873fi
2874AM_BACKSLASH='\'
2875
2876if test "`cd $srcdir && pwd`" != "`pwd`"; then
2877  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2878  # is not polluted with repeated "-I."
2879  am__isrc=' -I$(srcdir)'
2880  # test to see if srcdir already configured
2881  if test -f $srcdir/config.status; then
2882    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2883  fi
2884fi
2885
2886# test whether we have cygpath
2887if test -z "$CYGPATH_W"; then
2888  if (cygpath --version) >/dev/null 2>/dev/null; then
2889    CYGPATH_W='cygpath -w'
2890  else
2891    CYGPATH_W=echo
2892  fi
2893fi
2894
2895
2896# Define the identity of the package.
2897
2898 PACKAGE=spine
2899 VERSION=0.8.8h
2900
2901
2902cat >>confdefs.h <<_ACEOF
2903#define PACKAGE "$PACKAGE"
2904_ACEOF
2905
2906
2907cat >>confdefs.h <<_ACEOF
2908#define VERSION "$VERSION"
2909_ACEOF
2910
2911# Some tools Automake needs.
2912
2913ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2914
2915
2916AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2917
2918
2919AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2920
2921
2922AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2923
2924
2925MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2926
2927# For better backward compatibility.  To be removed once Automake 1.9.x
2928# dies out for good.  For more background, see:
2929# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2930# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2931mkdir_p='$(MKDIR_P)'
2932
2933# We need awk for the "check" target (and possibly the TAP driver).  The
2934# system "awk" is bad on some platforms.
2935# Always define AMTAR for backward compatibility.  Yes, it's still used
2936# in the wild :-(  We should find a proper way to deprecate it ...
2937AMTAR='$${TAR-tar}'
2938
2939
2940# We'll loop over all known methods to create a tar archive until one works.
2941_am_tools='gnutar  pax cpio none'
2942
2943am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2944
2945
2946
2947
2948
2949
2950# POSIX will say in a future version that running "rm -f" with no argument
2951# is OK; and we want to be able to make that assumption in our Makefile
2952# recipes.  So use an aggressive probe to check that the usage we want is
2953# actually supported "in the wild" to an acceptable degree.
2954# See automake bug#10828.
2955# To make any issue more visible, cause the running configure to be aborted
2956# by default if the 'rm' program in use doesn't match our expectations; the
2957# user can still override this though.
2958if rm -f && rm -fr && rm -rf; then : OK; else
2959  cat >&2 <<'END'
2960Oops!
2961
2962Your 'rm' program seems unable to run without file operands specified
2963on the command line, even when the '-f' option is present.  This is contrary
2964to the behaviour of most rm programs out there, and not conforming with
2965the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2966
2967Please tell bug-automake@gnu.org about your system, including the value
2968of your $PATH and any error possibly output before this message.  This
2969can help us improve future automake versions.
2970
2971END
2972  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2973    echo 'Configuration will proceed anyway, since you have set the' >&2
2974    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2975    echo >&2
2976  else
2977    cat >&2 <<'END'
2978Aborting the configuration process, to ensure you take notice of the issue.
2979
2980You can download and install GNU coreutils to get an 'rm' implementation
2981that behaves properly: <http://www.gnu.org/software/coreutils/>.
2982
2983If you want to complete the configuration process using your problematic
2984'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2985to "yes", and re-run configure.
2986
2987END
2988    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2989  fi
2990fi
2991
2992ac_config_headers="$ac_config_headers config/config.h"
2993
2994
2995# static libraries
2996
2997# Check whether --with-static was given.
2998if test "${with_static+set}" = set; then :
2999  withval=$with_static; CFLAGS="-static $CFLAGS"
3000
3001fi
3002
3003
3004
3005
3006# mysql
3007
3008# Check whether --with-mysql was given.
3009if test "${with_mysql+set}" = set; then :
3010  withval=$with_mysql; MYSQL_DIR=$withval
3011
3012fi
3013
3014
3015# snmp
3016
3017# Check whether --with-snmp was given.
3018if test "${with_snmp+set}" = set; then :
3019  withval=$with_snmp; SNMP_DIR=$withval
3020
3021fi
3022
3023
3024# if host_alias is empty, ac_cv_host_alias may still have the info
3025if test -z "$host_alias"; then
3026  host_alias=$ac_cv_host_alias
3027fi
3028
3029# Platform-specific tweaks
3030ShLib="so"
3031
3032case $host_alias in
3033*sparc-sun-solaris2.8)
3034  CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
3035
3036$as_echo "#define SOLAR_THREAD 1" >>confdefs.h
3037;;
3038*solaris*)
3039  CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS";;
3040*freebsd*)
3041  LIBS="$LIBS -pthread"
3042  $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
3043;;
3044*darwin*)
3045  ShLib="dylib";;
3046*)
3047  LDFLAGS="-lpthread -lssl -lm $LDFLAGS";;
3048esac
3049
3050# Checks for programs.
3051for ac_prog in gawk mawk nawk awk
3052do
3053  # Extract the first word of "$ac_prog", so it can be a program name with args.
3054set dummy $ac_prog; ac_word=$2
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056$as_echo_n "checking for $ac_word... " >&6; }
3057if ${ac_cv_prog_AWK+:} false; then :
3058  $as_echo_n "(cached) " >&6
3059else
3060  if test -n "$AWK"; then
3061  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3062else
3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066  IFS=$as_save_IFS
3067  test -z "$as_dir" && as_dir=.
3068    for ac_exec_ext in '' $ac_executable_extensions; do
3069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3070    ac_cv_prog_AWK="$ac_prog"
3071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072    break 2
3073  fi
3074done
3075  done
3076IFS=$as_save_IFS
3077
3078fi
3079fi
3080AWK=$ac_cv_prog_AWK
3081if test -n "$AWK"; then
3082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3083$as_echo "$AWK" >&6; }
3084else
3085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086$as_echo "no" >&6; }
3087fi
3088
3089
3090  test -n "$AWK" && break
3091done
3092
3093ac_ext=c
3094ac_cpp='$CPP $CPPFLAGS'
3095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097ac_compiler_gnu=$ac_cv_c_compiler_gnu
3098if test -n "$ac_tool_prefix"; then
3099  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3100set dummy ${ac_tool_prefix}gcc; ac_word=$2
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102$as_echo_n "checking for $ac_word... " >&6; }
3103if ${ac_cv_prog_CC+:} false; then :
3104  $as_echo_n "(cached) " >&6
3105else
3106  if test -n "$CC"; then
3107  ac_cv_prog_CC="$CC" # Let the user override the test.
3108else
3109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110for as_dir in $PATH
3111do
3112  IFS=$as_save_IFS
3113  test -z "$as_dir" && as_dir=.
3114    for ac_exec_ext in '' $ac_executable_extensions; do
3115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118    break 2
3119  fi
3120done
3121  done
3122IFS=$as_save_IFS
3123
3124fi
3125fi
3126CC=$ac_cv_prog_CC
3127if test -n "$CC"; then
3128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3129$as_echo "$CC" >&6; }
3130else
3131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132$as_echo "no" >&6; }
3133fi
3134
3135
3136fi
3137if test -z "$ac_cv_prog_CC"; then
3138  ac_ct_CC=$CC
3139  # Extract the first word of "gcc", so it can be a program name with args.
3140set dummy gcc; ac_word=$2
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142$as_echo_n "checking for $ac_word... " >&6; }
3143if ${ac_cv_prog_ac_ct_CC+:} false; then :
3144  $as_echo_n "(cached) " >&6
3145else
3146  if test -n "$ac_ct_CC"; then
3147  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3148else
3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150for as_dir in $PATH
3151do
3152  IFS=$as_save_IFS
3153  test -z "$as_dir" && as_dir=.
3154    for ac_exec_ext in '' $ac_executable_extensions; do
3155  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156    ac_cv_prog_ac_ct_CC="gcc"
3157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158    break 2
3159  fi
3160done
3161  done
3162IFS=$as_save_IFS
3163
3164fi
3165fi
3166ac_ct_CC=$ac_cv_prog_ac_ct_CC
3167if test -n "$ac_ct_CC"; then
3168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3169$as_echo "$ac_ct_CC" >&6; }
3170else
3171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172$as_echo "no" >&6; }
3173fi
3174
3175  if test "x$ac_ct_CC" = x; then
3176    CC=""
3177  else
3178    case $cross_compiling:$ac_tool_warned in
3179yes:)
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3182ac_tool_warned=yes ;;
3183esac
3184    CC=$ac_ct_CC
3185  fi
3186else
3187  CC="$ac_cv_prog_CC"
3188fi
3189
3190if test -z "$CC"; then
3191          if test -n "$ac_tool_prefix"; then
3192    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3193set dummy ${ac_tool_prefix}cc; ac_word=$2
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195$as_echo_n "checking for $ac_word... " >&6; }
3196if ${ac_cv_prog_CC+:} false; then :
3197  $as_echo_n "(cached) " >&6
3198else
3199  if test -n "$CC"; then
3200  ac_cv_prog_CC="$CC" # Let the user override the test.
3201else
3202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203for as_dir in $PATH
3204do
3205  IFS=$as_save_IFS
3206  test -z "$as_dir" && as_dir=.
3207    for ac_exec_ext in '' $ac_executable_extensions; do
3208  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209    ac_cv_prog_CC="${ac_tool_prefix}cc"
3210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211    break 2
3212  fi
3213done
3214  done
3215IFS=$as_save_IFS
3216
3217fi
3218fi
3219CC=$ac_cv_prog_CC
3220if test -n "$CC"; then
3221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222$as_echo "$CC" >&6; }
3223else
3224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225$as_echo "no" >&6; }
3226fi
3227
3228
3229  fi
3230fi
3231if test -z "$CC"; then
3232  # Extract the first word of "cc", so it can be a program name with args.
3233set dummy cc; ac_word=$2
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235$as_echo_n "checking for $ac_word... " >&6; }
3236if ${ac_cv_prog_CC+:} false; then :
3237  $as_echo_n "(cached) " >&6
3238else
3239  if test -n "$CC"; then
3240  ac_cv_prog_CC="$CC" # Let the user override the test.
3241else
3242  ac_prog_rejected=no
3243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244for as_dir in $PATH
3245do
3246  IFS=$as_save_IFS
3247  test -z "$as_dir" && as_dir=.
3248    for ac_exec_ext in '' $ac_executable_extensions; do
3249  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3251       ac_prog_rejected=yes
3252       continue
3253     fi
3254    ac_cv_prog_CC="cc"
3255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256    break 2
3257  fi
3258done
3259  done
3260IFS=$as_save_IFS
3261
3262if test $ac_prog_rejected = yes; then
3263  # We found a bogon in the path, so make sure we never use it.
3264  set dummy $ac_cv_prog_CC
3265  shift
3266  if test $# != 0; then
3267    # We chose a different compiler from the bogus one.
3268    # However, it has the same basename, so the bogon will be chosen
3269    # first if we set CC to just the basename; use the full file name.
3270    shift
3271    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3272  fi
3273fi
3274fi
3275fi
3276CC=$ac_cv_prog_CC
3277if test -n "$CC"; then
3278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3279$as_echo "$CC" >&6; }
3280else
3281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282$as_echo "no" >&6; }
3283fi
3284
3285
3286fi
3287if test -z "$CC"; then
3288  if test -n "$ac_tool_prefix"; then
3289  for ac_prog in cl.exe
3290  do
3291    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3292set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294$as_echo_n "checking for $ac_word... " >&6; }
3295if ${ac_cv_prog_CC+:} false; then :
3296  $as_echo_n "(cached) " >&6
3297else
3298  if test -n "$CC"; then
3299  ac_cv_prog_CC="$CC" # Let the user override the test.
3300else
3301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302for as_dir in $PATH
3303do
3304  IFS=$as_save_IFS
3305  test -z "$as_dir" && as_dir=.
3306    for ac_exec_ext in '' $ac_executable_extensions; do
3307  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3310    break 2
3311  fi
3312done
3313  done
3314IFS=$as_save_IFS
3315
3316fi
3317fi
3318CC=$ac_cv_prog_CC
3319if test -n "$CC"; then
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3321$as_echo "$CC" >&6; }
3322else
3323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324$as_echo "no" >&6; }
3325fi
3326
3327
3328    test -n "$CC" && break
3329  done
3330fi
3331if test -z "$CC"; then
3332  ac_ct_CC=$CC
3333  for ac_prog in cl.exe
3334do
3335  # Extract the first word of "$ac_prog", so it can be a program name with args.
3336set dummy $ac_prog; ac_word=$2
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3338$as_echo_n "checking for $ac_word... " >&6; }
3339if ${ac_cv_prog_ac_ct_CC+:} false; then :
3340  $as_echo_n "(cached) " >&6
3341else
3342  if test -n "$ac_ct_CC"; then
3343  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3344else
3345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346for as_dir in $PATH
3347do
3348  IFS=$as_save_IFS
3349  test -z "$as_dir" && as_dir=.
3350    for ac_exec_ext in '' $ac_executable_extensions; do
3351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352    ac_cv_prog_ac_ct_CC="$ac_prog"
3353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354    break 2
3355  fi
3356done
3357  done
3358IFS=$as_save_IFS
3359
3360fi
3361fi
3362ac_ct_CC=$ac_cv_prog_ac_ct_CC
3363if test -n "$ac_ct_CC"; then
3364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3365$as_echo "$ac_ct_CC" >&6; }
3366else
3367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368$as_echo "no" >&6; }
3369fi
3370
3371
3372  test -n "$ac_ct_CC" && break
3373done
3374
3375  if test "x$ac_ct_CC" = x; then
3376    CC=""
3377  else
3378    case $cross_compiling:$ac_tool_warned in
3379yes:)
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3382ac_tool_warned=yes ;;
3383esac
3384    CC=$ac_ct_CC
3385  fi
3386fi
3387
3388fi
3389
3390
3391test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393as_fn_error $? "no acceptable C compiler found in \$PATH
3394See \`config.log' for more details" "$LINENO" 5; }
3395
3396# Provide some information about the compiler.
3397$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3398set X $ac_compile
3399ac_compiler=$2
3400for ac_option in --version -v -V -qversion; do
3401  { { ac_try="$ac_compiler $ac_option >&5"
3402case "(($ac_try" in
3403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404  *) ac_try_echo=$ac_try;;
3405esac
3406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407$as_echo "$ac_try_echo"; } >&5
3408  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3409  ac_status=$?
3410  if test -s conftest.err; then
3411    sed '10a\
3412... rest of stderr output deleted ...
3413         10q' conftest.err >conftest.er1
3414    cat conftest.er1 >&5
3415  fi
3416  rm -f conftest.er1 conftest.err
3417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418  test $ac_status = 0; }
3419done
3420
3421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422/* end confdefs.h.  */
3423
3424int
3425main ()
3426{
3427
3428  ;
3429  return 0;
3430}
3431_ACEOF
3432ac_clean_files_save=$ac_clean_files
3433ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3434# Try to create an executable without -o first, disregard a.out.
3435# It will help us diagnose broken compilers, and finding out an intuition
3436# of exeext.
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3438$as_echo_n "checking whether the C compiler works... " >&6; }
3439ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3440
3441# The possible output files:
3442ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3443
3444ac_rmfiles=
3445for ac_file in $ac_files
3446do
3447  case $ac_file in
3448    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3449    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3450  esac
3451done
3452rm -f $ac_rmfiles
3453
3454if { { ac_try="$ac_link_default"
3455case "(($ac_try" in
3456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457  *) ac_try_echo=$ac_try;;
3458esac
3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460$as_echo "$ac_try_echo"; } >&5
3461  (eval "$ac_link_default") 2>&5
3462  ac_status=$?
3463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464  test $ac_status = 0; }; then :
3465  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3466# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3467# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3468# so that the user can short-circuit this test for compilers unknown to
3469# Autoconf.
3470for ac_file in $ac_files ''
3471do
3472  test -f "$ac_file" || continue
3473  case $ac_file in
3474    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3475	;;
3476    [ab].out )
3477	# We found the default executable, but exeext='' is most
3478	# certainly right.
3479	break;;
3480    *.* )
3481	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3482	then :; else
3483	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3484	fi
3485	# We set ac_cv_exeext here because the later test for it is not
3486	# safe: cross compilers may not add the suffix if given an `-o'
3487	# argument, so we may need to know it at that point already.
3488	# Even if this section looks crufty: it has the advantage of
3489	# actually working.
3490	break;;
3491    * )
3492	break;;
3493  esac
3494done
3495test "$ac_cv_exeext" = no && ac_cv_exeext=
3496
3497else
3498  ac_file=''
3499fi
3500if test -z "$ac_file"; then :
3501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502$as_echo "no" >&6; }
3503$as_echo "$as_me: failed program was:" >&5
3504sed 's/^/| /' conftest.$ac_ext >&5
3505
3506{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508as_fn_error 77 "C compiler cannot create executables
3509See \`config.log' for more details" "$LINENO" 5; }
3510else
3511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3512$as_echo "yes" >&6; }
3513fi
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3515$as_echo_n "checking for C compiler default output file name... " >&6; }
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3517$as_echo "$ac_file" >&6; }
3518ac_exeext=$ac_cv_exeext
3519
3520rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3521ac_clean_files=$ac_clean_files_save
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3523$as_echo_n "checking for suffix of executables... " >&6; }
3524if { { ac_try="$ac_link"
3525case "(($ac_try" in
3526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527  *) ac_try_echo=$ac_try;;
3528esac
3529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530$as_echo "$ac_try_echo"; } >&5
3531  (eval "$ac_link") 2>&5
3532  ac_status=$?
3533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534  test $ac_status = 0; }; then :
3535  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3536# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3537# work properly (i.e., refer to `conftest.exe'), while it won't with
3538# `rm'.
3539for ac_file in conftest.exe conftest conftest.*; do
3540  test -f "$ac_file" || continue
3541  case $ac_file in
3542    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3543    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3544	  break;;
3545    * ) break;;
3546  esac
3547done
3548else
3549  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3552See \`config.log' for more details" "$LINENO" 5; }
3553fi
3554rm -f conftest conftest$ac_cv_exeext
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3556$as_echo "$ac_cv_exeext" >&6; }
3557
3558rm -f conftest.$ac_ext
3559EXEEXT=$ac_cv_exeext
3560ac_exeext=$EXEEXT
3561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562/* end confdefs.h.  */
3563#include <stdio.h>
3564int
3565main ()
3566{
3567FILE *f = fopen ("conftest.out", "w");
3568 return ferror (f) || fclose (f) != 0;
3569
3570  ;
3571  return 0;
3572}
3573_ACEOF
3574ac_clean_files="$ac_clean_files conftest.out"
3575# Check that the compiler produces executables we can run.  If not, either
3576# the compiler is broken, or we cross compile.
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3578$as_echo_n "checking whether we are cross compiling... " >&6; }
3579if test "$cross_compiling" != yes; then
3580  { { ac_try="$ac_link"
3581case "(($ac_try" in
3582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583  *) ac_try_echo=$ac_try;;
3584esac
3585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586$as_echo "$ac_try_echo"; } >&5
3587  (eval "$ac_link") 2>&5
3588  ac_status=$?
3589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590  test $ac_status = 0; }
3591  if { ac_try='./conftest$ac_cv_exeext'
3592  { { case "(($ac_try" in
3593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594  *) ac_try_echo=$ac_try;;
3595esac
3596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597$as_echo "$ac_try_echo"; } >&5
3598  (eval "$ac_try") 2>&5
3599  ac_status=$?
3600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601  test $ac_status = 0; }; }; then
3602    cross_compiling=no
3603  else
3604    if test "$cross_compiling" = maybe; then
3605	cross_compiling=yes
3606    else
3607	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609as_fn_error $? "cannot run C compiled programs.
3610If you meant to cross compile, use \`--host'.
3611See \`config.log' for more details" "$LINENO" 5; }
3612    fi
3613  fi
3614fi
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3616$as_echo "$cross_compiling" >&6; }
3617
3618rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3619ac_clean_files=$ac_clean_files_save
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3621$as_echo_n "checking for suffix of object files... " >&6; }
3622if ${ac_cv_objext+:} false; then :
3623  $as_echo_n "(cached) " >&6
3624else
3625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626/* end confdefs.h.  */
3627
3628int
3629main ()
3630{
3631
3632  ;
3633  return 0;
3634}
3635_ACEOF
3636rm -f conftest.o conftest.obj
3637if { { ac_try="$ac_compile"
3638case "(($ac_try" in
3639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640  *) ac_try_echo=$ac_try;;
3641esac
3642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643$as_echo "$ac_try_echo"; } >&5
3644  (eval "$ac_compile") 2>&5
3645  ac_status=$?
3646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647  test $ac_status = 0; }; then :
3648  for ac_file in conftest.o conftest.obj conftest.*; do
3649  test -f "$ac_file" || continue;
3650  case $ac_file in
3651    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3652    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3653       break;;
3654  esac
3655done
3656else
3657  $as_echo "$as_me: failed program was:" >&5
3658sed 's/^/| /' conftest.$ac_ext >&5
3659
3660{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662as_fn_error $? "cannot compute suffix of object files: cannot compile
3663See \`config.log' for more details" "$LINENO" 5; }
3664fi
3665rm -f conftest.$ac_cv_objext conftest.$ac_ext
3666fi
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3668$as_echo "$ac_cv_objext" >&6; }
3669OBJEXT=$ac_cv_objext
3670ac_objext=$OBJEXT
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3672$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3673if ${ac_cv_c_compiler_gnu+:} false; then :
3674  $as_echo_n "(cached) " >&6
3675else
3676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677/* end confdefs.h.  */
3678
3679int
3680main ()
3681{
3682#ifndef __GNUC__
3683       choke me
3684#endif
3685
3686  ;
3687  return 0;
3688}
3689_ACEOF
3690if ac_fn_c_try_compile "$LINENO"; then :
3691  ac_compiler_gnu=yes
3692else
3693  ac_compiler_gnu=no
3694fi
3695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696ac_cv_c_compiler_gnu=$ac_compiler_gnu
3697
3698fi
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3700$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3701if test $ac_compiler_gnu = yes; then
3702  GCC=yes
3703else
3704  GCC=
3705fi
3706ac_test_CFLAGS=${CFLAGS+set}
3707ac_save_CFLAGS=$CFLAGS
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3709$as_echo_n "checking whether $CC accepts -g... " >&6; }
3710if ${ac_cv_prog_cc_g+:} false; then :
3711  $as_echo_n "(cached) " >&6
3712else
3713  ac_save_c_werror_flag=$ac_c_werror_flag
3714   ac_c_werror_flag=yes
3715   ac_cv_prog_cc_g=no
3716   CFLAGS="-g"
3717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718/* end confdefs.h.  */
3719
3720int
3721main ()
3722{
3723
3724  ;
3725  return 0;
3726}
3727_ACEOF
3728if ac_fn_c_try_compile "$LINENO"; then :
3729  ac_cv_prog_cc_g=yes
3730else
3731  CFLAGS=""
3732      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733/* end confdefs.h.  */
3734
3735int
3736main ()
3737{
3738
3739  ;
3740  return 0;
3741}
3742_ACEOF
3743if ac_fn_c_try_compile "$LINENO"; then :
3744
3745else
3746  ac_c_werror_flag=$ac_save_c_werror_flag
3747	 CFLAGS="-g"
3748	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749/* end confdefs.h.  */
3750
3751int
3752main ()
3753{
3754
3755  ;
3756  return 0;
3757}
3758_ACEOF
3759if ac_fn_c_try_compile "$LINENO"; then :
3760  ac_cv_prog_cc_g=yes
3761fi
3762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763fi
3764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765fi
3766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767   ac_c_werror_flag=$ac_save_c_werror_flag
3768fi
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3770$as_echo "$ac_cv_prog_cc_g" >&6; }
3771if test "$ac_test_CFLAGS" = set; then
3772  CFLAGS=$ac_save_CFLAGS
3773elif test $ac_cv_prog_cc_g = yes; then
3774  if test "$GCC" = yes; then
3775    CFLAGS="-g -O2"
3776  else
3777    CFLAGS="-g"
3778  fi
3779else
3780  if test "$GCC" = yes; then
3781    CFLAGS="-O2"
3782  else
3783    CFLAGS=
3784  fi
3785fi
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3787$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3788if ${ac_cv_prog_cc_c89+:} false; then :
3789  $as_echo_n "(cached) " >&6
3790else
3791  ac_cv_prog_cc_c89=no
3792ac_save_CC=$CC
3793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794/* end confdefs.h.  */
3795#include <stdarg.h>
3796#include <stdio.h>
3797struct stat;
3798/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3799struct buf { int x; };
3800FILE * (*rcsopen) (struct buf *, struct stat *, int);
3801static char *e (p, i)
3802     char **p;
3803     int i;
3804{
3805  return p[i];
3806}
3807static char *f (char * (*g) (char **, int), char **p, ...)
3808{
3809  char *s;
3810  va_list v;
3811  va_start (v,p);
3812  s = g (p, va_arg (v,int));
3813  va_end (v);
3814  return s;
3815}
3816
3817/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3818   function prototypes and stuff, but not '\xHH' hex character constants.
3819   These don't provoke an error unfortunately, instead are silently treated
3820   as 'x'.  The following induces an error, until -std is added to get
3821   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3822   array size at least.  It's necessary to write '\x00'==0 to get something
3823   that's true only with -std.  */
3824int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3825
3826/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3827   inside strings and character constants.  */
3828#define FOO(x) 'x'
3829int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3830
3831int test (int i, double x);
3832struct s1 {int (*f) (int a);};
3833struct s2 {int (*f) (double a);};
3834int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3835int argc;
3836char **argv;
3837int
3838main ()
3839{
3840return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3841  ;
3842  return 0;
3843}
3844_ACEOF
3845for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3846	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3847do
3848  CC="$ac_save_CC $ac_arg"
3849  if ac_fn_c_try_compile "$LINENO"; then :
3850  ac_cv_prog_cc_c89=$ac_arg
3851fi
3852rm -f core conftest.err conftest.$ac_objext
3853  test "x$ac_cv_prog_cc_c89" != "xno" && break
3854done
3855rm -f conftest.$ac_ext
3856CC=$ac_save_CC
3857
3858fi
3859# AC_CACHE_VAL
3860case "x$ac_cv_prog_cc_c89" in
3861  x)
3862    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3863$as_echo "none needed" >&6; } ;;
3864  xno)
3865    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3866$as_echo "unsupported" >&6; } ;;
3867  *)
3868    CC="$CC $ac_cv_prog_cc_c89"
3869    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3870$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3871esac
3872if test "x$ac_cv_prog_cc_c89" != xno; then :
3873
3874fi
3875
3876ac_ext=c
3877ac_cpp='$CPP $CPPFLAGS'
3878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881
3882ac_ext=c
3883ac_cpp='$CPP $CPPFLAGS'
3884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3888$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3889if ${am_cv_prog_cc_c_o+:} false; then :
3890  $as_echo_n "(cached) " >&6
3891else
3892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893/* end confdefs.h.  */
3894
3895int
3896main ()
3897{
3898
3899  ;
3900  return 0;
3901}
3902_ACEOF
3903  # Make sure it works both with $CC and with simple cc.
3904  # Following AC_PROG_CC_C_O, we do the test twice because some
3905  # compilers refuse to overwrite an existing .o file with -o,
3906  # though they will create one.
3907  am_cv_prog_cc_c_o=yes
3908  for am_i in 1 2; do
3909    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3910   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3911   ac_status=$?
3912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); } \
3914         && test -f conftest2.$ac_objext; then
3915      : OK
3916    else
3917      am_cv_prog_cc_c_o=no
3918      break
3919    fi
3920  done
3921  rm -f core conftest*
3922  unset am_i
3923fi
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3925$as_echo "$am_cv_prog_cc_c_o" >&6; }
3926if test "$am_cv_prog_cc_c_o" != yes; then
3927   # Losing compiler, so override with the script.
3928   # FIXME: It is wrong to rewrite CC.
3929   # But if we don't then we get into trouble of one sort or another.
3930   # A longer-term fix would be to have automake use am__CC in this case,
3931   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3932   CC="$am_aux_dir/compile $CC"
3933fi
3934ac_ext=c
3935ac_cpp='$CPP $CPPFLAGS'
3936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939
3940DEPDIR="${am__leading_dot}deps"
3941
3942ac_config_commands="$ac_config_commands depfiles"
3943
3944
3945am_make=${MAKE-make}
3946cat > confinc << 'END'
3947am__doit:
3948	@echo this is the am__doit target
3949.PHONY: am__doit
3950END
3951# If we don't find an include directive, just comment out the code.
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3953$as_echo_n "checking for style of include used by $am_make... " >&6; }
3954am__include="#"
3955am__quote=
3956_am_result=none
3957# First try GNU make style include.
3958echo "include confinc" > confmf
3959# Ignore all kinds of additional output from 'make'.
3960case `$am_make -s -f confmf 2> /dev/null` in #(
3961*the\ am__doit\ target*)
3962  am__include=include
3963  am__quote=
3964  _am_result=GNU
3965  ;;
3966esac
3967# Now try BSD make style include.
3968if test "$am__include" = "#"; then
3969   echo '.include "confinc"' > confmf
3970   case `$am_make -s -f confmf 2> /dev/null` in #(
3971   *the\ am__doit\ target*)
3972     am__include=.include
3973     am__quote="\""
3974     _am_result=BSD
3975     ;;
3976   esac
3977fi
3978
3979
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3981$as_echo "$_am_result" >&6; }
3982rm -f confinc confmf
3983
3984# Check whether --enable-dependency-tracking was given.
3985if test "${enable_dependency_tracking+set}" = set; then :
3986  enableval=$enable_dependency_tracking;
3987fi
3988
3989if test "x$enable_dependency_tracking" != xno; then
3990  am_depcomp="$ac_aux_dir/depcomp"
3991  AMDEPBACKSLASH='\'
3992  am__nodep='_no'
3993fi
3994 if test "x$enable_dependency_tracking" != xno; then
3995  AMDEP_TRUE=
3996  AMDEP_FALSE='#'
3997else
3998  AMDEP_TRUE='#'
3999  AMDEP_FALSE=
4000fi
4001
4002
4003
4004depcc="$CC"   am_compiler_list=
4005
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4007$as_echo_n "checking dependency style of $depcc... " >&6; }
4008if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4009  $as_echo_n "(cached) " >&6
4010else
4011  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4012  # We make a subdir and do the tests there.  Otherwise we can end up
4013  # making bogus files that we don't know about and never remove.  For
4014  # instance it was reported that on HP-UX the gcc test will end up
4015  # making a dummy file named 'D' -- because '-MD' means "put the output
4016  # in D".
4017  rm -rf conftest.dir
4018  mkdir conftest.dir
4019  # Copy depcomp to subdir because otherwise we won't find it if we're
4020  # using a relative directory.
4021  cp "$am_depcomp" conftest.dir
4022  cd conftest.dir
4023  # We will build objects and dependencies in a subdirectory because
4024  # it helps to detect inapplicable dependency modes.  For instance
4025  # both Tru64's cc and ICC support -MD to output dependencies as a
4026  # side effect of compilation, but ICC will put the dependencies in
4027  # the current directory while Tru64 will put them in the object
4028  # directory.
4029  mkdir sub
4030
4031  am_cv_CC_dependencies_compiler_type=none
4032  if test "$am_compiler_list" = ""; then
4033     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4034  fi
4035  am__universal=false
4036  case " $depcc " in #(
4037     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4038     esac
4039
4040  for depmode in $am_compiler_list; do
4041    # Setup a source with many dependencies, because some compilers
4042    # like to wrap large dependency lists on column 80 (with \), and
4043    # we should not choose a depcomp mode which is confused by this.
4044    #
4045    # We need to recreate these files for each test, as the compiler may
4046    # overwrite some of them when testing with obscure command lines.
4047    # This happens at least with the AIX C compiler.
4048    : > sub/conftest.c
4049    for i in 1 2 3 4 5 6; do
4050      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4051      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4052      # Solaris 10 /bin/sh.
4053      echo '/* dummy */' > sub/conftst$i.h
4054    done
4055    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4056
4057    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4058    # mode.  It turns out that the SunPro C++ compiler does not properly
4059    # handle '-M -o', and we need to detect this.  Also, some Intel
4060    # versions had trouble with output in subdirs.
4061    am__obj=sub/conftest.${OBJEXT-o}
4062    am__minus_obj="-o $am__obj"
4063    case $depmode in
4064    gcc)
4065      # This depmode causes a compiler race in universal mode.
4066      test "$am__universal" = false || continue
4067      ;;
4068    nosideeffect)
4069      # After this tag, mechanisms are not by side-effect, so they'll
4070      # only be used when explicitly requested.
4071      if test "x$enable_dependency_tracking" = xyes; then
4072	continue
4073      else
4074	break
4075      fi
4076      ;;
4077    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4078      # This compiler won't grok '-c -o', but also, the minuso test has
4079      # not run yet.  These depmodes are late enough in the game, and
4080      # so weak that their functioning should not be impacted.
4081      am__obj=conftest.${OBJEXT-o}
4082      am__minus_obj=
4083      ;;
4084    none) break ;;
4085    esac
4086    if depmode=$depmode \
4087       source=sub/conftest.c object=$am__obj \
4088       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4089       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4090         >/dev/null 2>conftest.err &&
4091       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4092       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4093       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4094       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4095      # icc doesn't choke on unknown options, it will just issue warnings
4096      # or remarks (even with -Werror).  So we grep stderr for any message
4097      # that says an option was ignored or not supported.
4098      # When given -MP, icc 7.0 and 7.1 complain thusly:
4099      #   icc: Command line warning: ignoring option '-M'; no argument required
4100      # The diagnosis changed in icc 8.0:
4101      #   icc: Command line remark: option '-MP' not supported
4102      if (grep 'ignoring option' conftest.err ||
4103          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4104        am_cv_CC_dependencies_compiler_type=$depmode
4105        break
4106      fi
4107    fi
4108  done
4109
4110  cd ..
4111  rm -rf conftest.dir
4112else
4113  am_cv_CC_dependencies_compiler_type=none
4114fi
4115
4116fi
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4118$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4119CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4120
4121 if
4122  test "x$enable_dependency_tracking" != xno \
4123  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4124  am__fastdepCC_TRUE=
4125  am__fastdepCC_FALSE='#'
4126else
4127  am__fastdepCC_TRUE='#'
4128  am__fastdepCC_FALSE=
4129fi
4130
4131
4132ac_ext=c
4133ac_cpp='$CPP $CPPFLAGS'
4134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4138$as_echo_n "checking how to run the C preprocessor... " >&6; }
4139# On Suns, sometimes $CPP names a directory.
4140if test -n "$CPP" && test -d "$CPP"; then
4141  CPP=
4142fi
4143if test -z "$CPP"; then
4144  if ${ac_cv_prog_CPP+:} false; then :
4145  $as_echo_n "(cached) " >&6
4146else
4147      # Double quotes because CPP needs to be expanded
4148    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4149    do
4150      ac_preproc_ok=false
4151for ac_c_preproc_warn_flag in '' yes
4152do
4153  # Use a header file that comes with gcc, so configuring glibc
4154  # with a fresh cross-compiler works.
4155  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4156  # <limits.h> exists even on freestanding compilers.
4157  # On the NeXT, cc -E runs the code through the compiler's parser,
4158  # not just through cpp. "Syntax error" is here to catch this case.
4159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160/* end confdefs.h.  */
4161#ifdef __STDC__
4162# include <limits.h>
4163#else
4164# include <assert.h>
4165#endif
4166		     Syntax error
4167_ACEOF
4168if ac_fn_c_try_cpp "$LINENO"; then :
4169
4170else
4171  # Broken: fails on valid input.
4172continue
4173fi
4174rm -f conftest.err conftest.i conftest.$ac_ext
4175
4176  # OK, works on sane cases.  Now check whether nonexistent headers
4177  # can be detected and how.
4178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179/* end confdefs.h.  */
4180#include <ac_nonexistent.h>
4181_ACEOF
4182if ac_fn_c_try_cpp "$LINENO"; then :
4183  # Broken: success on invalid input.
4184continue
4185else
4186  # Passes both tests.
4187ac_preproc_ok=:
4188break
4189fi
4190rm -f conftest.err conftest.i conftest.$ac_ext
4191
4192done
4193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4194rm -f conftest.i conftest.err conftest.$ac_ext
4195if $ac_preproc_ok; then :
4196  break
4197fi
4198
4199    done
4200    ac_cv_prog_CPP=$CPP
4201
4202fi
4203  CPP=$ac_cv_prog_CPP
4204else
4205  ac_cv_prog_CPP=$CPP
4206fi
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4208$as_echo "$CPP" >&6; }
4209ac_preproc_ok=false
4210for ac_c_preproc_warn_flag in '' yes
4211do
4212  # Use a header file that comes with gcc, so configuring glibc
4213  # with a fresh cross-compiler works.
4214  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4215  # <limits.h> exists even on freestanding compilers.
4216  # On the NeXT, cc -E runs the code through the compiler's parser,
4217  # not just through cpp. "Syntax error" is here to catch this case.
4218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219/* end confdefs.h.  */
4220#ifdef __STDC__
4221# include <limits.h>
4222#else
4223# include <assert.h>
4224#endif
4225		     Syntax error
4226_ACEOF
4227if ac_fn_c_try_cpp "$LINENO"; then :
4228
4229else
4230  # Broken: fails on valid input.
4231continue
4232fi
4233rm -f conftest.err conftest.i conftest.$ac_ext
4234
4235  # OK, works on sane cases.  Now check whether nonexistent headers
4236  # can be detected and how.
4237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238/* end confdefs.h.  */
4239#include <ac_nonexistent.h>
4240_ACEOF
4241if ac_fn_c_try_cpp "$LINENO"; then :
4242  # Broken: success on invalid input.
4243continue
4244else
4245  # Passes both tests.
4246ac_preproc_ok=:
4247break
4248fi
4249rm -f conftest.err conftest.i conftest.$ac_ext
4250
4251done
4252# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4253rm -f conftest.i conftest.err conftest.$ac_ext
4254if $ac_preproc_ok; then :
4255
4256else
4257  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4259as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4260See \`config.log' for more details" "$LINENO" 5; }
4261fi
4262
4263ac_ext=c
4264ac_cpp='$CPP $CPPFLAGS'
4265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268
4269
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4271$as_echo_n "checking whether ln -s works... " >&6; }
4272LN_S=$as_ln_s
4273if test "$LN_S" = "ln -s"; then
4274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4275$as_echo "yes" >&6; }
4276else
4277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4278$as_echo "no, using $LN_S" >&6; }
4279fi
4280
4281case `pwd` in
4282  *\ * | *\	*)
4283    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4284$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4285esac
4286
4287
4288
4289macro_version='2.4.6'
4290macro_revision='2.4.6'
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304ltmain=$ac_aux_dir/ltmain.sh
4305
4306# Backslashify metacharacters that are still active within
4307# double-quoted strings.
4308sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4309
4310# Same as above, but do not quote variable references.
4311double_quote_subst='s/\(["`\\]\)/\\\1/g'
4312
4313# Sed substitution to delay expansion of an escaped shell variable in a
4314# double_quote_subst'ed string.
4315delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4316
4317# Sed substitution to delay expansion of an escaped single quote.
4318delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4319
4320# Sed substitution to avoid accidental globbing in evaled expressions
4321no_glob_subst='s/\*/\\\*/g'
4322
4323ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4324ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4325ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4326
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4328$as_echo_n "checking how to print strings... " >&6; }
4329# Test print first, because it will be a builtin if present.
4330if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4331   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4332  ECHO='print -r --'
4333elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4334  ECHO='printf %s\n'
4335else
4336  # Use this function as a fallback that always works.
4337  func_fallback_echo ()
4338  {
4339    eval 'cat <<_LTECHO_EOF
4340$1
4341_LTECHO_EOF'
4342  }
4343  ECHO='func_fallback_echo'
4344fi
4345
4346# func_echo_all arg...
4347# Invoke $ECHO with all args, space-separated.
4348func_echo_all ()
4349{
4350    $ECHO ""
4351}
4352
4353case $ECHO in
4354  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4355$as_echo "printf" >&6; } ;;
4356  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4357$as_echo "print -r" >&6; } ;;
4358  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4359$as_echo "cat" >&6; } ;;
4360esac
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4376$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4377if ${ac_cv_path_SED+:} false; then :
4378  $as_echo_n "(cached) " >&6
4379else
4380            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4381     for ac_i in 1 2 3 4 5 6 7; do
4382       ac_script="$ac_script$as_nl$ac_script"
4383     done
4384     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4385     { ac_script=; unset ac_script;}
4386     if test -z "$SED"; then
4387  ac_path_SED_found=false
4388  # Loop through the user's path and test for each of PROGNAME-LIST
4389  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH
4391do
4392  IFS=$as_save_IFS
4393  test -z "$as_dir" && as_dir=.
4394    for ac_prog in sed gsed; do
4395    for ac_exec_ext in '' $ac_executable_extensions; do
4396      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4397      as_fn_executable_p "$ac_path_SED" || continue
4398# Check for GNU ac_path_SED and select it if it is found.
4399  # Check for GNU $ac_path_SED
4400case `"$ac_path_SED" --version 2>&1` in
4401*GNU*)
4402  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4403*)
4404  ac_count=0
4405  $as_echo_n 0123456789 >"conftest.in"
4406  while :
4407  do
4408    cat "conftest.in" "conftest.in" >"conftest.tmp"
4409    mv "conftest.tmp" "conftest.in"
4410    cp "conftest.in" "conftest.nl"
4411    $as_echo '' >> "conftest.nl"
4412    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4413    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4414    as_fn_arith $ac_count + 1 && ac_count=$as_val
4415    if test $ac_count -gt ${ac_path_SED_max-0}; then
4416      # Best one so far, save it but keep looking for a better one
4417      ac_cv_path_SED="$ac_path_SED"
4418      ac_path_SED_max=$ac_count
4419    fi
4420    # 10*(2^10) chars as input seems more than enough
4421    test $ac_count -gt 10 && break
4422  done
4423  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4424esac
4425
4426      $ac_path_SED_found && break 3
4427    done
4428  done
4429  done
4430IFS=$as_save_IFS
4431  if test -z "$ac_cv_path_SED"; then
4432    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4433  fi
4434else
4435  ac_cv_path_SED=$SED
4436fi
4437
4438fi
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4440$as_echo "$ac_cv_path_SED" >&6; }
4441 SED="$ac_cv_path_SED"
4442  rm -f conftest.sed
4443
4444test -z "$SED" && SED=sed
4445Xsed="$SED -e 1s/^X//"
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4458$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4459if ${ac_cv_path_GREP+:} false; then :
4460  $as_echo_n "(cached) " >&6
4461else
4462  if test -z "$GREP"; then
4463  ac_path_GREP_found=false
4464  # Loop through the user's path and test for each of PROGNAME-LIST
4465  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4467do
4468  IFS=$as_save_IFS
4469  test -z "$as_dir" && as_dir=.
4470    for ac_prog in grep ggrep; do
4471    for ac_exec_ext in '' $ac_executable_extensions; do
4472      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4473      as_fn_executable_p "$ac_path_GREP" || continue
4474# Check for GNU ac_path_GREP and select it if it is found.
4475  # Check for GNU $ac_path_GREP
4476case `"$ac_path_GREP" --version 2>&1` in
4477*GNU*)
4478  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4479*)
4480  ac_count=0
4481  $as_echo_n 0123456789 >"conftest.in"
4482  while :
4483  do
4484    cat "conftest.in" "conftest.in" >"conftest.tmp"
4485    mv "conftest.tmp" "conftest.in"
4486    cp "conftest.in" "conftest.nl"
4487    $as_echo 'GREP' >> "conftest.nl"
4488    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4489    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4490    as_fn_arith $ac_count + 1 && ac_count=$as_val
4491    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4492      # Best one so far, save it but keep looking for a better one
4493      ac_cv_path_GREP="$ac_path_GREP"
4494      ac_path_GREP_max=$ac_count
4495    fi
4496    # 10*(2^10) chars as input seems more than enough
4497    test $ac_count -gt 10 && break
4498  done
4499  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4500esac
4501
4502      $ac_path_GREP_found && break 3
4503    done
4504  done
4505  done
4506IFS=$as_save_IFS
4507  if test -z "$ac_cv_path_GREP"; then
4508    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4509  fi
4510else
4511  ac_cv_path_GREP=$GREP
4512fi
4513
4514fi
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4516$as_echo "$ac_cv_path_GREP" >&6; }
4517 GREP="$ac_cv_path_GREP"
4518
4519
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4521$as_echo_n "checking for egrep... " >&6; }
4522if ${ac_cv_path_EGREP+:} false; then :
4523  $as_echo_n "(cached) " >&6
4524else
4525  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4526   then ac_cv_path_EGREP="$GREP -E"
4527   else
4528     if test -z "$EGREP"; then
4529  ac_path_EGREP_found=false
4530  # Loop through the user's path and test for each of PROGNAME-LIST
4531  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4533do
4534  IFS=$as_save_IFS
4535  test -z "$as_dir" && as_dir=.
4536    for ac_prog in egrep; do
4537    for ac_exec_ext in '' $ac_executable_extensions; do
4538      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4539      as_fn_executable_p "$ac_path_EGREP" || continue
4540# Check for GNU ac_path_EGREP and select it if it is found.
4541  # Check for GNU $ac_path_EGREP
4542case `"$ac_path_EGREP" --version 2>&1` in
4543*GNU*)
4544  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4545*)
4546  ac_count=0
4547  $as_echo_n 0123456789 >"conftest.in"
4548  while :
4549  do
4550    cat "conftest.in" "conftest.in" >"conftest.tmp"
4551    mv "conftest.tmp" "conftest.in"
4552    cp "conftest.in" "conftest.nl"
4553    $as_echo 'EGREP' >> "conftest.nl"
4554    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4555    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4556    as_fn_arith $ac_count + 1 && ac_count=$as_val
4557    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4558      # Best one so far, save it but keep looking for a better one
4559      ac_cv_path_EGREP="$ac_path_EGREP"
4560      ac_path_EGREP_max=$ac_count
4561    fi
4562    # 10*(2^10) chars as input seems more than enough
4563    test $ac_count -gt 10 && break
4564  done
4565  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4566esac
4567
4568      $ac_path_EGREP_found && break 3
4569    done
4570  done
4571  done
4572IFS=$as_save_IFS
4573  if test -z "$ac_cv_path_EGREP"; then
4574    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4575  fi
4576else
4577  ac_cv_path_EGREP=$EGREP
4578fi
4579
4580   fi
4581fi
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4583$as_echo "$ac_cv_path_EGREP" >&6; }
4584 EGREP="$ac_cv_path_EGREP"
4585
4586
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4588$as_echo_n "checking for fgrep... " >&6; }
4589if ${ac_cv_path_FGREP+:} false; then :
4590  $as_echo_n "(cached) " >&6
4591else
4592  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4593   then ac_cv_path_FGREP="$GREP -F"
4594   else
4595     if test -z "$FGREP"; then
4596  ac_path_FGREP_found=false
4597  # Loop through the user's path and test for each of PROGNAME-LIST
4598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4600do
4601  IFS=$as_save_IFS
4602  test -z "$as_dir" && as_dir=.
4603    for ac_prog in fgrep; do
4604    for ac_exec_ext in '' $ac_executable_extensions; do
4605      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4606      as_fn_executable_p "$ac_path_FGREP" || continue
4607# Check for GNU ac_path_FGREP and select it if it is found.
4608  # Check for GNU $ac_path_FGREP
4609case `"$ac_path_FGREP" --version 2>&1` in
4610*GNU*)
4611  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4612*)
4613  ac_count=0
4614  $as_echo_n 0123456789 >"conftest.in"
4615  while :
4616  do
4617    cat "conftest.in" "conftest.in" >"conftest.tmp"
4618    mv "conftest.tmp" "conftest.in"
4619    cp "conftest.in" "conftest.nl"
4620    $as_echo 'FGREP' >> "conftest.nl"
4621    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4622    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4623    as_fn_arith $ac_count + 1 && ac_count=$as_val
4624    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4625      # Best one so far, save it but keep looking for a better one
4626      ac_cv_path_FGREP="$ac_path_FGREP"
4627      ac_path_FGREP_max=$ac_count
4628    fi
4629    # 10*(2^10) chars as input seems more than enough
4630    test $ac_count -gt 10 && break
4631  done
4632  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4633esac
4634
4635      $ac_path_FGREP_found && break 3
4636    done
4637  done
4638  done
4639IFS=$as_save_IFS
4640  if test -z "$ac_cv_path_FGREP"; then
4641    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4642  fi
4643else
4644  ac_cv_path_FGREP=$FGREP
4645fi
4646
4647   fi
4648fi
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4650$as_echo "$ac_cv_path_FGREP" >&6; }
4651 FGREP="$ac_cv_path_FGREP"
4652
4653
4654test -z "$GREP" && GREP=grep
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674# Check whether --with-gnu-ld was given.
4675if test "${with_gnu_ld+set}" = set; then :
4676  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4677else
4678  with_gnu_ld=no
4679fi
4680
4681ac_prog=ld
4682if test yes = "$GCC"; then
4683  # Check if gcc -print-prog-name=ld gives a path.
4684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4685$as_echo_n "checking for ld used by $CC... " >&6; }
4686  case $host in
4687  *-*-mingw*)
4688    # gcc leaves a trailing carriage return, which upsets mingw
4689    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4690  *)
4691    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4692  esac
4693  case $ac_prog in
4694    # Accept absolute paths.
4695    [\\/]* | ?:[\\/]*)
4696      re_direlt='/[^/][^/]*/\.\./'
4697      # Canonicalize the pathname of ld
4698      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4699      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4700	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4701      done
4702      test -z "$LD" && LD=$ac_prog
4703      ;;
4704  "")
4705    # If it fails, then pretend we aren't using GCC.
4706    ac_prog=ld
4707    ;;
4708  *)
4709    # If it is relative, then search for the first ld in PATH.
4710    with_gnu_ld=unknown
4711    ;;
4712  esac
4713elif test yes = "$with_gnu_ld"; then
4714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4715$as_echo_n "checking for GNU ld... " >&6; }
4716else
4717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4718$as_echo_n "checking for non-GNU ld... " >&6; }
4719fi
4720if ${lt_cv_path_LD+:} false; then :
4721  $as_echo_n "(cached) " >&6
4722else
4723  if test -z "$LD"; then
4724  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4725  for ac_dir in $PATH; do
4726    IFS=$lt_save_ifs
4727    test -z "$ac_dir" && ac_dir=.
4728    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4729      lt_cv_path_LD=$ac_dir/$ac_prog
4730      # Check to see if the program is GNU ld.  I'd rather use --version,
4731      # but apparently some variants of GNU ld only accept -v.
4732      # Break only if it was the GNU/non-GNU ld that we prefer.
4733      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4734      *GNU* | *'with BFD'*)
4735	test no != "$with_gnu_ld" && break
4736	;;
4737      *)
4738	test yes != "$with_gnu_ld" && break
4739	;;
4740      esac
4741    fi
4742  done
4743  IFS=$lt_save_ifs
4744else
4745  lt_cv_path_LD=$LD # Let the user override the test with a path.
4746fi
4747fi
4748
4749LD=$lt_cv_path_LD
4750if test -n "$LD"; then
4751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4752$as_echo "$LD" >&6; }
4753else
4754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755$as_echo "no" >&6; }
4756fi
4757test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4759$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4760if ${lt_cv_prog_gnu_ld+:} false; then :
4761  $as_echo_n "(cached) " >&6
4762else
4763  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4764case `$LD -v 2>&1 </dev/null` in
4765*GNU* | *'with BFD'*)
4766  lt_cv_prog_gnu_ld=yes
4767  ;;
4768*)
4769  lt_cv_prog_gnu_ld=no
4770  ;;
4771esac
4772fi
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4774$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4775with_gnu_ld=$lt_cv_prog_gnu_ld
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4786$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4787if ${lt_cv_path_NM+:} false; then :
4788  $as_echo_n "(cached) " >&6
4789else
4790  if test -n "$NM"; then
4791  # Let the user override the test.
4792  lt_cv_path_NM=$NM
4793else
4794  lt_nm_to_check=${ac_tool_prefix}nm
4795  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4796    lt_nm_to_check="$lt_nm_to_check nm"
4797  fi
4798  for lt_tmp_nm in $lt_nm_to_check; do
4799    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4800    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4801      IFS=$lt_save_ifs
4802      test -z "$ac_dir" && ac_dir=.
4803      tmp_nm=$ac_dir/$lt_tmp_nm
4804      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4805	# Check to see if the nm accepts a BSD-compat flag.
4806	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4807	#   nm: unknown option "B" ignored
4808	# Tru64's nm complains that /dev/null is an invalid object file
4809	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4810	case $build_os in
4811	mingw*) lt_bad_file=conftest.nm/nofile ;;
4812	*) lt_bad_file=/dev/null ;;
4813	esac
4814	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4815	*$lt_bad_file* | *'Invalid file or object type'*)
4816	  lt_cv_path_NM="$tmp_nm -B"
4817	  break 2
4818	  ;;
4819	*)
4820	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4821	  */dev/null*)
4822	    lt_cv_path_NM="$tmp_nm -p"
4823	    break 2
4824	    ;;
4825	  *)
4826	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4827	    continue # so that we can try to find one that supports BSD flags
4828	    ;;
4829	  esac
4830	  ;;
4831	esac
4832      fi
4833    done
4834    IFS=$lt_save_ifs
4835  done
4836  : ${lt_cv_path_NM=no}
4837fi
4838fi
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4840$as_echo "$lt_cv_path_NM" >&6; }
4841if test no != "$lt_cv_path_NM"; then
4842  NM=$lt_cv_path_NM
4843else
4844  # Didn't find any BSD compatible name lister, look for dumpbin.
4845  if test -n "$DUMPBIN"; then :
4846    # Let the user override the test.
4847  else
4848    if test -n "$ac_tool_prefix"; then
4849  for ac_prog in dumpbin "link -dump"
4850  do
4851    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4852set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854$as_echo_n "checking for $ac_word... " >&6; }
4855if ${ac_cv_prog_DUMPBIN+:} false; then :
4856  $as_echo_n "(cached) " >&6
4857else
4858  if test -n "$DUMPBIN"; then
4859  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4860else
4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864  IFS=$as_save_IFS
4865  test -z "$as_dir" && as_dir=.
4866    for ac_exec_ext in '' $ac_executable_extensions; do
4867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870    break 2
4871  fi
4872done
4873  done
4874IFS=$as_save_IFS
4875
4876fi
4877fi
4878DUMPBIN=$ac_cv_prog_DUMPBIN
4879if test -n "$DUMPBIN"; then
4880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4881$as_echo "$DUMPBIN" >&6; }
4882else
4883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884$as_echo "no" >&6; }
4885fi
4886
4887
4888    test -n "$DUMPBIN" && break
4889  done
4890fi
4891if test -z "$DUMPBIN"; then
4892  ac_ct_DUMPBIN=$DUMPBIN
4893  for ac_prog in dumpbin "link -dump"
4894do
4895  # Extract the first word of "$ac_prog", so it can be a program name with args.
4896set dummy $ac_prog; ac_word=$2
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898$as_echo_n "checking for $ac_word... " >&6; }
4899if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4900  $as_echo_n "(cached) " >&6
4901else
4902  if test -n "$ac_ct_DUMPBIN"; then
4903  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4904else
4905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906for as_dir in $PATH
4907do
4908  IFS=$as_save_IFS
4909  test -z "$as_dir" && as_dir=.
4910    for ac_exec_ext in '' $ac_executable_extensions; do
4911  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914    break 2
4915  fi
4916done
4917  done
4918IFS=$as_save_IFS
4919
4920fi
4921fi
4922ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4923if test -n "$ac_ct_DUMPBIN"; then
4924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4925$as_echo "$ac_ct_DUMPBIN" >&6; }
4926else
4927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928$as_echo "no" >&6; }
4929fi
4930
4931
4932  test -n "$ac_ct_DUMPBIN" && break
4933done
4934
4935  if test "x$ac_ct_DUMPBIN" = x; then
4936    DUMPBIN=":"
4937  else
4938    case $cross_compiling:$ac_tool_warned in
4939yes:)
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942ac_tool_warned=yes ;;
4943esac
4944    DUMPBIN=$ac_ct_DUMPBIN
4945  fi
4946fi
4947
4948    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4949    *COFF*)
4950      DUMPBIN="$DUMPBIN -symbols -headers"
4951      ;;
4952    *)
4953      DUMPBIN=:
4954      ;;
4955    esac
4956  fi
4957
4958  if test : != "$DUMPBIN"; then
4959    NM=$DUMPBIN
4960  fi
4961fi
4962test -z "$NM" && NM=nm
4963
4964
4965
4966
4967
4968
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4970$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4971if ${lt_cv_nm_interface+:} false; then :
4972  $as_echo_n "(cached) " >&6
4973else
4974  lt_cv_nm_interface="BSD nm"
4975  echo "int some_variable = 0;" > conftest.$ac_ext
4976  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4977  (eval "$ac_compile" 2>conftest.err)
4978  cat conftest.err >&5
4979  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4980  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4981  cat conftest.err >&5
4982  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4983  cat conftest.out >&5
4984  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4985    lt_cv_nm_interface="MS dumpbin"
4986  fi
4987  rm -f conftest*
4988fi
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4990$as_echo "$lt_cv_nm_interface" >&6; }
4991
4992# find the maximum length of command line arguments
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4994$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4995if ${lt_cv_sys_max_cmd_len+:} false; then :
4996  $as_echo_n "(cached) " >&6
4997else
4998    i=0
4999  teststring=ABCD
5000
5001  case $build_os in
5002  msdosdjgpp*)
5003    # On DJGPP, this test can blow up pretty badly due to problems in libc
5004    # (any single argument exceeding 2000 bytes causes a buffer overrun
5005    # during glob expansion).  Even if it were fixed, the result of this
5006    # check would be larger than it should be.
5007    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5008    ;;
5009
5010  gnu*)
5011    # Under GNU Hurd, this test is not required because there is
5012    # no limit to the length of command line arguments.
5013    # Libtool will interpret -1 as no limit whatsoever
5014    lt_cv_sys_max_cmd_len=-1;
5015    ;;
5016
5017  cygwin* | mingw* | cegcc*)
5018    # On Win9x/ME, this test blows up -- it succeeds, but takes
5019    # about 5 minutes as the teststring grows exponentially.
5020    # Worse, since 9x/ME are not pre-emptively multitasking,
5021    # you end up with a "frozen" computer, even though with patience
5022    # the test eventually succeeds (with a max line length of 256k).
5023    # Instead, let's just punt: use the minimum linelength reported by
5024    # all of the supported platforms: 8192 (on NT/2K/XP).
5025    lt_cv_sys_max_cmd_len=8192;
5026    ;;
5027
5028  mint*)
5029    # On MiNT this can take a long time and run out of memory.
5030    lt_cv_sys_max_cmd_len=8192;
5031    ;;
5032
5033  amigaos*)
5034    # On AmigaOS with pdksh, this test takes hours, literally.
5035    # So we just punt and use a minimum line length of 8192.
5036    lt_cv_sys_max_cmd_len=8192;
5037    ;;
5038
5039  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5040    # This has been around since 386BSD, at least.  Likely further.
5041    if test -x /sbin/sysctl; then
5042      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5043    elif test -x /usr/sbin/sysctl; then
5044      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5045    else
5046      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5047    fi
5048    # And add a safety zone
5049    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5050    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5051    ;;
5052
5053  interix*)
5054    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5055    lt_cv_sys_max_cmd_len=196608
5056    ;;
5057
5058  os2*)
5059    # The test takes a long time on OS/2.
5060    lt_cv_sys_max_cmd_len=8192
5061    ;;
5062
5063  osf*)
5064    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5065    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5066    # nice to cause kernel panics so lets avoid the loop below.
5067    # First set a reasonable default.
5068    lt_cv_sys_max_cmd_len=16384
5069    #
5070    if test -x /sbin/sysconfig; then
5071      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5072        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5073      esac
5074    fi
5075    ;;
5076  sco3.2v5*)
5077    lt_cv_sys_max_cmd_len=102400
5078    ;;
5079  sysv5* | sco5v6* | sysv4.2uw2*)
5080    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5081    if test -n "$kargmax"; then
5082      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5083    else
5084      lt_cv_sys_max_cmd_len=32768
5085    fi
5086    ;;
5087  *)
5088    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5089    if test -n "$lt_cv_sys_max_cmd_len" && \
5090       test undefined != "$lt_cv_sys_max_cmd_len"; then
5091      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5092      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5093    else
5094      # Make teststring a little bigger before we do anything with it.
5095      # a 1K string should be a reasonable start.
5096      for i in 1 2 3 4 5 6 7 8; do
5097        teststring=$teststring$teststring
5098      done
5099      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5100      # If test is not a shell built-in, we'll probably end up computing a
5101      # maximum length that is only half of the actual maximum length, but
5102      # we can't tell.
5103      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5104	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5105	      test 17 != "$i" # 1/2 MB should be enough
5106      do
5107        i=`expr $i + 1`
5108        teststring=$teststring$teststring
5109      done
5110      # Only check the string length outside the loop.
5111      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5112      teststring=
5113      # Add a significant safety factor because C++ compilers can tack on
5114      # massive amounts of additional arguments before passing them to the
5115      # linker.  It appears as though 1/2 is a usable value.
5116      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5117    fi
5118    ;;
5119  esac
5120
5121fi
5122
5123if test -n "$lt_cv_sys_max_cmd_len"; then
5124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5125$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5126else
5127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5128$as_echo "none" >&6; }
5129fi
5130max_cmd_len=$lt_cv_sys_max_cmd_len
5131
5132
5133
5134
5135
5136
5137: ${CP="cp -f"}
5138: ${MV="mv -f"}
5139: ${RM="rm -f"}
5140
5141if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5142  lt_unset=unset
5143else
5144  lt_unset=false
5145fi
5146
5147
5148
5149
5150
5151# test EBCDIC or ASCII
5152case `echo X|tr X '\101'` in
5153 A) # ASCII based system
5154    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5155  lt_SP2NL='tr \040 \012'
5156  lt_NL2SP='tr \015\012 \040\040'
5157  ;;
5158 *) # EBCDIC based system
5159  lt_SP2NL='tr \100 \n'
5160  lt_NL2SP='tr \r\n \100\100'
5161  ;;
5162esac
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5173$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5174if ${lt_cv_to_host_file_cmd+:} false; then :
5175  $as_echo_n "(cached) " >&6
5176else
5177  case $host in
5178  *-*-mingw* )
5179    case $build in
5180      *-*-mingw* ) # actually msys
5181        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5182        ;;
5183      *-*-cygwin* )
5184        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5185        ;;
5186      * ) # otherwise, assume *nix
5187        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5188        ;;
5189    esac
5190    ;;
5191  *-*-cygwin* )
5192    case $build in
5193      *-*-mingw* ) # actually msys
5194        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5195        ;;
5196      *-*-cygwin* )
5197        lt_cv_to_host_file_cmd=func_convert_file_noop
5198        ;;
5199      * ) # otherwise, assume *nix
5200        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5201        ;;
5202    esac
5203    ;;
5204  * ) # unhandled hosts (and "normal" native builds)
5205    lt_cv_to_host_file_cmd=func_convert_file_noop
5206    ;;
5207esac
5208
5209fi
5210
5211to_host_file_cmd=$lt_cv_to_host_file_cmd
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5213$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5214
5215
5216
5217
5218
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5220$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5221if ${lt_cv_to_tool_file_cmd+:} false; then :
5222  $as_echo_n "(cached) " >&6
5223else
5224  #assume ordinary cross tools, or native build.
5225lt_cv_to_tool_file_cmd=func_convert_file_noop
5226case $host in
5227  *-*-mingw* )
5228    case $build in
5229      *-*-mingw* ) # actually msys
5230        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5231        ;;
5232    esac
5233    ;;
5234esac
5235
5236fi
5237
5238to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5240$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5241
5242
5243
5244
5245
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5247$as_echo_n "checking for $LD option to reload object files... " >&6; }
5248if ${lt_cv_ld_reload_flag+:} false; then :
5249  $as_echo_n "(cached) " >&6
5250else
5251  lt_cv_ld_reload_flag='-r'
5252fi
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5254$as_echo "$lt_cv_ld_reload_flag" >&6; }
5255reload_flag=$lt_cv_ld_reload_flag
5256case $reload_flag in
5257"" | " "*) ;;
5258*) reload_flag=" $reload_flag" ;;
5259esac
5260reload_cmds='$LD$reload_flag -o $output$reload_objs'
5261case $host_os in
5262  cygwin* | mingw* | pw32* | cegcc*)
5263    if test yes != "$GCC"; then
5264      reload_cmds=false
5265    fi
5266    ;;
5267  darwin*)
5268    if test yes = "$GCC"; then
5269      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5270    else
5271      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5272    fi
5273    ;;
5274esac
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284if test -n "$ac_tool_prefix"; then
5285  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5286set dummy ${ac_tool_prefix}objdump; ac_word=$2
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288$as_echo_n "checking for $ac_word... " >&6; }
5289if ${ac_cv_prog_OBJDUMP+:} false; then :
5290  $as_echo_n "(cached) " >&6
5291else
5292  if test -n "$OBJDUMP"; then
5293  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5294else
5295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296for as_dir in $PATH
5297do
5298  IFS=$as_save_IFS
5299  test -z "$as_dir" && as_dir=.
5300    for ac_exec_ext in '' $ac_executable_extensions; do
5301  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5302    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304    break 2
5305  fi
5306done
5307  done
5308IFS=$as_save_IFS
5309
5310fi
5311fi
5312OBJDUMP=$ac_cv_prog_OBJDUMP
5313if test -n "$OBJDUMP"; then
5314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5315$as_echo "$OBJDUMP" >&6; }
5316else
5317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318$as_echo "no" >&6; }
5319fi
5320
5321
5322fi
5323if test -z "$ac_cv_prog_OBJDUMP"; then
5324  ac_ct_OBJDUMP=$OBJDUMP
5325  # Extract the first word of "objdump", so it can be a program name with args.
5326set dummy objdump; ac_word=$2
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328$as_echo_n "checking for $ac_word... " >&6; }
5329if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5330  $as_echo_n "(cached) " >&6
5331else
5332  if test -n "$ac_ct_OBJDUMP"; then
5333  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5334else
5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336for as_dir in $PATH
5337do
5338  IFS=$as_save_IFS
5339  test -z "$as_dir" && as_dir=.
5340    for ac_exec_ext in '' $ac_executable_extensions; do
5341  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344    break 2
5345  fi
5346done
5347  done
5348IFS=$as_save_IFS
5349
5350fi
5351fi
5352ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5353if test -n "$ac_ct_OBJDUMP"; then
5354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5355$as_echo "$ac_ct_OBJDUMP" >&6; }
5356else
5357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358$as_echo "no" >&6; }
5359fi
5360
5361  if test "x$ac_ct_OBJDUMP" = x; then
5362    OBJDUMP="false"
5363  else
5364    case $cross_compiling:$ac_tool_warned in
5365yes:)
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5368ac_tool_warned=yes ;;
5369esac
5370    OBJDUMP=$ac_ct_OBJDUMP
5371  fi
5372else
5373  OBJDUMP="$ac_cv_prog_OBJDUMP"
5374fi
5375
5376test -z "$OBJDUMP" && OBJDUMP=objdump
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5387$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5388if ${lt_cv_deplibs_check_method+:} false; then :
5389  $as_echo_n "(cached) " >&6
5390else
5391  lt_cv_file_magic_cmd='$MAGIC_CMD'
5392lt_cv_file_magic_test_file=
5393lt_cv_deplibs_check_method='unknown'
5394# Need to set the preceding variable on all platforms that support
5395# interlibrary dependencies.
5396# 'none' -- dependencies not supported.
5397# 'unknown' -- same as none, but documents that we really don't know.
5398# 'pass_all' -- all dependencies passed with no checks.
5399# 'test_compile' -- check by making test program.
5400# 'file_magic [[regex]]' -- check by looking for files in library path
5401# that responds to the $file_magic_cmd with a given extended regex.
5402# If you have 'file' or equivalent on your system and you're not sure
5403# whether 'pass_all' will *always* work, you probably want this one.
5404
5405case $host_os in
5406aix[4-9]*)
5407  lt_cv_deplibs_check_method=pass_all
5408  ;;
5409
5410beos*)
5411  lt_cv_deplibs_check_method=pass_all
5412  ;;
5413
5414bsdi[45]*)
5415  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5416  lt_cv_file_magic_cmd='/usr/bin/file -L'
5417  lt_cv_file_magic_test_file=/shlib/libc.so
5418  ;;
5419
5420cygwin*)
5421  # func_win32_libid is a shell function defined in ltmain.sh
5422  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5423  lt_cv_file_magic_cmd='func_win32_libid'
5424  ;;
5425
5426mingw* | pw32*)
5427  # Base MSYS/MinGW do not provide the 'file' command needed by
5428  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5429  # unless we find 'file', for example because we are cross-compiling.
5430  if ( file / ) >/dev/null 2>&1; then
5431    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5432    lt_cv_file_magic_cmd='func_win32_libid'
5433  else
5434    # Keep this pattern in sync with the one in func_win32_libid.
5435    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5436    lt_cv_file_magic_cmd='$OBJDUMP -f'
5437  fi
5438  ;;
5439
5440cegcc*)
5441  # use the weaker test based on 'objdump'. See mingw*.
5442  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5443  lt_cv_file_magic_cmd='$OBJDUMP -f'
5444  ;;
5445
5446darwin* | rhapsody*)
5447  lt_cv_deplibs_check_method=pass_all
5448  ;;
5449
5450freebsd* | dragonfly*)
5451  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5452    case $host_cpu in
5453    i*86 )
5454      # Not sure whether the presence of OpenBSD here was a mistake.
5455      # Let's accept both of them until this is cleared up.
5456      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5457      lt_cv_file_magic_cmd=/usr/bin/file
5458      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5459      ;;
5460    esac
5461  else
5462    lt_cv_deplibs_check_method=pass_all
5463  fi
5464  ;;
5465
5466haiku*)
5467  lt_cv_deplibs_check_method=pass_all
5468  ;;
5469
5470hpux10.20* | hpux11*)
5471  lt_cv_file_magic_cmd=/usr/bin/file
5472  case $host_cpu in
5473  ia64*)
5474    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5475    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5476    ;;
5477  hppa*64*)
5478    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]'
5479    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5480    ;;
5481  *)
5482    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5483    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5484    ;;
5485  esac
5486  ;;
5487
5488interix[3-9]*)
5489  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5490  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5491  ;;
5492
5493irix5* | irix6* | nonstopux*)
5494  case $LD in
5495  *-32|*"-32 ") libmagic=32-bit;;
5496  *-n32|*"-n32 ") libmagic=N32;;
5497  *-64|*"-64 ") libmagic=64-bit;;
5498  *) libmagic=never-match;;
5499  esac
5500  lt_cv_deplibs_check_method=pass_all
5501  ;;
5502
5503# This must be glibc/ELF.
5504linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5505  lt_cv_deplibs_check_method=pass_all
5506  ;;
5507
5508netbsd*)
5509  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5510    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5511  else
5512    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5513  fi
5514  ;;
5515
5516newos6*)
5517  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5518  lt_cv_file_magic_cmd=/usr/bin/file
5519  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5520  ;;
5521
5522*nto* | *qnx*)
5523  lt_cv_deplibs_check_method=pass_all
5524  ;;
5525
5526openbsd* | bitrig*)
5527  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5528    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5529  else
5530    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5531  fi
5532  ;;
5533
5534osf3* | osf4* | osf5*)
5535  lt_cv_deplibs_check_method=pass_all
5536  ;;
5537
5538rdos*)
5539  lt_cv_deplibs_check_method=pass_all
5540  ;;
5541
5542solaris*)
5543  lt_cv_deplibs_check_method=pass_all
5544  ;;
5545
5546sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5547  lt_cv_deplibs_check_method=pass_all
5548  ;;
5549
5550sysv4 | sysv4.3*)
5551  case $host_vendor in
5552  motorola)
5553    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]'
5554    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5555    ;;
5556  ncr)
5557    lt_cv_deplibs_check_method=pass_all
5558    ;;
5559  sequent)
5560    lt_cv_file_magic_cmd='/bin/file'
5561    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5562    ;;
5563  sni)
5564    lt_cv_file_magic_cmd='/bin/file'
5565    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5566    lt_cv_file_magic_test_file=/lib/libc.so
5567    ;;
5568  siemens)
5569    lt_cv_deplibs_check_method=pass_all
5570    ;;
5571  pc)
5572    lt_cv_deplibs_check_method=pass_all
5573    ;;
5574  esac
5575  ;;
5576
5577tpf*)
5578  lt_cv_deplibs_check_method=pass_all
5579  ;;
5580os2*)
5581  lt_cv_deplibs_check_method=pass_all
5582  ;;
5583esac
5584
5585fi
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5587$as_echo "$lt_cv_deplibs_check_method" >&6; }
5588
5589file_magic_glob=
5590want_nocaseglob=no
5591if test "$build" = "$host"; then
5592  case $host_os in
5593  mingw* | pw32*)
5594    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5595      want_nocaseglob=yes
5596    else
5597      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5598    fi
5599    ;;
5600  esac
5601fi
5602
5603file_magic_cmd=$lt_cv_file_magic_cmd
5604deplibs_check_method=$lt_cv_deplibs_check_method
5605test -z "$deplibs_check_method" && deplibs_check_method=unknown
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628if test -n "$ac_tool_prefix"; then
5629  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5630set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632$as_echo_n "checking for $ac_word... " >&6; }
5633if ${ac_cv_prog_DLLTOOL+:} false; then :
5634  $as_echo_n "(cached) " >&6
5635else
5636  if test -n "$DLLTOOL"; then
5637  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5638else
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642  IFS=$as_save_IFS
5643  test -z "$as_dir" && as_dir=.
5644    for ac_exec_ext in '' $ac_executable_extensions; do
5645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648    break 2
5649  fi
5650done
5651  done
5652IFS=$as_save_IFS
5653
5654fi
5655fi
5656DLLTOOL=$ac_cv_prog_DLLTOOL
5657if test -n "$DLLTOOL"; then
5658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5659$as_echo "$DLLTOOL" >&6; }
5660else
5661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662$as_echo "no" >&6; }
5663fi
5664
5665
5666fi
5667if test -z "$ac_cv_prog_DLLTOOL"; then
5668  ac_ct_DLLTOOL=$DLLTOOL
5669  # Extract the first word of "dlltool", so it can be a program name with args.
5670set dummy dlltool; ac_word=$2
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672$as_echo_n "checking for $ac_word... " >&6; }
5673if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5674  $as_echo_n "(cached) " >&6
5675else
5676  if test -n "$ac_ct_DLLTOOL"; then
5677  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5678else
5679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682  IFS=$as_save_IFS
5683  test -z "$as_dir" && as_dir=.
5684    for ac_exec_ext in '' $ac_executable_extensions; do
5685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688    break 2
5689  fi
5690done
5691  done
5692IFS=$as_save_IFS
5693
5694fi
5695fi
5696ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5697if test -n "$ac_ct_DLLTOOL"; then
5698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5699$as_echo "$ac_ct_DLLTOOL" >&6; }
5700else
5701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702$as_echo "no" >&6; }
5703fi
5704
5705  if test "x$ac_ct_DLLTOOL" = x; then
5706    DLLTOOL="false"
5707  else
5708    case $cross_compiling:$ac_tool_warned in
5709yes:)
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5712ac_tool_warned=yes ;;
5713esac
5714    DLLTOOL=$ac_ct_DLLTOOL
5715  fi
5716else
5717  DLLTOOL="$ac_cv_prog_DLLTOOL"
5718fi
5719
5720test -z "$DLLTOOL" && DLLTOOL=dlltool
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5732$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5733if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5734  $as_echo_n "(cached) " >&6
5735else
5736  lt_cv_sharedlib_from_linklib_cmd='unknown'
5737
5738case $host_os in
5739cygwin* | mingw* | pw32* | cegcc*)
5740  # two different shell functions defined in ltmain.sh;
5741  # decide which one to use based on capabilities of $DLLTOOL
5742  case `$DLLTOOL --help 2>&1` in
5743  *--identify-strict*)
5744    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5745    ;;
5746  *)
5747    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5748    ;;
5749  esac
5750  ;;
5751*)
5752  # fallback: assume linklib IS sharedlib
5753  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5754  ;;
5755esac
5756
5757fi
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5759$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5760sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5761test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5762
5763
5764
5765
5766
5767
5768
5769
5770if test -n "$ac_tool_prefix"; then
5771  for ac_prog in ar
5772  do
5773    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5774set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776$as_echo_n "checking for $ac_word... " >&6; }
5777if ${ac_cv_prog_AR+:} false; then :
5778  $as_echo_n "(cached) " >&6
5779else
5780  if test -n "$AR"; then
5781  ac_cv_prog_AR="$AR" # Let the user override the test.
5782else
5783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784for as_dir in $PATH
5785do
5786  IFS=$as_save_IFS
5787  test -z "$as_dir" && as_dir=.
5788    for ac_exec_ext in '' $ac_executable_extensions; do
5789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5790    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792    break 2
5793  fi
5794done
5795  done
5796IFS=$as_save_IFS
5797
5798fi
5799fi
5800AR=$ac_cv_prog_AR
5801if test -n "$AR"; then
5802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5803$as_echo "$AR" >&6; }
5804else
5805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806$as_echo "no" >&6; }
5807fi
5808
5809
5810    test -n "$AR" && break
5811  done
5812fi
5813if test -z "$AR"; then
5814  ac_ct_AR=$AR
5815  for ac_prog in ar
5816do
5817  # Extract the first word of "$ac_prog", so it can be a program name with args.
5818set dummy $ac_prog; ac_word=$2
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820$as_echo_n "checking for $ac_word... " >&6; }
5821if ${ac_cv_prog_ac_ct_AR+:} false; then :
5822  $as_echo_n "(cached) " >&6
5823else
5824  if test -n "$ac_ct_AR"; then
5825  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5826else
5827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH
5829do
5830  IFS=$as_save_IFS
5831  test -z "$as_dir" && as_dir=.
5832    for ac_exec_ext in '' $ac_executable_extensions; do
5833  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834    ac_cv_prog_ac_ct_AR="$ac_prog"
5835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836    break 2
5837  fi
5838done
5839  done
5840IFS=$as_save_IFS
5841
5842fi
5843fi
5844ac_ct_AR=$ac_cv_prog_ac_ct_AR
5845if test -n "$ac_ct_AR"; then
5846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5847$as_echo "$ac_ct_AR" >&6; }
5848else
5849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850$as_echo "no" >&6; }
5851fi
5852
5853
5854  test -n "$ac_ct_AR" && break
5855done
5856
5857  if test "x$ac_ct_AR" = x; then
5858    AR="false"
5859  else
5860    case $cross_compiling:$ac_tool_warned in
5861yes:)
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5864ac_tool_warned=yes ;;
5865esac
5866    AR=$ac_ct_AR
5867  fi
5868fi
5869
5870: ${AR=ar}
5871: ${AR_FLAGS=cru}
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5884$as_echo_n "checking for archiver @FILE support... " >&6; }
5885if ${lt_cv_ar_at_file+:} false; then :
5886  $as_echo_n "(cached) " >&6
5887else
5888  lt_cv_ar_at_file=no
5889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890/* end confdefs.h.  */
5891
5892int
5893main ()
5894{
5895
5896  ;
5897  return 0;
5898}
5899_ACEOF
5900if ac_fn_c_try_compile "$LINENO"; then :
5901  echo conftest.$ac_objext > conftest.lst
5902      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5903      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5904  (eval $lt_ar_try) 2>&5
5905  ac_status=$?
5906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5907  test $ac_status = 0; }
5908      if test 0 -eq "$ac_status"; then
5909	# Ensure the archiver fails upon bogus file names.
5910	rm -f conftest.$ac_objext libconftest.a
5911	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5912  (eval $lt_ar_try) 2>&5
5913  ac_status=$?
5914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5915  test $ac_status = 0; }
5916	if test 0 -ne "$ac_status"; then
5917          lt_cv_ar_at_file=@
5918        fi
5919      fi
5920      rm -f conftest.* libconftest.a
5921
5922fi
5923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924
5925fi
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5927$as_echo "$lt_cv_ar_at_file" >&6; }
5928
5929if test no = "$lt_cv_ar_at_file"; then
5930  archiver_list_spec=
5931else
5932  archiver_list_spec=$lt_cv_ar_at_file
5933fi
5934
5935
5936
5937
5938
5939
5940
5941if test -n "$ac_tool_prefix"; then
5942  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5943set dummy ${ac_tool_prefix}strip; ac_word=$2
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945$as_echo_n "checking for $ac_word... " >&6; }
5946if ${ac_cv_prog_STRIP+:} false; then :
5947  $as_echo_n "(cached) " >&6
5948else
5949  if test -n "$STRIP"; then
5950  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5951else
5952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953for as_dir in $PATH
5954do
5955  IFS=$as_save_IFS
5956  test -z "$as_dir" && as_dir=.
5957    for ac_exec_ext in '' $ac_executable_extensions; do
5958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961    break 2
5962  fi
5963done
5964  done
5965IFS=$as_save_IFS
5966
5967fi
5968fi
5969STRIP=$ac_cv_prog_STRIP
5970if test -n "$STRIP"; then
5971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5972$as_echo "$STRIP" >&6; }
5973else
5974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975$as_echo "no" >&6; }
5976fi
5977
5978
5979fi
5980if test -z "$ac_cv_prog_STRIP"; then
5981  ac_ct_STRIP=$STRIP
5982  # Extract the first word of "strip", so it can be a program name with args.
5983set dummy strip; ac_word=$2
5984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985$as_echo_n "checking for $ac_word... " >&6; }
5986if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5987  $as_echo_n "(cached) " >&6
5988else
5989  if test -n "$ac_ct_STRIP"; then
5990  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5991else
5992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993for as_dir in $PATH
5994do
5995  IFS=$as_save_IFS
5996  test -z "$as_dir" && as_dir=.
5997    for ac_exec_ext in '' $ac_executable_extensions; do
5998  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999    ac_cv_prog_ac_ct_STRIP="strip"
6000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001    break 2
6002  fi
6003done
6004  done
6005IFS=$as_save_IFS
6006
6007fi
6008fi
6009ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6010if test -n "$ac_ct_STRIP"; then
6011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6012$as_echo "$ac_ct_STRIP" >&6; }
6013else
6014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015$as_echo "no" >&6; }
6016fi
6017
6018  if test "x$ac_ct_STRIP" = x; then
6019    STRIP=":"
6020  else
6021    case $cross_compiling:$ac_tool_warned in
6022yes:)
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6025ac_tool_warned=yes ;;
6026esac
6027    STRIP=$ac_ct_STRIP
6028  fi
6029else
6030  STRIP="$ac_cv_prog_STRIP"
6031fi
6032
6033test -z "$STRIP" && STRIP=:
6034
6035
6036
6037
6038
6039
6040if test -n "$ac_tool_prefix"; then
6041  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6042set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044$as_echo_n "checking for $ac_word... " >&6; }
6045if ${ac_cv_prog_RANLIB+:} false; then :
6046  $as_echo_n "(cached) " >&6
6047else
6048  if test -n "$RANLIB"; then
6049  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6050else
6051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052for as_dir in $PATH
6053do
6054  IFS=$as_save_IFS
6055  test -z "$as_dir" && as_dir=.
6056    for ac_exec_ext in '' $ac_executable_extensions; do
6057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060    break 2
6061  fi
6062done
6063  done
6064IFS=$as_save_IFS
6065
6066fi
6067fi
6068RANLIB=$ac_cv_prog_RANLIB
6069if test -n "$RANLIB"; then
6070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6071$as_echo "$RANLIB" >&6; }
6072else
6073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074$as_echo "no" >&6; }
6075fi
6076
6077
6078fi
6079if test -z "$ac_cv_prog_RANLIB"; then
6080  ac_ct_RANLIB=$RANLIB
6081  # Extract the first word of "ranlib", so it can be a program name with args.
6082set dummy ranlib; ac_word=$2
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084$as_echo_n "checking for $ac_word... " >&6; }
6085if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6086  $as_echo_n "(cached) " >&6
6087else
6088  if test -n "$ac_ct_RANLIB"; then
6089  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6090else
6091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092for as_dir in $PATH
6093do
6094  IFS=$as_save_IFS
6095  test -z "$as_dir" && as_dir=.
6096    for ac_exec_ext in '' $ac_executable_extensions; do
6097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098    ac_cv_prog_ac_ct_RANLIB="ranlib"
6099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100    break 2
6101  fi
6102done
6103  done
6104IFS=$as_save_IFS
6105
6106fi
6107fi
6108ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6109if test -n "$ac_ct_RANLIB"; then
6110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6111$as_echo "$ac_ct_RANLIB" >&6; }
6112else
6113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114$as_echo "no" >&6; }
6115fi
6116
6117  if test "x$ac_ct_RANLIB" = x; then
6118    RANLIB=":"
6119  else
6120    case $cross_compiling:$ac_tool_warned in
6121yes:)
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124ac_tool_warned=yes ;;
6125esac
6126    RANLIB=$ac_ct_RANLIB
6127  fi
6128else
6129  RANLIB="$ac_cv_prog_RANLIB"
6130fi
6131
6132test -z "$RANLIB" && RANLIB=:
6133
6134
6135
6136
6137
6138
6139# Determine commands to create old-style static archives.
6140old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6141old_postinstall_cmds='chmod 644 $oldlib'
6142old_postuninstall_cmds=
6143
6144if test -n "$RANLIB"; then
6145  case $host_os in
6146  bitrig* | openbsd*)
6147    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6148    ;;
6149  *)
6150    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6151    ;;
6152  esac
6153  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6154fi
6155
6156case $host_os in
6157  darwin*)
6158    lock_old_archive_extraction=yes ;;
6159  *)
6160    lock_old_archive_extraction=no ;;
6161esac
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201# If no C compiler was specified, use CC.
6202LTCC=${LTCC-"$CC"}
6203
6204# If no C compiler flags were specified, use CFLAGS.
6205LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6206
6207# Allow CC to be a program name with arguments.
6208compiler=$CC
6209
6210
6211# Check for command to grab the raw symbol name followed by C symbol from nm.
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6213$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6214if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6215  $as_echo_n "(cached) " >&6
6216else
6217
6218# These are sane defaults that work on at least a few old systems.
6219# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6220
6221# Character class describing NM global symbol codes.
6222symcode='[BCDEGRST]'
6223
6224# Regexp to match symbols that can be accessed directly from C.
6225sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6226
6227# Define system-specific variables.
6228case $host_os in
6229aix*)
6230  symcode='[BCDT]'
6231  ;;
6232cygwin* | mingw* | pw32* | cegcc*)
6233  symcode='[ABCDGISTW]'
6234  ;;
6235hpux*)
6236  if test ia64 = "$host_cpu"; then
6237    symcode='[ABCDEGRST]'
6238  fi
6239  ;;
6240irix* | nonstopux*)
6241  symcode='[BCDEGRST]'
6242  ;;
6243osf*)
6244  symcode='[BCDEGQRST]'
6245  ;;
6246solaris*)
6247  symcode='[BDRT]'
6248  ;;
6249sco3.2v5*)
6250  symcode='[DT]'
6251  ;;
6252sysv4.2uw2*)
6253  symcode='[DT]'
6254  ;;
6255sysv5* | sco5v6* | unixware* | OpenUNIX*)
6256  symcode='[ABDT]'
6257  ;;
6258sysv4)
6259  symcode='[DFNSTU]'
6260  ;;
6261esac
6262
6263# If we're using GNU nm, then use its standard symbol codes.
6264case `$NM -V 2>&1` in
6265*GNU* | *'with BFD'*)
6266  symcode='[ABCDGIRSTW]' ;;
6267esac
6268
6269if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6270  # Gets list of data symbols to import.
6271  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6272  # Adjust the below global symbol transforms to fixup imported variables.
6273  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6274  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6275  lt_c_name_lib_hook="\
6276  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6277  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6278else
6279  # Disable hooks by default.
6280  lt_cv_sys_global_symbol_to_import=
6281  lt_cdecl_hook=
6282  lt_c_name_hook=
6283  lt_c_name_lib_hook=
6284fi
6285
6286# Transform an extracted symbol line into a proper C declaration.
6287# Some systems (esp. on ia64) link data and code symbols differently,
6288# so use this general approach.
6289lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6290$lt_cdecl_hook\
6291" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6292" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6293
6294# Transform an extracted symbol line into symbol name and symbol address
6295lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6296$lt_c_name_hook\
6297" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6298" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6299
6300# Transform an extracted symbol line into symbol name with lib prefix and
6301# symbol address.
6302lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6303$lt_c_name_lib_hook\
6304" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6305" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6306" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6307
6308# Handle CRLF in mingw tool chain
6309opt_cr=
6310case $build_os in
6311mingw*)
6312  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6313  ;;
6314esac
6315
6316# Try without a prefix underscore, then with it.
6317for ac_symprfx in "" "_"; do
6318
6319  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6320  symxfrm="\\1 $ac_symprfx\\2 \\2"
6321
6322  # Write the raw and C identifiers.
6323  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6324    # Fake it for dumpbin and say T for any non-static function,
6325    # D for any global variable and I for any imported variable.
6326    # Also find C++ and __fastcall symbols from MSVC++,
6327    # which start with @ or ?.
6328    lt_cv_sys_global_symbol_pipe="$AWK '"\
6329"     {last_section=section; section=\$ 3};"\
6330"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6331"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6332"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6333"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6334"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6335"     \$ 0!~/External *\|/{next};"\
6336"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6337"     {if(hide[section]) next};"\
6338"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6339"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6340"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6341"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6342"     ' prfx=^$ac_symprfx"
6343  else
6344    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6345  fi
6346  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6347
6348  # Check to see that the pipe works correctly.
6349  pipe_works=no
6350
6351  rm -f conftest*
6352  cat > conftest.$ac_ext <<_LT_EOF
6353#ifdef __cplusplus
6354extern "C" {
6355#endif
6356char nm_test_var;
6357void nm_test_func(void);
6358void nm_test_func(void){}
6359#ifdef __cplusplus
6360}
6361#endif
6362int main(){nm_test_var='a';nm_test_func();return(0);}
6363_LT_EOF
6364
6365  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6366  (eval $ac_compile) 2>&5
6367  ac_status=$?
6368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6369  test $ac_status = 0; }; then
6370    # Now try to grab the symbols.
6371    nlist=conftest.nm
6372    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6373  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6374  ac_status=$?
6375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6376  test $ac_status = 0; } && test -s "$nlist"; then
6377      # Try sorting and uniquifying the output.
6378      if sort "$nlist" | uniq > "$nlist"T; then
6379	mv -f "$nlist"T "$nlist"
6380      else
6381	rm -f "$nlist"T
6382      fi
6383
6384      # Make sure that we snagged all the symbols we need.
6385      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6386	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6387	  cat <<_LT_EOF > conftest.$ac_ext
6388/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6389#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6390/* DATA imports from DLLs on WIN32 can't be const, because runtime
6391   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6392# define LT_DLSYM_CONST
6393#elif defined __osf__
6394/* This system does not cope well with relocations in const data.  */
6395# define LT_DLSYM_CONST
6396#else
6397# define LT_DLSYM_CONST const
6398#endif
6399
6400#ifdef __cplusplus
6401extern "C" {
6402#endif
6403
6404_LT_EOF
6405	  # Now generate the symbol file.
6406	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6407
6408	  cat <<_LT_EOF >> conftest.$ac_ext
6409
6410/* The mapping between symbol names and symbols.  */
6411LT_DLSYM_CONST struct {
6412  const char *name;
6413  void       *address;
6414}
6415lt__PROGRAM__LTX_preloaded_symbols[] =
6416{
6417  { "@PROGRAM@", (void *) 0 },
6418_LT_EOF
6419	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6420	  cat <<\_LT_EOF >> conftest.$ac_ext
6421  {0, (void *) 0}
6422};
6423
6424/* This works around a problem in FreeBSD linker */
6425#ifdef FREEBSD_WORKAROUND
6426static const void *lt_preloaded_setup() {
6427  return lt__PROGRAM__LTX_preloaded_symbols;
6428}
6429#endif
6430
6431#ifdef __cplusplus
6432}
6433#endif
6434_LT_EOF
6435	  # Now try linking the two files.
6436	  mv conftest.$ac_objext conftstm.$ac_objext
6437	  lt_globsym_save_LIBS=$LIBS
6438	  lt_globsym_save_CFLAGS=$CFLAGS
6439	  LIBS=conftstm.$ac_objext
6440	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6441	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6442  (eval $ac_link) 2>&5
6443  ac_status=$?
6444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6445  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6446	    pipe_works=yes
6447	  fi
6448	  LIBS=$lt_globsym_save_LIBS
6449	  CFLAGS=$lt_globsym_save_CFLAGS
6450	else
6451	  echo "cannot find nm_test_func in $nlist" >&5
6452	fi
6453      else
6454	echo "cannot find nm_test_var in $nlist" >&5
6455      fi
6456    else
6457      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6458    fi
6459  else
6460    echo "$progname: failed program was:" >&5
6461    cat conftest.$ac_ext >&5
6462  fi
6463  rm -rf conftest* conftst*
6464
6465  # Do not use the global_symbol_pipe unless it works.
6466  if test yes = "$pipe_works"; then
6467    break
6468  else
6469    lt_cv_sys_global_symbol_pipe=
6470  fi
6471done
6472
6473fi
6474
6475if test -z "$lt_cv_sys_global_symbol_pipe"; then
6476  lt_cv_sys_global_symbol_to_cdecl=
6477fi
6478if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6480$as_echo "failed" >&6; }
6481else
6482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6483$as_echo "ok" >&6; }
6484fi
6485
6486# Response file support.
6487if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6488  nm_file_list_spec='@'
6489elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6490  nm_file_list_spec='@'
6491fi
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6530$as_echo_n "checking for sysroot... " >&6; }
6531
6532# Check whether --with-sysroot was given.
6533if test "${with_sysroot+set}" = set; then :
6534  withval=$with_sysroot;
6535else
6536  with_sysroot=no
6537fi
6538
6539
6540lt_sysroot=
6541case $with_sysroot in #(
6542 yes)
6543   if test yes = "$GCC"; then
6544     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6545   fi
6546   ;; #(
6547 /*)
6548   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6549   ;; #(
6550 no|'')
6551   ;; #(
6552 *)
6553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6554$as_echo "$with_sysroot" >&6; }
6555   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6556   ;;
6557esac
6558
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6560$as_echo "${lt_sysroot:-no}" >&6; }
6561
6562
6563
6564
6565
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6567$as_echo_n "checking for a working dd... " >&6; }
6568if ${ac_cv_path_lt_DD+:} false; then :
6569  $as_echo_n "(cached) " >&6
6570else
6571  printf 0123456789abcdef0123456789abcdef >conftest.i
6572cat conftest.i conftest.i >conftest2.i
6573: ${lt_DD:=$DD}
6574if test -z "$lt_DD"; then
6575  ac_path_lt_DD_found=false
6576  # Loop through the user's path and test for each of PROGNAME-LIST
6577  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578for as_dir in $PATH
6579do
6580  IFS=$as_save_IFS
6581  test -z "$as_dir" && as_dir=.
6582    for ac_prog in dd; do
6583    for ac_exec_ext in '' $ac_executable_extensions; do
6584      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6585      as_fn_executable_p "$ac_path_lt_DD" || continue
6586if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6587  cmp -s conftest.i conftest.out \
6588  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6589fi
6590      $ac_path_lt_DD_found && break 3
6591    done
6592  done
6593  done
6594IFS=$as_save_IFS
6595  if test -z "$ac_cv_path_lt_DD"; then
6596    :
6597  fi
6598else
6599  ac_cv_path_lt_DD=$lt_DD
6600fi
6601
6602rm -f conftest.i conftest2.i conftest.out
6603fi
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6605$as_echo "$ac_cv_path_lt_DD" >&6; }
6606
6607
6608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6609$as_echo_n "checking how to truncate binary pipes... " >&6; }
6610if ${lt_cv_truncate_bin+:} false; then :
6611  $as_echo_n "(cached) " >&6
6612else
6613  printf 0123456789abcdef0123456789abcdef >conftest.i
6614cat conftest.i conftest.i >conftest2.i
6615lt_cv_truncate_bin=
6616if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6617  cmp -s conftest.i conftest.out \
6618  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6619fi
6620rm -f conftest.i conftest2.i conftest.out
6621test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6622fi
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6624$as_echo "$lt_cv_truncate_bin" >&6; }
6625
6626
6627
6628
6629
6630
6631
6632# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6633func_cc_basename ()
6634{
6635    for cc_temp in $*""; do
6636      case $cc_temp in
6637        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6638        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6639        \-*) ;;
6640        *) break;;
6641      esac
6642    done
6643    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6644}
6645
6646# Check whether --enable-libtool-lock was given.
6647if test "${enable_libtool_lock+set}" = set; then :
6648  enableval=$enable_libtool_lock;
6649fi
6650
6651test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6652
6653# Some flags need to be propagated to the compiler or linker for good
6654# libtool support.
6655case $host in
6656ia64-*-hpux*)
6657  # Find out what ABI is being produced by ac_compile, and set mode
6658  # options accordingly.
6659  echo 'int i;' > conftest.$ac_ext
6660  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6661  (eval $ac_compile) 2>&5
6662  ac_status=$?
6663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6664  test $ac_status = 0; }; then
6665    case `/usr/bin/file conftest.$ac_objext` in
6666      *ELF-32*)
6667	HPUX_IA64_MODE=32
6668	;;
6669      *ELF-64*)
6670	HPUX_IA64_MODE=64
6671	;;
6672    esac
6673  fi
6674  rm -rf conftest*
6675  ;;
6676*-*-irix6*)
6677  # Find out what ABI is being produced by ac_compile, and set linker
6678  # options accordingly.
6679  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6680  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6681  (eval $ac_compile) 2>&5
6682  ac_status=$?
6683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6684  test $ac_status = 0; }; then
6685    if test yes = "$lt_cv_prog_gnu_ld"; then
6686      case `/usr/bin/file conftest.$ac_objext` in
6687	*32-bit*)
6688	  LD="${LD-ld} -melf32bsmip"
6689	  ;;
6690	*N32*)
6691	  LD="${LD-ld} -melf32bmipn32"
6692	  ;;
6693	*64-bit*)
6694	  LD="${LD-ld} -melf64bmip"
6695	;;
6696      esac
6697    else
6698      case `/usr/bin/file conftest.$ac_objext` in
6699	*32-bit*)
6700	  LD="${LD-ld} -32"
6701	  ;;
6702	*N32*)
6703	  LD="${LD-ld} -n32"
6704	  ;;
6705	*64-bit*)
6706	  LD="${LD-ld} -64"
6707	  ;;
6708      esac
6709    fi
6710  fi
6711  rm -rf conftest*
6712  ;;
6713
6714mips64*-*linux*)
6715  # Find out what ABI is being produced by ac_compile, and set linker
6716  # options accordingly.
6717  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6718  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6719  (eval $ac_compile) 2>&5
6720  ac_status=$?
6721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6722  test $ac_status = 0; }; then
6723    emul=elf
6724    case `/usr/bin/file conftest.$ac_objext` in
6725      *32-bit*)
6726	emul="${emul}32"
6727	;;
6728      *64-bit*)
6729	emul="${emul}64"
6730	;;
6731    esac
6732    case `/usr/bin/file conftest.$ac_objext` in
6733      *MSB*)
6734	emul="${emul}btsmip"
6735	;;
6736      *LSB*)
6737	emul="${emul}ltsmip"
6738	;;
6739    esac
6740    case `/usr/bin/file conftest.$ac_objext` in
6741      *N32*)
6742	emul="${emul}n32"
6743	;;
6744    esac
6745    LD="${LD-ld} -m $emul"
6746  fi
6747  rm -rf conftest*
6748  ;;
6749
6750x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6751s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6752  # Find out what ABI is being produced by ac_compile, and set linker
6753  # options accordingly.  Note that the listed cases only cover the
6754  # situations where additional linker options are needed (such as when
6755  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6756  # vice versa); the common cases where no linker options are needed do
6757  # not appear in the list.
6758  echo 'int i;' > conftest.$ac_ext
6759  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6760  (eval $ac_compile) 2>&5
6761  ac_status=$?
6762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6763  test $ac_status = 0; }; then
6764    case `/usr/bin/file conftest.o` in
6765      *32-bit*)
6766	case $host in
6767	  x86_64-*kfreebsd*-gnu)
6768	    LD="${LD-ld} -m elf_i386_fbsd"
6769	    ;;
6770	  x86_64-*linux*)
6771	    case `/usr/bin/file conftest.o` in
6772	      *x86-64*)
6773		LD="${LD-ld} -m elf32_x86_64"
6774		;;
6775	      *)
6776		LD="${LD-ld} -m elf_i386"
6777		;;
6778	    esac
6779	    ;;
6780	  powerpc64le-*linux*)
6781	    LD="${LD-ld} -m elf32lppclinux"
6782	    ;;
6783	  powerpc64-*linux*)
6784	    LD="${LD-ld} -m elf32ppclinux"
6785	    ;;
6786	  s390x-*linux*)
6787	    LD="${LD-ld} -m elf_s390"
6788	    ;;
6789	  sparc64-*linux*)
6790	    LD="${LD-ld} -m elf32_sparc"
6791	    ;;
6792	esac
6793	;;
6794      *64-bit*)
6795	case $host in
6796	  x86_64-*kfreebsd*-gnu)
6797	    LD="${LD-ld} -m elf_x86_64_fbsd"
6798	    ;;
6799	  x86_64-*linux*)
6800	    LD="${LD-ld} -m elf_x86_64"
6801	    ;;
6802	  powerpcle-*linux*)
6803	    LD="${LD-ld} -m elf64lppc"
6804	    ;;
6805	  powerpc-*linux*)
6806	    LD="${LD-ld} -m elf64ppc"
6807	    ;;
6808	  s390*-*linux*|s390*-*tpf*)
6809	    LD="${LD-ld} -m elf64_s390"
6810	    ;;
6811	  sparc*-*linux*)
6812	    LD="${LD-ld} -m elf64_sparc"
6813	    ;;
6814	esac
6815	;;
6816    esac
6817  fi
6818  rm -rf conftest*
6819  ;;
6820
6821*-*-sco3.2v5*)
6822  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6823  SAVE_CFLAGS=$CFLAGS
6824  CFLAGS="$CFLAGS -belf"
6825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6826$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6827if ${lt_cv_cc_needs_belf+:} false; then :
6828  $as_echo_n "(cached) " >&6
6829else
6830  ac_ext=c
6831ac_cpp='$CPP $CPPFLAGS'
6832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6834ac_compiler_gnu=$ac_cv_c_compiler_gnu
6835
6836     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837/* end confdefs.h.  */
6838
6839int
6840main ()
6841{
6842
6843  ;
6844  return 0;
6845}
6846_ACEOF
6847if ac_fn_c_try_link "$LINENO"; then :
6848  lt_cv_cc_needs_belf=yes
6849else
6850  lt_cv_cc_needs_belf=no
6851fi
6852rm -f core conftest.err conftest.$ac_objext \
6853    conftest$ac_exeext conftest.$ac_ext
6854     ac_ext=c
6855ac_cpp='$CPP $CPPFLAGS'
6856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6858ac_compiler_gnu=$ac_cv_c_compiler_gnu
6859
6860fi
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6862$as_echo "$lt_cv_cc_needs_belf" >&6; }
6863  if test yes != "$lt_cv_cc_needs_belf"; then
6864    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6865    CFLAGS=$SAVE_CFLAGS
6866  fi
6867  ;;
6868*-*solaris*)
6869  # Find out what ABI is being produced by ac_compile, and set linker
6870  # options accordingly.
6871  echo 'int i;' > conftest.$ac_ext
6872  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6873  (eval $ac_compile) 2>&5
6874  ac_status=$?
6875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6876  test $ac_status = 0; }; then
6877    case `/usr/bin/file conftest.o` in
6878    *64-bit*)
6879      case $lt_cv_prog_gnu_ld in
6880      yes*)
6881        case $host in
6882        i?86-*-solaris*|x86_64-*-solaris*)
6883          LD="${LD-ld} -m elf_x86_64"
6884          ;;
6885        sparc*-*-solaris*)
6886          LD="${LD-ld} -m elf64_sparc"
6887          ;;
6888        esac
6889        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6890        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6891          LD=${LD-ld}_sol2
6892        fi
6893        ;;
6894      *)
6895	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6896	  LD="${LD-ld} -64"
6897	fi
6898	;;
6899      esac
6900      ;;
6901    esac
6902  fi
6903  rm -rf conftest*
6904  ;;
6905esac
6906
6907need_locks=$enable_libtool_lock
6908
6909if test -n "$ac_tool_prefix"; then
6910  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6911set dummy ${ac_tool_prefix}mt; ac_word=$2
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913$as_echo_n "checking for $ac_word... " >&6; }
6914if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6915  $as_echo_n "(cached) " >&6
6916else
6917  if test -n "$MANIFEST_TOOL"; then
6918  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6919else
6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923  IFS=$as_save_IFS
6924  test -z "$as_dir" && as_dir=.
6925    for ac_exec_ext in '' $ac_executable_extensions; do
6926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6927    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929    break 2
6930  fi
6931done
6932  done
6933IFS=$as_save_IFS
6934
6935fi
6936fi
6937MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6938if test -n "$MANIFEST_TOOL"; then
6939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6940$as_echo "$MANIFEST_TOOL" >&6; }
6941else
6942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943$as_echo "no" >&6; }
6944fi
6945
6946
6947fi
6948if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6949  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6950  # Extract the first word of "mt", so it can be a program name with args.
6951set dummy mt; ac_word=$2
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953$as_echo_n "checking for $ac_word... " >&6; }
6954if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6955  $as_echo_n "(cached) " >&6
6956else
6957  if test -n "$ac_ct_MANIFEST_TOOL"; then
6958  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6959else
6960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961for as_dir in $PATH
6962do
6963  IFS=$as_save_IFS
6964  test -z "$as_dir" && as_dir=.
6965    for ac_exec_ext in '' $ac_executable_extensions; do
6966  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969    break 2
6970  fi
6971done
6972  done
6973IFS=$as_save_IFS
6974
6975fi
6976fi
6977ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6978if test -n "$ac_ct_MANIFEST_TOOL"; then
6979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6980$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6981else
6982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983$as_echo "no" >&6; }
6984fi
6985
6986  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6987    MANIFEST_TOOL=":"
6988  else
6989    case $cross_compiling:$ac_tool_warned in
6990yes:)
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6993ac_tool_warned=yes ;;
6994esac
6995    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6996  fi
6997else
6998  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6999fi
7000
7001test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7003$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7004if ${lt_cv_path_mainfest_tool+:} false; then :
7005  $as_echo_n "(cached) " >&6
7006else
7007  lt_cv_path_mainfest_tool=no
7008  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7009  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7010  cat conftest.err >&5
7011  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7012    lt_cv_path_mainfest_tool=yes
7013  fi
7014  rm -f conftest*
7015fi
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7017$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7018if test yes != "$lt_cv_path_mainfest_tool"; then
7019  MANIFEST_TOOL=:
7020fi
7021
7022
7023
7024
7025
7026
7027  case $host_os in
7028    rhapsody* | darwin*)
7029    if test -n "$ac_tool_prefix"; then
7030  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7031set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033$as_echo_n "checking for $ac_word... " >&6; }
7034if ${ac_cv_prog_DSYMUTIL+:} false; then :
7035  $as_echo_n "(cached) " >&6
7036else
7037  if test -n "$DSYMUTIL"; then
7038  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7039else
7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043  IFS=$as_save_IFS
7044  test -z "$as_dir" && as_dir=.
7045    for ac_exec_ext in '' $ac_executable_extensions; do
7046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049    break 2
7050  fi
7051done
7052  done
7053IFS=$as_save_IFS
7054
7055fi
7056fi
7057DSYMUTIL=$ac_cv_prog_DSYMUTIL
7058if test -n "$DSYMUTIL"; then
7059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7060$as_echo "$DSYMUTIL" >&6; }
7061else
7062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063$as_echo "no" >&6; }
7064fi
7065
7066
7067fi
7068if test -z "$ac_cv_prog_DSYMUTIL"; then
7069  ac_ct_DSYMUTIL=$DSYMUTIL
7070  # Extract the first word of "dsymutil", so it can be a program name with args.
7071set dummy dsymutil; ac_word=$2
7072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073$as_echo_n "checking for $ac_word... " >&6; }
7074if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7075  $as_echo_n "(cached) " >&6
7076else
7077  if test -n "$ac_ct_DSYMUTIL"; then
7078  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7079else
7080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081for as_dir in $PATH
7082do
7083  IFS=$as_save_IFS
7084  test -z "$as_dir" && as_dir=.
7085    for ac_exec_ext in '' $ac_executable_extensions; do
7086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089    break 2
7090  fi
7091done
7092  done
7093IFS=$as_save_IFS
7094
7095fi
7096fi
7097ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7098if test -n "$ac_ct_DSYMUTIL"; then
7099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7100$as_echo "$ac_ct_DSYMUTIL" >&6; }
7101else
7102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103$as_echo "no" >&6; }
7104fi
7105
7106  if test "x$ac_ct_DSYMUTIL" = x; then
7107    DSYMUTIL=":"
7108  else
7109    case $cross_compiling:$ac_tool_warned in
7110yes:)
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7113ac_tool_warned=yes ;;
7114esac
7115    DSYMUTIL=$ac_ct_DSYMUTIL
7116  fi
7117else
7118  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7119fi
7120
7121    if test -n "$ac_tool_prefix"; then
7122  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7123set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125$as_echo_n "checking for $ac_word... " >&6; }
7126if ${ac_cv_prog_NMEDIT+:} false; then :
7127  $as_echo_n "(cached) " >&6
7128else
7129  if test -n "$NMEDIT"; then
7130  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7131else
7132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135  IFS=$as_save_IFS
7136  test -z "$as_dir" && as_dir=.
7137    for ac_exec_ext in '' $ac_executable_extensions; do
7138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141    break 2
7142  fi
7143done
7144  done
7145IFS=$as_save_IFS
7146
7147fi
7148fi
7149NMEDIT=$ac_cv_prog_NMEDIT
7150if test -n "$NMEDIT"; then
7151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7152$as_echo "$NMEDIT" >&6; }
7153else
7154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155$as_echo "no" >&6; }
7156fi
7157
7158
7159fi
7160if test -z "$ac_cv_prog_NMEDIT"; then
7161  ac_ct_NMEDIT=$NMEDIT
7162  # Extract the first word of "nmedit", so it can be a program name with args.
7163set dummy nmedit; ac_word=$2
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165$as_echo_n "checking for $ac_word... " >&6; }
7166if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7167  $as_echo_n "(cached) " >&6
7168else
7169  if test -n "$ac_ct_NMEDIT"; then
7170  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7171else
7172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH
7174do
7175  IFS=$as_save_IFS
7176  test -z "$as_dir" && as_dir=.
7177    for ac_exec_ext in '' $ac_executable_extensions; do
7178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181    break 2
7182  fi
7183done
7184  done
7185IFS=$as_save_IFS
7186
7187fi
7188fi
7189ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7190if test -n "$ac_ct_NMEDIT"; then
7191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7192$as_echo "$ac_ct_NMEDIT" >&6; }
7193else
7194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195$as_echo "no" >&6; }
7196fi
7197
7198  if test "x$ac_ct_NMEDIT" = x; then
7199    NMEDIT=":"
7200  else
7201    case $cross_compiling:$ac_tool_warned in
7202yes:)
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7205ac_tool_warned=yes ;;
7206esac
7207    NMEDIT=$ac_ct_NMEDIT
7208  fi
7209else
7210  NMEDIT="$ac_cv_prog_NMEDIT"
7211fi
7212
7213    if test -n "$ac_tool_prefix"; then
7214  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7215set dummy ${ac_tool_prefix}lipo; ac_word=$2
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217$as_echo_n "checking for $ac_word... " >&6; }
7218if ${ac_cv_prog_LIPO+:} false; then :
7219  $as_echo_n "(cached) " >&6
7220else
7221  if test -n "$LIPO"; then
7222  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7223else
7224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225for as_dir in $PATH
7226do
7227  IFS=$as_save_IFS
7228  test -z "$as_dir" && as_dir=.
7229    for ac_exec_ext in '' $ac_executable_extensions; do
7230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233    break 2
7234  fi
7235done
7236  done
7237IFS=$as_save_IFS
7238
7239fi
7240fi
7241LIPO=$ac_cv_prog_LIPO
7242if test -n "$LIPO"; then
7243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7244$as_echo "$LIPO" >&6; }
7245else
7246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247$as_echo "no" >&6; }
7248fi
7249
7250
7251fi
7252if test -z "$ac_cv_prog_LIPO"; then
7253  ac_ct_LIPO=$LIPO
7254  # Extract the first word of "lipo", so it can be a program name with args.
7255set dummy lipo; ac_word=$2
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257$as_echo_n "checking for $ac_word... " >&6; }
7258if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7259  $as_echo_n "(cached) " >&6
7260else
7261  if test -n "$ac_ct_LIPO"; then
7262  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7263else
7264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265for as_dir in $PATH
7266do
7267  IFS=$as_save_IFS
7268  test -z "$as_dir" && as_dir=.
7269    for ac_exec_ext in '' $ac_executable_extensions; do
7270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7271    ac_cv_prog_ac_ct_LIPO="lipo"
7272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273    break 2
7274  fi
7275done
7276  done
7277IFS=$as_save_IFS
7278
7279fi
7280fi
7281ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7282if test -n "$ac_ct_LIPO"; then
7283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7284$as_echo "$ac_ct_LIPO" >&6; }
7285else
7286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287$as_echo "no" >&6; }
7288fi
7289
7290  if test "x$ac_ct_LIPO" = x; then
7291    LIPO=":"
7292  else
7293    case $cross_compiling:$ac_tool_warned in
7294yes:)
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7297ac_tool_warned=yes ;;
7298esac
7299    LIPO=$ac_ct_LIPO
7300  fi
7301else
7302  LIPO="$ac_cv_prog_LIPO"
7303fi
7304
7305    if test -n "$ac_tool_prefix"; then
7306  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7307set dummy ${ac_tool_prefix}otool; ac_word=$2
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309$as_echo_n "checking for $ac_word... " >&6; }
7310if ${ac_cv_prog_OTOOL+:} false; then :
7311  $as_echo_n "(cached) " >&6
7312else
7313  if test -n "$OTOOL"; then
7314  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7315else
7316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in $PATH
7318do
7319  IFS=$as_save_IFS
7320  test -z "$as_dir" && as_dir=.
7321    for ac_exec_ext in '' $ac_executable_extensions; do
7322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325    break 2
7326  fi
7327done
7328  done
7329IFS=$as_save_IFS
7330
7331fi
7332fi
7333OTOOL=$ac_cv_prog_OTOOL
7334if test -n "$OTOOL"; then
7335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7336$as_echo "$OTOOL" >&6; }
7337else
7338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339$as_echo "no" >&6; }
7340fi
7341
7342
7343fi
7344if test -z "$ac_cv_prog_OTOOL"; then
7345  ac_ct_OTOOL=$OTOOL
7346  # Extract the first word of "otool", so it can be a program name with args.
7347set dummy otool; ac_word=$2
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349$as_echo_n "checking for $ac_word... " >&6; }
7350if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7351  $as_echo_n "(cached) " >&6
7352else
7353  if test -n "$ac_ct_OTOOL"; then
7354  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7355else
7356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357for as_dir in $PATH
7358do
7359  IFS=$as_save_IFS
7360  test -z "$as_dir" && as_dir=.
7361    for ac_exec_ext in '' $ac_executable_extensions; do
7362  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363    ac_cv_prog_ac_ct_OTOOL="otool"
7364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365    break 2
7366  fi
7367done
7368  done
7369IFS=$as_save_IFS
7370
7371fi
7372fi
7373ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7374if test -n "$ac_ct_OTOOL"; then
7375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7376$as_echo "$ac_ct_OTOOL" >&6; }
7377else
7378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379$as_echo "no" >&6; }
7380fi
7381
7382  if test "x$ac_ct_OTOOL" = x; then
7383    OTOOL=":"
7384  else
7385    case $cross_compiling:$ac_tool_warned in
7386yes:)
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7389ac_tool_warned=yes ;;
7390esac
7391    OTOOL=$ac_ct_OTOOL
7392  fi
7393else
7394  OTOOL="$ac_cv_prog_OTOOL"
7395fi
7396
7397    if test -n "$ac_tool_prefix"; then
7398  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7399set dummy ${ac_tool_prefix}otool64; ac_word=$2
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7401$as_echo_n "checking for $ac_word... " >&6; }
7402if ${ac_cv_prog_OTOOL64+:} false; then :
7403  $as_echo_n "(cached) " >&6
7404else
7405  if test -n "$OTOOL64"; then
7406  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7407else
7408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409for as_dir in $PATH
7410do
7411  IFS=$as_save_IFS
7412  test -z "$as_dir" && as_dir=.
7413    for ac_exec_ext in '' $ac_executable_extensions; do
7414  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7415    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417    break 2
7418  fi
7419done
7420  done
7421IFS=$as_save_IFS
7422
7423fi
7424fi
7425OTOOL64=$ac_cv_prog_OTOOL64
7426if test -n "$OTOOL64"; then
7427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7428$as_echo "$OTOOL64" >&6; }
7429else
7430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431$as_echo "no" >&6; }
7432fi
7433
7434
7435fi
7436if test -z "$ac_cv_prog_OTOOL64"; then
7437  ac_ct_OTOOL64=$OTOOL64
7438  # Extract the first word of "otool64", so it can be a program name with args.
7439set dummy otool64; ac_word=$2
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441$as_echo_n "checking for $ac_word... " >&6; }
7442if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7443  $as_echo_n "(cached) " >&6
7444else
7445  if test -n "$ac_ct_OTOOL64"; then
7446  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7447else
7448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449for as_dir in $PATH
7450do
7451  IFS=$as_save_IFS
7452  test -z "$as_dir" && as_dir=.
7453    for ac_exec_ext in '' $ac_executable_extensions; do
7454  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455    ac_cv_prog_ac_ct_OTOOL64="otool64"
7456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457    break 2
7458  fi
7459done
7460  done
7461IFS=$as_save_IFS
7462
7463fi
7464fi
7465ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7466if test -n "$ac_ct_OTOOL64"; then
7467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7468$as_echo "$ac_ct_OTOOL64" >&6; }
7469else
7470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471$as_echo "no" >&6; }
7472fi
7473
7474  if test "x$ac_ct_OTOOL64" = x; then
7475    OTOOL64=":"
7476  else
7477    case $cross_compiling:$ac_tool_warned in
7478yes:)
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7481ac_tool_warned=yes ;;
7482esac
7483    OTOOL64=$ac_ct_OTOOL64
7484  fi
7485else
7486  OTOOL64="$ac_cv_prog_OTOOL64"
7487fi
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7516$as_echo_n "checking for -single_module linker flag... " >&6; }
7517if ${lt_cv_apple_cc_single_mod+:} false; then :
7518  $as_echo_n "(cached) " >&6
7519else
7520  lt_cv_apple_cc_single_mod=no
7521      if test -z "$LT_MULTI_MODULE"; then
7522	# By default we will add the -single_module flag. You can override
7523	# by either setting the environment variable LT_MULTI_MODULE
7524	# non-empty at configure time, or by adding -multi_module to the
7525	# link flags.
7526	rm -rf libconftest.dylib*
7527	echo "int foo(void){return 1;}" > conftest.c
7528	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7529-dynamiclib -Wl,-single_module conftest.c" >&5
7530	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7531	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7532        _lt_result=$?
7533	# If there is a non-empty error log, and "single_module"
7534	# appears in it, assume the flag caused a linker warning
7535        if test -s conftest.err && $GREP single_module conftest.err; then
7536	  cat conftest.err >&5
7537	# Otherwise, if the output was created with a 0 exit code from
7538	# the compiler, it worked.
7539	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7540	  lt_cv_apple_cc_single_mod=yes
7541	else
7542	  cat conftest.err >&5
7543	fi
7544	rm -rf libconftest.dylib*
7545	rm -f conftest.*
7546      fi
7547fi
7548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7549$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7550
7551    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7552$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7553if ${lt_cv_ld_exported_symbols_list+:} false; then :
7554  $as_echo_n "(cached) " >&6
7555else
7556  lt_cv_ld_exported_symbols_list=no
7557      save_LDFLAGS=$LDFLAGS
7558      echo "_main" > conftest.sym
7559      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7560      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561/* end confdefs.h.  */
7562
7563int
7564main ()
7565{
7566
7567  ;
7568  return 0;
7569}
7570_ACEOF
7571if ac_fn_c_try_link "$LINENO"; then :
7572  lt_cv_ld_exported_symbols_list=yes
7573else
7574  lt_cv_ld_exported_symbols_list=no
7575fi
7576rm -f core conftest.err conftest.$ac_objext \
7577    conftest$ac_exeext conftest.$ac_ext
7578	LDFLAGS=$save_LDFLAGS
7579
7580fi
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7582$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7583
7584    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7585$as_echo_n "checking for -force_load linker flag... " >&6; }
7586if ${lt_cv_ld_force_load+:} false; then :
7587  $as_echo_n "(cached) " >&6
7588else
7589  lt_cv_ld_force_load=no
7590      cat > conftest.c << _LT_EOF
7591int forced_loaded() { return 2;}
7592_LT_EOF
7593      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7594      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7595      echo "$AR cru libconftest.a conftest.o" >&5
7596      $AR cru libconftest.a conftest.o 2>&5
7597      echo "$RANLIB libconftest.a" >&5
7598      $RANLIB libconftest.a 2>&5
7599      cat > conftest.c << _LT_EOF
7600int main() { return 0;}
7601_LT_EOF
7602      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7603      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7604      _lt_result=$?
7605      if test -s conftest.err && $GREP force_load conftest.err; then
7606	cat conftest.err >&5
7607      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7608	lt_cv_ld_force_load=yes
7609      else
7610	cat conftest.err >&5
7611      fi
7612        rm -f conftest.err libconftest.a conftest conftest.c
7613        rm -rf conftest.dSYM
7614
7615fi
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7617$as_echo "$lt_cv_ld_force_load" >&6; }
7618    case $host_os in
7619    rhapsody* | darwin1.[012])
7620      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7621    darwin1.*)
7622      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7623    darwin*) # darwin 5.x on
7624      # if running on 10.5 or later, the deployment target defaults
7625      # to the OS version, if on x86, and 10.4, the deployment
7626      # target defaults to 10.4. Don't you love it?
7627      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7628	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7629	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7630	10.[012][,.]*)
7631	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7632	10.*)
7633	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7634      esac
7635    ;;
7636  esac
7637    if test yes = "$lt_cv_apple_cc_single_mod"; then
7638      _lt_dar_single_mod='$single_module'
7639    fi
7640    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7641      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7642    else
7643      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7644    fi
7645    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7646      _lt_dsymutil='~$DSYMUTIL $lib || :'
7647    else
7648      _lt_dsymutil=
7649    fi
7650    ;;
7651  esac
7652
7653# func_munge_path_list VARIABLE PATH
7654# -----------------------------------
7655# VARIABLE is name of variable containing _space_ separated list of
7656# directories to be munged by the contents of PATH, which is string
7657# having a format:
7658# "DIR[:DIR]:"
7659#       string "DIR[ DIR]" will be prepended to VARIABLE
7660# ":DIR[:DIR]"
7661#       string "DIR[ DIR]" will be appended to VARIABLE
7662# "DIRP[:DIRP]::[DIRA:]DIRA"
7663#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7664#       "DIRA[ DIRA]" will be appended to VARIABLE
7665# "DIR[:DIR]"
7666#       VARIABLE will be replaced by "DIR[ DIR]"
7667func_munge_path_list ()
7668{
7669    case x$2 in
7670    x)
7671        ;;
7672    *:)
7673        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7674        ;;
7675    x:*)
7676        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7677        ;;
7678    *::*)
7679        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7680        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7681        ;;
7682    *)
7683        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7684        ;;
7685    esac
7686}
7687
7688
7689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7690$as_echo_n "checking for ANSI C header files... " >&6; }
7691if ${ac_cv_header_stdc+:} false; then :
7692  $as_echo_n "(cached) " >&6
7693else
7694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7695/* end confdefs.h.  */
7696#include <stdlib.h>
7697#include <stdarg.h>
7698#include <string.h>
7699#include <float.h>
7700
7701int
7702main ()
7703{
7704
7705  ;
7706  return 0;
7707}
7708_ACEOF
7709if ac_fn_c_try_compile "$LINENO"; then :
7710  ac_cv_header_stdc=yes
7711else
7712  ac_cv_header_stdc=no
7713fi
7714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715
7716if test $ac_cv_header_stdc = yes; then
7717  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719/* end confdefs.h.  */
7720#include <string.h>
7721
7722_ACEOF
7723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7724  $EGREP "memchr" >/dev/null 2>&1; then :
7725
7726else
7727  ac_cv_header_stdc=no
7728fi
7729rm -f conftest*
7730
7731fi
7732
7733if test $ac_cv_header_stdc = yes; then
7734  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736/* end confdefs.h.  */
7737#include <stdlib.h>
7738
7739_ACEOF
7740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7741  $EGREP "free" >/dev/null 2>&1; then :
7742
7743else
7744  ac_cv_header_stdc=no
7745fi
7746rm -f conftest*
7747
7748fi
7749
7750if test $ac_cv_header_stdc = yes; then
7751  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7752  if test "$cross_compiling" = yes; then :
7753  :
7754else
7755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756/* end confdefs.h.  */
7757#include <ctype.h>
7758#include <stdlib.h>
7759#if ((' ' & 0x0FF) == 0x020)
7760# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7761# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7762#else
7763# define ISLOWER(c) \
7764		   (('a' <= (c) && (c) <= 'i') \
7765		     || ('j' <= (c) && (c) <= 'r') \
7766		     || ('s' <= (c) && (c) <= 'z'))
7767# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7768#endif
7769
7770#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7771int
7772main ()
7773{
7774  int i;
7775  for (i = 0; i < 256; i++)
7776    if (XOR (islower (i), ISLOWER (i))
7777	|| toupper (i) != TOUPPER (i))
7778      return 2;
7779  return 0;
7780}
7781_ACEOF
7782if ac_fn_c_try_run "$LINENO"; then :
7783
7784else
7785  ac_cv_header_stdc=no
7786fi
7787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7788  conftest.$ac_objext conftest.beam conftest.$ac_ext
7789fi
7790
7791fi
7792fi
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7794$as_echo "$ac_cv_header_stdc" >&6; }
7795if test $ac_cv_header_stdc = yes; then
7796
7797$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7798
7799fi
7800
7801# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7802for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7803		  inttypes.h stdint.h unistd.h
7804do :
7805  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7806ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7807"
7808if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7809  cat >>confdefs.h <<_ACEOF
7810#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7811_ACEOF
7812
7813fi
7814
7815done
7816
7817
7818for ac_header in dlfcn.h
7819do :
7820  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7821"
7822if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7823  cat >>confdefs.h <<_ACEOF
7824#define HAVE_DLFCN_H 1
7825_ACEOF
7826
7827fi
7828
7829done
7830
7831
7832
7833
7834
7835# Set options
7836
7837
7838
7839        enable_dlopen=no
7840
7841
7842  enable_win32_dll=no
7843
7844
7845            # Check whether --enable-shared was given.
7846if test "${enable_shared+set}" = set; then :
7847  enableval=$enable_shared; p=${PACKAGE-default}
7848    case $enableval in
7849    yes) enable_shared=yes ;;
7850    no) enable_shared=no ;;
7851    *)
7852      enable_shared=no
7853      # Look at the argument we got.  We use all the common list separators.
7854      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7855      for pkg in $enableval; do
7856	IFS=$lt_save_ifs
7857	if test "X$pkg" = "X$p"; then
7858	  enable_shared=yes
7859	fi
7860      done
7861      IFS=$lt_save_ifs
7862      ;;
7863    esac
7864else
7865  enable_shared=yes
7866fi
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876  # Check whether --enable-static was given.
7877if test "${enable_static+set}" = set; then :
7878  enableval=$enable_static; p=${PACKAGE-default}
7879    case $enableval in
7880    yes) enable_static=yes ;;
7881    no) enable_static=no ;;
7882    *)
7883     enable_static=no
7884      # Look at the argument we got.  We use all the common list separators.
7885      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7886      for pkg in $enableval; do
7887	IFS=$lt_save_ifs
7888	if test "X$pkg" = "X$p"; then
7889	  enable_static=yes
7890	fi
7891      done
7892      IFS=$lt_save_ifs
7893      ;;
7894    esac
7895else
7896  enable_static=yes
7897fi
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908# Check whether --with-pic was given.
7909if test "${with_pic+set}" = set; then :
7910  withval=$with_pic; lt_p=${PACKAGE-default}
7911    case $withval in
7912    yes|no) pic_mode=$withval ;;
7913    *)
7914      pic_mode=default
7915      # Look at the argument we got.  We use all the common list separators.
7916      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7917      for lt_pkg in $withval; do
7918	IFS=$lt_save_ifs
7919	if test "X$lt_pkg" = "X$lt_p"; then
7920	  pic_mode=yes
7921	fi
7922      done
7923      IFS=$lt_save_ifs
7924      ;;
7925    esac
7926else
7927  pic_mode=default
7928fi
7929
7930
7931
7932
7933
7934
7935
7936
7937  # Check whether --enable-fast-install was given.
7938if test "${enable_fast_install+set}" = set; then :
7939  enableval=$enable_fast_install; p=${PACKAGE-default}
7940    case $enableval in
7941    yes) enable_fast_install=yes ;;
7942    no) enable_fast_install=no ;;
7943    *)
7944      enable_fast_install=no
7945      # Look at the argument we got.  We use all the common list separators.
7946      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7947      for pkg in $enableval; do
7948	IFS=$lt_save_ifs
7949	if test "X$pkg" = "X$p"; then
7950	  enable_fast_install=yes
7951	fi
7952      done
7953      IFS=$lt_save_ifs
7954      ;;
7955    esac
7956else
7957  enable_fast_install=yes
7958fi
7959
7960
7961
7962
7963
7964
7965
7966
7967  shared_archive_member_spec=
7968case $host,$enable_shared in
7969power*-*-aix[5-9]*,yes)
7970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7971$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7972
7973# Check whether --with-aix-soname was given.
7974if test "${with_aix_soname+set}" = set; then :
7975  withval=$with_aix_soname; case $withval in
7976    aix|svr4|both)
7977      ;;
7978    *)
7979      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7980      ;;
7981    esac
7982    lt_cv_with_aix_soname=$with_aix_soname
7983else
7984  if ${lt_cv_with_aix_soname+:} false; then :
7985  $as_echo_n "(cached) " >&6
7986else
7987  lt_cv_with_aix_soname=aix
7988fi
7989
7990    with_aix_soname=$lt_cv_with_aix_soname
7991fi
7992
7993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7994$as_echo "$with_aix_soname" >&6; }
7995  if test aix != "$with_aix_soname"; then
7996    # For the AIX way of multilib, we name the shared archive member
7997    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7998    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7999    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8000    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8001    if test 64 = "${OBJECT_MODE-32}"; then
8002      shared_archive_member_spec=shr_64
8003    else
8004      shared_archive_member_spec=shr
8005    fi
8006  fi
8007  ;;
8008*)
8009  with_aix_soname=aix
8010  ;;
8011esac
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022# This can be used to rebuild libtool when needed
8023LIBTOOL_DEPS=$ltmain
8024
8025# Always use our own libtool.
8026LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057test -z "$LN_S" && LN_S="ln -s"
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072if test -n "${ZSH_VERSION+set}"; then
8073   setopt NO_GLOB_SUBST
8074fi
8075
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8077$as_echo_n "checking for objdir... " >&6; }
8078if ${lt_cv_objdir+:} false; then :
8079  $as_echo_n "(cached) " >&6
8080else
8081  rm -f .libs 2>/dev/null
8082mkdir .libs 2>/dev/null
8083if test -d .libs; then
8084  lt_cv_objdir=.libs
8085else
8086  # MS-DOS does not allow filenames that begin with a dot.
8087  lt_cv_objdir=_libs
8088fi
8089rmdir .libs 2>/dev/null
8090fi
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8092$as_echo "$lt_cv_objdir" >&6; }
8093objdir=$lt_cv_objdir
8094
8095
8096
8097
8098
8099cat >>confdefs.h <<_ACEOF
8100#define LT_OBJDIR "$lt_cv_objdir/"
8101_ACEOF
8102
8103
8104
8105
8106case $host_os in
8107aix3*)
8108  # AIX sometimes has problems with the GCC collect2 program.  For some
8109  # reason, if we set the COLLECT_NAMES environment variable, the problems
8110  # vanish in a puff of smoke.
8111  if test set != "${COLLECT_NAMES+set}"; then
8112    COLLECT_NAMES=
8113    export COLLECT_NAMES
8114  fi
8115  ;;
8116esac
8117
8118# Global variables:
8119ofile=libtool
8120can_build_shared=yes
8121
8122# All known linkers require a '.a' archive for static linking (except MSVC,
8123# which needs '.lib').
8124libext=a
8125
8126with_gnu_ld=$lt_cv_prog_gnu_ld
8127
8128old_CC=$CC
8129old_CFLAGS=$CFLAGS
8130
8131# Set sane defaults for various variables
8132test -z "$CC" && CC=cc
8133test -z "$LTCC" && LTCC=$CC
8134test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8135test -z "$LD" && LD=ld
8136test -z "$ac_objext" && ac_objext=o
8137
8138func_cc_basename $compiler
8139cc_basename=$func_cc_basename_result
8140
8141
8142# Only perform the check for file, if the check method requires it
8143test -z "$MAGIC_CMD" && MAGIC_CMD=file
8144case $deplibs_check_method in
8145file_magic*)
8146  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8147    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8148$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8149if ${lt_cv_path_MAGIC_CMD+:} false; then :
8150  $as_echo_n "(cached) " >&6
8151else
8152  case $MAGIC_CMD in
8153[\\/*] |  ?:[\\/]*)
8154  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8155  ;;
8156*)
8157  lt_save_MAGIC_CMD=$MAGIC_CMD
8158  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8159  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8160  for ac_dir in $ac_dummy; do
8161    IFS=$lt_save_ifs
8162    test -z "$ac_dir" && ac_dir=.
8163    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8164      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8165      if test -n "$file_magic_test_file"; then
8166	case $deplibs_check_method in
8167	"file_magic "*)
8168	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8169	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8170	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8171	    $EGREP "$file_magic_regex" > /dev/null; then
8172	    :
8173	  else
8174	    cat <<_LT_EOF 1>&2
8175
8176*** Warning: the command libtool uses to detect shared libraries,
8177*** $file_magic_cmd, produces output that libtool cannot recognize.
8178*** The result is that libtool may fail to recognize shared libraries
8179*** as such.  This will affect the creation of libtool libraries that
8180*** depend on shared libraries, but programs linked with such libtool
8181*** libraries will work regardless of this problem.  Nevertheless, you
8182*** may want to report the problem to your system manager and/or to
8183*** bug-libtool@gnu.org
8184
8185_LT_EOF
8186	  fi ;;
8187	esac
8188      fi
8189      break
8190    fi
8191  done
8192  IFS=$lt_save_ifs
8193  MAGIC_CMD=$lt_save_MAGIC_CMD
8194  ;;
8195esac
8196fi
8197
8198MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8199if test -n "$MAGIC_CMD"; then
8200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8201$as_echo "$MAGIC_CMD" >&6; }
8202else
8203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204$as_echo "no" >&6; }
8205fi
8206
8207
8208
8209
8210
8211if test -z "$lt_cv_path_MAGIC_CMD"; then
8212  if test -n "$ac_tool_prefix"; then
8213    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8214$as_echo_n "checking for file... " >&6; }
8215if ${lt_cv_path_MAGIC_CMD+:} false; then :
8216  $as_echo_n "(cached) " >&6
8217else
8218  case $MAGIC_CMD in
8219[\\/*] |  ?:[\\/]*)
8220  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8221  ;;
8222*)
8223  lt_save_MAGIC_CMD=$MAGIC_CMD
8224  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8225  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8226  for ac_dir in $ac_dummy; do
8227    IFS=$lt_save_ifs
8228    test -z "$ac_dir" && ac_dir=.
8229    if test -f "$ac_dir/file"; then
8230      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8231      if test -n "$file_magic_test_file"; then
8232	case $deplibs_check_method in
8233	"file_magic "*)
8234	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8235	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8236	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8237	    $EGREP "$file_magic_regex" > /dev/null; then
8238	    :
8239	  else
8240	    cat <<_LT_EOF 1>&2
8241
8242*** Warning: the command libtool uses to detect shared libraries,
8243*** $file_magic_cmd, produces output that libtool cannot recognize.
8244*** The result is that libtool may fail to recognize shared libraries
8245*** as such.  This will affect the creation of libtool libraries that
8246*** depend on shared libraries, but programs linked with such libtool
8247*** libraries will work regardless of this problem.  Nevertheless, you
8248*** may want to report the problem to your system manager and/or to
8249*** bug-libtool@gnu.org
8250
8251_LT_EOF
8252	  fi ;;
8253	esac
8254      fi
8255      break
8256    fi
8257  done
8258  IFS=$lt_save_ifs
8259  MAGIC_CMD=$lt_save_MAGIC_CMD
8260  ;;
8261esac
8262fi
8263
8264MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8265if test -n "$MAGIC_CMD"; then
8266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8267$as_echo "$MAGIC_CMD" >&6; }
8268else
8269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270$as_echo "no" >&6; }
8271fi
8272
8273
8274  else
8275    MAGIC_CMD=:
8276  fi
8277fi
8278
8279  fi
8280  ;;
8281esac
8282
8283# Use C for the default configuration in the libtool script
8284
8285lt_save_CC=$CC
8286ac_ext=c
8287ac_cpp='$CPP $CPPFLAGS'
8288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8290ac_compiler_gnu=$ac_cv_c_compiler_gnu
8291
8292
8293# Source file extension for C test sources.
8294ac_ext=c
8295
8296# Object file extension for compiled C test sources.
8297objext=o
8298objext=$objext
8299
8300# Code to be used in simple compile tests
8301lt_simple_compile_test_code="int some_variable = 0;"
8302
8303# Code to be used in simple link tests
8304lt_simple_link_test_code='int main(){return(0);}'
8305
8306
8307
8308
8309
8310
8311
8312# If no C compiler was specified, use CC.
8313LTCC=${LTCC-"$CC"}
8314
8315# If no C compiler flags were specified, use CFLAGS.
8316LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8317
8318# Allow CC to be a program name with arguments.
8319compiler=$CC
8320
8321# Save the default compiler, since it gets overwritten when the other
8322# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8323compiler_DEFAULT=$CC
8324
8325# save warnings/boilerplate of simple test code
8326ac_outfile=conftest.$ac_objext
8327echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8328eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8329_lt_compiler_boilerplate=`cat conftest.err`
8330$RM conftest*
8331
8332ac_outfile=conftest.$ac_objext
8333echo "$lt_simple_link_test_code" >conftest.$ac_ext
8334eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8335_lt_linker_boilerplate=`cat conftest.err`
8336$RM -r conftest*
8337
8338
8339## CAVEAT EMPTOR:
8340## There is no encapsulation within the following macros, do not change
8341## the running order or otherwise move them around unless you know exactly
8342## what you are doing...
8343if test -n "$compiler"; then
8344
8345lt_prog_compiler_no_builtin_flag=
8346
8347if test yes = "$GCC"; then
8348  case $cc_basename in
8349  nvcc*)
8350    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8351  *)
8352    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8353  esac
8354
8355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8356$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8357if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8358  $as_echo_n "(cached) " >&6
8359else
8360  lt_cv_prog_compiler_rtti_exceptions=no
8361   ac_outfile=conftest.$ac_objext
8362   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8363   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8364   # Insert the option either (1) after the last *FLAGS variable, or
8365   # (2) before a word containing "conftest.", or (3) at the end.
8366   # Note that $ac_compile itself does not contain backslashes and begins
8367   # with a dollar sign (not a hyphen), so the echo should work correctly.
8368   # The option is referenced via a variable to avoid confusing sed.
8369   lt_compile=`echo "$ac_compile" | $SED \
8370   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8371   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8372   -e 's:$: $lt_compiler_flag:'`
8373   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8374   (eval "$lt_compile" 2>conftest.err)
8375   ac_status=$?
8376   cat conftest.err >&5
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   if (exit $ac_status) && test -s "$ac_outfile"; then
8379     # The compiler can only warn and ignore the option if not recognized
8380     # So say no if there are warnings other than the usual output.
8381     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8382     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8383     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8384       lt_cv_prog_compiler_rtti_exceptions=yes
8385     fi
8386   fi
8387   $RM conftest*
8388
8389fi
8390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8391$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8392
8393if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8394    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8395else
8396    :
8397fi
8398
8399fi
8400
8401
8402
8403
8404
8405
8406  lt_prog_compiler_wl=
8407lt_prog_compiler_pic=
8408lt_prog_compiler_static=
8409
8410
8411  if test yes = "$GCC"; then
8412    lt_prog_compiler_wl='-Wl,'
8413    lt_prog_compiler_static='-static'
8414
8415    case $host_os in
8416      aix*)
8417      # All AIX code is PIC.
8418      if test ia64 = "$host_cpu"; then
8419	# AIX 5 now supports IA64 processor
8420	lt_prog_compiler_static='-Bstatic'
8421      fi
8422      lt_prog_compiler_pic='-fPIC'
8423      ;;
8424
8425    amigaos*)
8426      case $host_cpu in
8427      powerpc)
8428            # see comment about AmigaOS4 .so support
8429            lt_prog_compiler_pic='-fPIC'
8430        ;;
8431      m68k)
8432            # FIXME: we need at least 68020 code to build shared libraries, but
8433            # adding the '-m68020' flag to GCC prevents building anything better,
8434            # like '-m68040'.
8435            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8436        ;;
8437      esac
8438      ;;
8439
8440    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8441      # PIC is the default for these OSes.
8442      ;;
8443
8444    mingw* | cygwin* | pw32* | os2* | cegcc*)
8445      # This hack is so that the source file can tell whether it is being
8446      # built for inclusion in a dll (and should export symbols for example).
8447      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8448      # (--disable-auto-import) libraries
8449      lt_prog_compiler_pic='-DDLL_EXPORT'
8450      case $host_os in
8451      os2*)
8452	lt_prog_compiler_static='$wl-static'
8453	;;
8454      esac
8455      ;;
8456
8457    darwin* | rhapsody*)
8458      # PIC is the default on this platform
8459      # Common symbols not allowed in MH_DYLIB files
8460      lt_prog_compiler_pic='-fno-common'
8461      ;;
8462
8463    haiku*)
8464      # PIC is the default for Haiku.
8465      # The "-static" flag exists, but is broken.
8466      lt_prog_compiler_static=
8467      ;;
8468
8469    hpux*)
8470      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8471      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8472      # sets the default TLS model and affects inlining.
8473      case $host_cpu in
8474      hppa*64*)
8475	# +Z the default
8476	;;
8477      *)
8478	lt_prog_compiler_pic='-fPIC'
8479	;;
8480      esac
8481      ;;
8482
8483    interix[3-9]*)
8484      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8485      # Instead, we relocate shared libraries at runtime.
8486      ;;
8487
8488    msdosdjgpp*)
8489      # Just because we use GCC doesn't mean we suddenly get shared libraries
8490      # on systems that don't support them.
8491      lt_prog_compiler_can_build_shared=no
8492      enable_shared=no
8493      ;;
8494
8495    *nto* | *qnx*)
8496      # QNX uses GNU C++, but need to define -shared option too, otherwise
8497      # it will coredump.
8498      lt_prog_compiler_pic='-fPIC -shared'
8499      ;;
8500
8501    sysv4*MP*)
8502      if test -d /usr/nec; then
8503	lt_prog_compiler_pic=-Kconform_pic
8504      fi
8505      ;;
8506
8507    *)
8508      lt_prog_compiler_pic='-fPIC'
8509      ;;
8510    esac
8511
8512    case $cc_basename in
8513    nvcc*) # Cuda Compiler Driver 2.2
8514      lt_prog_compiler_wl='-Xlinker '
8515      if test -n "$lt_prog_compiler_pic"; then
8516        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8517      fi
8518      ;;
8519    esac
8520  else
8521    # PORTME Check for flag to pass linker flags through the system compiler.
8522    case $host_os in
8523    aix*)
8524      lt_prog_compiler_wl='-Wl,'
8525      if test ia64 = "$host_cpu"; then
8526	# AIX 5 now supports IA64 processor
8527	lt_prog_compiler_static='-Bstatic'
8528      else
8529	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8530      fi
8531      ;;
8532
8533    darwin* | rhapsody*)
8534      # PIC is the default on this platform
8535      # Common symbols not allowed in MH_DYLIB files
8536      lt_prog_compiler_pic='-fno-common'
8537      case $cc_basename in
8538      nagfor*)
8539        # NAG Fortran compiler
8540        lt_prog_compiler_wl='-Wl,-Wl,,'
8541        lt_prog_compiler_pic='-PIC'
8542        lt_prog_compiler_static='-Bstatic'
8543        ;;
8544      esac
8545      ;;
8546
8547    mingw* | cygwin* | pw32* | os2* | cegcc*)
8548      # This hack is so that the source file can tell whether it is being
8549      # built for inclusion in a dll (and should export symbols for example).
8550      lt_prog_compiler_pic='-DDLL_EXPORT'
8551      case $host_os in
8552      os2*)
8553	lt_prog_compiler_static='$wl-static'
8554	;;
8555      esac
8556      ;;
8557
8558    hpux9* | hpux10* | hpux11*)
8559      lt_prog_compiler_wl='-Wl,'
8560      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8561      # not for PA HP-UX.
8562      case $host_cpu in
8563      hppa*64*|ia64*)
8564	# +Z the default
8565	;;
8566      *)
8567	lt_prog_compiler_pic='+Z'
8568	;;
8569      esac
8570      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8571      lt_prog_compiler_static='$wl-a ${wl}archive'
8572      ;;
8573
8574    irix5* | irix6* | nonstopux*)
8575      lt_prog_compiler_wl='-Wl,'
8576      # PIC (with -KPIC) is the default.
8577      lt_prog_compiler_static='-non_shared'
8578      ;;
8579
8580    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8581      case $cc_basename in
8582      # old Intel for x86_64, which still supported -KPIC.
8583      ecc*)
8584	lt_prog_compiler_wl='-Wl,'
8585	lt_prog_compiler_pic='-KPIC'
8586	lt_prog_compiler_static='-static'
8587        ;;
8588      # icc used to be incompatible with GCC.
8589      # ICC 10 doesn't accept -KPIC any more.
8590      icc* | ifort*)
8591	lt_prog_compiler_wl='-Wl,'
8592	lt_prog_compiler_pic='-fPIC'
8593	lt_prog_compiler_static='-static'
8594        ;;
8595      # Lahey Fortran 8.1.
8596      lf95*)
8597	lt_prog_compiler_wl='-Wl,'
8598	lt_prog_compiler_pic='--shared'
8599	lt_prog_compiler_static='--static'
8600	;;
8601      nagfor*)
8602	# NAG Fortran compiler
8603	lt_prog_compiler_wl='-Wl,-Wl,,'
8604	lt_prog_compiler_pic='-PIC'
8605	lt_prog_compiler_static='-Bstatic'
8606	;;
8607      tcc*)
8608	# Fabrice Bellard et al's Tiny C Compiler
8609	lt_prog_compiler_wl='-Wl,'
8610	lt_prog_compiler_pic='-fPIC'
8611	lt_prog_compiler_static='-static'
8612	;;
8613      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8614        # Portland Group compilers (*not* the Pentium gcc compiler,
8615	# which looks to be a dead project)
8616	lt_prog_compiler_wl='-Wl,'
8617	lt_prog_compiler_pic='-fpic'
8618	lt_prog_compiler_static='-Bstatic'
8619        ;;
8620      ccc*)
8621        lt_prog_compiler_wl='-Wl,'
8622        # All Alpha code is PIC.
8623        lt_prog_compiler_static='-non_shared'
8624        ;;
8625      xl* | bgxl* | bgf* | mpixl*)
8626	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8627	lt_prog_compiler_wl='-Wl,'
8628	lt_prog_compiler_pic='-qpic'
8629	lt_prog_compiler_static='-qstaticlink'
8630	;;
8631      *)
8632	case `$CC -V 2>&1 | sed 5q` in
8633	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8634	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8635	  lt_prog_compiler_pic='-KPIC'
8636	  lt_prog_compiler_static='-Bstatic'
8637	  lt_prog_compiler_wl=''
8638	  ;;
8639	*Sun\ F* | *Sun*Fortran*)
8640	  lt_prog_compiler_pic='-KPIC'
8641	  lt_prog_compiler_static='-Bstatic'
8642	  lt_prog_compiler_wl='-Qoption ld '
8643	  ;;
8644	*Sun\ C*)
8645	  # Sun C 5.9
8646	  lt_prog_compiler_pic='-KPIC'
8647	  lt_prog_compiler_static='-Bstatic'
8648	  lt_prog_compiler_wl='-Wl,'
8649	  ;;
8650        *Intel*\ [CF]*Compiler*)
8651	  lt_prog_compiler_wl='-Wl,'
8652	  lt_prog_compiler_pic='-fPIC'
8653	  lt_prog_compiler_static='-static'
8654	  ;;
8655	*Portland\ Group*)
8656	  lt_prog_compiler_wl='-Wl,'
8657	  lt_prog_compiler_pic='-fpic'
8658	  lt_prog_compiler_static='-Bstatic'
8659	  ;;
8660	esac
8661	;;
8662      esac
8663      ;;
8664
8665    newsos6)
8666      lt_prog_compiler_pic='-KPIC'
8667      lt_prog_compiler_static='-Bstatic'
8668      ;;
8669
8670    *nto* | *qnx*)
8671      # QNX uses GNU C++, but need to define -shared option too, otherwise
8672      # it will coredump.
8673      lt_prog_compiler_pic='-fPIC -shared'
8674      ;;
8675
8676    osf3* | osf4* | osf5*)
8677      lt_prog_compiler_wl='-Wl,'
8678      # All OSF/1 code is PIC.
8679      lt_prog_compiler_static='-non_shared'
8680      ;;
8681
8682    rdos*)
8683      lt_prog_compiler_static='-non_shared'
8684      ;;
8685
8686    solaris*)
8687      lt_prog_compiler_pic='-KPIC'
8688      lt_prog_compiler_static='-Bstatic'
8689      case $cc_basename in
8690      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8691	lt_prog_compiler_wl='-Qoption ld ';;
8692      *)
8693	lt_prog_compiler_wl='-Wl,';;
8694      esac
8695      ;;
8696
8697    sunos4*)
8698      lt_prog_compiler_wl='-Qoption ld '
8699      lt_prog_compiler_pic='-PIC'
8700      lt_prog_compiler_static='-Bstatic'
8701      ;;
8702
8703    sysv4 | sysv4.2uw2* | sysv4.3*)
8704      lt_prog_compiler_wl='-Wl,'
8705      lt_prog_compiler_pic='-KPIC'
8706      lt_prog_compiler_static='-Bstatic'
8707      ;;
8708
8709    sysv4*MP*)
8710      if test -d /usr/nec; then
8711	lt_prog_compiler_pic='-Kconform_pic'
8712	lt_prog_compiler_static='-Bstatic'
8713      fi
8714      ;;
8715
8716    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8717      lt_prog_compiler_wl='-Wl,'
8718      lt_prog_compiler_pic='-KPIC'
8719      lt_prog_compiler_static='-Bstatic'
8720      ;;
8721
8722    unicos*)
8723      lt_prog_compiler_wl='-Wl,'
8724      lt_prog_compiler_can_build_shared=no
8725      ;;
8726
8727    uts4*)
8728      lt_prog_compiler_pic='-pic'
8729      lt_prog_compiler_static='-Bstatic'
8730      ;;
8731
8732    *)
8733      lt_prog_compiler_can_build_shared=no
8734      ;;
8735    esac
8736  fi
8737
8738case $host_os in
8739  # For platforms that do not support PIC, -DPIC is meaningless:
8740  *djgpp*)
8741    lt_prog_compiler_pic=
8742    ;;
8743  *)
8744    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8745    ;;
8746esac
8747
8748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8749$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8750if ${lt_cv_prog_compiler_pic+:} false; then :
8751  $as_echo_n "(cached) " >&6
8752else
8753  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8754fi
8755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8756$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8757lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8758
8759#
8760# Check to make sure the PIC flag actually works.
8761#
8762if test -n "$lt_prog_compiler_pic"; then
8763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8764$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8765if ${lt_cv_prog_compiler_pic_works+:} false; then :
8766  $as_echo_n "(cached) " >&6
8767else
8768  lt_cv_prog_compiler_pic_works=no
8769   ac_outfile=conftest.$ac_objext
8770   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8771   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8772   # Insert the option either (1) after the last *FLAGS variable, or
8773   # (2) before a word containing "conftest.", or (3) at the end.
8774   # Note that $ac_compile itself does not contain backslashes and begins
8775   # with a dollar sign (not a hyphen), so the echo should work correctly.
8776   # The option is referenced via a variable to avoid confusing sed.
8777   lt_compile=`echo "$ac_compile" | $SED \
8778   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8779   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8780   -e 's:$: $lt_compiler_flag:'`
8781   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8782   (eval "$lt_compile" 2>conftest.err)
8783   ac_status=$?
8784   cat conftest.err >&5
8785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786   if (exit $ac_status) && test -s "$ac_outfile"; then
8787     # The compiler can only warn and ignore the option if not recognized
8788     # So say no if there are warnings other than the usual output.
8789     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8790     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8791     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8792       lt_cv_prog_compiler_pic_works=yes
8793     fi
8794   fi
8795   $RM conftest*
8796
8797fi
8798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8799$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8800
8801if test yes = "$lt_cv_prog_compiler_pic_works"; then
8802    case $lt_prog_compiler_pic in
8803     "" | " "*) ;;
8804     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8805     esac
8806else
8807    lt_prog_compiler_pic=
8808     lt_prog_compiler_can_build_shared=no
8809fi
8810
8811fi
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823#
8824# Check to make sure the static flag actually works.
8825#
8826wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8828$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8829if ${lt_cv_prog_compiler_static_works+:} false; then :
8830  $as_echo_n "(cached) " >&6
8831else
8832  lt_cv_prog_compiler_static_works=no
8833   save_LDFLAGS=$LDFLAGS
8834   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8835   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8836   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8837     # The linker can only warn and ignore the option if not recognized
8838     # So say no if there are warnings
8839     if test -s conftest.err; then
8840       # Append any errors to the config.log.
8841       cat conftest.err 1>&5
8842       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8843       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8844       if diff conftest.exp conftest.er2 >/dev/null; then
8845         lt_cv_prog_compiler_static_works=yes
8846       fi
8847     else
8848       lt_cv_prog_compiler_static_works=yes
8849     fi
8850   fi
8851   $RM -r conftest*
8852   LDFLAGS=$save_LDFLAGS
8853
8854fi
8855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8856$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8857
8858if test yes = "$lt_cv_prog_compiler_static_works"; then
8859    :
8860else
8861    lt_prog_compiler_static=
8862fi
8863
8864
8865
8866
8867
8868
8869
8870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8871$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8872if ${lt_cv_prog_compiler_c_o+:} false; then :
8873  $as_echo_n "(cached) " >&6
8874else
8875  lt_cv_prog_compiler_c_o=no
8876   $RM -r conftest 2>/dev/null
8877   mkdir conftest
8878   cd conftest
8879   mkdir out
8880   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8881
8882   lt_compiler_flag="-o out/conftest2.$ac_objext"
8883   # Insert the option either (1) after the last *FLAGS variable, or
8884   # (2) before a word containing "conftest.", or (3) at the end.
8885   # Note that $ac_compile itself does not contain backslashes and begins
8886   # with a dollar sign (not a hyphen), so the echo should work correctly.
8887   lt_compile=`echo "$ac_compile" | $SED \
8888   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8889   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8890   -e 's:$: $lt_compiler_flag:'`
8891   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8892   (eval "$lt_compile" 2>out/conftest.err)
8893   ac_status=$?
8894   cat out/conftest.err >&5
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8897   then
8898     # The compiler can only warn and ignore the option if not recognized
8899     # So say no if there are warnings
8900     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8901     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8902     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8903       lt_cv_prog_compiler_c_o=yes
8904     fi
8905   fi
8906   chmod u+w . 2>&5
8907   $RM conftest*
8908   # SGI C++ compiler will create directory out/ii_files/ for
8909   # template instantiation
8910   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8911   $RM out/* && rmdir out
8912   cd ..
8913   $RM -r conftest
8914   $RM conftest*
8915
8916fi
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8918$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8919
8920
8921
8922
8923
8924
8925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8926$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8927if ${lt_cv_prog_compiler_c_o+:} false; then :
8928  $as_echo_n "(cached) " >&6
8929else
8930  lt_cv_prog_compiler_c_o=no
8931   $RM -r conftest 2>/dev/null
8932   mkdir conftest
8933   cd conftest
8934   mkdir out
8935   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8936
8937   lt_compiler_flag="-o out/conftest2.$ac_objext"
8938   # Insert the option either (1) after the last *FLAGS variable, or
8939   # (2) before a word containing "conftest.", or (3) at the end.
8940   # Note that $ac_compile itself does not contain backslashes and begins
8941   # with a dollar sign (not a hyphen), so the echo should work correctly.
8942   lt_compile=`echo "$ac_compile" | $SED \
8943   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8944   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8945   -e 's:$: $lt_compiler_flag:'`
8946   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8947   (eval "$lt_compile" 2>out/conftest.err)
8948   ac_status=$?
8949   cat out/conftest.err >&5
8950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8952   then
8953     # The compiler can only warn and ignore the option if not recognized
8954     # So say no if there are warnings
8955     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8956     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8957     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8958       lt_cv_prog_compiler_c_o=yes
8959     fi
8960   fi
8961   chmod u+w . 2>&5
8962   $RM conftest*
8963   # SGI C++ compiler will create directory out/ii_files/ for
8964   # template instantiation
8965   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8966   $RM out/* && rmdir out
8967   cd ..
8968   $RM -r conftest
8969   $RM conftest*
8970
8971fi
8972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8973$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8974
8975
8976
8977
8978hard_links=nottested
8979if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8980  # do not overwrite the value of need_locks provided by the user
8981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8982$as_echo_n "checking if we can lock with hard links... " >&6; }
8983  hard_links=yes
8984  $RM conftest*
8985  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8986  touch conftest.a
8987  ln conftest.a conftest.b 2>&5 || hard_links=no
8988  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8990$as_echo "$hard_links" >&6; }
8991  if test no = "$hard_links"; then
8992    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8993$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8994    need_locks=warn
8995  fi
8996else
8997  need_locks=no
8998fi
8999
9000
9001
9002
9003
9004
9005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9006$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9007
9008  runpath_var=
9009  allow_undefined_flag=
9010  always_export_symbols=no
9011  archive_cmds=
9012  archive_expsym_cmds=
9013  compiler_needs_object=no
9014  enable_shared_with_static_runtimes=no
9015  export_dynamic_flag_spec=
9016  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9017  hardcode_automatic=no
9018  hardcode_direct=no
9019  hardcode_direct_absolute=no
9020  hardcode_libdir_flag_spec=
9021  hardcode_libdir_separator=
9022  hardcode_minus_L=no
9023  hardcode_shlibpath_var=unsupported
9024  inherit_rpath=no
9025  link_all_deplibs=unknown
9026  module_cmds=
9027  module_expsym_cmds=
9028  old_archive_from_new_cmds=
9029  old_archive_from_expsyms_cmds=
9030  thread_safe_flag_spec=
9031  whole_archive_flag_spec=
9032  # include_expsyms should be a list of space-separated symbols to be *always*
9033  # included in the symbol list
9034  include_expsyms=
9035  # exclude_expsyms can be an extended regexp of symbols to exclude
9036  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9037  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9038  # as well as any symbol that contains 'd'.
9039  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9040  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9041  # platforms (ab)use it in PIC code, but their linkers get confused if
9042  # the symbol is explicitly referenced.  Since portable code cannot
9043  # rely on this symbol name, it's probably fine to never include it in
9044  # preloaded symbol tables.
9045  # Exclude shared library initialization/finalization symbols.
9046  extract_expsyms_cmds=
9047
9048  case $host_os in
9049  cygwin* | mingw* | pw32* | cegcc*)
9050    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9051    # When not using gcc, we currently assume that we are using
9052    # Microsoft Visual C++.
9053    if test yes != "$GCC"; then
9054      with_gnu_ld=no
9055    fi
9056    ;;
9057  interix*)
9058    # we just hope/assume this is gcc and not c89 (= MSVC++)
9059    with_gnu_ld=yes
9060    ;;
9061  openbsd* | bitrig*)
9062    with_gnu_ld=no
9063    ;;
9064  esac
9065
9066  ld_shlibs=yes
9067
9068  # On some targets, GNU ld is compatible enough with the native linker
9069  # that we're better off using the native interface for both.
9070  lt_use_gnu_ld_interface=no
9071  if test yes = "$with_gnu_ld"; then
9072    case $host_os in
9073      aix*)
9074	# The AIX port of GNU ld has always aspired to compatibility
9075	# with the native linker.  However, as the warning in the GNU ld
9076	# block says, versions before 2.19.5* couldn't really create working
9077	# shared libraries, regardless of the interface used.
9078	case `$LD -v 2>&1` in
9079	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9080	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9081	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9082	  *)
9083	    lt_use_gnu_ld_interface=yes
9084	    ;;
9085	esac
9086	;;
9087      *)
9088	lt_use_gnu_ld_interface=yes
9089	;;
9090    esac
9091  fi
9092
9093  if test yes = "$lt_use_gnu_ld_interface"; then
9094    # If archive_cmds runs LD, not CC, wlarc should be empty
9095    wlarc='$wl'
9096
9097    # Set some defaults for GNU ld with shared library support. These
9098    # are reset later if shared libraries are not supported. Putting them
9099    # here allows them to be overridden if necessary.
9100    runpath_var=LD_RUN_PATH
9101    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9102    export_dynamic_flag_spec='$wl--export-dynamic'
9103    # ancient GNU ld didn't support --whole-archive et. al.
9104    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9105      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9106    else
9107      whole_archive_flag_spec=
9108    fi
9109    supports_anon_versioning=no
9110    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9111      *GNU\ gold*) supports_anon_versioning=yes ;;
9112      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9113      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9114      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9115      *\ 2.11.*) ;; # other 2.11 versions
9116      *) supports_anon_versioning=yes ;;
9117    esac
9118
9119    # See if GNU ld supports shared libraries.
9120    case $host_os in
9121    aix[3-9]*)
9122      # On AIX/PPC, the GNU linker is very broken
9123      if test ia64 != "$host_cpu"; then
9124	ld_shlibs=no
9125	cat <<_LT_EOF 1>&2
9126
9127*** Warning: the GNU linker, at least up to release 2.19, is reported
9128*** to be unable to reliably create shared libraries on AIX.
9129*** Therefore, libtool is disabling shared libraries support.  If you
9130*** really care for shared libraries, you may want to install binutils
9131*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9132*** You will then need to restart the configuration process.
9133
9134_LT_EOF
9135      fi
9136      ;;
9137
9138    amigaos*)
9139      case $host_cpu in
9140      powerpc)
9141            # see comment about AmigaOS4 .so support
9142            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9143            archive_expsym_cmds=''
9144        ;;
9145      m68k)
9146            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)'
9147            hardcode_libdir_flag_spec='-L$libdir'
9148            hardcode_minus_L=yes
9149        ;;
9150      esac
9151      ;;
9152
9153    beos*)
9154      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9155	allow_undefined_flag=unsupported
9156	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9157	# support --undefined.  This deserves some investigation.  FIXME
9158	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9159      else
9160	ld_shlibs=no
9161      fi
9162      ;;
9163
9164    cygwin* | mingw* | pw32* | cegcc*)
9165      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9166      # as there is no search path for DLLs.
9167      hardcode_libdir_flag_spec='-L$libdir'
9168      export_dynamic_flag_spec='$wl--export-all-symbols'
9169      allow_undefined_flag=unsupported
9170      always_export_symbols=no
9171      enable_shared_with_static_runtimes=yes
9172      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'
9173      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9174
9175      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9176        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9177	# If the export-symbols file already is a .def file, use it as
9178	# is; otherwise, prepend EXPORTS...
9179	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9180          cp $export_symbols $output_objdir/$soname.def;
9181        else
9182          echo EXPORTS > $output_objdir/$soname.def;
9183          cat $export_symbols >> $output_objdir/$soname.def;
9184        fi~
9185        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9186      else
9187	ld_shlibs=no
9188      fi
9189      ;;
9190
9191    haiku*)
9192      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9193      link_all_deplibs=yes
9194      ;;
9195
9196    os2*)
9197      hardcode_libdir_flag_spec='-L$libdir'
9198      hardcode_minus_L=yes
9199      allow_undefined_flag=unsupported
9200      shrext_cmds=.dll
9201      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9202	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9203	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9204	$ECHO EXPORTS >> $output_objdir/$libname.def~
9205	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9206	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9207	emximp -o $lib $output_objdir/$libname.def'
9208      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9209	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9210	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9211	$ECHO EXPORTS >> $output_objdir/$libname.def~
9212	prefix_cmds="$SED"~
9213	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9214	  prefix_cmds="$prefix_cmds -e 1d";
9215	fi~
9216	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9217	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9218	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9219	emximp -o $lib $output_objdir/$libname.def'
9220      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9221      enable_shared_with_static_runtimes=yes
9222      ;;
9223
9224    interix[3-9]*)
9225      hardcode_direct=no
9226      hardcode_shlibpath_var=no
9227      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9228      export_dynamic_flag_spec='$wl-E'
9229      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9230      # Instead, shared libraries are loaded at an image base (0x10000000 by
9231      # default) and relocated if they conflict, which is a slow very memory
9232      # consuming and fragmenting process.  To avoid this, we pick a random,
9233      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9234      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9235      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9236      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'
9237      ;;
9238
9239    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9240      tmp_diet=no
9241      if test linux-dietlibc = "$host_os"; then
9242	case $cc_basename in
9243	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9244	esac
9245      fi
9246      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9247	 && test no = "$tmp_diet"
9248      then
9249	tmp_addflag=' $pic_flag'
9250	tmp_sharedflag='-shared'
9251	case $cc_basename,$host_cpu in
9252        pgcc*)				# Portland Group C compiler
9253	  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'
9254	  tmp_addflag=' $pic_flag'
9255	  ;;
9256	pgf77* | pgf90* | pgf95* | pgfortran*)
9257					# Portland Group f77 and f90 compilers
9258	  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'
9259	  tmp_addflag=' $pic_flag -Mnomain' ;;
9260	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9261	  tmp_addflag=' -i_dynamic' ;;
9262	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9263	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9264	ifc* | ifort*)			# Intel Fortran compiler
9265	  tmp_addflag=' -nofor_main' ;;
9266	lf95*)				# Lahey Fortran 8.1
9267	  whole_archive_flag_spec=
9268	  tmp_sharedflag='--shared' ;;
9269        nagfor*)                        # NAGFOR 5.3
9270          tmp_sharedflag='-Wl,-shared' ;;
9271	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9272	  tmp_sharedflag='-qmkshrobj'
9273	  tmp_addflag= ;;
9274	nvcc*)	# Cuda Compiler Driver 2.2
9275	  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'
9276	  compiler_needs_object=yes
9277	  ;;
9278	esac
9279	case `$CC -V 2>&1 | sed 5q` in
9280	*Sun\ C*)			# Sun C 5.9
9281	  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'
9282	  compiler_needs_object=yes
9283	  tmp_sharedflag='-G' ;;
9284	*Sun\ F*)			# Sun Fortran 8.3
9285	  tmp_sharedflag='-G' ;;
9286	esac
9287	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9288
9289        if test yes = "$supports_anon_versioning"; then
9290          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9291            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9292            echo "local: *; };" >> $output_objdir/$libname.ver~
9293            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9294        fi
9295
9296	case $cc_basename in
9297	tcc*)
9298	  export_dynamic_flag_spec='-rdynamic'
9299	  ;;
9300	xlf* | bgf* | bgxlf* | mpixlf*)
9301	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9302	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9303	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9304	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9305	  if test yes = "$supports_anon_versioning"; then
9306	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9307              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9308              echo "local: *; };" >> $output_objdir/$libname.ver~
9309              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9310	  fi
9311	  ;;
9312	esac
9313      else
9314        ld_shlibs=no
9315      fi
9316      ;;
9317
9318    netbsd*)
9319      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9320	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9321	wlarc=
9322      else
9323	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9324	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9325      fi
9326      ;;
9327
9328    solaris*)
9329      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9330	ld_shlibs=no
9331	cat <<_LT_EOF 1>&2
9332
9333*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9334*** create shared libraries on Solaris systems.  Therefore, libtool
9335*** is disabling shared libraries support.  We urge you to upgrade GNU
9336*** binutils to release 2.9.1 or newer.  Another option is to modify
9337*** your PATH or compiler configuration so that the native linker is
9338*** used, and then restart.
9339
9340_LT_EOF
9341      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9342	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9343	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9344      else
9345	ld_shlibs=no
9346      fi
9347      ;;
9348
9349    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9350      case `$LD -v 2>&1` in
9351        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9352	ld_shlibs=no
9353	cat <<_LT_EOF 1>&2
9354
9355*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9356*** reliably create shared libraries on SCO systems.  Therefore, libtool
9357*** is disabling shared libraries support.  We urge you to upgrade GNU
9358*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9359*** your PATH or compiler configuration so that the native linker is
9360*** used, and then restart.
9361
9362_LT_EOF
9363	;;
9364	*)
9365	  # For security reasons, it is highly recommended that you always
9366	  # use absolute paths for naming shared libraries, and exclude the
9367	  # DT_RUNPATH tag from executables and libraries.  But doing so
9368	  # requires that you compile everything twice, which is a pain.
9369	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9370	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9371	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9372	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9373	  else
9374	    ld_shlibs=no
9375	  fi
9376	;;
9377      esac
9378      ;;
9379
9380    sunos4*)
9381      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9382      wlarc=
9383      hardcode_direct=yes
9384      hardcode_shlibpath_var=no
9385      ;;
9386
9387    *)
9388      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9389	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9390	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9391      else
9392	ld_shlibs=no
9393      fi
9394      ;;
9395    esac
9396
9397    if test no = "$ld_shlibs"; then
9398      runpath_var=
9399      hardcode_libdir_flag_spec=
9400      export_dynamic_flag_spec=
9401      whole_archive_flag_spec=
9402    fi
9403  else
9404    # PORTME fill in a description of your system's linker (not GNU ld)
9405    case $host_os in
9406    aix3*)
9407      allow_undefined_flag=unsupported
9408      always_export_symbols=yes
9409      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'
9410      # Note: this linker hardcodes the directories in LIBPATH if there
9411      # are no directories specified by -L.
9412      hardcode_minus_L=yes
9413      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9414	# Neither direct hardcoding nor static linking is supported with a
9415	# broken collect2.
9416	hardcode_direct=unsupported
9417      fi
9418      ;;
9419
9420    aix[4-9]*)
9421      if test ia64 = "$host_cpu"; then
9422	# On IA64, the linker does run time linking by default, so we don't
9423	# have to do anything special.
9424	aix_use_runtimelinking=no
9425	exp_sym_flag='-Bexport'
9426	no_entry_flag=
9427      else
9428	# If we're using GNU nm, then we don't want the "-C" option.
9429	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9430	# Without the "-l" option, or with the "-B" option, AIX nm treats
9431	# weak defined symbols like other global defined symbols, whereas
9432	# GNU nm marks them as "W".
9433	# While the 'weak' keyword is ignored in the Export File, we need
9434	# it in the Import File for the 'aix-soname' feature, so we have
9435	# to replace the "-B" option with "-P" for AIX nm.
9436	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9437	  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'
9438	else
9439	  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'
9440	fi
9441	aix_use_runtimelinking=no
9442
9443	# Test if we are trying to use run time linking or normal
9444	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9445	# have runtime linking enabled, and use it for executables.
9446	# For shared libraries, we enable/disable runtime linking
9447	# depending on the kind of the shared library created -
9448	# when "with_aix_soname,aix_use_runtimelinking" is:
9449	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9450	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9451	#            lib.a           static archive
9452	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9453	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9454	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9455	#            lib.a(lib.so.V) shared, rtl:no
9456	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9457	#            lib.a           static archive
9458	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9459	  for ld_flag in $LDFLAGS; do
9460	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9461	    aix_use_runtimelinking=yes
9462	    break
9463	  fi
9464	  done
9465	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9466	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9467	    # so we don't have lib.a shared libs to link our executables.
9468	    # We have to force runtime linking in this case.
9469	    aix_use_runtimelinking=yes
9470	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9471	  fi
9472	  ;;
9473	esac
9474
9475	exp_sym_flag='-bexport'
9476	no_entry_flag='-bnoentry'
9477      fi
9478
9479      # When large executables or shared objects are built, AIX ld can
9480      # have problems creating the table of contents.  If linking a library
9481      # or program results in "error TOC overflow" add -mminimal-toc to
9482      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9483      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9484
9485      archive_cmds=''
9486      hardcode_direct=yes
9487      hardcode_direct_absolute=yes
9488      hardcode_libdir_separator=':'
9489      link_all_deplibs=yes
9490      file_list_spec='$wl-f,'
9491      case $with_aix_soname,$aix_use_runtimelinking in
9492      aix,*) ;; # traditional, no import file
9493      svr4,* | *,yes) # use import file
9494	# The Import File defines what to hardcode.
9495	hardcode_direct=no
9496	hardcode_direct_absolute=no
9497	;;
9498      esac
9499
9500      if test yes = "$GCC"; then
9501	case $host_os in aix4.[012]|aix4.[012].*)
9502	# We only want to do this on AIX 4.2 and lower, the check
9503	# below for broken collect2 doesn't work under 4.3+
9504	  collect2name=`$CC -print-prog-name=collect2`
9505	  if test -f "$collect2name" &&
9506	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9507	  then
9508	  # We have reworked collect2
9509	  :
9510	  else
9511	  # We have old collect2
9512	  hardcode_direct=unsupported
9513	  # It fails to find uninstalled libraries when the uninstalled
9514	  # path is not listed in the libpath.  Setting hardcode_minus_L
9515	  # to unsupported forces relinking
9516	  hardcode_minus_L=yes
9517	  hardcode_libdir_flag_spec='-L$libdir'
9518	  hardcode_libdir_separator=
9519	  fi
9520	  ;;
9521	esac
9522	shared_flag='-shared'
9523	if test yes = "$aix_use_runtimelinking"; then
9524	  shared_flag="$shared_flag "'$wl-G'
9525	fi
9526	# Need to ensure runtime linking is disabled for the traditional
9527	# shared library, or the linker may eventually find shared libraries
9528	# /with/ Import File - we do not want to mix them.
9529	shared_flag_aix='-shared'
9530	shared_flag_svr4='-shared $wl-G'
9531      else
9532	# not using gcc
9533	if test ia64 = "$host_cpu"; then
9534	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9535	# chokes on -Wl,-G. The following line is correct:
9536	  shared_flag='-G'
9537	else
9538	  if test yes = "$aix_use_runtimelinking"; then
9539	    shared_flag='$wl-G'
9540	  else
9541	    shared_flag='$wl-bM:SRE'
9542	  fi
9543	  shared_flag_aix='$wl-bM:SRE'
9544	  shared_flag_svr4='$wl-G'
9545	fi
9546      fi
9547
9548      export_dynamic_flag_spec='$wl-bexpall'
9549      # It seems that -bexpall does not export symbols beginning with
9550      # underscore (_), so it is better to generate a list of symbols to export.
9551      always_export_symbols=yes
9552      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9553	# Warning - without using the other runtime loading flags (-brtl),
9554	# -berok will link without error, but may produce a broken library.
9555	allow_undefined_flag='-berok'
9556        # Determine the default libpath from the value encoded in an
9557        # empty executable.
9558        if test set = "${lt_cv_aix_libpath+set}"; then
9559  aix_libpath=$lt_cv_aix_libpath
9560else
9561  if ${lt_cv_aix_libpath_+:} false; then :
9562  $as_echo_n "(cached) " >&6
9563else
9564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9565/* end confdefs.h.  */
9566
9567int
9568main ()
9569{
9570
9571  ;
9572  return 0;
9573}
9574_ACEOF
9575if ac_fn_c_try_link "$LINENO"; then :
9576
9577  lt_aix_libpath_sed='
9578      /Import File Strings/,/^$/ {
9579	  /^0/ {
9580	      s/^0  *\([^ ]*\) *$/\1/
9581	      p
9582	  }
9583      }'
9584  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9585  # Check for a 64-bit object if we didn't find anything.
9586  if test -z "$lt_cv_aix_libpath_"; then
9587    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9588  fi
9589fi
9590rm -f core conftest.err conftest.$ac_objext \
9591    conftest$ac_exeext conftest.$ac_ext
9592  if test -z "$lt_cv_aix_libpath_"; then
9593    lt_cv_aix_libpath_=/usr/lib:/lib
9594  fi
9595
9596fi
9597
9598  aix_libpath=$lt_cv_aix_libpath_
9599fi
9600
9601        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9602        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
9603      else
9604	if test ia64 = "$host_cpu"; then
9605	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9606	  allow_undefined_flag="-z nodefs"
9607	  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"
9608	else
9609	 # Determine the default libpath from the value encoded in an
9610	 # empty executable.
9611	 if test set = "${lt_cv_aix_libpath+set}"; then
9612  aix_libpath=$lt_cv_aix_libpath
9613else
9614  if ${lt_cv_aix_libpath_+:} false; then :
9615  $as_echo_n "(cached) " >&6
9616else
9617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618/* end confdefs.h.  */
9619
9620int
9621main ()
9622{
9623
9624  ;
9625  return 0;
9626}
9627_ACEOF
9628if ac_fn_c_try_link "$LINENO"; then :
9629
9630  lt_aix_libpath_sed='
9631      /Import File Strings/,/^$/ {
9632	  /^0/ {
9633	      s/^0  *\([^ ]*\) *$/\1/
9634	      p
9635	  }
9636      }'
9637  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9638  # Check for a 64-bit object if we didn't find anything.
9639  if test -z "$lt_cv_aix_libpath_"; then
9640    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9641  fi
9642fi
9643rm -f core conftest.err conftest.$ac_objext \
9644    conftest$ac_exeext conftest.$ac_ext
9645  if test -z "$lt_cv_aix_libpath_"; then
9646    lt_cv_aix_libpath_=/usr/lib:/lib
9647  fi
9648
9649fi
9650
9651  aix_libpath=$lt_cv_aix_libpath_
9652fi
9653
9654	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9655	  # Warning - without using the other run time loading flags,
9656	  # -berok will link without error, but may produce a broken library.
9657	  no_undefined_flag=' $wl-bernotok'
9658	  allow_undefined_flag=' $wl-berok'
9659	  if test yes = "$with_gnu_ld"; then
9660	    # We only use this code for GNU lds that support --whole-archive.
9661	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9662	  else
9663	    # Exported symbols can be pulled into shared objects from archives
9664	    whole_archive_flag_spec='$convenience'
9665	  fi
9666	  archive_cmds_need_lc=yes
9667	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9668	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9669	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9670	  if test svr4 != "$with_aix_soname"; then
9671	    # This is similar to how AIX traditionally builds its shared libraries.
9672	    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'
9673	  fi
9674	  if test aix != "$with_aix_soname"; then
9675	    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'
9676	  else
9677	    # used by -dlpreopen to get the symbols
9678	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9679	  fi
9680	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9681	fi
9682      fi
9683      ;;
9684
9685    amigaos*)
9686      case $host_cpu in
9687      powerpc)
9688            # see comment about AmigaOS4 .so support
9689            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9690            archive_expsym_cmds=''
9691        ;;
9692      m68k)
9693            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)'
9694            hardcode_libdir_flag_spec='-L$libdir'
9695            hardcode_minus_L=yes
9696        ;;
9697      esac
9698      ;;
9699
9700    bsdi[45]*)
9701      export_dynamic_flag_spec=-rdynamic
9702      ;;
9703
9704    cygwin* | mingw* | pw32* | cegcc*)
9705      # When not using gcc, we currently assume that we are using
9706      # Microsoft Visual C++.
9707      # hardcode_libdir_flag_spec is actually meaningless, as there is
9708      # no search path for DLLs.
9709      case $cc_basename in
9710      cl*)
9711	# Native MSVC
9712	hardcode_libdir_flag_spec=' '
9713	allow_undefined_flag=unsupported
9714	always_export_symbols=yes
9715	file_list_spec='@'
9716	# Tell ltmain to make .lib files, not .a files.
9717	libext=lib
9718	# Tell ltmain to make .dll files, not .so files.
9719	shrext_cmds=.dll
9720	# FIXME: Setting linknames here is a bad hack.
9721	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9722	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9723            cp "$export_symbols" "$output_objdir/$soname.def";
9724            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9725          else
9726            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9727          fi~
9728          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9729          linknames='
9730	# The linker will not automatically build a static lib if we build a DLL.
9731	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9732	enable_shared_with_static_runtimes=yes
9733	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9734	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9735	# Don't use ranlib
9736	old_postinstall_cmds='chmod 644 $oldlib'
9737	postlink_cmds='lt_outputfile="@OUTPUT@"~
9738          lt_tool_outputfile="@TOOL_OUTPUT@"~
9739          case $lt_outputfile in
9740            *.exe|*.EXE) ;;
9741            *)
9742              lt_outputfile=$lt_outputfile.exe
9743              lt_tool_outputfile=$lt_tool_outputfile.exe
9744              ;;
9745          esac~
9746          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9747            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9748            $RM "$lt_outputfile.manifest";
9749          fi'
9750	;;
9751      *)
9752	# Assume MSVC wrapper
9753	hardcode_libdir_flag_spec=' '
9754	allow_undefined_flag=unsupported
9755	# Tell ltmain to make .lib files, not .a files.
9756	libext=lib
9757	# Tell ltmain to make .dll files, not .so files.
9758	shrext_cmds=.dll
9759	# FIXME: Setting linknames here is a bad hack.
9760	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9761	# The linker will automatically build a .lib file if we build a DLL.
9762	old_archive_from_new_cmds='true'
9763	# FIXME: Should let the user specify the lib program.
9764	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9765	enable_shared_with_static_runtimes=yes
9766	;;
9767      esac
9768      ;;
9769
9770    darwin* | rhapsody*)
9771
9772
9773  archive_cmds_need_lc=no
9774  hardcode_direct=no
9775  hardcode_automatic=yes
9776  hardcode_shlibpath_var=unsupported
9777  if test yes = "$lt_cv_ld_force_load"; then
9778    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\"`'
9779
9780  else
9781    whole_archive_flag_spec=''
9782  fi
9783  link_all_deplibs=yes
9784  allow_undefined_flag=$_lt_dar_allow_undefined
9785  case $cc_basename in
9786     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9787     *) _lt_dar_can_shared=$GCC ;;
9788  esac
9789  if test yes = "$_lt_dar_can_shared"; then
9790    output_verbose_link_cmd=func_echo_all
9791    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9792    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9793    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"
9794    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"
9795
9796  else
9797  ld_shlibs=no
9798  fi
9799
9800      ;;
9801
9802    dgux*)
9803      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9804      hardcode_libdir_flag_spec='-L$libdir'
9805      hardcode_shlibpath_var=no
9806      ;;
9807
9808    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9809    # support.  Future versions do this automatically, but an explicit c++rt0.o
9810    # does not break anything, and helps significantly (at the cost of a little
9811    # extra space).
9812    freebsd2.2*)
9813      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9814      hardcode_libdir_flag_spec='-R$libdir'
9815      hardcode_direct=yes
9816      hardcode_shlibpath_var=no
9817      ;;
9818
9819    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9820    freebsd2.*)
9821      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9822      hardcode_direct=yes
9823      hardcode_minus_L=yes
9824      hardcode_shlibpath_var=no
9825      ;;
9826
9827    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9828    freebsd* | dragonfly*)
9829      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9830      hardcode_libdir_flag_spec='-R$libdir'
9831      hardcode_direct=yes
9832      hardcode_shlibpath_var=no
9833      ;;
9834
9835    hpux9*)
9836      if test yes = "$GCC"; then
9837	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'
9838      else
9839	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'
9840      fi
9841      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9842      hardcode_libdir_separator=:
9843      hardcode_direct=yes
9844
9845      # hardcode_minus_L: Not really in the search PATH,
9846      # but as the default location of the library.
9847      hardcode_minus_L=yes
9848      export_dynamic_flag_spec='$wl-E'
9849      ;;
9850
9851    hpux10*)
9852      if test yes,no = "$GCC,$with_gnu_ld"; then
9853	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9854      else
9855	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9856      fi
9857      if test no = "$with_gnu_ld"; then
9858	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9859	hardcode_libdir_separator=:
9860	hardcode_direct=yes
9861	hardcode_direct_absolute=yes
9862	export_dynamic_flag_spec='$wl-E'
9863	# hardcode_minus_L: Not really in the search PATH,
9864	# but as the default location of the library.
9865	hardcode_minus_L=yes
9866      fi
9867      ;;
9868
9869    hpux11*)
9870      if test yes,no = "$GCC,$with_gnu_ld"; then
9871	case $host_cpu in
9872	hppa*64*)
9873	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9874	  ;;
9875	ia64*)
9876	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9877	  ;;
9878	*)
9879	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9880	  ;;
9881	esac
9882      else
9883	case $host_cpu in
9884	hppa*64*)
9885	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9886	  ;;
9887	ia64*)
9888	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9889	  ;;
9890	*)
9891
9892	  # Older versions of the 11.00 compiler do not understand -b yet
9893	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9894	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9895$as_echo_n "checking if $CC understands -b... " >&6; }
9896if ${lt_cv_prog_compiler__b+:} false; then :
9897  $as_echo_n "(cached) " >&6
9898else
9899  lt_cv_prog_compiler__b=no
9900   save_LDFLAGS=$LDFLAGS
9901   LDFLAGS="$LDFLAGS -b"
9902   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9903   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9904     # The linker can only warn and ignore the option if not recognized
9905     # So say no if there are warnings
9906     if test -s conftest.err; then
9907       # Append any errors to the config.log.
9908       cat conftest.err 1>&5
9909       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9910       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9911       if diff conftest.exp conftest.er2 >/dev/null; then
9912         lt_cv_prog_compiler__b=yes
9913       fi
9914     else
9915       lt_cv_prog_compiler__b=yes
9916     fi
9917   fi
9918   $RM -r conftest*
9919   LDFLAGS=$save_LDFLAGS
9920
9921fi
9922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9923$as_echo "$lt_cv_prog_compiler__b" >&6; }
9924
9925if test yes = "$lt_cv_prog_compiler__b"; then
9926    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9927else
9928    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9929fi
9930
9931	  ;;
9932	esac
9933      fi
9934      if test no = "$with_gnu_ld"; then
9935	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9936	hardcode_libdir_separator=:
9937
9938	case $host_cpu in
9939	hppa*64*|ia64*)
9940	  hardcode_direct=no
9941	  hardcode_shlibpath_var=no
9942	  ;;
9943	*)
9944	  hardcode_direct=yes
9945	  hardcode_direct_absolute=yes
9946	  export_dynamic_flag_spec='$wl-E'
9947
9948	  # hardcode_minus_L: Not really in the search PATH,
9949	  # but as the default location of the library.
9950	  hardcode_minus_L=yes
9951	  ;;
9952	esac
9953      fi
9954      ;;
9955
9956    irix5* | irix6* | nonstopux*)
9957      if test yes = "$GCC"; then
9958	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'
9959	# Try to use the -exported_symbol ld option, if it does not
9960	# work, assume that -exports_file does not work either and
9961	# implicitly export all symbols.
9962	# This should be the same for all languages, so no per-tag cache variable.
9963	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9964$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9965if ${lt_cv_irix_exported_symbol+:} false; then :
9966  $as_echo_n "(cached) " >&6
9967else
9968  save_LDFLAGS=$LDFLAGS
9969	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9970	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971/* end confdefs.h.  */
9972int foo (void) { return 0; }
9973_ACEOF
9974if ac_fn_c_try_link "$LINENO"; then :
9975  lt_cv_irix_exported_symbol=yes
9976else
9977  lt_cv_irix_exported_symbol=no
9978fi
9979rm -f core conftest.err conftest.$ac_objext \
9980    conftest$ac_exeext conftest.$ac_ext
9981           LDFLAGS=$save_LDFLAGS
9982fi
9983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9984$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9985	if test yes = "$lt_cv_irix_exported_symbol"; then
9986          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'
9987	fi
9988      else
9989	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'
9990	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'
9991      fi
9992      archive_cmds_need_lc='no'
9993      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9994      hardcode_libdir_separator=:
9995      inherit_rpath=yes
9996      link_all_deplibs=yes
9997      ;;
9998
9999    linux*)
10000      case $cc_basename in
10001      tcc*)
10002	# Fabrice Bellard et al's Tiny C Compiler
10003	ld_shlibs=yes
10004	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10005	;;
10006      esac
10007      ;;
10008
10009    netbsd*)
10010      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10011	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10012      else
10013	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10014      fi
10015      hardcode_libdir_flag_spec='-R$libdir'
10016      hardcode_direct=yes
10017      hardcode_shlibpath_var=no
10018      ;;
10019
10020    newsos6)
10021      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022      hardcode_direct=yes
10023      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10024      hardcode_libdir_separator=:
10025      hardcode_shlibpath_var=no
10026      ;;
10027
10028    *nto* | *qnx*)
10029      ;;
10030
10031    openbsd* | bitrig*)
10032      if test -f /usr/libexec/ld.so; then
10033	hardcode_direct=yes
10034	hardcode_shlibpath_var=no
10035	hardcode_direct_absolute=yes
10036	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10037	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10038	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10039	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10040	  export_dynamic_flag_spec='$wl-E'
10041	else
10042	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10043	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10044	fi
10045      else
10046	ld_shlibs=no
10047      fi
10048      ;;
10049
10050    os2*)
10051      hardcode_libdir_flag_spec='-L$libdir'
10052      hardcode_minus_L=yes
10053      allow_undefined_flag=unsupported
10054      shrext_cmds=.dll
10055      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10056	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10057	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10058	$ECHO EXPORTS >> $output_objdir/$libname.def~
10059	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10060	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10061	emximp -o $lib $output_objdir/$libname.def'
10062      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10063	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10064	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10065	$ECHO EXPORTS >> $output_objdir/$libname.def~
10066	prefix_cmds="$SED"~
10067	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10068	  prefix_cmds="$prefix_cmds -e 1d";
10069	fi~
10070	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10071	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10072	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10073	emximp -o $lib $output_objdir/$libname.def'
10074      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10075      enable_shared_with_static_runtimes=yes
10076      ;;
10077
10078    osf3*)
10079      if test yes = "$GCC"; then
10080	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10081	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'
10082      else
10083	allow_undefined_flag=' -expect_unresolved \*'
10084	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'
10085      fi
10086      archive_cmds_need_lc='no'
10087      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10088      hardcode_libdir_separator=:
10089      ;;
10090
10091    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10092      if test yes = "$GCC"; then
10093	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10094	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'
10095	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10096      else
10097	allow_undefined_flag=' -expect_unresolved \*'
10098	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'
10099	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~
10100          $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'
10101
10102	# Both c and cxx compiler support -rpath directly
10103	hardcode_libdir_flag_spec='-rpath $libdir'
10104      fi
10105      archive_cmds_need_lc='no'
10106      hardcode_libdir_separator=:
10107      ;;
10108
10109    solaris*)
10110      no_undefined_flag=' -z defs'
10111      if test yes = "$GCC"; then
10112	wlarc='$wl'
10113	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10114	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10115          $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'
10116      else
10117	case `$CC -V 2>&1` in
10118	*"Compilers 5.0"*)
10119	  wlarc=''
10120	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10121	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10122            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10123	  ;;
10124	*)
10125	  wlarc='$wl'
10126	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10127	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10128            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10129	  ;;
10130	esac
10131      fi
10132      hardcode_libdir_flag_spec='-R$libdir'
10133      hardcode_shlibpath_var=no
10134      case $host_os in
10135      solaris2.[0-5] | solaris2.[0-5].*) ;;
10136      *)
10137	# The compiler driver will combine and reorder linker options,
10138	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10139	# but is careful enough not to reorder.
10140	# Supported since Solaris 2.6 (maybe 2.5.1?)
10141	if test yes = "$GCC"; then
10142	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10143	else
10144	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10145	fi
10146	;;
10147      esac
10148      link_all_deplibs=yes
10149      ;;
10150
10151    sunos4*)
10152      if test sequent = "$host_vendor"; then
10153	# Use $CC to link under sequent, because it throws in some extra .o
10154	# files that make .init and .fini sections work.
10155	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10156      else
10157	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10158      fi
10159      hardcode_libdir_flag_spec='-L$libdir'
10160      hardcode_direct=yes
10161      hardcode_minus_L=yes
10162      hardcode_shlibpath_var=no
10163      ;;
10164
10165    sysv4)
10166      case $host_vendor in
10167	sni)
10168	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10169	  hardcode_direct=yes # is this really true???
10170	;;
10171	siemens)
10172	  ## LD is ld it makes a PLAMLIB
10173	  ## CC just makes a GrossModule.
10174	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10175	  reload_cmds='$CC -r -o $output$reload_objs'
10176	  hardcode_direct=no
10177        ;;
10178	motorola)
10179	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10180	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10181	;;
10182      esac
10183      runpath_var='LD_RUN_PATH'
10184      hardcode_shlibpath_var=no
10185      ;;
10186
10187    sysv4.3*)
10188      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10189      hardcode_shlibpath_var=no
10190      export_dynamic_flag_spec='-Bexport'
10191      ;;
10192
10193    sysv4*MP*)
10194      if test -d /usr/nec; then
10195	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10196	hardcode_shlibpath_var=no
10197	runpath_var=LD_RUN_PATH
10198	hardcode_runpath_var=yes
10199	ld_shlibs=yes
10200      fi
10201      ;;
10202
10203    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10204      no_undefined_flag='$wl-z,text'
10205      archive_cmds_need_lc=no
10206      hardcode_shlibpath_var=no
10207      runpath_var='LD_RUN_PATH'
10208
10209      if test yes = "$GCC"; then
10210	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10211	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10212      else
10213	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215      fi
10216      ;;
10217
10218    sysv5* | sco3.2v5* | sco5v6*)
10219      # Note: We CANNOT use -z defs as we might desire, because we do not
10220      # link with -lc, and that would cause any symbols used from libc to
10221      # always be unresolved, which means just about no library would
10222      # ever link correctly.  If we're not using GNU ld we use -z text
10223      # though, which does catch some bad symbols but isn't as heavy-handed
10224      # as -z defs.
10225      no_undefined_flag='$wl-z,text'
10226      allow_undefined_flag='$wl-z,nodefs'
10227      archive_cmds_need_lc=no
10228      hardcode_shlibpath_var=no
10229      hardcode_libdir_flag_spec='$wl-R,$libdir'
10230      hardcode_libdir_separator=':'
10231      link_all_deplibs=yes
10232      export_dynamic_flag_spec='$wl-Bexport'
10233      runpath_var='LD_RUN_PATH'
10234
10235      if test yes = "$GCC"; then
10236	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238      else
10239	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241      fi
10242      ;;
10243
10244    uts4*)
10245      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10246      hardcode_libdir_flag_spec='-L$libdir'
10247      hardcode_shlibpath_var=no
10248      ;;
10249
10250    *)
10251      ld_shlibs=no
10252      ;;
10253    esac
10254
10255    if test sni = "$host_vendor"; then
10256      case $host in
10257      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10258	export_dynamic_flag_spec='$wl-Blargedynsym'
10259	;;
10260      esac
10261    fi
10262  fi
10263
10264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10265$as_echo "$ld_shlibs" >&6; }
10266test no = "$ld_shlibs" && can_build_shared=no
10267
10268with_gnu_ld=$with_gnu_ld
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284#
10285# Do we need to explicitly link libc?
10286#
10287case "x$archive_cmds_need_lc" in
10288x|xyes)
10289  # Assume -lc should be added
10290  archive_cmds_need_lc=yes
10291
10292  if test yes,yes = "$GCC,$enable_shared"; then
10293    case $archive_cmds in
10294    *'~'*)
10295      # FIXME: we may have to deal with multi-command sequences.
10296      ;;
10297    '$CC '*)
10298      # Test whether the compiler implicitly links with -lc since on some
10299      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10300      # to ld, don't add -lc before -lgcc.
10301      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10302$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10303if ${lt_cv_archive_cmds_need_lc+:} false; then :
10304  $as_echo_n "(cached) " >&6
10305else
10306  $RM conftest*
10307	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10308
10309	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10310  (eval $ac_compile) 2>&5
10311  ac_status=$?
10312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10313  test $ac_status = 0; } 2>conftest.err; then
10314	  soname=conftest
10315	  lib=conftest
10316	  libobjs=conftest.$ac_objext
10317	  deplibs=
10318	  wl=$lt_prog_compiler_wl
10319	  pic_flag=$lt_prog_compiler_pic
10320	  compiler_flags=-v
10321	  linker_flags=-v
10322	  verstring=
10323	  output_objdir=.
10324	  libname=conftest
10325	  lt_save_allow_undefined_flag=$allow_undefined_flag
10326	  allow_undefined_flag=
10327	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10328  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10329  ac_status=$?
10330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10331  test $ac_status = 0; }
10332	  then
10333	    lt_cv_archive_cmds_need_lc=no
10334	  else
10335	    lt_cv_archive_cmds_need_lc=yes
10336	  fi
10337	  allow_undefined_flag=$lt_save_allow_undefined_flag
10338	else
10339	  cat conftest.err 1>&5
10340	fi
10341	$RM conftest*
10342
10343fi
10344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10345$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10346      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10347      ;;
10348    esac
10349  fi
10350  ;;
10351esac
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10505$as_echo_n "checking dynamic linker characteristics... " >&6; }
10506
10507if test yes = "$GCC"; then
10508  case $host_os in
10509    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10510    *) lt_awk_arg='/^libraries:/' ;;
10511  esac
10512  case $host_os in
10513    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10514    *) lt_sed_strip_eq='s|=/|/|g' ;;
10515  esac
10516  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10517  case $lt_search_path_spec in
10518  *\;*)
10519    # if the path contains ";" then we assume it to be the separator
10520    # otherwise default to the standard path separator (i.e. ":") - it is
10521    # assumed that no part of a normal pathname contains ";" but that should
10522    # okay in the real world where ";" in dirpaths is itself problematic.
10523    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10524    ;;
10525  *)
10526    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10527    ;;
10528  esac
10529  # Ok, now we have the path, separated by spaces, we can step through it
10530  # and add multilib dir if necessary...
10531  lt_tmp_lt_search_path_spec=
10532  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10533  # ...but if some path component already ends with the multilib dir we assume
10534  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10535  case "$lt_multi_os_dir; $lt_search_path_spec " in
10536  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10537    lt_multi_os_dir=
10538    ;;
10539  esac
10540  for lt_sys_path in $lt_search_path_spec; do
10541    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10542      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10543    elif test -n "$lt_multi_os_dir"; then
10544      test -d "$lt_sys_path" && \
10545	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10546    fi
10547  done
10548  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10549BEGIN {RS = " "; FS = "/|\n";} {
10550  lt_foo = "";
10551  lt_count = 0;
10552  for (lt_i = NF; lt_i > 0; lt_i--) {
10553    if ($lt_i != "" && $lt_i != ".") {
10554      if ($lt_i == "..") {
10555        lt_count++;
10556      } else {
10557        if (lt_count == 0) {
10558          lt_foo = "/" $lt_i lt_foo;
10559        } else {
10560          lt_count--;
10561        }
10562      }
10563    }
10564  }
10565  if (lt_foo != "") { lt_freq[lt_foo]++; }
10566  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10567}'`
10568  # AWK program above erroneously prepends '/' to C:/dos/paths
10569  # for these hosts.
10570  case $host_os in
10571    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10572      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10573  esac
10574  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10575else
10576  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10577fi
10578library_names_spec=
10579libname_spec='lib$name'
10580soname_spec=
10581shrext_cmds=.so
10582postinstall_cmds=
10583postuninstall_cmds=
10584finish_cmds=
10585finish_eval=
10586shlibpath_var=
10587shlibpath_overrides_runpath=unknown
10588version_type=none
10589dynamic_linker="$host_os ld.so"
10590sys_lib_dlsearch_path_spec="/lib /usr/lib"
10591need_lib_prefix=unknown
10592hardcode_into_libs=no
10593
10594# when you set need_version to no, make sure it does not cause -set_version
10595# flags to be left without arguments
10596need_version=unknown
10597
10598
10599
10600case $host_os in
10601aix3*)
10602  version_type=linux # correct to gnu/linux during the next big refactor
10603  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10604  shlibpath_var=LIBPATH
10605
10606  # AIX 3 has no versioning support, so we append a major version to the name.
10607  soname_spec='$libname$release$shared_ext$major'
10608  ;;
10609
10610aix[4-9]*)
10611  version_type=linux # correct to gnu/linux during the next big refactor
10612  need_lib_prefix=no
10613  need_version=no
10614  hardcode_into_libs=yes
10615  if test ia64 = "$host_cpu"; then
10616    # AIX 5 supports IA64
10617    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10618    shlibpath_var=LD_LIBRARY_PATH
10619  else
10620    # With GCC up to 2.95.x, collect2 would create an import file
10621    # for dependence libraries.  The import file would start with
10622    # the line '#! .'.  This would cause the generated library to
10623    # depend on '.', always an invalid library.  This was fixed in
10624    # development snapshots of GCC prior to 3.0.
10625    case $host_os in
10626      aix4 | aix4.[01] | aix4.[01].*)
10627      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10628	   echo ' yes '
10629	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10630	:
10631      else
10632	can_build_shared=no
10633      fi
10634      ;;
10635    esac
10636    # Using Import Files as archive members, it is possible to support
10637    # filename-based versioning of shared library archives on AIX. While
10638    # this would work for both with and without runtime linking, it will
10639    # prevent static linking of such archives. So we do filename-based
10640    # shared library versioning with .so extension only, which is used
10641    # when both runtime linking and shared linking is enabled.
10642    # Unfortunately, runtime linking may impact performance, so we do
10643    # not want this to be the default eventually. Also, we use the
10644    # versioned .so libs for executables only if there is the -brtl
10645    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10646    # To allow for filename-based versioning support, we need to create
10647    # libNAME.so.V as an archive file, containing:
10648    # *) an Import File, referring to the versioned filename of the
10649    #    archive as well as the shared archive member, telling the
10650    #    bitwidth (32 or 64) of that shared object, and providing the
10651    #    list of exported symbols of that shared object, eventually
10652    #    decorated with the 'weak' keyword
10653    # *) the shared object with the F_LOADONLY flag set, to really avoid
10654    #    it being seen by the linker.
10655    # At run time we better use the real file rather than another symlink,
10656    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10657
10658    case $with_aix_soname,$aix_use_runtimelinking in
10659    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10660    # soname into executable. Probably we can add versioning support to
10661    # collect2, so additional links can be useful in future.
10662    aix,yes) # traditional libtool
10663      dynamic_linker='AIX unversionable lib.so'
10664      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10665      # instead of lib<name>.a to let people know that these are not
10666      # typical AIX shared libraries.
10667      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10668      ;;
10669    aix,no) # traditional AIX only
10670      dynamic_linker='AIX lib.a(lib.so.V)'
10671      # We preserve .a as extension for shared libraries through AIX4.2
10672      # and later when we are not doing run time linking.
10673      library_names_spec='$libname$release.a $libname.a'
10674      soname_spec='$libname$release$shared_ext$major'
10675      ;;
10676    svr4,*) # full svr4 only
10677      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10678      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10679      # We do not specify a path in Import Files, so LIBPATH fires.
10680      shlibpath_overrides_runpath=yes
10681      ;;
10682    *,yes) # both, prefer svr4
10683      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10684      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10685      # unpreferred sharedlib libNAME.a needs extra handling
10686      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"'
10687      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"'
10688      # We do not specify a path in Import Files, so LIBPATH fires.
10689      shlibpath_overrides_runpath=yes
10690      ;;
10691    *,no) # both, prefer aix
10692      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10693      library_names_spec='$libname$release.a $libname.a'
10694      soname_spec='$libname$release$shared_ext$major'
10695      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10696      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)'
10697      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"'
10698      ;;
10699    esac
10700    shlibpath_var=LIBPATH
10701  fi
10702  ;;
10703
10704amigaos*)
10705  case $host_cpu in
10706  powerpc)
10707    # Since July 2007 AmigaOS4 officially supports .so libraries.
10708    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10709    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10710    ;;
10711  m68k)
10712    library_names_spec='$libname.ixlibrary $libname.a'
10713    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10714    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'
10715    ;;
10716  esac
10717  ;;
10718
10719beos*)
10720  library_names_spec='$libname$shared_ext'
10721  dynamic_linker="$host_os ld.so"
10722  shlibpath_var=LIBRARY_PATH
10723  ;;
10724
10725bsdi[45]*)
10726  version_type=linux # correct to gnu/linux during the next big refactor
10727  need_version=no
10728  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10729  soname_spec='$libname$release$shared_ext$major'
10730  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10731  shlibpath_var=LD_LIBRARY_PATH
10732  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10733  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10734  # the default ld.so.conf also contains /usr/contrib/lib and
10735  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10736  # libtool to hard-code these into programs
10737  ;;
10738
10739cygwin* | mingw* | pw32* | cegcc*)
10740  version_type=windows
10741  shrext_cmds=.dll
10742  need_version=no
10743  need_lib_prefix=no
10744
10745  case $GCC,$cc_basename in
10746  yes,*)
10747    # gcc
10748    library_names_spec='$libname.dll.a'
10749    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10750    postinstall_cmds='base_file=`basename \$file`~
10751      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10752      dldir=$destdir/`dirname \$dlpath`~
10753      test -d \$dldir || mkdir -p \$dldir~
10754      $install_prog $dir/$dlname \$dldir/$dlname~
10755      chmod a+x \$dldir/$dlname~
10756      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10757        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10758      fi'
10759    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10760      dlpath=$dir/\$dldll~
10761       $RM \$dlpath'
10762    shlibpath_overrides_runpath=yes
10763
10764    case $host_os in
10765    cygwin*)
10766      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10767      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10768
10769      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10770      ;;
10771    mingw* | cegcc*)
10772      # MinGW DLLs use traditional 'lib' prefix
10773      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10774      ;;
10775    pw32*)
10776      # pw32 DLLs use 'pw' prefix rather than 'lib'
10777      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10778      ;;
10779    esac
10780    dynamic_linker='Win32 ld.exe'
10781    ;;
10782
10783  *,cl*)
10784    # Native MSVC
10785    libname_spec='$name'
10786    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10787    library_names_spec='$libname.dll.lib'
10788
10789    case $build_os in
10790    mingw*)
10791      sys_lib_search_path_spec=
10792      lt_save_ifs=$IFS
10793      IFS=';'
10794      for lt_path in $LIB
10795      do
10796        IFS=$lt_save_ifs
10797        # Let DOS variable expansion print the short 8.3 style file name.
10798        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10799        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10800      done
10801      IFS=$lt_save_ifs
10802      # Convert to MSYS style.
10803      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10804      ;;
10805    cygwin*)
10806      # Convert to unix form, then to dos form, then back to unix form
10807      # but this time dos style (no spaces!) so that the unix form looks
10808      # like /cygdrive/c/PROGRA~1:/cygdr...
10809      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10810      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10811      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10812      ;;
10813    *)
10814      sys_lib_search_path_spec=$LIB
10815      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10816        # It is most probably a Windows format PATH.
10817        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10818      else
10819        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10820      fi
10821      # FIXME: find the short name or the path components, as spaces are
10822      # common. (e.g. "Program Files" -> "PROGRA~1")
10823      ;;
10824    esac
10825
10826    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10827    postinstall_cmds='base_file=`basename \$file`~
10828      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10829      dldir=$destdir/`dirname \$dlpath`~
10830      test -d \$dldir || mkdir -p \$dldir~
10831      $install_prog $dir/$dlname \$dldir/$dlname'
10832    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10833      dlpath=$dir/\$dldll~
10834       $RM \$dlpath'
10835    shlibpath_overrides_runpath=yes
10836    dynamic_linker='Win32 link.exe'
10837    ;;
10838
10839  *)
10840    # Assume MSVC wrapper
10841    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10842    dynamic_linker='Win32 ld.exe'
10843    ;;
10844  esac
10845  # FIXME: first we should search . and the directory the executable is in
10846  shlibpath_var=PATH
10847  ;;
10848
10849darwin* | rhapsody*)
10850  dynamic_linker="$host_os dyld"
10851  version_type=darwin
10852  need_lib_prefix=no
10853  need_version=no
10854  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10855  soname_spec='$libname$release$major$shared_ext'
10856  shlibpath_overrides_runpath=yes
10857  shlibpath_var=DYLD_LIBRARY_PATH
10858  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10859
10860  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10861  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10862  ;;
10863
10864dgux*)
10865  version_type=linux # correct to gnu/linux during the next big refactor
10866  need_lib_prefix=no
10867  need_version=no
10868  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10869  soname_spec='$libname$release$shared_ext$major'
10870  shlibpath_var=LD_LIBRARY_PATH
10871  ;;
10872
10873freebsd* | dragonfly*)
10874  # DragonFly does not have aout.  When/if they implement a new
10875  # versioning mechanism, adjust this.
10876  if test -x /usr/bin/objformat; then
10877    objformat=`/usr/bin/objformat`
10878  else
10879    case $host_os in
10880    freebsd[23].*) objformat=aout ;;
10881    *) objformat=elf ;;
10882    esac
10883  fi
10884  version_type=freebsd-$objformat
10885  case $version_type in
10886    freebsd-elf*)
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      need_version=no
10890      need_lib_prefix=no
10891      ;;
10892    freebsd-*)
10893      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10894      need_version=yes
10895      ;;
10896  esac
10897  shlibpath_var=LD_LIBRARY_PATH
10898  case $host_os in
10899  freebsd2.*)
10900    shlibpath_overrides_runpath=yes
10901    ;;
10902  freebsd3.[01]* | freebsdelf3.[01]*)
10903    shlibpath_overrides_runpath=yes
10904    hardcode_into_libs=yes
10905    ;;
10906  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10907  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10908    shlibpath_overrides_runpath=no
10909    hardcode_into_libs=yes
10910    ;;
10911  *) # from 4.6 on, and DragonFly
10912    shlibpath_overrides_runpath=yes
10913    hardcode_into_libs=yes
10914    ;;
10915  esac
10916  ;;
10917
10918haiku*)
10919  version_type=linux # correct to gnu/linux during the next big refactor
10920  need_lib_prefix=no
10921  need_version=no
10922  dynamic_linker="$host_os runtime_loader"
10923  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10924  soname_spec='$libname$release$shared_ext$major'
10925  shlibpath_var=LIBRARY_PATH
10926  shlibpath_overrides_runpath=no
10927  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10928  hardcode_into_libs=yes
10929  ;;
10930
10931hpux9* | hpux10* | hpux11*)
10932  # Give a soname corresponding to the major version so that dld.sl refuses to
10933  # link against other versions.
10934  version_type=sunos
10935  need_lib_prefix=no
10936  need_version=no
10937  case $host_cpu in
10938  ia64*)
10939    shrext_cmds='.so'
10940    hardcode_into_libs=yes
10941    dynamic_linker="$host_os dld.so"
10942    shlibpath_var=LD_LIBRARY_PATH
10943    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10944    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10945    soname_spec='$libname$release$shared_ext$major'
10946    if test 32 = "$HPUX_IA64_MODE"; then
10947      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10948      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10949    else
10950      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10951      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10952    fi
10953    ;;
10954  hppa*64*)
10955    shrext_cmds='.sl'
10956    hardcode_into_libs=yes
10957    dynamic_linker="$host_os dld.sl"
10958    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10959    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10960    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10961    soname_spec='$libname$release$shared_ext$major'
10962    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10963    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10964    ;;
10965  *)
10966    shrext_cmds='.sl'
10967    dynamic_linker="$host_os dld.sl"
10968    shlibpath_var=SHLIB_PATH
10969    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10970    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10971    soname_spec='$libname$release$shared_ext$major'
10972    ;;
10973  esac
10974  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10975  postinstall_cmds='chmod 555 $lib'
10976  # or fails outright, so override atomically:
10977  install_override_mode=555
10978  ;;
10979
10980interix[3-9]*)
10981  version_type=linux # correct to gnu/linux during the next big refactor
10982  need_lib_prefix=no
10983  need_version=no
10984  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10985  soname_spec='$libname$release$shared_ext$major'
10986  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10987  shlibpath_var=LD_LIBRARY_PATH
10988  shlibpath_overrides_runpath=no
10989  hardcode_into_libs=yes
10990  ;;
10991
10992irix5* | irix6* | nonstopux*)
10993  case $host_os in
10994    nonstopux*) version_type=nonstopux ;;
10995    *)
10996	if test yes = "$lt_cv_prog_gnu_ld"; then
10997		version_type=linux # correct to gnu/linux during the next big refactor
10998	else
10999		version_type=irix
11000	fi ;;
11001  esac
11002  need_lib_prefix=no
11003  need_version=no
11004  soname_spec='$libname$release$shared_ext$major'
11005  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11006  case $host_os in
11007  irix5* | nonstopux*)
11008    libsuff= shlibsuff=
11009    ;;
11010  *)
11011    case $LD in # libtool.m4 will add one of these switches to LD
11012    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11013      libsuff= shlibsuff= libmagic=32-bit;;
11014    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11015      libsuff=32 shlibsuff=N32 libmagic=N32;;
11016    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11017      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11018    *) libsuff= shlibsuff= libmagic=never-match;;
11019    esac
11020    ;;
11021  esac
11022  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11023  shlibpath_overrides_runpath=no
11024  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11025  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11026  hardcode_into_libs=yes
11027  ;;
11028
11029# No shared lib support for Linux oldld, aout, or coff.
11030linux*oldld* | linux*aout* | linux*coff*)
11031  dynamic_linker=no
11032  ;;
11033
11034linux*android*)
11035  version_type=none # Android doesn't support versioned libraries.
11036  need_lib_prefix=no
11037  need_version=no
11038  library_names_spec='$libname$release$shared_ext'
11039  soname_spec='$libname$release$shared_ext'
11040  finish_cmds=
11041  shlibpath_var=LD_LIBRARY_PATH
11042  shlibpath_overrides_runpath=yes
11043
11044  # This implies no fast_install, which is unacceptable.
11045  # Some rework will be needed to allow for fast_install
11046  # before this can be enabled.
11047  hardcode_into_libs=yes
11048
11049  dynamic_linker='Android linker'
11050  # Don't embed -rpath directories since the linker doesn't support them.
11051  hardcode_libdir_flag_spec='-L$libdir'
11052  ;;
11053
11054# This must be glibc/ELF.
11055linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11056  version_type=linux # correct to gnu/linux during the next big refactor
11057  need_lib_prefix=no
11058  need_version=no
11059  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11060  soname_spec='$libname$release$shared_ext$major'
11061  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11062  shlibpath_var=LD_LIBRARY_PATH
11063  shlibpath_overrides_runpath=no
11064
11065  # Some binutils ld are patched to set DT_RUNPATH
11066  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11067  $as_echo_n "(cached) " >&6
11068else
11069  lt_cv_shlibpath_overrides_runpath=no
11070    save_LDFLAGS=$LDFLAGS
11071    save_libdir=$libdir
11072    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11073	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11074    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11075/* end confdefs.h.  */
11076
11077int
11078main ()
11079{
11080
11081  ;
11082  return 0;
11083}
11084_ACEOF
11085if ac_fn_c_try_link "$LINENO"; then :
11086  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11087  lt_cv_shlibpath_overrides_runpath=yes
11088fi
11089fi
11090rm -f core conftest.err conftest.$ac_objext \
11091    conftest$ac_exeext conftest.$ac_ext
11092    LDFLAGS=$save_LDFLAGS
11093    libdir=$save_libdir
11094
11095fi
11096
11097  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11098
11099  # This implies no fast_install, which is unacceptable.
11100  # Some rework will be needed to allow for fast_install
11101  # before this can be enabled.
11102  hardcode_into_libs=yes
11103
11104  # Add ABI-specific directories to the system library path.
11105  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11106
11107  # Ideally, we could use ldconfig to report *all* directores which are
11108  # searched for libraries, however this is still not possible.  Aside from not
11109  # being certain /sbin/ldconfig is available, command
11110  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11111  # even though it is searched at run-time.  Try to do the best guess by
11112  # appending ld.so.conf contents (and includes) to the search path.
11113  if test -f /etc/ld.so.conf; then
11114    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' ' '`
11115    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11116  fi
11117
11118  # We used to test for /lib/ld.so.1 and disable shared libraries on
11119  # powerpc, because MkLinux only supported shared libraries with the
11120  # GNU dynamic linker.  Since this was broken with cross compilers,
11121  # most powerpc-linux boxes support dynamic linking these days and
11122  # people can always --disable-shared, the test was removed, and we
11123  # assume the GNU/Linux dynamic linker is in use.
11124  dynamic_linker='GNU/Linux ld.so'
11125  ;;
11126
11127netbsd*)
11128  version_type=sunos
11129  need_lib_prefix=no
11130  need_version=no
11131  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11132    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11133    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11134    dynamic_linker='NetBSD (a.out) ld.so'
11135  else
11136    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11137    soname_spec='$libname$release$shared_ext$major'
11138    dynamic_linker='NetBSD ld.elf_so'
11139  fi
11140  shlibpath_var=LD_LIBRARY_PATH
11141  shlibpath_overrides_runpath=yes
11142  hardcode_into_libs=yes
11143  ;;
11144
11145newsos6)
11146  version_type=linux # correct to gnu/linux during the next big refactor
11147  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11148  shlibpath_var=LD_LIBRARY_PATH
11149  shlibpath_overrides_runpath=yes
11150  ;;
11151
11152*nto* | *qnx*)
11153  version_type=qnx
11154  need_lib_prefix=no
11155  need_version=no
11156  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11157  soname_spec='$libname$release$shared_ext$major'
11158  shlibpath_var=LD_LIBRARY_PATH
11159  shlibpath_overrides_runpath=no
11160  hardcode_into_libs=yes
11161  dynamic_linker='ldqnx.so'
11162  ;;
11163
11164openbsd* | bitrig*)
11165  version_type=sunos
11166  sys_lib_dlsearch_path_spec=/usr/lib
11167  need_lib_prefix=no
11168  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11169    need_version=no
11170  else
11171    need_version=yes
11172  fi
11173  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11174  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11175  shlibpath_var=LD_LIBRARY_PATH
11176  shlibpath_overrides_runpath=yes
11177  ;;
11178
11179os2*)
11180  libname_spec='$name'
11181  version_type=windows
11182  shrext_cmds=.dll
11183  need_version=no
11184  need_lib_prefix=no
11185  # OS/2 can only load a DLL with a base name of 8 characters or less.
11186  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11187    v=$($ECHO $release$versuffix | tr -d .-);
11188    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11189    $ECHO $n$v`$shared_ext'
11190  library_names_spec='${libname}_dll.$libext'
11191  dynamic_linker='OS/2 ld.exe'
11192  shlibpath_var=BEGINLIBPATH
11193  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11194  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11195  postinstall_cmds='base_file=`basename \$file`~
11196    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11197    dldir=$destdir/`dirname \$dlpath`~
11198    test -d \$dldir || mkdir -p \$dldir~
11199    $install_prog $dir/$dlname \$dldir/$dlname~
11200    chmod a+x \$dldir/$dlname~
11201    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11202      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11203    fi'
11204  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11205    dlpath=$dir/\$dldll~
11206    $RM \$dlpath'
11207  ;;
11208
11209osf3* | osf4* | osf5*)
11210  version_type=osf
11211  need_lib_prefix=no
11212  need_version=no
11213  soname_spec='$libname$release$shared_ext$major'
11214  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11215  shlibpath_var=LD_LIBRARY_PATH
11216  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11217  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11218  ;;
11219
11220rdos*)
11221  dynamic_linker=no
11222  ;;
11223
11224solaris*)
11225  version_type=linux # correct to gnu/linux during the next big refactor
11226  need_lib_prefix=no
11227  need_version=no
11228  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11229  soname_spec='$libname$release$shared_ext$major'
11230  shlibpath_var=LD_LIBRARY_PATH
11231  shlibpath_overrides_runpath=yes
11232  hardcode_into_libs=yes
11233  # ldd complains unless libraries are executable
11234  postinstall_cmds='chmod +x $lib'
11235  ;;
11236
11237sunos4*)
11238  version_type=sunos
11239  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11240  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11241  shlibpath_var=LD_LIBRARY_PATH
11242  shlibpath_overrides_runpath=yes
11243  if test yes = "$with_gnu_ld"; then
11244    need_lib_prefix=no
11245  fi
11246  need_version=yes
11247  ;;
11248
11249sysv4 | sysv4.3*)
11250  version_type=linux # correct to gnu/linux during the next big refactor
11251  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11252  soname_spec='$libname$release$shared_ext$major'
11253  shlibpath_var=LD_LIBRARY_PATH
11254  case $host_vendor in
11255    sni)
11256      shlibpath_overrides_runpath=no
11257      need_lib_prefix=no
11258      runpath_var=LD_RUN_PATH
11259      ;;
11260    siemens)
11261      need_lib_prefix=no
11262      ;;
11263    motorola)
11264      need_lib_prefix=no
11265      need_version=no
11266      shlibpath_overrides_runpath=no
11267      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11268      ;;
11269  esac
11270  ;;
11271
11272sysv4*MP*)
11273  if test -d /usr/nec; then
11274    version_type=linux # correct to gnu/linux during the next big refactor
11275    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11276    soname_spec='$libname$shared_ext.$major'
11277    shlibpath_var=LD_LIBRARY_PATH
11278  fi
11279  ;;
11280
11281sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11282  version_type=sco
11283  need_lib_prefix=no
11284  need_version=no
11285  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11286  soname_spec='$libname$release$shared_ext$major'
11287  shlibpath_var=LD_LIBRARY_PATH
11288  shlibpath_overrides_runpath=yes
11289  hardcode_into_libs=yes
11290  if test yes = "$with_gnu_ld"; then
11291    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11292  else
11293    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11294    case $host_os in
11295      sco3.2v5*)
11296        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11297	;;
11298    esac
11299  fi
11300  sys_lib_dlsearch_path_spec='/usr/lib'
11301  ;;
11302
11303tpf*)
11304  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11305  version_type=linux # correct to gnu/linux during the next big refactor
11306  need_lib_prefix=no
11307  need_version=no
11308  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11309  shlibpath_var=LD_LIBRARY_PATH
11310  shlibpath_overrides_runpath=no
11311  hardcode_into_libs=yes
11312  ;;
11313
11314uts4*)
11315  version_type=linux # correct to gnu/linux during the next big refactor
11316  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11317  soname_spec='$libname$release$shared_ext$major'
11318  shlibpath_var=LD_LIBRARY_PATH
11319  ;;
11320
11321*)
11322  dynamic_linker=no
11323  ;;
11324esac
11325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11326$as_echo "$dynamic_linker" >&6; }
11327test no = "$dynamic_linker" && can_build_shared=no
11328
11329variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11330if test yes = "$GCC"; then
11331  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11332fi
11333
11334if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11335  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11336fi
11337
11338if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11339  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11340fi
11341
11342# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11343configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11344
11345# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11346func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11347
11348# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11349configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11448$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11449hardcode_action=
11450if test -n "$hardcode_libdir_flag_spec" ||
11451   test -n "$runpath_var" ||
11452   test yes = "$hardcode_automatic"; then
11453
11454  # We can hardcode non-existent directories.
11455  if test no != "$hardcode_direct" &&
11456     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11457     # have to relink, otherwise we might link with an installed library
11458     # when we should be linking with a yet-to-be-installed one
11459     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11460     test no != "$hardcode_minus_L"; then
11461    # Linking always hardcodes the temporary library directory.
11462    hardcode_action=relink
11463  else
11464    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11465    hardcode_action=immediate
11466  fi
11467else
11468  # We cannot hardcode anything, or else we can only hardcode existing
11469  # directories.
11470  hardcode_action=unsupported
11471fi
11472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11473$as_echo "$hardcode_action" >&6; }
11474
11475if test relink = "$hardcode_action" ||
11476   test yes = "$inherit_rpath"; then
11477  # Fast installation is not supported
11478  enable_fast_install=no
11479elif test yes = "$shlibpath_overrides_runpath" ||
11480     test no = "$enable_shared"; then
11481  # Fast installation is not necessary
11482  enable_fast_install=needless
11483fi
11484
11485
11486
11487
11488
11489
11490  if test yes != "$enable_dlopen"; then
11491  enable_dlopen=unknown
11492  enable_dlopen_self=unknown
11493  enable_dlopen_self_static=unknown
11494else
11495  lt_cv_dlopen=no
11496  lt_cv_dlopen_libs=
11497
11498  case $host_os in
11499  beos*)
11500    lt_cv_dlopen=load_add_on
11501    lt_cv_dlopen_libs=
11502    lt_cv_dlopen_self=yes
11503    ;;
11504
11505  mingw* | pw32* | cegcc*)
11506    lt_cv_dlopen=LoadLibrary
11507    lt_cv_dlopen_libs=
11508    ;;
11509
11510  cygwin*)
11511    lt_cv_dlopen=dlopen
11512    lt_cv_dlopen_libs=
11513    ;;
11514
11515  darwin*)
11516    # if libdl is installed we need to link against it
11517    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11518$as_echo_n "checking for dlopen in -ldl... " >&6; }
11519if ${ac_cv_lib_dl_dlopen+:} false; then :
11520  $as_echo_n "(cached) " >&6
11521else
11522  ac_check_lib_save_LIBS=$LIBS
11523LIBS="-ldl  $LIBS"
11524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525/* end confdefs.h.  */
11526
11527/* Override any GCC internal prototype to avoid an error.
11528   Use char because int might match the return type of a GCC
11529   builtin and then its argument prototype would still apply.  */
11530#ifdef __cplusplus
11531extern "C"
11532#endif
11533char dlopen ();
11534int
11535main ()
11536{
11537return dlopen ();
11538  ;
11539  return 0;
11540}
11541_ACEOF
11542if ac_fn_c_try_link "$LINENO"; then :
11543  ac_cv_lib_dl_dlopen=yes
11544else
11545  ac_cv_lib_dl_dlopen=no
11546fi
11547rm -f core conftest.err conftest.$ac_objext \
11548    conftest$ac_exeext conftest.$ac_ext
11549LIBS=$ac_check_lib_save_LIBS
11550fi
11551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11552$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11553if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11554  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11555else
11556
11557    lt_cv_dlopen=dyld
11558    lt_cv_dlopen_libs=
11559    lt_cv_dlopen_self=yes
11560
11561fi
11562
11563    ;;
11564
11565  tpf*)
11566    # Don't try to run any link tests for TPF.  We know it's impossible
11567    # because TPF is a cross-compiler, and we know how we open DSOs.
11568    lt_cv_dlopen=dlopen
11569    lt_cv_dlopen_libs=
11570    lt_cv_dlopen_self=no
11571    ;;
11572
11573  *)
11574    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11575if test "x$ac_cv_func_shl_load" = xyes; then :
11576  lt_cv_dlopen=shl_load
11577else
11578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11579$as_echo_n "checking for shl_load in -ldld... " >&6; }
11580if ${ac_cv_lib_dld_shl_load+:} false; then :
11581  $as_echo_n "(cached) " >&6
11582else
11583  ac_check_lib_save_LIBS=$LIBS
11584LIBS="-ldld  $LIBS"
11585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11586/* end confdefs.h.  */
11587
11588/* Override any GCC internal prototype to avoid an error.
11589   Use char because int might match the return type of a GCC
11590   builtin and then its argument prototype would still apply.  */
11591#ifdef __cplusplus
11592extern "C"
11593#endif
11594char shl_load ();
11595int
11596main ()
11597{
11598return shl_load ();
11599  ;
11600  return 0;
11601}
11602_ACEOF
11603if ac_fn_c_try_link "$LINENO"; then :
11604  ac_cv_lib_dld_shl_load=yes
11605else
11606  ac_cv_lib_dld_shl_load=no
11607fi
11608rm -f core conftest.err conftest.$ac_objext \
11609    conftest$ac_exeext conftest.$ac_ext
11610LIBS=$ac_check_lib_save_LIBS
11611fi
11612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11613$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11614if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11615  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11616else
11617  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11618if test "x$ac_cv_func_dlopen" = xyes; then :
11619  lt_cv_dlopen=dlopen
11620else
11621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11622$as_echo_n "checking for dlopen in -ldl... " >&6; }
11623if ${ac_cv_lib_dl_dlopen+:} false; then :
11624  $as_echo_n "(cached) " >&6
11625else
11626  ac_check_lib_save_LIBS=$LIBS
11627LIBS="-ldl  $LIBS"
11628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11629/* end confdefs.h.  */
11630
11631/* Override any GCC internal prototype to avoid an error.
11632   Use char because int might match the return type of a GCC
11633   builtin and then its argument prototype would still apply.  */
11634#ifdef __cplusplus
11635extern "C"
11636#endif
11637char dlopen ();
11638int
11639main ()
11640{
11641return dlopen ();
11642  ;
11643  return 0;
11644}
11645_ACEOF
11646if ac_fn_c_try_link "$LINENO"; then :
11647  ac_cv_lib_dl_dlopen=yes
11648else
11649  ac_cv_lib_dl_dlopen=no
11650fi
11651rm -f core conftest.err conftest.$ac_objext \
11652    conftest$ac_exeext conftest.$ac_ext
11653LIBS=$ac_check_lib_save_LIBS
11654fi
11655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11656$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11657if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11658  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11659else
11660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11661$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11662if ${ac_cv_lib_svld_dlopen+:} false; then :
11663  $as_echo_n "(cached) " >&6
11664else
11665  ac_check_lib_save_LIBS=$LIBS
11666LIBS="-lsvld  $LIBS"
11667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668/* end confdefs.h.  */
11669
11670/* Override any GCC internal prototype to avoid an error.
11671   Use char because int might match the return type of a GCC
11672   builtin and then its argument prototype would still apply.  */
11673#ifdef __cplusplus
11674extern "C"
11675#endif
11676char dlopen ();
11677int
11678main ()
11679{
11680return dlopen ();
11681  ;
11682  return 0;
11683}
11684_ACEOF
11685if ac_fn_c_try_link "$LINENO"; then :
11686  ac_cv_lib_svld_dlopen=yes
11687else
11688  ac_cv_lib_svld_dlopen=no
11689fi
11690rm -f core conftest.err conftest.$ac_objext \
11691    conftest$ac_exeext conftest.$ac_ext
11692LIBS=$ac_check_lib_save_LIBS
11693fi
11694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11695$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11696if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11697  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11698else
11699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11700$as_echo_n "checking for dld_link in -ldld... " >&6; }
11701if ${ac_cv_lib_dld_dld_link+:} false; then :
11702  $as_echo_n "(cached) " >&6
11703else
11704  ac_check_lib_save_LIBS=$LIBS
11705LIBS="-ldld  $LIBS"
11706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707/* end confdefs.h.  */
11708
11709/* Override any GCC internal prototype to avoid an error.
11710   Use char because int might match the return type of a GCC
11711   builtin and then its argument prototype would still apply.  */
11712#ifdef __cplusplus
11713extern "C"
11714#endif
11715char dld_link ();
11716int
11717main ()
11718{
11719return dld_link ();
11720  ;
11721  return 0;
11722}
11723_ACEOF
11724if ac_fn_c_try_link "$LINENO"; then :
11725  ac_cv_lib_dld_dld_link=yes
11726else
11727  ac_cv_lib_dld_dld_link=no
11728fi
11729rm -f core conftest.err conftest.$ac_objext \
11730    conftest$ac_exeext conftest.$ac_ext
11731LIBS=$ac_check_lib_save_LIBS
11732fi
11733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11734$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11735if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11736  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11737fi
11738
11739
11740fi
11741
11742
11743fi
11744
11745
11746fi
11747
11748
11749fi
11750
11751
11752fi
11753
11754    ;;
11755  esac
11756
11757  if test no = "$lt_cv_dlopen"; then
11758    enable_dlopen=no
11759  else
11760    enable_dlopen=yes
11761  fi
11762
11763  case $lt_cv_dlopen in
11764  dlopen)
11765    save_CPPFLAGS=$CPPFLAGS
11766    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11767
11768    save_LDFLAGS=$LDFLAGS
11769    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11770
11771    save_LIBS=$LIBS
11772    LIBS="$lt_cv_dlopen_libs $LIBS"
11773
11774    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11775$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11776if ${lt_cv_dlopen_self+:} false; then :
11777  $as_echo_n "(cached) " >&6
11778else
11779  	  if test yes = "$cross_compiling"; then :
11780  lt_cv_dlopen_self=cross
11781else
11782  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11783  lt_status=$lt_dlunknown
11784  cat > conftest.$ac_ext <<_LT_EOF
11785#line $LINENO "configure"
11786#include "confdefs.h"
11787
11788#if HAVE_DLFCN_H
11789#include <dlfcn.h>
11790#endif
11791
11792#include <stdio.h>
11793
11794#ifdef RTLD_GLOBAL
11795#  define LT_DLGLOBAL		RTLD_GLOBAL
11796#else
11797#  ifdef DL_GLOBAL
11798#    define LT_DLGLOBAL		DL_GLOBAL
11799#  else
11800#    define LT_DLGLOBAL		0
11801#  endif
11802#endif
11803
11804/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11805   find out it does not work in some platform. */
11806#ifndef LT_DLLAZY_OR_NOW
11807#  ifdef RTLD_LAZY
11808#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11809#  else
11810#    ifdef DL_LAZY
11811#      define LT_DLLAZY_OR_NOW		DL_LAZY
11812#    else
11813#      ifdef RTLD_NOW
11814#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11815#      else
11816#        ifdef DL_NOW
11817#          define LT_DLLAZY_OR_NOW	DL_NOW
11818#        else
11819#          define LT_DLLAZY_OR_NOW	0
11820#        endif
11821#      endif
11822#    endif
11823#  endif
11824#endif
11825
11826/* When -fvisibility=hidden is used, assume the code has been annotated
11827   correspondingly for the symbols needed.  */
11828#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11829int fnord () __attribute__((visibility("default")));
11830#endif
11831
11832int fnord () { return 42; }
11833int main ()
11834{
11835  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11836  int status = $lt_dlunknown;
11837
11838  if (self)
11839    {
11840      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11841      else
11842        {
11843	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11844          else puts (dlerror ());
11845	}
11846      /* dlclose (self); */
11847    }
11848  else
11849    puts (dlerror ());
11850
11851  return status;
11852}
11853_LT_EOF
11854  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11855  (eval $ac_link) 2>&5
11856  ac_status=$?
11857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11858  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11859    (./conftest; exit; ) >&5 2>/dev/null
11860    lt_status=$?
11861    case x$lt_status in
11862      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11863      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11864      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11865    esac
11866  else :
11867    # compilation failed
11868    lt_cv_dlopen_self=no
11869  fi
11870fi
11871rm -fr conftest*
11872
11873
11874fi
11875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11876$as_echo "$lt_cv_dlopen_self" >&6; }
11877
11878    if test yes = "$lt_cv_dlopen_self"; then
11879      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11880      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11881$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11882if ${lt_cv_dlopen_self_static+:} false; then :
11883  $as_echo_n "(cached) " >&6
11884else
11885  	  if test yes = "$cross_compiling"; then :
11886  lt_cv_dlopen_self_static=cross
11887else
11888  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11889  lt_status=$lt_dlunknown
11890  cat > conftest.$ac_ext <<_LT_EOF
11891#line $LINENO "configure"
11892#include "confdefs.h"
11893
11894#if HAVE_DLFCN_H
11895#include <dlfcn.h>
11896#endif
11897
11898#include <stdio.h>
11899
11900#ifdef RTLD_GLOBAL
11901#  define LT_DLGLOBAL		RTLD_GLOBAL
11902#else
11903#  ifdef DL_GLOBAL
11904#    define LT_DLGLOBAL		DL_GLOBAL
11905#  else
11906#    define LT_DLGLOBAL		0
11907#  endif
11908#endif
11909
11910/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11911   find out it does not work in some platform. */
11912#ifndef LT_DLLAZY_OR_NOW
11913#  ifdef RTLD_LAZY
11914#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11915#  else
11916#    ifdef DL_LAZY
11917#      define LT_DLLAZY_OR_NOW		DL_LAZY
11918#    else
11919#      ifdef RTLD_NOW
11920#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11921#      else
11922#        ifdef DL_NOW
11923#          define LT_DLLAZY_OR_NOW	DL_NOW
11924#        else
11925#          define LT_DLLAZY_OR_NOW	0
11926#        endif
11927#      endif
11928#    endif
11929#  endif
11930#endif
11931
11932/* When -fvisibility=hidden is used, assume the code has been annotated
11933   correspondingly for the symbols needed.  */
11934#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11935int fnord () __attribute__((visibility("default")));
11936#endif
11937
11938int fnord () { return 42; }
11939int main ()
11940{
11941  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11942  int status = $lt_dlunknown;
11943
11944  if (self)
11945    {
11946      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11947      else
11948        {
11949	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11950          else puts (dlerror ());
11951	}
11952      /* dlclose (self); */
11953    }
11954  else
11955    puts (dlerror ());
11956
11957  return status;
11958}
11959_LT_EOF
11960  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11961  (eval $ac_link) 2>&5
11962  ac_status=$?
11963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11964  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11965    (./conftest; exit; ) >&5 2>/dev/null
11966    lt_status=$?
11967    case x$lt_status in
11968      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11969      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11970      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11971    esac
11972  else :
11973    # compilation failed
11974    lt_cv_dlopen_self_static=no
11975  fi
11976fi
11977rm -fr conftest*
11978
11979
11980fi
11981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11982$as_echo "$lt_cv_dlopen_self_static" >&6; }
11983    fi
11984
11985    CPPFLAGS=$save_CPPFLAGS
11986    LDFLAGS=$save_LDFLAGS
11987    LIBS=$save_LIBS
11988    ;;
11989  esac
11990
11991  case $lt_cv_dlopen_self in
11992  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11993  *) enable_dlopen_self=unknown ;;
11994  esac
11995
11996  case $lt_cv_dlopen_self_static in
11997  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11998  *) enable_dlopen_self_static=unknown ;;
11999  esac
12000fi
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018striplib=
12019old_striplib=
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12021$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12022if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12023  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12024  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12026$as_echo "yes" >&6; }
12027else
12028# FIXME - insert some real tests, host_os isn't really good enough
12029  case $host_os in
12030  darwin*)
12031    if test -n "$STRIP"; then
12032      striplib="$STRIP -x"
12033      old_striplib="$STRIP -S"
12034      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12035$as_echo "yes" >&6; }
12036    else
12037      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038$as_echo "no" >&6; }
12039    fi
12040    ;;
12041  *)
12042    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043$as_echo "no" >&6; }
12044    ;;
12045  esac
12046fi
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059  # Report what library types will actually be built
12060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12061$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12063$as_echo "$can_build_shared" >&6; }
12064
12065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12066$as_echo_n "checking whether to build shared libraries... " >&6; }
12067  test no = "$can_build_shared" && enable_shared=no
12068
12069  # On AIX, shared libraries and static libraries use the same namespace, and
12070  # are all built from PIC.
12071  case $host_os in
12072  aix3*)
12073    test yes = "$enable_shared" && enable_static=no
12074    if test -n "$RANLIB"; then
12075      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12076      postinstall_cmds='$RANLIB $lib'
12077    fi
12078    ;;
12079
12080  aix[4-9]*)
12081    if test ia64 != "$host_cpu"; then
12082      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12083      yes,aix,yes) ;;			# shared object as lib.so file only
12084      yes,svr4,*) ;;			# shared object as lib.so archive member only
12085      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12086      esac
12087    fi
12088    ;;
12089  esac
12090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12091$as_echo "$enable_shared" >&6; }
12092
12093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12094$as_echo_n "checking whether to build static libraries... " >&6; }
12095  # Make sure either enable_shared or enable_static is yes.
12096  test yes = "$enable_shared" || enable_static=yes
12097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12098$as_echo "$enable_static" >&6; }
12099
12100
12101
12102
12103fi
12104ac_ext=c
12105ac_cpp='$CPP $CPPFLAGS'
12106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12108ac_compiler_gnu=$ac_cv_c_compiler_gnu
12109
12110CC=$lt_save_CC
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126        ac_config_commands="$ac_config_commands libtool"
12127
12128
12129
12130
12131# Only expand once:
12132
12133
12134
12135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable -Wall" >&5
12136$as_echo_n "checking whether to enable -Wall... " >&6; }
12137# Check whether --enable-warnings was given.
12138if test "${enable_warnings+set}" = set; then :
12139  enableval=$enable_warnings; if test -n "$GCC"; then
12140    { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding -Wall to CFLAGS." >&5
12141$as_echo "adding -Wall to CFLAGS." >&6; }
12142    CFLAGS="$CFLAGS -Wall"
12143   fi
12144
12145else
12146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147$as_echo "no" >&6; }
12148
12149fi
12150
12151
12152# Extract the first word of "help2man", so it can be a program name with args.
12153set dummy help2man; ac_word=$2
12154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12155$as_echo_n "checking for $ac_word... " >&6; }
12156if ${ac_cv_path_HELP2MAN+:} false; then :
12157  $as_echo_n "(cached) " >&6
12158else
12159  case $HELP2MAN in
12160  [\\/]* | ?:[\\/]*)
12161  ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
12162  ;;
12163  *)
12164  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165for as_dir in $PATH
12166do
12167  IFS=$as_save_IFS
12168  test -z "$as_dir" && as_dir=.
12169    for ac_exec_ext in '' $ac_executable_extensions; do
12170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12171    ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
12172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12173    break 2
12174  fi
12175done
12176  done
12177IFS=$as_save_IFS
12178
12179  test -z "$ac_cv_path_HELP2MAN" && ac_cv_path_HELP2MAN="false // No help2man //"
12180  ;;
12181esac
12182fi
12183HELP2MAN=$ac_cv_path_HELP2MAN
12184if test -n "$HELP2MAN"; then
12185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
12186$as_echo "$HELP2MAN" >&6; }
12187else
12188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189$as_echo "no" >&6; }
12190fi
12191
12192
12193# Extract the first word of "help2man", so it can be a program name with args.
12194set dummy help2man; ac_word=$2
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12196$as_echo_n "checking for $ac_word... " >&6; }
12197if ${ac_cv_prog_HELP2MAN+:} false; then :
12198  $as_echo_n "(cached) " >&6
12199else
12200  if test -n "$HELP2MAN"; then
12201  ac_cv_prog_HELP2MAN="$HELP2MAN" # Let the user override the test.
12202else
12203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12204for as_dir in $PATH
12205do
12206  IFS=$as_save_IFS
12207  test -z "$as_dir" && as_dir=.
12208    for ac_exec_ext in '' $ac_executable_extensions; do
12209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12210    ac_cv_prog_HELP2MAN="help2man"
12211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12212    break 2
12213  fi
12214done
12215  done
12216IFS=$as_save_IFS
12217
12218fi
12219fi
12220HELP2MAN=$ac_cv_prog_HELP2MAN
12221if test -n "$HELP2MAN"; then
12222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
12223$as_echo "$HELP2MAN" >&6; }
12224else
12225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226$as_echo "no" >&6; }
12227fi
12228
12229
12230 if test x$HELP2MAN = xhelp2man; then
12231  HAVE_HELP2MAN_TRUE=
12232  HAVE_HELP2MAN_FALSE='#'
12233else
12234  HAVE_HELP2MAN_TRUE='#'
12235  HAVE_HELP2MAN_FALSE=
12236fi
12237
12238
12239# On some systems, gethostbyname() is thread-safe
12240# Check whether --enable-threadsafe_gethostbyname was given.
12241if test "${enable_threadsafe_gethostbyname+set}" = set; then :
12242  enableval=$enable_threadsafe_gethostbyname;
12243fi
12244
12245
12246# Check if the user told use gethostbyname() is thread-safe.
12247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for threadsafe gethostbyname()" >&5
12248$as_echo_n "checking for threadsafe gethostbyname()... " >&6; }
12249if test "x$enable_threadsafe_gethostbyname" = "xyes" ; then
12250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12251$as_echo "yes" >&6; }
12252
12253$as_echo "#define HAVE_GETHOSTBYNAME_THREADSAFE 1" >>confdefs.h
12254
12255  HAVE_GETHOSTBYNAME_THREADSAFE=yes
12256else
12257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258$as_echo "no" >&6; }
12259fi
12260
12261# Checks for libraries.
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnls" >&5
12263$as_echo_n "checking for gethostbyname_r in -lnls... " >&6; }
12264if ${ac_cv_lib_nls_gethostbyname_r+:} false; then :
12265  $as_echo_n "(cached) " >&6
12266else
12267  ac_check_lib_save_LIBS=$LIBS
12268LIBS="-lnls  $LIBS"
12269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270/* end confdefs.h.  */
12271
12272/* Override any GCC internal prototype to avoid an error.
12273   Use char because int might match the return type of a GCC
12274   builtin and then its argument prototype would still apply.  */
12275#ifdef __cplusplus
12276extern "C"
12277#endif
12278char gethostbyname_r ();
12279int
12280main ()
12281{
12282return gethostbyname_r ();
12283  ;
12284  return 0;
12285}
12286_ACEOF
12287if ac_fn_c_try_link "$LINENO"; then :
12288  ac_cv_lib_nls_gethostbyname_r=yes
12289else
12290  ac_cv_lib_nls_gethostbyname_r=no
12291fi
12292rm -f core conftest.err conftest.$ac_objext \
12293    conftest$ac_exeext conftest.$ac_ext
12294LIBS=$ac_check_lib_save_LIBS
12295fi
12296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nls_gethostbyname_r" >&5
12297$as_echo "$ac_cv_lib_nls_gethostbyname_r" >&6; }
12298if test "x$ac_cv_lib_nls_gethostbyname_r" = xyes; then :
12299  cat >>confdefs.h <<_ACEOF
12300#define HAVE_LIBNLS 1
12301_ACEOF
12302
12303  LIBS="-lnls $LIBS"
12304
12305fi
12306
12307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
12308$as_echo_n "checking for socket in -lsocket... " >&6; }
12309if ${ac_cv_lib_socket_socket+:} false; then :
12310  $as_echo_n "(cached) " >&6
12311else
12312  ac_check_lib_save_LIBS=$LIBS
12313LIBS="-lsocket  $LIBS"
12314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315/* end confdefs.h.  */
12316
12317/* Override any GCC internal prototype to avoid an error.
12318   Use char because int might match the return type of a GCC
12319   builtin and then its argument prototype would still apply.  */
12320#ifdef __cplusplus
12321extern "C"
12322#endif
12323char socket ();
12324int
12325main ()
12326{
12327return socket ();
12328  ;
12329  return 0;
12330}
12331_ACEOF
12332if ac_fn_c_try_link "$LINENO"; then :
12333  ac_cv_lib_socket_socket=yes
12334else
12335  ac_cv_lib_socket_socket=no
12336fi
12337rm -f core conftest.err conftest.$ac_objext \
12338    conftest$ac_exeext conftest.$ac_ext
12339LIBS=$ac_check_lib_save_LIBS
12340fi
12341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
12342$as_echo "$ac_cv_lib_socket_socket" >&6; }
12343if test "x$ac_cv_lib_socket_socket" = xyes; then :
12344  cat >>confdefs.h <<_ACEOF
12345#define HAVE_LIBSOCKET 1
12346_ACEOF
12347
12348  LIBS="-lsocket $LIBS"
12349
12350fi
12351
12352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
12353$as_echo_n "checking for floor in -lm... " >&6; }
12354if ${ac_cv_lib_m_floor+:} false; then :
12355  $as_echo_n "(cached) " >&6
12356else
12357  ac_check_lib_save_LIBS=$LIBS
12358LIBS="-lm  $LIBS"
12359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360/* end confdefs.h.  */
12361
12362/* Override any GCC internal prototype to avoid an error.
12363   Use char because int might match the return type of a GCC
12364   builtin and then its argument prototype would still apply.  */
12365#ifdef __cplusplus
12366extern "C"
12367#endif
12368char floor ();
12369int
12370main ()
12371{
12372return floor ();
12373  ;
12374  return 0;
12375}
12376_ACEOF
12377if ac_fn_c_try_link "$LINENO"; then :
12378  ac_cv_lib_m_floor=yes
12379else
12380  ac_cv_lib_m_floor=no
12381fi
12382rm -f core conftest.err conftest.$ac_objext \
12383    conftest$ac_exeext conftest.$ac_ext
12384LIBS=$ac_check_lib_save_LIBS
12385fi
12386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
12387$as_echo "$ac_cv_lib_m_floor" >&6; }
12388if test "x$ac_cv_lib_m_floor" = xyes; then :
12389  cat >>confdefs.h <<_ACEOF
12390#define HAVE_LIBM 1
12391_ACEOF
12392
12393  LIBS="-lm $LIBS"
12394
12395fi
12396
12397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_exit in -lpthread" >&5
12398$as_echo_n "checking for pthread_exit in -lpthread... " >&6; }
12399if ${ac_cv_lib_pthread_pthread_exit+:} false; then :
12400  $as_echo_n "(cached) " >&6
12401else
12402  ac_check_lib_save_LIBS=$LIBS
12403LIBS="-lpthread  $LIBS"
12404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405/* end confdefs.h.  */
12406
12407/* Override any GCC internal prototype to avoid an error.
12408   Use char because int might match the return type of a GCC
12409   builtin and then its argument prototype would still apply.  */
12410#ifdef __cplusplus
12411extern "C"
12412#endif
12413char pthread_exit ();
12414int
12415main ()
12416{
12417return pthread_exit ();
12418  ;
12419  return 0;
12420}
12421_ACEOF
12422if ac_fn_c_try_link "$LINENO"; then :
12423  ac_cv_lib_pthread_pthread_exit=yes
12424else
12425  ac_cv_lib_pthread_pthread_exit=no
12426fi
12427rm -f core conftest.err conftest.$ac_objext \
12428    conftest$ac_exeext conftest.$ac_ext
12429LIBS=$ac_check_lib_save_LIBS
12430fi
12431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_exit" >&5
12432$as_echo "$ac_cv_lib_pthread_pthread_exit" >&6; }
12433if test "x$ac_cv_lib_pthread_pthread_exit" = xyes; then :
12434  cat >>confdefs.h <<_ACEOF
12435#define HAVE_LIBPTHREAD 1
12436_ACEOF
12437
12438  LIBS="-lpthread $LIBS"
12439
12440fi
12441
12442
12443# Some builds of MySQL require libz - try to detect
12444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
12445$as_echo_n "checking for deflate in -lz... " >&6; }
12446if ${ac_cv_lib_z_deflate+:} false; then :
12447  $as_echo_n "(cached) " >&6
12448else
12449  ac_check_lib_save_LIBS=$LIBS
12450LIBS="-lz  $LIBS"
12451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452/* end confdefs.h.  */
12453
12454/* Override any GCC internal prototype to avoid an error.
12455   Use char because int might match the return type of a GCC
12456   builtin and then its argument prototype would still apply.  */
12457#ifdef __cplusplus
12458extern "C"
12459#endif
12460char deflate ();
12461int
12462main ()
12463{
12464return deflate ();
12465  ;
12466  return 0;
12467}
12468_ACEOF
12469if ac_fn_c_try_link "$LINENO"; then :
12470  ac_cv_lib_z_deflate=yes
12471else
12472  ac_cv_lib_z_deflate=no
12473fi
12474rm -f core conftest.err conftest.$ac_objext \
12475    conftest$ac_exeext conftest.$ac_ext
12476LIBS=$ac_check_lib_save_LIBS
12477fi
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
12479$as_echo "$ac_cv_lib_z_deflate" >&6; }
12480if test "x$ac_cv_lib_z_deflate" = xyes; then :
12481  cat >>confdefs.h <<_ACEOF
12482#define HAVE_LIBZ 1
12483_ACEOF
12484
12485  LIBS="-lz $LIBS"
12486
12487fi
12488
12489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_close in -lkstat" >&5
12490$as_echo_n "checking for kstat_close in -lkstat... " >&6; }
12491if ${ac_cv_lib_kstat_kstat_close+:} false; then :
12492  $as_echo_n "(cached) " >&6
12493else
12494  ac_check_lib_save_LIBS=$LIBS
12495LIBS="-lkstat  $LIBS"
12496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497/* end confdefs.h.  */
12498
12499/* Override any GCC internal prototype to avoid an error.
12500   Use char because int might match the return type of a GCC
12501   builtin and then its argument prototype would still apply.  */
12502#ifdef __cplusplus
12503extern "C"
12504#endif
12505char kstat_close ();
12506int
12507main ()
12508{
12509return kstat_close ();
12510  ;
12511  return 0;
12512}
12513_ACEOF
12514if ac_fn_c_try_link "$LINENO"; then :
12515  ac_cv_lib_kstat_kstat_close=yes
12516else
12517  ac_cv_lib_kstat_kstat_close=no
12518fi
12519rm -f core conftest.err conftest.$ac_objext \
12520    conftest$ac_exeext conftest.$ac_ext
12521LIBS=$ac_check_lib_save_LIBS
12522fi
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_close" >&5
12524$as_echo "$ac_cv_lib_kstat_kstat_close" >&6; }
12525if test "x$ac_cv_lib_kstat_kstat_close" = xyes; then :
12526  cat >>confdefs.h <<_ACEOF
12527#define HAVE_LIBKSTAT 1
12528_ACEOF
12529
12530  LIBS="-lkstat $LIBS"
12531
12532fi
12533
12534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_realloc in -lcrypto" >&5
12535$as_echo_n "checking for CRYPTO_realloc in -lcrypto... " >&6; }
12536if ${ac_cv_lib_crypto_CRYPTO_realloc+:} false; then :
12537  $as_echo_n "(cached) " >&6
12538else
12539  ac_check_lib_save_LIBS=$LIBS
12540LIBS="-lcrypto  $LIBS"
12541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542/* end confdefs.h.  */
12543
12544/* Override any GCC internal prototype to avoid an error.
12545   Use char because int might match the return type of a GCC
12546   builtin and then its argument prototype would still apply.  */
12547#ifdef __cplusplus
12548extern "C"
12549#endif
12550char CRYPTO_realloc ();
12551int
12552main ()
12553{
12554return CRYPTO_realloc ();
12555  ;
12556  return 0;
12557}
12558_ACEOF
12559if ac_fn_c_try_link "$LINENO"; then :
12560  ac_cv_lib_crypto_CRYPTO_realloc=yes
12561else
12562  ac_cv_lib_crypto_CRYPTO_realloc=no
12563fi
12564rm -f core conftest.err conftest.$ac_objext \
12565    conftest$ac_exeext conftest.$ac_ext
12566LIBS=$ac_check_lib_save_LIBS
12567fi
12568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_realloc" >&5
12569$as_echo "$ac_cv_lib_crypto_CRYPTO_realloc" >&6; }
12570if test "x$ac_cv_lib_crypto_CRYPTO_realloc" = xyes; then :
12571  cat >>confdefs.h <<_ACEOF
12572#define HAVE_LIBCRYPTO 1
12573_ACEOF
12574
12575  LIBS="-lcrypto $LIBS"
12576
12577fi
12578
12579
12580# Checks for header files.
12581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12582$as_echo_n "checking for ANSI C header files... " >&6; }
12583if ${ac_cv_header_stdc+:} false; then :
12584  $as_echo_n "(cached) " >&6
12585else
12586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587/* end confdefs.h.  */
12588#include <stdlib.h>
12589#include <stdarg.h>
12590#include <string.h>
12591#include <float.h>
12592
12593int
12594main ()
12595{
12596
12597  ;
12598  return 0;
12599}
12600_ACEOF
12601if ac_fn_c_try_compile "$LINENO"; then :
12602  ac_cv_header_stdc=yes
12603else
12604  ac_cv_header_stdc=no
12605fi
12606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12607
12608if test $ac_cv_header_stdc = yes; then
12609  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611/* end confdefs.h.  */
12612#include <string.h>
12613
12614_ACEOF
12615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12616  $EGREP "memchr" >/dev/null 2>&1; then :
12617
12618else
12619  ac_cv_header_stdc=no
12620fi
12621rm -f conftest*
12622
12623fi
12624
12625if test $ac_cv_header_stdc = yes; then
12626  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628/* end confdefs.h.  */
12629#include <stdlib.h>
12630
12631_ACEOF
12632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12633  $EGREP "free" >/dev/null 2>&1; then :
12634
12635else
12636  ac_cv_header_stdc=no
12637fi
12638rm -f conftest*
12639
12640fi
12641
12642if test $ac_cv_header_stdc = yes; then
12643  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12644  if test "$cross_compiling" = yes; then :
12645  :
12646else
12647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648/* end confdefs.h.  */
12649#include <ctype.h>
12650#include <stdlib.h>
12651#if ((' ' & 0x0FF) == 0x020)
12652# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12653# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12654#else
12655# define ISLOWER(c) \
12656		   (('a' <= (c) && (c) <= 'i') \
12657		     || ('j' <= (c) && (c) <= 'r') \
12658		     || ('s' <= (c) && (c) <= 'z'))
12659# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12660#endif
12661
12662#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12663int
12664main ()
12665{
12666  int i;
12667  for (i = 0; i < 256; i++)
12668    if (XOR (islower (i), ISLOWER (i))
12669	|| toupper (i) != TOUPPER (i))
12670      return 2;
12671  return 0;
12672}
12673_ACEOF
12674if ac_fn_c_try_run "$LINENO"; then :
12675
12676else
12677  ac_cv_header_stdc=no
12678fi
12679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12680  conftest.$ac_objext conftest.beam conftest.$ac_ext
12681fi
12682
12683fi
12684fi
12685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12686$as_echo "$ac_cv_header_stdc" >&6; }
12687if test $ac_cv_header_stdc = yes; then
12688
12689$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12690
12691fi
12692
12693for ac_header in sys/socket.h sys/select.h sys/wait.h sys/time.h
12694do :
12695  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12696ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12697if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12698  cat >>confdefs.h <<_ACEOF
12699#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12700_ACEOF
12701
12702fi
12703
12704done
12705
12706for ac_header in assert.h ctype.h errno.h signal.h math.h malloc.h netdb.h
12707do :
12708  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12709ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12710if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12711  cat >>confdefs.h <<_ACEOF
12712#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12713_ACEOF
12714
12715fi
12716
12717done
12718
12719for ac_header in signal.h stdarg.h stdio.h syslog.h
12720do :
12721  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12722ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12723if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12724  cat >>confdefs.h <<_ACEOF
12725#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12726_ACEOF
12727
12728fi
12729
12730done
12731
12732for ac_header in netinet/in_systm.h netinet/in.h netinet/ip.h netinet/ip_icmp.h
12733do :
12734  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12735ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
12736  #include <sys/types.h>
12737  #endif
12738  #ifdef HAVE_NETINET_IN_H
12739  #include <netinet/in.h>
12740  #endif
12741  #ifdef HAVE_NETINET_IN_SYSTM_H
12742  #include <netinet/in_systm.h>
12743  #endif
12744  #ifdef HAVE_NETINET_IP_H
12745  #include <netinet/ip.h>
12746  #endif
12747
12748"
12749if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12750  cat >>confdefs.h <<_ACEOF
12751#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12752_ACEOF
12753
12754fi
12755
12756done
12757
12758
12759# Checks for typedefs, structures, and compiler characteristics.
12760ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
12761if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
12762
12763cat >>confdefs.h <<_ACEOF
12764#define HAVE_UNSIGNED_LONG_LONG 1
12765_ACEOF
12766
12767
12768fi
12769ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12770if test "x$ac_cv_type_long_long" = xyes; then :
12771
12772cat >>confdefs.h <<_ACEOF
12773#define HAVE_LONG_LONG 1
12774_ACEOF
12775
12776
12777fi
12778
12779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12780$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12781if ${ac_cv_c_const+:} false; then :
12782  $as_echo_n "(cached) " >&6
12783else
12784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785/* end confdefs.h.  */
12786
12787int
12788main ()
12789{
12790
12791#ifndef __cplusplus
12792  /* Ultrix mips cc rejects this sort of thing.  */
12793  typedef int charset[2];
12794  const charset cs = { 0, 0 };
12795  /* SunOS 4.1.1 cc rejects this.  */
12796  char const *const *pcpcc;
12797  char **ppc;
12798  /* NEC SVR4.0.2 mips cc rejects this.  */
12799  struct point {int x, y;};
12800  static struct point const zero = {0,0};
12801  /* AIX XL C 1.02.0.0 rejects this.
12802     It does not let you subtract one const X* pointer from another in
12803     an arm of an if-expression whose if-part is not a constant
12804     expression */
12805  const char *g = "string";
12806  pcpcc = &g + (g ? g-g : 0);
12807  /* HPUX 7.0 cc rejects these. */
12808  ++pcpcc;
12809  ppc = (char**) pcpcc;
12810  pcpcc = (char const *const *) ppc;
12811  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12812    char tx;
12813    char *t = &tx;
12814    char const *s = 0 ? (char *) 0 : (char const *) 0;
12815
12816    *t++ = 0;
12817    if (s) return 0;
12818  }
12819  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12820    int x[] = {25, 17};
12821    const int *foo = &x[0];
12822    ++foo;
12823  }
12824  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12825    typedef const int *iptr;
12826    iptr p = 0;
12827    ++p;
12828  }
12829  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12830       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12831    struct s { int j; const int *ap[3]; } bx;
12832    struct s *b = &bx; b->j = 5;
12833  }
12834  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12835    const int foo = 10;
12836    if (!foo) return 0;
12837  }
12838  return !cs[0] && !zero.x;
12839#endif
12840
12841  ;
12842  return 0;
12843}
12844_ACEOF
12845if ac_fn_c_try_compile "$LINENO"; then :
12846  ac_cv_c_const=yes
12847else
12848  ac_cv_c_const=no
12849fi
12850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12851fi
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12853$as_echo "$ac_cv_c_const" >&6; }
12854if test $ac_cv_c_const = no; then
12855
12856$as_echo "#define const /**/" >>confdefs.h
12857
12858fi
12859
12860ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12861if test "x$ac_cv_type_size_t" = xyes; then :
12862
12863else
12864
12865cat >>confdefs.h <<_ACEOF
12866#define size_t unsigned int
12867_ACEOF
12868
12869fi
12870
12871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12872$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12873if ${ac_cv_header_time+:} false; then :
12874  $as_echo_n "(cached) " >&6
12875else
12876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877/* end confdefs.h.  */
12878#include <sys/types.h>
12879#include <sys/time.h>
12880#include <time.h>
12881
12882int
12883main ()
12884{
12885if ((struct tm *) 0)
12886return 0;
12887  ;
12888  return 0;
12889}
12890_ACEOF
12891if ac_fn_c_try_compile "$LINENO"; then :
12892  ac_cv_header_time=yes
12893else
12894  ac_cv_header_time=no
12895fi
12896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12897fi
12898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12899$as_echo "$ac_cv_header_time" >&6; }
12900if test $ac_cv_header_time = yes; then
12901
12902$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12903
12904fi
12905
12906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12907$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12908if ${ac_cv_struct_tm+:} false; then :
12909  $as_echo_n "(cached) " >&6
12910else
12911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912/* end confdefs.h.  */
12913#include <sys/types.h>
12914#include <time.h>
12915
12916int
12917main ()
12918{
12919struct tm tm;
12920				     int *p = &tm.tm_sec;
12921				     return !p;
12922  ;
12923  return 0;
12924}
12925_ACEOF
12926if ac_fn_c_try_compile "$LINENO"; then :
12927  ac_cv_struct_tm=time.h
12928else
12929  ac_cv_struct_tm=sys/time.h
12930fi
12931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12932fi
12933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12934$as_echo "$ac_cv_struct_tm" >&6; }
12935if test $ac_cv_struct_tm = sys/time.h; then
12936
12937$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12938
12939fi
12940
12941
12942# Checks for library functions.
12943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12944$as_echo_n "checking return type of signal handlers... " >&6; }
12945if ${ac_cv_type_signal+:} false; then :
12946  $as_echo_n "(cached) " >&6
12947else
12948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949/* end confdefs.h.  */
12950#include <sys/types.h>
12951#include <signal.h>
12952
12953int
12954main ()
12955{
12956return *(signal (0, 0)) (0) == 1;
12957  ;
12958  return 0;
12959}
12960_ACEOF
12961if ac_fn_c_try_compile "$LINENO"; then :
12962  ac_cv_type_signal=int
12963else
12964  ac_cv_type_signal=void
12965fi
12966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12967fi
12968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12969$as_echo "$ac_cv_type_signal" >&6; }
12970
12971cat >>confdefs.h <<_ACEOF
12972#define RETSIGTYPE $ac_cv_type_signal
12973_ACEOF
12974
12975
12976for ac_func in malloc calloc gettimeofday strerror strtoll
12977do :
12978  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12979ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12980if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12981  cat >>confdefs.h <<_ACEOF
12982#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12983_ACEOF
12984
12985fi
12986done
12987
12988
12989# ****************** Solaris Privileges Check ***********************
12990
12991# Check if usage of Solaris privileges support is possible
12992ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
12993if test "x$ac_cv_header_priv_h" = xyes; then :
12994  FOUND_PRIV_H=yes
12995else
12996  FOUND_PRIV_H=no
12997fi
12998
12999
13000
13001# If we should use the Solaris privileges support
13002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Solaris privileges" >&5
13003$as_echo_n "checking whether we are using Solaris privileges... " >&6; }
13004# Check whether --enable-solaris-priv was given.
13005if test "${enable_solaris_priv+set}" = set; then :
13006  enableval=$enable_solaris_priv;  ENABLED_SOL_PRIV=$enableval
13007else
13008   ENABLED_SOL_PRIV=no
13009
13010fi
13011
13012if test x$ENABLED_SOL_PRIV != xno; then
13013  if test x$FOUND_PRIV_H != xno; then
13014    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13015$as_echo "yes" >&6; }
13016
13017$as_echo "#define SOLAR_PRIV 1" >>confdefs.h
13018
13019  else
13020    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021$as_echo "no" >&6; }
13022  fi
13023else
13024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025$as_echo "no" >&6; }
13026fi
13027
13028# ****************** Linux Capabilities Check ***********************
13029ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
13030if test "x$ac_cv_header_sys_capability_h" = xyes; then :
13031  FOUND_SYS_CAPABILITY_H=yes
13032else
13033  FOUND_SYS_CAPABILITY_H=no
13034fi
13035
13036
13037
13038# If we should use the Linux Capabilities support
13039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Linux Capabilities" >&5
13040$as_echo_n "checking whether we are using Linux Capabilities... " >&6; }
13041# Check whether --enable-lcap was given.
13042if test "${enable_lcap+set}" = set; then :
13043  enableval=$enable_lcap;  ENABLED_LCAP=$enableval
13044else
13045   ENABLED_LCAP=no
13046
13047fi
13048
13049
13050if test x$ENABLED_LCAP != xno; then
13051  if test x$FOUND_SYS_CAPABILITY_H != xno; then
13052    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13053$as_echo "yes" >&6; }
13054    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
13055$as_echo_n "checking for cap_init in -lcap... " >&6; }
13056if ${ac_cv_lib_cap_cap_init+:} false; then :
13057  $as_echo_n "(cached) " >&6
13058else
13059  ac_check_lib_save_LIBS=$LIBS
13060LIBS="-lcap  $LIBS"
13061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062/* end confdefs.h.  */
13063
13064/* Override any GCC internal prototype to avoid an error.
13065   Use char because int might match the return type of a GCC
13066   builtin and then its argument prototype would still apply.  */
13067#ifdef __cplusplus
13068extern "C"
13069#endif
13070char cap_init ();
13071int
13072main ()
13073{
13074return cap_init ();
13075  ;
13076  return 0;
13077}
13078_ACEOF
13079if ac_fn_c_try_link "$LINENO"; then :
13080  ac_cv_lib_cap_cap_init=yes
13081else
13082  ac_cv_lib_cap_cap_init=no
13083fi
13084rm -f core conftest.err conftest.$ac_objext \
13085    conftest$ac_exeext conftest.$ac_ext
13086LIBS=$ac_check_lib_save_LIBS
13087fi
13088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
13089$as_echo "$ac_cv_lib_cap_cap_init" >&6; }
13090if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
13091   LIBS="-lcap $LIBS"
13092
13093$as_echo "#define HAVE_LCAP 1" >>confdefs.h
13094
13095        HAVE_LCAP=yes
13096else
13097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find Linux Capabilities library(cap)..." >&5
13098$as_echo "Cannot find Linux Capabilities library(cap)..." >&6; }
13099        HAVE_LCAP=no
13100
13101fi
13102
13103  else
13104    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105$as_echo "no" >&6; }
13106  fi
13107else
13108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109$as_echo "no" >&6; }
13110fi
13111
13112# ****************** MySQL Checks ***********************
13113
13114
13115
13116# Determine MySQL installation paths
13117for i in $MYSQL_DIR /usr /usr/local /opt /opt/mysql /usr/pkg /usr/local/mysql; do
13118  test -f $i/include/mysql.h        && MYSQL_INC_DIR=$i/include        && break
13119  test -f $i/include/mysql/mysql.h  && MYSQL_INC_DIR=$i/include/mysql  && break
13120  test -f $i/mysql/include/mysql.h  && MYSQL_INC_DIR=$i/mysql/include  && break
13121done
13122
13123if test -z "$MYSQL_INC_DIR"; then
13124  if test "x$MYSQL_DIR" != "x"; then
13125    as_fn_error $? "Cannot find MySQL header files under $MYSQL_DIR" "$LINENO" 5
13126  else
13127    as_fn_error $? "Cannot find MySQL headers.  Use --with-mysql= to specify non-default path." "$LINENO" 5
13128  fi
13129fi
13130
13131for i in $MYSQL_DIR /usr /usr/local /opt /opt/mysql /usr/pkg /usr/local/mysql; do
13132   str="$i/lib64/libmysqlclient_r.*"
13133    for j in `echo $str`; do
13134      if test -r $j; then
13135        MYSQL_LIB_DIR=$i/lib64
13136        break 2
13137      fi
13138    done
13139
13140
13141   str="$i/lib64/mysql/libmysqlclient_r.*"
13142    for j in `echo $str`; do
13143      if test -r $j; then
13144        MYSQL_LIB_DIR=$i/lib64/mysql
13145        break 2
13146      fi
13147    done
13148
13149
13150   str="$i/lib/libmysqlclient_r.*"
13151    for j in `echo $str`; do
13152      if test -r $j; then
13153        MYSQL_LIB_DIR=$i/lib
13154        break 2
13155      fi
13156    done
13157
13158
13159   str="$i/lib/mysql/libmysqlclient_r.*"
13160    for j in `echo $str`; do
13161      if test -r $j; then
13162        MYSQL_LIB_DIR=$i/lib/mysql
13163        break 2
13164      fi
13165    done
13166
13167
13168done
13169
13170if test -n "$MYSQL_LIB_DIR" ; then
13171  LDFLAGS="-L$MYSQL_LIB_DIR $LDFLAGS"
13172fi
13173CFLAGS="-I$MYSQL_INC_DIR $CFLAGS"
13174
13175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r" >&5
13176$as_echo_n "checking for mysql_init in -lmysqlclient_r... " >&6; }
13177if ${ac_cv_lib_mysqlclient_r_mysql_init+:} false; then :
13178  $as_echo_n "(cached) " >&6
13179else
13180  ac_check_lib_save_LIBS=$LIBS
13181LIBS="-lmysqlclient_r  $LIBS"
13182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183/* end confdefs.h.  */
13184
13185/* Override any GCC internal prototype to avoid an error.
13186   Use char because int might match the return type of a GCC
13187   builtin and then its argument prototype would still apply.  */
13188#ifdef __cplusplus
13189extern "C"
13190#endif
13191char mysql_init ();
13192int
13193main ()
13194{
13195return mysql_init ();
13196  ;
13197  return 0;
13198}
13199_ACEOF
13200if ac_fn_c_try_link "$LINENO"; then :
13201  ac_cv_lib_mysqlclient_r_mysql_init=yes
13202else
13203  ac_cv_lib_mysqlclient_r_mysql_init=no
13204fi
13205rm -f core conftest.err conftest.$ac_objext \
13206    conftest$ac_exeext conftest.$ac_ext
13207LIBS=$ac_check_lib_save_LIBS
13208fi
13209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5
13210$as_echo "$ac_cv_lib_mysqlclient_r_mysql_init" >&6; }
13211if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = xyes; then :
13212  LIBS="-lmysqlclient_r"
13213else
13214  as_fn_error $? "MySQL libraries not found" "$LINENO" 5
13215
13216fi
13217
13218
13219# Net-SNMP includes v3 support and insists on crypto unless compiled --without-openssl
13220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Net-SNMP needs crypto support" >&5
13221$as_echo_n "checking if Net-SNMP needs crypto support... " >&6; }
13222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223/* end confdefs.h.  */
13224#include <net-snmp-config.h>
13225int
13226main ()
13227{
13228exit(NETSNMP_USE_OPENSSL != 1);
13229  ;
13230  return 0;
13231}
13232_ACEOF
13233if ac_fn_c_try_compile "$LINENO"; then :
13234    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13235$as_echo "yes" >&6; }
13236     SNMP_SSL=yes
13237
13238else
13239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13240$as_echo "no" >&6; }
13241
13242fi
13243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13244
13245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246/* end confdefs.h.  */
13247 #include <net-snmp-config.h>
13248  #include <net-snmp/utilities.h>
13249  #include <net-snmp/net-snmp-includes.h>
13250  #include <net-snmp/config_api.h>
13251  #include <net-snmp/mib_api.h>
13252int
13253main ()
13254{
13255struct snmp_session session; snmp_sess_init(&session); session.localname = strdup("hello")
13256  ;
13257  return 0;
13258}
13259_ACEOF
13260if ac_fn_c_try_compile "$LINENO"; then :
13261  havelocalname=1
13262else
13263  havelocalname=0
13264
13265fi
13266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13267
13268cat >>confdefs.h <<_ACEOF
13269#define SNMP_LOCALNAME $havelocalname
13270_ACEOF
13271
13272
13273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for snmp_timeout in -lnetsnmp" >&5
13274$as_echo_n "checking for snmp_timeout in -lnetsnmp... " >&6; }
13275if ${ac_cv_lib_netsnmp_snmp_timeout+:} false; then :
13276  $as_echo_n "(cached) " >&6
13277else
13278  ac_check_lib_save_LIBS=$LIBS
13279LIBS="-lnetsnmp  $LIBS"
13280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281/* end confdefs.h.  */
13282
13283/* Override any GCC internal prototype to avoid an error.
13284   Use char because int might match the return type of a GCC
13285   builtin and then its argument prototype would still apply.  */
13286#ifdef __cplusplus
13287extern "C"
13288#endif
13289char snmp_timeout ();
13290int
13291main ()
13292{
13293return snmp_timeout ();
13294  ;
13295  return 0;
13296}
13297_ACEOF
13298if ac_fn_c_try_link "$LINENO"; then :
13299  ac_cv_lib_netsnmp_snmp_timeout=yes
13300else
13301  ac_cv_lib_netsnmp_snmp_timeout=no
13302fi
13303rm -f core conftest.err conftest.$ac_objext \
13304    conftest$ac_exeext conftest.$ac_ext
13305LIBS=$ac_check_lib_save_LIBS
13306fi
13307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_snmp_timeout" >&5
13308$as_echo "$ac_cv_lib_netsnmp_snmp_timeout" >&6; }
13309if test "x$ac_cv_lib_netsnmp_snmp_timeout" = xyes; then :
13310  cat >>confdefs.h <<_ACEOF
13311#define HAVE_LIBNETSNMP 1
13312_ACEOF
13313
13314  LIBS="-lnetsnmp $LIBS"
13315
13316fi
13317
13318
13319# ****************** Spine Result Buffer Check ***********************
13320# Check for the default spine output buffer size
13321results_buffer=1024
13322
13323# Check whether --with-results-buffer was given.
13324if test "${with_results_buffer+set}" = set; then :
13325  withval=$with_results_buffer; results_buffer=$withval
13326
13327fi
13328
13329
13330cat >>confdefs.h <<_ACEOF
13331#define RESULTS_BUFFER $results_buffer
13332_ACEOF
13333
13334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for the spine results buffer size... $results_buffer bytes" >&5
13335$as_echo "checking for the spine results buffer size... $results_buffer bytes" >&6; }
13336
13337# ****************** Maximum Simultaneous Scripts ***********************
13338# Check for the most scripts that can be active at one time per spine process
13339max_scripts=20
13340
13341# Check whether --with-max-scripts was given.
13342if test "${with_max_scripts+set}" = set; then :
13343  withval=$with_max_scripts; max_scripts=$withval
13344
13345fi
13346
13347
13348cat >>confdefs.h <<_ACEOF
13349#define MAX_SIMULTANEOUS_SCRIPTS $max_scripts
13350_ACEOF
13351
13352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for the maximum simultaneous spine scripts... $max_scripts" >&5
13353$as_echo "checking for the maximum simultaneous spine scripts... $max_scripts" >&6; }
13354
13355# ****************** Maximum MySQL Buffer Size ***********************
13356# Check for the most scripts that can be active at one time per spine process
13357max_mysql_buffer=65536
13358
13359# Check whether --with-max-mysql-buffer was given.
13360if test "${with_max_mysql_buffer+set}" = set; then :
13361  withval=$with_max_mysql_buffer; max_mysql_buffer=$withval
13362
13363fi
13364
13365
13366cat >>confdefs.h <<_ACEOF
13367#define MAX_MYSQL_BUF_SIZE $max_mysql_buffer
13368_ACEOF
13369
13370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for the maximum MySQL buffer size... $max_mysql_buffer" >&5
13371$as_echo "checking for the maximum MySQL buffer size... $max_mysql_buffer" >&6; }
13372
13373# ****************** Traditional Popen Check ***********************
13374# If we should use the system popen or nifty popen
13375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using traditional popen" >&5
13376$as_echo_n "checking whether we are using traditional popen... " >&6; }
13377# Check whether --enable-popen was given.
13378if test "${enable_popen+set}" = set; then :
13379  enableval=$enable_popen;  ENABLED_TPOPEN=$enableval
13380else
13381   ENABLED_TPOPEN=no
13382
13383fi
13384
13385if test "$ENABLED_TPOPEN" = "yes"; then
13386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13387$as_echo "yes" >&6; }
13388
13389$as_echo "#define USING_TPOPEN 1" >>confdefs.h
13390
13391else
13392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393$as_echo "no" >&6; }
13394fi
13395
13396# ****************** Force Net-SNMP Version Checks ***********************
13397# If we should use the system popen or nifty popen
13398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to verify net-snmp library vs header versions" >&5
13399$as_echo_n "checking whether to verify net-snmp library vs header versions... " >&6; }
13400# Check whether --enable-strict-snmp was given.
13401if test "${enable_strict_snmp+set}" = set; then :
13402  enableval=$enable_strict_snmp;  ENABLED_SNMP_VERSION=$enableval
13403else
13404   ENABLED_SNMP_VERSION=no
13405
13406fi
13407
13408if test "$ENABLED_SNMP_VERSION" = "yes"; then
13409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13410$as_echo "yes" >&6; }
13411
13412$as_echo "#define VERIFY_PACKAGE_VERSION 1" >>confdefs.h
13413
13414else
13415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416$as_echo "no" >&6; }
13417fi
13418
13419# ****************** gethostbyname_r Check ***********************
13420# Linux Variant
13421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc gethostbyname_r" >&5
13422$as_echo_n "checking for glibc gethostbyname_r... " >&6; }
13423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424/* end confdefs.h.  */
13425#include <netdb.h>
13426int
13427main ()
13428{
13429struct hostent result_buf;
13430    char buf[1024];
13431    struct hostent *result;
13432    int h_erropp;
13433    gethostbyname_r("localhost",
13434      &result_buf,
13435      buf,
13436      sizeof(buf),
13437      &result,
13438      &h_erropp);
13439
13440  ;
13441  return 0;
13442}
13443_ACEOF
13444if ac_fn_c_try_link "$LINENO"; then :
13445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13446$as_echo "yes" >&6; }
13447
13448$as_echo "#define HAVE_GETHOSTBYNAME_R_GLIBC 1" >>confdefs.h
13449
13450   HAVE_GETHOSTBYNAME_R=yes
13451
13452else
13453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454$as_echo "no" >&6; }
13455
13456fi
13457rm -f core conftest.err conftest.$ac_objext \
13458    conftest$ac_exeext conftest.$ac_ext
13459
13460# Solaris or Irix Check
13461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/Irix gethostbyname_r" >&5
13462$as_echo_n "checking for Solaris/Irix gethostbyname_r... " >&6; }
13463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464/* end confdefs.h.  */
13465#include <netdb.h>
13466int
13467main ()
13468{
13469struct hostent result;
13470   char buf[1024];
13471   int h_errnop;
13472   gethostbyname_r("localhost",
13473     &result,
13474     buf,
13475     sizeof(buf),
13476     &h_errnop);
13477
13478  ;
13479  return 0;
13480}
13481_ACEOF
13482if ac_fn_c_try_link "$LINENO"; then :
13483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13484$as_echo "yes" >&6; }
13485
13486$as_echo "#define HAVE_GETHOSTBYNAME_R_SOLARIS 1" >>confdefs.h
13487
13488   HAVE_GETHOSTBYNAME_R=yes
13489
13490else
13491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492$as_echo "no" >&6; }
13493
13494fi
13495rm -f core conftest.err conftest.$ac_objext \
13496    conftest$ac_exeext conftest.$ac_ext
13497
13498# HP-UX Check
13499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX gethostbyname_r" >&5
13500$as_echo_n "checking for HP-UX gethostbyname_r... " >&6; }
13501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502/* end confdefs.h.  */
13503#include <netdb.h>
13504int
13505main ()
13506{
13507struct hostent result;
13508   char buf[1024];
13509   gethostbyname_r("localhost",
13510     &result,
13511     buf);
13512
13513  ;
13514  return 0;
13515}
13516_ACEOF
13517if ac_fn_c_try_link "$LINENO"; then :
13518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13519$as_echo "yes" >&6; }
13520
13521$as_echo "#define HAVE_GETHOSTBYNAME_R_HPUX 1" >>confdefs.h
13522
13523   HAVE_GETHOSTBYNAME_R=yes
13524else
13525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526$as_echo "no" >&6; }
13527
13528fi
13529rm -f core conftest.err conftest.$ac_objext \
13530    conftest$ac_exeext conftest.$ac_ext
13531
13532# Not Found, Use Mutex Locking
13533if test -z "$HAVE_GETHOSTBYNAME_R"; then
13534
13535$as_echo "#define HAVE_GETHOSTBYNAME_R_MUTEX_LOCK 1" >>confdefs.h
13536
13537	HAVE_GETHOSTBYNAME_R=yes
13538fi
13539
13540ac_config_files="$ac_config_files Makefile"
13541
13542cat >confcache <<\_ACEOF
13543# This file is a shell script that caches the results of configure
13544# tests run on this system so they can be shared between configure
13545# scripts and configure runs, see configure's option --config-cache.
13546# It is not useful on other systems.  If it contains results you don't
13547# want to keep, you may remove or edit it.
13548#
13549# config.status only pays attention to the cache file if you give it
13550# the --recheck option to rerun configure.
13551#
13552# `ac_cv_env_foo' variables (set or unset) will be overridden when
13553# loading this file, other *unset* `ac_cv_foo' will be assigned the
13554# following values.
13555
13556_ACEOF
13557
13558# The following way of writing the cache mishandles newlines in values,
13559# but we know of no workaround that is simple, portable, and efficient.
13560# So, we kill variables containing newlines.
13561# Ultrix sh set writes to stderr and can't be redirected directly,
13562# and sets the high bit in the cache file unless we assign to the vars.
13563(
13564  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13565    eval ac_val=\$$ac_var
13566    case $ac_val in #(
13567    *${as_nl}*)
13568      case $ac_var in #(
13569      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13570$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13571      esac
13572      case $ac_var in #(
13573      _ | IFS | as_nl) ;; #(
13574      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13575      *) { eval $ac_var=; unset $ac_var;} ;;
13576      esac ;;
13577    esac
13578  done
13579
13580  (set) 2>&1 |
13581    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13582    *${as_nl}ac_space=\ *)
13583      # `set' does not quote correctly, so add quotes: double-quote
13584      # substitution turns \\\\ into \\, and sed turns \\ into \.
13585      sed -n \
13586	"s/'/'\\\\''/g;
13587	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13588      ;; #(
13589    *)
13590      # `set' quotes correctly as required by POSIX, so do not add quotes.
13591      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13592      ;;
13593    esac |
13594    sort
13595) |
13596  sed '
13597     /^ac_cv_env_/b end
13598     t clear
13599     :clear
13600     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13601     t end
13602     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13603     :end' >>confcache
13604if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13605  if test -w "$cache_file"; then
13606    if test "x$cache_file" != "x/dev/null"; then
13607      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13608$as_echo "$as_me: updating cache $cache_file" >&6;}
13609      if test ! -f "$cache_file" || test -h "$cache_file"; then
13610	cat confcache >"$cache_file"
13611      else
13612        case $cache_file in #(
13613        */* | ?:*)
13614	  mv -f confcache "$cache_file"$$ &&
13615	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13616        *)
13617	  mv -f confcache "$cache_file" ;;
13618	esac
13619      fi
13620    fi
13621  else
13622    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13623$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13624  fi
13625fi
13626rm -f confcache
13627
13628test "x$prefix" = xNONE && prefix=$ac_default_prefix
13629# Let make expand exec_prefix.
13630test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13631
13632DEFS=-DHAVE_CONFIG_H
13633
13634ac_libobjs=
13635ac_ltlibobjs=
13636for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13637  # 1. Remove the extension, and $U if already installed.
13638  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13639  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13640  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13641  #    will be set to the directory where LIBOBJS objects are built.
13642  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13643  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13644done
13645LIBOBJS=$ac_libobjs
13646
13647LTLIBOBJS=$ac_ltlibobjs
13648
13649
13650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13651$as_echo_n "checking that generated files are newer than configure... " >&6; }
13652   if test -n "$am_sleep_pid"; then
13653     # Hide warnings about reused PIDs.
13654     wait $am_sleep_pid 2>/dev/null
13655   fi
13656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13657$as_echo "done" >&6; }
13658 if test -n "$EXEEXT"; then
13659  am__EXEEXT_TRUE=
13660  am__EXEEXT_FALSE='#'
13661else
13662  am__EXEEXT_TRUE='#'
13663  am__EXEEXT_FALSE=
13664fi
13665
13666if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13667  as_fn_error $? "conditional \"AMDEP\" was never defined.
13668Usually this means the macro was only invoked conditionally." "$LINENO" 5
13669fi
13670if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13671  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13672Usually this means the macro was only invoked conditionally." "$LINENO" 5
13673fi
13674if test -z "${HAVE_HELP2MAN_TRUE}" && test -z "${HAVE_HELP2MAN_FALSE}"; then
13675  as_fn_error $? "conditional \"HAVE_HELP2MAN\" was never defined.
13676Usually this means the macro was only invoked conditionally." "$LINENO" 5
13677fi
13678
13679: "${CONFIG_STATUS=./config.status}"
13680ac_write_fail=0
13681ac_clean_files_save=$ac_clean_files
13682ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13683{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13684$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13685as_write_fail=0
13686cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13687#! $SHELL
13688# Generated by $as_me.
13689# Run this file to recreate the current configuration.
13690# Compiler output produced by configure, useful for debugging
13691# configure, is in config.log if it exists.
13692
13693debug=false
13694ac_cs_recheck=false
13695ac_cs_silent=false
13696
13697SHELL=\${CONFIG_SHELL-$SHELL}
13698export SHELL
13699_ASEOF
13700cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13701## -------------------- ##
13702## M4sh Initialization. ##
13703## -------------------- ##
13704
13705# Be more Bourne compatible
13706DUALCASE=1; export DUALCASE # for MKS sh
13707if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13708  emulate sh
13709  NULLCMD=:
13710  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13711  # is contrary to our usage.  Disable this feature.
13712  alias -g '${1+"$@"}'='"$@"'
13713  setopt NO_GLOB_SUBST
13714else
13715  case `(set -o) 2>/dev/null` in #(
13716  *posix*) :
13717    set -o posix ;; #(
13718  *) :
13719     ;;
13720esac
13721fi
13722
13723
13724as_nl='
13725'
13726export as_nl
13727# Printing a long string crashes Solaris 7 /usr/bin/printf.
13728as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13729as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13730as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13731# Prefer a ksh shell builtin over an external printf program on Solaris,
13732# but without wasting forks for bash or zsh.
13733if test -z "$BASH_VERSION$ZSH_VERSION" \
13734    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13735  as_echo='print -r --'
13736  as_echo_n='print -rn --'
13737elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13738  as_echo='printf %s\n'
13739  as_echo_n='printf %s'
13740else
13741  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13742    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13743    as_echo_n='/usr/ucb/echo -n'
13744  else
13745    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13746    as_echo_n_body='eval
13747      arg=$1;
13748      case $arg in #(
13749      *"$as_nl"*)
13750	expr "X$arg" : "X\\(.*\\)$as_nl";
13751	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13752      esac;
13753      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13754    '
13755    export as_echo_n_body
13756    as_echo_n='sh -c $as_echo_n_body as_echo'
13757  fi
13758  export as_echo_body
13759  as_echo='sh -c $as_echo_body as_echo'
13760fi
13761
13762# The user is always right.
13763if test "${PATH_SEPARATOR+set}" != set; then
13764  PATH_SEPARATOR=:
13765  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13766    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13767      PATH_SEPARATOR=';'
13768  }
13769fi
13770
13771
13772# IFS
13773# We need space, tab and new line, in precisely that order.  Quoting is
13774# there to prevent editors from complaining about space-tab.
13775# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13776# splitting by setting IFS to empty value.)
13777IFS=" ""	$as_nl"
13778
13779# Find who we are.  Look in the path if we contain no directory separator.
13780as_myself=
13781case $0 in #((
13782  *[\\/]* ) as_myself=$0 ;;
13783  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13784for as_dir in $PATH
13785do
13786  IFS=$as_save_IFS
13787  test -z "$as_dir" && as_dir=.
13788    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13789  done
13790IFS=$as_save_IFS
13791
13792     ;;
13793esac
13794# We did not find ourselves, most probably we were run as `sh COMMAND'
13795# in which case we are not to be found in the path.
13796if test "x$as_myself" = x; then
13797  as_myself=$0
13798fi
13799if test ! -f "$as_myself"; then
13800  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13801  exit 1
13802fi
13803
13804# Unset variables that we do not need and which cause bugs (e.g. in
13805# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13806# suppresses any "Segmentation fault" message there.  '((' could
13807# trigger a bug in pdksh 5.2.14.
13808for as_var in BASH_ENV ENV MAIL MAILPATH
13809do eval test x\${$as_var+set} = xset \
13810  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13811done
13812PS1='$ '
13813PS2='> '
13814PS4='+ '
13815
13816# NLS nuisances.
13817LC_ALL=C
13818export LC_ALL
13819LANGUAGE=C
13820export LANGUAGE
13821
13822# CDPATH.
13823(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13824
13825
13826# as_fn_error STATUS ERROR [LINENO LOG_FD]
13827# ----------------------------------------
13828# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13829# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13830# script with STATUS, using 1 if that was 0.
13831as_fn_error ()
13832{
13833  as_status=$1; test $as_status -eq 0 && as_status=1
13834  if test "$4"; then
13835    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13836    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13837  fi
13838  $as_echo "$as_me: error: $2" >&2
13839  as_fn_exit $as_status
13840} # as_fn_error
13841
13842
13843# as_fn_set_status STATUS
13844# -----------------------
13845# Set $? to STATUS, without forking.
13846as_fn_set_status ()
13847{
13848  return $1
13849} # as_fn_set_status
13850
13851# as_fn_exit STATUS
13852# -----------------
13853# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13854as_fn_exit ()
13855{
13856  set +e
13857  as_fn_set_status $1
13858  exit $1
13859} # as_fn_exit
13860
13861# as_fn_unset VAR
13862# ---------------
13863# Portably unset VAR.
13864as_fn_unset ()
13865{
13866  { eval $1=; unset $1;}
13867}
13868as_unset=as_fn_unset
13869# as_fn_append VAR VALUE
13870# ----------------------
13871# Append the text in VALUE to the end of the definition contained in VAR. Take
13872# advantage of any shell optimizations that allow amortized linear growth over
13873# repeated appends, instead of the typical quadratic growth present in naive
13874# implementations.
13875if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13876  eval 'as_fn_append ()
13877  {
13878    eval $1+=\$2
13879  }'
13880else
13881  as_fn_append ()
13882  {
13883    eval $1=\$$1\$2
13884  }
13885fi # as_fn_append
13886
13887# as_fn_arith ARG...
13888# ------------------
13889# Perform arithmetic evaluation on the ARGs, and store the result in the
13890# global $as_val. Take advantage of shells that can avoid forks. The arguments
13891# must be portable across $(()) and expr.
13892if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13893  eval 'as_fn_arith ()
13894  {
13895    as_val=$(( $* ))
13896  }'
13897else
13898  as_fn_arith ()
13899  {
13900    as_val=`expr "$@" || test $? -eq 1`
13901  }
13902fi # as_fn_arith
13903
13904
13905if expr a : '\(a\)' >/dev/null 2>&1 &&
13906   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13907  as_expr=expr
13908else
13909  as_expr=false
13910fi
13911
13912if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13913  as_basename=basename
13914else
13915  as_basename=false
13916fi
13917
13918if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13919  as_dirname=dirname
13920else
13921  as_dirname=false
13922fi
13923
13924as_me=`$as_basename -- "$0" ||
13925$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13926	 X"$0" : 'X\(//\)$' \| \
13927	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13928$as_echo X/"$0" |
13929    sed '/^.*\/\([^/][^/]*\)\/*$/{
13930	    s//\1/
13931	    q
13932	  }
13933	  /^X\/\(\/\/\)$/{
13934	    s//\1/
13935	    q
13936	  }
13937	  /^X\/\(\/\).*/{
13938	    s//\1/
13939	    q
13940	  }
13941	  s/.*/./; q'`
13942
13943# Avoid depending upon Character Ranges.
13944as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13945as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13946as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13947as_cr_digits='0123456789'
13948as_cr_alnum=$as_cr_Letters$as_cr_digits
13949
13950ECHO_C= ECHO_N= ECHO_T=
13951case `echo -n x` in #(((((
13952-n*)
13953  case `echo 'xy\c'` in
13954  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13955  xy)  ECHO_C='\c';;
13956  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13957       ECHO_T='	';;
13958  esac;;
13959*)
13960  ECHO_N='-n';;
13961esac
13962
13963rm -f conf$$ conf$$.exe conf$$.file
13964if test -d conf$$.dir; then
13965  rm -f conf$$.dir/conf$$.file
13966else
13967  rm -f conf$$.dir
13968  mkdir conf$$.dir 2>/dev/null
13969fi
13970if (echo >conf$$.file) 2>/dev/null; then
13971  if ln -s conf$$.file conf$$ 2>/dev/null; then
13972    as_ln_s='ln -s'
13973    # ... but there are two gotchas:
13974    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13975    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13976    # In both cases, we have to default to `cp -pR'.
13977    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13978      as_ln_s='cp -pR'
13979  elif ln conf$$.file conf$$ 2>/dev/null; then
13980    as_ln_s=ln
13981  else
13982    as_ln_s='cp -pR'
13983  fi
13984else
13985  as_ln_s='cp -pR'
13986fi
13987rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13988rmdir conf$$.dir 2>/dev/null
13989
13990
13991# as_fn_mkdir_p
13992# -------------
13993# Create "$as_dir" as a directory, including parents if necessary.
13994as_fn_mkdir_p ()
13995{
13996
13997  case $as_dir in #(
13998  -*) as_dir=./$as_dir;;
13999  esac
14000  test -d "$as_dir" || eval $as_mkdir_p || {
14001    as_dirs=
14002    while :; do
14003      case $as_dir in #(
14004      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14005      *) as_qdir=$as_dir;;
14006      esac
14007      as_dirs="'$as_qdir' $as_dirs"
14008      as_dir=`$as_dirname -- "$as_dir" ||
14009$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14010	 X"$as_dir" : 'X\(//\)[^/]' \| \
14011	 X"$as_dir" : 'X\(//\)$' \| \
14012	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14013$as_echo X"$as_dir" |
14014    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14015	    s//\1/
14016	    q
14017	  }
14018	  /^X\(\/\/\)[^/].*/{
14019	    s//\1/
14020	    q
14021	  }
14022	  /^X\(\/\/\)$/{
14023	    s//\1/
14024	    q
14025	  }
14026	  /^X\(\/\).*/{
14027	    s//\1/
14028	    q
14029	  }
14030	  s/.*/./; q'`
14031      test -d "$as_dir" && break
14032    done
14033    test -z "$as_dirs" || eval "mkdir $as_dirs"
14034  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14035
14036
14037} # as_fn_mkdir_p
14038if mkdir -p . 2>/dev/null; then
14039  as_mkdir_p='mkdir -p "$as_dir"'
14040else
14041  test -d ./-p && rmdir ./-p
14042  as_mkdir_p=false
14043fi
14044
14045
14046# as_fn_executable_p FILE
14047# -----------------------
14048# Test if FILE is an executable regular file.
14049as_fn_executable_p ()
14050{
14051  test -f "$1" && test -x "$1"
14052} # as_fn_executable_p
14053as_test_x='test -x'
14054as_executable_p=as_fn_executable_p
14055
14056# Sed expression to map a string onto a valid CPP name.
14057as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14058
14059# Sed expression to map a string onto a valid variable name.
14060as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14061
14062
14063exec 6>&1
14064## ----------------------------------- ##
14065## Main body of $CONFIG_STATUS script. ##
14066## ----------------------------------- ##
14067_ASEOF
14068test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14069
14070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14071# Save the log message, to keep $0 and so on meaningful, and to
14072# report actual input values of CONFIG_FILES etc. instead of their
14073# values after options handling.
14074ac_log="
14075This file was extended by Spine Poller $as_me 0.8.8h, which was
14076generated by GNU Autoconf 2.69.  Invocation command line was
14077
14078  CONFIG_FILES    = $CONFIG_FILES
14079  CONFIG_HEADERS  = $CONFIG_HEADERS
14080  CONFIG_LINKS    = $CONFIG_LINKS
14081  CONFIG_COMMANDS = $CONFIG_COMMANDS
14082  $ $0 $@
14083
14084on `(hostname || uname -n) 2>/dev/null | sed 1q`
14085"
14086
14087_ACEOF
14088
14089case $ac_config_files in *"
14090"*) set x $ac_config_files; shift; ac_config_files=$*;;
14091esac
14092
14093case $ac_config_headers in *"
14094"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14095esac
14096
14097
14098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14099# Files that config.status was made for.
14100config_files="$ac_config_files"
14101config_headers="$ac_config_headers"
14102config_commands="$ac_config_commands"
14103
14104_ACEOF
14105
14106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14107ac_cs_usage="\
14108\`$as_me' instantiates files and other configuration actions
14109from templates according to the current configuration.  Unless the files
14110and actions are specified as TAGs, all are instantiated by default.
14111
14112Usage: $0 [OPTION]... [TAG]...
14113
14114  -h, --help       print this help, then exit
14115  -V, --version    print version number and configuration settings, then exit
14116      --config     print configuration, then exit
14117  -q, --quiet, --silent
14118                   do not print progress messages
14119  -d, --debug      don't remove temporary files
14120      --recheck    update $as_me by reconfiguring in the same conditions
14121      --file=FILE[:TEMPLATE]
14122                   instantiate the configuration file FILE
14123      --header=FILE[:TEMPLATE]
14124                   instantiate the configuration header FILE
14125
14126Configuration files:
14127$config_files
14128
14129Configuration headers:
14130$config_headers
14131
14132Configuration commands:
14133$config_commands
14134
14135Report bugs to <http://www.cacti.net/bugs.php>."
14136
14137_ACEOF
14138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14139ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14140ac_cs_version="\\
14141Spine Poller config.status 0.8.8h
14142configured by $0, generated by GNU Autoconf 2.69,
14143  with options \\"\$ac_cs_config\\"
14144
14145Copyright (C) 2012 Free Software Foundation, Inc.
14146This config.status script is free software; the Free Software Foundation
14147gives unlimited permission to copy, distribute and modify it."
14148
14149ac_pwd='$ac_pwd'
14150srcdir='$srcdir'
14151INSTALL='$INSTALL'
14152MKDIR_P='$MKDIR_P'
14153AWK='$AWK'
14154test -n "\$AWK" || AWK=awk
14155_ACEOF
14156
14157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14158# The default lists apply if the user does not specify any file.
14159ac_need_defaults=:
14160while test $# != 0
14161do
14162  case $1 in
14163  --*=?*)
14164    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14165    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14166    ac_shift=:
14167    ;;
14168  --*=)
14169    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14170    ac_optarg=
14171    ac_shift=:
14172    ;;
14173  *)
14174    ac_option=$1
14175    ac_optarg=$2
14176    ac_shift=shift
14177    ;;
14178  esac
14179
14180  case $ac_option in
14181  # Handling of the options.
14182  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14183    ac_cs_recheck=: ;;
14184  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14185    $as_echo "$ac_cs_version"; exit ;;
14186  --config | --confi | --conf | --con | --co | --c )
14187    $as_echo "$ac_cs_config"; exit ;;
14188  --debug | --debu | --deb | --de | --d | -d )
14189    debug=: ;;
14190  --file | --fil | --fi | --f )
14191    $ac_shift
14192    case $ac_optarg in
14193    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14194    '') as_fn_error $? "missing file argument" ;;
14195    esac
14196    as_fn_append CONFIG_FILES " '$ac_optarg'"
14197    ac_need_defaults=false;;
14198  --header | --heade | --head | --hea )
14199    $ac_shift
14200    case $ac_optarg in
14201    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14202    esac
14203    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14204    ac_need_defaults=false;;
14205  --he | --h)
14206    # Conflict between --help and --header
14207    as_fn_error $? "ambiguous option: \`$1'
14208Try \`$0 --help' for more information.";;
14209  --help | --hel | -h )
14210    $as_echo "$ac_cs_usage"; exit ;;
14211  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14212  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14213    ac_cs_silent=: ;;
14214
14215  # This is an error.
14216  -*) as_fn_error $? "unrecognized option: \`$1'
14217Try \`$0 --help' for more information." ;;
14218
14219  *) as_fn_append ac_config_targets " $1"
14220     ac_need_defaults=false ;;
14221
14222  esac
14223  shift
14224done
14225
14226ac_configure_extra_args=
14227
14228if $ac_cs_silent; then
14229  exec 6>/dev/null
14230  ac_configure_extra_args="$ac_configure_extra_args --silent"
14231fi
14232
14233_ACEOF
14234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14235if \$ac_cs_recheck; then
14236  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14237  shift
14238  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14239  CONFIG_SHELL='$SHELL'
14240  export CONFIG_SHELL
14241  exec "\$@"
14242fi
14243
14244_ACEOF
14245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14246exec 5>>config.log
14247{
14248  echo
14249  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14250## Running $as_me. ##
14251_ASBOX
14252  $as_echo "$ac_log"
14253} >&5
14254
14255_ACEOF
14256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14257#
14258# INIT-COMMANDS
14259#
14260AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14261
14262
14263# The HP-UX ksh and POSIX shell print the target directory to stdout
14264# if CDPATH is set.
14265(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14266
14267sed_quote_subst='$sed_quote_subst'
14268double_quote_subst='$double_quote_subst'
14269delay_variable_subst='$delay_variable_subst'
14270macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14271macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14272enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14273enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14274pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14275enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14276shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14277SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14278ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14279PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14280host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14281host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14282host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14283build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14284build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14285build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14286SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14287Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14288GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14289EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14290FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14291LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14292NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14293LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14294max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14295ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14296exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14297lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14298lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14299lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14300lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14301lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14302reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14303reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14304OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14305deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14306file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14307file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14308want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14309DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14310sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14311AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14312AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14313archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14314STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14315RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14316old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14317old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14318old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14319lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14320CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14321CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14322compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14323GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14324lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14325lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14326lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14327lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14328lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14329lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14330nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14331lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14332lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14333objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14334MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14335lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14336lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14337lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14338lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14339lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14340need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14341MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14342DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14343NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14344LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14345OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14346OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14347libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14348shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14349extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14350archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14351enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14352export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14353whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14354compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14355old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14356old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14357archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14358archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14359module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14360module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14361with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14362allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14363no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14364hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14365hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14366hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14367hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14368hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14369hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14370hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14371inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14372link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14373always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14374export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14375exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14376include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14377prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14378postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14379file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14380variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14381need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14382need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14383version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14384runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14385shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14386shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14387libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14388library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14389soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14390install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14391postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14392postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14393finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14394finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14395hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14396sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14397configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14398configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14399hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14400enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14401enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14402enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14403old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14404striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14405
14406LTCC='$LTCC'
14407LTCFLAGS='$LTCFLAGS'
14408compiler='$compiler_DEFAULT'
14409
14410# A function that is used when there is no print builtin or printf.
14411func_fallback_echo ()
14412{
14413  eval 'cat <<_LTECHO_EOF
14414\$1
14415_LTECHO_EOF'
14416}
14417
14418# Quote evaled strings.
14419for var in SHELL \
14420ECHO \
14421PATH_SEPARATOR \
14422SED \
14423GREP \
14424EGREP \
14425FGREP \
14426LD \
14427NM \
14428LN_S \
14429lt_SP2NL \
14430lt_NL2SP \
14431reload_flag \
14432OBJDUMP \
14433deplibs_check_method \
14434file_magic_cmd \
14435file_magic_glob \
14436want_nocaseglob \
14437DLLTOOL \
14438sharedlib_from_linklib_cmd \
14439AR \
14440AR_FLAGS \
14441archiver_list_spec \
14442STRIP \
14443RANLIB \
14444CC \
14445CFLAGS \
14446compiler \
14447lt_cv_sys_global_symbol_pipe \
14448lt_cv_sys_global_symbol_to_cdecl \
14449lt_cv_sys_global_symbol_to_import \
14450lt_cv_sys_global_symbol_to_c_name_address \
14451lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14452lt_cv_nm_interface \
14453nm_file_list_spec \
14454lt_cv_truncate_bin \
14455lt_prog_compiler_no_builtin_flag \
14456lt_prog_compiler_pic \
14457lt_prog_compiler_wl \
14458lt_prog_compiler_static \
14459lt_cv_prog_compiler_c_o \
14460need_locks \
14461MANIFEST_TOOL \
14462DSYMUTIL \
14463NMEDIT \
14464LIPO \
14465OTOOL \
14466OTOOL64 \
14467shrext_cmds \
14468export_dynamic_flag_spec \
14469whole_archive_flag_spec \
14470compiler_needs_object \
14471with_gnu_ld \
14472allow_undefined_flag \
14473no_undefined_flag \
14474hardcode_libdir_flag_spec \
14475hardcode_libdir_separator \
14476exclude_expsyms \
14477include_expsyms \
14478file_list_spec \
14479variables_saved_for_relink \
14480libname_spec \
14481library_names_spec \
14482soname_spec \
14483install_override_mode \
14484finish_eval \
14485old_striplib \
14486striplib; do
14487    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14488    *[\\\\\\\`\\"\\\$]*)
14489      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14490      ;;
14491    *)
14492      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14493      ;;
14494    esac
14495done
14496
14497# Double-quote double-evaled strings.
14498for var in reload_cmds \
14499old_postinstall_cmds \
14500old_postuninstall_cmds \
14501old_archive_cmds \
14502extract_expsyms_cmds \
14503old_archive_from_new_cmds \
14504old_archive_from_expsyms_cmds \
14505archive_cmds \
14506archive_expsym_cmds \
14507module_cmds \
14508module_expsym_cmds \
14509export_symbols_cmds \
14510prelink_cmds \
14511postlink_cmds \
14512postinstall_cmds \
14513postuninstall_cmds \
14514finish_cmds \
14515sys_lib_search_path_spec \
14516configure_time_dlsearch_path \
14517configure_time_lt_sys_library_path; do
14518    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14519    *[\\\\\\\`\\"\\\$]*)
14520      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14521      ;;
14522    *)
14523      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14524      ;;
14525    esac
14526done
14527
14528ac_aux_dir='$ac_aux_dir'
14529
14530# See if we are running on zsh, and set the options that allow our
14531# commands through without removal of \ escapes INIT.
14532if test -n "\${ZSH_VERSION+set}"; then
14533   setopt NO_GLOB_SUBST
14534fi
14535
14536
14537    PACKAGE='$PACKAGE'
14538    VERSION='$VERSION'
14539    RM='$RM'
14540    ofile='$ofile'
14541
14542
14543
14544
14545_ACEOF
14546
14547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14548
14549# Handling of arguments.
14550for ac_config_target in $ac_config_targets
14551do
14552  case $ac_config_target in
14553    "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
14554    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14555    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14556    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14557
14558  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14559  esac
14560done
14561
14562
14563# If the user did not use the arguments to specify the items to instantiate,
14564# then the envvar interface is used.  Set only those that are not.
14565# We use the long form for the default assignment because of an extremely
14566# bizarre bug on SunOS 4.1.3.
14567if $ac_need_defaults; then
14568  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14569  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14570  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14571fi
14572
14573# Have a temporary directory for convenience.  Make it in the build tree
14574# simply because there is no reason against having it here, and in addition,
14575# creating and moving files from /tmp can sometimes cause problems.
14576# Hook for its removal unless debugging.
14577# Note that there is a small window in which the directory will not be cleaned:
14578# after its creation but before its name has been assigned to `$tmp'.
14579$debug ||
14580{
14581  tmp= ac_tmp=
14582  trap 'exit_status=$?
14583  : "${ac_tmp:=$tmp}"
14584  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14585' 0
14586  trap 'as_fn_exit 1' 1 2 13 15
14587}
14588# Create a (secure) tmp directory for tmp files.
14589
14590{
14591  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14592  test -d "$tmp"
14593}  ||
14594{
14595  tmp=./conf$$-$RANDOM
14596  (umask 077 && mkdir "$tmp")
14597} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14598ac_tmp=$tmp
14599
14600# Set up the scripts for CONFIG_FILES section.
14601# No need to generate them if there are no CONFIG_FILES.
14602# This happens for instance with `./config.status config.h'.
14603if test -n "$CONFIG_FILES"; then
14604
14605
14606ac_cr=`echo X | tr X '\015'`
14607# On cygwin, bash can eat \r inside `` if the user requested igncr.
14608# But we know of no other shell where ac_cr would be empty at this
14609# point, so we can use a bashism as a fallback.
14610if test "x$ac_cr" = x; then
14611  eval ac_cr=\$\'\\r\'
14612fi
14613ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14614if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14615  ac_cs_awk_cr='\\r'
14616else
14617  ac_cs_awk_cr=$ac_cr
14618fi
14619
14620echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14621_ACEOF
14622
14623
14624{
14625  echo "cat >conf$$subs.awk <<_ACEOF" &&
14626  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14627  echo "_ACEOF"
14628} >conf$$subs.sh ||
14629  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14630ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14631ac_delim='%!_!# '
14632for ac_last_try in false false false false false :; do
14633  . ./conf$$subs.sh ||
14634    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14635
14636  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14637  if test $ac_delim_n = $ac_delim_num; then
14638    break
14639  elif $ac_last_try; then
14640    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14641  else
14642    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14643  fi
14644done
14645rm -f conf$$subs.sh
14646
14647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14648cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14649_ACEOF
14650sed -n '
14651h
14652s/^/S["/; s/!.*/"]=/
14653p
14654g
14655s/^[^!]*!//
14656:repl
14657t repl
14658s/'"$ac_delim"'$//
14659t delim
14660:nl
14661h
14662s/\(.\{148\}\)..*/\1/
14663t more1
14664s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14665p
14666n
14667b repl
14668:more1
14669s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14670p
14671g
14672s/.\{148\}//
14673t nl
14674:delim
14675h
14676s/\(.\{148\}\)..*/\1/
14677t more2
14678s/["\\]/\\&/g; s/^/"/; s/$/"/
14679p
14680b
14681:more2
14682s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14683p
14684g
14685s/.\{148\}//
14686t delim
14687' <conf$$subs.awk | sed '
14688/^[^""]/{
14689  N
14690  s/\n//
14691}
14692' >>$CONFIG_STATUS || ac_write_fail=1
14693rm -f conf$$subs.awk
14694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14695_ACAWK
14696cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14697  for (key in S) S_is_set[key] = 1
14698  FS = ""
14699
14700}
14701{
14702  line = $ 0
14703  nfields = split(line, field, "@")
14704  substed = 0
14705  len = length(field[1])
14706  for (i = 2; i < nfields; i++) {
14707    key = field[i]
14708    keylen = length(key)
14709    if (S_is_set[key]) {
14710      value = S[key]
14711      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14712      len += length(value) + length(field[++i])
14713      substed = 1
14714    } else
14715      len += 1 + keylen
14716  }
14717
14718  print line
14719}
14720
14721_ACAWK
14722_ACEOF
14723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14724if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14725  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14726else
14727  cat
14728fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14729  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14730_ACEOF
14731
14732# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14733# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14734# trailing colons and then remove the whole line if VPATH becomes empty
14735# (actually we leave an empty line to preserve line numbers).
14736if test "x$srcdir" = x.; then
14737  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14738h
14739s///
14740s/^/:/
14741s/[	 ]*$/:/
14742s/:\$(srcdir):/:/g
14743s/:\${srcdir}:/:/g
14744s/:@srcdir@:/:/g
14745s/^:*//
14746s/:*$//
14747x
14748s/\(=[	 ]*\).*/\1/
14749G
14750s/\n//
14751s/^[^=]*=[	 ]*$//
14752}'
14753fi
14754
14755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14756fi # test -n "$CONFIG_FILES"
14757
14758# Set up the scripts for CONFIG_HEADERS section.
14759# No need to generate them if there are no CONFIG_HEADERS.
14760# This happens for instance with `./config.status Makefile'.
14761if test -n "$CONFIG_HEADERS"; then
14762cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14763BEGIN {
14764_ACEOF
14765
14766# Transform confdefs.h into an awk script `defines.awk', embedded as
14767# here-document in config.status, that substitutes the proper values into
14768# config.h.in to produce config.h.
14769
14770# Create a delimiter string that does not exist in confdefs.h, to ease
14771# handling of long lines.
14772ac_delim='%!_!# '
14773for ac_last_try in false false :; do
14774  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14775  if test -z "$ac_tt"; then
14776    break
14777  elif $ac_last_try; then
14778    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14779  else
14780    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14781  fi
14782done
14783
14784# For the awk script, D is an array of macro values keyed by name,
14785# likewise P contains macro parameters if any.  Preserve backslash
14786# newline sequences.
14787
14788ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14789sed -n '
14790s/.\{148\}/&'"$ac_delim"'/g
14791t rset
14792:rset
14793s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14794t def
14795d
14796:def
14797s/\\$//
14798t bsnl
14799s/["\\]/\\&/g
14800s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14801D["\1"]=" \3"/p
14802s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14803d
14804:bsnl
14805s/["\\]/\\&/g
14806s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14807D["\1"]=" \3\\\\\\n"\\/p
14808t cont
14809s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14810t cont
14811d
14812:cont
14813n
14814s/.\{148\}/&'"$ac_delim"'/g
14815t clear
14816:clear
14817s/\\$//
14818t bsnlc
14819s/["\\]/\\&/g; s/^/"/; s/$/"/p
14820d
14821:bsnlc
14822s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14823b cont
14824' <confdefs.h | sed '
14825s/'"$ac_delim"'/"\\\
14826"/g' >>$CONFIG_STATUS || ac_write_fail=1
14827
14828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14829  for (key in D) D_is_set[key] = 1
14830  FS = ""
14831}
14832/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14833  line = \$ 0
14834  split(line, arg, " ")
14835  if (arg[1] == "#") {
14836    defundef = arg[2]
14837    mac1 = arg[3]
14838  } else {
14839    defundef = substr(arg[1], 2)
14840    mac1 = arg[2]
14841  }
14842  split(mac1, mac2, "(") #)
14843  macro = mac2[1]
14844  prefix = substr(line, 1, index(line, defundef) - 1)
14845  if (D_is_set[macro]) {
14846    # Preserve the white space surrounding the "#".
14847    print prefix "define", macro P[macro] D[macro]
14848    next
14849  } else {
14850    # Replace #undef with comments.  This is necessary, for example,
14851    # in the case of _POSIX_SOURCE, which is predefined and required
14852    # on some systems where configure will not decide to define it.
14853    if (defundef == "undef") {
14854      print "/*", prefix defundef, macro, "*/"
14855      next
14856    }
14857  }
14858}
14859{ print }
14860_ACAWK
14861_ACEOF
14862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14863  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14864fi # test -n "$CONFIG_HEADERS"
14865
14866
14867eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14868shift
14869for ac_tag
14870do
14871  case $ac_tag in
14872  :[FHLC]) ac_mode=$ac_tag; continue;;
14873  esac
14874  case $ac_mode$ac_tag in
14875  :[FHL]*:*);;
14876  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14877  :[FH]-) ac_tag=-:-;;
14878  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14879  esac
14880  ac_save_IFS=$IFS
14881  IFS=:
14882  set x $ac_tag
14883  IFS=$ac_save_IFS
14884  shift
14885  ac_file=$1
14886  shift
14887
14888  case $ac_mode in
14889  :L) ac_source=$1;;
14890  :[FH])
14891    ac_file_inputs=
14892    for ac_f
14893    do
14894      case $ac_f in
14895      -) ac_f="$ac_tmp/stdin";;
14896      *) # Look for the file first in the build tree, then in the source tree
14897	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14898	 # because $ac_f cannot contain `:'.
14899	 test -f "$ac_f" ||
14900	   case $ac_f in
14901	   [\\/$]*) false;;
14902	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14903	   esac ||
14904	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14905      esac
14906      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14907      as_fn_append ac_file_inputs " '$ac_f'"
14908    done
14909
14910    # Let's still pretend it is `configure' which instantiates (i.e., don't
14911    # use $as_me), people would be surprised to read:
14912    #    /* config.h.  Generated by config.status.  */
14913    configure_input='Generated from '`
14914	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14915	`' by configure.'
14916    if test x"$ac_file" != x-; then
14917      configure_input="$ac_file.  $configure_input"
14918      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14919$as_echo "$as_me: creating $ac_file" >&6;}
14920    fi
14921    # Neutralize special characters interpreted by sed in replacement strings.
14922    case $configure_input in #(
14923    *\&* | *\|* | *\\* )
14924       ac_sed_conf_input=`$as_echo "$configure_input" |
14925       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14926    *) ac_sed_conf_input=$configure_input;;
14927    esac
14928
14929    case $ac_tag in
14930    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14931      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14932    esac
14933    ;;
14934  esac
14935
14936  ac_dir=`$as_dirname -- "$ac_file" ||
14937$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14938	 X"$ac_file" : 'X\(//\)[^/]' \| \
14939	 X"$ac_file" : 'X\(//\)$' \| \
14940	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14941$as_echo X"$ac_file" |
14942    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14943	    s//\1/
14944	    q
14945	  }
14946	  /^X\(\/\/\)[^/].*/{
14947	    s//\1/
14948	    q
14949	  }
14950	  /^X\(\/\/\)$/{
14951	    s//\1/
14952	    q
14953	  }
14954	  /^X\(\/\).*/{
14955	    s//\1/
14956	    q
14957	  }
14958	  s/.*/./; q'`
14959  as_dir="$ac_dir"; as_fn_mkdir_p
14960  ac_builddir=.
14961
14962case "$ac_dir" in
14963.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14964*)
14965  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14966  # A ".." for each directory in $ac_dir_suffix.
14967  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14968  case $ac_top_builddir_sub in
14969  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14970  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14971  esac ;;
14972esac
14973ac_abs_top_builddir=$ac_pwd
14974ac_abs_builddir=$ac_pwd$ac_dir_suffix
14975# for backward compatibility:
14976ac_top_builddir=$ac_top_build_prefix
14977
14978case $srcdir in
14979  .)  # We are building in place.
14980    ac_srcdir=.
14981    ac_top_srcdir=$ac_top_builddir_sub
14982    ac_abs_top_srcdir=$ac_pwd ;;
14983  [\\/]* | ?:[\\/]* )  # Absolute name.
14984    ac_srcdir=$srcdir$ac_dir_suffix;
14985    ac_top_srcdir=$srcdir
14986    ac_abs_top_srcdir=$srcdir ;;
14987  *) # Relative name.
14988    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14989    ac_top_srcdir=$ac_top_build_prefix$srcdir
14990    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14991esac
14992ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14993
14994
14995  case $ac_mode in
14996  :F)
14997  #
14998  # CONFIG_FILE
14999  #
15000
15001  case $INSTALL in
15002  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15003  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15004  esac
15005  ac_MKDIR_P=$MKDIR_P
15006  case $MKDIR_P in
15007  [\\/$]* | ?:[\\/]* ) ;;
15008  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15009  esac
15010_ACEOF
15011
15012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15013# If the template does not know about datarootdir, expand it.
15014# FIXME: This hack should be removed a few years after 2.60.
15015ac_datarootdir_hack=; ac_datarootdir_seen=
15016ac_sed_dataroot='
15017/datarootdir/ {
15018  p
15019  q
15020}
15021/@datadir@/p
15022/@docdir@/p
15023/@infodir@/p
15024/@localedir@/p
15025/@mandir@/p'
15026case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15027*datarootdir*) ac_datarootdir_seen=yes;;
15028*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15029  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15030$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15031_ACEOF
15032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15033  ac_datarootdir_hack='
15034  s&@datadir@&$datadir&g
15035  s&@docdir@&$docdir&g
15036  s&@infodir@&$infodir&g
15037  s&@localedir@&$localedir&g
15038  s&@mandir@&$mandir&g
15039  s&\\\${datarootdir}&$datarootdir&g' ;;
15040esac
15041_ACEOF
15042
15043# Neutralize VPATH when `$srcdir' = `.'.
15044# Shell code in configure.ac might set extrasub.
15045# FIXME: do we really want to maintain this feature?
15046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15047ac_sed_extra="$ac_vpsub
15048$extrasub
15049_ACEOF
15050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15051:t
15052/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15053s|@configure_input@|$ac_sed_conf_input|;t t
15054s&@top_builddir@&$ac_top_builddir_sub&;t t
15055s&@top_build_prefix@&$ac_top_build_prefix&;t t
15056s&@srcdir@&$ac_srcdir&;t t
15057s&@abs_srcdir@&$ac_abs_srcdir&;t t
15058s&@top_srcdir@&$ac_top_srcdir&;t t
15059s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15060s&@builddir@&$ac_builddir&;t t
15061s&@abs_builddir@&$ac_abs_builddir&;t t
15062s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15063s&@INSTALL@&$ac_INSTALL&;t t
15064s&@MKDIR_P@&$ac_MKDIR_P&;t t
15065$ac_datarootdir_hack
15066"
15067eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15068  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15069
15070test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15071  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15072  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15073      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15074  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15075which seems to be undefined.  Please make sure it is defined" >&5
15076$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15077which seems to be undefined.  Please make sure it is defined" >&2;}
15078
15079  rm -f "$ac_tmp/stdin"
15080  case $ac_file in
15081  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15082  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15083  esac \
15084  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15085 ;;
15086  :H)
15087  #
15088  # CONFIG_HEADER
15089  #
15090  if test x"$ac_file" != x-; then
15091    {
15092      $as_echo "/* $configure_input  */" \
15093      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15094    } >"$ac_tmp/config.h" \
15095      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15096    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15097      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15098$as_echo "$as_me: $ac_file is unchanged" >&6;}
15099    else
15100      rm -f "$ac_file"
15101      mv "$ac_tmp/config.h" "$ac_file" \
15102	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15103    fi
15104  else
15105    $as_echo "/* $configure_input  */" \
15106      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15107      || as_fn_error $? "could not create -" "$LINENO" 5
15108  fi
15109# Compute "$ac_file"'s index in $config_headers.
15110_am_arg="$ac_file"
15111_am_stamp_count=1
15112for _am_header in $config_headers :; do
15113  case $_am_header in
15114    $_am_arg | $_am_arg:* )
15115      break ;;
15116    * )
15117      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15118  esac
15119done
15120echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15121$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15122	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15123	 X"$_am_arg" : 'X\(//\)$' \| \
15124	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15125$as_echo X"$_am_arg" |
15126    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15127	    s//\1/
15128	    q
15129	  }
15130	  /^X\(\/\/\)[^/].*/{
15131	    s//\1/
15132	    q
15133	  }
15134	  /^X\(\/\/\)$/{
15135	    s//\1/
15136	    q
15137	  }
15138	  /^X\(\/\).*/{
15139	    s//\1/
15140	    q
15141	  }
15142	  s/.*/./; q'`/stamp-h$_am_stamp_count
15143 ;;
15144
15145  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15146$as_echo "$as_me: executing $ac_file commands" >&6;}
15147 ;;
15148  esac
15149
15150
15151  case $ac_file$ac_mode in
15152    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15153  # Older Autoconf quotes --file arguments for eval, but not when files
15154  # are listed without --file.  Let's play safe and only enable the eval
15155  # if we detect the quoting.
15156  case $CONFIG_FILES in
15157  *\'*) eval set x "$CONFIG_FILES" ;;
15158  *)   set x $CONFIG_FILES ;;
15159  esac
15160  shift
15161  for mf
15162  do
15163    # Strip MF so we end up with the name of the file.
15164    mf=`echo "$mf" | sed -e 's/:.*$//'`
15165    # Check whether this is an Automake generated Makefile or not.
15166    # We used to match only the files named 'Makefile.in', but
15167    # some people rename them; so instead we look at the file content.
15168    # Grep'ing the first line is not enough: some people post-process
15169    # each Makefile.in and add a new line on top of each file to say so.
15170    # Grep'ing the whole file is not good either: AIX grep has a line
15171    # limit of 2048, but all sed's we know have understand at least 4000.
15172    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15173      dirpart=`$as_dirname -- "$mf" ||
15174$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15175	 X"$mf" : 'X\(//\)[^/]' \| \
15176	 X"$mf" : 'X\(//\)$' \| \
15177	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15178$as_echo X"$mf" |
15179    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15180	    s//\1/
15181	    q
15182	  }
15183	  /^X\(\/\/\)[^/].*/{
15184	    s//\1/
15185	    q
15186	  }
15187	  /^X\(\/\/\)$/{
15188	    s//\1/
15189	    q
15190	  }
15191	  /^X\(\/\).*/{
15192	    s//\1/
15193	    q
15194	  }
15195	  s/.*/./; q'`
15196    else
15197      continue
15198    fi
15199    # Extract the definition of DEPDIR, am__include, and am__quote
15200    # from the Makefile without running 'make'.
15201    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15202    test -z "$DEPDIR" && continue
15203    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15204    test -z "$am__include" && continue
15205    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15206    # Find all dependency output files, they are included files with
15207    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15208    # simplest approach to changing $(DEPDIR) to its actual value in the
15209    # expansion.
15210    for file in `sed -n "
15211      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15212	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15213      # Make sure the directory exists.
15214      test -f "$dirpart/$file" && continue
15215      fdir=`$as_dirname -- "$file" ||
15216$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15217	 X"$file" : 'X\(//\)[^/]' \| \
15218	 X"$file" : 'X\(//\)$' \| \
15219	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15220$as_echo X"$file" |
15221    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15222	    s//\1/
15223	    q
15224	  }
15225	  /^X\(\/\/\)[^/].*/{
15226	    s//\1/
15227	    q
15228	  }
15229	  /^X\(\/\/\)$/{
15230	    s//\1/
15231	    q
15232	  }
15233	  /^X\(\/\).*/{
15234	    s//\1/
15235	    q
15236	  }
15237	  s/.*/./; q'`
15238      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15239      # echo "creating $dirpart/$file"
15240      echo '# dummy' > "$dirpart/$file"
15241    done
15242  done
15243}
15244 ;;
15245    "libtool":C)
15246
15247    # See if we are running on zsh, and set the options that allow our
15248    # commands through without removal of \ escapes.
15249    if test -n "${ZSH_VERSION+set}"; then
15250      setopt NO_GLOB_SUBST
15251    fi
15252
15253    cfgfile=${ofile}T
15254    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15255    $RM "$cfgfile"
15256
15257    cat <<_LT_EOF >> "$cfgfile"
15258#! $SHELL
15259# Generated automatically by $as_me ($PACKAGE) $VERSION
15260# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15261# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15262
15263# Provide generalized library-building support services.
15264# Written by Gordon Matzigkeit, 1996
15265
15266# Copyright (C) 2014 Free Software Foundation, Inc.
15267# This is free software; see the source for copying conditions.  There is NO
15268# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15269
15270# GNU Libtool is free software; you can redistribute it and/or modify
15271# it under the terms of the GNU General Public License as published by
15272# the Free Software Foundation; either version 2 of of the License, or
15273# (at your option) any later version.
15274#
15275# As a special exception to the GNU General Public License, if you
15276# distribute this file as part of a program or library that is built
15277# using GNU Libtool, you may include this file under the  same
15278# distribution terms that you use for the rest of that program.
15279#
15280# GNU Libtool is distributed in the hope that it will be useful, but
15281# WITHOUT ANY WARRANTY; without even the implied warranty of
15282# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15283# GNU General Public License for more details.
15284#
15285# You should have received a copy of the GNU General Public License
15286# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15287
15288
15289# The names of the tagged configurations supported by this script.
15290available_tags=''
15291
15292# Configured defaults for sys_lib_dlsearch_path munging.
15293: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15294
15295# ### BEGIN LIBTOOL CONFIG
15296
15297# Which release of libtool.m4 was used?
15298macro_version=$macro_version
15299macro_revision=$macro_revision
15300
15301# Whether or not to build shared libraries.
15302build_libtool_libs=$enable_shared
15303
15304# Whether or not to build static libraries.
15305build_old_libs=$enable_static
15306
15307# What type of objects to build.
15308pic_mode=$pic_mode
15309
15310# Whether or not to optimize for fast installation.
15311fast_install=$enable_fast_install
15312
15313# Shared archive member basename,for filename based shared library versioning on AIX.
15314shared_archive_member_spec=$shared_archive_member_spec
15315
15316# Shell to use when invoking shell scripts.
15317SHELL=$lt_SHELL
15318
15319# An echo program that protects backslashes.
15320ECHO=$lt_ECHO
15321
15322# The PATH separator for the build system.
15323PATH_SEPARATOR=$lt_PATH_SEPARATOR
15324
15325# The host system.
15326host_alias=$host_alias
15327host=$host
15328host_os=$host_os
15329
15330# The build system.
15331build_alias=$build_alias
15332build=$build
15333build_os=$build_os
15334
15335# A sed program that does not truncate output.
15336SED=$lt_SED
15337
15338# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15339Xsed="\$SED -e 1s/^X//"
15340
15341# A grep program that handles long lines.
15342GREP=$lt_GREP
15343
15344# An ERE matcher.
15345EGREP=$lt_EGREP
15346
15347# A literal string matcher.
15348FGREP=$lt_FGREP
15349
15350# A BSD- or MS-compatible name lister.
15351NM=$lt_NM
15352
15353# Whether we need soft or hard links.
15354LN_S=$lt_LN_S
15355
15356# What is the maximum length of a command?
15357max_cmd_len=$max_cmd_len
15358
15359# Object file suffix (normally "o").
15360objext=$ac_objext
15361
15362# Executable file suffix (normally "").
15363exeext=$exeext
15364
15365# whether the shell understands "unset".
15366lt_unset=$lt_unset
15367
15368# turn spaces into newlines.
15369SP2NL=$lt_lt_SP2NL
15370
15371# turn newlines into spaces.
15372NL2SP=$lt_lt_NL2SP
15373
15374# convert \$build file names to \$host format.
15375to_host_file_cmd=$lt_cv_to_host_file_cmd
15376
15377# convert \$build files to toolchain format.
15378to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15379
15380# An object symbol dumper.
15381OBJDUMP=$lt_OBJDUMP
15382
15383# Method to check whether dependent libraries are shared objects.
15384deplibs_check_method=$lt_deplibs_check_method
15385
15386# Command to use when deplibs_check_method = "file_magic".
15387file_magic_cmd=$lt_file_magic_cmd
15388
15389# How to find potential files when deplibs_check_method = "file_magic".
15390file_magic_glob=$lt_file_magic_glob
15391
15392# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15393want_nocaseglob=$lt_want_nocaseglob
15394
15395# DLL creation program.
15396DLLTOOL=$lt_DLLTOOL
15397
15398# Command to associate shared and link libraries.
15399sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15400
15401# The archiver.
15402AR=$lt_AR
15403
15404# Flags to create an archive.
15405AR_FLAGS=$lt_AR_FLAGS
15406
15407# How to feed a file listing to the archiver.
15408archiver_list_spec=$lt_archiver_list_spec
15409
15410# A symbol stripping program.
15411STRIP=$lt_STRIP
15412
15413# Commands used to install an old-style archive.
15414RANLIB=$lt_RANLIB
15415old_postinstall_cmds=$lt_old_postinstall_cmds
15416old_postuninstall_cmds=$lt_old_postuninstall_cmds
15417
15418# Whether to use a lock for old archive extraction.
15419lock_old_archive_extraction=$lock_old_archive_extraction
15420
15421# A C compiler.
15422LTCC=$lt_CC
15423
15424# LTCC compiler flags.
15425LTCFLAGS=$lt_CFLAGS
15426
15427# Take the output of nm and produce a listing of raw symbols and C names.
15428global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15429
15430# Transform the output of nm in a proper C declaration.
15431global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15432
15433# Transform the output of nm into a list of symbols to manually relocate.
15434global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15435
15436# Transform the output of nm in a C name address pair.
15437global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15438
15439# Transform the output of nm in a C name address pair when lib prefix is needed.
15440global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15441
15442# The name lister interface.
15443nm_interface=$lt_lt_cv_nm_interface
15444
15445# Specify filename containing input files for \$NM.
15446nm_file_list_spec=$lt_nm_file_list_spec
15447
15448# The root where to search for dependent libraries,and where our libraries should be installed.
15449lt_sysroot=$lt_sysroot
15450
15451# Command to truncate a binary pipe.
15452lt_truncate_bin=$lt_lt_cv_truncate_bin
15453
15454# The name of the directory that contains temporary libtool files.
15455objdir=$objdir
15456
15457# Used to examine libraries when file_magic_cmd begins with "file".
15458MAGIC_CMD=$MAGIC_CMD
15459
15460# Must we lock files when doing compilation?
15461need_locks=$lt_need_locks
15462
15463# Manifest tool.
15464MANIFEST_TOOL=$lt_MANIFEST_TOOL
15465
15466# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15467DSYMUTIL=$lt_DSYMUTIL
15468
15469# Tool to change global to local symbols on Mac OS X.
15470NMEDIT=$lt_NMEDIT
15471
15472# Tool to manipulate fat objects and archives on Mac OS X.
15473LIPO=$lt_LIPO
15474
15475# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15476OTOOL=$lt_OTOOL
15477
15478# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15479OTOOL64=$lt_OTOOL64
15480
15481# Old archive suffix (normally "a").
15482libext=$libext
15483
15484# Shared library suffix (normally ".so").
15485shrext_cmds=$lt_shrext_cmds
15486
15487# The commands to extract the exported symbol list from a shared archive.
15488extract_expsyms_cmds=$lt_extract_expsyms_cmds
15489
15490# Variables whose values should be saved in libtool wrapper scripts and
15491# restored at link time.
15492variables_saved_for_relink=$lt_variables_saved_for_relink
15493
15494# Do we need the "lib" prefix for modules?
15495need_lib_prefix=$need_lib_prefix
15496
15497# Do we need a version for libraries?
15498need_version=$need_version
15499
15500# Library versioning type.
15501version_type=$version_type
15502
15503# Shared library runtime path variable.
15504runpath_var=$runpath_var
15505
15506# Shared library path variable.
15507shlibpath_var=$shlibpath_var
15508
15509# Is shlibpath searched before the hard-coded library search path?
15510shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15511
15512# Format of library name prefix.
15513libname_spec=$lt_libname_spec
15514
15515# List of archive names.  First name is the real one, the rest are links.
15516# The last name is the one that the linker finds with -lNAME
15517library_names_spec=$lt_library_names_spec
15518
15519# The coded name of the library, if different from the real name.
15520soname_spec=$lt_soname_spec
15521
15522# Permission mode override for installation of shared libraries.
15523install_override_mode=$lt_install_override_mode
15524
15525# Command to use after installation of a shared archive.
15526postinstall_cmds=$lt_postinstall_cmds
15527
15528# Command to use after uninstallation of a shared archive.
15529postuninstall_cmds=$lt_postuninstall_cmds
15530
15531# Commands used to finish a libtool library installation in a directory.
15532finish_cmds=$lt_finish_cmds
15533
15534# As "finish_cmds", except a single script fragment to be evaled but
15535# not shown.
15536finish_eval=$lt_finish_eval
15537
15538# Whether we should hardcode library paths into libraries.
15539hardcode_into_libs=$hardcode_into_libs
15540
15541# Compile-time system search path for libraries.
15542sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15543
15544# Detected run-time system search path for libraries.
15545sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15546
15547# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15548configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15549
15550# Whether dlopen is supported.
15551dlopen_support=$enable_dlopen
15552
15553# Whether dlopen of programs is supported.
15554dlopen_self=$enable_dlopen_self
15555
15556# Whether dlopen of statically linked programs is supported.
15557dlopen_self_static=$enable_dlopen_self_static
15558
15559# Commands to strip libraries.
15560old_striplib=$lt_old_striplib
15561striplib=$lt_striplib
15562
15563
15564# The linker used to build libraries.
15565LD=$lt_LD
15566
15567# How to create reloadable object files.
15568reload_flag=$lt_reload_flag
15569reload_cmds=$lt_reload_cmds
15570
15571# Commands used to build an old-style archive.
15572old_archive_cmds=$lt_old_archive_cmds
15573
15574# A language specific compiler.
15575CC=$lt_compiler
15576
15577# Is the compiler the GNU compiler?
15578with_gcc=$GCC
15579
15580# Compiler flag to turn off builtin functions.
15581no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15582
15583# Additional compiler flags for building library objects.
15584pic_flag=$lt_lt_prog_compiler_pic
15585
15586# How to pass a linker flag through the compiler.
15587wl=$lt_lt_prog_compiler_wl
15588
15589# Compiler flag to prevent dynamic linking.
15590link_static_flag=$lt_lt_prog_compiler_static
15591
15592# Does compiler simultaneously support -c and -o options?
15593compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15594
15595# Whether or not to add -lc for building shared libraries.
15596build_libtool_need_lc=$archive_cmds_need_lc
15597
15598# Whether or not to disallow shared libs when runtime libs are static.
15599allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15600
15601# Compiler flag to allow reflexive dlopens.
15602export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15603
15604# Compiler flag to generate shared objects directly from archives.
15605whole_archive_flag_spec=$lt_whole_archive_flag_spec
15606
15607# Whether the compiler copes with passing no objects directly.
15608compiler_needs_object=$lt_compiler_needs_object
15609
15610# Create an old-style archive from a shared archive.
15611old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15612
15613# Create a temporary old-style archive to link instead of a shared archive.
15614old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15615
15616# Commands used to build a shared archive.
15617archive_cmds=$lt_archive_cmds
15618archive_expsym_cmds=$lt_archive_expsym_cmds
15619
15620# Commands used to build a loadable module if different from building
15621# a shared archive.
15622module_cmds=$lt_module_cmds
15623module_expsym_cmds=$lt_module_expsym_cmds
15624
15625# Whether we are building with GNU ld or not.
15626with_gnu_ld=$lt_with_gnu_ld
15627
15628# Flag that allows shared libraries with undefined symbols to be built.
15629allow_undefined_flag=$lt_allow_undefined_flag
15630
15631# Flag that enforces no undefined symbols.
15632no_undefined_flag=$lt_no_undefined_flag
15633
15634# Flag to hardcode \$libdir into a binary during linking.
15635# This must work even if \$libdir does not exist
15636hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15637
15638# Whether we need a single "-rpath" flag with a separated argument.
15639hardcode_libdir_separator=$lt_hardcode_libdir_separator
15640
15641# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15642# DIR into the resulting binary.
15643hardcode_direct=$hardcode_direct
15644
15645# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15646# DIR into the resulting binary and the resulting library dependency is
15647# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15648# library is relocated.
15649hardcode_direct_absolute=$hardcode_direct_absolute
15650
15651# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15652# into the resulting binary.
15653hardcode_minus_L=$hardcode_minus_L
15654
15655# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15656# into the resulting binary.
15657hardcode_shlibpath_var=$hardcode_shlibpath_var
15658
15659# Set to "yes" if building a shared library automatically hardcodes DIR
15660# into the library and all subsequent libraries and executables linked
15661# against it.
15662hardcode_automatic=$hardcode_automatic
15663
15664# Set to yes if linker adds runtime paths of dependent libraries
15665# to runtime path list.
15666inherit_rpath=$inherit_rpath
15667
15668# Whether libtool must link a program against all its dependency libraries.
15669link_all_deplibs=$link_all_deplibs
15670
15671# Set to "yes" if exported symbols are required.
15672always_export_symbols=$always_export_symbols
15673
15674# The commands to list exported symbols.
15675export_symbols_cmds=$lt_export_symbols_cmds
15676
15677# Symbols that should not be listed in the preloaded symbols.
15678exclude_expsyms=$lt_exclude_expsyms
15679
15680# Symbols that must always be exported.
15681include_expsyms=$lt_include_expsyms
15682
15683# Commands necessary for linking programs (against libraries) with templates.
15684prelink_cmds=$lt_prelink_cmds
15685
15686# Commands necessary for finishing linking programs.
15687postlink_cmds=$lt_postlink_cmds
15688
15689# Specify filename containing input files.
15690file_list_spec=$lt_file_list_spec
15691
15692# How to hardcode a shared library path into an executable.
15693hardcode_action=$hardcode_action
15694
15695# ### END LIBTOOL CONFIG
15696
15697_LT_EOF
15698
15699    cat <<'_LT_EOF' >> "$cfgfile"
15700
15701# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15702
15703# func_munge_path_list VARIABLE PATH
15704# -----------------------------------
15705# VARIABLE is name of variable containing _space_ separated list of
15706# directories to be munged by the contents of PATH, which is string
15707# having a format:
15708# "DIR[:DIR]:"
15709#       string "DIR[ DIR]" will be prepended to VARIABLE
15710# ":DIR[:DIR]"
15711#       string "DIR[ DIR]" will be appended to VARIABLE
15712# "DIRP[:DIRP]::[DIRA:]DIRA"
15713#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15714#       "DIRA[ DIRA]" will be appended to VARIABLE
15715# "DIR[:DIR]"
15716#       VARIABLE will be replaced by "DIR[ DIR]"
15717func_munge_path_list ()
15718{
15719    case x$2 in
15720    x)
15721        ;;
15722    *:)
15723        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15724        ;;
15725    x:*)
15726        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15727        ;;
15728    *::*)
15729        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15730        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15731        ;;
15732    *)
15733        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15734        ;;
15735    esac
15736}
15737
15738
15739# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15740func_cc_basename ()
15741{
15742    for cc_temp in $*""; do
15743      case $cc_temp in
15744        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15745        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15746        \-*) ;;
15747        *) break;;
15748      esac
15749    done
15750    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15751}
15752
15753
15754# ### END FUNCTIONS SHARED WITH CONFIGURE
15755
15756_LT_EOF
15757
15758  case $host_os in
15759  aix3*)
15760    cat <<\_LT_EOF >> "$cfgfile"
15761# AIX sometimes has problems with the GCC collect2 program.  For some
15762# reason, if we set the COLLECT_NAMES environment variable, the problems
15763# vanish in a puff of smoke.
15764if test set != "${COLLECT_NAMES+set}"; then
15765  COLLECT_NAMES=
15766  export COLLECT_NAMES
15767fi
15768_LT_EOF
15769    ;;
15770  esac
15771
15772
15773ltmain=$ac_aux_dir/ltmain.sh
15774
15775
15776  # We use sed instead of cat because bash on DJGPP gets confused if
15777  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15778  # text mode, it properly converts lines to CR/LF.  This bash problem
15779  # is reportedly fixed, but why not run on old versions too?
15780  sed '$q' "$ltmain" >> "$cfgfile" \
15781     || (rm -f "$cfgfile"; exit 1)
15782
15783   mv -f "$cfgfile" "$ofile" ||
15784    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15785  chmod +x "$ofile"
15786
15787 ;;
15788
15789  esac
15790done # for ac_tag
15791
15792
15793as_fn_exit 0
15794_ACEOF
15795ac_clean_files=$ac_clean_files_save
15796
15797test $ac_write_fail = 0 ||
15798  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15799
15800
15801# configure is writing to config.log, and then calls config.status.
15802# config.status does its own redirection, appending to config.log.
15803# Unfortunately, on DOS this fails, as config.log is still kept open
15804# by configure, so config.status won't be able to write to it; its
15805# output is simply discarded.  So we exec the FD to /dev/null,
15806# effectively closing config.log, so it can be properly (re)opened and
15807# appended to by config.status.  When coming back to configure, we
15808# need to make the FD available again.
15809if test "$no_create" != yes; then
15810  ac_cs_success=:
15811  ac_config_status_args=
15812  test "$silent" = yes &&
15813    ac_config_status_args="$ac_config_status_args --quiet"
15814  exec 5>/dev/null
15815  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15816  exec 5>>config.log
15817  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15818  # would make configure fail if this is the last instruction.
15819  $ac_cs_success || as_fn_exit 1
15820fi
15821if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15822  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15823$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15824fi
15825
15826