1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for LibDsk 1.4.2.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    PATH=/empty FPATH=/empty; export PATH FPATH
205    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='LibDsk'
589PACKAGE_TARNAME='libdsk'
590PACKAGE_VERSION='1.4.2'
591PACKAGE_STRING='LibDsk 1.4.2'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="lib/dskopen.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635CLASSPATH
636TOOLCLASSES
637LIBDSKJAR
638LIBOBJS
639_ACJNI_JAVAC
640JAR
641JAVADOC
642JAVAH
643uudecode
644JAVAC
645JAVA
646JAVAFLAGS
647JAVACFLAGS
648JAVAPREFIX
649AM_BACKSLASH
650AM_DEFAULT_VERBOSITY
651AM_DEFAULT_V
652AM_V
653am__fastdepCC_FALSE
654am__fastdepCC_TRUE
655CCDEPMODE
656am__nodep
657AMDEPBACKSLASH
658AMDEP_FALSE
659AMDEP_TRUE
660am__quote
661am__include
662DEPDIR
663am__untar
664am__tar
665AMTAR
666am__leading_dot
667SET_MAKE
668mkdir_p
669MKDIR_P
670INSTALL_STRIP_PROGRAM
671install_sh
672MAKEINFO
673AUTOHEADER
674AUTOMAKE
675AUTOCONF
676ACLOCAL
677VERSION
678PACKAGE
679CYGPATH_W
680am__isrc
681INSTALL_DATA
682INSTALL_SCRIPT
683INSTALL_PROGRAM
684CPP
685LT_SYS_LIBRARY_PATH
686OTOOL64
687OTOOL
688LIPO
689NMEDIT
690DSYMUTIL
691MANIFEST_TOOL
692AWK
693RANLIB
694STRIP
695ac_ct_AR
696AR
697DLLTOOL
698OBJDUMP
699LN_S
700NM
701ac_ct_DUMPBIN
702DUMPBIN
703LD
704FGREP
705EGREP
706GREP
707SED
708OBJEXT
709EXEEXT
710ac_ct_CC
711CPPFLAGS
712LDFLAGS
713CFLAGS
714CC
715LIBTOOL
716target_os
717target_vendor
718target_cpu
719target
720host_os
721host_vendor
722host_cpu
723host
724build_os
725build_vendor
726build_cpu
727build
728target_alias
729host_alias
730build_alias
731LIBS
732ECHO_T
733ECHO_N
734ECHO_C
735DEFS
736mandir
737localedir
738libdir
739psdir
740pdfdir
741dvidir
742htmldir
743infodir
744docdir
745oldincludedir
746includedir
747runstatedir
748localstatedir
749sharedstatedir
750sysconfdir
751datadir
752datarootdir
753libexecdir
754sbindir
755bindir
756program_transform_name
757prefix
758exec_prefix
759PACKAGE_URL
760PACKAGE_BUGREPORT
761PACKAGE_STRING
762PACKAGE_VERSION
763PACKAGE_TARNAME
764PACKAGE_NAME
765PATH_SEPARATOR
766SHELL'
767ac_subst_files=''
768ac_user_opts='
769enable_option_checking
770enable_shared
771enable_static
772with_pic
773enable_fast_install
774with_aix_soname
775with_gnu_ld
776with_sysroot
777enable_libtool_lock
778enable_dependency_tracking
779enable_silent_rules
780with_jni
781with_zlib
782with_bzlib
783enable_floppy
784with_java_prefix
785with_javac_flags
786with_java_flags
787'
788      ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
796LT_SYS_LIBRARY_PATH
797CPP'
798
799
800# Initialize some variables set by options.
801ac_init_help=
802ac_init_version=false
803ac_unrecognized_opts=
804ac_unrecognized_sep=
805# The variables have the same names as the options, with
806# dashes changed to underlines.
807cache_file=/dev/null
808exec_prefix=NONE
809no_create=
810no_recursion=
811prefix=NONE
812program_prefix=NONE
813program_suffix=NONE
814program_transform_name=s,x,x,
815silent=
816site=
817srcdir=
818verbose=
819x_includes=NONE
820x_libraries=NONE
821
822# Installation directory options.
823# These are left unexpanded so users can "make install exec_prefix=/foo"
824# and all the variables that are supposed to be based on exec_prefix
825# by default will actually change.
826# Use braces instead of parens because sh, perl, etc. also accept them.
827# (The list follows the same order as the GNU Coding Standards.)
828bindir='${exec_prefix}/bin'
829sbindir='${exec_prefix}/sbin'
830libexecdir='${exec_prefix}/libexec'
831datarootdir='${prefix}/share'
832datadir='${datarootdir}'
833sysconfdir='${prefix}/etc'
834sharedstatedir='${prefix}/com'
835localstatedir='${prefix}/var'
836runstatedir='${localstatedir}/run'
837includedir='${prefix}/include'
838oldincludedir='/usr/include'
839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840infodir='${datarootdir}/info'
841htmldir='${docdir}'
842dvidir='${docdir}'
843pdfdir='${docdir}'
844psdir='${docdir}'
845libdir='${exec_prefix}/lib'
846localedir='${datarootdir}/locale'
847mandir='${datarootdir}/man'
848
849ac_prev=
850ac_dashdash=
851for ac_option
852do
853  # If the previous option needs an argument, assign it.
854  if test -n "$ac_prev"; then
855    eval $ac_prev=\$ac_option
856    ac_prev=
857    continue
858  fi
859
860  case $ac_option in
861  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862  *=)   ac_optarg= ;;
863  *)    ac_optarg=yes ;;
864  esac
865
866  # Accept the important Cygnus configure options, so we can diagnose typos.
867
868  case $ac_dashdash$ac_option in
869  --)
870    ac_dashdash=yes ;;
871
872  -bindir | --bindir | --bindi | --bind | --bin | --bi)
873    ac_prev=bindir ;;
874  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875    bindir=$ac_optarg ;;
876
877  -build | --build | --buil | --bui | --bu)
878    ac_prev=build_alias ;;
879  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880    build_alias=$ac_optarg ;;
881
882  -cache-file | --cache-file | --cache-fil | --cache-fi \
883  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884    ac_prev=cache_file ;;
885  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887    cache_file=$ac_optarg ;;
888
889  --config-cache | -C)
890    cache_file=config.cache ;;
891
892  -datadir | --datadir | --datadi | --datad)
893    ac_prev=datadir ;;
894  -datadir=* | --datadir=* | --datadi=* | --datad=*)
895    datadir=$ac_optarg ;;
896
897  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898  | --dataroo | --dataro | --datar)
899    ac_prev=datarootdir ;;
900  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902    datarootdir=$ac_optarg ;;
903
904  -disable-* | --disable-*)
905    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906    # Reject names that are not valid shell variable names.
907    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908      as_fn_error $? "invalid feature name: $ac_useropt"
909    ac_useropt_orig=$ac_useropt
910    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911    case $ac_user_opts in
912      *"
913"enable_$ac_useropt"
914"*) ;;
915      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916	 ac_unrecognized_sep=', ';;
917    esac
918    eval enable_$ac_useropt=no ;;
919
920  -docdir | --docdir | --docdi | --doc | --do)
921    ac_prev=docdir ;;
922  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923    docdir=$ac_optarg ;;
924
925  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926    ac_prev=dvidir ;;
927  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928    dvidir=$ac_optarg ;;
929
930  -enable-* | --enable-*)
931    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932    # Reject names that are not valid shell variable names.
933    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934      as_fn_error $? "invalid feature name: $ac_useropt"
935    ac_useropt_orig=$ac_useropt
936    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937    case $ac_user_opts in
938      *"
939"enable_$ac_useropt"
940"*) ;;
941      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942	 ac_unrecognized_sep=', ';;
943    esac
944    eval enable_$ac_useropt=\$ac_optarg ;;
945
946  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948  | --exec | --exe | --ex)
949    ac_prev=exec_prefix ;;
950  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952  | --exec=* | --exe=* | --ex=*)
953    exec_prefix=$ac_optarg ;;
954
955  -gas | --gas | --ga | --g)
956    # Obsolete; use --with-gas.
957    with_gas=yes ;;
958
959  -help | --help | --hel | --he | -h)
960    ac_init_help=long ;;
961  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962    ac_init_help=recursive ;;
963  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964    ac_init_help=short ;;
965
966  -host | --host | --hos | --ho)
967    ac_prev=host_alias ;;
968  -host=* | --host=* | --hos=* | --ho=*)
969    host_alias=$ac_optarg ;;
970
971  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972    ac_prev=htmldir ;;
973  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974  | --ht=*)
975    htmldir=$ac_optarg ;;
976
977  -includedir | --includedir | --includedi | --included | --include \
978  | --includ | --inclu | --incl | --inc)
979    ac_prev=includedir ;;
980  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981  | --includ=* | --inclu=* | --incl=* | --inc=*)
982    includedir=$ac_optarg ;;
983
984  -infodir | --infodir | --infodi | --infod | --info | --inf)
985    ac_prev=infodir ;;
986  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987    infodir=$ac_optarg ;;
988
989  -libdir | --libdir | --libdi | --libd)
990    ac_prev=libdir ;;
991  -libdir=* | --libdir=* | --libdi=* | --libd=*)
992    libdir=$ac_optarg ;;
993
994  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995  | --libexe | --libex | --libe)
996    ac_prev=libexecdir ;;
997  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998  | --libexe=* | --libex=* | --libe=*)
999    libexecdir=$ac_optarg ;;
1000
1001  -localedir | --localedir | --localedi | --localed | --locale)
1002    ac_prev=localedir ;;
1003  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004    localedir=$ac_optarg ;;
1005
1006  -localstatedir | --localstatedir | --localstatedi | --localstated \
1007  | --localstate | --localstat | --localsta | --localst | --locals)
1008    ac_prev=localstatedir ;;
1009  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011    localstatedir=$ac_optarg ;;
1012
1013  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014    ac_prev=mandir ;;
1015  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016    mandir=$ac_optarg ;;
1017
1018  -nfp | --nfp | --nf)
1019    # Obsolete; use --without-fp.
1020    with_fp=no ;;
1021
1022  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023  | --no-cr | --no-c | -n)
1024    no_create=yes ;;
1025
1026  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028    no_recursion=yes ;;
1029
1030  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032  | --oldin | --oldi | --old | --ol | --o)
1033    ac_prev=oldincludedir ;;
1034  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037    oldincludedir=$ac_optarg ;;
1038
1039  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040    ac_prev=prefix ;;
1041  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042    prefix=$ac_optarg ;;
1043
1044  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045  | --program-pre | --program-pr | --program-p)
1046    ac_prev=program_prefix ;;
1047  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049    program_prefix=$ac_optarg ;;
1050
1051  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052  | --program-suf | --program-su | --program-s)
1053    ac_prev=program_suffix ;;
1054  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056    program_suffix=$ac_optarg ;;
1057
1058  -program-transform-name | --program-transform-name \
1059  | --program-transform-nam | --program-transform-na \
1060  | --program-transform-n | --program-transform- \
1061  | --program-transform | --program-transfor \
1062  | --program-transfo | --program-transf \
1063  | --program-trans | --program-tran \
1064  | --progr-tra | --program-tr | --program-t)
1065    ac_prev=program_transform_name ;;
1066  -program-transform-name=* | --program-transform-name=* \
1067  | --program-transform-nam=* | --program-transform-na=* \
1068  | --program-transform-n=* | --program-transform-=* \
1069  | --program-transform=* | --program-transfor=* \
1070  | --program-transfo=* | --program-transf=* \
1071  | --program-trans=* | --program-tran=* \
1072  | --progr-tra=* | --program-tr=* | --program-t=*)
1073    program_transform_name=$ac_optarg ;;
1074
1075  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076    ac_prev=pdfdir ;;
1077  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078    pdfdir=$ac_optarg ;;
1079
1080  -psdir | --psdir | --psdi | --psd | --ps)
1081    ac_prev=psdir ;;
1082  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083    psdir=$ac_optarg ;;
1084
1085  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086  | -silent | --silent | --silen | --sile | --sil)
1087    silent=yes ;;
1088
1089  -runstatedir | --runstatedir | --runstatedi | --runstated \
1090  | --runstate | --runstat | --runsta | --runst | --runs \
1091  | --run | --ru | --r)
1092    ac_prev=runstatedir ;;
1093  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1094  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1095  | --run=* | --ru=* | --r=*)
1096    runstatedir=$ac_optarg ;;
1097
1098  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099    ac_prev=sbindir ;;
1100  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101  | --sbi=* | --sb=*)
1102    sbindir=$ac_optarg ;;
1103
1104  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106  | --sharedst | --shareds | --shared | --share | --shar \
1107  | --sha | --sh)
1108    ac_prev=sharedstatedir ;;
1109  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112  | --sha=* | --sh=*)
1113    sharedstatedir=$ac_optarg ;;
1114
1115  -site | --site | --sit)
1116    ac_prev=site ;;
1117  -site=* | --site=* | --sit=*)
1118    site=$ac_optarg ;;
1119
1120  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121    ac_prev=srcdir ;;
1122  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123    srcdir=$ac_optarg ;;
1124
1125  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126  | --syscon | --sysco | --sysc | --sys | --sy)
1127    ac_prev=sysconfdir ;;
1128  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130    sysconfdir=$ac_optarg ;;
1131
1132  -target | --target | --targe | --targ | --tar | --ta | --t)
1133    ac_prev=target_alias ;;
1134  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135    target_alias=$ac_optarg ;;
1136
1137  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138    verbose=yes ;;
1139
1140  -version | --version | --versio | --versi | --vers | -V)
1141    ac_init_version=: ;;
1142
1143  -with-* | --with-*)
1144    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145    # Reject names that are not valid shell variable names.
1146    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147      as_fn_error $? "invalid package name: $ac_useropt"
1148    ac_useropt_orig=$ac_useropt
1149    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150    case $ac_user_opts in
1151      *"
1152"with_$ac_useropt"
1153"*) ;;
1154      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155	 ac_unrecognized_sep=', ';;
1156    esac
1157    eval with_$ac_useropt=\$ac_optarg ;;
1158
1159  -without-* | --without-*)
1160    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161    # Reject names that are not valid shell variable names.
1162    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163      as_fn_error $? "invalid package name: $ac_useropt"
1164    ac_useropt_orig=$ac_useropt
1165    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166    case $ac_user_opts in
1167      *"
1168"with_$ac_useropt"
1169"*) ;;
1170      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171	 ac_unrecognized_sep=', ';;
1172    esac
1173    eval with_$ac_useropt=no ;;
1174
1175  --x)
1176    # Obsolete; use --with-x.
1177    with_x=yes ;;
1178
1179  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180  | --x-incl | --x-inc | --x-in | --x-i)
1181    ac_prev=x_includes ;;
1182  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184    x_includes=$ac_optarg ;;
1185
1186  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188    ac_prev=x_libraries ;;
1189  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191    x_libraries=$ac_optarg ;;
1192
1193  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1194Try \`$0 --help' for more information"
1195    ;;
1196
1197  *=*)
1198    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199    # Reject names that are not valid shell variable names.
1200    case $ac_envvar in #(
1201      '' | [0-9]* | *[!_$as_cr_alnum]* )
1202      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1203    esac
1204    eval $ac_envvar=\$ac_optarg
1205    export $ac_envvar ;;
1206
1207  *)
1208    # FIXME: should be removed in autoconf 3.0.
1209    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213    ;;
1214
1215  esac
1216done
1217
1218if test -n "$ac_prev"; then
1219  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220  as_fn_error $? "missing argument to $ac_option"
1221fi
1222
1223if test -n "$ac_unrecognized_opts"; then
1224  case $enable_option_checking in
1225    no) ;;
1226    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228  esac
1229fi
1230
1231# Check all directory arguments for consistency.
1232for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233		datadir sysconfdir sharedstatedir localstatedir includedir \
1234		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235		libdir localedir mandir runstatedir
1236do
1237  eval ac_val=\$$ac_var
1238  # Remove trailing slashes.
1239  case $ac_val in
1240    */ )
1241      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242      eval $ac_var=\$ac_val;;
1243  esac
1244  # Be sure to have absolute directory names.
1245  case $ac_val in
1246    [\\/$]* | ?:[\\/]* )  continue;;
1247    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248  esac
1249  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250done
1251
1252# There might be people who depend on the old broken behavior: `$host'
1253# used to hold the argument of --host etc.
1254# FIXME: To remove some day.
1255build=$build_alias
1256host=$host_alias
1257target=$target_alias
1258
1259# FIXME: To remove some day.
1260if test "x$host_alias" != x; then
1261  if test "x$build_alias" = x; then
1262    cross_compiling=maybe
1263  elif test "x$build_alias" != "x$host_alias"; then
1264    cross_compiling=yes
1265  fi
1266fi
1267
1268ac_tool_prefix=
1269test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271test "$silent" = yes && exec 6>/dev/null
1272
1273
1274ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275ac_ls_di=`ls -di .` &&
1276ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277  as_fn_error $? "working directory cannot be determined"
1278test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279  as_fn_error $? "pwd does not report name of working directory"
1280
1281
1282# Find the source files, if location was not specified.
1283if test -z "$srcdir"; then
1284  ac_srcdir_defaulted=yes
1285  # Try the directory containing this script, then the parent directory.
1286  ac_confdir=`$as_dirname -- "$as_myself" ||
1287$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288	 X"$as_myself" : 'X\(//\)[^/]' \| \
1289	 X"$as_myself" : 'X\(//\)$' \| \
1290	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291$as_echo X"$as_myself" |
1292    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293	    s//\1/
1294	    q
1295	  }
1296	  /^X\(\/\/\)[^/].*/{
1297	    s//\1/
1298	    q
1299	  }
1300	  /^X\(\/\/\)$/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\).*/{
1305	    s//\1/
1306	    q
1307	  }
1308	  s/.*/./; q'`
1309  srcdir=$ac_confdir
1310  if test ! -r "$srcdir/$ac_unique_file"; then
1311    srcdir=..
1312  fi
1313else
1314  ac_srcdir_defaulted=no
1315fi
1316if test ! -r "$srcdir/$ac_unique_file"; then
1317  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319fi
1320ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321ac_abs_confdir=`(
1322	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323	pwd)`
1324# When building in place, set srcdir=.
1325if test "$ac_abs_confdir" = "$ac_pwd"; then
1326  srcdir=.
1327fi
1328# Remove unnecessary trailing slashes from srcdir.
1329# Double slashes in file names in object file debugging info
1330# mess up M-x gdb in Emacs.
1331case $srcdir in
1332*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333esac
1334for ac_var in $ac_precious_vars; do
1335  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336  eval ac_env_${ac_var}_value=\$${ac_var}
1337  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339done
1340
1341#
1342# Report the --help message.
1343#
1344if test "$ac_init_help" = "long"; then
1345  # Omit some internal or obsolete options to make the list less imposing.
1346  # This message is too long to be a string in the A/UX 3.1 sh.
1347  cat <<_ACEOF
1348\`configure' configures LibDsk 1.4.2 to adapt to many kinds of systems.
1349
1350Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353VAR=VALUE.  See below for descriptions of some of the useful variables.
1354
1355Defaults for the options are specified in brackets.
1356
1357Configuration:
1358  -h, --help              display this help and exit
1359      --help=short        display options specific to this package
1360      --help=recursive    display the short help of all the included packages
1361  -V, --version           display version information and exit
1362  -q, --quiet, --silent   do not print \`checking ...' messages
1363      --cache-file=FILE   cache test results in FILE [disabled]
1364  -C, --config-cache      alias for \`--cache-file=config.cache'
1365  -n, --no-create         do not create output files
1366      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1367
1368Installation directories:
1369  --prefix=PREFIX         install architecture-independent files in PREFIX
1370                          [$ac_default_prefix]
1371  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1372                          [PREFIX]
1373
1374By default, \`make install' will install all the files in
1375\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1376an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377for instance \`--prefix=\$HOME'.
1378
1379For better control, use the options below.
1380
1381Fine tuning of the installation directories:
1382  --bindir=DIR            user executables [EPREFIX/bin]
1383  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1384  --libexecdir=DIR        program executables [EPREFIX/libexec]
1385  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1386  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1387  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1388  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1389  --libdir=DIR            object code libraries [EPREFIX/lib]
1390  --includedir=DIR        C header files [PREFIX/include]
1391  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1392  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1393  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1394  --infodir=DIR           info documentation [DATAROOTDIR/info]
1395  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1396  --mandir=DIR            man documentation [DATAROOTDIR/man]
1397  --docdir=DIR            documentation root [DATAROOTDIR/doc/libdsk]
1398  --htmldir=DIR           html documentation [DOCDIR]
1399  --dvidir=DIR            dvi documentation [DOCDIR]
1400  --pdfdir=DIR            pdf documentation [DOCDIR]
1401  --psdir=DIR             ps documentation [DOCDIR]
1402_ACEOF
1403
1404  cat <<\_ACEOF
1405
1406Program names:
1407  --program-prefix=PREFIX            prepend PREFIX to installed program names
1408  --program-suffix=SUFFIX            append SUFFIX to installed program names
1409  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1410
1411System types:
1412  --build=BUILD     configure for building on BUILD [guessed]
1413  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1414  --target=TARGET   configure for building compilers for TARGET [HOST]
1415_ACEOF
1416fi
1417
1418if test -n "$ac_init_help"; then
1419  case $ac_init_help in
1420     short | recursive ) echo "Configuration of LibDsk 1.4.2:";;
1421   esac
1422  cat <<\_ACEOF
1423
1424Optional Features:
1425  --disable-option-checking  ignore unrecognized --enable/--with options
1426  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1427  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1428  --enable-shared[=PKGS]  build shared libraries [default=yes]
1429  --enable-static[=PKGS]  build static libraries [default=yes]
1430  --enable-fast-install[=PKGS]
1431                          optimize for fast installation [default=yes]
1432  --disable-libtool-lock  avoid locking (might break parallel builds)
1433  --enable-dependency-tracking
1434                          do not reject slow dependency extractors
1435  --disable-dependency-tracking
1436                          speeds up one-time build
1437  --enable-silent-rules   less verbose build output (undo: "make V=1")
1438  --disable-silent-rules  verbose build output (undo: "make V=0")
1439  --enable-floppy         Enable host floppy driver default=yes
1440
1441Optional Packages:
1442  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1443  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1444  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1445                          both]
1446  --with-aix-soname=aix|svr4|both
1447                          shared library versioning (aka "SONAME") variant to
1448                          provide on AIX, [default=aix].
1449  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1450  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1451                          compiler's sysroot if not specified).
1452  --with-jni              Include Java Native Interface bindings default=no
1453  --with-zlib             Include support for gz-compressed files default=yes
1454  --with-bzlib            Include support for bz2-compressed files default=yes
1455  --with-java-prefix=PFX  prefix where Java runtime is installed (optional)
1456  --with-javac-flags=FLAGS flags to pass to the Java compiler (optional)
1457  --with-java-flags=FLAGS flags to pass to the Java VM (optional)
1458
1459Some influential environment variables:
1460  CC          C compiler command
1461  CFLAGS      C compiler flags
1462  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1463              nonstandard directory <lib dir>
1464  LIBS        libraries to pass to the linker, e.g. -l<library>
1465  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1466              you have headers in a nonstandard directory <include dir>
1467  LT_SYS_LIBRARY_PATH
1468              User-defined run-time library search path.
1469  CPP         C preprocessor
1470
1471Use these variables to override the choices made by `configure' or to help
1472it to find libraries and programs with nonstandard names/locations.
1473
1474Report bugs to the package provider.
1475_ACEOF
1476ac_status=$?
1477fi
1478
1479if test "$ac_init_help" = "recursive"; then
1480  # If there are subdirs, report their specific --help.
1481  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482    test -d "$ac_dir" ||
1483      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484      continue
1485    ac_builddir=.
1486
1487case "$ac_dir" in
1488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489*)
1490  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491  # A ".." for each directory in $ac_dir_suffix.
1492  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493  case $ac_top_builddir_sub in
1494  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496  esac ;;
1497esac
1498ac_abs_top_builddir=$ac_pwd
1499ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500# for backward compatibility:
1501ac_top_builddir=$ac_top_build_prefix
1502
1503case $srcdir in
1504  .)  # We are building in place.
1505    ac_srcdir=.
1506    ac_top_srcdir=$ac_top_builddir_sub
1507    ac_abs_top_srcdir=$ac_pwd ;;
1508  [\\/]* | ?:[\\/]* )  # Absolute name.
1509    ac_srcdir=$srcdir$ac_dir_suffix;
1510    ac_top_srcdir=$srcdir
1511    ac_abs_top_srcdir=$srcdir ;;
1512  *) # Relative name.
1513    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514    ac_top_srcdir=$ac_top_build_prefix$srcdir
1515    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516esac
1517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519    cd "$ac_dir" || { ac_status=$?; continue; }
1520    # Check for guested configure.
1521    if test -f "$ac_srcdir/configure.gnu"; then
1522      echo &&
1523      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524    elif test -f "$ac_srcdir/configure"; then
1525      echo &&
1526      $SHELL "$ac_srcdir/configure" --help=recursive
1527    else
1528      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529    fi || ac_status=$?
1530    cd "$ac_pwd" || { ac_status=$?; break; }
1531  done
1532fi
1533
1534test -n "$ac_init_help" && exit $ac_status
1535if $ac_init_version; then
1536  cat <<\_ACEOF
1537LibDsk configure 1.4.2
1538generated by GNU Autoconf 2.69
1539
1540Copyright (C) 2012 Free Software Foundation, Inc.
1541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
1543_ACEOF
1544  exit
1545fi
1546
1547## ------------------------ ##
1548## Autoconf initialization. ##
1549## ------------------------ ##
1550
1551# ac_fn_c_try_compile LINENO
1552# --------------------------
1553# Try to compile conftest.$ac_ext, and return whether this succeeded.
1554ac_fn_c_try_compile ()
1555{
1556  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557  rm -f conftest.$ac_objext
1558  if { { ac_try="$ac_compile"
1559case "(($ac_try" in
1560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561  *) ac_try_echo=$ac_try;;
1562esac
1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564$as_echo "$ac_try_echo"; } >&5
1565  (eval "$ac_compile") 2>conftest.err
1566  ac_status=$?
1567  if test -s conftest.err; then
1568    grep -v '^ *+' conftest.err >conftest.er1
1569    cat conftest.er1 >&5
1570    mv -f conftest.er1 conftest.err
1571  fi
1572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573  test $ac_status = 0; } && {
1574	 test -z "$ac_c_werror_flag" ||
1575	 test ! -s conftest.err
1576       } && test -s conftest.$ac_objext; then :
1577  ac_retval=0
1578else
1579  $as_echo "$as_me: failed program was:" >&5
1580sed 's/^/| /' conftest.$ac_ext >&5
1581
1582	ac_retval=1
1583fi
1584  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585  as_fn_set_status $ac_retval
1586
1587} # ac_fn_c_try_compile
1588
1589# ac_fn_c_try_link LINENO
1590# -----------------------
1591# Try to link conftest.$ac_ext, and return whether this succeeded.
1592ac_fn_c_try_link ()
1593{
1594  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595  rm -f conftest.$ac_objext conftest$ac_exeext
1596  if { { ac_try="$ac_link"
1597case "(($ac_try" in
1598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599  *) ac_try_echo=$ac_try;;
1600esac
1601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602$as_echo "$ac_try_echo"; } >&5
1603  (eval "$ac_link") 2>conftest.err
1604  ac_status=$?
1605  if test -s conftest.err; then
1606    grep -v '^ *+' conftest.err >conftest.er1
1607    cat conftest.er1 >&5
1608    mv -f conftest.er1 conftest.err
1609  fi
1610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611  test $ac_status = 0; } && {
1612	 test -z "$ac_c_werror_flag" ||
1613	 test ! -s conftest.err
1614       } && test -s conftest$ac_exeext && {
1615	 test "$cross_compiling" = yes ||
1616	 test -x conftest$ac_exeext
1617       }; then :
1618  ac_retval=0
1619else
1620  $as_echo "$as_me: failed program was:" >&5
1621sed 's/^/| /' conftest.$ac_ext >&5
1622
1623	ac_retval=1
1624fi
1625  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1626  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1627  # interfere with the next link command; also delete a directory that is
1628  # left behind by Apple's compiler.  We do this before executing the actions.
1629  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1630  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631  as_fn_set_status $ac_retval
1632
1633} # ac_fn_c_try_link
1634
1635# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1636# -------------------------------------------------------
1637# Tests whether HEADER exists and can be compiled using the include files in
1638# INCLUDES, setting the cache variable VAR accordingly.
1639ac_fn_c_check_header_compile ()
1640{
1641  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643$as_echo_n "checking for $2... " >&6; }
1644if eval \${$3+:} false; then :
1645  $as_echo_n "(cached) " >&6
1646else
1647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648/* end confdefs.h.  */
1649$4
1650#include <$2>
1651_ACEOF
1652if ac_fn_c_try_compile "$LINENO"; then :
1653  eval "$3=yes"
1654else
1655  eval "$3=no"
1656fi
1657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658fi
1659eval ac_res=\$$3
1660	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661$as_echo "$ac_res" >&6; }
1662  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663
1664} # ac_fn_c_check_header_compile
1665
1666# ac_fn_c_try_cpp LINENO
1667# ----------------------
1668# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1669ac_fn_c_try_cpp ()
1670{
1671  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672  if { { ac_try="$ac_cpp conftest.$ac_ext"
1673case "(($ac_try" in
1674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675  *) ac_try_echo=$ac_try;;
1676esac
1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678$as_echo "$ac_try_echo"; } >&5
1679  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1680  ac_status=$?
1681  if test -s conftest.err; then
1682    grep -v '^ *+' conftest.err >conftest.er1
1683    cat conftest.er1 >&5
1684    mv -f conftest.er1 conftest.err
1685  fi
1686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687  test $ac_status = 0; } > conftest.i && {
1688	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1689	 test ! -s conftest.err
1690       }; then :
1691  ac_retval=0
1692else
1693  $as_echo "$as_me: failed program was:" >&5
1694sed 's/^/| /' conftest.$ac_ext >&5
1695
1696    ac_retval=1
1697fi
1698  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699  as_fn_set_status $ac_retval
1700
1701} # ac_fn_c_try_cpp
1702
1703# ac_fn_c_try_run LINENO
1704# ----------------------
1705# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1706# that executables *can* be run.
1707ac_fn_c_try_run ()
1708{
1709  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710  if { { ac_try="$ac_link"
1711case "(($ac_try" in
1712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713  *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717  (eval "$ac_link") 2>&5
1718  ac_status=$?
1719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1721  { { case "(($ac_try" in
1722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723  *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727  (eval "$ac_try") 2>&5
1728  ac_status=$?
1729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730  test $ac_status = 0; }; }; then :
1731  ac_retval=0
1732else
1733  $as_echo "$as_me: program exited with status $ac_status" >&5
1734       $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737       ac_retval=$ac_status
1738fi
1739  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741  as_fn_set_status $ac_retval
1742
1743} # ac_fn_c_try_run
1744
1745# ac_fn_c_check_func LINENO FUNC VAR
1746# ----------------------------------
1747# Tests whether FUNC exists, setting the cache variable VAR accordingly
1748ac_fn_c_check_func ()
1749{
1750  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752$as_echo_n "checking for $2... " >&6; }
1753if eval \${$3+:} false; then :
1754  $as_echo_n "(cached) " >&6
1755else
1756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757/* end confdefs.h.  */
1758/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1759   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1760#define $2 innocuous_$2
1761
1762/* System header to define __stub macros and hopefully few prototypes,
1763    which can conflict with char $2 (); below.
1764    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1765    <limits.h> exists even on freestanding compilers.  */
1766
1767#ifdef __STDC__
1768# include <limits.h>
1769#else
1770# include <assert.h>
1771#endif
1772
1773#undef $2
1774
1775/* Override any GCC internal prototype to avoid an error.
1776   Use char because int might match the return type of a GCC
1777   builtin and then its argument prototype would still apply.  */
1778#ifdef __cplusplus
1779extern "C"
1780#endif
1781char $2 ();
1782/* The GNU C library defines this for functions which it implements
1783    to always fail with ENOSYS.  Some functions are actually named
1784    something starting with __ and the normal name is an alias.  */
1785#if defined __stub_$2 || defined __stub___$2
1786choke me
1787#endif
1788
1789int
1790main ()
1791{
1792return $2 ();
1793  ;
1794  return 0;
1795}
1796_ACEOF
1797if ac_fn_c_try_link "$LINENO"; then :
1798  eval "$3=yes"
1799else
1800  eval "$3=no"
1801fi
1802rm -f core conftest.err conftest.$ac_objext \
1803    conftest$ac_exeext conftest.$ac_ext
1804fi
1805eval ac_res=\$$3
1806	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807$as_echo "$ac_res" >&6; }
1808  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809
1810} # ac_fn_c_check_func
1811
1812# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1813# -------------------------------------------------------
1814# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1815# the include files in INCLUDES and setting the cache variable VAR
1816# accordingly.
1817ac_fn_c_check_header_mongrel ()
1818{
1819  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820  if eval \${$3+:} false; then :
1821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822$as_echo_n "checking for $2... " >&6; }
1823if eval \${$3+:} false; then :
1824  $as_echo_n "(cached) " >&6
1825fi
1826eval ac_res=\$$3
1827	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828$as_echo "$ac_res" >&6; }
1829else
1830  # Is the header compilable?
1831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1832$as_echo_n "checking $2 usability... " >&6; }
1833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834/* end confdefs.h.  */
1835$4
1836#include <$2>
1837_ACEOF
1838if ac_fn_c_try_compile "$LINENO"; then :
1839  ac_header_compiler=yes
1840else
1841  ac_header_compiler=no
1842fi
1843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1845$as_echo "$ac_header_compiler" >&6; }
1846
1847# Is the header present?
1848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1849$as_echo_n "checking $2 presence... " >&6; }
1850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851/* end confdefs.h.  */
1852#include <$2>
1853_ACEOF
1854if ac_fn_c_try_cpp "$LINENO"; then :
1855  ac_header_preproc=yes
1856else
1857  ac_header_preproc=no
1858fi
1859rm -f conftest.err conftest.i conftest.$ac_ext
1860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1861$as_echo "$ac_header_preproc" >&6; }
1862
1863# So?  What about this header?
1864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1865  yes:no: )
1866    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1867$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1868    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870    ;;
1871  no:yes:* )
1872    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1873$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1874    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1875$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1876    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1877$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1878    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1879$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1880    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1881$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882    ;;
1883esac
1884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885$as_echo_n "checking for $2... " >&6; }
1886if eval \${$3+:} false; then :
1887  $as_echo_n "(cached) " >&6
1888else
1889  eval "$3=\$ac_header_compiler"
1890fi
1891eval ac_res=\$$3
1892	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893$as_echo "$ac_res" >&6; }
1894fi
1895  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896
1897} # ac_fn_c_check_header_mongrel
1898
1899# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1900# -------------------------------------------
1901# Tests whether TYPE exists after having included INCLUDES, setting cache
1902# variable VAR accordingly.
1903ac_fn_c_check_type ()
1904{
1905  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907$as_echo_n "checking for $2... " >&6; }
1908if eval \${$3+:} false; then :
1909  $as_echo_n "(cached) " >&6
1910else
1911  eval "$3=no"
1912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h.  */
1914$4
1915int
1916main ()
1917{
1918if (sizeof ($2))
1919	 return 0;
1920  ;
1921  return 0;
1922}
1923_ACEOF
1924if ac_fn_c_try_compile "$LINENO"; then :
1925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926/* end confdefs.h.  */
1927$4
1928int
1929main ()
1930{
1931if (sizeof (($2)))
1932	    return 0;
1933  ;
1934  return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_compile "$LINENO"; then :
1938
1939else
1940  eval "$3=yes"
1941fi
1942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943fi
1944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945fi
1946eval ac_res=\$$3
1947	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948$as_echo "$ac_res" >&6; }
1949  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950
1951} # ac_fn_c_check_type
1952cat >config.log <<_ACEOF
1953This file contains any messages produced by compilers while
1954running configure, to aid debugging if configure makes a mistake.
1955
1956It was created by LibDsk $as_me 1.4.2, which was
1957generated by GNU Autoconf 2.69.  Invocation command line was
1958
1959  $ $0 $@
1960
1961_ACEOF
1962exec 5>>config.log
1963{
1964cat <<_ASUNAME
1965## --------- ##
1966## Platform. ##
1967## --------- ##
1968
1969hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1970uname -m = `(uname -m) 2>/dev/null || echo unknown`
1971uname -r = `(uname -r) 2>/dev/null || echo unknown`
1972uname -s = `(uname -s) 2>/dev/null || echo unknown`
1973uname -v = `(uname -v) 2>/dev/null || echo unknown`
1974
1975/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1976/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1977
1978/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1979/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1980/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1981/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1982/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1983/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1984/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1985
1986_ASUNAME
1987
1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991  IFS=$as_save_IFS
1992  test -z "$as_dir" && as_dir=.
1993    $as_echo "PATH: $as_dir"
1994  done
1995IFS=$as_save_IFS
1996
1997} >&5
1998
1999cat >&5 <<_ACEOF
2000
2001
2002## ----------- ##
2003## Core tests. ##
2004## ----------- ##
2005
2006_ACEOF
2007
2008
2009# Keep a trace of the command line.
2010# Strip out --no-create and --no-recursion so they do not pile up.
2011# Strip out --silent because we don't want to record it for future runs.
2012# Also quote any args containing shell meta-characters.
2013# Make two passes to allow for proper duplicate-argument suppression.
2014ac_configure_args=
2015ac_configure_args0=
2016ac_configure_args1=
2017ac_must_keep_next=false
2018for ac_pass in 1 2
2019do
2020  for ac_arg
2021  do
2022    case $ac_arg in
2023    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2024    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2025    | -silent | --silent | --silen | --sile | --sil)
2026      continue ;;
2027    *\'*)
2028      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2029    esac
2030    case $ac_pass in
2031    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2032    2)
2033      as_fn_append ac_configure_args1 " '$ac_arg'"
2034      if test $ac_must_keep_next = true; then
2035	ac_must_keep_next=false # Got value, back to normal.
2036      else
2037	case $ac_arg in
2038	  *=* | --config-cache | -C | -disable-* | --disable-* \
2039	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2040	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2041	  | -with-* | --with-* | -without-* | --without-* | --x)
2042	    case "$ac_configure_args0 " in
2043	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2044	    esac
2045	    ;;
2046	  -* ) ac_must_keep_next=true ;;
2047	esac
2048      fi
2049      as_fn_append ac_configure_args " '$ac_arg'"
2050      ;;
2051    esac
2052  done
2053done
2054{ ac_configure_args0=; unset ac_configure_args0;}
2055{ ac_configure_args1=; unset ac_configure_args1;}
2056
2057# When interrupted or exit'd, cleanup temporary files, and complete
2058# config.log.  We remove comments because anyway the quotes in there
2059# would cause problems or look ugly.
2060# WARNING: Use '\'' to represent an apostrophe within the trap.
2061# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2062trap 'exit_status=$?
2063  # Save into config.log some information that might help in debugging.
2064  {
2065    echo
2066
2067    $as_echo "## ---------------- ##
2068## Cache variables. ##
2069## ---------------- ##"
2070    echo
2071    # The following way of writing the cache mishandles newlines in values,
2072(
2073  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2074    eval ac_val=\$$ac_var
2075    case $ac_val in #(
2076    *${as_nl}*)
2077      case $ac_var in #(
2078      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2079$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2080      esac
2081      case $ac_var in #(
2082      _ | IFS | as_nl) ;; #(
2083      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2084      *) { eval $ac_var=; unset $ac_var;} ;;
2085      esac ;;
2086    esac
2087  done
2088  (set) 2>&1 |
2089    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2090    *${as_nl}ac_space=\ *)
2091      sed -n \
2092	"s/'\''/'\''\\\\'\'''\''/g;
2093	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2094      ;; #(
2095    *)
2096      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2097      ;;
2098    esac |
2099    sort
2100)
2101    echo
2102
2103    $as_echo "## ----------------- ##
2104## Output variables. ##
2105## ----------------- ##"
2106    echo
2107    for ac_var in $ac_subst_vars
2108    do
2109      eval ac_val=\$$ac_var
2110      case $ac_val in
2111      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112      esac
2113      $as_echo "$ac_var='\''$ac_val'\''"
2114    done | sort
2115    echo
2116
2117    if test -n "$ac_subst_files"; then
2118      $as_echo "## ------------------- ##
2119## File substitutions. ##
2120## ------------------- ##"
2121      echo
2122      for ac_var in $ac_subst_files
2123      do
2124	eval ac_val=\$$ac_var
2125	case $ac_val in
2126	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127	esac
2128	$as_echo "$ac_var='\''$ac_val'\''"
2129      done | sort
2130      echo
2131    fi
2132
2133    if test -s confdefs.h; then
2134      $as_echo "## ----------- ##
2135## confdefs.h. ##
2136## ----------- ##"
2137      echo
2138      cat confdefs.h
2139      echo
2140    fi
2141    test "$ac_signal" != 0 &&
2142      $as_echo "$as_me: caught signal $ac_signal"
2143    $as_echo "$as_me: exit $exit_status"
2144  } >&5
2145  rm -f core *.core core.conftest.* &&
2146    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2147    exit $exit_status
2148' 0
2149for ac_signal in 1 2 13 15; do
2150  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2151done
2152ac_signal=0
2153
2154# confdefs.h avoids OS command line length limits that DEFS can exceed.
2155rm -f -r conftest* confdefs.h
2156
2157$as_echo "/* confdefs.h */" > confdefs.h
2158
2159# Predefined preprocessor variables.
2160
2161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_NAME "$PACKAGE_NAME"
2163_ACEOF
2164
2165cat >>confdefs.h <<_ACEOF
2166#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2167_ACEOF
2168
2169cat >>confdefs.h <<_ACEOF
2170#define PACKAGE_VERSION "$PACKAGE_VERSION"
2171_ACEOF
2172
2173cat >>confdefs.h <<_ACEOF
2174#define PACKAGE_STRING "$PACKAGE_STRING"
2175_ACEOF
2176
2177cat >>confdefs.h <<_ACEOF
2178#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2179_ACEOF
2180
2181cat >>confdefs.h <<_ACEOF
2182#define PACKAGE_URL "$PACKAGE_URL"
2183_ACEOF
2184
2185
2186# Let the site file select an alternate cache file if it wants to.
2187# Prefer an explicitly selected file to automatically selected ones.
2188ac_site_file1=NONE
2189ac_site_file2=NONE
2190if test -n "$CONFIG_SITE"; then
2191  # We do not want a PATH search for config.site.
2192  case $CONFIG_SITE in #((
2193    -*)  ac_site_file1=./$CONFIG_SITE;;
2194    */*) ac_site_file1=$CONFIG_SITE;;
2195    *)   ac_site_file1=./$CONFIG_SITE;;
2196  esac
2197elif test "x$prefix" != xNONE; then
2198  ac_site_file1=$prefix/share/config.site
2199  ac_site_file2=$prefix/etc/config.site
2200else
2201  ac_site_file1=$ac_default_prefix/share/config.site
2202  ac_site_file2=$ac_default_prefix/etc/config.site
2203fi
2204for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2205do
2206  test "x$ac_site_file" = xNONE && continue
2207  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2208    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2209$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2210    sed 's/^/| /' "$ac_site_file" >&5
2211    . "$ac_site_file" \
2212      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214as_fn_error $? "failed to load site script $ac_site_file
2215See \`config.log' for more details" "$LINENO" 5; }
2216  fi
2217done
2218
2219if test -r "$cache_file"; then
2220  # Some versions of bash will fail to source /dev/null (special files
2221  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2222  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2223    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2224$as_echo "$as_me: loading cache $cache_file" >&6;}
2225    case $cache_file in
2226      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2227      *)                      . "./$cache_file";;
2228    esac
2229  fi
2230else
2231  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2232$as_echo "$as_me: creating cache $cache_file" >&6;}
2233  >$cache_file
2234fi
2235
2236# Check that the precious variables saved in the cache have kept the same
2237# value.
2238ac_cache_corrupted=false
2239for ac_var in $ac_precious_vars; do
2240  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2241  eval ac_new_set=\$ac_env_${ac_var}_set
2242  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2243  eval ac_new_val=\$ac_env_${ac_var}_value
2244  case $ac_old_set,$ac_new_set in
2245    set,)
2246      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2247$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2248      ac_cache_corrupted=: ;;
2249    ,set)
2250      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2251$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2252      ac_cache_corrupted=: ;;
2253    ,);;
2254    *)
2255      if test "x$ac_old_val" != "x$ac_new_val"; then
2256	# differences in whitespace do not lead to failure.
2257	ac_old_val_w=`echo x $ac_old_val`
2258	ac_new_val_w=`echo x $ac_new_val`
2259	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2260	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2261$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2262	  ac_cache_corrupted=:
2263	else
2264	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2265$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2266	  eval $ac_var=\$ac_old_val
2267	fi
2268	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2269$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2270	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2271$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2272      fi;;
2273  esac
2274  # Pass precious variables to config.status.
2275  if test "$ac_new_set" = set; then
2276    case $ac_new_val in
2277    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2278    *) ac_arg=$ac_var=$ac_new_val ;;
2279    esac
2280    case " $ac_configure_args " in
2281      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2282      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2283    esac
2284  fi
2285done
2286if $ac_cache_corrupted; then
2287  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2289  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2290$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2291  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2292fi
2293## -------------------- ##
2294## Main body of script. ##
2295## -------------------- ##
2296
2297ac_ext=c
2298ac_cpp='$CPP $CPPFLAGS'
2299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2301ac_compiler_gnu=$ac_cv_c_compiler_gnu
2302
2303
2304
2305ac_aux_dir=
2306for ac_dir in config "$srcdir"/config; do
2307  if 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/install.sh"; then
2312    ac_aux_dir=$ac_dir
2313    ac_install_sh="$ac_aux_dir/install.sh -c"
2314    break
2315  elif test -f "$ac_dir/shtool"; then
2316    ac_aux_dir=$ac_dir
2317    ac_install_sh="$ac_aux_dir/shtool install -c"
2318    break
2319  fi
2320done
2321if test -z "$ac_aux_dir"; then
2322  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2323fi
2324
2325# These three variables are undocumented and unsupported,
2326# and are intended to be withdrawn in a future Autoconf release.
2327# They can cause serious problems if a builder's source tree is in a directory
2328# whose full name contains unusual characters.
2329ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2330ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2331ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2332
2333
2334
2335# Make sure we can run config.sub.
2336$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2337  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2338
2339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2340$as_echo_n "checking build system type... " >&6; }
2341if ${ac_cv_build+:} false; then :
2342  $as_echo_n "(cached) " >&6
2343else
2344  ac_build_alias=$build_alias
2345test "x$ac_build_alias" = x &&
2346  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2347test "x$ac_build_alias" = x &&
2348  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2349ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2350  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2351
2352fi
2353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2354$as_echo "$ac_cv_build" >&6; }
2355case $ac_cv_build in
2356*-*-*) ;;
2357*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2358esac
2359build=$ac_cv_build
2360ac_save_IFS=$IFS; IFS='-'
2361set x $ac_cv_build
2362shift
2363build_cpu=$1
2364build_vendor=$2
2365shift; shift
2366# Remember, the first character of IFS is used to create $*,
2367# except with old shells:
2368build_os=$*
2369IFS=$ac_save_IFS
2370case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2371
2372
2373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2374$as_echo_n "checking host system type... " >&6; }
2375if ${ac_cv_host+:} false; then :
2376  $as_echo_n "(cached) " >&6
2377else
2378  if test "x$host_alias" = x; then
2379  ac_cv_host=$ac_cv_build
2380else
2381  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2382    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2383fi
2384
2385fi
2386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2387$as_echo "$ac_cv_host" >&6; }
2388case $ac_cv_host in
2389*-*-*) ;;
2390*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2391esac
2392host=$ac_cv_host
2393ac_save_IFS=$IFS; IFS='-'
2394set x $ac_cv_host
2395shift
2396host_cpu=$1
2397host_vendor=$2
2398shift; shift
2399# Remember, the first character of IFS is used to create $*,
2400# except with old shells:
2401host_os=$*
2402IFS=$ac_save_IFS
2403case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2404
2405
2406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2407$as_echo_n "checking target system type... " >&6; }
2408if ${ac_cv_target+:} false; then :
2409  $as_echo_n "(cached) " >&6
2410else
2411  if test "x$target_alias" = x; then
2412  ac_cv_target=$ac_cv_host
2413else
2414  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2415    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2416fi
2417
2418fi
2419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2420$as_echo "$ac_cv_target" >&6; }
2421case $ac_cv_target in
2422*-*-*) ;;
2423*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2424esac
2425target=$ac_cv_target
2426ac_save_IFS=$IFS; IFS='-'
2427set x $ac_cv_target
2428shift
2429target_cpu=$1
2430target_vendor=$2
2431shift; shift
2432# Remember, the first character of IFS is used to create $*,
2433# except with old shells:
2434target_os=$*
2435IFS=$ac_save_IFS
2436case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2437
2438
2439# The aliases save the names the user supplied, while $host etc.
2440# will get canonicalized.
2441test -n "$target_alias" &&
2442  test "$program_prefix$program_suffix$program_transform_name" = \
2443    NONENONEs,x,x, &&
2444  program_prefix=${target_alias}-
2445
2446case `pwd` in
2447  *\ * | *\	*)
2448    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2449$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2450esac
2451
2452
2453
2454macro_version='2.4.6'
2455macro_revision='2.4.6'
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469ltmain=$ac_aux_dir/ltmain.sh
2470
2471# Backslashify metacharacters that are still active within
2472# double-quoted strings.
2473sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2474
2475# Same as above, but do not quote variable references.
2476double_quote_subst='s/\(["`\\]\)/\\\1/g'
2477
2478# Sed substitution to delay expansion of an escaped shell variable in a
2479# double_quote_subst'ed string.
2480delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2481
2482# Sed substitution to delay expansion of an escaped single quote.
2483delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2484
2485# Sed substitution to avoid accidental globbing in evaled expressions
2486no_glob_subst='s/\*/\\\*/g'
2487
2488ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2489ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2490ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2491
2492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2493$as_echo_n "checking how to print strings... " >&6; }
2494# Test print first, because it will be a builtin if present.
2495if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2496   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2497  ECHO='print -r --'
2498elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2499  ECHO='printf %s\n'
2500else
2501  # Use this function as a fallback that always works.
2502  func_fallback_echo ()
2503  {
2504    eval 'cat <<_LTECHO_EOF
2505$1
2506_LTECHO_EOF'
2507  }
2508  ECHO='func_fallback_echo'
2509fi
2510
2511# func_echo_all arg...
2512# Invoke $ECHO with all args, space-separated.
2513func_echo_all ()
2514{
2515    $ECHO ""
2516}
2517
2518case $ECHO in
2519  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2520$as_echo "printf" >&6; } ;;
2521  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2522$as_echo "print -r" >&6; } ;;
2523  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2524$as_echo "cat" >&6; } ;;
2525esac
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540# Expand $ac_aux_dir to an absolute path.
2541am_aux_dir=`cd "$ac_aux_dir" && pwd`
2542
2543ac_ext=c
2544ac_cpp='$CPP $CPPFLAGS'
2545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2547ac_compiler_gnu=$ac_cv_c_compiler_gnu
2548if test -n "$ac_tool_prefix"; then
2549  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2550set dummy ${ac_tool_prefix}gcc; ac_word=$2
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552$as_echo_n "checking for $ac_word... " >&6; }
2553if ${ac_cv_prog_CC+:} false; then :
2554  $as_echo_n "(cached) " >&6
2555else
2556  if test -n "$CC"; then
2557  ac_cv_prog_CC="$CC" # Let the user override the test.
2558else
2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560for as_dir in $PATH
2561do
2562  IFS=$as_save_IFS
2563  test -z "$as_dir" && as_dir=.
2564    for ac_exec_ext in '' $ac_executable_extensions; do
2565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568    break 2
2569  fi
2570done
2571  done
2572IFS=$as_save_IFS
2573
2574fi
2575fi
2576CC=$ac_cv_prog_CC
2577if test -n "$CC"; then
2578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2579$as_echo "$CC" >&6; }
2580else
2581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582$as_echo "no" >&6; }
2583fi
2584
2585
2586fi
2587if test -z "$ac_cv_prog_CC"; then
2588  ac_ct_CC=$CC
2589  # Extract the first word of "gcc", so it can be a program name with args.
2590set dummy gcc; ac_word=$2
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592$as_echo_n "checking for $ac_word... " >&6; }
2593if ${ac_cv_prog_ac_ct_CC+:} false; then :
2594  $as_echo_n "(cached) " >&6
2595else
2596  if test -n "$ac_ct_CC"; then
2597  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2598else
2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600for as_dir in $PATH
2601do
2602  IFS=$as_save_IFS
2603  test -z "$as_dir" && as_dir=.
2604    for ac_exec_ext in '' $ac_executable_extensions; do
2605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606    ac_cv_prog_ac_ct_CC="gcc"
2607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608    break 2
2609  fi
2610done
2611  done
2612IFS=$as_save_IFS
2613
2614fi
2615fi
2616ac_ct_CC=$ac_cv_prog_ac_ct_CC
2617if test -n "$ac_ct_CC"; then
2618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2619$as_echo "$ac_ct_CC" >&6; }
2620else
2621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622$as_echo "no" >&6; }
2623fi
2624
2625  if test "x$ac_ct_CC" = x; then
2626    CC=""
2627  else
2628    case $cross_compiling:$ac_tool_warned in
2629yes:)
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2632ac_tool_warned=yes ;;
2633esac
2634    CC=$ac_ct_CC
2635  fi
2636else
2637  CC="$ac_cv_prog_CC"
2638fi
2639
2640if test -z "$CC"; then
2641          if test -n "$ac_tool_prefix"; then
2642    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2643set dummy ${ac_tool_prefix}cc; ac_word=$2
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645$as_echo_n "checking for $ac_word... " >&6; }
2646if ${ac_cv_prog_CC+:} false; then :
2647  $as_echo_n "(cached) " >&6
2648else
2649  if test -n "$CC"; then
2650  ac_cv_prog_CC="$CC" # Let the user override the test.
2651else
2652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653for as_dir in $PATH
2654do
2655  IFS=$as_save_IFS
2656  test -z "$as_dir" && as_dir=.
2657    for ac_exec_ext in '' $ac_executable_extensions; do
2658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659    ac_cv_prog_CC="${ac_tool_prefix}cc"
2660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661    break 2
2662  fi
2663done
2664  done
2665IFS=$as_save_IFS
2666
2667fi
2668fi
2669CC=$ac_cv_prog_CC
2670if test -n "$CC"; then
2671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2672$as_echo "$CC" >&6; }
2673else
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675$as_echo "no" >&6; }
2676fi
2677
2678
2679  fi
2680fi
2681if test -z "$CC"; then
2682  # Extract the first word of "cc", so it can be a program name with args.
2683set dummy cc; ac_word=$2
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685$as_echo_n "checking for $ac_word... " >&6; }
2686if ${ac_cv_prog_CC+:} false; then :
2687  $as_echo_n "(cached) " >&6
2688else
2689  if test -n "$CC"; then
2690  ac_cv_prog_CC="$CC" # Let the user override the test.
2691else
2692  ac_prog_rejected=no
2693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694for as_dir in $PATH
2695do
2696  IFS=$as_save_IFS
2697  test -z "$as_dir" && as_dir=.
2698    for ac_exec_ext in '' $ac_executable_extensions; do
2699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2700    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2701       ac_prog_rejected=yes
2702       continue
2703     fi
2704    ac_cv_prog_CC="cc"
2705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706    break 2
2707  fi
2708done
2709  done
2710IFS=$as_save_IFS
2711
2712if test $ac_prog_rejected = yes; then
2713  # We found a bogon in the path, so make sure we never use it.
2714  set dummy $ac_cv_prog_CC
2715  shift
2716  if test $# != 0; then
2717    # We chose a different compiler from the bogus one.
2718    # However, it has the same basename, so the bogon will be chosen
2719    # first if we set CC to just the basename; use the full file name.
2720    shift
2721    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2722  fi
2723fi
2724fi
2725fi
2726CC=$ac_cv_prog_CC
2727if test -n "$CC"; then
2728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2729$as_echo "$CC" >&6; }
2730else
2731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732$as_echo "no" >&6; }
2733fi
2734
2735
2736fi
2737if test -z "$CC"; then
2738  if test -n "$ac_tool_prefix"; then
2739  for ac_prog in cl.exe
2740  do
2741    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2742set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744$as_echo_n "checking for $ac_word... " >&6; }
2745if ${ac_cv_prog_CC+:} false; then :
2746  $as_echo_n "(cached) " >&6
2747else
2748  if test -n "$CC"; then
2749  ac_cv_prog_CC="$CC" # Let the user override the test.
2750else
2751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752for as_dir in $PATH
2753do
2754  IFS=$as_save_IFS
2755  test -z "$as_dir" && as_dir=.
2756    for ac_exec_ext in '' $ac_executable_extensions; do
2757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2758    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760    break 2
2761  fi
2762done
2763  done
2764IFS=$as_save_IFS
2765
2766fi
2767fi
2768CC=$ac_cv_prog_CC
2769if test -n "$CC"; then
2770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2771$as_echo "$CC" >&6; }
2772else
2773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774$as_echo "no" >&6; }
2775fi
2776
2777
2778    test -n "$CC" && break
2779  done
2780fi
2781if test -z "$CC"; then
2782  ac_ct_CC=$CC
2783  for ac_prog in cl.exe
2784do
2785  # Extract the first word of "$ac_prog", so it can be a program name with args.
2786set dummy $ac_prog; ac_word=$2
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788$as_echo_n "checking for $ac_word... " >&6; }
2789if ${ac_cv_prog_ac_ct_CC+:} false; then :
2790  $as_echo_n "(cached) " >&6
2791else
2792  if test -n "$ac_ct_CC"; then
2793  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2794else
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798  IFS=$as_save_IFS
2799  test -z "$as_dir" && as_dir=.
2800    for ac_exec_ext in '' $ac_executable_extensions; do
2801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802    ac_cv_prog_ac_ct_CC="$ac_prog"
2803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804    break 2
2805  fi
2806done
2807  done
2808IFS=$as_save_IFS
2809
2810fi
2811fi
2812ac_ct_CC=$ac_cv_prog_ac_ct_CC
2813if test -n "$ac_ct_CC"; then
2814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2815$as_echo "$ac_ct_CC" >&6; }
2816else
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818$as_echo "no" >&6; }
2819fi
2820
2821
2822  test -n "$ac_ct_CC" && break
2823done
2824
2825  if test "x$ac_ct_CC" = x; then
2826    CC=""
2827  else
2828    case $cross_compiling:$ac_tool_warned in
2829yes:)
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2832ac_tool_warned=yes ;;
2833esac
2834    CC=$ac_ct_CC
2835  fi
2836fi
2837
2838fi
2839
2840
2841test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2843as_fn_error $? "no acceptable C compiler found in \$PATH
2844See \`config.log' for more details" "$LINENO" 5; }
2845
2846# Provide some information about the compiler.
2847$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2848set X $ac_compile
2849ac_compiler=$2
2850for ac_option in --version -v -V -qversion; do
2851  { { ac_try="$ac_compiler $ac_option >&5"
2852case "(($ac_try" in
2853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854  *) ac_try_echo=$ac_try;;
2855esac
2856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2857$as_echo "$ac_try_echo"; } >&5
2858  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2859  ac_status=$?
2860  if test -s conftest.err; then
2861    sed '10a\
2862... rest of stderr output deleted ...
2863         10q' conftest.err >conftest.er1
2864    cat conftest.er1 >&5
2865  fi
2866  rm -f conftest.er1 conftest.err
2867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2868  test $ac_status = 0; }
2869done
2870
2871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2872/* end confdefs.h.  */
2873
2874int
2875main ()
2876{
2877
2878  ;
2879  return 0;
2880}
2881_ACEOF
2882ac_clean_files_save=$ac_clean_files
2883ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2884# Try to create an executable without -o first, disregard a.out.
2885# It will help us diagnose broken compilers, and finding out an intuition
2886# of exeext.
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2888$as_echo_n "checking whether the C compiler works... " >&6; }
2889ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2890
2891# The possible output files:
2892ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2893
2894ac_rmfiles=
2895for ac_file in $ac_files
2896do
2897  case $ac_file in
2898    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2899    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2900  esac
2901done
2902rm -f $ac_rmfiles
2903
2904if { { ac_try="$ac_link_default"
2905case "(($ac_try" in
2906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907  *) ac_try_echo=$ac_try;;
2908esac
2909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2910$as_echo "$ac_try_echo"; } >&5
2911  (eval "$ac_link_default") 2>&5
2912  ac_status=$?
2913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2914  test $ac_status = 0; }; then :
2915  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2916# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2917# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2918# so that the user can short-circuit this test for compilers unknown to
2919# Autoconf.
2920for ac_file in $ac_files ''
2921do
2922  test -f "$ac_file" || continue
2923  case $ac_file in
2924    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2925	;;
2926    [ab].out )
2927	# We found the default executable, but exeext='' is most
2928	# certainly right.
2929	break;;
2930    *.* )
2931	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2932	then :; else
2933	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2934	fi
2935	# We set ac_cv_exeext here because the later test for it is not
2936	# safe: cross compilers may not add the suffix if given an `-o'
2937	# argument, so we may need to know it at that point already.
2938	# Even if this section looks crufty: it has the advantage of
2939	# actually working.
2940	break;;
2941    * )
2942	break;;
2943  esac
2944done
2945test "$ac_cv_exeext" = no && ac_cv_exeext=
2946
2947else
2948  ac_file=''
2949fi
2950if test -z "$ac_file"; then :
2951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952$as_echo "no" >&6; }
2953$as_echo "$as_me: failed program was:" >&5
2954sed 's/^/| /' conftest.$ac_ext >&5
2955
2956{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958as_fn_error 77 "C compiler cannot create executables
2959See \`config.log' for more details" "$LINENO" 5; }
2960else
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2962$as_echo "yes" >&6; }
2963fi
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2965$as_echo_n "checking for C compiler default output file name... " >&6; }
2966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2967$as_echo "$ac_file" >&6; }
2968ac_exeext=$ac_cv_exeext
2969
2970rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2971ac_clean_files=$ac_clean_files_save
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2973$as_echo_n "checking for suffix of executables... " >&6; }
2974if { { ac_try="$ac_link"
2975case "(($ac_try" in
2976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977  *) ac_try_echo=$ac_try;;
2978esac
2979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980$as_echo "$ac_try_echo"; } >&5
2981  (eval "$ac_link") 2>&5
2982  ac_status=$?
2983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984  test $ac_status = 0; }; then :
2985  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2986# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2987# work properly (i.e., refer to `conftest.exe'), while it won't with
2988# `rm'.
2989for ac_file in conftest.exe conftest conftest.*; do
2990  test -f "$ac_file" || continue
2991  case $ac_file in
2992    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2993    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2994	  break;;
2995    * ) break;;
2996  esac
2997done
2998else
2999  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3001as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3002See \`config.log' for more details" "$LINENO" 5; }
3003fi
3004rm -f conftest conftest$ac_cv_exeext
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3006$as_echo "$ac_cv_exeext" >&6; }
3007
3008rm -f conftest.$ac_ext
3009EXEEXT=$ac_cv_exeext
3010ac_exeext=$EXEEXT
3011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3012/* end confdefs.h.  */
3013#include <stdio.h>
3014int
3015main ()
3016{
3017FILE *f = fopen ("conftest.out", "w");
3018 return ferror (f) || fclose (f) != 0;
3019
3020  ;
3021  return 0;
3022}
3023_ACEOF
3024ac_clean_files="$ac_clean_files conftest.out"
3025# Check that the compiler produces executables we can run.  If not, either
3026# the compiler is broken, or we cross compile.
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3028$as_echo_n "checking whether we are cross compiling... " >&6; }
3029if test "$cross_compiling" != yes; then
3030  { { ac_try="$ac_link"
3031case "(($ac_try" in
3032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033  *) ac_try_echo=$ac_try;;
3034esac
3035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3036$as_echo "$ac_try_echo"; } >&5
3037  (eval "$ac_link") 2>&5
3038  ac_status=$?
3039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040  test $ac_status = 0; }
3041  if { ac_try='./conftest$ac_cv_exeext'
3042  { { case "(($ac_try" in
3043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044  *) ac_try_echo=$ac_try;;
3045esac
3046eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047$as_echo "$ac_try_echo"; } >&5
3048  (eval "$ac_try") 2>&5
3049  ac_status=$?
3050  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051  test $ac_status = 0; }; }; then
3052    cross_compiling=no
3053  else
3054    if test "$cross_compiling" = maybe; then
3055	cross_compiling=yes
3056    else
3057	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3059as_fn_error $? "cannot run C compiled programs.
3060If you meant to cross compile, use \`--host'.
3061See \`config.log' for more details" "$LINENO" 5; }
3062    fi
3063  fi
3064fi
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3066$as_echo "$cross_compiling" >&6; }
3067
3068rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3069ac_clean_files=$ac_clean_files_save
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3071$as_echo_n "checking for suffix of object files... " >&6; }
3072if ${ac_cv_objext+:} false; then :
3073  $as_echo_n "(cached) " >&6
3074else
3075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076/* end confdefs.h.  */
3077
3078int
3079main ()
3080{
3081
3082  ;
3083  return 0;
3084}
3085_ACEOF
3086rm -f conftest.o conftest.obj
3087if { { ac_try="$ac_compile"
3088case "(($ac_try" in
3089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090  *) ac_try_echo=$ac_try;;
3091esac
3092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3093$as_echo "$ac_try_echo"; } >&5
3094  (eval "$ac_compile") 2>&5
3095  ac_status=$?
3096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097  test $ac_status = 0; }; then :
3098  for ac_file in conftest.o conftest.obj conftest.*; do
3099  test -f "$ac_file" || continue;
3100  case $ac_file in
3101    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3102    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3103       break;;
3104  esac
3105done
3106else
3107  $as_echo "$as_me: failed program was:" >&5
3108sed 's/^/| /' conftest.$ac_ext >&5
3109
3110{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3111$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3112as_fn_error $? "cannot compute suffix of object files: cannot compile
3113See \`config.log' for more details" "$LINENO" 5; }
3114fi
3115rm -f conftest.$ac_cv_objext conftest.$ac_ext
3116fi
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3118$as_echo "$ac_cv_objext" >&6; }
3119OBJEXT=$ac_cv_objext
3120ac_objext=$OBJEXT
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3122$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3123if ${ac_cv_c_compiler_gnu+:} false; then :
3124  $as_echo_n "(cached) " >&6
3125else
3126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127/* end confdefs.h.  */
3128
3129int
3130main ()
3131{
3132#ifndef __GNUC__
3133       choke me
3134#endif
3135
3136  ;
3137  return 0;
3138}
3139_ACEOF
3140if ac_fn_c_try_compile "$LINENO"; then :
3141  ac_compiler_gnu=yes
3142else
3143  ac_compiler_gnu=no
3144fi
3145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3146ac_cv_c_compiler_gnu=$ac_compiler_gnu
3147
3148fi
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3150$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3151if test $ac_compiler_gnu = yes; then
3152  GCC=yes
3153else
3154  GCC=
3155fi
3156ac_test_CFLAGS=${CFLAGS+set}
3157ac_save_CFLAGS=$CFLAGS
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3159$as_echo_n "checking whether $CC accepts -g... " >&6; }
3160if ${ac_cv_prog_cc_g+:} false; then :
3161  $as_echo_n "(cached) " >&6
3162else
3163  ac_save_c_werror_flag=$ac_c_werror_flag
3164   ac_c_werror_flag=yes
3165   ac_cv_prog_cc_g=no
3166   CFLAGS="-g"
3167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168/* end confdefs.h.  */
3169
3170int
3171main ()
3172{
3173
3174  ;
3175  return 0;
3176}
3177_ACEOF
3178if ac_fn_c_try_compile "$LINENO"; then :
3179  ac_cv_prog_cc_g=yes
3180else
3181  CFLAGS=""
3182      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183/* end confdefs.h.  */
3184
3185int
3186main ()
3187{
3188
3189  ;
3190  return 0;
3191}
3192_ACEOF
3193if ac_fn_c_try_compile "$LINENO"; then :
3194
3195else
3196  ac_c_werror_flag=$ac_save_c_werror_flag
3197	 CFLAGS="-g"
3198	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3199/* end confdefs.h.  */
3200
3201int
3202main ()
3203{
3204
3205  ;
3206  return 0;
3207}
3208_ACEOF
3209if ac_fn_c_try_compile "$LINENO"; then :
3210  ac_cv_prog_cc_g=yes
3211fi
3212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213fi
3214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215fi
3216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217   ac_c_werror_flag=$ac_save_c_werror_flag
3218fi
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3220$as_echo "$ac_cv_prog_cc_g" >&6; }
3221if test "$ac_test_CFLAGS" = set; then
3222  CFLAGS=$ac_save_CFLAGS
3223elif test $ac_cv_prog_cc_g = yes; then
3224  if test "$GCC" = yes; then
3225    CFLAGS="-g -O2"
3226  else
3227    CFLAGS="-g"
3228  fi
3229else
3230  if test "$GCC" = yes; then
3231    CFLAGS="-O2"
3232  else
3233    CFLAGS=
3234  fi
3235fi
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3237$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3238if ${ac_cv_prog_cc_c89+:} false; then :
3239  $as_echo_n "(cached) " >&6
3240else
3241  ac_cv_prog_cc_c89=no
3242ac_save_CC=$CC
3243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244/* end confdefs.h.  */
3245#include <stdarg.h>
3246#include <stdio.h>
3247struct stat;
3248/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3249struct buf { int x; };
3250FILE * (*rcsopen) (struct buf *, struct stat *, int);
3251static char *e (p, i)
3252     char **p;
3253     int i;
3254{
3255  return p[i];
3256}
3257static char *f (char * (*g) (char **, int), char **p, ...)
3258{
3259  char *s;
3260  va_list v;
3261  va_start (v,p);
3262  s = g (p, va_arg (v,int));
3263  va_end (v);
3264  return s;
3265}
3266
3267/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3268   function prototypes and stuff, but not '\xHH' hex character constants.
3269   These don't provoke an error unfortunately, instead are silently treated
3270   as 'x'.  The following induces an error, until -std is added to get
3271   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3272   array size at least.  It's necessary to write '\x00'==0 to get something
3273   that's true only with -std.  */
3274int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3275
3276/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3277   inside strings and character constants.  */
3278#define FOO(x) 'x'
3279int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3280
3281int test (int i, double x);
3282struct s1 {int (*f) (int a);};
3283struct s2 {int (*f) (double a);};
3284int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3285int argc;
3286char **argv;
3287int
3288main ()
3289{
3290return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3291  ;
3292  return 0;
3293}
3294_ACEOF
3295for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3296	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3297do
3298  CC="$ac_save_CC $ac_arg"
3299  if ac_fn_c_try_compile "$LINENO"; then :
3300  ac_cv_prog_cc_c89=$ac_arg
3301fi
3302rm -f core conftest.err conftest.$ac_objext
3303  test "x$ac_cv_prog_cc_c89" != "xno" && break
3304done
3305rm -f conftest.$ac_ext
3306CC=$ac_save_CC
3307
3308fi
3309# AC_CACHE_VAL
3310case "x$ac_cv_prog_cc_c89" in
3311  x)
3312    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3313$as_echo "none needed" >&6; } ;;
3314  xno)
3315    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3316$as_echo "unsupported" >&6; } ;;
3317  *)
3318    CC="$CC $ac_cv_prog_cc_c89"
3319    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3320$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3321esac
3322if test "x$ac_cv_prog_cc_c89" != xno; then :
3323
3324fi
3325
3326ac_ext=c
3327ac_cpp='$CPP $CPPFLAGS'
3328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330ac_compiler_gnu=$ac_cv_c_compiler_gnu
3331
3332ac_ext=c
3333ac_cpp='$CPP $CPPFLAGS'
3334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3336ac_compiler_gnu=$ac_cv_c_compiler_gnu
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3338$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3339if ${am_cv_prog_cc_c_o+:} false; then :
3340  $as_echo_n "(cached) " >&6
3341else
3342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343/* end confdefs.h.  */
3344
3345int
3346main ()
3347{
3348
3349  ;
3350  return 0;
3351}
3352_ACEOF
3353  # Make sure it works both with $CC and with simple cc.
3354  # Following AC_PROG_CC_C_O, we do the test twice because some
3355  # compilers refuse to overwrite an existing .o file with -o,
3356  # though they will create one.
3357  am_cv_prog_cc_c_o=yes
3358  for am_i in 1 2; do
3359    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3360   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3361   ac_status=$?
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); } \
3364         && test -f conftest2.$ac_objext; then
3365      : OK
3366    else
3367      am_cv_prog_cc_c_o=no
3368      break
3369    fi
3370  done
3371  rm -f core conftest*
3372  unset am_i
3373fi
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3375$as_echo "$am_cv_prog_cc_c_o" >&6; }
3376if test "$am_cv_prog_cc_c_o" != yes; then
3377   # Losing compiler, so override with the script.
3378   # FIXME: It is wrong to rewrite CC.
3379   # But if we don't then we get into trouble of one sort or another.
3380   # A longer-term fix would be to have automake use am__CC in this case,
3381   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3382   CC="$am_aux_dir/compile $CC"
3383fi
3384ac_ext=c
3385ac_cpp='$CPP $CPPFLAGS'
3386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389
3390
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3392$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3393if ${ac_cv_path_SED+:} false; then :
3394  $as_echo_n "(cached) " >&6
3395else
3396            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3397     for ac_i in 1 2 3 4 5 6 7; do
3398       ac_script="$ac_script$as_nl$ac_script"
3399     done
3400     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3401     { ac_script=; unset ac_script;}
3402     if test -z "$SED"; then
3403  ac_path_SED_found=false
3404  # Loop through the user's path and test for each of PROGNAME-LIST
3405  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406for as_dir in $PATH
3407do
3408  IFS=$as_save_IFS
3409  test -z "$as_dir" && as_dir=.
3410    for ac_prog in sed gsed; do
3411    for ac_exec_ext in '' $ac_executable_extensions; do
3412      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3413      as_fn_executable_p "$ac_path_SED" || continue
3414# Check for GNU ac_path_SED and select it if it is found.
3415  # Check for GNU $ac_path_SED
3416case `"$ac_path_SED" --version 2>&1` in
3417*GNU*)
3418  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3419*)
3420  ac_count=0
3421  $as_echo_n 0123456789 >"conftest.in"
3422  while :
3423  do
3424    cat "conftest.in" "conftest.in" >"conftest.tmp"
3425    mv "conftest.tmp" "conftest.in"
3426    cp "conftest.in" "conftest.nl"
3427    $as_echo '' >> "conftest.nl"
3428    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3429    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3430    as_fn_arith $ac_count + 1 && ac_count=$as_val
3431    if test $ac_count -gt ${ac_path_SED_max-0}; then
3432      # Best one so far, save it but keep looking for a better one
3433      ac_cv_path_SED="$ac_path_SED"
3434      ac_path_SED_max=$ac_count
3435    fi
3436    # 10*(2^10) chars as input seems more than enough
3437    test $ac_count -gt 10 && break
3438  done
3439  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3440esac
3441
3442      $ac_path_SED_found && break 3
3443    done
3444  done
3445  done
3446IFS=$as_save_IFS
3447  if test -z "$ac_cv_path_SED"; then
3448    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3449  fi
3450else
3451  ac_cv_path_SED=$SED
3452fi
3453
3454fi
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3456$as_echo "$ac_cv_path_SED" >&6; }
3457 SED="$ac_cv_path_SED"
3458  rm -f conftest.sed
3459
3460test -z "$SED" && SED=sed
3461Xsed="$SED -e 1s/^X//"
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3474$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3475if ${ac_cv_path_GREP+:} false; then :
3476  $as_echo_n "(cached) " >&6
3477else
3478  if test -z "$GREP"; then
3479  ac_path_GREP_found=false
3480  # Loop through the user's path and test for each of PROGNAME-LIST
3481  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3483do
3484  IFS=$as_save_IFS
3485  test -z "$as_dir" && as_dir=.
3486    for ac_prog in grep ggrep; do
3487    for ac_exec_ext in '' $ac_executable_extensions; do
3488      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3489      as_fn_executable_p "$ac_path_GREP" || continue
3490# Check for GNU ac_path_GREP and select it if it is found.
3491  # Check for GNU $ac_path_GREP
3492case `"$ac_path_GREP" --version 2>&1` in
3493*GNU*)
3494  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3495*)
3496  ac_count=0
3497  $as_echo_n 0123456789 >"conftest.in"
3498  while :
3499  do
3500    cat "conftest.in" "conftest.in" >"conftest.tmp"
3501    mv "conftest.tmp" "conftest.in"
3502    cp "conftest.in" "conftest.nl"
3503    $as_echo 'GREP' >> "conftest.nl"
3504    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3505    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3506    as_fn_arith $ac_count + 1 && ac_count=$as_val
3507    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3508      # Best one so far, save it but keep looking for a better one
3509      ac_cv_path_GREP="$ac_path_GREP"
3510      ac_path_GREP_max=$ac_count
3511    fi
3512    # 10*(2^10) chars as input seems more than enough
3513    test $ac_count -gt 10 && break
3514  done
3515  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3516esac
3517
3518      $ac_path_GREP_found && break 3
3519    done
3520  done
3521  done
3522IFS=$as_save_IFS
3523  if test -z "$ac_cv_path_GREP"; then
3524    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3525  fi
3526else
3527  ac_cv_path_GREP=$GREP
3528fi
3529
3530fi
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3532$as_echo "$ac_cv_path_GREP" >&6; }
3533 GREP="$ac_cv_path_GREP"
3534
3535
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3537$as_echo_n "checking for egrep... " >&6; }
3538if ${ac_cv_path_EGREP+:} false; then :
3539  $as_echo_n "(cached) " >&6
3540else
3541  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3542   then ac_cv_path_EGREP="$GREP -E"
3543   else
3544     if test -z "$EGREP"; then
3545  ac_path_EGREP_found=false
3546  # Loop through the user's path and test for each of PROGNAME-LIST
3547  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3549do
3550  IFS=$as_save_IFS
3551  test -z "$as_dir" && as_dir=.
3552    for ac_prog in egrep; do
3553    for ac_exec_ext in '' $ac_executable_extensions; do
3554      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3555      as_fn_executable_p "$ac_path_EGREP" || continue
3556# Check for GNU ac_path_EGREP and select it if it is found.
3557  # Check for GNU $ac_path_EGREP
3558case `"$ac_path_EGREP" --version 2>&1` in
3559*GNU*)
3560  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3561*)
3562  ac_count=0
3563  $as_echo_n 0123456789 >"conftest.in"
3564  while :
3565  do
3566    cat "conftest.in" "conftest.in" >"conftest.tmp"
3567    mv "conftest.tmp" "conftest.in"
3568    cp "conftest.in" "conftest.nl"
3569    $as_echo 'EGREP' >> "conftest.nl"
3570    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3571    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3572    as_fn_arith $ac_count + 1 && ac_count=$as_val
3573    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3574      # Best one so far, save it but keep looking for a better one
3575      ac_cv_path_EGREP="$ac_path_EGREP"
3576      ac_path_EGREP_max=$ac_count
3577    fi
3578    # 10*(2^10) chars as input seems more than enough
3579    test $ac_count -gt 10 && break
3580  done
3581  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3582esac
3583
3584      $ac_path_EGREP_found && break 3
3585    done
3586  done
3587  done
3588IFS=$as_save_IFS
3589  if test -z "$ac_cv_path_EGREP"; then
3590    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3591  fi
3592else
3593  ac_cv_path_EGREP=$EGREP
3594fi
3595
3596   fi
3597fi
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3599$as_echo "$ac_cv_path_EGREP" >&6; }
3600 EGREP="$ac_cv_path_EGREP"
3601
3602
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3604$as_echo_n "checking for fgrep... " >&6; }
3605if ${ac_cv_path_FGREP+:} false; then :
3606  $as_echo_n "(cached) " >&6
3607else
3608  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3609   then ac_cv_path_FGREP="$GREP -F"
3610   else
3611     if test -z "$FGREP"; then
3612  ac_path_FGREP_found=false
3613  # Loop through the user's path and test for each of PROGNAME-LIST
3614  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3616do
3617  IFS=$as_save_IFS
3618  test -z "$as_dir" && as_dir=.
3619    for ac_prog in fgrep; do
3620    for ac_exec_ext in '' $ac_executable_extensions; do
3621      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3622      as_fn_executable_p "$ac_path_FGREP" || continue
3623# Check for GNU ac_path_FGREP and select it if it is found.
3624  # Check for GNU $ac_path_FGREP
3625case `"$ac_path_FGREP" --version 2>&1` in
3626*GNU*)
3627  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3628*)
3629  ac_count=0
3630  $as_echo_n 0123456789 >"conftest.in"
3631  while :
3632  do
3633    cat "conftest.in" "conftest.in" >"conftest.tmp"
3634    mv "conftest.tmp" "conftest.in"
3635    cp "conftest.in" "conftest.nl"
3636    $as_echo 'FGREP' >> "conftest.nl"
3637    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3638    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3639    as_fn_arith $ac_count + 1 && ac_count=$as_val
3640    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3641      # Best one so far, save it but keep looking for a better one
3642      ac_cv_path_FGREP="$ac_path_FGREP"
3643      ac_path_FGREP_max=$ac_count
3644    fi
3645    # 10*(2^10) chars as input seems more than enough
3646    test $ac_count -gt 10 && break
3647  done
3648  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3649esac
3650
3651      $ac_path_FGREP_found && break 3
3652    done
3653  done
3654  done
3655IFS=$as_save_IFS
3656  if test -z "$ac_cv_path_FGREP"; then
3657    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3658  fi
3659else
3660  ac_cv_path_FGREP=$FGREP
3661fi
3662
3663   fi
3664fi
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3666$as_echo "$ac_cv_path_FGREP" >&6; }
3667 FGREP="$ac_cv_path_FGREP"
3668
3669
3670test -z "$GREP" && GREP=grep
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690# Check whether --with-gnu-ld was given.
3691if test "${with_gnu_ld+set}" = set; then :
3692  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
3693else
3694  with_gnu_ld=no
3695fi
3696
3697ac_prog=ld
3698if test yes = "$GCC"; then
3699  # Check if gcc -print-prog-name=ld gives a path.
3700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3701$as_echo_n "checking for ld used by $CC... " >&6; }
3702  case $host in
3703  *-*-mingw*)
3704    # gcc leaves a trailing carriage return, which upsets mingw
3705    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3706  *)
3707    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3708  esac
3709  case $ac_prog in
3710    # Accept absolute paths.
3711    [\\/]* | ?:[\\/]*)
3712      re_direlt='/[^/][^/]*/\.\./'
3713      # Canonicalize the pathname of ld
3714      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3715      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3716	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3717      done
3718      test -z "$LD" && LD=$ac_prog
3719      ;;
3720  "")
3721    # If it fails, then pretend we aren't using GCC.
3722    ac_prog=ld
3723    ;;
3724  *)
3725    # If it is relative, then search for the first ld in PATH.
3726    with_gnu_ld=unknown
3727    ;;
3728  esac
3729elif test yes = "$with_gnu_ld"; then
3730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3731$as_echo_n "checking for GNU ld... " >&6; }
3732else
3733  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3734$as_echo_n "checking for non-GNU ld... " >&6; }
3735fi
3736if ${lt_cv_path_LD+:} false; then :
3737  $as_echo_n "(cached) " >&6
3738else
3739  if test -z "$LD"; then
3740  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3741  for ac_dir in $PATH; do
3742    IFS=$lt_save_ifs
3743    test -z "$ac_dir" && ac_dir=.
3744    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3745      lt_cv_path_LD=$ac_dir/$ac_prog
3746      # Check to see if the program is GNU ld.  I'd rather use --version,
3747      # but apparently some variants of GNU ld only accept -v.
3748      # Break only if it was the GNU/non-GNU ld that we prefer.
3749      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3750      *GNU* | *'with BFD'*)
3751	test no != "$with_gnu_ld" && break
3752	;;
3753      *)
3754	test yes != "$with_gnu_ld" && break
3755	;;
3756      esac
3757    fi
3758  done
3759  IFS=$lt_save_ifs
3760else
3761  lt_cv_path_LD=$LD # Let the user override the test with a path.
3762fi
3763fi
3764
3765LD=$lt_cv_path_LD
3766if test -n "$LD"; then
3767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3768$as_echo "$LD" >&6; }
3769else
3770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771$as_echo "no" >&6; }
3772fi
3773test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3775$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3776if ${lt_cv_prog_gnu_ld+:} false; then :
3777  $as_echo_n "(cached) " >&6
3778else
3779  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3780case `$LD -v 2>&1 </dev/null` in
3781*GNU* | *'with BFD'*)
3782  lt_cv_prog_gnu_ld=yes
3783  ;;
3784*)
3785  lt_cv_prog_gnu_ld=no
3786  ;;
3787esac
3788fi
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3790$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3791with_gnu_ld=$lt_cv_prog_gnu_ld
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3802$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3803if ${lt_cv_path_NM+:} false; then :
3804  $as_echo_n "(cached) " >&6
3805else
3806  if test -n "$NM"; then
3807  # Let the user override the test.
3808  lt_cv_path_NM=$NM
3809else
3810  lt_nm_to_check=${ac_tool_prefix}nm
3811  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3812    lt_nm_to_check="$lt_nm_to_check nm"
3813  fi
3814  for lt_tmp_nm in $lt_nm_to_check; do
3815    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3816    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3817      IFS=$lt_save_ifs
3818      test -z "$ac_dir" && ac_dir=.
3819      tmp_nm=$ac_dir/$lt_tmp_nm
3820      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3821	# Check to see if the nm accepts a BSD-compat flag.
3822	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3823	#   nm: unknown option "B" ignored
3824	# Tru64's nm complains that /dev/null is an invalid object file
3825	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3826	case $build_os in
3827	mingw*) lt_bad_file=conftest.nm/nofile ;;
3828	*) lt_bad_file=/dev/null ;;
3829	esac
3830	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3831	*$lt_bad_file* | *'Invalid file or object type'*)
3832	  lt_cv_path_NM="$tmp_nm -B"
3833	  break 2
3834	  ;;
3835	*)
3836	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3837	  */dev/null*)
3838	    lt_cv_path_NM="$tmp_nm -p"
3839	    break 2
3840	    ;;
3841	  *)
3842	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3843	    continue # so that we can try to find one that supports BSD flags
3844	    ;;
3845	  esac
3846	  ;;
3847	esac
3848      fi
3849    done
3850    IFS=$lt_save_ifs
3851  done
3852  : ${lt_cv_path_NM=no}
3853fi
3854fi
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3856$as_echo "$lt_cv_path_NM" >&6; }
3857if test no != "$lt_cv_path_NM"; then
3858  NM=$lt_cv_path_NM
3859else
3860  # Didn't find any BSD compatible name lister, look for dumpbin.
3861  if test -n "$DUMPBIN"; then :
3862    # Let the user override the test.
3863  else
3864    if test -n "$ac_tool_prefix"; then
3865  for ac_prog in dumpbin "link -dump"
3866  do
3867    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3868set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870$as_echo_n "checking for $ac_word... " >&6; }
3871if ${ac_cv_prog_DUMPBIN+:} false; then :
3872  $as_echo_n "(cached) " >&6
3873else
3874  if test -n "$DUMPBIN"; then
3875  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3876else
3877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878for as_dir in $PATH
3879do
3880  IFS=$as_save_IFS
3881  test -z "$as_dir" && as_dir=.
3882    for ac_exec_ext in '' $ac_executable_extensions; do
3883  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3884    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3885    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3886    break 2
3887  fi
3888done
3889  done
3890IFS=$as_save_IFS
3891
3892fi
3893fi
3894DUMPBIN=$ac_cv_prog_DUMPBIN
3895if test -n "$DUMPBIN"; then
3896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3897$as_echo "$DUMPBIN" >&6; }
3898else
3899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900$as_echo "no" >&6; }
3901fi
3902
3903
3904    test -n "$DUMPBIN" && break
3905  done
3906fi
3907if test -z "$DUMPBIN"; then
3908  ac_ct_DUMPBIN=$DUMPBIN
3909  for ac_prog in dumpbin "link -dump"
3910do
3911  # Extract the first word of "$ac_prog", so it can be a program name with args.
3912set dummy $ac_prog; ac_word=$2
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914$as_echo_n "checking for $ac_word... " >&6; }
3915if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3916  $as_echo_n "(cached) " >&6
3917else
3918  if test -n "$ac_ct_DUMPBIN"; then
3919  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3920else
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924  IFS=$as_save_IFS
3925  test -z "$as_dir" && as_dir=.
3926    for ac_exec_ext in '' $ac_executable_extensions; do
3927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930    break 2
3931  fi
3932done
3933  done
3934IFS=$as_save_IFS
3935
3936fi
3937fi
3938ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3939if test -n "$ac_ct_DUMPBIN"; then
3940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3941$as_echo "$ac_ct_DUMPBIN" >&6; }
3942else
3943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944$as_echo "no" >&6; }
3945fi
3946
3947
3948  test -n "$ac_ct_DUMPBIN" && break
3949done
3950
3951  if test "x$ac_ct_DUMPBIN" = x; then
3952    DUMPBIN=":"
3953  else
3954    case $cross_compiling:$ac_tool_warned in
3955yes:)
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3958ac_tool_warned=yes ;;
3959esac
3960    DUMPBIN=$ac_ct_DUMPBIN
3961  fi
3962fi
3963
3964    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
3965    *COFF*)
3966      DUMPBIN="$DUMPBIN -symbols -headers"
3967      ;;
3968    *)
3969      DUMPBIN=:
3970      ;;
3971    esac
3972  fi
3973
3974  if test : != "$DUMPBIN"; then
3975    NM=$DUMPBIN
3976  fi
3977fi
3978test -z "$NM" && NM=nm
3979
3980
3981
3982
3983
3984
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3986$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3987if ${lt_cv_nm_interface+:} false; then :
3988  $as_echo_n "(cached) " >&6
3989else
3990  lt_cv_nm_interface="BSD nm"
3991  echo "int some_variable = 0;" > conftest.$ac_ext
3992  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3993  (eval "$ac_compile" 2>conftest.err)
3994  cat conftest.err >&5
3995  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3996  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3997  cat conftest.err >&5
3998  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3999  cat conftest.out >&5
4000  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4001    lt_cv_nm_interface="MS dumpbin"
4002  fi
4003  rm -f conftest*
4004fi
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4006$as_echo "$lt_cv_nm_interface" >&6; }
4007
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4009$as_echo_n "checking whether ln -s works... " >&6; }
4010LN_S=$as_ln_s
4011if test "$LN_S" = "ln -s"; then
4012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4013$as_echo "yes" >&6; }
4014else
4015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4016$as_echo "no, using $LN_S" >&6; }
4017fi
4018
4019# find the maximum length of command line arguments
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4021$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4022if ${lt_cv_sys_max_cmd_len+:} false; then :
4023  $as_echo_n "(cached) " >&6
4024else
4025    i=0
4026  teststring=ABCD
4027
4028  case $build_os in
4029  msdosdjgpp*)
4030    # On DJGPP, this test can blow up pretty badly due to problems in libc
4031    # (any single argument exceeding 2000 bytes causes a buffer overrun
4032    # during glob expansion).  Even if it were fixed, the result of this
4033    # check would be larger than it should be.
4034    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4035    ;;
4036
4037  gnu*)
4038    # Under GNU Hurd, this test is not required because there is
4039    # no limit to the length of command line arguments.
4040    # Libtool will interpret -1 as no limit whatsoever
4041    lt_cv_sys_max_cmd_len=-1;
4042    ;;
4043
4044  cygwin* | mingw* | cegcc*)
4045    # On Win9x/ME, this test blows up -- it succeeds, but takes
4046    # about 5 minutes as the teststring grows exponentially.
4047    # Worse, since 9x/ME are not pre-emptively multitasking,
4048    # you end up with a "frozen" computer, even though with patience
4049    # the test eventually succeeds (with a max line length of 256k).
4050    # Instead, let's just punt: use the minimum linelength reported by
4051    # all of the supported platforms: 8192 (on NT/2K/XP).
4052    lt_cv_sys_max_cmd_len=8192;
4053    ;;
4054
4055  mint*)
4056    # On MiNT this can take a long time and run out of memory.
4057    lt_cv_sys_max_cmd_len=8192;
4058    ;;
4059
4060  amigaos*)
4061    # On AmigaOS with pdksh, this test takes hours, literally.
4062    # So we just punt and use a minimum line length of 8192.
4063    lt_cv_sys_max_cmd_len=8192;
4064    ;;
4065
4066  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4067    # This has been around since 386BSD, at least.  Likely further.
4068    if test -x /sbin/sysctl; then
4069      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4070    elif test -x /usr/sbin/sysctl; then
4071      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4072    else
4073      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4074    fi
4075    # And add a safety zone
4076    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4077    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4078    ;;
4079
4080  interix*)
4081    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4082    lt_cv_sys_max_cmd_len=196608
4083    ;;
4084
4085  os2*)
4086    # The test takes a long time on OS/2.
4087    lt_cv_sys_max_cmd_len=8192
4088    ;;
4089
4090  osf*)
4091    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4092    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4093    # nice to cause kernel panics so lets avoid the loop below.
4094    # First set a reasonable default.
4095    lt_cv_sys_max_cmd_len=16384
4096    #
4097    if test -x /sbin/sysconfig; then
4098      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4099        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4100      esac
4101    fi
4102    ;;
4103  sco3.2v5*)
4104    lt_cv_sys_max_cmd_len=102400
4105    ;;
4106  sysv5* | sco5v6* | sysv4.2uw2*)
4107    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4108    if test -n "$kargmax"; then
4109      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4110    else
4111      lt_cv_sys_max_cmd_len=32768
4112    fi
4113    ;;
4114  *)
4115    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4116    if test -n "$lt_cv_sys_max_cmd_len" && \
4117       test undefined != "$lt_cv_sys_max_cmd_len"; then
4118      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4119      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4120    else
4121      # Make teststring a little bigger before we do anything with it.
4122      # a 1K string should be a reasonable start.
4123      for i in 1 2 3 4 5 6 7 8; do
4124        teststring=$teststring$teststring
4125      done
4126      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4127      # If test is not a shell built-in, we'll probably end up computing a
4128      # maximum length that is only half of the actual maximum length, but
4129      # we can't tell.
4130      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4131	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4132	      test 17 != "$i" # 1/2 MB should be enough
4133      do
4134        i=`expr $i + 1`
4135        teststring=$teststring$teststring
4136      done
4137      # Only check the string length outside the loop.
4138      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4139      teststring=
4140      # Add a significant safety factor because C++ compilers can tack on
4141      # massive amounts of additional arguments before passing them to the
4142      # linker.  It appears as though 1/2 is a usable value.
4143      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4144    fi
4145    ;;
4146  esac
4147
4148fi
4149
4150if test -n "$lt_cv_sys_max_cmd_len"; then
4151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4152$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4153else
4154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4155$as_echo "none" >&6; }
4156fi
4157max_cmd_len=$lt_cv_sys_max_cmd_len
4158
4159
4160
4161
4162
4163
4164: ${CP="cp -f"}
4165: ${MV="mv -f"}
4166: ${RM="rm -f"}
4167
4168if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4169  lt_unset=unset
4170else
4171  lt_unset=false
4172fi
4173
4174
4175
4176
4177
4178# test EBCDIC or ASCII
4179case `echo X|tr X '\101'` in
4180 A) # ASCII based system
4181    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4182  lt_SP2NL='tr \040 \012'
4183  lt_NL2SP='tr \015\012 \040\040'
4184  ;;
4185 *) # EBCDIC based system
4186  lt_SP2NL='tr \100 \n'
4187  lt_NL2SP='tr \r\n \100\100'
4188  ;;
4189esac
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4200$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4201if ${lt_cv_to_host_file_cmd+:} false; then :
4202  $as_echo_n "(cached) " >&6
4203else
4204  case $host in
4205  *-*-mingw* )
4206    case $build in
4207      *-*-mingw* ) # actually msys
4208        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4209        ;;
4210      *-*-cygwin* )
4211        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4212        ;;
4213      * ) # otherwise, assume *nix
4214        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4215        ;;
4216    esac
4217    ;;
4218  *-*-cygwin* )
4219    case $build in
4220      *-*-mingw* ) # actually msys
4221        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4222        ;;
4223      *-*-cygwin* )
4224        lt_cv_to_host_file_cmd=func_convert_file_noop
4225        ;;
4226      * ) # otherwise, assume *nix
4227        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4228        ;;
4229    esac
4230    ;;
4231  * ) # unhandled hosts (and "normal" native builds)
4232    lt_cv_to_host_file_cmd=func_convert_file_noop
4233    ;;
4234esac
4235
4236fi
4237
4238to_host_file_cmd=$lt_cv_to_host_file_cmd
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4240$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4241
4242
4243
4244
4245
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4247$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4248if ${lt_cv_to_tool_file_cmd+:} false; then :
4249  $as_echo_n "(cached) " >&6
4250else
4251  #assume ordinary cross tools, or native build.
4252lt_cv_to_tool_file_cmd=func_convert_file_noop
4253case $host in
4254  *-*-mingw* )
4255    case $build in
4256      *-*-mingw* ) # actually msys
4257        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4258        ;;
4259    esac
4260    ;;
4261esac
4262
4263fi
4264
4265to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4267$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4268
4269
4270
4271
4272
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4274$as_echo_n "checking for $LD option to reload object files... " >&6; }
4275if ${lt_cv_ld_reload_flag+:} false; then :
4276  $as_echo_n "(cached) " >&6
4277else
4278  lt_cv_ld_reload_flag='-r'
4279fi
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4281$as_echo "$lt_cv_ld_reload_flag" >&6; }
4282reload_flag=$lt_cv_ld_reload_flag
4283case $reload_flag in
4284"" | " "*) ;;
4285*) reload_flag=" $reload_flag" ;;
4286esac
4287reload_cmds='$LD$reload_flag -o $output$reload_objs'
4288case $host_os in
4289  cygwin* | mingw* | pw32* | cegcc*)
4290    if test yes != "$GCC"; then
4291      reload_cmds=false
4292    fi
4293    ;;
4294  darwin*)
4295    if test yes = "$GCC"; then
4296      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4297    else
4298      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4299    fi
4300    ;;
4301esac
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311if test -n "$ac_tool_prefix"; then
4312  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4313set dummy ${ac_tool_prefix}objdump; ac_word=$2
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315$as_echo_n "checking for $ac_word... " >&6; }
4316if ${ac_cv_prog_OBJDUMP+:} false; then :
4317  $as_echo_n "(cached) " >&6
4318else
4319  if test -n "$OBJDUMP"; then
4320  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4321else
4322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323for as_dir in $PATH
4324do
4325  IFS=$as_save_IFS
4326  test -z "$as_dir" && as_dir=.
4327    for ac_exec_ext in '' $ac_executable_extensions; do
4328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4331    break 2
4332  fi
4333done
4334  done
4335IFS=$as_save_IFS
4336
4337fi
4338fi
4339OBJDUMP=$ac_cv_prog_OBJDUMP
4340if test -n "$OBJDUMP"; then
4341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4342$as_echo "$OBJDUMP" >&6; }
4343else
4344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345$as_echo "no" >&6; }
4346fi
4347
4348
4349fi
4350if test -z "$ac_cv_prog_OBJDUMP"; then
4351  ac_ct_OBJDUMP=$OBJDUMP
4352  # Extract the first word of "objdump", so it can be a program name with args.
4353set dummy objdump; ac_word=$2
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355$as_echo_n "checking for $ac_word... " >&6; }
4356if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4357  $as_echo_n "(cached) " >&6
4358else
4359  if test -n "$ac_ct_OBJDUMP"; then
4360  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4361else
4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH
4364do
4365  IFS=$as_save_IFS
4366  test -z "$as_dir" && as_dir=.
4367    for ac_exec_ext in '' $ac_executable_extensions; do
4368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4369    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371    break 2
4372  fi
4373done
4374  done
4375IFS=$as_save_IFS
4376
4377fi
4378fi
4379ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4380if test -n "$ac_ct_OBJDUMP"; then
4381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4382$as_echo "$ac_ct_OBJDUMP" >&6; }
4383else
4384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385$as_echo "no" >&6; }
4386fi
4387
4388  if test "x$ac_ct_OBJDUMP" = x; then
4389    OBJDUMP="false"
4390  else
4391    case $cross_compiling:$ac_tool_warned in
4392yes:)
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4395ac_tool_warned=yes ;;
4396esac
4397    OBJDUMP=$ac_ct_OBJDUMP
4398  fi
4399else
4400  OBJDUMP="$ac_cv_prog_OBJDUMP"
4401fi
4402
4403test -z "$OBJDUMP" && OBJDUMP=objdump
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4414$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4415if ${lt_cv_deplibs_check_method+:} false; then :
4416  $as_echo_n "(cached) " >&6
4417else
4418  lt_cv_file_magic_cmd='$MAGIC_CMD'
4419lt_cv_file_magic_test_file=
4420lt_cv_deplibs_check_method='unknown'
4421# Need to set the preceding variable on all platforms that support
4422# interlibrary dependencies.
4423# 'none' -- dependencies not supported.
4424# 'unknown' -- same as none, but documents that we really don't know.
4425# 'pass_all' -- all dependencies passed with no checks.
4426# 'test_compile' -- check by making test program.
4427# 'file_magic [[regex]]' -- check by looking for files in library path
4428# that responds to the $file_magic_cmd with a given extended regex.
4429# If you have 'file' or equivalent on your system and you're not sure
4430# whether 'pass_all' will *always* work, you probably want this one.
4431
4432case $host_os in
4433aix[4-9]*)
4434  lt_cv_deplibs_check_method=pass_all
4435  ;;
4436
4437beos*)
4438  lt_cv_deplibs_check_method=pass_all
4439  ;;
4440
4441bsdi[45]*)
4442  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4443  lt_cv_file_magic_cmd='/usr/bin/file -L'
4444  lt_cv_file_magic_test_file=/shlib/libc.so
4445  ;;
4446
4447cygwin*)
4448  # func_win32_libid is a shell function defined in ltmain.sh
4449  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4450  lt_cv_file_magic_cmd='func_win32_libid'
4451  ;;
4452
4453mingw* | pw32*)
4454  # Base MSYS/MinGW do not provide the 'file' command needed by
4455  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4456  # unless we find 'file', for example because we are cross-compiling.
4457  if ( file / ) >/dev/null 2>&1; then
4458    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4459    lt_cv_file_magic_cmd='func_win32_libid'
4460  else
4461    # Keep this pattern in sync with the one in func_win32_libid.
4462    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4463    lt_cv_file_magic_cmd='$OBJDUMP -f'
4464  fi
4465  ;;
4466
4467cegcc*)
4468  # use the weaker test based on 'objdump'. See mingw*.
4469  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4470  lt_cv_file_magic_cmd='$OBJDUMP -f'
4471  ;;
4472
4473darwin* | rhapsody*)
4474  lt_cv_deplibs_check_method=pass_all
4475  ;;
4476
4477freebsd* | dragonfly*)
4478  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4479    case $host_cpu in
4480    i*86 )
4481      # Not sure whether the presence of OpenBSD here was a mistake.
4482      # Let's accept both of them until this is cleared up.
4483      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4484      lt_cv_file_magic_cmd=/usr/bin/file
4485      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4486      ;;
4487    esac
4488  else
4489    lt_cv_deplibs_check_method=pass_all
4490  fi
4491  ;;
4492
4493haiku*)
4494  lt_cv_deplibs_check_method=pass_all
4495  ;;
4496
4497hpux10.20* | hpux11*)
4498  lt_cv_file_magic_cmd=/usr/bin/file
4499  case $host_cpu in
4500  ia64*)
4501    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4502    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4503    ;;
4504  hppa*64*)
4505    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]'
4506    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4507    ;;
4508  *)
4509    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4510    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4511    ;;
4512  esac
4513  ;;
4514
4515interix[3-9]*)
4516  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4517  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4518  ;;
4519
4520irix5* | irix6* | nonstopux*)
4521  case $LD in
4522  *-32|*"-32 ") libmagic=32-bit;;
4523  *-n32|*"-n32 ") libmagic=N32;;
4524  *-64|*"-64 ") libmagic=64-bit;;
4525  *) libmagic=never-match;;
4526  esac
4527  lt_cv_deplibs_check_method=pass_all
4528  ;;
4529
4530# This must be glibc/ELF.
4531linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4532  lt_cv_deplibs_check_method=pass_all
4533  ;;
4534
4535netbsd* | netbsdelf*-gnu)
4536  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4537    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4538  else
4539    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4540  fi
4541  ;;
4542
4543newos6*)
4544  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4545  lt_cv_file_magic_cmd=/usr/bin/file
4546  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4547  ;;
4548
4549*nto* | *qnx*)
4550  lt_cv_deplibs_check_method=pass_all
4551  ;;
4552
4553openbsd* | bitrig*)
4554  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4555    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4556  else
4557    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4558  fi
4559  ;;
4560
4561osf3* | osf4* | osf5*)
4562  lt_cv_deplibs_check_method=pass_all
4563  ;;
4564
4565rdos*)
4566  lt_cv_deplibs_check_method=pass_all
4567  ;;
4568
4569solaris*)
4570  lt_cv_deplibs_check_method=pass_all
4571  ;;
4572
4573sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4574  lt_cv_deplibs_check_method=pass_all
4575  ;;
4576
4577sysv4 | sysv4.3*)
4578  case $host_vendor in
4579  motorola)
4580    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]'
4581    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4582    ;;
4583  ncr)
4584    lt_cv_deplibs_check_method=pass_all
4585    ;;
4586  sequent)
4587    lt_cv_file_magic_cmd='/bin/file'
4588    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4589    ;;
4590  sni)
4591    lt_cv_file_magic_cmd='/bin/file'
4592    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4593    lt_cv_file_magic_test_file=/lib/libc.so
4594    ;;
4595  siemens)
4596    lt_cv_deplibs_check_method=pass_all
4597    ;;
4598  pc)
4599    lt_cv_deplibs_check_method=pass_all
4600    ;;
4601  esac
4602  ;;
4603
4604tpf*)
4605  lt_cv_deplibs_check_method=pass_all
4606  ;;
4607os2*)
4608  lt_cv_deplibs_check_method=pass_all
4609  ;;
4610esac
4611
4612fi
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4614$as_echo "$lt_cv_deplibs_check_method" >&6; }
4615
4616file_magic_glob=
4617want_nocaseglob=no
4618if test "$build" = "$host"; then
4619  case $host_os in
4620  mingw* | pw32*)
4621    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4622      want_nocaseglob=yes
4623    else
4624      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4625    fi
4626    ;;
4627  esac
4628fi
4629
4630file_magic_cmd=$lt_cv_file_magic_cmd
4631deplibs_check_method=$lt_cv_deplibs_check_method
4632test -z "$deplibs_check_method" && deplibs_check_method=unknown
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655if test -n "$ac_tool_prefix"; then
4656  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4657set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659$as_echo_n "checking for $ac_word... " >&6; }
4660if ${ac_cv_prog_DLLTOOL+:} false; then :
4661  $as_echo_n "(cached) " >&6
4662else
4663  if test -n "$DLLTOOL"; then
4664  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4665else
4666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH
4668do
4669  IFS=$as_save_IFS
4670  test -z "$as_dir" && as_dir=.
4671    for ac_exec_ext in '' $ac_executable_extensions; do
4672  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4674    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675    break 2
4676  fi
4677done
4678  done
4679IFS=$as_save_IFS
4680
4681fi
4682fi
4683DLLTOOL=$ac_cv_prog_DLLTOOL
4684if test -n "$DLLTOOL"; then
4685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4686$as_echo "$DLLTOOL" >&6; }
4687else
4688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689$as_echo "no" >&6; }
4690fi
4691
4692
4693fi
4694if test -z "$ac_cv_prog_DLLTOOL"; then
4695  ac_ct_DLLTOOL=$DLLTOOL
4696  # Extract the first word of "dlltool", so it can be a program name with args.
4697set dummy dlltool; ac_word=$2
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699$as_echo_n "checking for $ac_word... " >&6; }
4700if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4701  $as_echo_n "(cached) " >&6
4702else
4703  if test -n "$ac_ct_DLLTOOL"; then
4704  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4705else
4706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709  IFS=$as_save_IFS
4710  test -z "$as_dir" && as_dir=.
4711    for ac_exec_ext in '' $ac_executable_extensions; do
4712  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715    break 2
4716  fi
4717done
4718  done
4719IFS=$as_save_IFS
4720
4721fi
4722fi
4723ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4724if test -n "$ac_ct_DLLTOOL"; then
4725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4726$as_echo "$ac_ct_DLLTOOL" >&6; }
4727else
4728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729$as_echo "no" >&6; }
4730fi
4731
4732  if test "x$ac_ct_DLLTOOL" = x; then
4733    DLLTOOL="false"
4734  else
4735    case $cross_compiling:$ac_tool_warned in
4736yes:)
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739ac_tool_warned=yes ;;
4740esac
4741    DLLTOOL=$ac_ct_DLLTOOL
4742  fi
4743else
4744  DLLTOOL="$ac_cv_prog_DLLTOOL"
4745fi
4746
4747test -z "$DLLTOOL" && DLLTOOL=dlltool
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4759$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4760if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4761  $as_echo_n "(cached) " >&6
4762else
4763  lt_cv_sharedlib_from_linklib_cmd='unknown'
4764
4765case $host_os in
4766cygwin* | mingw* | pw32* | cegcc*)
4767  # two different shell functions defined in ltmain.sh;
4768  # decide which one to use based on capabilities of $DLLTOOL
4769  case `$DLLTOOL --help 2>&1` in
4770  *--identify-strict*)
4771    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4772    ;;
4773  *)
4774    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4775    ;;
4776  esac
4777  ;;
4778*)
4779  # fallback: assume linklib IS sharedlib
4780  lt_cv_sharedlib_from_linklib_cmd=$ECHO
4781  ;;
4782esac
4783
4784fi
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4786$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4787sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4788test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4789
4790
4791
4792
4793
4794
4795
4796
4797if test -n "$ac_tool_prefix"; then
4798  for ac_prog in ar
4799  do
4800    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4801set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803$as_echo_n "checking for $ac_word... " >&6; }
4804if ${ac_cv_prog_AR+:} false; then :
4805  $as_echo_n "(cached) " >&6
4806else
4807  if test -n "$AR"; then
4808  ac_cv_prog_AR="$AR" # Let the user override the test.
4809else
4810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811for as_dir in $PATH
4812do
4813  IFS=$as_save_IFS
4814  test -z "$as_dir" && as_dir=.
4815    for ac_exec_ext in '' $ac_executable_extensions; do
4816  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819    break 2
4820  fi
4821done
4822  done
4823IFS=$as_save_IFS
4824
4825fi
4826fi
4827AR=$ac_cv_prog_AR
4828if test -n "$AR"; then
4829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4830$as_echo "$AR" >&6; }
4831else
4832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833$as_echo "no" >&6; }
4834fi
4835
4836
4837    test -n "$AR" && break
4838  done
4839fi
4840if test -z "$AR"; then
4841  ac_ct_AR=$AR
4842  for ac_prog in ar
4843do
4844  # Extract the first word of "$ac_prog", so it can be a program name with args.
4845set dummy $ac_prog; ac_word=$2
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4847$as_echo_n "checking for $ac_word... " >&6; }
4848if ${ac_cv_prog_ac_ct_AR+:} false; then :
4849  $as_echo_n "(cached) " >&6
4850else
4851  if test -n "$ac_ct_AR"; then
4852  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4853else
4854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855for as_dir in $PATH
4856do
4857  IFS=$as_save_IFS
4858  test -z "$as_dir" && as_dir=.
4859    for ac_exec_ext in '' $ac_executable_extensions; do
4860  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4861    ac_cv_prog_ac_ct_AR="$ac_prog"
4862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4863    break 2
4864  fi
4865done
4866  done
4867IFS=$as_save_IFS
4868
4869fi
4870fi
4871ac_ct_AR=$ac_cv_prog_ac_ct_AR
4872if test -n "$ac_ct_AR"; then
4873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4874$as_echo "$ac_ct_AR" >&6; }
4875else
4876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877$as_echo "no" >&6; }
4878fi
4879
4880
4881  test -n "$ac_ct_AR" && break
4882done
4883
4884  if test "x$ac_ct_AR" = x; then
4885    AR="false"
4886  else
4887    case $cross_compiling:$ac_tool_warned in
4888yes:)
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4891ac_tool_warned=yes ;;
4892esac
4893    AR=$ac_ct_AR
4894  fi
4895fi
4896
4897: ${AR=ar}
4898: ${AR_FLAGS=cru}
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4911$as_echo_n "checking for archiver @FILE support... " >&6; }
4912if ${lt_cv_ar_at_file+:} false; then :
4913  $as_echo_n "(cached) " >&6
4914else
4915  lt_cv_ar_at_file=no
4916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917/* end confdefs.h.  */
4918
4919int
4920main ()
4921{
4922
4923  ;
4924  return 0;
4925}
4926_ACEOF
4927if ac_fn_c_try_compile "$LINENO"; then :
4928  echo conftest.$ac_objext > conftest.lst
4929      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4930      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4931  (eval $lt_ar_try) 2>&5
4932  ac_status=$?
4933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4934  test $ac_status = 0; }
4935      if test 0 -eq "$ac_status"; then
4936	# Ensure the archiver fails upon bogus file names.
4937	rm -f conftest.$ac_objext libconftest.a
4938	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4939  (eval $lt_ar_try) 2>&5
4940  ac_status=$?
4941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4942  test $ac_status = 0; }
4943	if test 0 -ne "$ac_status"; then
4944          lt_cv_ar_at_file=@
4945        fi
4946      fi
4947      rm -f conftest.* libconftest.a
4948
4949fi
4950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951
4952fi
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4954$as_echo "$lt_cv_ar_at_file" >&6; }
4955
4956if test no = "$lt_cv_ar_at_file"; then
4957  archiver_list_spec=
4958else
4959  archiver_list_spec=$lt_cv_ar_at_file
4960fi
4961
4962
4963
4964
4965
4966
4967
4968if test -n "$ac_tool_prefix"; then
4969  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4970set dummy ${ac_tool_prefix}strip; ac_word=$2
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972$as_echo_n "checking for $ac_word... " >&6; }
4973if ${ac_cv_prog_STRIP+:} false; then :
4974  $as_echo_n "(cached) " >&6
4975else
4976  if test -n "$STRIP"; then
4977  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4978else
4979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980for as_dir in $PATH
4981do
4982  IFS=$as_save_IFS
4983  test -z "$as_dir" && as_dir=.
4984    for ac_exec_ext in '' $ac_executable_extensions; do
4985  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988    break 2
4989  fi
4990done
4991  done
4992IFS=$as_save_IFS
4993
4994fi
4995fi
4996STRIP=$ac_cv_prog_STRIP
4997if test -n "$STRIP"; then
4998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4999$as_echo "$STRIP" >&6; }
5000else
5001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002$as_echo "no" >&6; }
5003fi
5004
5005
5006fi
5007if test -z "$ac_cv_prog_STRIP"; then
5008  ac_ct_STRIP=$STRIP
5009  # Extract the first word of "strip", so it can be a program name with args.
5010set dummy strip; ac_word=$2
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012$as_echo_n "checking for $ac_word... " >&6; }
5013if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5014  $as_echo_n "(cached) " >&6
5015else
5016  if test -n "$ac_ct_STRIP"; then
5017  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5018else
5019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022  IFS=$as_save_IFS
5023  test -z "$as_dir" && as_dir=.
5024    for ac_exec_ext in '' $ac_executable_extensions; do
5025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026    ac_cv_prog_ac_ct_STRIP="strip"
5027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028    break 2
5029  fi
5030done
5031  done
5032IFS=$as_save_IFS
5033
5034fi
5035fi
5036ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5037if test -n "$ac_ct_STRIP"; then
5038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5039$as_echo "$ac_ct_STRIP" >&6; }
5040else
5041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042$as_echo "no" >&6; }
5043fi
5044
5045  if test "x$ac_ct_STRIP" = x; then
5046    STRIP=":"
5047  else
5048    case $cross_compiling:$ac_tool_warned in
5049yes:)
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5052ac_tool_warned=yes ;;
5053esac
5054    STRIP=$ac_ct_STRIP
5055  fi
5056else
5057  STRIP="$ac_cv_prog_STRIP"
5058fi
5059
5060test -z "$STRIP" && STRIP=:
5061
5062
5063
5064
5065
5066
5067if test -n "$ac_tool_prefix"; then
5068  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5069set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5071$as_echo_n "checking for $ac_word... " >&6; }
5072if ${ac_cv_prog_RANLIB+:} false; then :
5073  $as_echo_n "(cached) " >&6
5074else
5075  if test -n "$RANLIB"; then
5076  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5077else
5078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079for as_dir in $PATH
5080do
5081  IFS=$as_save_IFS
5082  test -z "$as_dir" && as_dir=.
5083    for ac_exec_ext in '' $ac_executable_extensions; do
5084  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087    break 2
5088  fi
5089done
5090  done
5091IFS=$as_save_IFS
5092
5093fi
5094fi
5095RANLIB=$ac_cv_prog_RANLIB
5096if test -n "$RANLIB"; then
5097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5098$as_echo "$RANLIB" >&6; }
5099else
5100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101$as_echo "no" >&6; }
5102fi
5103
5104
5105fi
5106if test -z "$ac_cv_prog_RANLIB"; then
5107  ac_ct_RANLIB=$RANLIB
5108  # Extract the first word of "ranlib", so it can be a program name with args.
5109set dummy ranlib; ac_word=$2
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111$as_echo_n "checking for $ac_word... " >&6; }
5112if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5113  $as_echo_n "(cached) " >&6
5114else
5115  if test -n "$ac_ct_RANLIB"; then
5116  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5117else
5118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119for as_dir in $PATH
5120do
5121  IFS=$as_save_IFS
5122  test -z "$as_dir" && as_dir=.
5123    for ac_exec_ext in '' $ac_executable_extensions; do
5124  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5125    ac_cv_prog_ac_ct_RANLIB="ranlib"
5126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127    break 2
5128  fi
5129done
5130  done
5131IFS=$as_save_IFS
5132
5133fi
5134fi
5135ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5136if test -n "$ac_ct_RANLIB"; then
5137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5138$as_echo "$ac_ct_RANLIB" >&6; }
5139else
5140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141$as_echo "no" >&6; }
5142fi
5143
5144  if test "x$ac_ct_RANLIB" = x; then
5145    RANLIB=":"
5146  else
5147    case $cross_compiling:$ac_tool_warned in
5148yes:)
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5151ac_tool_warned=yes ;;
5152esac
5153    RANLIB=$ac_ct_RANLIB
5154  fi
5155else
5156  RANLIB="$ac_cv_prog_RANLIB"
5157fi
5158
5159test -z "$RANLIB" && RANLIB=:
5160
5161
5162
5163
5164
5165
5166# Determine commands to create old-style static archives.
5167old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5168old_postinstall_cmds='chmod 644 $oldlib'
5169old_postuninstall_cmds=
5170
5171if test -n "$RANLIB"; then
5172  case $host_os in
5173  bitrig* | openbsd*)
5174    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5175    ;;
5176  *)
5177    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5178    ;;
5179  esac
5180  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5181fi
5182
5183case $host_os in
5184  darwin*)
5185    lock_old_archive_extraction=yes ;;
5186  *)
5187    lock_old_archive_extraction=no ;;
5188esac
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210for ac_prog in gawk mawk nawk awk
5211do
5212  # Extract the first word of "$ac_prog", so it can be a program name with args.
5213set dummy $ac_prog; ac_word=$2
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215$as_echo_n "checking for $ac_word... " >&6; }
5216if ${ac_cv_prog_AWK+:} false; then :
5217  $as_echo_n "(cached) " >&6
5218else
5219  if test -n "$AWK"; then
5220  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5221else
5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223for as_dir in $PATH
5224do
5225  IFS=$as_save_IFS
5226  test -z "$as_dir" && as_dir=.
5227    for ac_exec_ext in '' $ac_executable_extensions; do
5228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229    ac_cv_prog_AWK="$ac_prog"
5230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231    break 2
5232  fi
5233done
5234  done
5235IFS=$as_save_IFS
5236
5237fi
5238fi
5239AWK=$ac_cv_prog_AWK
5240if test -n "$AWK"; then
5241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5242$as_echo "$AWK" >&6; }
5243else
5244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245$as_echo "no" >&6; }
5246fi
5247
5248
5249  test -n "$AWK" && break
5250done
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270# If no C compiler was specified, use CC.
5271LTCC=${LTCC-"$CC"}
5272
5273# If no C compiler flags were specified, use CFLAGS.
5274LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5275
5276# Allow CC to be a program name with arguments.
5277compiler=$CC
5278
5279
5280# Check for command to grab the raw symbol name followed by C symbol from nm.
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5282$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5283if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5284  $as_echo_n "(cached) " >&6
5285else
5286
5287# These are sane defaults that work on at least a few old systems.
5288# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5289
5290# Character class describing NM global symbol codes.
5291symcode='[BCDEGRST]'
5292
5293# Regexp to match symbols that can be accessed directly from C.
5294sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5295
5296# Define system-specific variables.
5297case $host_os in
5298aix*)
5299  symcode='[BCDT]'
5300  ;;
5301cygwin* | mingw* | pw32* | cegcc*)
5302  symcode='[ABCDGISTW]'
5303  ;;
5304hpux*)
5305  if test ia64 = "$host_cpu"; then
5306    symcode='[ABCDEGRST]'
5307  fi
5308  ;;
5309irix* | nonstopux*)
5310  symcode='[BCDEGRST]'
5311  ;;
5312osf*)
5313  symcode='[BCDEGQRST]'
5314  ;;
5315solaris*)
5316  symcode='[BDRT]'
5317  ;;
5318sco3.2v5*)
5319  symcode='[DT]'
5320  ;;
5321sysv4.2uw2*)
5322  symcode='[DT]'
5323  ;;
5324sysv5* | sco5v6* | unixware* | OpenUNIX*)
5325  symcode='[ABDT]'
5326  ;;
5327sysv4)
5328  symcode='[DFNSTU]'
5329  ;;
5330esac
5331
5332# If we're using GNU nm, then use its standard symbol codes.
5333case `$NM -V 2>&1` in
5334*GNU* | *'with BFD'*)
5335  symcode='[ABCDGIRSTW]' ;;
5336esac
5337
5338if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5339  # Gets list of data symbols to import.
5340  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5341  # Adjust the below global symbol transforms to fixup imported variables.
5342  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5343  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
5344  lt_c_name_lib_hook="\
5345  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
5346  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
5347else
5348  # Disable hooks by default.
5349  lt_cv_sys_global_symbol_to_import=
5350  lt_cdecl_hook=
5351  lt_c_name_hook=
5352  lt_c_name_lib_hook=
5353fi
5354
5355# Transform an extracted symbol line into a proper C declaration.
5356# Some systems (esp. on ia64) link data and code symbols differently,
5357# so use this general approach.
5358lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5359$lt_cdecl_hook\
5360" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5361" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5362
5363# Transform an extracted symbol line into symbol name and symbol address
5364lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5365$lt_c_name_hook\
5366" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5367" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
5368
5369# Transform an extracted symbol line into symbol name with lib prefix and
5370# symbol address.
5371lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5372$lt_c_name_lib_hook\
5373" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
5374" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
5375" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
5376
5377# Handle CRLF in mingw tool chain
5378opt_cr=
5379case $build_os in
5380mingw*)
5381  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5382  ;;
5383esac
5384
5385# Try without a prefix underscore, then with it.
5386for ac_symprfx in "" "_"; do
5387
5388  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5389  symxfrm="\\1 $ac_symprfx\\2 \\2"
5390
5391  # Write the raw and C identifiers.
5392  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5393    # Fake it for dumpbin and say T for any non-static function,
5394    # D for any global variable and I for any imported variable.
5395    # Also find C++ and __fastcall symbols from MSVC++,
5396    # which start with @ or ?.
5397    lt_cv_sys_global_symbol_pipe="$AWK '"\
5398"     {last_section=section; section=\$ 3};"\
5399"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5400"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5401"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5402"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5403"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5404"     \$ 0!~/External *\|/{next};"\
5405"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5406"     {if(hide[section]) next};"\
5407"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5408"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5409"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5410"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5411"     ' prfx=^$ac_symprfx"
5412  else
5413    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5414  fi
5415  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5416
5417  # Check to see that the pipe works correctly.
5418  pipe_works=no
5419
5420  rm -f conftest*
5421  cat > conftest.$ac_ext <<_LT_EOF
5422#ifdef __cplusplus
5423extern "C" {
5424#endif
5425char nm_test_var;
5426void nm_test_func(void);
5427void nm_test_func(void){}
5428#ifdef __cplusplus
5429}
5430#endif
5431int main(){nm_test_var='a';nm_test_func();return(0);}
5432_LT_EOF
5433
5434  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5435  (eval $ac_compile) 2>&5
5436  ac_status=$?
5437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5438  test $ac_status = 0; }; then
5439    # Now try to grab the symbols.
5440    nlist=conftest.nm
5441    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5442  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5443  ac_status=$?
5444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5445  test $ac_status = 0; } && test -s "$nlist"; then
5446      # Try sorting and uniquifying the output.
5447      if sort "$nlist" | uniq > "$nlist"T; then
5448	mv -f "$nlist"T "$nlist"
5449      else
5450	rm -f "$nlist"T
5451      fi
5452
5453      # Make sure that we snagged all the symbols we need.
5454      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5455	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5456	  cat <<_LT_EOF > conftest.$ac_ext
5457/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5458#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5459/* DATA imports from DLLs on WIN32 can't be const, because runtime
5460   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5461# define LT_DLSYM_CONST
5462#elif defined __osf__
5463/* This system does not cope well with relocations in const data.  */
5464# define LT_DLSYM_CONST
5465#else
5466# define LT_DLSYM_CONST const
5467#endif
5468
5469#ifdef __cplusplus
5470extern "C" {
5471#endif
5472
5473_LT_EOF
5474	  # Now generate the symbol file.
5475	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5476
5477	  cat <<_LT_EOF >> conftest.$ac_ext
5478
5479/* The mapping between symbol names and symbols.  */
5480LT_DLSYM_CONST struct {
5481  const char *name;
5482  void       *address;
5483}
5484lt__PROGRAM__LTX_preloaded_symbols[] =
5485{
5486  { "@PROGRAM@", (void *) 0 },
5487_LT_EOF
5488	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5489	  cat <<\_LT_EOF >> conftest.$ac_ext
5490  {0, (void *) 0}
5491};
5492
5493/* This works around a problem in FreeBSD linker */
5494#ifdef FREEBSD_WORKAROUND
5495static const void *lt_preloaded_setup() {
5496  return lt__PROGRAM__LTX_preloaded_symbols;
5497}
5498#endif
5499
5500#ifdef __cplusplus
5501}
5502#endif
5503_LT_EOF
5504	  # Now try linking the two files.
5505	  mv conftest.$ac_objext conftstm.$ac_objext
5506	  lt_globsym_save_LIBS=$LIBS
5507	  lt_globsym_save_CFLAGS=$CFLAGS
5508	  LIBS=conftstm.$ac_objext
5509	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5510	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5511  (eval $ac_link) 2>&5
5512  ac_status=$?
5513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5514  test $ac_status = 0; } && test -s conftest$ac_exeext; then
5515	    pipe_works=yes
5516	  fi
5517	  LIBS=$lt_globsym_save_LIBS
5518	  CFLAGS=$lt_globsym_save_CFLAGS
5519	else
5520	  echo "cannot find nm_test_func in $nlist" >&5
5521	fi
5522      else
5523	echo "cannot find nm_test_var in $nlist" >&5
5524      fi
5525    else
5526      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5527    fi
5528  else
5529    echo "$progname: failed program was:" >&5
5530    cat conftest.$ac_ext >&5
5531  fi
5532  rm -rf conftest* conftst*
5533
5534  # Do not use the global_symbol_pipe unless it works.
5535  if test yes = "$pipe_works"; then
5536    break
5537  else
5538    lt_cv_sys_global_symbol_pipe=
5539  fi
5540done
5541
5542fi
5543
5544if test -z "$lt_cv_sys_global_symbol_pipe"; then
5545  lt_cv_sys_global_symbol_to_cdecl=
5546fi
5547if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5549$as_echo "failed" >&6; }
5550else
5551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5552$as_echo "ok" >&6; }
5553fi
5554
5555# Response file support.
5556if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5557  nm_file_list_spec='@'
5558elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5559  nm_file_list_spec='@'
5560fi
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5599$as_echo_n "checking for sysroot... " >&6; }
5600
5601# Check whether --with-sysroot was given.
5602if test "${with_sysroot+set}" = set; then :
5603  withval=$with_sysroot;
5604else
5605  with_sysroot=no
5606fi
5607
5608
5609lt_sysroot=
5610case $with_sysroot in #(
5611 yes)
5612   if test yes = "$GCC"; then
5613     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5614   fi
5615   ;; #(
5616 /*)
5617   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5618   ;; #(
5619 no|'')
5620   ;; #(
5621 *)
5622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5623$as_echo "$with_sysroot" >&6; }
5624   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5625   ;;
5626esac
5627
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5629$as_echo "${lt_sysroot:-no}" >&6; }
5630
5631
5632
5633
5634
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5636$as_echo_n "checking for a working dd... " >&6; }
5637if ${ac_cv_path_lt_DD+:} false; then :
5638  $as_echo_n "(cached) " >&6
5639else
5640  printf 0123456789abcdef0123456789abcdef >conftest.i
5641cat conftest.i conftest.i >conftest2.i
5642: ${lt_DD:=$DD}
5643if test -z "$lt_DD"; then
5644  ac_path_lt_DD_found=false
5645  # Loop through the user's path and test for each of PROGNAME-LIST
5646  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647for as_dir in $PATH
5648do
5649  IFS=$as_save_IFS
5650  test -z "$as_dir" && as_dir=.
5651    for ac_prog in dd; do
5652    for ac_exec_ext in '' $ac_executable_extensions; do
5653      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
5654      as_fn_executable_p "$ac_path_lt_DD" || continue
5655if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5656  cmp -s conftest.i conftest.out \
5657  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5658fi
5659      $ac_path_lt_DD_found && break 3
5660    done
5661  done
5662  done
5663IFS=$as_save_IFS
5664  if test -z "$ac_cv_path_lt_DD"; then
5665    :
5666  fi
5667else
5668  ac_cv_path_lt_DD=$lt_DD
5669fi
5670
5671rm -f conftest.i conftest2.i conftest.out
5672fi
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
5674$as_echo "$ac_cv_path_lt_DD" >&6; }
5675
5676
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
5678$as_echo_n "checking how to truncate binary pipes... " >&6; }
5679if ${lt_cv_truncate_bin+:} false; then :
5680  $as_echo_n "(cached) " >&6
5681else
5682  printf 0123456789abcdef0123456789abcdef >conftest.i
5683cat conftest.i conftest.i >conftest2.i
5684lt_cv_truncate_bin=
5685if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5686  cmp -s conftest.i conftest.out \
5687  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5688fi
5689rm -f conftest.i conftest2.i conftest.out
5690test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
5691fi
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
5693$as_echo "$lt_cv_truncate_bin" >&6; }
5694
5695
5696
5697
5698
5699
5700
5701# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
5702func_cc_basename ()
5703{
5704    for cc_temp in $*""; do
5705      case $cc_temp in
5706        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5707        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5708        \-*) ;;
5709        *) break;;
5710      esac
5711    done
5712    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5713}
5714
5715# Check whether --enable-libtool-lock was given.
5716if test "${enable_libtool_lock+set}" = set; then :
5717  enableval=$enable_libtool_lock;
5718fi
5719
5720test no = "$enable_libtool_lock" || enable_libtool_lock=yes
5721
5722# Some flags need to be propagated to the compiler or linker for good
5723# libtool support.
5724case $host in
5725ia64-*-hpux*)
5726  # Find out what ABI is being produced by ac_compile, and set mode
5727  # options accordingly.
5728  echo 'int i;' > conftest.$ac_ext
5729  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5730  (eval $ac_compile) 2>&5
5731  ac_status=$?
5732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5733  test $ac_status = 0; }; then
5734    case `/usr/bin/file conftest.$ac_objext` in
5735      *ELF-32*)
5736	HPUX_IA64_MODE=32
5737	;;
5738      *ELF-64*)
5739	HPUX_IA64_MODE=64
5740	;;
5741    esac
5742  fi
5743  rm -rf conftest*
5744  ;;
5745*-*-irix6*)
5746  # Find out what ABI is being produced by ac_compile, and set linker
5747  # options accordingly.
5748  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5749  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5750  (eval $ac_compile) 2>&5
5751  ac_status=$?
5752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5753  test $ac_status = 0; }; then
5754    if test yes = "$lt_cv_prog_gnu_ld"; then
5755      case `/usr/bin/file conftest.$ac_objext` in
5756	*32-bit*)
5757	  LD="${LD-ld} -melf32bsmip"
5758	  ;;
5759	*N32*)
5760	  LD="${LD-ld} -melf32bmipn32"
5761	  ;;
5762	*64-bit*)
5763	  LD="${LD-ld} -melf64bmip"
5764	;;
5765      esac
5766    else
5767      case `/usr/bin/file conftest.$ac_objext` in
5768	*32-bit*)
5769	  LD="${LD-ld} -32"
5770	  ;;
5771	*N32*)
5772	  LD="${LD-ld} -n32"
5773	  ;;
5774	*64-bit*)
5775	  LD="${LD-ld} -64"
5776	  ;;
5777      esac
5778    fi
5779  fi
5780  rm -rf conftest*
5781  ;;
5782
5783mips64*-*linux*)
5784  # Find out what ABI is being produced by ac_compile, and set linker
5785  # options accordingly.
5786  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5787  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5788  (eval $ac_compile) 2>&5
5789  ac_status=$?
5790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5791  test $ac_status = 0; }; then
5792    emul=elf
5793    case `/usr/bin/file conftest.$ac_objext` in
5794      *32-bit*)
5795	emul="${emul}32"
5796	;;
5797      *64-bit*)
5798	emul="${emul}64"
5799	;;
5800    esac
5801    case `/usr/bin/file conftest.$ac_objext` in
5802      *MSB*)
5803	emul="${emul}btsmip"
5804	;;
5805      *LSB*)
5806	emul="${emul}ltsmip"
5807	;;
5808    esac
5809    case `/usr/bin/file conftest.$ac_objext` in
5810      *N32*)
5811	emul="${emul}n32"
5812	;;
5813    esac
5814    LD="${LD-ld} -m $emul"
5815  fi
5816  rm -rf conftest*
5817  ;;
5818
5819x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5820s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5821  # Find out what ABI is being produced by ac_compile, and set linker
5822  # options accordingly.  Note that the listed cases only cover the
5823  # situations where additional linker options are needed (such as when
5824  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
5825  # vice versa); the common cases where no linker options are needed do
5826  # not appear in the list.
5827  echo 'int i;' > conftest.$ac_ext
5828  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5829  (eval $ac_compile) 2>&5
5830  ac_status=$?
5831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5832  test $ac_status = 0; }; then
5833    case `/usr/bin/file conftest.o` in
5834      *32-bit*)
5835	case $host in
5836	  x86_64-*kfreebsd*-gnu)
5837	    LD="${LD-ld} -m elf_i386_fbsd"
5838	    ;;
5839	  x86_64-*linux*)
5840	    case `/usr/bin/file conftest.o` in
5841	      *x86-64*)
5842		LD="${LD-ld} -m elf32_x86_64"
5843		;;
5844	      *)
5845		LD="${LD-ld} -m elf_i386"
5846		;;
5847	    esac
5848	    ;;
5849	  powerpc64le-*linux*)
5850	    LD="${LD-ld} -m elf32lppclinux"
5851	    ;;
5852	  powerpc64-*linux*)
5853	    LD="${LD-ld} -m elf32ppclinux"
5854	    ;;
5855	  s390x-*linux*)
5856	    LD="${LD-ld} -m elf_s390"
5857	    ;;
5858	  sparc64-*linux*)
5859	    LD="${LD-ld} -m elf32_sparc"
5860	    ;;
5861	esac
5862	;;
5863      *64-bit*)
5864	case $host in
5865	  x86_64-*kfreebsd*-gnu)
5866	    LD="${LD-ld} -m elf_x86_64_fbsd"
5867	    ;;
5868	  x86_64-*linux*)
5869	    LD="${LD-ld} -m elf_x86_64"
5870	    ;;
5871	  powerpcle-*linux*)
5872	    LD="${LD-ld} -m elf64lppc"
5873	    ;;
5874	  powerpc-*linux*)
5875	    LD="${LD-ld} -m elf64ppc"
5876	    ;;
5877	  s390*-*linux*|s390*-*tpf*)
5878	    LD="${LD-ld} -m elf64_s390"
5879	    ;;
5880	  sparc*-*linux*)
5881	    LD="${LD-ld} -m elf64_sparc"
5882	    ;;
5883	esac
5884	;;
5885    esac
5886  fi
5887  rm -rf conftest*
5888  ;;
5889
5890*-*-sco3.2v5*)
5891  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5892  SAVE_CFLAGS=$CFLAGS
5893  CFLAGS="$CFLAGS -belf"
5894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5895$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5896if ${lt_cv_cc_needs_belf+:} false; then :
5897  $as_echo_n "(cached) " >&6
5898else
5899  ac_ext=c
5900ac_cpp='$CPP $CPPFLAGS'
5901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5903ac_compiler_gnu=$ac_cv_c_compiler_gnu
5904
5905     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906/* end confdefs.h.  */
5907
5908int
5909main ()
5910{
5911
5912  ;
5913  return 0;
5914}
5915_ACEOF
5916if ac_fn_c_try_link "$LINENO"; then :
5917  lt_cv_cc_needs_belf=yes
5918else
5919  lt_cv_cc_needs_belf=no
5920fi
5921rm -f core conftest.err conftest.$ac_objext \
5922    conftest$ac_exeext conftest.$ac_ext
5923     ac_ext=c
5924ac_cpp='$CPP $CPPFLAGS'
5925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5927ac_compiler_gnu=$ac_cv_c_compiler_gnu
5928
5929fi
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5931$as_echo "$lt_cv_cc_needs_belf" >&6; }
5932  if test yes != "$lt_cv_cc_needs_belf"; then
5933    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5934    CFLAGS=$SAVE_CFLAGS
5935  fi
5936  ;;
5937*-*solaris*)
5938  # Find out what ABI is being produced by ac_compile, and set linker
5939  # options accordingly.
5940  echo 'int i;' > conftest.$ac_ext
5941  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5942  (eval $ac_compile) 2>&5
5943  ac_status=$?
5944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5945  test $ac_status = 0; }; then
5946    case `/usr/bin/file conftest.o` in
5947    *64-bit*)
5948      case $lt_cv_prog_gnu_ld in
5949      yes*)
5950        case $host in
5951        i?86-*-solaris*|x86_64-*-solaris*)
5952          LD="${LD-ld} -m elf_x86_64"
5953          ;;
5954        sparc*-*-solaris*)
5955          LD="${LD-ld} -m elf64_sparc"
5956          ;;
5957        esac
5958        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
5959        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5960          LD=${LD-ld}_sol2
5961        fi
5962        ;;
5963      *)
5964	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5965	  LD="${LD-ld} -64"
5966	fi
5967	;;
5968      esac
5969      ;;
5970    esac
5971  fi
5972  rm -rf conftest*
5973  ;;
5974esac
5975
5976need_locks=$enable_libtool_lock
5977
5978if test -n "$ac_tool_prefix"; then
5979  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5980set dummy ${ac_tool_prefix}mt; ac_word=$2
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982$as_echo_n "checking for $ac_word... " >&6; }
5983if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5984  $as_echo_n "(cached) " >&6
5985else
5986  if test -n "$MANIFEST_TOOL"; then
5987  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5988else
5989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990for as_dir in $PATH
5991do
5992  IFS=$as_save_IFS
5993  test -z "$as_dir" && as_dir=.
5994    for ac_exec_ext in '' $ac_executable_extensions; do
5995  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5996    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5998    break 2
5999  fi
6000done
6001  done
6002IFS=$as_save_IFS
6003
6004fi
6005fi
6006MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6007if test -n "$MANIFEST_TOOL"; then
6008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6009$as_echo "$MANIFEST_TOOL" >&6; }
6010else
6011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012$as_echo "no" >&6; }
6013fi
6014
6015
6016fi
6017if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6018  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6019  # Extract the first word of "mt", so it can be a program name with args.
6020set dummy mt; ac_word=$2
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6022$as_echo_n "checking for $ac_word... " >&6; }
6023if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6024  $as_echo_n "(cached) " >&6
6025else
6026  if test -n "$ac_ct_MANIFEST_TOOL"; then
6027  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6028else
6029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030for as_dir in $PATH
6031do
6032  IFS=$as_save_IFS
6033  test -z "$as_dir" && as_dir=.
6034    for ac_exec_ext in '' $ac_executable_extensions; do
6035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6036    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6038    break 2
6039  fi
6040done
6041  done
6042IFS=$as_save_IFS
6043
6044fi
6045fi
6046ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6047if test -n "$ac_ct_MANIFEST_TOOL"; then
6048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6049$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6050else
6051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6052$as_echo "no" >&6; }
6053fi
6054
6055  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6056    MANIFEST_TOOL=":"
6057  else
6058    case $cross_compiling:$ac_tool_warned in
6059yes:)
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6062ac_tool_warned=yes ;;
6063esac
6064    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6065  fi
6066else
6067  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6068fi
6069
6070test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6072$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6073if ${lt_cv_path_mainfest_tool+:} false; then :
6074  $as_echo_n "(cached) " >&6
6075else
6076  lt_cv_path_mainfest_tool=no
6077  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6078  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6079  cat conftest.err >&5
6080  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6081    lt_cv_path_mainfest_tool=yes
6082  fi
6083  rm -f conftest*
6084fi
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6086$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6087if test yes != "$lt_cv_path_mainfest_tool"; then
6088  MANIFEST_TOOL=:
6089fi
6090
6091
6092
6093
6094
6095
6096  case $host_os in
6097    rhapsody* | darwin*)
6098    if test -n "$ac_tool_prefix"; then
6099  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6100set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102$as_echo_n "checking for $ac_word... " >&6; }
6103if ${ac_cv_prog_DSYMUTIL+:} false; then :
6104  $as_echo_n "(cached) " >&6
6105else
6106  if test -n "$DSYMUTIL"; then
6107  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6108else
6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110for as_dir in $PATH
6111do
6112  IFS=$as_save_IFS
6113  test -z "$as_dir" && as_dir=.
6114    for ac_exec_ext in '' $ac_executable_extensions; do
6115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118    break 2
6119  fi
6120done
6121  done
6122IFS=$as_save_IFS
6123
6124fi
6125fi
6126DSYMUTIL=$ac_cv_prog_DSYMUTIL
6127if test -n "$DSYMUTIL"; then
6128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6129$as_echo "$DSYMUTIL" >&6; }
6130else
6131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132$as_echo "no" >&6; }
6133fi
6134
6135
6136fi
6137if test -z "$ac_cv_prog_DSYMUTIL"; then
6138  ac_ct_DSYMUTIL=$DSYMUTIL
6139  # Extract the first word of "dsymutil", so it can be a program name with args.
6140set dummy dsymutil; ac_word=$2
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142$as_echo_n "checking for $ac_word... " >&6; }
6143if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6144  $as_echo_n "(cached) " >&6
6145else
6146  if test -n "$ac_ct_DSYMUTIL"; then
6147  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6148else
6149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150for as_dir in $PATH
6151do
6152  IFS=$as_save_IFS
6153  test -z "$as_dir" && as_dir=.
6154    for ac_exec_ext in '' $ac_executable_extensions; do
6155  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6156    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158    break 2
6159  fi
6160done
6161  done
6162IFS=$as_save_IFS
6163
6164fi
6165fi
6166ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6167if test -n "$ac_ct_DSYMUTIL"; then
6168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6169$as_echo "$ac_ct_DSYMUTIL" >&6; }
6170else
6171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172$as_echo "no" >&6; }
6173fi
6174
6175  if test "x$ac_ct_DSYMUTIL" = x; then
6176    DSYMUTIL=":"
6177  else
6178    case $cross_compiling:$ac_tool_warned in
6179yes:)
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6182ac_tool_warned=yes ;;
6183esac
6184    DSYMUTIL=$ac_ct_DSYMUTIL
6185  fi
6186else
6187  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6188fi
6189
6190    if test -n "$ac_tool_prefix"; then
6191  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6192set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194$as_echo_n "checking for $ac_word... " >&6; }
6195if ${ac_cv_prog_NMEDIT+:} false; then :
6196  $as_echo_n "(cached) " >&6
6197else
6198  if test -n "$NMEDIT"; then
6199  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6200else
6201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204  IFS=$as_save_IFS
6205  test -z "$as_dir" && as_dir=.
6206    for ac_exec_ext in '' $ac_executable_extensions; do
6207  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6208    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210    break 2
6211  fi
6212done
6213  done
6214IFS=$as_save_IFS
6215
6216fi
6217fi
6218NMEDIT=$ac_cv_prog_NMEDIT
6219if test -n "$NMEDIT"; then
6220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6221$as_echo "$NMEDIT" >&6; }
6222else
6223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224$as_echo "no" >&6; }
6225fi
6226
6227
6228fi
6229if test -z "$ac_cv_prog_NMEDIT"; then
6230  ac_ct_NMEDIT=$NMEDIT
6231  # Extract the first word of "nmedit", so it can be a program name with args.
6232set dummy nmedit; ac_word=$2
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234$as_echo_n "checking for $ac_word... " >&6; }
6235if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6236  $as_echo_n "(cached) " >&6
6237else
6238  if test -n "$ac_ct_NMEDIT"; then
6239  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6240else
6241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244  IFS=$as_save_IFS
6245  test -z "$as_dir" && as_dir=.
6246    for ac_exec_ext in '' $ac_executable_extensions; do
6247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250    break 2
6251  fi
6252done
6253  done
6254IFS=$as_save_IFS
6255
6256fi
6257fi
6258ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6259if test -n "$ac_ct_NMEDIT"; then
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6261$as_echo "$ac_ct_NMEDIT" >&6; }
6262else
6263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264$as_echo "no" >&6; }
6265fi
6266
6267  if test "x$ac_ct_NMEDIT" = x; then
6268    NMEDIT=":"
6269  else
6270    case $cross_compiling:$ac_tool_warned in
6271yes:)
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6274ac_tool_warned=yes ;;
6275esac
6276    NMEDIT=$ac_ct_NMEDIT
6277  fi
6278else
6279  NMEDIT="$ac_cv_prog_NMEDIT"
6280fi
6281
6282    if test -n "$ac_tool_prefix"; then
6283  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6284set dummy ${ac_tool_prefix}lipo; ac_word=$2
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286$as_echo_n "checking for $ac_word... " >&6; }
6287if ${ac_cv_prog_LIPO+:} false; then :
6288  $as_echo_n "(cached) " >&6
6289else
6290  if test -n "$LIPO"; then
6291  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6292else
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296  IFS=$as_save_IFS
6297  test -z "$as_dir" && as_dir=.
6298    for ac_exec_ext in '' $ac_executable_extensions; do
6299  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6301    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302    break 2
6303  fi
6304done
6305  done
6306IFS=$as_save_IFS
6307
6308fi
6309fi
6310LIPO=$ac_cv_prog_LIPO
6311if test -n "$LIPO"; then
6312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6313$as_echo "$LIPO" >&6; }
6314else
6315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316$as_echo "no" >&6; }
6317fi
6318
6319
6320fi
6321if test -z "$ac_cv_prog_LIPO"; then
6322  ac_ct_LIPO=$LIPO
6323  # Extract the first word of "lipo", so it can be a program name with args.
6324set dummy lipo; ac_word=$2
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326$as_echo_n "checking for $ac_word... " >&6; }
6327if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6328  $as_echo_n "(cached) " >&6
6329else
6330  if test -n "$ac_ct_LIPO"; then
6331  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6332else
6333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334for as_dir in $PATH
6335do
6336  IFS=$as_save_IFS
6337  test -z "$as_dir" && as_dir=.
6338    for ac_exec_ext in '' $ac_executable_extensions; do
6339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340    ac_cv_prog_ac_ct_LIPO="lipo"
6341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342    break 2
6343  fi
6344done
6345  done
6346IFS=$as_save_IFS
6347
6348fi
6349fi
6350ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6351if test -n "$ac_ct_LIPO"; then
6352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6353$as_echo "$ac_ct_LIPO" >&6; }
6354else
6355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356$as_echo "no" >&6; }
6357fi
6358
6359  if test "x$ac_ct_LIPO" = x; then
6360    LIPO=":"
6361  else
6362    case $cross_compiling:$ac_tool_warned in
6363yes:)
6364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6366ac_tool_warned=yes ;;
6367esac
6368    LIPO=$ac_ct_LIPO
6369  fi
6370else
6371  LIPO="$ac_cv_prog_LIPO"
6372fi
6373
6374    if test -n "$ac_tool_prefix"; then
6375  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6376set dummy ${ac_tool_prefix}otool; ac_word=$2
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6378$as_echo_n "checking for $ac_word... " >&6; }
6379if ${ac_cv_prog_OTOOL+:} false; then :
6380  $as_echo_n "(cached) " >&6
6381else
6382  if test -n "$OTOOL"; then
6383  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6384else
6385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386for as_dir in $PATH
6387do
6388  IFS=$as_save_IFS
6389  test -z "$as_dir" && as_dir=.
6390    for ac_exec_ext in '' $ac_executable_extensions; do
6391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6392    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394    break 2
6395  fi
6396done
6397  done
6398IFS=$as_save_IFS
6399
6400fi
6401fi
6402OTOOL=$ac_cv_prog_OTOOL
6403if test -n "$OTOOL"; then
6404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6405$as_echo "$OTOOL" >&6; }
6406else
6407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408$as_echo "no" >&6; }
6409fi
6410
6411
6412fi
6413if test -z "$ac_cv_prog_OTOOL"; then
6414  ac_ct_OTOOL=$OTOOL
6415  # Extract the first word of "otool", so it can be a program name with args.
6416set dummy otool; ac_word=$2
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418$as_echo_n "checking for $ac_word... " >&6; }
6419if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6420  $as_echo_n "(cached) " >&6
6421else
6422  if test -n "$ac_ct_OTOOL"; then
6423  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6424else
6425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426for as_dir in $PATH
6427do
6428  IFS=$as_save_IFS
6429  test -z "$as_dir" && as_dir=.
6430    for ac_exec_ext in '' $ac_executable_extensions; do
6431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6432    ac_cv_prog_ac_ct_OTOOL="otool"
6433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434    break 2
6435  fi
6436done
6437  done
6438IFS=$as_save_IFS
6439
6440fi
6441fi
6442ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6443if test -n "$ac_ct_OTOOL"; then
6444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6445$as_echo "$ac_ct_OTOOL" >&6; }
6446else
6447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448$as_echo "no" >&6; }
6449fi
6450
6451  if test "x$ac_ct_OTOOL" = x; then
6452    OTOOL=":"
6453  else
6454    case $cross_compiling:$ac_tool_warned in
6455yes:)
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6458ac_tool_warned=yes ;;
6459esac
6460    OTOOL=$ac_ct_OTOOL
6461  fi
6462else
6463  OTOOL="$ac_cv_prog_OTOOL"
6464fi
6465
6466    if test -n "$ac_tool_prefix"; then
6467  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6468set dummy ${ac_tool_prefix}otool64; ac_word=$2
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470$as_echo_n "checking for $ac_word... " >&6; }
6471if ${ac_cv_prog_OTOOL64+:} false; then :
6472  $as_echo_n "(cached) " >&6
6473else
6474  if test -n "$OTOOL64"; then
6475  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6476else
6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478for as_dir in $PATH
6479do
6480  IFS=$as_save_IFS
6481  test -z "$as_dir" && as_dir=.
6482    for ac_exec_ext in '' $ac_executable_extensions; do
6483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486    break 2
6487  fi
6488done
6489  done
6490IFS=$as_save_IFS
6491
6492fi
6493fi
6494OTOOL64=$ac_cv_prog_OTOOL64
6495if test -n "$OTOOL64"; then
6496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6497$as_echo "$OTOOL64" >&6; }
6498else
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500$as_echo "no" >&6; }
6501fi
6502
6503
6504fi
6505if test -z "$ac_cv_prog_OTOOL64"; then
6506  ac_ct_OTOOL64=$OTOOL64
6507  # Extract the first word of "otool64", so it can be a program name with args.
6508set dummy otool64; ac_word=$2
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510$as_echo_n "checking for $ac_word... " >&6; }
6511if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6512  $as_echo_n "(cached) " >&6
6513else
6514  if test -n "$ac_ct_OTOOL64"; then
6515  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6516else
6517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518for as_dir in $PATH
6519do
6520  IFS=$as_save_IFS
6521  test -z "$as_dir" && as_dir=.
6522    for ac_exec_ext in '' $ac_executable_extensions; do
6523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524    ac_cv_prog_ac_ct_OTOOL64="otool64"
6525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526    break 2
6527  fi
6528done
6529  done
6530IFS=$as_save_IFS
6531
6532fi
6533fi
6534ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6535if test -n "$ac_ct_OTOOL64"; then
6536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6537$as_echo "$ac_ct_OTOOL64" >&6; }
6538else
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540$as_echo "no" >&6; }
6541fi
6542
6543  if test "x$ac_ct_OTOOL64" = x; then
6544    OTOOL64=":"
6545  else
6546    case $cross_compiling:$ac_tool_warned in
6547yes:)
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550ac_tool_warned=yes ;;
6551esac
6552    OTOOL64=$ac_ct_OTOOL64
6553  fi
6554else
6555  OTOOL64="$ac_cv_prog_OTOOL64"
6556fi
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6585$as_echo_n "checking for -single_module linker flag... " >&6; }
6586if ${lt_cv_apple_cc_single_mod+:} false; then :
6587  $as_echo_n "(cached) " >&6
6588else
6589  lt_cv_apple_cc_single_mod=no
6590      if test -z "$LT_MULTI_MODULE"; then
6591	# By default we will add the -single_module flag. You can override
6592	# by either setting the environment variable LT_MULTI_MODULE
6593	# non-empty at configure time, or by adding -multi_module to the
6594	# link flags.
6595	rm -rf libconftest.dylib*
6596	echo "int foo(void){return 1;}" > conftest.c
6597	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6598-dynamiclib -Wl,-single_module conftest.c" >&5
6599	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6600	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6601        _lt_result=$?
6602	# If there is a non-empty error log, and "single_module"
6603	# appears in it, assume the flag caused a linker warning
6604        if test -s conftest.err && $GREP single_module conftest.err; then
6605	  cat conftest.err >&5
6606	# Otherwise, if the output was created with a 0 exit code from
6607	# the compiler, it worked.
6608	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6609	  lt_cv_apple_cc_single_mod=yes
6610	else
6611	  cat conftest.err >&5
6612	fi
6613	rm -rf libconftest.dylib*
6614	rm -f conftest.*
6615      fi
6616fi
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6618$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6619
6620    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6621$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6622if ${lt_cv_ld_exported_symbols_list+:} false; then :
6623  $as_echo_n "(cached) " >&6
6624else
6625  lt_cv_ld_exported_symbols_list=no
6626      save_LDFLAGS=$LDFLAGS
6627      echo "_main" > conftest.sym
6628      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6629      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h.  */
6631
6632int
6633main ()
6634{
6635
6636  ;
6637  return 0;
6638}
6639_ACEOF
6640if ac_fn_c_try_link "$LINENO"; then :
6641  lt_cv_ld_exported_symbols_list=yes
6642else
6643  lt_cv_ld_exported_symbols_list=no
6644fi
6645rm -f core conftest.err conftest.$ac_objext \
6646    conftest$ac_exeext conftest.$ac_ext
6647	LDFLAGS=$save_LDFLAGS
6648
6649fi
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6651$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6652
6653    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6654$as_echo_n "checking for -force_load linker flag... " >&6; }
6655if ${lt_cv_ld_force_load+:} false; then :
6656  $as_echo_n "(cached) " >&6
6657else
6658  lt_cv_ld_force_load=no
6659      cat > conftest.c << _LT_EOF
6660int forced_loaded() { return 2;}
6661_LT_EOF
6662      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6663      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6664      echo "$AR cru libconftest.a conftest.o" >&5
6665      $AR cru libconftest.a conftest.o 2>&5
6666      echo "$RANLIB libconftest.a" >&5
6667      $RANLIB libconftest.a 2>&5
6668      cat > conftest.c << _LT_EOF
6669int main() { return 0;}
6670_LT_EOF
6671      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6672      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6673      _lt_result=$?
6674      if test -s conftest.err && $GREP force_load conftest.err; then
6675	cat conftest.err >&5
6676      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
6677	lt_cv_ld_force_load=yes
6678      else
6679	cat conftest.err >&5
6680      fi
6681        rm -f conftest.err libconftest.a conftest conftest.c
6682        rm -rf conftest.dSYM
6683
6684fi
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6686$as_echo "$lt_cv_ld_force_load" >&6; }
6687    case $host_os in
6688    rhapsody* | darwin1.[012])
6689      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
6690    darwin1.*)
6691      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6692    darwin*) # darwin 5.x on
6693      # if running on 10.5 or later, the deployment target defaults
6694      # to the OS version, if on x86, and 10.4, the deployment
6695      # target defaults to 10.4. Don't you love it?
6696      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6697	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6698	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6699	10.[012][,.]*)
6700	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6701	10.*)
6702	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6703      esac
6704    ;;
6705  esac
6706    if test yes = "$lt_cv_apple_cc_single_mod"; then
6707      _lt_dar_single_mod='$single_module'
6708    fi
6709    if test yes = "$lt_cv_ld_exported_symbols_list"; then
6710      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
6711    else
6712      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
6713    fi
6714    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
6715      _lt_dsymutil='~$DSYMUTIL $lib || :'
6716    else
6717      _lt_dsymutil=
6718    fi
6719    ;;
6720  esac
6721
6722# func_munge_path_list VARIABLE PATH
6723# -----------------------------------
6724# VARIABLE is name of variable containing _space_ separated list of
6725# directories to be munged by the contents of PATH, which is string
6726# having a format:
6727# "DIR[:DIR]:"
6728#       string "DIR[ DIR]" will be prepended to VARIABLE
6729# ":DIR[:DIR]"
6730#       string "DIR[ DIR]" will be appended to VARIABLE
6731# "DIRP[:DIRP]::[DIRA:]DIRA"
6732#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
6733#       "DIRA[ DIRA]" will be appended to VARIABLE
6734# "DIR[:DIR]"
6735#       VARIABLE will be replaced by "DIR[ DIR]"
6736func_munge_path_list ()
6737{
6738    case x$2 in
6739    x)
6740        ;;
6741    *:)
6742        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
6743        ;;
6744    x:*)
6745        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
6746        ;;
6747    *::*)
6748        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
6749        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
6750        ;;
6751    *)
6752        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
6753        ;;
6754    esac
6755}
6756
6757ac_ext=c
6758ac_cpp='$CPP $CPPFLAGS'
6759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6761ac_compiler_gnu=$ac_cv_c_compiler_gnu
6762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6763$as_echo_n "checking how to run the C preprocessor... " >&6; }
6764# On Suns, sometimes $CPP names a directory.
6765if test -n "$CPP" && test -d "$CPP"; then
6766  CPP=
6767fi
6768if test -z "$CPP"; then
6769  if ${ac_cv_prog_CPP+:} false; then :
6770  $as_echo_n "(cached) " >&6
6771else
6772      # Double quotes because CPP needs to be expanded
6773    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6774    do
6775      ac_preproc_ok=false
6776for ac_c_preproc_warn_flag in '' yes
6777do
6778  # Use a header file that comes with gcc, so configuring glibc
6779  # with a fresh cross-compiler works.
6780  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6781  # <limits.h> exists even on freestanding compilers.
6782  # On the NeXT, cc -E runs the code through the compiler's parser,
6783  # not just through cpp. "Syntax error" is here to catch this case.
6784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785/* end confdefs.h.  */
6786#ifdef __STDC__
6787# include <limits.h>
6788#else
6789# include <assert.h>
6790#endif
6791		     Syntax error
6792_ACEOF
6793if ac_fn_c_try_cpp "$LINENO"; then :
6794
6795else
6796  # Broken: fails on valid input.
6797continue
6798fi
6799rm -f conftest.err conftest.i conftest.$ac_ext
6800
6801  # OK, works on sane cases.  Now check whether nonexistent headers
6802  # can be detected and how.
6803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804/* end confdefs.h.  */
6805#include <ac_nonexistent.h>
6806_ACEOF
6807if ac_fn_c_try_cpp "$LINENO"; then :
6808  # Broken: success on invalid input.
6809continue
6810else
6811  # Passes both tests.
6812ac_preproc_ok=:
6813break
6814fi
6815rm -f conftest.err conftest.i conftest.$ac_ext
6816
6817done
6818# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6819rm -f conftest.i conftest.err conftest.$ac_ext
6820if $ac_preproc_ok; then :
6821  break
6822fi
6823
6824    done
6825    ac_cv_prog_CPP=$CPP
6826
6827fi
6828  CPP=$ac_cv_prog_CPP
6829else
6830  ac_cv_prog_CPP=$CPP
6831fi
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6833$as_echo "$CPP" >&6; }
6834ac_preproc_ok=false
6835for ac_c_preproc_warn_flag in '' yes
6836do
6837  # Use a header file that comes with gcc, so configuring glibc
6838  # with a fresh cross-compiler works.
6839  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6840  # <limits.h> exists even on freestanding compilers.
6841  # On the NeXT, cc -E runs the code through the compiler's parser,
6842  # not just through cpp. "Syntax error" is here to catch this case.
6843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844/* end confdefs.h.  */
6845#ifdef __STDC__
6846# include <limits.h>
6847#else
6848# include <assert.h>
6849#endif
6850		     Syntax error
6851_ACEOF
6852if ac_fn_c_try_cpp "$LINENO"; then :
6853
6854else
6855  # Broken: fails on valid input.
6856continue
6857fi
6858rm -f conftest.err conftest.i conftest.$ac_ext
6859
6860  # OK, works on sane cases.  Now check whether nonexistent headers
6861  # can be detected and how.
6862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863/* end confdefs.h.  */
6864#include <ac_nonexistent.h>
6865_ACEOF
6866if ac_fn_c_try_cpp "$LINENO"; then :
6867  # Broken: success on invalid input.
6868continue
6869else
6870  # Passes both tests.
6871ac_preproc_ok=:
6872break
6873fi
6874rm -f conftest.err conftest.i conftest.$ac_ext
6875
6876done
6877# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6878rm -f conftest.i conftest.err conftest.$ac_ext
6879if $ac_preproc_ok; then :
6880
6881else
6882  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6884as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6885See \`config.log' for more details" "$LINENO" 5; }
6886fi
6887
6888ac_ext=c
6889ac_cpp='$CPP $CPPFLAGS'
6890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892ac_compiler_gnu=$ac_cv_c_compiler_gnu
6893
6894
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6896$as_echo_n "checking for ANSI C header files... " >&6; }
6897if ${ac_cv_header_stdc+:} false; then :
6898  $as_echo_n "(cached) " >&6
6899else
6900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901/* end confdefs.h.  */
6902#include <stdlib.h>
6903#include <stdarg.h>
6904#include <string.h>
6905#include <float.h>
6906
6907int
6908main ()
6909{
6910
6911  ;
6912  return 0;
6913}
6914_ACEOF
6915if ac_fn_c_try_compile "$LINENO"; then :
6916  ac_cv_header_stdc=yes
6917else
6918  ac_cv_header_stdc=no
6919fi
6920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921
6922if test $ac_cv_header_stdc = yes; then
6923  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925/* end confdefs.h.  */
6926#include <string.h>
6927
6928_ACEOF
6929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6930  $EGREP "memchr" >/dev/null 2>&1; then :
6931
6932else
6933  ac_cv_header_stdc=no
6934fi
6935rm -f conftest*
6936
6937fi
6938
6939if test $ac_cv_header_stdc = yes; then
6940  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6942/* end confdefs.h.  */
6943#include <stdlib.h>
6944
6945_ACEOF
6946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6947  $EGREP "free" >/dev/null 2>&1; then :
6948
6949else
6950  ac_cv_header_stdc=no
6951fi
6952rm -f conftest*
6953
6954fi
6955
6956if test $ac_cv_header_stdc = yes; then
6957  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6958  if test "$cross_compiling" = yes; then :
6959  :
6960else
6961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962/* end confdefs.h.  */
6963#include <ctype.h>
6964#include <stdlib.h>
6965#if ((' ' & 0x0FF) == 0x020)
6966# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6967# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6968#else
6969# define ISLOWER(c) \
6970		   (('a' <= (c) && (c) <= 'i') \
6971		     || ('j' <= (c) && (c) <= 'r') \
6972		     || ('s' <= (c) && (c) <= 'z'))
6973# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6974#endif
6975
6976#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6977int
6978main ()
6979{
6980  int i;
6981  for (i = 0; i < 256; i++)
6982    if (XOR (islower (i), ISLOWER (i))
6983	|| toupper (i) != TOUPPER (i))
6984      return 2;
6985  return 0;
6986}
6987_ACEOF
6988if ac_fn_c_try_run "$LINENO"; then :
6989
6990else
6991  ac_cv_header_stdc=no
6992fi
6993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6994  conftest.$ac_objext conftest.beam conftest.$ac_ext
6995fi
6996
6997fi
6998fi
6999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7000$as_echo "$ac_cv_header_stdc" >&6; }
7001if test $ac_cv_header_stdc = yes; then
7002
7003$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7004
7005fi
7006
7007# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7008for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7009		  inttypes.h stdint.h unistd.h
7010do :
7011  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7012ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7013"
7014if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7015  cat >>confdefs.h <<_ACEOF
7016#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7017_ACEOF
7018
7019fi
7020
7021done
7022
7023
7024for ac_header in dlfcn.h
7025do :
7026  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7027"
7028if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7029  cat >>confdefs.h <<_ACEOF
7030#define HAVE_DLFCN_H 1
7031_ACEOF
7032
7033fi
7034
7035done
7036
7037
7038
7039
7040
7041# Set options
7042
7043
7044
7045        enable_dlopen=no
7046
7047
7048  enable_win32_dll=no
7049
7050
7051            # Check whether --enable-shared was given.
7052if test "${enable_shared+set}" = set; then :
7053  enableval=$enable_shared; p=${PACKAGE-default}
7054    case $enableval in
7055    yes) enable_shared=yes ;;
7056    no) enable_shared=no ;;
7057    *)
7058      enable_shared=no
7059      # Look at the argument we got.  We use all the common list separators.
7060      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7061      for pkg in $enableval; do
7062	IFS=$lt_save_ifs
7063	if test "X$pkg" = "X$p"; then
7064	  enable_shared=yes
7065	fi
7066      done
7067      IFS=$lt_save_ifs
7068      ;;
7069    esac
7070else
7071  enable_shared=yes
7072fi
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082  # Check whether --enable-static was given.
7083if test "${enable_static+set}" = set; then :
7084  enableval=$enable_static; p=${PACKAGE-default}
7085    case $enableval in
7086    yes) enable_static=yes ;;
7087    no) enable_static=no ;;
7088    *)
7089     enable_static=no
7090      # Look at the argument we got.  We use all the common list separators.
7091      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7092      for pkg in $enableval; do
7093	IFS=$lt_save_ifs
7094	if test "X$pkg" = "X$p"; then
7095	  enable_static=yes
7096	fi
7097      done
7098      IFS=$lt_save_ifs
7099      ;;
7100    esac
7101else
7102  enable_static=yes
7103fi
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114# Check whether --with-pic was given.
7115if test "${with_pic+set}" = set; then :
7116  withval=$with_pic; lt_p=${PACKAGE-default}
7117    case $withval in
7118    yes|no) pic_mode=$withval ;;
7119    *)
7120      pic_mode=default
7121      # Look at the argument we got.  We use all the common list separators.
7122      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7123      for lt_pkg in $withval; do
7124	IFS=$lt_save_ifs
7125	if test "X$lt_pkg" = "X$lt_p"; then
7126	  pic_mode=yes
7127	fi
7128      done
7129      IFS=$lt_save_ifs
7130      ;;
7131    esac
7132else
7133  pic_mode=default
7134fi
7135
7136
7137
7138
7139
7140
7141
7142
7143  # Check whether --enable-fast-install was given.
7144if test "${enable_fast_install+set}" = set; then :
7145  enableval=$enable_fast_install; p=${PACKAGE-default}
7146    case $enableval in
7147    yes) enable_fast_install=yes ;;
7148    no) enable_fast_install=no ;;
7149    *)
7150      enable_fast_install=no
7151      # Look at the argument we got.  We use all the common list separators.
7152      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7153      for pkg in $enableval; do
7154	IFS=$lt_save_ifs
7155	if test "X$pkg" = "X$p"; then
7156	  enable_fast_install=yes
7157	fi
7158      done
7159      IFS=$lt_save_ifs
7160      ;;
7161    esac
7162else
7163  enable_fast_install=yes
7164fi
7165
7166
7167
7168
7169
7170
7171
7172
7173  shared_archive_member_spec=
7174case $host,$enable_shared in
7175power*-*-aix[5-9]*,yes)
7176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7177$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7178
7179# Check whether --with-aix-soname was given.
7180if test "${with_aix_soname+set}" = set; then :
7181  withval=$with_aix_soname; case $withval in
7182    aix|svr4|both)
7183      ;;
7184    *)
7185      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7186      ;;
7187    esac
7188    lt_cv_with_aix_soname=$with_aix_soname
7189else
7190  if ${lt_cv_with_aix_soname+:} false; then :
7191  $as_echo_n "(cached) " >&6
7192else
7193  lt_cv_with_aix_soname=aix
7194fi
7195
7196    with_aix_soname=$lt_cv_with_aix_soname
7197fi
7198
7199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7200$as_echo "$with_aix_soname" >&6; }
7201  if test aix != "$with_aix_soname"; then
7202    # For the AIX way of multilib, we name the shared archive member
7203    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7204    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7205    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7206    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7207    if test 64 = "${OBJECT_MODE-32}"; then
7208      shared_archive_member_spec=shr_64
7209    else
7210      shared_archive_member_spec=shr
7211    fi
7212  fi
7213  ;;
7214*)
7215  with_aix_soname=aix
7216  ;;
7217esac
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228# This can be used to rebuild libtool when needed
7229LIBTOOL_DEPS=$ltmain
7230
7231# Always use our own libtool.
7232LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263test -z "$LN_S" && LN_S="ln -s"
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278if test -n "${ZSH_VERSION+set}"; then
7279   setopt NO_GLOB_SUBST
7280fi
7281
7282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7283$as_echo_n "checking for objdir... " >&6; }
7284if ${lt_cv_objdir+:} false; then :
7285  $as_echo_n "(cached) " >&6
7286else
7287  rm -f .libs 2>/dev/null
7288mkdir .libs 2>/dev/null
7289if test -d .libs; then
7290  lt_cv_objdir=.libs
7291else
7292  # MS-DOS does not allow filenames that begin with a dot.
7293  lt_cv_objdir=_libs
7294fi
7295rmdir .libs 2>/dev/null
7296fi
7297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7298$as_echo "$lt_cv_objdir" >&6; }
7299objdir=$lt_cv_objdir
7300
7301
7302
7303
7304
7305cat >>confdefs.h <<_ACEOF
7306#define LT_OBJDIR "$lt_cv_objdir/"
7307_ACEOF
7308
7309
7310
7311
7312case $host_os in
7313aix3*)
7314  # AIX sometimes has problems with the GCC collect2 program.  For some
7315  # reason, if we set the COLLECT_NAMES environment variable, the problems
7316  # vanish in a puff of smoke.
7317  if test set != "${COLLECT_NAMES+set}"; then
7318    COLLECT_NAMES=
7319    export COLLECT_NAMES
7320  fi
7321  ;;
7322esac
7323
7324# Global variables:
7325ofile=libtool
7326can_build_shared=yes
7327
7328# All known linkers require a '.a' archive for static linking (except MSVC,
7329# which needs '.lib').
7330libext=a
7331
7332with_gnu_ld=$lt_cv_prog_gnu_ld
7333
7334old_CC=$CC
7335old_CFLAGS=$CFLAGS
7336
7337# Set sane defaults for various variables
7338test -z "$CC" && CC=cc
7339test -z "$LTCC" && LTCC=$CC
7340test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7341test -z "$LD" && LD=ld
7342test -z "$ac_objext" && ac_objext=o
7343
7344func_cc_basename $compiler
7345cc_basename=$func_cc_basename_result
7346
7347
7348# Only perform the check for file, if the check method requires it
7349test -z "$MAGIC_CMD" && MAGIC_CMD=file
7350case $deplibs_check_method in
7351file_magic*)
7352  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7353    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7354$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7355if ${lt_cv_path_MAGIC_CMD+:} false; then :
7356  $as_echo_n "(cached) " >&6
7357else
7358  case $MAGIC_CMD in
7359[\\/*] |  ?:[\\/]*)
7360  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7361  ;;
7362*)
7363  lt_save_MAGIC_CMD=$MAGIC_CMD
7364  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7365  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7366  for ac_dir in $ac_dummy; do
7367    IFS=$lt_save_ifs
7368    test -z "$ac_dir" && ac_dir=.
7369    if test -f "$ac_dir/${ac_tool_prefix}file"; then
7370      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7371      if test -n "$file_magic_test_file"; then
7372	case $deplibs_check_method in
7373	"file_magic "*)
7374	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7375	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7376	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7377	    $EGREP "$file_magic_regex" > /dev/null; then
7378	    :
7379	  else
7380	    cat <<_LT_EOF 1>&2
7381
7382*** Warning: the command libtool uses to detect shared libraries,
7383*** $file_magic_cmd, produces output that libtool cannot recognize.
7384*** The result is that libtool may fail to recognize shared libraries
7385*** as such.  This will affect the creation of libtool libraries that
7386*** depend on shared libraries, but programs linked with such libtool
7387*** libraries will work regardless of this problem.  Nevertheless, you
7388*** may want to report the problem to your system manager and/or to
7389*** bug-libtool@gnu.org
7390
7391_LT_EOF
7392	  fi ;;
7393	esac
7394      fi
7395      break
7396    fi
7397  done
7398  IFS=$lt_save_ifs
7399  MAGIC_CMD=$lt_save_MAGIC_CMD
7400  ;;
7401esac
7402fi
7403
7404MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7405if test -n "$MAGIC_CMD"; then
7406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7407$as_echo "$MAGIC_CMD" >&6; }
7408else
7409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410$as_echo "no" >&6; }
7411fi
7412
7413
7414
7415
7416
7417if test -z "$lt_cv_path_MAGIC_CMD"; then
7418  if test -n "$ac_tool_prefix"; then
7419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7420$as_echo_n "checking for file... " >&6; }
7421if ${lt_cv_path_MAGIC_CMD+:} false; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424  case $MAGIC_CMD in
7425[\\/*] |  ?:[\\/]*)
7426  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7427  ;;
7428*)
7429  lt_save_MAGIC_CMD=$MAGIC_CMD
7430  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7431  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7432  for ac_dir in $ac_dummy; do
7433    IFS=$lt_save_ifs
7434    test -z "$ac_dir" && ac_dir=.
7435    if test -f "$ac_dir/file"; then
7436      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7437      if test -n "$file_magic_test_file"; then
7438	case $deplibs_check_method in
7439	"file_magic "*)
7440	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7441	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7442	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7443	    $EGREP "$file_magic_regex" > /dev/null; then
7444	    :
7445	  else
7446	    cat <<_LT_EOF 1>&2
7447
7448*** Warning: the command libtool uses to detect shared libraries,
7449*** $file_magic_cmd, produces output that libtool cannot recognize.
7450*** The result is that libtool may fail to recognize shared libraries
7451*** as such.  This will affect the creation of libtool libraries that
7452*** depend on shared libraries, but programs linked with such libtool
7453*** libraries will work regardless of this problem.  Nevertheless, you
7454*** may want to report the problem to your system manager and/or to
7455*** bug-libtool@gnu.org
7456
7457_LT_EOF
7458	  fi ;;
7459	esac
7460      fi
7461      break
7462    fi
7463  done
7464  IFS=$lt_save_ifs
7465  MAGIC_CMD=$lt_save_MAGIC_CMD
7466  ;;
7467esac
7468fi
7469
7470MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7471if test -n "$MAGIC_CMD"; then
7472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7473$as_echo "$MAGIC_CMD" >&6; }
7474else
7475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476$as_echo "no" >&6; }
7477fi
7478
7479
7480  else
7481    MAGIC_CMD=:
7482  fi
7483fi
7484
7485  fi
7486  ;;
7487esac
7488
7489# Use C for the default configuration in the libtool script
7490
7491lt_save_CC=$CC
7492ac_ext=c
7493ac_cpp='$CPP $CPPFLAGS'
7494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7496ac_compiler_gnu=$ac_cv_c_compiler_gnu
7497
7498
7499# Source file extension for C test sources.
7500ac_ext=c
7501
7502# Object file extension for compiled C test sources.
7503objext=o
7504objext=$objext
7505
7506# Code to be used in simple compile tests
7507lt_simple_compile_test_code="int some_variable = 0;"
7508
7509# Code to be used in simple link tests
7510lt_simple_link_test_code='int main(){return(0);}'
7511
7512
7513
7514
7515
7516
7517
7518# If no C compiler was specified, use CC.
7519LTCC=${LTCC-"$CC"}
7520
7521# If no C compiler flags were specified, use CFLAGS.
7522LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7523
7524# Allow CC to be a program name with arguments.
7525compiler=$CC
7526
7527# Save the default compiler, since it gets overwritten when the other
7528# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7529compiler_DEFAULT=$CC
7530
7531# save warnings/boilerplate of simple test code
7532ac_outfile=conftest.$ac_objext
7533echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7534eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7535_lt_compiler_boilerplate=`cat conftest.err`
7536$RM conftest*
7537
7538ac_outfile=conftest.$ac_objext
7539echo "$lt_simple_link_test_code" >conftest.$ac_ext
7540eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7541_lt_linker_boilerplate=`cat conftest.err`
7542$RM -r conftest*
7543
7544
7545## CAVEAT EMPTOR:
7546## There is no encapsulation within the following macros, do not change
7547## the running order or otherwise move them around unless you know exactly
7548## what you are doing...
7549if test -n "$compiler"; then
7550
7551lt_prog_compiler_no_builtin_flag=
7552
7553if test yes = "$GCC"; then
7554  case $cc_basename in
7555  nvcc*)
7556    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7557  *)
7558    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7559  esac
7560
7561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7562$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7563if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7564  $as_echo_n "(cached) " >&6
7565else
7566  lt_cv_prog_compiler_rtti_exceptions=no
7567   ac_outfile=conftest.$ac_objext
7568   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7569   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
7570   # Insert the option either (1) after the last *FLAGS variable, or
7571   # (2) before a word containing "conftest.", or (3) at the end.
7572   # Note that $ac_compile itself does not contain backslashes and begins
7573   # with a dollar sign (not a hyphen), so the echo should work correctly.
7574   # The option is referenced via a variable to avoid confusing sed.
7575   lt_compile=`echo "$ac_compile" | $SED \
7576   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7577   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7578   -e 's:$: $lt_compiler_flag:'`
7579   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7580   (eval "$lt_compile" 2>conftest.err)
7581   ac_status=$?
7582   cat conftest.err >&5
7583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584   if (exit $ac_status) && test -s "$ac_outfile"; then
7585     # The compiler can only warn and ignore the option if not recognized
7586     # So say no if there are warnings other than the usual output.
7587     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7588     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7589     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7590       lt_cv_prog_compiler_rtti_exceptions=yes
7591     fi
7592   fi
7593   $RM conftest*
7594
7595fi
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7597$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7598
7599if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7600    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7601else
7602    :
7603fi
7604
7605fi
7606
7607
7608
7609
7610
7611
7612  lt_prog_compiler_wl=
7613lt_prog_compiler_pic=
7614lt_prog_compiler_static=
7615
7616
7617  if test yes = "$GCC"; then
7618    lt_prog_compiler_wl='-Wl,'
7619    lt_prog_compiler_static='-static'
7620
7621    case $host_os in
7622      aix*)
7623      # All AIX code is PIC.
7624      if test ia64 = "$host_cpu"; then
7625	# AIX 5 now supports IA64 processor
7626	lt_prog_compiler_static='-Bstatic'
7627      fi
7628      lt_prog_compiler_pic='-fPIC'
7629      ;;
7630
7631    amigaos*)
7632      case $host_cpu in
7633      powerpc)
7634            # see comment about AmigaOS4 .so support
7635            lt_prog_compiler_pic='-fPIC'
7636        ;;
7637      m68k)
7638            # FIXME: we need at least 68020 code to build shared libraries, but
7639            # adding the '-m68020' flag to GCC prevents building anything better,
7640            # like '-m68040'.
7641            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7642        ;;
7643      esac
7644      ;;
7645
7646    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7647      # PIC is the default for these OSes.
7648      ;;
7649
7650    mingw* | cygwin* | pw32* | os2* | cegcc*)
7651      # This hack is so that the source file can tell whether it is being
7652      # built for inclusion in a dll (and should export symbols for example).
7653      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7654      # (--disable-auto-import) libraries
7655      lt_prog_compiler_pic='-DDLL_EXPORT'
7656      case $host_os in
7657      os2*)
7658	lt_prog_compiler_static='$wl-static'
7659	;;
7660      esac
7661      ;;
7662
7663    darwin* | rhapsody*)
7664      # PIC is the default on this platform
7665      # Common symbols not allowed in MH_DYLIB files
7666      lt_prog_compiler_pic='-fno-common'
7667      ;;
7668
7669    haiku*)
7670      # PIC is the default for Haiku.
7671      # The "-static" flag exists, but is broken.
7672      lt_prog_compiler_static=
7673      ;;
7674
7675    hpux*)
7676      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7677      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7678      # sets the default TLS model and affects inlining.
7679      case $host_cpu in
7680      hppa*64*)
7681	# +Z the default
7682	;;
7683      *)
7684	lt_prog_compiler_pic='-fPIC'
7685	;;
7686      esac
7687      ;;
7688
7689    interix[3-9]*)
7690      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7691      # Instead, we relocate shared libraries at runtime.
7692      ;;
7693
7694    msdosdjgpp*)
7695      # Just because we use GCC doesn't mean we suddenly get shared libraries
7696      # on systems that don't support them.
7697      lt_prog_compiler_can_build_shared=no
7698      enable_shared=no
7699      ;;
7700
7701    *nto* | *qnx*)
7702      # QNX uses GNU C++, but need to define -shared option too, otherwise
7703      # it will coredump.
7704      lt_prog_compiler_pic='-fPIC -shared'
7705      ;;
7706
7707    sysv4*MP*)
7708      if test -d /usr/nec; then
7709	lt_prog_compiler_pic=-Kconform_pic
7710      fi
7711      ;;
7712
7713    *)
7714      lt_prog_compiler_pic='-fPIC'
7715      ;;
7716    esac
7717
7718    case $cc_basename in
7719    nvcc*) # Cuda Compiler Driver 2.2
7720      lt_prog_compiler_wl='-Xlinker '
7721      if test -n "$lt_prog_compiler_pic"; then
7722        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7723      fi
7724      ;;
7725    esac
7726  else
7727    # PORTME Check for flag to pass linker flags through the system compiler.
7728    case $host_os in
7729    aix*)
7730      lt_prog_compiler_wl='-Wl,'
7731      if test ia64 = "$host_cpu"; then
7732	# AIX 5 now supports IA64 processor
7733	lt_prog_compiler_static='-Bstatic'
7734      else
7735	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7736      fi
7737      ;;
7738
7739    darwin* | rhapsody*)
7740      # PIC is the default on this platform
7741      # Common symbols not allowed in MH_DYLIB files
7742      lt_prog_compiler_pic='-fno-common'
7743      case $cc_basename in
7744      nagfor*)
7745        # NAG Fortran compiler
7746        lt_prog_compiler_wl='-Wl,-Wl,,'
7747        lt_prog_compiler_pic='-PIC'
7748        lt_prog_compiler_static='-Bstatic'
7749        ;;
7750      esac
7751      ;;
7752
7753    mingw* | cygwin* | pw32* | os2* | cegcc*)
7754      # This hack is so that the source file can tell whether it is being
7755      # built for inclusion in a dll (and should export symbols for example).
7756      lt_prog_compiler_pic='-DDLL_EXPORT'
7757      case $host_os in
7758      os2*)
7759	lt_prog_compiler_static='$wl-static'
7760	;;
7761      esac
7762      ;;
7763
7764    hpux9* | hpux10* | hpux11*)
7765      lt_prog_compiler_wl='-Wl,'
7766      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7767      # not for PA HP-UX.
7768      case $host_cpu in
7769      hppa*64*|ia64*)
7770	# +Z the default
7771	;;
7772      *)
7773	lt_prog_compiler_pic='+Z'
7774	;;
7775      esac
7776      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7777      lt_prog_compiler_static='$wl-a ${wl}archive'
7778      ;;
7779
7780    irix5* | irix6* | nonstopux*)
7781      lt_prog_compiler_wl='-Wl,'
7782      # PIC (with -KPIC) is the default.
7783      lt_prog_compiler_static='-non_shared'
7784      ;;
7785
7786    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7787      case $cc_basename in
7788      # old Intel for x86_64, which still supported -KPIC.
7789      ecc*)
7790	lt_prog_compiler_wl='-Wl,'
7791	lt_prog_compiler_pic='-KPIC'
7792	lt_prog_compiler_static='-static'
7793        ;;
7794      # icc used to be incompatible with GCC.
7795      # ICC 10 doesn't accept -KPIC any more.
7796      icc* | ifort*)
7797	lt_prog_compiler_wl='-Wl,'
7798	lt_prog_compiler_pic='-fPIC'
7799	lt_prog_compiler_static='-static'
7800        ;;
7801      # Lahey Fortran 8.1.
7802      lf95*)
7803	lt_prog_compiler_wl='-Wl,'
7804	lt_prog_compiler_pic='--shared'
7805	lt_prog_compiler_static='--static'
7806	;;
7807      nagfor*)
7808	# NAG Fortran compiler
7809	lt_prog_compiler_wl='-Wl,-Wl,,'
7810	lt_prog_compiler_pic='-PIC'
7811	lt_prog_compiler_static='-Bstatic'
7812	;;
7813      tcc*)
7814	# Fabrice Bellard et al's Tiny C Compiler
7815	lt_prog_compiler_wl='-Wl,'
7816	lt_prog_compiler_pic='-fPIC'
7817	lt_prog_compiler_static='-static'
7818	;;
7819      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7820        # Portland Group compilers (*not* the Pentium gcc compiler,
7821	# which looks to be a dead project)
7822	lt_prog_compiler_wl='-Wl,'
7823	lt_prog_compiler_pic='-fpic'
7824	lt_prog_compiler_static='-Bstatic'
7825        ;;
7826      ccc*)
7827        lt_prog_compiler_wl='-Wl,'
7828        # All Alpha code is PIC.
7829        lt_prog_compiler_static='-non_shared'
7830        ;;
7831      xl* | bgxl* | bgf* | mpixl*)
7832	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7833	lt_prog_compiler_wl='-Wl,'
7834	lt_prog_compiler_pic='-qpic'
7835	lt_prog_compiler_static='-qstaticlink'
7836	;;
7837      *)
7838	case `$CC -V 2>&1 | sed 5q` in
7839	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7840	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7841	  lt_prog_compiler_pic='-KPIC'
7842	  lt_prog_compiler_static='-Bstatic'
7843	  lt_prog_compiler_wl=''
7844	  ;;
7845	*Sun\ F* | *Sun*Fortran*)
7846	  lt_prog_compiler_pic='-KPIC'
7847	  lt_prog_compiler_static='-Bstatic'
7848	  lt_prog_compiler_wl='-Qoption ld '
7849	  ;;
7850	*Sun\ C*)
7851	  # Sun C 5.9
7852	  lt_prog_compiler_pic='-KPIC'
7853	  lt_prog_compiler_static='-Bstatic'
7854	  lt_prog_compiler_wl='-Wl,'
7855	  ;;
7856        *Intel*\ [CF]*Compiler*)
7857	  lt_prog_compiler_wl='-Wl,'
7858	  lt_prog_compiler_pic='-fPIC'
7859	  lt_prog_compiler_static='-static'
7860	  ;;
7861	*Portland\ Group*)
7862	  lt_prog_compiler_wl='-Wl,'
7863	  lt_prog_compiler_pic='-fpic'
7864	  lt_prog_compiler_static='-Bstatic'
7865	  ;;
7866	esac
7867	;;
7868      esac
7869      ;;
7870
7871    newsos6)
7872      lt_prog_compiler_pic='-KPIC'
7873      lt_prog_compiler_static='-Bstatic'
7874      ;;
7875
7876    *nto* | *qnx*)
7877      # QNX uses GNU C++, but need to define -shared option too, otherwise
7878      # it will coredump.
7879      lt_prog_compiler_pic='-fPIC -shared'
7880      ;;
7881
7882    osf3* | osf4* | osf5*)
7883      lt_prog_compiler_wl='-Wl,'
7884      # All OSF/1 code is PIC.
7885      lt_prog_compiler_static='-non_shared'
7886      ;;
7887
7888    rdos*)
7889      lt_prog_compiler_static='-non_shared'
7890      ;;
7891
7892    solaris*)
7893      lt_prog_compiler_pic='-KPIC'
7894      lt_prog_compiler_static='-Bstatic'
7895      case $cc_basename in
7896      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7897	lt_prog_compiler_wl='-Qoption ld ';;
7898      *)
7899	lt_prog_compiler_wl='-Wl,';;
7900      esac
7901      ;;
7902
7903    sunos4*)
7904      lt_prog_compiler_wl='-Qoption ld '
7905      lt_prog_compiler_pic='-PIC'
7906      lt_prog_compiler_static='-Bstatic'
7907      ;;
7908
7909    sysv4 | sysv4.2uw2* | sysv4.3*)
7910      lt_prog_compiler_wl='-Wl,'
7911      lt_prog_compiler_pic='-KPIC'
7912      lt_prog_compiler_static='-Bstatic'
7913      ;;
7914
7915    sysv4*MP*)
7916      if test -d /usr/nec; then
7917	lt_prog_compiler_pic='-Kconform_pic'
7918	lt_prog_compiler_static='-Bstatic'
7919      fi
7920      ;;
7921
7922    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7923      lt_prog_compiler_wl='-Wl,'
7924      lt_prog_compiler_pic='-KPIC'
7925      lt_prog_compiler_static='-Bstatic'
7926      ;;
7927
7928    unicos*)
7929      lt_prog_compiler_wl='-Wl,'
7930      lt_prog_compiler_can_build_shared=no
7931      ;;
7932
7933    uts4*)
7934      lt_prog_compiler_pic='-pic'
7935      lt_prog_compiler_static='-Bstatic'
7936      ;;
7937
7938    *)
7939      lt_prog_compiler_can_build_shared=no
7940      ;;
7941    esac
7942  fi
7943
7944case $host_os in
7945  # For platforms that do not support PIC, -DPIC is meaningless:
7946  *djgpp*)
7947    lt_prog_compiler_pic=
7948    ;;
7949  *)
7950    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7951    ;;
7952esac
7953
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7955$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7956if ${lt_cv_prog_compiler_pic+:} false; then :
7957  $as_echo_n "(cached) " >&6
7958else
7959  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7960fi
7961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7962$as_echo "$lt_cv_prog_compiler_pic" >&6; }
7963lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7964
7965#
7966# Check to make sure the PIC flag actually works.
7967#
7968if test -n "$lt_prog_compiler_pic"; then
7969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7970$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7971if ${lt_cv_prog_compiler_pic_works+:} false; then :
7972  $as_echo_n "(cached) " >&6
7973else
7974  lt_cv_prog_compiler_pic_works=no
7975   ac_outfile=conftest.$ac_objext
7976   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7977   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
7978   # Insert the option either (1) after the last *FLAGS variable, or
7979   # (2) before a word containing "conftest.", or (3) at the end.
7980   # Note that $ac_compile itself does not contain backslashes and begins
7981   # with a dollar sign (not a hyphen), so the echo should work correctly.
7982   # The option is referenced via a variable to avoid confusing sed.
7983   lt_compile=`echo "$ac_compile" | $SED \
7984   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7985   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7986   -e 's:$: $lt_compiler_flag:'`
7987   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7988   (eval "$lt_compile" 2>conftest.err)
7989   ac_status=$?
7990   cat conftest.err >&5
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   if (exit $ac_status) && test -s "$ac_outfile"; then
7993     # The compiler can only warn and ignore the option if not recognized
7994     # So say no if there are warnings other than the usual output.
7995     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7996     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7997     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7998       lt_cv_prog_compiler_pic_works=yes
7999     fi
8000   fi
8001   $RM conftest*
8002
8003fi
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8005$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8006
8007if test yes = "$lt_cv_prog_compiler_pic_works"; then
8008    case $lt_prog_compiler_pic in
8009     "" | " "*) ;;
8010     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8011     esac
8012else
8013    lt_prog_compiler_pic=
8014     lt_prog_compiler_can_build_shared=no
8015fi
8016
8017fi
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029#
8030# Check to make sure the static flag actually works.
8031#
8032wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8034$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8035if ${lt_cv_prog_compiler_static_works+:} false; then :
8036  $as_echo_n "(cached) " >&6
8037else
8038  lt_cv_prog_compiler_static_works=no
8039   save_LDFLAGS=$LDFLAGS
8040   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8041   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8042   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8043     # The linker can only warn and ignore the option if not recognized
8044     # So say no if there are warnings
8045     if test -s conftest.err; then
8046       # Append any errors to the config.log.
8047       cat conftest.err 1>&5
8048       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8049       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8050       if diff conftest.exp conftest.er2 >/dev/null; then
8051         lt_cv_prog_compiler_static_works=yes
8052       fi
8053     else
8054       lt_cv_prog_compiler_static_works=yes
8055     fi
8056   fi
8057   $RM -r conftest*
8058   LDFLAGS=$save_LDFLAGS
8059
8060fi
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8062$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8063
8064if test yes = "$lt_cv_prog_compiler_static_works"; then
8065    :
8066else
8067    lt_prog_compiler_static=
8068fi
8069
8070
8071
8072
8073
8074
8075
8076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8077$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8078if ${lt_cv_prog_compiler_c_o+:} false; then :
8079  $as_echo_n "(cached) " >&6
8080else
8081  lt_cv_prog_compiler_c_o=no
8082   $RM -r conftest 2>/dev/null
8083   mkdir conftest
8084   cd conftest
8085   mkdir out
8086   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8087
8088   lt_compiler_flag="-o out/conftest2.$ac_objext"
8089   # Insert the option either (1) after the last *FLAGS variable, or
8090   # (2) before a word containing "conftest.", or (3) at the end.
8091   # Note that $ac_compile itself does not contain backslashes and begins
8092   # with a dollar sign (not a hyphen), so the echo should work correctly.
8093   lt_compile=`echo "$ac_compile" | $SED \
8094   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8095   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8096   -e 's:$: $lt_compiler_flag:'`
8097   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8098   (eval "$lt_compile" 2>out/conftest.err)
8099   ac_status=$?
8100   cat out/conftest.err >&5
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8103   then
8104     # The compiler can only warn and ignore the option if not recognized
8105     # So say no if there are warnings
8106     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8107     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8108     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8109       lt_cv_prog_compiler_c_o=yes
8110     fi
8111   fi
8112   chmod u+w . 2>&5
8113   $RM conftest*
8114   # SGI C++ compiler will create directory out/ii_files/ for
8115   # template instantiation
8116   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8117   $RM out/* && rmdir out
8118   cd ..
8119   $RM -r conftest
8120   $RM conftest*
8121
8122fi
8123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8124$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8125
8126
8127
8128
8129
8130
8131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8132$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8133if ${lt_cv_prog_compiler_c_o+:} false; then :
8134  $as_echo_n "(cached) " >&6
8135else
8136  lt_cv_prog_compiler_c_o=no
8137   $RM -r conftest 2>/dev/null
8138   mkdir conftest
8139   cd conftest
8140   mkdir out
8141   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8142
8143   lt_compiler_flag="-o out/conftest2.$ac_objext"
8144   # Insert the option either (1) after the last *FLAGS variable, or
8145   # (2) before a word containing "conftest.", or (3) at the end.
8146   # Note that $ac_compile itself does not contain backslashes and begins
8147   # with a dollar sign (not a hyphen), so the echo should work correctly.
8148   lt_compile=`echo "$ac_compile" | $SED \
8149   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8150   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8151   -e 's:$: $lt_compiler_flag:'`
8152   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8153   (eval "$lt_compile" 2>out/conftest.err)
8154   ac_status=$?
8155   cat out/conftest.err >&5
8156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8158   then
8159     # The compiler can only warn and ignore the option if not recognized
8160     # So say no if there are warnings
8161     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8162     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8163     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8164       lt_cv_prog_compiler_c_o=yes
8165     fi
8166   fi
8167   chmod u+w . 2>&5
8168   $RM conftest*
8169   # SGI C++ compiler will create directory out/ii_files/ for
8170   # template instantiation
8171   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8172   $RM out/* && rmdir out
8173   cd ..
8174   $RM -r conftest
8175   $RM conftest*
8176
8177fi
8178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8179$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8180
8181
8182
8183
8184hard_links=nottested
8185if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8186  # do not overwrite the value of need_locks provided by the user
8187  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8188$as_echo_n "checking if we can lock with hard links... " >&6; }
8189  hard_links=yes
8190  $RM conftest*
8191  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8192  touch conftest.a
8193  ln conftest.a conftest.b 2>&5 || hard_links=no
8194  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8196$as_echo "$hard_links" >&6; }
8197  if test no = "$hard_links"; then
8198    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8199$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8200    need_locks=warn
8201  fi
8202else
8203  need_locks=no
8204fi
8205
8206
8207
8208
8209
8210
8211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8212$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8213
8214  runpath_var=
8215  allow_undefined_flag=
8216  always_export_symbols=no
8217  archive_cmds=
8218  archive_expsym_cmds=
8219  compiler_needs_object=no
8220  enable_shared_with_static_runtimes=no
8221  export_dynamic_flag_spec=
8222  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8223  hardcode_automatic=no
8224  hardcode_direct=no
8225  hardcode_direct_absolute=no
8226  hardcode_libdir_flag_spec=
8227  hardcode_libdir_separator=
8228  hardcode_minus_L=no
8229  hardcode_shlibpath_var=unsupported
8230  inherit_rpath=no
8231  link_all_deplibs=unknown
8232  module_cmds=
8233  module_expsym_cmds=
8234  old_archive_from_new_cmds=
8235  old_archive_from_expsyms_cmds=
8236  thread_safe_flag_spec=
8237  whole_archive_flag_spec=
8238  # include_expsyms should be a list of space-separated symbols to be *always*
8239  # included in the symbol list
8240  include_expsyms=
8241  # exclude_expsyms can be an extended regexp of symbols to exclude
8242  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8243  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8244  # as well as any symbol that contains 'd'.
8245  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8246  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8247  # platforms (ab)use it in PIC code, but their linkers get confused if
8248  # the symbol is explicitly referenced.  Since portable code cannot
8249  # rely on this symbol name, it's probably fine to never include it in
8250  # preloaded symbol tables.
8251  # Exclude shared library initialization/finalization symbols.
8252  extract_expsyms_cmds=
8253
8254  case $host_os in
8255  cygwin* | mingw* | pw32* | cegcc*)
8256    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8257    # When not using gcc, we currently assume that we are using
8258    # Microsoft Visual C++.
8259    if test yes != "$GCC"; then
8260      with_gnu_ld=no
8261    fi
8262    ;;
8263  interix*)
8264    # we just hope/assume this is gcc and not c89 (= MSVC++)
8265    with_gnu_ld=yes
8266    ;;
8267  openbsd* | bitrig*)
8268    with_gnu_ld=no
8269    ;;
8270  linux* | k*bsd*-gnu | gnu*)
8271    link_all_deplibs=no
8272    ;;
8273  esac
8274
8275  ld_shlibs=yes
8276
8277  # On some targets, GNU ld is compatible enough with the native linker
8278  # that we're better off using the native interface for both.
8279  lt_use_gnu_ld_interface=no
8280  if test yes = "$with_gnu_ld"; then
8281    case $host_os in
8282      aix*)
8283	# The AIX port of GNU ld has always aspired to compatibility
8284	# with the native linker.  However, as the warning in the GNU ld
8285	# block says, versions before 2.19.5* couldn't really create working
8286	# shared libraries, regardless of the interface used.
8287	case `$LD -v 2>&1` in
8288	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8289	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8290	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8291	  *)
8292	    lt_use_gnu_ld_interface=yes
8293	    ;;
8294	esac
8295	;;
8296      *)
8297	lt_use_gnu_ld_interface=yes
8298	;;
8299    esac
8300  fi
8301
8302  if test yes = "$lt_use_gnu_ld_interface"; then
8303    # If archive_cmds runs LD, not CC, wlarc should be empty
8304    wlarc='$wl'
8305
8306    # Set some defaults for GNU ld with shared library support. These
8307    # are reset later if shared libraries are not supported. Putting them
8308    # here allows them to be overridden if necessary.
8309    runpath_var=LD_RUN_PATH
8310    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8311    export_dynamic_flag_spec='$wl--export-dynamic'
8312    # ancient GNU ld didn't support --whole-archive et. al.
8313    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8314      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8315    else
8316      whole_archive_flag_spec=
8317    fi
8318    supports_anon_versioning=no
8319    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8320      *GNU\ gold*) supports_anon_versioning=yes ;;
8321      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8322      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8323      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8324      *\ 2.11.*) ;; # other 2.11 versions
8325      *) supports_anon_versioning=yes ;;
8326    esac
8327
8328    # See if GNU ld supports shared libraries.
8329    case $host_os in
8330    aix[3-9]*)
8331      # On AIX/PPC, the GNU linker is very broken
8332      if test ia64 != "$host_cpu"; then
8333	ld_shlibs=no
8334	cat <<_LT_EOF 1>&2
8335
8336*** Warning: the GNU linker, at least up to release 2.19, is reported
8337*** to be unable to reliably create shared libraries on AIX.
8338*** Therefore, libtool is disabling shared libraries support.  If you
8339*** really care for shared libraries, you may want to install binutils
8340*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8341*** You will then need to restart the configuration process.
8342
8343_LT_EOF
8344      fi
8345      ;;
8346
8347    amigaos*)
8348      case $host_cpu in
8349      powerpc)
8350            # see comment about AmigaOS4 .so support
8351            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8352            archive_expsym_cmds=''
8353        ;;
8354      m68k)
8355            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)'
8356            hardcode_libdir_flag_spec='-L$libdir'
8357            hardcode_minus_L=yes
8358        ;;
8359      esac
8360      ;;
8361
8362    beos*)
8363      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8364	allow_undefined_flag=unsupported
8365	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8366	# support --undefined.  This deserves some investigation.  FIXME
8367	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8368      else
8369	ld_shlibs=no
8370      fi
8371      ;;
8372
8373    cygwin* | mingw* | pw32* | cegcc*)
8374      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8375      # as there is no search path for DLLs.
8376      hardcode_libdir_flag_spec='-L$libdir'
8377      export_dynamic_flag_spec='$wl--export-all-symbols'
8378      allow_undefined_flag=unsupported
8379      always_export_symbols=no
8380      enable_shared_with_static_runtimes=yes
8381      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'
8382      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8383
8384      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8385        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8386	# If the export-symbols file already is a .def file, use it as
8387	# is; otherwise, prepend EXPORTS...
8388	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8389          cp $export_symbols $output_objdir/$soname.def;
8390        else
8391          echo EXPORTS > $output_objdir/$soname.def;
8392          cat $export_symbols >> $output_objdir/$soname.def;
8393        fi~
8394        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8395      else
8396	ld_shlibs=no
8397      fi
8398      ;;
8399
8400    haiku*)
8401      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8402      link_all_deplibs=yes
8403      ;;
8404
8405    os2*)
8406      hardcode_libdir_flag_spec='-L$libdir'
8407      hardcode_minus_L=yes
8408      allow_undefined_flag=unsupported
8409      shrext_cmds=.dll
8410      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8411	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8412	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8413	$ECHO EXPORTS >> $output_objdir/$libname.def~
8414	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8415	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8416	emximp -o $lib $output_objdir/$libname.def'
8417      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8418	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8419	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8420	$ECHO EXPORTS >> $output_objdir/$libname.def~
8421	prefix_cmds="$SED"~
8422	if test EXPORTS = "`$SED 1q $export_symbols`"; then
8423	  prefix_cmds="$prefix_cmds -e 1d";
8424	fi~
8425	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8426	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8427	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8428	emximp -o $lib $output_objdir/$libname.def'
8429      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8430      enable_shared_with_static_runtimes=yes
8431      ;;
8432
8433    interix[3-9]*)
8434      hardcode_direct=no
8435      hardcode_shlibpath_var=no
8436      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8437      export_dynamic_flag_spec='$wl-E'
8438      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8439      # Instead, shared libraries are loaded at an image base (0x10000000 by
8440      # default) and relocated if they conflict, which is a slow very memory
8441      # consuming and fragmenting process.  To avoid this, we pick a random,
8442      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8443      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8444      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8445      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'
8446      ;;
8447
8448    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8449      tmp_diet=no
8450      if test linux-dietlibc = "$host_os"; then
8451	case $cc_basename in
8452	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8453	esac
8454      fi
8455      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8456	 && test no = "$tmp_diet"
8457      then
8458	tmp_addflag=' $pic_flag'
8459	tmp_sharedflag='-shared'
8460	case $cc_basename,$host_cpu in
8461        pgcc*)				# Portland Group C compiler
8462	  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'
8463	  tmp_addflag=' $pic_flag'
8464	  ;;
8465	pgf77* | pgf90* | pgf95* | pgfortran*)
8466					# Portland Group f77 and f90 compilers
8467	  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'
8468	  tmp_addflag=' $pic_flag -Mnomain' ;;
8469	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8470	  tmp_addflag=' -i_dynamic' ;;
8471	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8472	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8473	ifc* | ifort*)			# Intel Fortran compiler
8474	  tmp_addflag=' -nofor_main' ;;
8475	lf95*)				# Lahey Fortran 8.1
8476	  whole_archive_flag_spec=
8477	  tmp_sharedflag='--shared' ;;
8478        nagfor*)                        # NAGFOR 5.3
8479          tmp_sharedflag='-Wl,-shared' ;;
8480	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8481	  tmp_sharedflag='-qmkshrobj'
8482	  tmp_addflag= ;;
8483	nvcc*)	# Cuda Compiler Driver 2.2
8484	  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'
8485	  compiler_needs_object=yes
8486	  ;;
8487	esac
8488	case `$CC -V 2>&1 | sed 5q` in
8489	*Sun\ C*)			# Sun C 5.9
8490	  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'
8491	  compiler_needs_object=yes
8492	  tmp_sharedflag='-G' ;;
8493	*Sun\ F*)			# Sun Fortran 8.3
8494	  tmp_sharedflag='-G' ;;
8495	esac
8496	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8497
8498        if test yes = "$supports_anon_versioning"; then
8499          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8500            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8501            echo "local: *; };" >> $output_objdir/$libname.ver~
8502            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8503        fi
8504
8505	case $cc_basename in
8506	tcc*)
8507	  export_dynamic_flag_spec='-rdynamic'
8508	  ;;
8509	xlf* | bgf* | bgxlf* | mpixlf*)
8510	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8511	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8512	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8513	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8514	  if test yes = "$supports_anon_versioning"; then
8515	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8516              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8517              echo "local: *; };" >> $output_objdir/$libname.ver~
8518              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8519	  fi
8520	  ;;
8521	esac
8522      else
8523        ld_shlibs=no
8524      fi
8525      ;;
8526
8527    netbsd* | netbsdelf*-gnu)
8528      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8529	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8530	wlarc=
8531      else
8532	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8533	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8534      fi
8535      ;;
8536
8537    solaris*)
8538      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8539	ld_shlibs=no
8540	cat <<_LT_EOF 1>&2
8541
8542*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8543*** create shared libraries on Solaris systems.  Therefore, libtool
8544*** is disabling shared libraries support.  We urge you to upgrade GNU
8545*** binutils to release 2.9.1 or newer.  Another option is to modify
8546*** your PATH or compiler configuration so that the native linker is
8547*** used, and then restart.
8548
8549_LT_EOF
8550      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8551	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8552	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8553      else
8554	ld_shlibs=no
8555      fi
8556      ;;
8557
8558    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8559      case `$LD -v 2>&1` in
8560        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8561	ld_shlibs=no
8562	cat <<_LT_EOF 1>&2
8563
8564*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8565*** reliably create shared libraries on SCO systems.  Therefore, libtool
8566*** is disabling shared libraries support.  We urge you to upgrade GNU
8567*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8568*** your PATH or compiler configuration so that the native linker is
8569*** used, and then restart.
8570
8571_LT_EOF
8572	;;
8573	*)
8574	  # For security reasons, it is highly recommended that you always
8575	  # use absolute paths for naming shared libraries, and exclude the
8576	  # DT_RUNPATH tag from executables and libraries.  But doing so
8577	  # requires that you compile everything twice, which is a pain.
8578	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8579	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8580	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8581	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8582	  else
8583	    ld_shlibs=no
8584	  fi
8585	;;
8586      esac
8587      ;;
8588
8589    sunos4*)
8590      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8591      wlarc=
8592      hardcode_direct=yes
8593      hardcode_shlibpath_var=no
8594      ;;
8595
8596    *)
8597      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8598	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8599	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8600      else
8601	ld_shlibs=no
8602      fi
8603      ;;
8604    esac
8605
8606    if test no = "$ld_shlibs"; then
8607      runpath_var=
8608      hardcode_libdir_flag_spec=
8609      export_dynamic_flag_spec=
8610      whole_archive_flag_spec=
8611    fi
8612  else
8613    # PORTME fill in a description of your system's linker (not GNU ld)
8614    case $host_os in
8615    aix3*)
8616      allow_undefined_flag=unsupported
8617      always_export_symbols=yes
8618      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'
8619      # Note: this linker hardcodes the directories in LIBPATH if there
8620      # are no directories specified by -L.
8621      hardcode_minus_L=yes
8622      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8623	# Neither direct hardcoding nor static linking is supported with a
8624	# broken collect2.
8625	hardcode_direct=unsupported
8626      fi
8627      ;;
8628
8629    aix[4-9]*)
8630      if test ia64 = "$host_cpu"; then
8631	# On IA64, the linker does run time linking by default, so we don't
8632	# have to do anything special.
8633	aix_use_runtimelinking=no
8634	exp_sym_flag='-Bexport'
8635	no_entry_flag=
8636      else
8637	# If we're using GNU nm, then we don't want the "-C" option.
8638	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
8639	# Without the "-l" option, or with the "-B" option, AIX nm treats
8640	# weak defined symbols like other global defined symbols, whereas
8641	# GNU nm marks them as "W".
8642	# While the 'weak' keyword is ignored in the Export File, we need
8643	# it in the Import File for the 'aix-soname' feature, so we have
8644	# to replace the "-B" option with "-P" for AIX nm.
8645	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8646	  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'
8647	else
8648	  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'
8649	fi
8650	aix_use_runtimelinking=no
8651
8652	# Test if we are trying to use run time linking or normal
8653	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8654	# have runtime linking enabled, and use it for executables.
8655	# For shared libraries, we enable/disable runtime linking
8656	# depending on the kind of the shared library created -
8657	# when "with_aix_soname,aix_use_runtimelinking" is:
8658	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
8659	# "aix,yes"  lib.so          shared, rtl:yes, for executables
8660	#            lib.a           static archive
8661	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
8662	#            lib.a(lib.so.V) shared, rtl:no,  for executables
8663	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8664	#            lib.a(lib.so.V) shared, rtl:no
8665	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
8666	#            lib.a           static archive
8667	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8668	  for ld_flag in $LDFLAGS; do
8669	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8670	    aix_use_runtimelinking=yes
8671	    break
8672	  fi
8673	  done
8674	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8675	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
8676	    # so we don't have lib.a shared libs to link our executables.
8677	    # We have to force runtime linking in this case.
8678	    aix_use_runtimelinking=yes
8679	    LDFLAGS="$LDFLAGS -Wl,-brtl"
8680	  fi
8681	  ;;
8682	esac
8683
8684	exp_sym_flag='-bexport'
8685	no_entry_flag='-bnoentry'
8686      fi
8687
8688      # When large executables or shared objects are built, AIX ld can
8689      # have problems creating the table of contents.  If linking a library
8690      # or program results in "error TOC overflow" add -mminimal-toc to
8691      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8692      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8693
8694      archive_cmds=''
8695      hardcode_direct=yes
8696      hardcode_direct_absolute=yes
8697      hardcode_libdir_separator=':'
8698      link_all_deplibs=yes
8699      file_list_spec='$wl-f,'
8700      case $with_aix_soname,$aix_use_runtimelinking in
8701      aix,*) ;; # traditional, no import file
8702      svr4,* | *,yes) # use import file
8703	# The Import File defines what to hardcode.
8704	hardcode_direct=no
8705	hardcode_direct_absolute=no
8706	;;
8707      esac
8708
8709      if test yes = "$GCC"; then
8710	case $host_os in aix4.[012]|aix4.[012].*)
8711	# We only want to do this on AIX 4.2 and lower, the check
8712	# below for broken collect2 doesn't work under 4.3+
8713	  collect2name=`$CC -print-prog-name=collect2`
8714	  if test -f "$collect2name" &&
8715	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8716	  then
8717	  # We have reworked collect2
8718	  :
8719	  else
8720	  # We have old collect2
8721	  hardcode_direct=unsupported
8722	  # It fails to find uninstalled libraries when the uninstalled
8723	  # path is not listed in the libpath.  Setting hardcode_minus_L
8724	  # to unsupported forces relinking
8725	  hardcode_minus_L=yes
8726	  hardcode_libdir_flag_spec='-L$libdir'
8727	  hardcode_libdir_separator=
8728	  fi
8729	  ;;
8730	esac
8731	shared_flag='-shared'
8732	if test yes = "$aix_use_runtimelinking"; then
8733	  shared_flag="$shared_flag "'$wl-G'
8734	fi
8735	# Need to ensure runtime linking is disabled for the traditional
8736	# shared library, or the linker may eventually find shared libraries
8737	# /with/ Import File - we do not want to mix them.
8738	shared_flag_aix='-shared'
8739	shared_flag_svr4='-shared $wl-G'
8740      else
8741	# not using gcc
8742	if test ia64 = "$host_cpu"; then
8743	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8744	# chokes on -Wl,-G. The following line is correct:
8745	  shared_flag='-G'
8746	else
8747	  if test yes = "$aix_use_runtimelinking"; then
8748	    shared_flag='$wl-G'
8749	  else
8750	    shared_flag='$wl-bM:SRE'
8751	  fi
8752	  shared_flag_aix='$wl-bM:SRE'
8753	  shared_flag_svr4='$wl-G'
8754	fi
8755      fi
8756
8757      export_dynamic_flag_spec='$wl-bexpall'
8758      # It seems that -bexpall does not export symbols beginning with
8759      # underscore (_), so it is better to generate a list of symbols to export.
8760      always_export_symbols=yes
8761      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8762	# Warning - without using the other runtime loading flags (-brtl),
8763	# -berok will link without error, but may produce a broken library.
8764	allow_undefined_flag='-berok'
8765        # Determine the default libpath from the value encoded in an
8766        # empty executable.
8767        if test set = "${lt_cv_aix_libpath+set}"; then
8768  aix_libpath=$lt_cv_aix_libpath
8769else
8770  if ${lt_cv_aix_libpath_+:} false; then :
8771  $as_echo_n "(cached) " >&6
8772else
8773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774/* end confdefs.h.  */
8775
8776int
8777main ()
8778{
8779
8780  ;
8781  return 0;
8782}
8783_ACEOF
8784if ac_fn_c_try_link "$LINENO"; then :
8785
8786  lt_aix_libpath_sed='
8787      /Import File Strings/,/^$/ {
8788	  /^0/ {
8789	      s/^0  *\([^ ]*\) *$/\1/
8790	      p
8791	  }
8792      }'
8793  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8794  # Check for a 64-bit object if we didn't find anything.
8795  if test -z "$lt_cv_aix_libpath_"; then
8796    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8797  fi
8798fi
8799rm -f core conftest.err conftest.$ac_objext \
8800    conftest$ac_exeext conftest.$ac_ext
8801  if test -z "$lt_cv_aix_libpath_"; then
8802    lt_cv_aix_libpath_=/usr/lib:/lib
8803  fi
8804
8805fi
8806
8807  aix_libpath=$lt_cv_aix_libpath_
8808fi
8809
8810        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8811        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
8812      else
8813	if test ia64 = "$host_cpu"; then
8814	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
8815	  allow_undefined_flag="-z nodefs"
8816	  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"
8817	else
8818	 # Determine the default libpath from the value encoded in an
8819	 # empty executable.
8820	 if test set = "${lt_cv_aix_libpath+set}"; then
8821  aix_libpath=$lt_cv_aix_libpath
8822else
8823  if ${lt_cv_aix_libpath_+:} false; then :
8824  $as_echo_n "(cached) " >&6
8825else
8826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8827/* end confdefs.h.  */
8828
8829int
8830main ()
8831{
8832
8833  ;
8834  return 0;
8835}
8836_ACEOF
8837if ac_fn_c_try_link "$LINENO"; then :
8838
8839  lt_aix_libpath_sed='
8840      /Import File Strings/,/^$/ {
8841	  /^0/ {
8842	      s/^0  *\([^ ]*\) *$/\1/
8843	      p
8844	  }
8845      }'
8846  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8847  # Check for a 64-bit object if we didn't find anything.
8848  if test -z "$lt_cv_aix_libpath_"; then
8849    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8850  fi
8851fi
8852rm -f core conftest.err conftest.$ac_objext \
8853    conftest$ac_exeext conftest.$ac_ext
8854  if test -z "$lt_cv_aix_libpath_"; then
8855    lt_cv_aix_libpath_=/usr/lib:/lib
8856  fi
8857
8858fi
8859
8860  aix_libpath=$lt_cv_aix_libpath_
8861fi
8862
8863	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8864	  # Warning - without using the other run time loading flags,
8865	  # -berok will link without error, but may produce a broken library.
8866	  no_undefined_flag=' $wl-bernotok'
8867	  allow_undefined_flag=' $wl-berok'
8868	  if test yes = "$with_gnu_ld"; then
8869	    # We only use this code for GNU lds that support --whole-archive.
8870	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
8871	  else
8872	    # Exported symbols can be pulled into shared objects from archives
8873	    whole_archive_flag_spec='$convenience'
8874	  fi
8875	  archive_cmds_need_lc=yes
8876	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
8877	  # -brtl affects multiple linker settings, -berok does not and is overridden later
8878	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
8879	  if test svr4 != "$with_aix_soname"; then
8880	    # This is similar to how AIX traditionally builds its shared libraries.
8881	    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'
8882	  fi
8883	  if test aix != "$with_aix_soname"; then
8884	    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'
8885	  else
8886	    # used by -dlpreopen to get the symbols
8887	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
8888	  fi
8889	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
8890	fi
8891      fi
8892      ;;
8893
8894    amigaos*)
8895      case $host_cpu in
8896      powerpc)
8897            # see comment about AmigaOS4 .so support
8898            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8899            archive_expsym_cmds=''
8900        ;;
8901      m68k)
8902            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)'
8903            hardcode_libdir_flag_spec='-L$libdir'
8904            hardcode_minus_L=yes
8905        ;;
8906      esac
8907      ;;
8908
8909    bsdi[45]*)
8910      export_dynamic_flag_spec=-rdynamic
8911      ;;
8912
8913    cygwin* | mingw* | pw32* | cegcc*)
8914      # When not using gcc, we currently assume that we are using
8915      # Microsoft Visual C++.
8916      # hardcode_libdir_flag_spec is actually meaningless, as there is
8917      # no search path for DLLs.
8918      case $cc_basename in
8919      cl*)
8920	# Native MSVC
8921	hardcode_libdir_flag_spec=' '
8922	allow_undefined_flag=unsupported
8923	always_export_symbols=yes
8924	file_list_spec='@'
8925	# Tell ltmain to make .lib files, not .a files.
8926	libext=lib
8927	# Tell ltmain to make .dll files, not .so files.
8928	shrext_cmds=.dll
8929	# FIXME: Setting linknames here is a bad hack.
8930	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
8931	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
8932            cp "$export_symbols" "$output_objdir/$soname.def";
8933            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
8934          else
8935            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
8936          fi~
8937          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8938          linknames='
8939	# The linker will not automatically build a static lib if we build a DLL.
8940	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8941	enable_shared_with_static_runtimes=yes
8942	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8943	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8944	# Don't use ranlib
8945	old_postinstall_cmds='chmod 644 $oldlib'
8946	postlink_cmds='lt_outputfile="@OUTPUT@"~
8947          lt_tool_outputfile="@TOOL_OUTPUT@"~
8948          case $lt_outputfile in
8949            *.exe|*.EXE) ;;
8950            *)
8951              lt_outputfile=$lt_outputfile.exe
8952              lt_tool_outputfile=$lt_tool_outputfile.exe
8953              ;;
8954          esac~
8955          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
8956            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8957            $RM "$lt_outputfile.manifest";
8958          fi'
8959	;;
8960      *)
8961	# Assume MSVC wrapper
8962	hardcode_libdir_flag_spec=' '
8963	allow_undefined_flag=unsupported
8964	# Tell ltmain to make .lib files, not .a files.
8965	libext=lib
8966	# Tell ltmain to make .dll files, not .so files.
8967	shrext_cmds=.dll
8968	# FIXME: Setting linknames here is a bad hack.
8969	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8970	# The linker will automatically build a .lib file if we build a DLL.
8971	old_archive_from_new_cmds='true'
8972	# FIXME: Should let the user specify the lib program.
8973	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8974	enable_shared_with_static_runtimes=yes
8975	;;
8976      esac
8977      ;;
8978
8979    darwin* | rhapsody*)
8980
8981
8982  archive_cmds_need_lc=no
8983  hardcode_direct=no
8984  hardcode_automatic=yes
8985  hardcode_shlibpath_var=unsupported
8986  if test yes = "$lt_cv_ld_force_load"; then
8987    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\"`'
8988
8989  else
8990    whole_archive_flag_spec=''
8991  fi
8992  link_all_deplibs=yes
8993  allow_undefined_flag=$_lt_dar_allow_undefined
8994  case $cc_basename in
8995     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
8996     *) _lt_dar_can_shared=$GCC ;;
8997  esac
8998  if test yes = "$_lt_dar_can_shared"; then
8999    output_verbose_link_cmd=func_echo_all
9000    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9001    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9002    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"
9003    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"
9004
9005  else
9006  ld_shlibs=no
9007  fi
9008
9009      ;;
9010
9011    dgux*)
9012      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013      hardcode_libdir_flag_spec='-L$libdir'
9014      hardcode_shlibpath_var=no
9015      ;;
9016
9017    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9018    # support.  Future versions do this automatically, but an explicit c++rt0.o
9019    # does not break anything, and helps significantly (at the cost of a little
9020    # extra space).
9021    freebsd2.2*)
9022      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9023      hardcode_libdir_flag_spec='-R$libdir'
9024      hardcode_direct=yes
9025      hardcode_shlibpath_var=no
9026      ;;
9027
9028    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9029    freebsd2.*)
9030      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9031      hardcode_direct=yes
9032      hardcode_minus_L=yes
9033      hardcode_shlibpath_var=no
9034      ;;
9035
9036    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9037    freebsd* | dragonfly*)
9038      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9039      hardcode_libdir_flag_spec='-R$libdir'
9040      hardcode_direct=yes
9041      hardcode_shlibpath_var=no
9042      ;;
9043
9044    hpux9*)
9045      if test yes = "$GCC"; then
9046	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'
9047      else
9048	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'
9049      fi
9050      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9051      hardcode_libdir_separator=:
9052      hardcode_direct=yes
9053
9054      # hardcode_minus_L: Not really in the search PATH,
9055      # but as the default location of the library.
9056      hardcode_minus_L=yes
9057      export_dynamic_flag_spec='$wl-E'
9058      ;;
9059
9060    hpux10*)
9061      if test yes,no = "$GCC,$with_gnu_ld"; then
9062	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9063      else
9064	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9065      fi
9066      if test no = "$with_gnu_ld"; then
9067	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9068	hardcode_libdir_separator=:
9069	hardcode_direct=yes
9070	hardcode_direct_absolute=yes
9071	export_dynamic_flag_spec='$wl-E'
9072	# hardcode_minus_L: Not really in the search PATH,
9073	# but as the default location of the library.
9074	hardcode_minus_L=yes
9075      fi
9076      ;;
9077
9078    hpux11*)
9079      if test yes,no = "$GCC,$with_gnu_ld"; then
9080	case $host_cpu in
9081	hppa*64*)
9082	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9083	  ;;
9084	ia64*)
9085	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9086	  ;;
9087	*)
9088	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9089	  ;;
9090	esac
9091      else
9092	case $host_cpu in
9093	hppa*64*)
9094	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9095	  ;;
9096	ia64*)
9097	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9098	  ;;
9099	*)
9100
9101	  # Older versions of the 11.00 compiler do not understand -b yet
9102	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9103	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9104$as_echo_n "checking if $CC understands -b... " >&6; }
9105if ${lt_cv_prog_compiler__b+:} false; then :
9106  $as_echo_n "(cached) " >&6
9107else
9108  lt_cv_prog_compiler__b=no
9109   save_LDFLAGS=$LDFLAGS
9110   LDFLAGS="$LDFLAGS -b"
9111   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9112   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9113     # The linker can only warn and ignore the option if not recognized
9114     # So say no if there are warnings
9115     if test -s conftest.err; then
9116       # Append any errors to the config.log.
9117       cat conftest.err 1>&5
9118       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9119       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9120       if diff conftest.exp conftest.er2 >/dev/null; then
9121         lt_cv_prog_compiler__b=yes
9122       fi
9123     else
9124       lt_cv_prog_compiler__b=yes
9125     fi
9126   fi
9127   $RM -r conftest*
9128   LDFLAGS=$save_LDFLAGS
9129
9130fi
9131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9132$as_echo "$lt_cv_prog_compiler__b" >&6; }
9133
9134if test yes = "$lt_cv_prog_compiler__b"; then
9135    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9136else
9137    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9138fi
9139
9140	  ;;
9141	esac
9142      fi
9143      if test no = "$with_gnu_ld"; then
9144	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9145	hardcode_libdir_separator=:
9146
9147	case $host_cpu in
9148	hppa*64*|ia64*)
9149	  hardcode_direct=no
9150	  hardcode_shlibpath_var=no
9151	  ;;
9152	*)
9153	  hardcode_direct=yes
9154	  hardcode_direct_absolute=yes
9155	  export_dynamic_flag_spec='$wl-E'
9156
9157	  # hardcode_minus_L: Not really in the search PATH,
9158	  # but as the default location of the library.
9159	  hardcode_minus_L=yes
9160	  ;;
9161	esac
9162      fi
9163      ;;
9164
9165    irix5* | irix6* | nonstopux*)
9166      if test yes = "$GCC"; then
9167	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'
9168	# Try to use the -exported_symbol ld option, if it does not
9169	# work, assume that -exports_file does not work either and
9170	# implicitly export all symbols.
9171	# This should be the same for all languages, so no per-tag cache variable.
9172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9173$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9174if ${lt_cv_irix_exported_symbol+:} false; then :
9175  $as_echo_n "(cached) " >&6
9176else
9177  save_LDFLAGS=$LDFLAGS
9178	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9179	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180/* end confdefs.h.  */
9181int foo (void) { return 0; }
9182_ACEOF
9183if ac_fn_c_try_link "$LINENO"; then :
9184  lt_cv_irix_exported_symbol=yes
9185else
9186  lt_cv_irix_exported_symbol=no
9187fi
9188rm -f core conftest.err conftest.$ac_objext \
9189    conftest$ac_exeext conftest.$ac_ext
9190           LDFLAGS=$save_LDFLAGS
9191fi
9192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9193$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9194	if test yes = "$lt_cv_irix_exported_symbol"; then
9195          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'
9196	fi
9197	link_all_deplibs=no
9198      else
9199	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'
9200	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'
9201      fi
9202      archive_cmds_need_lc='no'
9203      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9204      hardcode_libdir_separator=:
9205      inherit_rpath=yes
9206      link_all_deplibs=yes
9207      ;;
9208
9209    linux*)
9210      case $cc_basename in
9211      tcc*)
9212	# Fabrice Bellard et al's Tiny C Compiler
9213	ld_shlibs=yes
9214	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9215	;;
9216      esac
9217      ;;
9218
9219    netbsd* | netbsdelf*-gnu)
9220      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9221	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9222      else
9223	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9224      fi
9225      hardcode_libdir_flag_spec='-R$libdir'
9226      hardcode_direct=yes
9227      hardcode_shlibpath_var=no
9228      ;;
9229
9230    newsos6)
9231      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9232      hardcode_direct=yes
9233      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9234      hardcode_libdir_separator=:
9235      hardcode_shlibpath_var=no
9236      ;;
9237
9238    *nto* | *qnx*)
9239      ;;
9240
9241    openbsd* | bitrig*)
9242      if test -f /usr/libexec/ld.so; then
9243	hardcode_direct=yes
9244	hardcode_shlibpath_var=no
9245	hardcode_direct_absolute=yes
9246	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9247	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9248	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9249	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9250	  export_dynamic_flag_spec='$wl-E'
9251	else
9252	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9253	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9254	fi
9255      else
9256	ld_shlibs=no
9257      fi
9258      ;;
9259
9260    os2*)
9261      hardcode_libdir_flag_spec='-L$libdir'
9262      hardcode_minus_L=yes
9263      allow_undefined_flag=unsupported
9264      shrext_cmds=.dll
9265      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9266	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9267	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9268	$ECHO EXPORTS >> $output_objdir/$libname.def~
9269	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9270	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9271	emximp -o $lib $output_objdir/$libname.def'
9272      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9273	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9274	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9275	$ECHO EXPORTS >> $output_objdir/$libname.def~
9276	prefix_cmds="$SED"~
9277	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9278	  prefix_cmds="$prefix_cmds -e 1d";
9279	fi~
9280	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9281	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9282	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9283	emximp -o $lib $output_objdir/$libname.def'
9284      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9285      enable_shared_with_static_runtimes=yes
9286      ;;
9287
9288    osf3*)
9289      if test yes = "$GCC"; then
9290	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9291	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'
9292      else
9293	allow_undefined_flag=' -expect_unresolved \*'
9294	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'
9295      fi
9296      archive_cmds_need_lc='no'
9297      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9298      hardcode_libdir_separator=:
9299      ;;
9300
9301    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9302      if test yes = "$GCC"; then
9303	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9304	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'
9305	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9306      else
9307	allow_undefined_flag=' -expect_unresolved \*'
9308	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'
9309	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~
9310          $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'
9311
9312	# Both c and cxx compiler support -rpath directly
9313	hardcode_libdir_flag_spec='-rpath $libdir'
9314      fi
9315      archive_cmds_need_lc='no'
9316      hardcode_libdir_separator=:
9317      ;;
9318
9319    solaris*)
9320      no_undefined_flag=' -z defs'
9321      if test yes = "$GCC"; then
9322	wlarc='$wl'
9323	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9324	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9325          $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'
9326      else
9327	case `$CC -V 2>&1` in
9328	*"Compilers 5.0"*)
9329	  wlarc=''
9330	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9331	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9332            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9333	  ;;
9334	*)
9335	  wlarc='$wl'
9336	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9337	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9338            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9339	  ;;
9340	esac
9341      fi
9342      hardcode_libdir_flag_spec='-R$libdir'
9343      hardcode_shlibpath_var=no
9344      case $host_os in
9345      solaris2.[0-5] | solaris2.[0-5].*) ;;
9346      *)
9347	# The compiler driver will combine and reorder linker options,
9348	# but understands '-z linker_flag'.  GCC discards it without '$wl',
9349	# but is careful enough not to reorder.
9350	# Supported since Solaris 2.6 (maybe 2.5.1?)
9351	if test yes = "$GCC"; then
9352	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9353	else
9354	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9355	fi
9356	;;
9357      esac
9358      link_all_deplibs=yes
9359      ;;
9360
9361    sunos4*)
9362      if test sequent = "$host_vendor"; then
9363	# Use $CC to link under sequent, because it throws in some extra .o
9364	# files that make .init and .fini sections work.
9365	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9366      else
9367	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9368      fi
9369      hardcode_libdir_flag_spec='-L$libdir'
9370      hardcode_direct=yes
9371      hardcode_minus_L=yes
9372      hardcode_shlibpath_var=no
9373      ;;
9374
9375    sysv4)
9376      case $host_vendor in
9377	sni)
9378	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9379	  hardcode_direct=yes # is this really true???
9380	;;
9381	siemens)
9382	  ## LD is ld it makes a PLAMLIB
9383	  ## CC just makes a GrossModule.
9384	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9385	  reload_cmds='$CC -r -o $output$reload_objs'
9386	  hardcode_direct=no
9387        ;;
9388	motorola)
9389	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9390	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9391	;;
9392      esac
9393      runpath_var='LD_RUN_PATH'
9394      hardcode_shlibpath_var=no
9395      ;;
9396
9397    sysv4.3*)
9398      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399      hardcode_shlibpath_var=no
9400      export_dynamic_flag_spec='-Bexport'
9401      ;;
9402
9403    sysv4*MP*)
9404      if test -d /usr/nec; then
9405	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9406	hardcode_shlibpath_var=no
9407	runpath_var=LD_RUN_PATH
9408	hardcode_runpath_var=yes
9409	ld_shlibs=yes
9410      fi
9411      ;;
9412
9413    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9414      no_undefined_flag='$wl-z,text'
9415      archive_cmds_need_lc=no
9416      hardcode_shlibpath_var=no
9417      runpath_var='LD_RUN_PATH'
9418
9419      if test yes = "$GCC"; then
9420	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9421	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9422      else
9423	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9424	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9425      fi
9426      ;;
9427
9428    sysv5* | sco3.2v5* | sco5v6*)
9429      # Note: We CANNOT use -z defs as we might desire, because we do not
9430      # link with -lc, and that would cause any symbols used from libc to
9431      # always be unresolved, which means just about no library would
9432      # ever link correctly.  If we're not using GNU ld we use -z text
9433      # though, which does catch some bad symbols but isn't as heavy-handed
9434      # as -z defs.
9435      no_undefined_flag='$wl-z,text'
9436      allow_undefined_flag='$wl-z,nodefs'
9437      archive_cmds_need_lc=no
9438      hardcode_shlibpath_var=no
9439      hardcode_libdir_flag_spec='$wl-R,$libdir'
9440      hardcode_libdir_separator=':'
9441      link_all_deplibs=yes
9442      export_dynamic_flag_spec='$wl-Bexport'
9443      runpath_var='LD_RUN_PATH'
9444
9445      if test yes = "$GCC"; then
9446	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9447	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9448      else
9449	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9450	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9451      fi
9452      ;;
9453
9454    uts4*)
9455      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9456      hardcode_libdir_flag_spec='-L$libdir'
9457      hardcode_shlibpath_var=no
9458      ;;
9459
9460    *)
9461      ld_shlibs=no
9462      ;;
9463    esac
9464
9465    if test sni = "$host_vendor"; then
9466      case $host in
9467      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9468	export_dynamic_flag_spec='$wl-Blargedynsym'
9469	;;
9470      esac
9471    fi
9472  fi
9473
9474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9475$as_echo "$ld_shlibs" >&6; }
9476test no = "$ld_shlibs" && can_build_shared=no
9477
9478with_gnu_ld=$with_gnu_ld
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494#
9495# Do we need to explicitly link libc?
9496#
9497case "x$archive_cmds_need_lc" in
9498x|xyes)
9499  # Assume -lc should be added
9500  archive_cmds_need_lc=yes
9501
9502  if test yes,yes = "$GCC,$enable_shared"; then
9503    case $archive_cmds in
9504    *'~'*)
9505      # FIXME: we may have to deal with multi-command sequences.
9506      ;;
9507    '$CC '*)
9508      # Test whether the compiler implicitly links with -lc since on some
9509      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9510      # to ld, don't add -lc before -lgcc.
9511      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9512$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9513if ${lt_cv_archive_cmds_need_lc+:} false; then :
9514  $as_echo_n "(cached) " >&6
9515else
9516  $RM conftest*
9517	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9518
9519	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9520  (eval $ac_compile) 2>&5
9521  ac_status=$?
9522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9523  test $ac_status = 0; } 2>conftest.err; then
9524	  soname=conftest
9525	  lib=conftest
9526	  libobjs=conftest.$ac_objext
9527	  deplibs=
9528	  wl=$lt_prog_compiler_wl
9529	  pic_flag=$lt_prog_compiler_pic
9530	  compiler_flags=-v
9531	  linker_flags=-v
9532	  verstring=
9533	  output_objdir=.
9534	  libname=conftest
9535	  lt_save_allow_undefined_flag=$allow_undefined_flag
9536	  allow_undefined_flag=
9537	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9538  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9539  ac_status=$?
9540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9541  test $ac_status = 0; }
9542	  then
9543	    lt_cv_archive_cmds_need_lc=no
9544	  else
9545	    lt_cv_archive_cmds_need_lc=yes
9546	  fi
9547	  allow_undefined_flag=$lt_save_allow_undefined_flag
9548	else
9549	  cat conftest.err 1>&5
9550	fi
9551	$RM conftest*
9552
9553fi
9554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9555$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9556      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9557      ;;
9558    esac
9559  fi
9560  ;;
9561esac
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9715$as_echo_n "checking dynamic linker characteristics... " >&6; }
9716
9717if test yes = "$GCC"; then
9718  case $host_os in
9719    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
9720    *) lt_awk_arg='/^libraries:/' ;;
9721  esac
9722  case $host_os in
9723    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
9724    *) lt_sed_strip_eq='s|=/|/|g' ;;
9725  esac
9726  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9727  case $lt_search_path_spec in
9728  *\;*)
9729    # if the path contains ";" then we assume it to be the separator
9730    # otherwise default to the standard path separator (i.e. ":") - it is
9731    # assumed that no part of a normal pathname contains ";" but that should
9732    # okay in the real world where ";" in dirpaths is itself problematic.
9733    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9734    ;;
9735  *)
9736    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9737    ;;
9738  esac
9739  # Ok, now we have the path, separated by spaces, we can step through it
9740  # and add multilib dir if necessary...
9741  lt_tmp_lt_search_path_spec=
9742  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9743  # ...but if some path component already ends with the multilib dir we assume
9744  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
9745  case "$lt_multi_os_dir; $lt_search_path_spec " in
9746  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
9747    lt_multi_os_dir=
9748    ;;
9749  esac
9750  for lt_sys_path in $lt_search_path_spec; do
9751    if test -d "$lt_sys_path$lt_multi_os_dir"; then
9752      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
9753    elif test -n "$lt_multi_os_dir"; then
9754      test -d "$lt_sys_path" && \
9755	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9756    fi
9757  done
9758  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9759BEGIN {RS = " "; FS = "/|\n";} {
9760  lt_foo = "";
9761  lt_count = 0;
9762  for (lt_i = NF; lt_i > 0; lt_i--) {
9763    if ($lt_i != "" && $lt_i != ".") {
9764      if ($lt_i == "..") {
9765        lt_count++;
9766      } else {
9767        if (lt_count == 0) {
9768          lt_foo = "/" $lt_i lt_foo;
9769        } else {
9770          lt_count--;
9771        }
9772      }
9773    }
9774  }
9775  if (lt_foo != "") { lt_freq[lt_foo]++; }
9776  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9777}'`
9778  # AWK program above erroneously prepends '/' to C:/dos/paths
9779  # for these hosts.
9780  case $host_os in
9781    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9782      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
9783  esac
9784  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9785else
9786  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9787fi
9788library_names_spec=
9789libname_spec='lib$name'
9790soname_spec=
9791shrext_cmds=.so
9792postinstall_cmds=
9793postuninstall_cmds=
9794finish_cmds=
9795finish_eval=
9796shlibpath_var=
9797shlibpath_overrides_runpath=unknown
9798version_type=none
9799dynamic_linker="$host_os ld.so"
9800sys_lib_dlsearch_path_spec="/lib /usr/lib"
9801need_lib_prefix=unknown
9802hardcode_into_libs=no
9803
9804# when you set need_version to no, make sure it does not cause -set_version
9805# flags to be left without arguments
9806need_version=unknown
9807
9808
9809
9810case $host_os in
9811aix3*)
9812  version_type=linux # correct to gnu/linux during the next big refactor
9813  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
9814  shlibpath_var=LIBPATH
9815
9816  # AIX 3 has no versioning support, so we append a major version to the name.
9817  soname_spec='$libname$release$shared_ext$major'
9818  ;;
9819
9820aix[4-9]*)
9821  version_type=linux # correct to gnu/linux during the next big refactor
9822  need_lib_prefix=no
9823  need_version=no
9824  hardcode_into_libs=yes
9825  if test ia64 = "$host_cpu"; then
9826    # AIX 5 supports IA64
9827    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
9828    shlibpath_var=LD_LIBRARY_PATH
9829  else
9830    # With GCC up to 2.95.x, collect2 would create an import file
9831    # for dependence libraries.  The import file would start with
9832    # the line '#! .'.  This would cause the generated library to
9833    # depend on '.', always an invalid library.  This was fixed in
9834    # development snapshots of GCC prior to 3.0.
9835    case $host_os in
9836      aix4 | aix4.[01] | aix4.[01].*)
9837      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9838	   echo ' yes '
9839	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
9840	:
9841      else
9842	can_build_shared=no
9843      fi
9844      ;;
9845    esac
9846    # Using Import Files as archive members, it is possible to support
9847    # filename-based versioning of shared library archives on AIX. While
9848    # this would work for both with and without runtime linking, it will
9849    # prevent static linking of such archives. So we do filename-based
9850    # shared library versioning with .so extension only, which is used
9851    # when both runtime linking and shared linking is enabled.
9852    # Unfortunately, runtime linking may impact performance, so we do
9853    # not want this to be the default eventually. Also, we use the
9854    # versioned .so libs for executables only if there is the -brtl
9855    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
9856    # To allow for filename-based versioning support, we need to create
9857    # libNAME.so.V as an archive file, containing:
9858    # *) an Import File, referring to the versioned filename of the
9859    #    archive as well as the shared archive member, telling the
9860    #    bitwidth (32 or 64) of that shared object, and providing the
9861    #    list of exported symbols of that shared object, eventually
9862    #    decorated with the 'weak' keyword
9863    # *) the shared object with the F_LOADONLY flag set, to really avoid
9864    #    it being seen by the linker.
9865    # At run time we better use the real file rather than another symlink,
9866    # but for link time we create the symlink libNAME.so -> libNAME.so.V
9867
9868    case $with_aix_soname,$aix_use_runtimelinking in
9869    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
9870    # soname into executable. Probably we can add versioning support to
9871    # collect2, so additional links can be useful in future.
9872    aix,yes) # traditional libtool
9873      dynamic_linker='AIX unversionable lib.so'
9874      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9875      # instead of lib<name>.a to let people know that these are not
9876      # typical AIX shared libraries.
9877      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9878      ;;
9879    aix,no) # traditional AIX only
9880      dynamic_linker='AIX lib.a(lib.so.V)'
9881      # We preserve .a as extension for shared libraries through AIX4.2
9882      # and later when we are not doing run time linking.
9883      library_names_spec='$libname$release.a $libname.a'
9884      soname_spec='$libname$release$shared_ext$major'
9885      ;;
9886    svr4,*) # full svr4 only
9887      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
9888      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
9889      # We do not specify a path in Import Files, so LIBPATH fires.
9890      shlibpath_overrides_runpath=yes
9891      ;;
9892    *,yes) # both, prefer svr4
9893      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
9894      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
9895      # unpreferred sharedlib libNAME.a needs extra handling
9896      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"'
9897      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"'
9898      # We do not specify a path in Import Files, so LIBPATH fires.
9899      shlibpath_overrides_runpath=yes
9900      ;;
9901    *,no) # both, prefer aix
9902      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
9903      library_names_spec='$libname$release.a $libname.a'
9904      soname_spec='$libname$release$shared_ext$major'
9905      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
9906      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)'
9907      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"'
9908      ;;
9909    esac
9910    shlibpath_var=LIBPATH
9911  fi
9912  ;;
9913
9914amigaos*)
9915  case $host_cpu in
9916  powerpc)
9917    # Since July 2007 AmigaOS4 officially supports .so libraries.
9918    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9919    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9920    ;;
9921  m68k)
9922    library_names_spec='$libname.ixlibrary $libname.a'
9923    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9924    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'
9925    ;;
9926  esac
9927  ;;
9928
9929beos*)
9930  library_names_spec='$libname$shared_ext'
9931  dynamic_linker="$host_os ld.so"
9932  shlibpath_var=LIBRARY_PATH
9933  ;;
9934
9935bsdi[45]*)
9936  version_type=linux # correct to gnu/linux during the next big refactor
9937  need_version=no
9938  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9939  soname_spec='$libname$release$shared_ext$major'
9940  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9941  shlibpath_var=LD_LIBRARY_PATH
9942  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9943  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9944  # the default ld.so.conf also contains /usr/contrib/lib and
9945  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9946  # libtool to hard-code these into programs
9947  ;;
9948
9949cygwin* | mingw* | pw32* | cegcc*)
9950  version_type=windows
9951  shrext_cmds=.dll
9952  need_version=no
9953  need_lib_prefix=no
9954
9955  case $GCC,$cc_basename in
9956  yes,*)
9957    # gcc
9958    library_names_spec='$libname.dll.a'
9959    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9960    postinstall_cmds='base_file=`basename \$file`~
9961      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
9962      dldir=$destdir/`dirname \$dlpath`~
9963      test -d \$dldir || mkdir -p \$dldir~
9964      $install_prog $dir/$dlname \$dldir/$dlname~
9965      chmod a+x \$dldir/$dlname~
9966      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9967        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9968      fi'
9969    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9970      dlpath=$dir/\$dldll~
9971       $RM \$dlpath'
9972    shlibpath_overrides_runpath=yes
9973
9974    case $host_os in
9975    cygwin*)
9976      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9977      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9978
9979      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9980      ;;
9981    mingw* | cegcc*)
9982      # MinGW DLLs use traditional 'lib' prefix
9983      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9984      ;;
9985    pw32*)
9986      # pw32 DLLs use 'pw' prefix rather than 'lib'
9987      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9988      ;;
9989    esac
9990    dynamic_linker='Win32 ld.exe'
9991    ;;
9992
9993  *,cl*)
9994    # Native MSVC
9995    libname_spec='$name'
9996    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9997    library_names_spec='$libname.dll.lib'
9998
9999    case $build_os in
10000    mingw*)
10001      sys_lib_search_path_spec=
10002      lt_save_ifs=$IFS
10003      IFS=';'
10004      for lt_path in $LIB
10005      do
10006        IFS=$lt_save_ifs
10007        # Let DOS variable expansion print the short 8.3 style file name.
10008        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10009        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10010      done
10011      IFS=$lt_save_ifs
10012      # Convert to MSYS style.
10013      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10014      ;;
10015    cygwin*)
10016      # Convert to unix form, then to dos form, then back to unix form
10017      # but this time dos style (no spaces!) so that the unix form looks
10018      # like /cygdrive/c/PROGRA~1:/cygdr...
10019      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10020      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10021      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10022      ;;
10023    *)
10024      sys_lib_search_path_spec=$LIB
10025      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10026        # It is most probably a Windows format PATH.
10027        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10028      else
10029        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10030      fi
10031      # FIXME: find the short name or the path components, as spaces are
10032      # common. (e.g. "Program Files" -> "PROGRA~1")
10033      ;;
10034    esac
10035
10036    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10037    postinstall_cmds='base_file=`basename \$file`~
10038      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10039      dldir=$destdir/`dirname \$dlpath`~
10040      test -d \$dldir || mkdir -p \$dldir~
10041      $install_prog $dir/$dlname \$dldir/$dlname'
10042    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10043      dlpath=$dir/\$dldll~
10044       $RM \$dlpath'
10045    shlibpath_overrides_runpath=yes
10046    dynamic_linker='Win32 link.exe'
10047    ;;
10048
10049  *)
10050    # Assume MSVC wrapper
10051    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10052    dynamic_linker='Win32 ld.exe'
10053    ;;
10054  esac
10055  # FIXME: first we should search . and the directory the executable is in
10056  shlibpath_var=PATH
10057  ;;
10058
10059darwin* | rhapsody*)
10060  dynamic_linker="$host_os dyld"
10061  version_type=darwin
10062  need_lib_prefix=no
10063  need_version=no
10064  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10065  soname_spec='$libname$release$major$shared_ext'
10066  shlibpath_overrides_runpath=yes
10067  shlibpath_var=DYLD_LIBRARY_PATH
10068  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10069
10070  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10071  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10072  ;;
10073
10074dgux*)
10075  version_type=linux # correct to gnu/linux during the next big refactor
10076  need_lib_prefix=no
10077  need_version=no
10078  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10079  soname_spec='$libname$release$shared_ext$major'
10080  shlibpath_var=LD_LIBRARY_PATH
10081  ;;
10082
10083freebsd* | dragonfly*)
10084  # DragonFly does not have aout.  When/if they implement a new
10085  # versioning mechanism, adjust this.
10086  if test -x /usr/bin/objformat; then
10087    objformat=`/usr/bin/objformat`
10088  else
10089    case $host_os in
10090    freebsd[23].*) objformat=aout ;;
10091    *) objformat=elf ;;
10092    esac
10093  fi
10094  version_type=freebsd-$objformat
10095  case $version_type in
10096    freebsd-elf*)
10097      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10098      soname_spec='$libname$release$shared_ext$major'
10099      need_version=no
10100      need_lib_prefix=no
10101      ;;
10102    freebsd-*)
10103      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10104      need_version=yes
10105      ;;
10106  esac
10107  shlibpath_var=LD_LIBRARY_PATH
10108  case $host_os in
10109  freebsd2.*)
10110    shlibpath_overrides_runpath=yes
10111    ;;
10112  freebsd3.[01]* | freebsdelf3.[01]*)
10113    shlibpath_overrides_runpath=yes
10114    hardcode_into_libs=yes
10115    ;;
10116  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10117  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10118    shlibpath_overrides_runpath=no
10119    hardcode_into_libs=yes
10120    ;;
10121  *) # from 4.6 on, and DragonFly
10122    shlibpath_overrides_runpath=yes
10123    hardcode_into_libs=yes
10124    ;;
10125  esac
10126  ;;
10127
10128haiku*)
10129  version_type=linux # correct to gnu/linux during the next big refactor
10130  need_lib_prefix=no
10131  need_version=no
10132  dynamic_linker="$host_os runtime_loader"
10133  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10134  soname_spec='$libname$release$shared_ext$major'
10135  shlibpath_var=LIBRARY_PATH
10136  shlibpath_overrides_runpath=no
10137  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10138  hardcode_into_libs=yes
10139  ;;
10140
10141hpux9* | hpux10* | hpux11*)
10142  # Give a soname corresponding to the major version so that dld.sl refuses to
10143  # link against other versions.
10144  version_type=sunos
10145  need_lib_prefix=no
10146  need_version=no
10147  case $host_cpu in
10148  ia64*)
10149    shrext_cmds='.so'
10150    hardcode_into_libs=yes
10151    dynamic_linker="$host_os dld.so"
10152    shlibpath_var=LD_LIBRARY_PATH
10153    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10154    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10155    soname_spec='$libname$release$shared_ext$major'
10156    if test 32 = "$HPUX_IA64_MODE"; then
10157      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10158      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10159    else
10160      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10161      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10162    fi
10163    ;;
10164  hppa*64*)
10165    shrext_cmds='.sl'
10166    hardcode_into_libs=yes
10167    dynamic_linker="$host_os dld.sl"
10168    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10169    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10170    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10171    soname_spec='$libname$release$shared_ext$major'
10172    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10173    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10174    ;;
10175  *)
10176    shrext_cmds='.sl'
10177    dynamic_linker="$host_os dld.sl"
10178    shlibpath_var=SHLIB_PATH
10179    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10180    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10181    soname_spec='$libname$release$shared_ext$major'
10182    ;;
10183  esac
10184  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10185  postinstall_cmds='chmod 555 $lib'
10186  # or fails outright, so override atomically:
10187  install_override_mode=555
10188  ;;
10189
10190interix[3-9]*)
10191  version_type=linux # correct to gnu/linux during the next big refactor
10192  need_lib_prefix=no
10193  need_version=no
10194  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10195  soname_spec='$libname$release$shared_ext$major'
10196  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10197  shlibpath_var=LD_LIBRARY_PATH
10198  shlibpath_overrides_runpath=no
10199  hardcode_into_libs=yes
10200  ;;
10201
10202irix5* | irix6* | nonstopux*)
10203  case $host_os in
10204    nonstopux*) version_type=nonstopux ;;
10205    *)
10206	if test yes = "$lt_cv_prog_gnu_ld"; then
10207		version_type=linux # correct to gnu/linux during the next big refactor
10208	else
10209		version_type=irix
10210	fi ;;
10211  esac
10212  need_lib_prefix=no
10213  need_version=no
10214  soname_spec='$libname$release$shared_ext$major'
10215  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10216  case $host_os in
10217  irix5* | nonstopux*)
10218    libsuff= shlibsuff=
10219    ;;
10220  *)
10221    case $LD in # libtool.m4 will add one of these switches to LD
10222    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10223      libsuff= shlibsuff= libmagic=32-bit;;
10224    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10225      libsuff=32 shlibsuff=N32 libmagic=N32;;
10226    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10227      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10228    *) libsuff= shlibsuff= libmagic=never-match;;
10229    esac
10230    ;;
10231  esac
10232  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10233  shlibpath_overrides_runpath=no
10234  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10235  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10236  hardcode_into_libs=yes
10237  ;;
10238
10239# No shared lib support for Linux oldld, aout, or coff.
10240linux*oldld* | linux*aout* | linux*coff*)
10241  dynamic_linker=no
10242  ;;
10243
10244linux*android*)
10245  version_type=none # Android doesn't support versioned libraries.
10246  need_lib_prefix=no
10247  need_version=no
10248  library_names_spec='$libname$release$shared_ext'
10249  soname_spec='$libname$release$shared_ext'
10250  finish_cmds=
10251  shlibpath_var=LD_LIBRARY_PATH
10252  shlibpath_overrides_runpath=yes
10253
10254  # This implies no fast_install, which is unacceptable.
10255  # Some rework will be needed to allow for fast_install
10256  # before this can be enabled.
10257  hardcode_into_libs=yes
10258
10259  dynamic_linker='Android linker'
10260  # Don't embed -rpath directories since the linker doesn't support them.
10261  hardcode_libdir_flag_spec='-L$libdir'
10262  ;;
10263
10264# This must be glibc/ELF.
10265linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10266  version_type=linux # correct to gnu/linux during the next big refactor
10267  need_lib_prefix=no
10268  need_version=no
10269  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10270  soname_spec='$libname$release$shared_ext$major'
10271  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10272  shlibpath_var=LD_LIBRARY_PATH
10273  shlibpath_overrides_runpath=no
10274
10275  # Some binutils ld are patched to set DT_RUNPATH
10276  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10277  $as_echo_n "(cached) " >&6
10278else
10279  lt_cv_shlibpath_overrides_runpath=no
10280    save_LDFLAGS=$LDFLAGS
10281    save_libdir=$libdir
10282    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10283	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10284    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285/* end confdefs.h.  */
10286
10287int
10288main ()
10289{
10290
10291  ;
10292  return 0;
10293}
10294_ACEOF
10295if ac_fn_c_try_link "$LINENO"; then :
10296  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10297  lt_cv_shlibpath_overrides_runpath=yes
10298fi
10299fi
10300rm -f core conftest.err conftest.$ac_objext \
10301    conftest$ac_exeext conftest.$ac_ext
10302    LDFLAGS=$save_LDFLAGS
10303    libdir=$save_libdir
10304
10305fi
10306
10307  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10308
10309  # This implies no fast_install, which is unacceptable.
10310  # Some rework will be needed to allow for fast_install
10311  # before this can be enabled.
10312  hardcode_into_libs=yes
10313
10314  # Ideally, we could use ldconfig to report *all* directores which are
10315  # searched for libraries, however this is still not possible.  Aside from not
10316  # being certain /sbin/ldconfig is available, command
10317  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10318  # even though it is searched at run-time.  Try to do the best guess by
10319  # appending ld.so.conf contents (and includes) to the search path.
10320  if test -f /etc/ld.so.conf; then
10321    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' ' '`
10322    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10323  fi
10324
10325  # We used to test for /lib/ld.so.1 and disable shared libraries on
10326  # powerpc, because MkLinux only supported shared libraries with the
10327  # GNU dynamic linker.  Since this was broken with cross compilers,
10328  # most powerpc-linux boxes support dynamic linking these days and
10329  # people can always --disable-shared, the test was removed, and we
10330  # assume the GNU/Linux dynamic linker is in use.
10331  dynamic_linker='GNU/Linux ld.so'
10332  ;;
10333
10334netbsdelf*-gnu)
10335  version_type=linux
10336  need_lib_prefix=no
10337  need_version=no
10338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10339  soname_spec='${libname}${release}${shared_ext}$major'
10340  shlibpath_var=LD_LIBRARY_PATH
10341  shlibpath_overrides_runpath=no
10342  hardcode_into_libs=yes
10343  dynamic_linker='NetBSD ld.elf_so'
10344  ;;
10345
10346netbsd*)
10347  version_type=sunos
10348  need_lib_prefix=no
10349  need_version=no
10350  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10351    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10352    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10353    dynamic_linker='NetBSD (a.out) ld.so'
10354  else
10355    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10356    soname_spec='$libname$release$shared_ext$major'
10357    dynamic_linker='NetBSD ld.elf_so'
10358  fi
10359  shlibpath_var=LD_LIBRARY_PATH
10360  shlibpath_overrides_runpath=yes
10361  hardcode_into_libs=yes
10362  ;;
10363
10364newsos6)
10365  version_type=linux # correct to gnu/linux during the next big refactor
10366  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10367  shlibpath_var=LD_LIBRARY_PATH
10368  shlibpath_overrides_runpath=yes
10369  ;;
10370
10371*nto* | *qnx*)
10372  version_type=qnx
10373  need_lib_prefix=no
10374  need_version=no
10375  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10376  soname_spec='$libname$release$shared_ext$major'
10377  shlibpath_var=LD_LIBRARY_PATH
10378  shlibpath_overrides_runpath=no
10379  hardcode_into_libs=yes
10380  dynamic_linker='ldqnx.so'
10381  ;;
10382
10383openbsd* | bitrig*)
10384  version_type=sunos
10385  sys_lib_dlsearch_path_spec=/usr/lib
10386  need_lib_prefix=no
10387  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10388    need_version=no
10389  else
10390    need_version=yes
10391  fi
10392  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10393  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10394  shlibpath_var=LD_LIBRARY_PATH
10395  shlibpath_overrides_runpath=yes
10396  ;;
10397
10398os2*)
10399  libname_spec='$name'
10400  version_type=windows
10401  shrext_cmds=.dll
10402  need_version=no
10403  need_lib_prefix=no
10404  # OS/2 can only load a DLL with a base name of 8 characters or less.
10405  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10406    v=$($ECHO $release$versuffix | tr -d .-);
10407    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10408    $ECHO $n$v`$shared_ext'
10409  library_names_spec='${libname}_dll.$libext'
10410  dynamic_linker='OS/2 ld.exe'
10411  shlibpath_var=BEGINLIBPATH
10412  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10413  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10414  postinstall_cmds='base_file=`basename \$file`~
10415    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10416    dldir=$destdir/`dirname \$dlpath`~
10417    test -d \$dldir || mkdir -p \$dldir~
10418    $install_prog $dir/$dlname \$dldir/$dlname~
10419    chmod a+x \$dldir/$dlname~
10420    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10421      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10422    fi'
10423  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10424    dlpath=$dir/\$dldll~
10425    $RM \$dlpath'
10426  ;;
10427
10428osf3* | osf4* | osf5*)
10429  version_type=osf
10430  need_lib_prefix=no
10431  need_version=no
10432  soname_spec='$libname$release$shared_ext$major'
10433  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10434  shlibpath_var=LD_LIBRARY_PATH
10435  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10436  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10437  ;;
10438
10439rdos*)
10440  dynamic_linker=no
10441  ;;
10442
10443solaris*)
10444  version_type=linux # correct to gnu/linux during the next big refactor
10445  need_lib_prefix=no
10446  need_version=no
10447  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10448  soname_spec='$libname$release$shared_ext$major'
10449  shlibpath_var=LD_LIBRARY_PATH
10450  shlibpath_overrides_runpath=yes
10451  hardcode_into_libs=yes
10452  # ldd complains unless libraries are executable
10453  postinstall_cmds='chmod +x $lib'
10454  ;;
10455
10456sunos4*)
10457  version_type=sunos
10458  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10459  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10460  shlibpath_var=LD_LIBRARY_PATH
10461  shlibpath_overrides_runpath=yes
10462  if test yes = "$with_gnu_ld"; then
10463    need_lib_prefix=no
10464  fi
10465  need_version=yes
10466  ;;
10467
10468sysv4 | sysv4.3*)
10469  version_type=linux # correct to gnu/linux during the next big refactor
10470  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10471  soname_spec='$libname$release$shared_ext$major'
10472  shlibpath_var=LD_LIBRARY_PATH
10473  case $host_vendor in
10474    sni)
10475      shlibpath_overrides_runpath=no
10476      need_lib_prefix=no
10477      runpath_var=LD_RUN_PATH
10478      ;;
10479    siemens)
10480      need_lib_prefix=no
10481      ;;
10482    motorola)
10483      need_lib_prefix=no
10484      need_version=no
10485      shlibpath_overrides_runpath=no
10486      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10487      ;;
10488  esac
10489  ;;
10490
10491sysv4*MP*)
10492  if test -d /usr/nec; then
10493    version_type=linux # correct to gnu/linux during the next big refactor
10494    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10495    soname_spec='$libname$shared_ext.$major'
10496    shlibpath_var=LD_LIBRARY_PATH
10497  fi
10498  ;;
10499
10500sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10501  version_type=sco
10502  need_lib_prefix=no
10503  need_version=no
10504  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10505  soname_spec='$libname$release$shared_ext$major'
10506  shlibpath_var=LD_LIBRARY_PATH
10507  shlibpath_overrides_runpath=yes
10508  hardcode_into_libs=yes
10509  if test yes = "$with_gnu_ld"; then
10510    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10511  else
10512    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10513    case $host_os in
10514      sco3.2v5*)
10515        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10516	;;
10517    esac
10518  fi
10519  sys_lib_dlsearch_path_spec='/usr/lib'
10520  ;;
10521
10522tpf*)
10523  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10524  version_type=linux # correct to gnu/linux during the next big refactor
10525  need_lib_prefix=no
10526  need_version=no
10527  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10528  shlibpath_var=LD_LIBRARY_PATH
10529  shlibpath_overrides_runpath=no
10530  hardcode_into_libs=yes
10531  ;;
10532
10533uts4*)
10534  version_type=linux # correct to gnu/linux during the next big refactor
10535  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10536  soname_spec='$libname$release$shared_ext$major'
10537  shlibpath_var=LD_LIBRARY_PATH
10538  ;;
10539
10540*)
10541  dynamic_linker=no
10542  ;;
10543esac
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10545$as_echo "$dynamic_linker" >&6; }
10546test no = "$dynamic_linker" && can_build_shared=no
10547
10548variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10549if test yes = "$GCC"; then
10550  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10551fi
10552
10553if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10554  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10555fi
10556
10557if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10558  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10559fi
10560
10561# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10562configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10563
10564# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10565func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10566
10567# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10568configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10667$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10668hardcode_action=
10669if test -n "$hardcode_libdir_flag_spec" ||
10670   test -n "$runpath_var" ||
10671   test yes = "$hardcode_automatic"; then
10672
10673  # We can hardcode non-existent directories.
10674  if test no != "$hardcode_direct" &&
10675     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10676     # have to relink, otherwise we might link with an installed library
10677     # when we should be linking with a yet-to-be-installed one
10678     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10679     test no != "$hardcode_minus_L"; then
10680    # Linking always hardcodes the temporary library directory.
10681    hardcode_action=relink
10682  else
10683    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10684    hardcode_action=immediate
10685  fi
10686else
10687  # We cannot hardcode anything, or else we can only hardcode existing
10688  # directories.
10689  hardcode_action=unsupported
10690fi
10691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10692$as_echo "$hardcode_action" >&6; }
10693
10694if test relink = "$hardcode_action" ||
10695   test yes = "$inherit_rpath"; then
10696  # Fast installation is not supported
10697  enable_fast_install=no
10698elif test yes = "$shlibpath_overrides_runpath" ||
10699     test no = "$enable_shared"; then
10700  # Fast installation is not necessary
10701  enable_fast_install=needless
10702fi
10703
10704
10705
10706
10707
10708
10709  if test yes != "$enable_dlopen"; then
10710  enable_dlopen=unknown
10711  enable_dlopen_self=unknown
10712  enable_dlopen_self_static=unknown
10713else
10714  lt_cv_dlopen=no
10715  lt_cv_dlopen_libs=
10716
10717  case $host_os in
10718  beos*)
10719    lt_cv_dlopen=load_add_on
10720    lt_cv_dlopen_libs=
10721    lt_cv_dlopen_self=yes
10722    ;;
10723
10724  mingw* | pw32* | cegcc*)
10725    lt_cv_dlopen=LoadLibrary
10726    lt_cv_dlopen_libs=
10727    ;;
10728
10729  cygwin*)
10730    lt_cv_dlopen=dlopen
10731    lt_cv_dlopen_libs=
10732    ;;
10733
10734  darwin*)
10735    # if libdl is installed we need to link against it
10736    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10737$as_echo_n "checking for dlopen in -ldl... " >&6; }
10738if ${ac_cv_lib_dl_dlopen+:} false; then :
10739  $as_echo_n "(cached) " >&6
10740else
10741  ac_check_lib_save_LIBS=$LIBS
10742LIBS="-ldl  $LIBS"
10743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744/* end confdefs.h.  */
10745
10746/* Override any GCC internal prototype to avoid an error.
10747   Use char because int might match the return type of a GCC
10748   builtin and then its argument prototype would still apply.  */
10749#ifdef __cplusplus
10750extern "C"
10751#endif
10752char dlopen ();
10753int
10754main ()
10755{
10756return dlopen ();
10757  ;
10758  return 0;
10759}
10760_ACEOF
10761if ac_fn_c_try_link "$LINENO"; then :
10762  ac_cv_lib_dl_dlopen=yes
10763else
10764  ac_cv_lib_dl_dlopen=no
10765fi
10766rm -f core conftest.err conftest.$ac_objext \
10767    conftest$ac_exeext conftest.$ac_ext
10768LIBS=$ac_check_lib_save_LIBS
10769fi
10770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10771$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10772if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10773  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10774else
10775
10776    lt_cv_dlopen=dyld
10777    lt_cv_dlopen_libs=
10778    lt_cv_dlopen_self=yes
10779
10780fi
10781
10782    ;;
10783
10784  tpf*)
10785    # Don't try to run any link tests for TPF.  We know it's impossible
10786    # because TPF is a cross-compiler, and we know how we open DSOs.
10787    lt_cv_dlopen=dlopen
10788    lt_cv_dlopen_libs=
10789    lt_cv_dlopen_self=no
10790    ;;
10791
10792  *)
10793    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10794if test "x$ac_cv_func_shl_load" = xyes; then :
10795  lt_cv_dlopen=shl_load
10796else
10797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10798$as_echo_n "checking for shl_load in -ldld... " >&6; }
10799if ${ac_cv_lib_dld_shl_load+:} false; then :
10800  $as_echo_n "(cached) " >&6
10801else
10802  ac_check_lib_save_LIBS=$LIBS
10803LIBS="-ldld  $LIBS"
10804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805/* end confdefs.h.  */
10806
10807/* Override any GCC internal prototype to avoid an error.
10808   Use char because int might match the return type of a GCC
10809   builtin and then its argument prototype would still apply.  */
10810#ifdef __cplusplus
10811extern "C"
10812#endif
10813char shl_load ();
10814int
10815main ()
10816{
10817return shl_load ();
10818  ;
10819  return 0;
10820}
10821_ACEOF
10822if ac_fn_c_try_link "$LINENO"; then :
10823  ac_cv_lib_dld_shl_load=yes
10824else
10825  ac_cv_lib_dld_shl_load=no
10826fi
10827rm -f core conftest.err conftest.$ac_objext \
10828    conftest$ac_exeext conftest.$ac_ext
10829LIBS=$ac_check_lib_save_LIBS
10830fi
10831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10832$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10833if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10834  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
10835else
10836  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10837if test "x$ac_cv_func_dlopen" = xyes; then :
10838  lt_cv_dlopen=dlopen
10839else
10840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10841$as_echo_n "checking for dlopen in -ldl... " >&6; }
10842if ${ac_cv_lib_dl_dlopen+:} false; then :
10843  $as_echo_n "(cached) " >&6
10844else
10845  ac_check_lib_save_LIBS=$LIBS
10846LIBS="-ldl  $LIBS"
10847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848/* end confdefs.h.  */
10849
10850/* Override any GCC internal prototype to avoid an error.
10851   Use char because int might match the return type of a GCC
10852   builtin and then its argument prototype would still apply.  */
10853#ifdef __cplusplus
10854extern "C"
10855#endif
10856char dlopen ();
10857int
10858main ()
10859{
10860return dlopen ();
10861  ;
10862  return 0;
10863}
10864_ACEOF
10865if ac_fn_c_try_link "$LINENO"; then :
10866  ac_cv_lib_dl_dlopen=yes
10867else
10868  ac_cv_lib_dl_dlopen=no
10869fi
10870rm -f core conftest.err conftest.$ac_objext \
10871    conftest$ac_exeext conftest.$ac_ext
10872LIBS=$ac_check_lib_save_LIBS
10873fi
10874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10875$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10876if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10877  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10878else
10879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10880$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10881if ${ac_cv_lib_svld_dlopen+:} false; then :
10882  $as_echo_n "(cached) " >&6
10883else
10884  ac_check_lib_save_LIBS=$LIBS
10885LIBS="-lsvld  $LIBS"
10886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887/* end confdefs.h.  */
10888
10889/* Override any GCC internal prototype to avoid an error.
10890   Use char because int might match the return type of a GCC
10891   builtin and then its argument prototype would still apply.  */
10892#ifdef __cplusplus
10893extern "C"
10894#endif
10895char dlopen ();
10896int
10897main ()
10898{
10899return dlopen ();
10900  ;
10901  return 0;
10902}
10903_ACEOF
10904if ac_fn_c_try_link "$LINENO"; then :
10905  ac_cv_lib_svld_dlopen=yes
10906else
10907  ac_cv_lib_svld_dlopen=no
10908fi
10909rm -f core conftest.err conftest.$ac_objext \
10910    conftest$ac_exeext conftest.$ac_ext
10911LIBS=$ac_check_lib_save_LIBS
10912fi
10913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10914$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10915if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10916  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
10917else
10918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10919$as_echo_n "checking for dld_link in -ldld... " >&6; }
10920if ${ac_cv_lib_dld_dld_link+:} false; then :
10921  $as_echo_n "(cached) " >&6
10922else
10923  ac_check_lib_save_LIBS=$LIBS
10924LIBS="-ldld  $LIBS"
10925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926/* end confdefs.h.  */
10927
10928/* Override any GCC internal prototype to avoid an error.
10929   Use char because int might match the return type of a GCC
10930   builtin and then its argument prototype would still apply.  */
10931#ifdef __cplusplus
10932extern "C"
10933#endif
10934char dld_link ();
10935int
10936main ()
10937{
10938return dld_link ();
10939  ;
10940  return 0;
10941}
10942_ACEOF
10943if ac_fn_c_try_link "$LINENO"; then :
10944  ac_cv_lib_dld_dld_link=yes
10945else
10946  ac_cv_lib_dld_dld_link=no
10947fi
10948rm -f core conftest.err conftest.$ac_objext \
10949    conftest$ac_exeext conftest.$ac_ext
10950LIBS=$ac_check_lib_save_LIBS
10951fi
10952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10953$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10954if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10955  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
10956fi
10957
10958
10959fi
10960
10961
10962fi
10963
10964
10965fi
10966
10967
10968fi
10969
10970
10971fi
10972
10973    ;;
10974  esac
10975
10976  if test no = "$lt_cv_dlopen"; then
10977    enable_dlopen=no
10978  else
10979    enable_dlopen=yes
10980  fi
10981
10982  case $lt_cv_dlopen in
10983  dlopen)
10984    save_CPPFLAGS=$CPPFLAGS
10985    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10986
10987    save_LDFLAGS=$LDFLAGS
10988    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10989
10990    save_LIBS=$LIBS
10991    LIBS="$lt_cv_dlopen_libs $LIBS"
10992
10993    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10994$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10995if ${lt_cv_dlopen_self+:} false; then :
10996  $as_echo_n "(cached) " >&6
10997else
10998  	  if test yes = "$cross_compiling"; then :
10999  lt_cv_dlopen_self=cross
11000else
11001  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11002  lt_status=$lt_dlunknown
11003  cat > conftest.$ac_ext <<_LT_EOF
11004#line $LINENO "configure"
11005#include "confdefs.h"
11006
11007#if HAVE_DLFCN_H
11008#include <dlfcn.h>
11009#endif
11010
11011#include <stdio.h>
11012
11013#ifdef RTLD_GLOBAL
11014#  define LT_DLGLOBAL		RTLD_GLOBAL
11015#else
11016#  ifdef DL_GLOBAL
11017#    define LT_DLGLOBAL		DL_GLOBAL
11018#  else
11019#    define LT_DLGLOBAL		0
11020#  endif
11021#endif
11022
11023/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11024   find out it does not work in some platform. */
11025#ifndef LT_DLLAZY_OR_NOW
11026#  ifdef RTLD_LAZY
11027#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11028#  else
11029#    ifdef DL_LAZY
11030#      define LT_DLLAZY_OR_NOW		DL_LAZY
11031#    else
11032#      ifdef RTLD_NOW
11033#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11034#      else
11035#        ifdef DL_NOW
11036#          define LT_DLLAZY_OR_NOW	DL_NOW
11037#        else
11038#          define LT_DLLAZY_OR_NOW	0
11039#        endif
11040#      endif
11041#    endif
11042#  endif
11043#endif
11044
11045/* When -fvisibility=hidden is used, assume the code has been annotated
11046   correspondingly for the symbols needed.  */
11047#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11048int fnord () __attribute__((visibility("default")));
11049#endif
11050
11051int fnord () { return 42; }
11052int main ()
11053{
11054  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11055  int status = $lt_dlunknown;
11056
11057  if (self)
11058    {
11059      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11060      else
11061        {
11062	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11063          else puts (dlerror ());
11064	}
11065      /* dlclose (self); */
11066    }
11067  else
11068    puts (dlerror ());
11069
11070  return status;
11071}
11072_LT_EOF
11073  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11074  (eval $ac_link) 2>&5
11075  ac_status=$?
11076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11077  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11078    (./conftest; exit; ) >&5 2>/dev/null
11079    lt_status=$?
11080    case x$lt_status in
11081      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11082      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11083      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11084    esac
11085  else :
11086    # compilation failed
11087    lt_cv_dlopen_self=no
11088  fi
11089fi
11090rm -fr conftest*
11091
11092
11093fi
11094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11095$as_echo "$lt_cv_dlopen_self" >&6; }
11096
11097    if test yes = "$lt_cv_dlopen_self"; then
11098      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11099      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11100$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11101if ${lt_cv_dlopen_self_static+:} false; then :
11102  $as_echo_n "(cached) " >&6
11103else
11104  	  if test yes = "$cross_compiling"; then :
11105  lt_cv_dlopen_self_static=cross
11106else
11107  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11108  lt_status=$lt_dlunknown
11109  cat > conftest.$ac_ext <<_LT_EOF
11110#line $LINENO "configure"
11111#include "confdefs.h"
11112
11113#if HAVE_DLFCN_H
11114#include <dlfcn.h>
11115#endif
11116
11117#include <stdio.h>
11118
11119#ifdef RTLD_GLOBAL
11120#  define LT_DLGLOBAL		RTLD_GLOBAL
11121#else
11122#  ifdef DL_GLOBAL
11123#    define LT_DLGLOBAL		DL_GLOBAL
11124#  else
11125#    define LT_DLGLOBAL		0
11126#  endif
11127#endif
11128
11129/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11130   find out it does not work in some platform. */
11131#ifndef LT_DLLAZY_OR_NOW
11132#  ifdef RTLD_LAZY
11133#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11134#  else
11135#    ifdef DL_LAZY
11136#      define LT_DLLAZY_OR_NOW		DL_LAZY
11137#    else
11138#      ifdef RTLD_NOW
11139#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11140#      else
11141#        ifdef DL_NOW
11142#          define LT_DLLAZY_OR_NOW	DL_NOW
11143#        else
11144#          define LT_DLLAZY_OR_NOW	0
11145#        endif
11146#      endif
11147#    endif
11148#  endif
11149#endif
11150
11151/* When -fvisibility=hidden is used, assume the code has been annotated
11152   correspondingly for the symbols needed.  */
11153#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11154int fnord () __attribute__((visibility("default")));
11155#endif
11156
11157int fnord () { return 42; }
11158int main ()
11159{
11160  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11161  int status = $lt_dlunknown;
11162
11163  if (self)
11164    {
11165      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11166      else
11167        {
11168	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11169          else puts (dlerror ());
11170	}
11171      /* dlclose (self); */
11172    }
11173  else
11174    puts (dlerror ());
11175
11176  return status;
11177}
11178_LT_EOF
11179  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11180  (eval $ac_link) 2>&5
11181  ac_status=$?
11182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11183  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11184    (./conftest; exit; ) >&5 2>/dev/null
11185    lt_status=$?
11186    case x$lt_status in
11187      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11188      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11189      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11190    esac
11191  else :
11192    # compilation failed
11193    lt_cv_dlopen_self_static=no
11194  fi
11195fi
11196rm -fr conftest*
11197
11198
11199fi
11200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11201$as_echo "$lt_cv_dlopen_self_static" >&6; }
11202    fi
11203
11204    CPPFLAGS=$save_CPPFLAGS
11205    LDFLAGS=$save_LDFLAGS
11206    LIBS=$save_LIBS
11207    ;;
11208  esac
11209
11210  case $lt_cv_dlopen_self in
11211  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11212  *) enable_dlopen_self=unknown ;;
11213  esac
11214
11215  case $lt_cv_dlopen_self_static in
11216  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11217  *) enable_dlopen_self_static=unknown ;;
11218  esac
11219fi
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237striplib=
11238old_striplib=
11239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11240$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11241if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11242  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11243  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11245$as_echo "yes" >&6; }
11246else
11247# FIXME - insert some real tests, host_os isn't really good enough
11248  case $host_os in
11249  darwin*)
11250    if test -n "$STRIP"; then
11251      striplib="$STRIP -x"
11252      old_striplib="$STRIP -S"
11253      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11254$as_echo "yes" >&6; }
11255    else
11256      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257$as_echo "no" >&6; }
11258    fi
11259    ;;
11260  *)
11261    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262$as_echo "no" >&6; }
11263    ;;
11264  esac
11265fi
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278  # Report what library types will actually be built
11279  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11280$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11282$as_echo "$can_build_shared" >&6; }
11283
11284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11285$as_echo_n "checking whether to build shared libraries... " >&6; }
11286  test no = "$can_build_shared" && enable_shared=no
11287
11288  # On AIX, shared libraries and static libraries use the same namespace, and
11289  # are all built from PIC.
11290  case $host_os in
11291  aix3*)
11292    test yes = "$enable_shared" && enable_static=no
11293    if test -n "$RANLIB"; then
11294      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11295      postinstall_cmds='$RANLIB $lib'
11296    fi
11297    ;;
11298
11299  aix[4-9]*)
11300    if test ia64 != "$host_cpu"; then
11301      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11302      yes,aix,yes) ;;			# shared object as lib.so file only
11303      yes,svr4,*) ;;			# shared object as lib.so archive member only
11304      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
11305      esac
11306    fi
11307    ;;
11308  esac
11309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11310$as_echo "$enable_shared" >&6; }
11311
11312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11313$as_echo_n "checking whether to build static libraries... " >&6; }
11314  # Make sure either enable_shared or enable_static is yes.
11315  test yes = "$enable_shared" || enable_static=yes
11316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11317$as_echo "$enable_static" >&6; }
11318
11319
11320
11321
11322fi
11323ac_ext=c
11324ac_cpp='$CPP $CPPFLAGS'
11325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11327ac_compiler_gnu=$ac_cv_c_compiler_gnu
11328
11329CC=$lt_save_CC
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345        ac_config_commands="$ac_config_commands libtool"
11346
11347
11348
11349
11350# Only expand once:
11351
11352
11353ac_config_headers="$ac_config_headers config.h"
11354
11355am__api_version='1.15'
11356
11357# Find a good install program.  We prefer a C program (faster),
11358# so one script is as good as another.  But avoid the broken or
11359# incompatible versions:
11360# SysV /etc/install, /usr/sbin/install
11361# SunOS /usr/etc/install
11362# IRIX /sbin/install
11363# AIX /bin/install
11364# AmigaOS /C/install, which installs bootblocks on floppy discs
11365# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11366# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11367# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11368# OS/2's system install, which has a completely different semantic
11369# ./install, which can be erroneously created by make from ./install.sh.
11370# Reject install programs that cannot install multiple files.
11371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11372$as_echo_n "checking for a BSD-compatible install... " >&6; }
11373if test -z "$INSTALL"; then
11374if ${ac_cv_path_install+:} false; then :
11375  $as_echo_n "(cached) " >&6
11376else
11377  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378for as_dir in $PATH
11379do
11380  IFS=$as_save_IFS
11381  test -z "$as_dir" && as_dir=.
11382    # Account for people who put trailing slashes in PATH elements.
11383case $as_dir/ in #((
11384  ./ | .// | /[cC]/* | \
11385  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11386  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11387  /usr/ucb/* ) ;;
11388  *)
11389    # OSF1 and SCO ODT 3.0 have their own names for install.
11390    # Don't use installbsd from OSF since it installs stuff as root
11391    # by default.
11392    for ac_prog in ginstall scoinst install; do
11393      for ac_exec_ext in '' $ac_executable_extensions; do
11394	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11395	  if test $ac_prog = install &&
11396	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11397	    # AIX install.  It has an incompatible calling convention.
11398	    :
11399	  elif test $ac_prog = install &&
11400	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11401	    # program-specific install script used by HP pwplus--don't use.
11402	    :
11403	  else
11404	    rm -rf conftest.one conftest.two conftest.dir
11405	    echo one > conftest.one
11406	    echo two > conftest.two
11407	    mkdir conftest.dir
11408	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11409	      test -s conftest.one && test -s conftest.two &&
11410	      test -s conftest.dir/conftest.one &&
11411	      test -s conftest.dir/conftest.two
11412	    then
11413	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11414	      break 3
11415	    fi
11416	  fi
11417	fi
11418      done
11419    done
11420    ;;
11421esac
11422
11423  done
11424IFS=$as_save_IFS
11425
11426rm -rf conftest.one conftest.two conftest.dir
11427
11428fi
11429  if test "${ac_cv_path_install+set}" = set; then
11430    INSTALL=$ac_cv_path_install
11431  else
11432    # As a last resort, use the slow shell script.  Don't cache a
11433    # value for INSTALL within a source directory, because that will
11434    # break other packages using the cache if that directory is
11435    # removed, or if the value is a relative name.
11436    INSTALL=$ac_install_sh
11437  fi
11438fi
11439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11440$as_echo "$INSTALL" >&6; }
11441
11442# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11443# It thinks the first close brace ends the variable substitution.
11444test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11445
11446test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11447
11448test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11449
11450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11451$as_echo_n "checking whether build environment is sane... " >&6; }
11452# Reject unsafe characters in $srcdir or the absolute working directory
11453# name.  Accept space and tab only in the latter.
11454am_lf='
11455'
11456case `pwd` in
11457  *[\\\"\#\$\&\'\`$am_lf]*)
11458    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
11459esac
11460case $srcdir in
11461  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
11462    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
11463esac
11464
11465# Do 'set' in a subshell so we don't clobber the current shell's
11466# arguments.  Must try -L first in case configure is actually a
11467# symlink; some systems play weird games with the mod time of symlinks
11468# (eg FreeBSD returns the mod time of the symlink's containing
11469# directory).
11470if (
11471   am_has_slept=no
11472   for am_try in 1 2; do
11473     echo "timestamp, slept: $am_has_slept" > conftest.file
11474     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11475     if test "$*" = "X"; then
11476	# -L didn't work.
11477	set X `ls -t "$srcdir/configure" conftest.file`
11478     fi
11479     if test "$*" != "X $srcdir/configure conftest.file" \
11480	&& test "$*" != "X conftest.file $srcdir/configure"; then
11481
11482	# If neither matched, then we have a broken ls.  This can happen
11483	# if, for instance, CONFIG_SHELL is bash and it inherits a
11484	# broken ls alias from the environment.  This has actually
11485	# happened.  Such a system could not be considered "sane".
11486	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
11487  alias in your environment" "$LINENO" 5
11488     fi
11489     if test "$2" = conftest.file || test $am_try -eq 2; then
11490       break
11491     fi
11492     # Just in case.
11493     sleep 1
11494     am_has_slept=yes
11495   done
11496   test "$2" = conftest.file
11497   )
11498then
11499   # Ok.
11500   :
11501else
11502   as_fn_error $? "newly created file is older than distributed files!
11503Check your system clock" "$LINENO" 5
11504fi
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11506$as_echo "yes" >&6; }
11507# If we didn't sleep, we still need to ensure time stamps of config.status and
11508# generated files are strictly newer.
11509am_sleep_pid=
11510if grep 'slept: no' conftest.file >/dev/null 2>&1; then
11511  ( sleep 1 ) &
11512  am_sleep_pid=$!
11513fi
11514
11515rm -f conftest.file
11516
11517test "$program_prefix" != NONE &&
11518  program_transform_name="s&^&$program_prefix&;$program_transform_name"
11519# Use a double $ so make ignores it.
11520test "$program_suffix" != NONE &&
11521  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11522# Double any \ or $.
11523# By default was `s,x,x', remove it if useless.
11524ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11525program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11526
11527if test x"${MISSING+set}" != xset; then
11528  case $am_aux_dir in
11529  *\ * | *\	*)
11530    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11531  *)
11532    MISSING="\${SHELL} $am_aux_dir/missing" ;;
11533  esac
11534fi
11535# Use eval to expand $SHELL
11536if eval "$MISSING --is-lightweight"; then
11537  am_missing_run="$MISSING "
11538else
11539  am_missing_run=
11540  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
11541$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
11542fi
11543
11544if test x"${install_sh+set}" != xset; then
11545  case $am_aux_dir in
11546  *\ * | *\	*)
11547    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11548  *)
11549    install_sh="\${SHELL} $am_aux_dir/install-sh"
11550  esac
11551fi
11552
11553# Installed binaries are usually stripped using 'strip' when the user
11554# run "make install-strip".  However 'strip' might not be the right
11555# tool to use in cross-compilation environments, therefore Automake
11556# will honor the 'STRIP' environment variable to overrule this program.
11557if test "$cross_compiling" != no; then
11558  if test -n "$ac_tool_prefix"; then
11559  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11560set dummy ${ac_tool_prefix}strip; ac_word=$2
11561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562$as_echo_n "checking for $ac_word... " >&6; }
11563if ${ac_cv_prog_STRIP+:} false; then :
11564  $as_echo_n "(cached) " >&6
11565else
11566  if test -n "$STRIP"; then
11567  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11568else
11569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11570for as_dir in $PATH
11571do
11572  IFS=$as_save_IFS
11573  test -z "$as_dir" && as_dir=.
11574    for ac_exec_ext in '' $ac_executable_extensions; do
11575  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11576    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11578    break 2
11579  fi
11580done
11581  done
11582IFS=$as_save_IFS
11583
11584fi
11585fi
11586STRIP=$ac_cv_prog_STRIP
11587if test -n "$STRIP"; then
11588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11589$as_echo "$STRIP" >&6; }
11590else
11591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592$as_echo "no" >&6; }
11593fi
11594
11595
11596fi
11597if test -z "$ac_cv_prog_STRIP"; then
11598  ac_ct_STRIP=$STRIP
11599  # Extract the first word of "strip", so it can be a program name with args.
11600set dummy strip; ac_word=$2
11601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11602$as_echo_n "checking for $ac_word... " >&6; }
11603if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11604  $as_echo_n "(cached) " >&6
11605else
11606  if test -n "$ac_ct_STRIP"; then
11607  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11608else
11609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11610for as_dir in $PATH
11611do
11612  IFS=$as_save_IFS
11613  test -z "$as_dir" && as_dir=.
11614    for ac_exec_ext in '' $ac_executable_extensions; do
11615  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11616    ac_cv_prog_ac_ct_STRIP="strip"
11617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11618    break 2
11619  fi
11620done
11621  done
11622IFS=$as_save_IFS
11623
11624fi
11625fi
11626ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11627if test -n "$ac_ct_STRIP"; then
11628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11629$as_echo "$ac_ct_STRIP" >&6; }
11630else
11631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11632$as_echo "no" >&6; }
11633fi
11634
11635  if test "x$ac_ct_STRIP" = x; then
11636    STRIP=":"
11637  else
11638    case $cross_compiling:$ac_tool_warned in
11639yes:)
11640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11642ac_tool_warned=yes ;;
11643esac
11644    STRIP=$ac_ct_STRIP
11645  fi
11646else
11647  STRIP="$ac_cv_prog_STRIP"
11648fi
11649
11650fi
11651INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11652
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11654$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11655if test -z "$MKDIR_P"; then
11656  if ${ac_cv_path_mkdir+:} false; then :
11657  $as_echo_n "(cached) " >&6
11658else
11659  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11661do
11662  IFS=$as_save_IFS
11663  test -z "$as_dir" && as_dir=.
11664    for ac_prog in mkdir gmkdir; do
11665	 for ac_exec_ext in '' $ac_executable_extensions; do
11666	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
11667	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11668	     'mkdir (GNU coreutils) '* | \
11669	     'mkdir (coreutils) '* | \
11670	     'mkdir (fileutils) '4.1*)
11671	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11672	       break 3;;
11673	   esac
11674	 done
11675       done
11676  done
11677IFS=$as_save_IFS
11678
11679fi
11680
11681  test -d ./--version && rmdir ./--version
11682  if test "${ac_cv_path_mkdir+set}" = set; then
11683    MKDIR_P="$ac_cv_path_mkdir -p"
11684  else
11685    # As a last resort, use the slow shell script.  Don't cache a
11686    # value for MKDIR_P within a source directory, because that will
11687    # break other packages using the cache if that directory is
11688    # removed, or if the value is a relative name.
11689    MKDIR_P="$ac_install_sh -d"
11690  fi
11691fi
11692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11693$as_echo "$MKDIR_P" >&6; }
11694
11695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11696$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11697set x ${MAKE-make}
11698ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11699if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11700  $as_echo_n "(cached) " >&6
11701else
11702  cat >conftest.make <<\_ACEOF
11703SHELL = /bin/sh
11704all:
11705	@echo '@@@%%%=$(MAKE)=@@@%%%'
11706_ACEOF
11707# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11708case `${MAKE-make} -f conftest.make 2>/dev/null` in
11709  *@@@%%%=?*=@@@%%%*)
11710    eval ac_cv_prog_make_${ac_make}_set=yes;;
11711  *)
11712    eval ac_cv_prog_make_${ac_make}_set=no;;
11713esac
11714rm -f conftest.make
11715fi
11716if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11718$as_echo "yes" >&6; }
11719  SET_MAKE=
11720else
11721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722$as_echo "no" >&6; }
11723  SET_MAKE="MAKE=${MAKE-make}"
11724fi
11725
11726rm -rf .tst 2>/dev/null
11727mkdir .tst 2>/dev/null
11728if test -d .tst; then
11729  am__leading_dot=.
11730else
11731  am__leading_dot=_
11732fi
11733rmdir .tst 2>/dev/null
11734
11735DEPDIR="${am__leading_dot}deps"
11736
11737ac_config_commands="$ac_config_commands depfiles"
11738
11739
11740am_make=${MAKE-make}
11741cat > confinc << 'END'
11742am__doit:
11743	@echo this is the am__doit target
11744.PHONY: am__doit
11745END
11746# If we don't find an include directive, just comment out the code.
11747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11748$as_echo_n "checking for style of include used by $am_make... " >&6; }
11749am__include="#"
11750am__quote=
11751_am_result=none
11752# First try GNU make style include.
11753echo "include confinc" > confmf
11754# Ignore all kinds of additional output from 'make'.
11755case `$am_make -s -f confmf 2> /dev/null` in #(
11756*the\ am__doit\ target*)
11757  am__include=include
11758  am__quote=
11759  _am_result=GNU
11760  ;;
11761esac
11762# Now try BSD make style include.
11763if test "$am__include" = "#"; then
11764   echo '.include "confinc"' > confmf
11765   case `$am_make -s -f confmf 2> /dev/null` in #(
11766   *the\ am__doit\ target*)
11767     am__include=.include
11768     am__quote="\""
11769     _am_result=BSD
11770     ;;
11771   esac
11772fi
11773
11774
11775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11776$as_echo "$_am_result" >&6; }
11777rm -f confinc confmf
11778
11779# Check whether --enable-dependency-tracking was given.
11780if test "${enable_dependency_tracking+set}" = set; then :
11781  enableval=$enable_dependency_tracking;
11782fi
11783
11784if test "x$enable_dependency_tracking" != xno; then
11785  am_depcomp="$ac_aux_dir/depcomp"
11786  AMDEPBACKSLASH='\'
11787  am__nodep='_no'
11788fi
11789 if test "x$enable_dependency_tracking" != xno; then
11790  AMDEP_TRUE=
11791  AMDEP_FALSE='#'
11792else
11793  AMDEP_TRUE='#'
11794  AMDEP_FALSE=
11795fi
11796
11797
11798# Check whether --enable-silent-rules was given.
11799if test "${enable_silent_rules+set}" = set; then :
11800  enableval=$enable_silent_rules;
11801fi
11802
11803case $enable_silent_rules in # (((
11804  yes) AM_DEFAULT_VERBOSITY=0;;
11805   no) AM_DEFAULT_VERBOSITY=1;;
11806    *) AM_DEFAULT_VERBOSITY=1;;
11807esac
11808am_make=${MAKE-make}
11809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11810$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11811if ${am_cv_make_support_nested_variables+:} false; then :
11812  $as_echo_n "(cached) " >&6
11813else
11814  if $as_echo 'TRUE=$(BAR$(V))
11815BAR0=false
11816BAR1=true
11817V=1
11818am__doit:
11819	@$(TRUE)
11820.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11821  am_cv_make_support_nested_variables=yes
11822else
11823  am_cv_make_support_nested_variables=no
11824fi
11825fi
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11827$as_echo "$am_cv_make_support_nested_variables" >&6; }
11828if test $am_cv_make_support_nested_variables = yes; then
11829    AM_V='$(V)'
11830  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11831else
11832  AM_V=$AM_DEFAULT_VERBOSITY
11833  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11834fi
11835AM_BACKSLASH='\'
11836
11837if test "`cd $srcdir && pwd`" != "`pwd`"; then
11838  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11839  # is not polluted with repeated "-I."
11840  am__isrc=' -I$(srcdir)'
11841  # test to see if srcdir already configured
11842  if test -f $srcdir/config.status; then
11843    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11844  fi
11845fi
11846
11847# test whether we have cygpath
11848if test -z "$CYGPATH_W"; then
11849  if (cygpath --version) >/dev/null 2>/dev/null; then
11850    CYGPATH_W='cygpath -w'
11851  else
11852    CYGPATH_W=echo
11853  fi
11854fi
11855
11856
11857# Define the identity of the package.
11858 PACKAGE='libdsk'
11859 VERSION='1.4.2'
11860
11861
11862cat >>confdefs.h <<_ACEOF
11863#define PACKAGE "$PACKAGE"
11864_ACEOF
11865
11866
11867cat >>confdefs.h <<_ACEOF
11868#define VERSION "$VERSION"
11869_ACEOF
11870
11871# Some tools Automake needs.
11872
11873ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11874
11875
11876AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11877
11878
11879AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11880
11881
11882AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11883
11884
11885MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11886
11887# For better backward compatibility.  To be removed once Automake 1.9.x
11888# dies out for good.  For more background, see:
11889# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
11890# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
11891mkdir_p='$(MKDIR_P)'
11892
11893# We need awk for the "check" target (and possibly the TAP driver).  The
11894# system "awk" is bad on some platforms.
11895# Always define AMTAR for backward compatibility.  Yes, it's still used
11896# in the wild :-(  We should find a proper way to deprecate it ...
11897AMTAR='$${TAR-tar}'
11898
11899
11900# We'll loop over all known methods to create a tar archive until one works.
11901_am_tools='gnutar  pax cpio none'
11902
11903am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
11904
11905
11906
11907
11908
11909depcc="$CC"   am_compiler_list=
11910
11911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11912$as_echo_n "checking dependency style of $depcc... " >&6; }
11913if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11914  $as_echo_n "(cached) " >&6
11915else
11916  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11917  # We make a subdir and do the tests there.  Otherwise we can end up
11918  # making bogus files that we don't know about and never remove.  For
11919  # instance it was reported that on HP-UX the gcc test will end up
11920  # making a dummy file named 'D' -- because '-MD' means "put the output
11921  # in D".
11922  rm -rf conftest.dir
11923  mkdir conftest.dir
11924  # Copy depcomp to subdir because otherwise we won't find it if we're
11925  # using a relative directory.
11926  cp "$am_depcomp" conftest.dir
11927  cd conftest.dir
11928  # We will build objects and dependencies in a subdirectory because
11929  # it helps to detect inapplicable dependency modes.  For instance
11930  # both Tru64's cc and ICC support -MD to output dependencies as a
11931  # side effect of compilation, but ICC will put the dependencies in
11932  # the current directory while Tru64 will put them in the object
11933  # directory.
11934  mkdir sub
11935
11936  am_cv_CC_dependencies_compiler_type=none
11937  if test "$am_compiler_list" = ""; then
11938     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11939  fi
11940  am__universal=false
11941  case " $depcc " in #(
11942     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11943     esac
11944
11945  for depmode in $am_compiler_list; do
11946    # Setup a source with many dependencies, because some compilers
11947    # like to wrap large dependency lists on column 80 (with \), and
11948    # we should not choose a depcomp mode which is confused by this.
11949    #
11950    # We need to recreate these files for each test, as the compiler may
11951    # overwrite some of them when testing with obscure command lines.
11952    # This happens at least with the AIX C compiler.
11953    : > sub/conftest.c
11954    for i in 1 2 3 4 5 6; do
11955      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11956      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11957      # Solaris 10 /bin/sh.
11958      echo '/* dummy */' > sub/conftst$i.h
11959    done
11960    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11961
11962    # We check with '-c' and '-o' for the sake of the "dashmstdout"
11963    # mode.  It turns out that the SunPro C++ compiler does not properly
11964    # handle '-M -o', and we need to detect this.  Also, some Intel
11965    # versions had trouble with output in subdirs.
11966    am__obj=sub/conftest.${OBJEXT-o}
11967    am__minus_obj="-o $am__obj"
11968    case $depmode in
11969    gcc)
11970      # This depmode causes a compiler race in universal mode.
11971      test "$am__universal" = false || continue
11972      ;;
11973    nosideeffect)
11974      # After this tag, mechanisms are not by side-effect, so they'll
11975      # only be used when explicitly requested.
11976      if test "x$enable_dependency_tracking" = xyes; then
11977	continue
11978      else
11979	break
11980      fi
11981      ;;
11982    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11983      # This compiler won't grok '-c -o', but also, the minuso test has
11984      # not run yet.  These depmodes are late enough in the game, and
11985      # so weak that their functioning should not be impacted.
11986      am__obj=conftest.${OBJEXT-o}
11987      am__minus_obj=
11988      ;;
11989    none) break ;;
11990    esac
11991    if depmode=$depmode \
11992       source=sub/conftest.c object=$am__obj \
11993       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11994       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11995         >/dev/null 2>conftest.err &&
11996       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11997       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11998       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11999       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12000      # icc doesn't choke on unknown options, it will just issue warnings
12001      # or remarks (even with -Werror).  So we grep stderr for any message
12002      # that says an option was ignored or not supported.
12003      # When given -MP, icc 7.0 and 7.1 complain thusly:
12004      #   icc: Command line warning: ignoring option '-M'; no argument required
12005      # The diagnosis changed in icc 8.0:
12006      #   icc: Command line remark: option '-MP' not supported
12007      if (grep 'ignoring option' conftest.err ||
12008          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12009        am_cv_CC_dependencies_compiler_type=$depmode
12010        break
12011      fi
12012    fi
12013  done
12014
12015  cd ..
12016  rm -rf conftest.dir
12017else
12018  am_cv_CC_dependencies_compiler_type=none
12019fi
12020
12021fi
12022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12023$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12024CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12025
12026 if
12027  test "x$enable_dependency_tracking" != xno \
12028  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12029  am__fastdepCC_TRUE=
12030  am__fastdepCC_FALSE='#'
12031else
12032  am__fastdepCC_TRUE='#'
12033  am__fastdepCC_FALSE=
12034fi
12035
12036
12037
12038# POSIX will say in a future version that running "rm -f" with no argument
12039# is OK; and we want to be able to make that assumption in our Makefile
12040# recipes.  So use an aggressive probe to check that the usage we want is
12041# actually supported "in the wild" to an acceptable degree.
12042# See automake bug#10828.
12043# To make any issue more visible, cause the running configure to be aborted
12044# by default if the 'rm' program in use doesn't match our expectations; the
12045# user can still override this though.
12046if rm -f && rm -fr && rm -rf; then : OK; else
12047  cat >&2 <<'END'
12048Oops!
12049
12050Your 'rm' program seems unable to run without file operands specified
12051on the command line, even when the '-f' option is present.  This is contrary
12052to the behaviour of most rm programs out there, and not conforming with
12053the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
12054
12055Please tell bug-automake@gnu.org about your system, including the value
12056of your $PATH and any error possibly output before this message.  This
12057can help us improve future automake versions.
12058
12059END
12060  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
12061    echo 'Configuration will proceed anyway, since you have set the' >&2
12062    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
12063    echo >&2
12064  else
12065    cat >&2 <<'END'
12066Aborting the configuration process, to ensure you take notice of the issue.
12067
12068You can download and install GNU coreutils to get an 'rm' implementation
12069that behaves properly: <http://www.gnu.org/software/coreutils/>.
12070
12071If you want to complete the configuration process using your problematic
12072'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
12073to "yes", and re-run configure.
12074
12075END
12076    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
12077  fi
12078fi
12079
12080
12081
12082# Check whether --with-jni was given.
12083if test "${with_jni+set}" = set; then :
12084  withval=$with_jni;
12085else
12086  with_jni=no
12087fi
12088
12089
12090# Check whether --with-zlib was given.
12091if test "${with_zlib+set}" = set; then :
12092  withval=$with_zlib;
12093else
12094  with_zlib=yes
12095fi
12096
12097
12098# Check whether --with-bzlib was given.
12099if test "${with_bzlib+set}" = set; then :
12100  withval=$with_bzlib;
12101else
12102  with_bzlib=yes
12103fi
12104
12105# Check whether --enable-floppy was given.
12106if test "${enable_floppy+set}" = set; then :
12107  enableval=$enable_floppy;
12108else
12109  enable_floppy=yes
12110fi
12111
12112
12113
12114# Check whether --with-java-prefix was given.
12115if test "${with_java_prefix+set}" = set; then :
12116  withval=$with_java_prefix;
12117fi
12118
12119
12120# Check whether --with-javac-flags was given.
12121if test "${with_javac_flags+set}" = set; then :
12122  withval=$with_javac_flags;
12123fi
12124
12125
12126# Check whether --with-java-flags was given.
12127if test "${with_java_flags+set}" = set; then :
12128  withval=$with_java_flags;
12129fi
12130
12131JAVAPREFIX=$with_java_prefix
12132JAVACFLAGS=$with_javac_flags
12133JAVAFLAGS=$with_java_flags
12134
12135if test x$enable_floppy = xyes; then
12136    :
12137else
12138    CFLAGS="$CFLAGS -DDISABLE_FLOPPY"
12139fi
12140
12141
12142ac_ext=c
12143ac_cpp='$CPP $CPPFLAGS'
12144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12146ac_compiler_gnu=$ac_cv_c_compiler_gnu
12147if test -n "$ac_tool_prefix"; then
12148  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12149set dummy ${ac_tool_prefix}gcc; ac_word=$2
12150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12151$as_echo_n "checking for $ac_word... " >&6; }
12152if ${ac_cv_prog_CC+:} false; then :
12153  $as_echo_n "(cached) " >&6
12154else
12155  if test -n "$CC"; then
12156  ac_cv_prog_CC="$CC" # Let the user override the test.
12157else
12158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159for as_dir in $PATH
12160do
12161  IFS=$as_save_IFS
12162  test -z "$as_dir" && as_dir=.
12163    for ac_exec_ext in '' $ac_executable_extensions; do
12164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12165    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12167    break 2
12168  fi
12169done
12170  done
12171IFS=$as_save_IFS
12172
12173fi
12174fi
12175CC=$ac_cv_prog_CC
12176if test -n "$CC"; then
12177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12178$as_echo "$CC" >&6; }
12179else
12180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181$as_echo "no" >&6; }
12182fi
12183
12184
12185fi
12186if test -z "$ac_cv_prog_CC"; then
12187  ac_ct_CC=$CC
12188  # Extract the first word of "gcc", so it can be a program name with args.
12189set dummy gcc; ac_word=$2
12190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12191$as_echo_n "checking for $ac_word... " >&6; }
12192if ${ac_cv_prog_ac_ct_CC+:} false; then :
12193  $as_echo_n "(cached) " >&6
12194else
12195  if test -n "$ac_ct_CC"; then
12196  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12197else
12198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12199for as_dir in $PATH
12200do
12201  IFS=$as_save_IFS
12202  test -z "$as_dir" && as_dir=.
12203    for ac_exec_ext in '' $ac_executable_extensions; do
12204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12205    ac_cv_prog_ac_ct_CC="gcc"
12206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12207    break 2
12208  fi
12209done
12210  done
12211IFS=$as_save_IFS
12212
12213fi
12214fi
12215ac_ct_CC=$ac_cv_prog_ac_ct_CC
12216if test -n "$ac_ct_CC"; then
12217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12218$as_echo "$ac_ct_CC" >&6; }
12219else
12220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12221$as_echo "no" >&6; }
12222fi
12223
12224  if test "x$ac_ct_CC" = x; then
12225    CC=""
12226  else
12227    case $cross_compiling:$ac_tool_warned in
12228yes:)
12229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12231ac_tool_warned=yes ;;
12232esac
12233    CC=$ac_ct_CC
12234  fi
12235else
12236  CC="$ac_cv_prog_CC"
12237fi
12238
12239if test -z "$CC"; then
12240          if test -n "$ac_tool_prefix"; then
12241    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12242set dummy ${ac_tool_prefix}cc; ac_word=$2
12243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244$as_echo_n "checking for $ac_word... " >&6; }
12245if ${ac_cv_prog_CC+:} false; then :
12246  $as_echo_n "(cached) " >&6
12247else
12248  if test -n "$CC"; then
12249  ac_cv_prog_CC="$CC" # Let the user override the test.
12250else
12251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252for as_dir in $PATH
12253do
12254  IFS=$as_save_IFS
12255  test -z "$as_dir" && as_dir=.
12256    for ac_exec_ext in '' $ac_executable_extensions; do
12257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12258    ac_cv_prog_CC="${ac_tool_prefix}cc"
12259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12260    break 2
12261  fi
12262done
12263  done
12264IFS=$as_save_IFS
12265
12266fi
12267fi
12268CC=$ac_cv_prog_CC
12269if test -n "$CC"; then
12270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12271$as_echo "$CC" >&6; }
12272else
12273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274$as_echo "no" >&6; }
12275fi
12276
12277
12278  fi
12279fi
12280if test -z "$CC"; then
12281  # Extract the first word of "cc", so it can be a program name with args.
12282set dummy cc; ac_word=$2
12283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12284$as_echo_n "checking for $ac_word... " >&6; }
12285if ${ac_cv_prog_CC+:} false; then :
12286  $as_echo_n "(cached) " >&6
12287else
12288  if test -n "$CC"; then
12289  ac_cv_prog_CC="$CC" # Let the user override the test.
12290else
12291  ac_prog_rejected=no
12292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293for as_dir in $PATH
12294do
12295  IFS=$as_save_IFS
12296  test -z "$as_dir" && as_dir=.
12297    for ac_exec_ext in '' $ac_executable_extensions; do
12298  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12299    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12300       ac_prog_rejected=yes
12301       continue
12302     fi
12303    ac_cv_prog_CC="cc"
12304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12305    break 2
12306  fi
12307done
12308  done
12309IFS=$as_save_IFS
12310
12311if test $ac_prog_rejected = yes; then
12312  # We found a bogon in the path, so make sure we never use it.
12313  set dummy $ac_cv_prog_CC
12314  shift
12315  if test $# != 0; then
12316    # We chose a different compiler from the bogus one.
12317    # However, it has the same basename, so the bogon will be chosen
12318    # first if we set CC to just the basename; use the full file name.
12319    shift
12320    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12321  fi
12322fi
12323fi
12324fi
12325CC=$ac_cv_prog_CC
12326if test -n "$CC"; then
12327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12328$as_echo "$CC" >&6; }
12329else
12330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331$as_echo "no" >&6; }
12332fi
12333
12334
12335fi
12336if test -z "$CC"; then
12337  if test -n "$ac_tool_prefix"; then
12338  for ac_prog in cl.exe
12339  do
12340    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12341set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343$as_echo_n "checking for $ac_word... " >&6; }
12344if ${ac_cv_prog_CC+:} false; then :
12345  $as_echo_n "(cached) " >&6
12346else
12347  if test -n "$CC"; then
12348  ac_cv_prog_CC="$CC" # Let the user override the test.
12349else
12350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351for as_dir in $PATH
12352do
12353  IFS=$as_save_IFS
12354  test -z "$as_dir" && as_dir=.
12355    for ac_exec_ext in '' $ac_executable_extensions; do
12356  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12357    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12359    break 2
12360  fi
12361done
12362  done
12363IFS=$as_save_IFS
12364
12365fi
12366fi
12367CC=$ac_cv_prog_CC
12368if test -n "$CC"; then
12369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12370$as_echo "$CC" >&6; }
12371else
12372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373$as_echo "no" >&6; }
12374fi
12375
12376
12377    test -n "$CC" && break
12378  done
12379fi
12380if test -z "$CC"; then
12381  ac_ct_CC=$CC
12382  for ac_prog in cl.exe
12383do
12384  # Extract the first word of "$ac_prog", so it can be a program name with args.
12385set dummy $ac_prog; ac_word=$2
12386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12387$as_echo_n "checking for $ac_word... " >&6; }
12388if ${ac_cv_prog_ac_ct_CC+:} false; then :
12389  $as_echo_n "(cached) " >&6
12390else
12391  if test -n "$ac_ct_CC"; then
12392  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12393else
12394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12395for as_dir in $PATH
12396do
12397  IFS=$as_save_IFS
12398  test -z "$as_dir" && as_dir=.
12399    for ac_exec_ext in '' $ac_executable_extensions; do
12400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12401    ac_cv_prog_ac_ct_CC="$ac_prog"
12402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12403    break 2
12404  fi
12405done
12406  done
12407IFS=$as_save_IFS
12408
12409fi
12410fi
12411ac_ct_CC=$ac_cv_prog_ac_ct_CC
12412if test -n "$ac_ct_CC"; then
12413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12414$as_echo "$ac_ct_CC" >&6; }
12415else
12416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417$as_echo "no" >&6; }
12418fi
12419
12420
12421  test -n "$ac_ct_CC" && break
12422done
12423
12424  if test "x$ac_ct_CC" = x; then
12425    CC=""
12426  else
12427    case $cross_compiling:$ac_tool_warned in
12428yes:)
12429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12431ac_tool_warned=yes ;;
12432esac
12433    CC=$ac_ct_CC
12434  fi
12435fi
12436
12437fi
12438
12439
12440test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12442as_fn_error $? "no acceptable C compiler found in \$PATH
12443See \`config.log' for more details" "$LINENO" 5; }
12444
12445# Provide some information about the compiler.
12446$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12447set X $ac_compile
12448ac_compiler=$2
12449for ac_option in --version -v -V -qversion; do
12450  { { ac_try="$ac_compiler $ac_option >&5"
12451case "(($ac_try" in
12452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12453  *) ac_try_echo=$ac_try;;
12454esac
12455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12456$as_echo "$ac_try_echo"; } >&5
12457  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12458  ac_status=$?
12459  if test -s conftest.err; then
12460    sed '10a\
12461... rest of stderr output deleted ...
12462         10q' conftest.err >conftest.er1
12463    cat conftest.er1 >&5
12464  fi
12465  rm -f conftest.er1 conftest.err
12466  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12467  test $ac_status = 0; }
12468done
12469
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12471$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12472if ${ac_cv_c_compiler_gnu+:} false; then :
12473  $as_echo_n "(cached) " >&6
12474else
12475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476/* end confdefs.h.  */
12477
12478int
12479main ()
12480{
12481#ifndef __GNUC__
12482       choke me
12483#endif
12484
12485  ;
12486  return 0;
12487}
12488_ACEOF
12489if ac_fn_c_try_compile "$LINENO"; then :
12490  ac_compiler_gnu=yes
12491else
12492  ac_compiler_gnu=no
12493fi
12494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12495ac_cv_c_compiler_gnu=$ac_compiler_gnu
12496
12497fi
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12499$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12500if test $ac_compiler_gnu = yes; then
12501  GCC=yes
12502else
12503  GCC=
12504fi
12505ac_test_CFLAGS=${CFLAGS+set}
12506ac_save_CFLAGS=$CFLAGS
12507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12508$as_echo_n "checking whether $CC accepts -g... " >&6; }
12509if ${ac_cv_prog_cc_g+:} false; then :
12510  $as_echo_n "(cached) " >&6
12511else
12512  ac_save_c_werror_flag=$ac_c_werror_flag
12513   ac_c_werror_flag=yes
12514   ac_cv_prog_cc_g=no
12515   CFLAGS="-g"
12516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517/* end confdefs.h.  */
12518
12519int
12520main ()
12521{
12522
12523  ;
12524  return 0;
12525}
12526_ACEOF
12527if ac_fn_c_try_compile "$LINENO"; then :
12528  ac_cv_prog_cc_g=yes
12529else
12530  CFLAGS=""
12531      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532/* end confdefs.h.  */
12533
12534int
12535main ()
12536{
12537
12538  ;
12539  return 0;
12540}
12541_ACEOF
12542if ac_fn_c_try_compile "$LINENO"; then :
12543
12544else
12545  ac_c_werror_flag=$ac_save_c_werror_flag
12546	 CFLAGS="-g"
12547	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12548/* end confdefs.h.  */
12549
12550int
12551main ()
12552{
12553
12554  ;
12555  return 0;
12556}
12557_ACEOF
12558if ac_fn_c_try_compile "$LINENO"; then :
12559  ac_cv_prog_cc_g=yes
12560fi
12561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12562fi
12563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12564fi
12565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12566   ac_c_werror_flag=$ac_save_c_werror_flag
12567fi
12568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12569$as_echo "$ac_cv_prog_cc_g" >&6; }
12570if test "$ac_test_CFLAGS" = set; then
12571  CFLAGS=$ac_save_CFLAGS
12572elif test $ac_cv_prog_cc_g = yes; then
12573  if test "$GCC" = yes; then
12574    CFLAGS="-g -O2"
12575  else
12576    CFLAGS="-g"
12577  fi
12578else
12579  if test "$GCC" = yes; then
12580    CFLAGS="-O2"
12581  else
12582    CFLAGS=
12583  fi
12584fi
12585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12586$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12587if ${ac_cv_prog_cc_c89+:} false; then :
12588  $as_echo_n "(cached) " >&6
12589else
12590  ac_cv_prog_cc_c89=no
12591ac_save_CC=$CC
12592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593/* end confdefs.h.  */
12594#include <stdarg.h>
12595#include <stdio.h>
12596struct stat;
12597/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12598struct buf { int x; };
12599FILE * (*rcsopen) (struct buf *, struct stat *, int);
12600static char *e (p, i)
12601     char **p;
12602     int i;
12603{
12604  return p[i];
12605}
12606static char *f (char * (*g) (char **, int), char **p, ...)
12607{
12608  char *s;
12609  va_list v;
12610  va_start (v,p);
12611  s = g (p, va_arg (v,int));
12612  va_end (v);
12613  return s;
12614}
12615
12616/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12617   function prototypes and stuff, but not '\xHH' hex character constants.
12618   These don't provoke an error unfortunately, instead are silently treated
12619   as 'x'.  The following induces an error, until -std is added to get
12620   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12621   array size at least.  It's necessary to write '\x00'==0 to get something
12622   that's true only with -std.  */
12623int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12624
12625/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12626   inside strings and character constants.  */
12627#define FOO(x) 'x'
12628int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12629
12630int test (int i, double x);
12631struct s1 {int (*f) (int a);};
12632struct s2 {int (*f) (double a);};
12633int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12634int argc;
12635char **argv;
12636int
12637main ()
12638{
12639return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12640  ;
12641  return 0;
12642}
12643_ACEOF
12644for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12645	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12646do
12647  CC="$ac_save_CC $ac_arg"
12648  if ac_fn_c_try_compile "$LINENO"; then :
12649  ac_cv_prog_cc_c89=$ac_arg
12650fi
12651rm -f core conftest.err conftest.$ac_objext
12652  test "x$ac_cv_prog_cc_c89" != "xno" && break
12653done
12654rm -f conftest.$ac_ext
12655CC=$ac_save_CC
12656
12657fi
12658# AC_CACHE_VAL
12659case "x$ac_cv_prog_cc_c89" in
12660  x)
12661    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12662$as_echo "none needed" >&6; } ;;
12663  xno)
12664    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12665$as_echo "unsupported" >&6; } ;;
12666  *)
12667    CC="$CC $ac_cv_prog_cc_c89"
12668    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12669$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12670esac
12671if test "x$ac_cv_prog_cc_c89" != xno; then :
12672
12673fi
12674
12675ac_ext=c
12676ac_cpp='$CPP $CPPFLAGS'
12677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12679ac_compiler_gnu=$ac_cv_c_compiler_gnu
12680
12681ac_ext=c
12682ac_cpp='$CPP $CPPFLAGS'
12683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12685ac_compiler_gnu=$ac_cv_c_compiler_gnu
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12687$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12688if ${am_cv_prog_cc_c_o+:} false; then :
12689  $as_echo_n "(cached) " >&6
12690else
12691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692/* end confdefs.h.  */
12693
12694int
12695main ()
12696{
12697
12698  ;
12699  return 0;
12700}
12701_ACEOF
12702  # Make sure it works both with $CC and with simple cc.
12703  # Following AC_PROG_CC_C_O, we do the test twice because some
12704  # compilers refuse to overwrite an existing .o file with -o,
12705  # though they will create one.
12706  am_cv_prog_cc_c_o=yes
12707  for am_i in 1 2; do
12708    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12709   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12710   ac_status=$?
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); } \
12713         && test -f conftest2.$ac_objext; then
12714      : OK
12715    else
12716      am_cv_prog_cc_c_o=no
12717      break
12718    fi
12719  done
12720  rm -f core conftest*
12721  unset am_i
12722fi
12723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12724$as_echo "$am_cv_prog_cc_c_o" >&6; }
12725if test "$am_cv_prog_cc_c_o" != yes; then
12726   # Losing compiler, so override with the script.
12727   # FIXME: It is wrong to rewrite CC.
12728   # But if we don't then we get into trouble of one sort or another.
12729   # A longer-term fix would be to have automake use am__CC in this case,
12730   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12731   CC="$am_aux_dir/compile $CC"
12732fi
12733ac_ext=c
12734ac_cpp='$CPP $CPPFLAGS'
12735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12737ac_compiler_gnu=$ac_cv_c_compiler_gnu
12738
12739
12740
12741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12742$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12743set x ${MAKE-make}
12744ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12745if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12746  $as_echo_n "(cached) " >&6
12747else
12748  cat >conftest.make <<\_ACEOF
12749SHELL = /bin/sh
12750all:
12751	@echo '@@@%%%=$(MAKE)=@@@%%%'
12752_ACEOF
12753# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12754case `${MAKE-make} -f conftest.make 2>/dev/null` in
12755  *@@@%%%=?*=@@@%%%*)
12756    eval ac_cv_prog_make_${ac_make}_set=yes;;
12757  *)
12758    eval ac_cv_prog_make_${ac_make}_set=no;;
12759esac
12760rm -f conftest.make
12761fi
12762if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12764$as_echo "yes" >&6; }
12765  SET_MAKE=
12766else
12767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768$as_echo "no" >&6; }
12769  SET_MAKE="MAKE=${MAKE-make}"
12770fi
12771
12772
12773
12774if test "$ac_cv_c_compiler_gnu" = "yes"; then
12775  CFLAGS="-Wall -DNOTWINDLL $CFLAGS"
12776fi
12777
12778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12779$as_echo_n "checking for ANSI C header files... " >&6; }
12780if ${ac_cv_header_stdc+:} false; then :
12781  $as_echo_n "(cached) " >&6
12782else
12783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784/* end confdefs.h.  */
12785#include <stdlib.h>
12786#include <stdarg.h>
12787#include <string.h>
12788#include <float.h>
12789
12790int
12791main ()
12792{
12793
12794  ;
12795  return 0;
12796}
12797_ACEOF
12798if ac_fn_c_try_compile "$LINENO"; then :
12799  ac_cv_header_stdc=yes
12800else
12801  ac_cv_header_stdc=no
12802fi
12803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12804
12805if test $ac_cv_header_stdc = yes; then
12806  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808/* end confdefs.h.  */
12809#include <string.h>
12810
12811_ACEOF
12812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12813  $EGREP "memchr" >/dev/null 2>&1; then :
12814
12815else
12816  ac_cv_header_stdc=no
12817fi
12818rm -f conftest*
12819
12820fi
12821
12822if test $ac_cv_header_stdc = yes; then
12823  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825/* end confdefs.h.  */
12826#include <stdlib.h>
12827
12828_ACEOF
12829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12830  $EGREP "free" >/dev/null 2>&1; then :
12831
12832else
12833  ac_cv_header_stdc=no
12834fi
12835rm -f conftest*
12836
12837fi
12838
12839if test $ac_cv_header_stdc = yes; then
12840  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12841  if test "$cross_compiling" = yes; then :
12842  :
12843else
12844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845/* end confdefs.h.  */
12846#include <ctype.h>
12847#include <stdlib.h>
12848#if ((' ' & 0x0FF) == 0x020)
12849# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12850# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12851#else
12852# define ISLOWER(c) \
12853		   (('a' <= (c) && (c) <= 'i') \
12854		     || ('j' <= (c) && (c) <= 'r') \
12855		     || ('s' <= (c) && (c) <= 'z'))
12856# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12857#endif
12858
12859#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12860int
12861main ()
12862{
12863  int i;
12864  for (i = 0; i < 256; i++)
12865    if (XOR (islower (i), ISLOWER (i))
12866	|| toupper (i) != TOUPPER (i))
12867      return 2;
12868  return 0;
12869}
12870_ACEOF
12871if ac_fn_c_try_run "$LINENO"; then :
12872
12873else
12874  ac_cv_header_stdc=no
12875fi
12876rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12877  conftest.$ac_objext conftest.beam conftest.$ac_ext
12878fi
12879
12880fi
12881fi
12882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12883$as_echo "$ac_cv_header_stdc" >&6; }
12884if test $ac_cv_header_stdc = yes; then
12885
12886$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12887
12888fi
12889
12890for ac_header in errno.h limits.h sys/ioctl.h stat.h sys/stat.h sys/types.h
12891do :
12892  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12893ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12894if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12895  cat >>confdefs.h <<_ACEOF
12896#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12897_ACEOF
12898
12899fi
12900
12901done
12902
12903for ac_header in unistd.h termios.h libgen.h assert.h
12904do :
12905  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12906ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12907if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12908  cat >>confdefs.h <<_ACEOF
12909#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12910_ACEOF
12911
12912fi
12913
12914done
12915
12916for ac_header in dirent.h fcntl.h utime.h pwd.h time.h dir.h direct.h
12917do :
12918  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12919ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12920if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12921  cat >>confdefs.h <<_ACEOF
12922#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12923_ACEOF
12924
12925fi
12926
12927done
12928
12929for ac_header in linux/fd.h linux/fdreg.h shlobj.h
12930do :
12931  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12932ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12933if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12934  cat >>confdefs.h <<_ACEOF
12935#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12936_ACEOF
12937
12938fi
12939
12940done
12941
12942for ac_header in windows.h winioctl.h
12943do :
12944  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12945ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_WINDOWS_H
12946#include <windows.h>
12947#endif
12948
12949"
12950if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12951  cat >>confdefs.h <<_ACEOF
12952#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12953_ACEOF
12954
12955fi
12956
12957done
12958
12959
12960for ac_func in strcmpi stricmp strcasecmp
12961do :
12962  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12963ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12964if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12965  cat >>confdefs.h <<_ACEOF
12966#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12967_ACEOF
12968 break
12969fi
12970done
12971
12972for ac_func in mkstemp
12973do :
12974  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
12975if test "x$ac_cv_func_mkstemp" = xyes; then :
12976  cat >>confdefs.h <<_ACEOF
12977#define HAVE_MKSTEMP 1
12978_ACEOF
12979
12980fi
12981done
12982
12983for ac_func in basename
12984do :
12985  ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
12986if test "x$ac_cv_func_basename" = xyes; then :
12987  cat >>confdefs.h <<_ACEOF
12988#define HAVE_BASENAME 1
12989_ACEOF
12990
12991fi
12992done
12993
12994for ac_func in fork
12995do :
12996  ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
12997if test "x$ac_cv_func_fork" = xyes; then :
12998  cat >>confdefs.h <<_ACEOF
12999#define HAVE_FORK 1
13000_ACEOF
13001
13002fi
13003done
13004
13005for ac_func in GetTempFileName
13006do :
13007  ac_fn_c_check_func "$LINENO" "GetTempFileName" "ac_cv_func_GetTempFileName"
13008if test "x$ac_cv_func_GetTempFileName" = xyes; then :
13009  cat >>confdefs.h <<_ACEOF
13010#define HAVE_GETTEMPFILENAME 1
13011_ACEOF
13012
13013fi
13014done
13015
13016for ac_func in sleep
13017do :
13018  ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep"
13019if test "x$ac_cv_func_sleep" = xyes; then :
13020  cat >>confdefs.h <<_ACEOF
13021#define HAVE_SLEEP 1
13022_ACEOF
13023
13024fi
13025done
13026
13027
13028if test x$with_zlib = xyes; then
13029	for ac_header in zlib.h
13030do :
13031  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13032if test "x$ac_cv_header_zlib_h" = xyes; then :
13033  cat >>confdefs.h <<_ACEOF
13034#define HAVE_ZLIB_H 1
13035_ACEOF
13036
13037fi
13038
13039done
13040
13041	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
13042$as_echo_n "checking for zlibVersion in -lz... " >&6; }
13043if ${ac_cv_lib_z_zlibVersion+:} false; then :
13044  $as_echo_n "(cached) " >&6
13045else
13046  ac_check_lib_save_LIBS=$LIBS
13047LIBS="-lz  $LIBS"
13048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049/* end confdefs.h.  */
13050
13051/* Override any GCC internal prototype to avoid an error.
13052   Use char because int might match the return type of a GCC
13053   builtin and then its argument prototype would still apply.  */
13054#ifdef __cplusplus
13055extern "C"
13056#endif
13057char zlibVersion ();
13058int
13059main ()
13060{
13061return zlibVersion ();
13062  ;
13063  return 0;
13064}
13065_ACEOF
13066if ac_fn_c_try_link "$LINENO"; then :
13067  ac_cv_lib_z_zlibVersion=yes
13068else
13069  ac_cv_lib_z_zlibVersion=no
13070fi
13071rm -f core conftest.err conftest.$ac_objext \
13072    conftest$ac_exeext conftest.$ac_ext
13073LIBS=$ac_check_lib_save_LIBS
13074fi
13075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
13076$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
13077if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
13078  cat >>confdefs.h <<_ACEOF
13079#define HAVE_LIBZ 1
13080_ACEOF
13081
13082  LIBS="-lz $LIBS"
13083
13084fi
13085
13086fi
13087if test x$with_bzlib = xyes; then
13088	for ac_header in bzlib.h
13089do :
13090  ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
13091if test "x$ac_cv_header_bzlib_h" = xyes; then :
13092  cat >>confdefs.h <<_ACEOF
13093#define HAVE_BZLIB_H 1
13094_ACEOF
13095
13096fi
13097
13098done
13099
13100	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzlibVersion in -lbz2" >&5
13101$as_echo_n "checking for BZ2_bzlibVersion in -lbz2... " >&6; }
13102if ${ac_cv_lib_bz2_BZ2_bzlibVersion+:} false; then :
13103  $as_echo_n "(cached) " >&6
13104else
13105  ac_check_lib_save_LIBS=$LIBS
13106LIBS="-lbz2  $LIBS"
13107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108/* end confdefs.h.  */
13109
13110/* Override any GCC internal prototype to avoid an error.
13111   Use char because int might match the return type of a GCC
13112   builtin and then its argument prototype would still apply.  */
13113#ifdef __cplusplus
13114extern "C"
13115#endif
13116char BZ2_bzlibVersion ();
13117int
13118main ()
13119{
13120return BZ2_bzlibVersion ();
13121  ;
13122  return 0;
13123}
13124_ACEOF
13125if ac_fn_c_try_link "$LINENO"; then :
13126  ac_cv_lib_bz2_BZ2_bzlibVersion=yes
13127else
13128  ac_cv_lib_bz2_BZ2_bzlibVersion=no
13129fi
13130rm -f core conftest.err conftest.$ac_objext \
13131    conftest$ac_exeext conftest.$ac_ext
13132LIBS=$ac_check_lib_save_LIBS
13133fi
13134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzlibVersion" >&5
13135$as_echo "$ac_cv_lib_bz2_BZ2_bzlibVersion" >&6; }
13136if test "x$ac_cv_lib_bz2_BZ2_bzlibVersion" = xyes; then :
13137  cat >>confdefs.h <<_ACEOF
13138#define HAVE_LIBBZ2 1
13139_ACEOF
13140
13141  LIBS="-lbz2 $LIBS"
13142
13143fi
13144
13145fi
13146
13147if test x$with_jni = xyes; then
13148	JAVA=java
13149	JAVAC=javac
13150
13151if test "x$CLASSPATH" = x; then
13152        echo "You have no CLASSPATH, I hope it is good"
13153else
13154        echo "You have CLASSPATH $CLASSPATH, hope it is correct"
13155fi
13156
13157
13158
13159if test "x$JAVAPREFIX" = x; then
13160	test "x$JAVAC" = x && for ac_prog in "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT javac$EXEEXT
13161do
13162  # Extract the first word of "$ac_prog", so it can be a program name with args.
13163set dummy $ac_prog; ac_word=$2
13164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13165$as_echo_n "checking for $ac_word... " >&6; }
13166if ${ac_cv_prog_JAVAC+:} false; then :
13167  $as_echo_n "(cached) " >&6
13168else
13169  if test -n "$JAVAC"; then
13170  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
13171else
13172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13173for as_dir in $PATH
13174do
13175  IFS=$as_save_IFS
13176  test -z "$as_dir" && as_dir=.
13177    for ac_exec_ext in '' $ac_executable_extensions; do
13178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13179    ac_cv_prog_JAVAC="$ac_prog"
13180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13181    break 2
13182  fi
13183done
13184  done
13185IFS=$as_save_IFS
13186
13187fi
13188fi
13189JAVAC=$ac_cv_prog_JAVAC
13190if test -n "$JAVAC"; then
13191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
13192$as_echo "$JAVAC" >&6; }
13193else
13194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13195$as_echo "no" >&6; }
13196fi
13197
13198
13199  test -n "$JAVAC" && break
13200done
13201
13202else
13203	test "x$JAVAC" = x && for ac_prog in "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT javac$EXEEXT
13204do
13205  # Extract the first word of "$ac_prog", so it can be a program name with args.
13206set dummy $ac_prog; ac_word=$2
13207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13208$as_echo_n "checking for $ac_word... " >&6; }
13209if ${ac_cv_prog_JAVAC+:} false; then :
13210  $as_echo_n "(cached) " >&6
13211else
13212  if test -n "$JAVAC"; then
13213  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
13214else
13215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13216for as_dir in $PATH
13217do
13218  IFS=$as_save_IFS
13219  test -z "$as_dir" && as_dir=.
13220    for ac_exec_ext in '' $ac_executable_extensions; do
13221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13222    ac_cv_prog_JAVAC="$ac_prog"
13223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13224    break 2
13225  fi
13226done
13227  done
13228IFS=$as_save_IFS
13229
13230fi
13231fi
13232JAVAC=$ac_cv_prog_JAVAC
13233if test -n "$JAVAC"; then
13234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
13235$as_echo "$JAVAC" >&6; }
13236else
13237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238$as_echo "no" >&6; }
13239fi
13240
13241
13242  test -n "$JAVAC" && break
13243done
13244test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
13245
13246fi
13247test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
13248
13249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
13250$as_echo_n "checking if $JAVAC works... " >&6; }
13251if ${ac_cv_prog_javac_works+:} false; then :
13252  $as_echo_n "(cached) " >&6
13253else
13254
13255JAVA_TEST=Test.java
13256CLASS_TEST=Test.class
13257cat << \EOF > $JAVA_TEST
13258/* #line 13258 "configure" */
13259public class Test {
13260}
13261EOF
13262if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
13263  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13264  (eval $ac_try) 2>&5
13265  ac_status=$?
13266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13267  test $ac_status = 0; }; } >/dev/null 2>&1; then
13268  ac_cv_prog_javac_works=yes
13269else
13270  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
13271  echo "configure: failed program was:" >&5
13272  cat $JAVA_TEST >&5
13273fi
13274rm -f $JAVA_TEST $CLASS_TEST
13275
13276fi
13277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
13278$as_echo "$ac_cv_prog_javac_works" >&6; }
13279
13280
13281
13282if test x$JAVAPREFIX = x; then
13283	test x$JAVA = x && for ac_prog in kaffe$EXEEXT java$EXEEXT
13284do
13285  # Extract the first word of "$ac_prog", so it can be a program name with args.
13286set dummy $ac_prog; ac_word=$2
13287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13288$as_echo_n "checking for $ac_word... " >&6; }
13289if ${ac_cv_prog_JAVA+:} false; then :
13290  $as_echo_n "(cached) " >&6
13291else
13292  if test -n "$JAVA"; then
13293  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
13294else
13295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296for as_dir in $PATH
13297do
13298  IFS=$as_save_IFS
13299  test -z "$as_dir" && as_dir=.
13300    for ac_exec_ext in '' $ac_executable_extensions; do
13301  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13302    ac_cv_prog_JAVA="$ac_prog"
13303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13304    break 2
13305  fi
13306done
13307  done
13308IFS=$as_save_IFS
13309
13310fi
13311fi
13312JAVA=$ac_cv_prog_JAVA
13313if test -n "$JAVA"; then
13314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
13315$as_echo "$JAVA" >&6; }
13316else
13317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318$as_echo "no" >&6; }
13319fi
13320
13321
13322  test -n "$JAVA" && break
13323done
13324
13325else
13326	test x$JAVA = x && for ac_prog in kaffe$EXEEXT java$EXEEXT
13327do
13328  # Extract the first word of "$ac_prog", so it can be a program name with args.
13329set dummy $ac_prog; ac_word=$2
13330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13331$as_echo_n "checking for $ac_word... " >&6; }
13332if ${ac_cv_prog_JAVA+:} false; then :
13333  $as_echo_n "(cached) " >&6
13334else
13335  if test -n "$JAVA"; then
13336  ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
13337else
13338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339for as_dir in $PATH
13340do
13341  IFS=$as_save_IFS
13342  test -z "$as_dir" && as_dir=.
13343    for ac_exec_ext in '' $ac_executable_extensions; do
13344  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13345    ac_cv_prog_JAVA="$ac_prog"
13346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13347    break 2
13348  fi
13349done
13350  done
13351IFS=$as_save_IFS
13352
13353fi
13354fi
13355JAVA=$ac_cv_prog_JAVA
13356if test -n "$JAVA"; then
13357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
13358$as_echo "$JAVA" >&6; }
13359else
13360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13361$as_echo "no" >&6; }
13362fi
13363
13364
13365  test -n "$JAVA" && break
13366done
13367test -n "$JAVA" || JAVA="$JAVAPREFIX"
13368
13369fi
13370test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
13371
13372# Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
13373set dummy uudecode$EXEEXT; ac_word=$2
13374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13375$as_echo_n "checking for $ac_word... " >&6; }
13376if ${ac_cv_prog_uudecode+:} false; then :
13377  $as_echo_n "(cached) " >&6
13378else
13379  if test -n "$uudecode"; then
13380  ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
13381else
13382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383for as_dir in $PATH
13384do
13385  IFS=$as_save_IFS
13386  test -z "$as_dir" && as_dir=.
13387    for ac_exec_ext in '' $ac_executable_extensions; do
13388  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13389    ac_cv_prog_uudecode="yes"
13390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13391    break 2
13392  fi
13393done
13394  done
13395IFS=$as_save_IFS
13396
13397fi
13398fi
13399uudecode=$ac_cv_prog_uudecode
13400if test -n "$uudecode"; then
13401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
13402$as_echo "$uudecode" >&6; }
13403else
13404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13405$as_echo "no" >&6; }
13406fi
13407
13408
13409if test x$uudecode = xyes; then
13410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
13411$as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
13412if ${ac_cv_prog_uudecode_base64+:} false; then :
13413  $as_echo_n "(cached) " >&6
13414else
13415
13416cat << \EOF > Test.uue
13417begin-base64 644 Test.class
13418yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
13419bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
13420bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
13421YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
13422aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
13423AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
13424AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
13425====
13426EOF
13427if uudecode$EXEEXT Test.uue; then
13428	ac_cv_prog_uudecode_base64=yes
13429else
13430	echo "configure: 13430: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
13431	echo "configure: failed file was:" >&5
13432	cat Test.uue >&5
13433	ac_cv_prog_uudecode_base64=no
13434fi
13435rm -f Test.uue
13436fi
13437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
13438$as_echo "$ac_cv_prog_uudecode_base64" >&6; }
13439fi
13440if test x$ac_cv_prog_uudecode_base64 != xyes; then
13441	rm -f Test.class
13442	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
13443$as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
13444	if test x$ac_cv_prog_javac_works = xno; then
13445		as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
13446	fi
13447	if test x$ac_cv_prog_javac_works = x; then
13448
13449if test "x$JAVAPREFIX" = x; then
13450	test "x$JAVAC" = x && for ac_prog in "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT javac$EXEEXT
13451do
13452  # Extract the first word of "$ac_prog", so it can be a program name with args.
13453set dummy $ac_prog; ac_word=$2
13454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13455$as_echo_n "checking for $ac_word... " >&6; }
13456if ${ac_cv_prog_JAVAC+:} false; then :
13457  $as_echo_n "(cached) " >&6
13458else
13459  if test -n "$JAVAC"; then
13460  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
13461else
13462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13463for as_dir in $PATH
13464do
13465  IFS=$as_save_IFS
13466  test -z "$as_dir" && as_dir=.
13467    for ac_exec_ext in '' $ac_executable_extensions; do
13468  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13469    ac_cv_prog_JAVAC="$ac_prog"
13470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13471    break 2
13472  fi
13473done
13474  done
13475IFS=$as_save_IFS
13476
13477fi
13478fi
13479JAVAC=$ac_cv_prog_JAVAC
13480if test -n "$JAVAC"; then
13481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
13482$as_echo "$JAVAC" >&6; }
13483else
13484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485$as_echo "no" >&6; }
13486fi
13487
13488
13489  test -n "$JAVAC" && break
13490done
13491
13492else
13493	test "x$JAVAC" = x && for ac_prog in "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT javac$EXEEXT
13494do
13495  # Extract the first word of "$ac_prog", so it can be a program name with args.
13496set dummy $ac_prog; ac_word=$2
13497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13498$as_echo_n "checking for $ac_word... " >&6; }
13499if ${ac_cv_prog_JAVAC+:} false; then :
13500  $as_echo_n "(cached) " >&6
13501else
13502  if test -n "$JAVAC"; then
13503  ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
13504else
13505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13506for as_dir in $PATH
13507do
13508  IFS=$as_save_IFS
13509  test -z "$as_dir" && as_dir=.
13510    for ac_exec_ext in '' $ac_executable_extensions; do
13511  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13512    ac_cv_prog_JAVAC="$ac_prog"
13513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13514    break 2
13515  fi
13516done
13517  done
13518IFS=$as_save_IFS
13519
13520fi
13521fi
13522JAVAC=$ac_cv_prog_JAVAC
13523if test -n "$JAVAC"; then
13524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
13525$as_echo "$JAVAC" >&6; }
13526else
13527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13528$as_echo "no" >&6; }
13529fi
13530
13531
13532  test -n "$JAVAC" && break
13533done
13534test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
13535
13536fi
13537test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
13538
13539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
13540$as_echo_n "checking if $JAVAC works... " >&6; }
13541if ${ac_cv_prog_javac_works+:} false; then :
13542  $as_echo_n "(cached) " >&6
13543else
13544
13545JAVA_TEST=Test.java
13546CLASS_TEST=Test.class
13547cat << \EOF > $JAVA_TEST
13548/* #line 13548 "configure" */
13549public class Test {
13550}
13551EOF
13552if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
13553  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13554  (eval $ac_try) 2>&5
13555  ac_status=$?
13556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13557  test $ac_status = 0; }; } >/dev/null 2>&1; then
13558  ac_cv_prog_javac_works=yes
13559else
13560  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
13561  echo "configure: failed program was:" >&5
13562  cat $JAVA_TEST >&5
13563fi
13564rm -f $JAVA_TEST $CLASS_TEST
13565
13566fi
13567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
13568$as_echo "$ac_cv_prog_javac_works" >&6; }
13569
13570
13571	fi
13572fi
13573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
13574$as_echo_n "checking if $JAVA works... " >&6; }
13575if ${ac_cv_prog_java_works+:} false; then :
13576  $as_echo_n "(cached) " >&6
13577else
13578
13579JAVA_TEST=Test.java
13580CLASS_TEST=Test.class
13581TEST=Test
13582cat << \EOF > $JAVA_TEST
13583/* [#]line 13583 "configure" */
13584public class Test {
13585public static void main (String args[]) {
13586	System.exit (0);
13587} }
13588EOF
13589if test x$ac_cv_prog_uudecode_base64 != xyes; then
13590	if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
13591  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13592  (eval $ac_try) 2>&5
13593  ac_status=$?
13594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13595  test $ac_status = 0; }; } && test -s $CLASS_TEST; then
13596		:
13597	else
13598	  echo "configure: failed program was:" >&5
13599	  cat $JAVA_TEST >&5
13600	  as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
13601	fi
13602fi
13603if { ac_try='$JAVA $JAVAFLAGS $TEST'
13604  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13605  (eval $ac_try) 2>&5
13606  ac_status=$?
13607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13608  test $ac_status = 0; }; } >/dev/null 2>&1; then
13609  ac_cv_prog_java_works=yes
13610else
13611  echo "configure: failed program was:" >&5
13612  cat $JAVA_TEST >&5
13613  as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
13614fi
13615rm -fr $JAVA_TEST $CLASS_TEST Test.uue
13616
13617fi
13618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
13619$as_echo "$ac_cv_prog_java_works" >&6; }
13620
13621
13622
13623
13624# Extract the first word of "javah", so it can be a program name with args.
13625set dummy javah; ac_word=$2
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13627$as_echo_n "checking for $ac_word... " >&6; }
13628if ${ac_cv_path_JAVAH+:} false; then :
13629  $as_echo_n "(cached) " >&6
13630else
13631  case $JAVAH in
13632  [\\/]* | ?:[\\/]*)
13633  ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
13634  ;;
13635  *)
13636  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13637for as_dir in $PATH
13638do
13639  IFS=$as_save_IFS
13640  test -z "$as_dir" && as_dir=.
13641    for ac_exec_ext in '' $ac_executable_extensions; do
13642  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13643    ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
13644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13645    break 2
13646  fi
13647done
13648  done
13649IFS=$as_save_IFS
13650
13651  ;;
13652esac
13653fi
13654JAVAH=$ac_cv_path_JAVAH
13655if test -n "$JAVAH"; then
13656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
13657$as_echo "$JAVAH" >&6; }
13658else
13659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13660$as_echo "no" >&6; }
13661fi
13662
13663
13664if test x"`eval 'echo $ac_cv_path_JAVAH'`" != x ; then
13665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666/* end confdefs.h.  */
13667#include <jni.h>
13668_ACEOF
13669if ac_fn_c_try_cpp "$LINENO"; then :
13670
13671else
13672
13673    ac_save_CPPFLAGS="$CPPFLAGS"
13674    ac_dir=`echo $ac_cv_path_JAVAH | sed 's,\(.*\)/[^/]*/[^/]*$,\1/include,'`
13675    ac_machdep=`echo $build_os | sed 's,[-0-9].*,,'`
13676    CPPFLAGS="$ac_save_CPPFLAGS -I$ac_dir -I$ac_dir/$ac_machdep"
13677    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678/* end confdefs.h.  */
13679#include <jni.h>
13680_ACEOF
13681if ac_fn_c_try_cpp "$LINENO"; then :
13682  ac_save_CPPFLAGS="$CPPFLAGS"
13683else
13684  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to include <jni.h>" >&5
13685$as_echo "$as_me: WARNING: unable to include <jni.h>" >&2;}
13686fi
13687rm -f conftest.err conftest.i conftest.$ac_ext
13688    CPPFLAGS="$ac_save_CPPFLAGS"
13689fi
13690rm -f conftest.err conftest.i conftest.$ac_ext
13691fi
13692
13693if test "x$JAVAPREFIX" = x; then
13694        test "x$JAVADOC" = x && for ac_prog in javadoc$EXEEXT
13695do
13696  # Extract the first word of "$ac_prog", so it can be a program name with args.
13697set dummy $ac_prog; ac_word=$2
13698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13699$as_echo_n "checking for $ac_word... " >&6; }
13700if ${ac_cv_prog_JAVADOC+:} false; then :
13701  $as_echo_n "(cached) " >&6
13702else
13703  if test -n "$JAVADOC"; then
13704  ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test.
13705else
13706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13707for as_dir in $PATH
13708do
13709  IFS=$as_save_IFS
13710  test -z "$as_dir" && as_dir=.
13711    for ac_exec_ext in '' $ac_executable_extensions; do
13712  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13713    ac_cv_prog_JAVADOC="$ac_prog"
13714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13715    break 2
13716  fi
13717done
13718  done
13719IFS=$as_save_IFS
13720
13721fi
13722fi
13723JAVADOC=$ac_cv_prog_JAVADOC
13724if test -n "$JAVADOC"; then
13725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
13726$as_echo "$JAVADOC" >&6; }
13727else
13728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13729$as_echo "no" >&6; }
13730fi
13731
13732
13733  test -n "$JAVADOC" && break
13734done
13735
13736else
13737        test "x$JAVADOC" = x && for ac_prog in javadoc
13738do
13739  # Extract the first word of "$ac_prog", so it can be a program name with args.
13740set dummy $ac_prog; ac_word=$2
13741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13742$as_echo_n "checking for $ac_word... " >&6; }
13743if ${ac_cv_prog_JAVADOC+:} false; then :
13744  $as_echo_n "(cached) " >&6
13745else
13746  if test -n "$JAVADOC"; then
13747  ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test.
13748else
13749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13750for as_dir in $PATH
13751do
13752  IFS=$as_save_IFS
13753  test -z "$as_dir" && as_dir=.
13754    for ac_exec_ext in '' $ac_executable_extensions; do
13755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13756    ac_cv_prog_JAVADOC="$ac_prog"
13757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13758    break 2
13759  fi
13760done
13761  done
13762IFS=$as_save_IFS
13763
13764fi
13765fi
13766JAVADOC=$ac_cv_prog_JAVADOC
13767if test -n "$JAVADOC"; then
13768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
13769$as_echo "$JAVADOC" >&6; }
13770else
13771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13772$as_echo "no" >&6; }
13773fi
13774
13775
13776  test -n "$JAVADOC" && break
13777done
13778test -n "$JAVADOC" || JAVADOC="$JAVAPREFIX"
13779
13780fi
13781test "x$JAVADOC" = x && as_fn_error $? "no acceptable javadoc generator found in \$PATH" "$LINENO" 5
13782
13783
13784if test "x$JAVAPREFIX" = x; then
13785        test "x$JAR" = x && for ac_prog in jar$EXEEXT
13786do
13787  # Extract the first word of "$ac_prog", so it can be a program name with args.
13788set dummy $ac_prog; ac_word=$2
13789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13790$as_echo_n "checking for $ac_word... " >&6; }
13791if ${ac_cv_prog_JAR+:} false; then :
13792  $as_echo_n "(cached) " >&6
13793else
13794  if test -n "$JAR"; then
13795  ac_cv_prog_JAR="$JAR" # Let the user override the test.
13796else
13797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798for as_dir in $PATH
13799do
13800  IFS=$as_save_IFS
13801  test -z "$as_dir" && as_dir=.
13802    for ac_exec_ext in '' $ac_executable_extensions; do
13803  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13804    ac_cv_prog_JAR="$ac_prog"
13805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13806    break 2
13807  fi
13808done
13809  done
13810IFS=$as_save_IFS
13811
13812fi
13813fi
13814JAR=$ac_cv_prog_JAR
13815if test -n "$JAR"; then
13816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
13817$as_echo "$JAR" >&6; }
13818else
13819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13820$as_echo "no" >&6; }
13821fi
13822
13823
13824  test -n "$JAR" && break
13825done
13826
13827else
13828        test "x$JAR" = x && for ac_prog in jar
13829do
13830  # Extract the first word of "$ac_prog", so it can be a program name with args.
13831set dummy $ac_prog; ac_word=$2
13832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13833$as_echo_n "checking for $ac_word... " >&6; }
13834if ${ac_cv_prog_JAR+:} false; then :
13835  $as_echo_n "(cached) " >&6
13836else
13837  if test -n "$JAR"; then
13838  ac_cv_prog_JAR="$JAR" # Let the user override the test.
13839else
13840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13841for as_dir in $PATH
13842do
13843  IFS=$as_save_IFS
13844  test -z "$as_dir" && as_dir=.
13845    for ac_exec_ext in '' $ac_executable_extensions; do
13846  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13847    ac_cv_prog_JAR="$ac_prog"
13848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13849    break 2
13850  fi
13851done
13852  done
13853IFS=$as_save_IFS
13854
13855fi
13856fi
13857JAR=$ac_cv_prog_JAR
13858if test -n "$JAR"; then
13859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
13860$as_echo "$JAR" >&6; }
13861else
13862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13863$as_echo "no" >&6; }
13864fi
13865
13866
13867  test -n "$JAR" && break
13868done
13869test -n "$JAR" || JAR="$JAVAPREFIX"
13870
13871fi
13872test "x$JAR" = x && as_fn_error $? "no acceptable jar program found in \$PATH" "$LINENO" 5
13873
13874
13875
13876JNI_INCLUDE_DIRS=""
13877
13878test "x$JAVAC" = x && as_fn_error $? "'$JAVAC' undefined" "$LINENO" 5
13879# Extract the first word of "$JAVAC", so it can be a program name with args.
13880set dummy $JAVAC; ac_word=$2
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13882$as_echo_n "checking for $ac_word... " >&6; }
13883if ${ac_cv_path__ACJNI_JAVAC+:} false; then :
13884  $as_echo_n "(cached) " >&6
13885else
13886  case $_ACJNI_JAVAC in
13887  [\\/]* | ?:[\\/]*)
13888  ac_cv_path__ACJNI_JAVAC="$_ACJNI_JAVAC" # Let the user override the test with a path.
13889  ;;
13890  *)
13891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13892for as_dir in $PATH
13893do
13894  IFS=$as_save_IFS
13895  test -z "$as_dir" && as_dir=.
13896    for ac_exec_ext in '' $ac_executable_extensions; do
13897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13898    ac_cv_path__ACJNI_JAVAC="$as_dir/$ac_word$ac_exec_ext"
13899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13900    break 2
13901  fi
13902done
13903  done
13904IFS=$as_save_IFS
13905
13906  test -z "$ac_cv_path__ACJNI_JAVAC" && ac_cv_path__ACJNI_JAVAC="no"
13907  ;;
13908esac
13909fi
13910_ACJNI_JAVAC=$ac_cv_path__ACJNI_JAVAC
13911if test -n "$_ACJNI_JAVAC"; then
13912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_ACJNI_JAVAC" >&5
13913$as_echo "$_ACJNI_JAVAC" >&6; }
13914else
13915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13916$as_echo "no" >&6; }
13917fi
13918
13919
13920test "x$_ACJNI_JAVAC" = xno && as_fn_error $? "$JAVAC could not be found in path" "$LINENO" 5
13921
13922
13923# find the include directory relative to the javac executable
13924_cur=""$_ACJNI_JAVAC""
13925while ls -ld "$_cur" 2>/dev/null | grep " -> " >/dev/null; do
13926        { $as_echo "$as_me:${as_lineno-$LINENO}: checking symlink for $_cur" >&5
13927$as_echo_n "checking symlink for $_cur... " >&6; }
13928        _slink=`ls -ld "$_cur" | sed 's/.* -> //'`
13929        case "$_slink" in
13930        /*) _cur="$_slink";;
13931        # 'X' avoids triggering unwanted echo options.
13932        *) _cur=`echo "X$_cur" | sed -e 's/^X//' -e 's:[^/]*$::'`"$_slink";;
13933        esac
13934        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cur" >&5
13935$as_echo "$_cur" >&6; }
13936done
13937_ACJNI_FOLLOWED="$_cur"
13938
13939_JTOPDIR=`echo "$_ACJNI_FOLLOWED" | sed -e 's://*:/:g' -e 's:/[^/]*$::'`
13940case "$host_os" in
13941        darwin*)        _JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
13942                        _JINC="$_JTOPDIR/Headers";;
13943        *)              _JINC="$_JTOPDIR/include";;
13944esac
13945if test -f "$_JINC/jni.h"; then
13946        JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JINC"
13947else
13948        _JTOPDIR=`echo "$_JTOPDIR" | sed -e 's:/[^/]*$::'`
13949        if test -f "$_JTOPDIR/include/jni.h"; then
13950                JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include"
13951        else
13952                as_fn_error $? "cannot find java include files" "$LINENO" 5
13953        fi
13954fi
13955
13956# get the likely subdirectories for system specific java includes
13957case "$host_os" in
13958bsdi*)          _JNI_INC_SUBDIRS="bsdos";;
13959linux*)         _JNI_INC_SUBDIRS="linux genunix";;
13960osf*)           _JNI_INC_SUBDIRS="alpha";;
13961solaris*)       _JNI_INC_SUBDIRS="solaris";;
13962*)              _JNI_INC_SUBDIRS="genunix";;
13963esac
13964
13965# add any subdirectories that are present
13966for JINCSUBDIR in $_JNI_INC_SUBDIRS
13967do
13968        if test -d "$_JTOPDIR/include/$JINCSUBDIR"; then
13969                JNI_INCLUDE_DIRS="$JNI_INCLUDE_DIRS $_JTOPDIR/include/$JINCSUBDIR"
13970        fi
13971done
13972
13973     for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS
13974     do
13975             CPPFLAGS="$CPPFLAGS -I$JNI_INCLUDE_DIR"
13976     done
13977	for ac_header in jni.h
13978do :
13979  ac_fn_c_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
13980if test "x$ac_cv_header_jni_h" = xyes; then :
13981  cat >>confdefs.h <<_ACEOF
13982#define HAVE_JNI_H 1
13983_ACEOF
13984
13985fi
13986
13987done
13988
13989	LIBDSKJAR=libdsk.jar
13990	TOOLCLASSES="DskFormat.class DskID.class DskTrans.class"
13991else
13992	LIBDSKJAR=
13993	TOOLCLASSES=
13994	JAVAH=true
13995	JAVAC=true
13996	JAVA=true
13997	JAVADOC=true
13998	JAR=true
13999fi
14000
14001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14002$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14003if ${ac_cv_c_const+:} false; then :
14004  $as_echo_n "(cached) " >&6
14005else
14006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007/* end confdefs.h.  */
14008
14009int
14010main ()
14011{
14012
14013#ifndef __cplusplus
14014  /* Ultrix mips cc rejects this sort of thing.  */
14015  typedef int charset[2];
14016  const charset cs = { 0, 0 };
14017  /* SunOS 4.1.1 cc rejects this.  */
14018  char const *const *pcpcc;
14019  char **ppc;
14020  /* NEC SVR4.0.2 mips cc rejects this.  */
14021  struct point {int x, y;};
14022  static struct point const zero = {0,0};
14023  /* AIX XL C 1.02.0.0 rejects this.
14024     It does not let you subtract one const X* pointer from another in
14025     an arm of an if-expression whose if-part is not a constant
14026     expression */
14027  const char *g = "string";
14028  pcpcc = &g + (g ? g-g : 0);
14029  /* HPUX 7.0 cc rejects these. */
14030  ++pcpcc;
14031  ppc = (char**) pcpcc;
14032  pcpcc = (char const *const *) ppc;
14033  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14034    char tx;
14035    char *t = &tx;
14036    char const *s = 0 ? (char *) 0 : (char const *) 0;
14037
14038    *t++ = 0;
14039    if (s) return 0;
14040  }
14041  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14042    int x[] = {25, 17};
14043    const int *foo = &x[0];
14044    ++foo;
14045  }
14046  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14047    typedef const int *iptr;
14048    iptr p = 0;
14049    ++p;
14050  }
14051  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14052       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14053    struct s { int j; const int *ap[3]; } bx;
14054    struct s *b = &bx; b->j = 5;
14055  }
14056  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14057    const int foo = 10;
14058    if (!foo) return 0;
14059  }
14060  return !cs[0] && !zero.x;
14061#endif
14062
14063  ;
14064  return 0;
14065}
14066_ACEOF
14067if ac_fn_c_try_compile "$LINENO"; then :
14068  ac_cv_c_const=yes
14069else
14070  ac_cv_c_const=no
14071fi
14072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14073fi
14074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14075$as_echo "$ac_cv_c_const" >&6; }
14076if test $ac_cv_c_const = no; then
14077
14078$as_echo "#define const /**/" >>confdefs.h
14079
14080fi
14081
14082ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14083if test "x$ac_cv_type_size_t" = xyes; then :
14084
14085else
14086
14087cat >>confdefs.h <<_ACEOF
14088#define size_t unsigned int
14089_ACEOF
14090
14091fi
14092
14093
14094
14095
14096CPPFLAGS="$CPPFLAGS -DAUTOSHARE=${datadir}/LibDsk"
14097
14098if test $ac_cv_c_compiler_gnu = yes; then
14099    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
14100$as_echo_n "checking whether $CC needs -traditional... " >&6; }
14101if ${ac_cv_prog_gcc_traditional+:} false; then :
14102  $as_echo_n "(cached) " >&6
14103else
14104    ac_pattern="Autoconf.*'x'"
14105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106/* end confdefs.h.  */
14107#include <sgtty.h>
14108Autoconf TIOCGETP
14109_ACEOF
14110if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14111  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14112  ac_cv_prog_gcc_traditional=yes
14113else
14114  ac_cv_prog_gcc_traditional=no
14115fi
14116rm -f conftest*
14117
14118
14119  if test $ac_cv_prog_gcc_traditional = no; then
14120    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121/* end confdefs.h.  */
14122#include <termio.h>
14123Autoconf TCGETA
14124_ACEOF
14125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14126  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14127  ac_cv_prog_gcc_traditional=yes
14128fi
14129rm -f conftest*
14130
14131  fi
14132fi
14133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
14134$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
14135  if test $ac_cv_prog_gcc_traditional = yes; then
14136    CC="$CC -traditional"
14137  fi
14138fi
14139
14140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
14141$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
14142if ${ac_cv_header_sys_types_h_makedev+:} false; then :
14143  $as_echo_n "(cached) " >&6
14144else
14145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146/* end confdefs.h.  */
14147#include <sys/types.h>
14148int
14149main ()
14150{
14151return makedev(0, 0);
14152  ;
14153  return 0;
14154}
14155_ACEOF
14156if ac_fn_c_try_link "$LINENO"; then :
14157  ac_cv_header_sys_types_h_makedev=yes
14158else
14159  ac_cv_header_sys_types_h_makedev=no
14160fi
14161rm -f core conftest.err conftest.$ac_objext \
14162    conftest$ac_exeext conftest.$ac_ext
14163
14164fi
14165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
14166$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
14167
14168if test $ac_cv_header_sys_types_h_makedev = no; then
14169ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
14170if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
14171
14172$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
14173
14174fi
14175
14176
14177
14178  if test $ac_cv_header_sys_mkdev_h = no; then
14179    ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
14180if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
14181
14182$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
14183
14184fi
14185
14186
14187  fi
14188fi
14189
14190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
14191$as_echo_n "checking for working memcmp... " >&6; }
14192if ${ac_cv_func_memcmp_working+:} false; then :
14193  $as_echo_n "(cached) " >&6
14194else
14195  if test "$cross_compiling" = yes; then :
14196  ac_cv_func_memcmp_working=no
14197else
14198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199/* end confdefs.h.  */
14200$ac_includes_default
14201int
14202main ()
14203{
14204
14205  /* Some versions of memcmp are not 8-bit clean.  */
14206  char c0 = '\100', c1 = '\200', c2 = '\201';
14207  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14208    return 1;
14209
14210  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14211     or more and with at least one buffer not starting on a 4-byte boundary.
14212     William Lewis provided this test program.   */
14213  {
14214    char foo[21];
14215    char bar[21];
14216    int i;
14217    for (i = 0; i < 4; i++)
14218      {
14219	char *a = foo + i;
14220	char *b = bar + i;
14221	strcpy (a, "--------01111111");
14222	strcpy (b, "--------10000000");
14223	if (memcmp (a, b, 16) >= 0)
14224	  return 1;
14225      }
14226    return 0;
14227  }
14228
14229  ;
14230  return 0;
14231}
14232_ACEOF
14233if ac_fn_c_try_run "$LINENO"; then :
14234  ac_cv_func_memcmp_working=yes
14235else
14236  ac_cv_func_memcmp_working=no
14237fi
14238rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14239  conftest.$ac_objext conftest.beam conftest.$ac_ext
14240fi
14241
14242fi
14243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
14244$as_echo "$ac_cv_func_memcmp_working" >&6; }
14245test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
14246  *" memcmp.$ac_objext "* ) ;;
14247  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14248 ;;
14249esac
14250
14251
14252for ac_func in strerror
14253do :
14254  ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
14255if test "x$ac_cv_func_strerror" = xyes; then :
14256  cat >>confdefs.h <<_ACEOF
14257#define HAVE_STRERROR 1
14258_ACEOF
14259
14260fi
14261done
14262
14263
14264
14265
14266
14267ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile lib/Makefile tools/Makefile man/Makefile"
14268
14269cat >confcache <<\_ACEOF
14270# This file is a shell script that caches the results of configure
14271# tests run on this system so they can be shared between configure
14272# scripts and configure runs, see configure's option --config-cache.
14273# It is not useful on other systems.  If it contains results you don't
14274# want to keep, you may remove or edit it.
14275#
14276# config.status only pays attention to the cache file if you give it
14277# the --recheck option to rerun configure.
14278#
14279# `ac_cv_env_foo' variables (set or unset) will be overridden when
14280# loading this file, other *unset* `ac_cv_foo' will be assigned the
14281# following values.
14282
14283_ACEOF
14284
14285# The following way of writing the cache mishandles newlines in values,
14286# but we know of no workaround that is simple, portable, and efficient.
14287# So, we kill variables containing newlines.
14288# Ultrix sh set writes to stderr and can't be redirected directly,
14289# and sets the high bit in the cache file unless we assign to the vars.
14290(
14291  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14292    eval ac_val=\$$ac_var
14293    case $ac_val in #(
14294    *${as_nl}*)
14295      case $ac_var in #(
14296      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14297$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14298      esac
14299      case $ac_var in #(
14300      _ | IFS | as_nl) ;; #(
14301      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14302      *) { eval $ac_var=; unset $ac_var;} ;;
14303      esac ;;
14304    esac
14305  done
14306
14307  (set) 2>&1 |
14308    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14309    *${as_nl}ac_space=\ *)
14310      # `set' does not quote correctly, so add quotes: double-quote
14311      # substitution turns \\\\ into \\, and sed turns \\ into \.
14312      sed -n \
14313	"s/'/'\\\\''/g;
14314	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14315      ;; #(
14316    *)
14317      # `set' quotes correctly as required by POSIX, so do not add quotes.
14318      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14319      ;;
14320    esac |
14321    sort
14322) |
14323  sed '
14324     /^ac_cv_env_/b end
14325     t clear
14326     :clear
14327     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14328     t end
14329     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14330     :end' >>confcache
14331if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14332  if test -w "$cache_file"; then
14333    if test "x$cache_file" != "x/dev/null"; then
14334      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14335$as_echo "$as_me: updating cache $cache_file" >&6;}
14336      if test ! -f "$cache_file" || test -h "$cache_file"; then
14337	cat confcache >"$cache_file"
14338      else
14339        case $cache_file in #(
14340        */* | ?:*)
14341	  mv -f confcache "$cache_file"$$ &&
14342	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14343        *)
14344	  mv -f confcache "$cache_file" ;;
14345	esac
14346      fi
14347    fi
14348  else
14349    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14350$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14351  fi
14352fi
14353rm -f confcache
14354
14355test "x$prefix" = xNONE && prefix=$ac_default_prefix
14356# Let make expand exec_prefix.
14357test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14358
14359DEFS=-DHAVE_CONFIG_H
14360
14361ac_libobjs=
14362ac_ltlibobjs=
14363for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14364  # 1. Remove the extension, and $U if already installed.
14365  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14366  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14367  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14368  #    will be set to the directory where LIBOBJS objects are built.
14369  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14370  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14371done
14372LIBOBJS=$ac_libobjs
14373
14374LTLIBOBJS=$ac_ltlibobjs
14375
14376
14377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14378$as_echo_n "checking that generated files are newer than configure... " >&6; }
14379   if test -n "$am_sleep_pid"; then
14380     # Hide warnings about reused PIDs.
14381     wait $am_sleep_pid 2>/dev/null
14382   fi
14383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14384$as_echo "done" >&6; }
14385if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14386  as_fn_error $? "conditional \"AMDEP\" was never defined.
14387Usually this means the macro was only invoked conditionally." "$LINENO" 5
14388fi
14389if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14390  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14391Usually this means the macro was only invoked conditionally." "$LINENO" 5
14392fi
14393 if test -n "$EXEEXT"; then
14394  am__EXEEXT_TRUE=
14395  am__EXEEXT_FALSE='#'
14396else
14397  am__EXEEXT_TRUE='#'
14398  am__EXEEXT_FALSE=
14399fi
14400
14401
14402: "${CONFIG_STATUS=./config.status}"
14403ac_write_fail=0
14404ac_clean_files_save=$ac_clean_files
14405ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14406{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14407$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14408as_write_fail=0
14409cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14410#! $SHELL
14411# Generated by $as_me.
14412# Run this file to recreate the current configuration.
14413# Compiler output produced by configure, useful for debugging
14414# configure, is in config.log if it exists.
14415
14416debug=false
14417ac_cs_recheck=false
14418ac_cs_silent=false
14419
14420SHELL=\${CONFIG_SHELL-$SHELL}
14421export SHELL
14422_ASEOF
14423cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14424## -------------------- ##
14425## M4sh Initialization. ##
14426## -------------------- ##
14427
14428# Be more Bourne compatible
14429DUALCASE=1; export DUALCASE # for MKS sh
14430if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14431  emulate sh
14432  NULLCMD=:
14433  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14434  # is contrary to our usage.  Disable this feature.
14435  alias -g '${1+"$@"}'='"$@"'
14436  setopt NO_GLOB_SUBST
14437else
14438  case `(set -o) 2>/dev/null` in #(
14439  *posix*) :
14440    set -o posix ;; #(
14441  *) :
14442     ;;
14443esac
14444fi
14445
14446
14447as_nl='
14448'
14449export as_nl
14450# Printing a long string crashes Solaris 7 /usr/bin/printf.
14451as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14452as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14453as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14454# Prefer a ksh shell builtin over an external printf program on Solaris,
14455# but without wasting forks for bash or zsh.
14456if test -z "$BASH_VERSION$ZSH_VERSION" \
14457    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14458  as_echo='print -r --'
14459  as_echo_n='print -rn --'
14460elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14461  as_echo='printf %s\n'
14462  as_echo_n='printf %s'
14463else
14464  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14465    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14466    as_echo_n='/usr/ucb/echo -n'
14467  else
14468    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14469    as_echo_n_body='eval
14470      arg=$1;
14471      case $arg in #(
14472      *"$as_nl"*)
14473	expr "X$arg" : "X\\(.*\\)$as_nl";
14474	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14475      esac;
14476      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14477    '
14478    export as_echo_n_body
14479    as_echo_n='sh -c $as_echo_n_body as_echo'
14480  fi
14481  export as_echo_body
14482  as_echo='sh -c $as_echo_body as_echo'
14483fi
14484
14485# The user is always right.
14486if test "${PATH_SEPARATOR+set}" != set; then
14487  PATH_SEPARATOR=:
14488  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14489    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14490      PATH_SEPARATOR=';'
14491  }
14492fi
14493
14494
14495# IFS
14496# We need space, tab and new line, in precisely that order.  Quoting is
14497# there to prevent editors from complaining about space-tab.
14498# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14499# splitting by setting IFS to empty value.)
14500IFS=" ""	$as_nl"
14501
14502# Find who we are.  Look in the path if we contain no directory separator.
14503as_myself=
14504case $0 in #((
14505  *[\\/]* ) as_myself=$0 ;;
14506  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14507for as_dir in $PATH
14508do
14509  IFS=$as_save_IFS
14510  test -z "$as_dir" && as_dir=.
14511    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14512  done
14513IFS=$as_save_IFS
14514
14515     ;;
14516esac
14517# We did not find ourselves, most probably we were run as `sh COMMAND'
14518# in which case we are not to be found in the path.
14519if test "x$as_myself" = x; then
14520  as_myself=$0
14521fi
14522if test ! -f "$as_myself"; then
14523  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14524  exit 1
14525fi
14526
14527# Unset variables that we do not need and which cause bugs (e.g. in
14528# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14529# suppresses any "Segmentation fault" message there.  '((' could
14530# trigger a bug in pdksh 5.2.14.
14531for as_var in BASH_ENV ENV MAIL MAILPATH
14532do eval test x\${$as_var+set} = xset \
14533  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14534done
14535PS1='$ '
14536PS2='> '
14537PS4='+ '
14538
14539# NLS nuisances.
14540LC_ALL=C
14541export LC_ALL
14542LANGUAGE=C
14543export LANGUAGE
14544
14545# CDPATH.
14546(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14547
14548
14549# as_fn_error STATUS ERROR [LINENO LOG_FD]
14550# ----------------------------------------
14551# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14552# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14553# script with STATUS, using 1 if that was 0.
14554as_fn_error ()
14555{
14556  as_status=$1; test $as_status -eq 0 && as_status=1
14557  if test "$4"; then
14558    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14559    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14560  fi
14561  $as_echo "$as_me: error: $2" >&2
14562  as_fn_exit $as_status
14563} # as_fn_error
14564
14565
14566# as_fn_set_status STATUS
14567# -----------------------
14568# Set $? to STATUS, without forking.
14569as_fn_set_status ()
14570{
14571  return $1
14572} # as_fn_set_status
14573
14574# as_fn_exit STATUS
14575# -----------------
14576# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14577as_fn_exit ()
14578{
14579  set +e
14580  as_fn_set_status $1
14581  exit $1
14582} # as_fn_exit
14583
14584# as_fn_unset VAR
14585# ---------------
14586# Portably unset VAR.
14587as_fn_unset ()
14588{
14589  { eval $1=; unset $1;}
14590}
14591as_unset=as_fn_unset
14592# as_fn_append VAR VALUE
14593# ----------------------
14594# Append the text in VALUE to the end of the definition contained in VAR. Take
14595# advantage of any shell optimizations that allow amortized linear growth over
14596# repeated appends, instead of the typical quadratic growth present in naive
14597# implementations.
14598if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14599  eval 'as_fn_append ()
14600  {
14601    eval $1+=\$2
14602  }'
14603else
14604  as_fn_append ()
14605  {
14606    eval $1=\$$1\$2
14607  }
14608fi # as_fn_append
14609
14610# as_fn_arith ARG...
14611# ------------------
14612# Perform arithmetic evaluation on the ARGs, and store the result in the
14613# global $as_val. Take advantage of shells that can avoid forks. The arguments
14614# must be portable across $(()) and expr.
14615if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14616  eval 'as_fn_arith ()
14617  {
14618    as_val=$(( $* ))
14619  }'
14620else
14621  as_fn_arith ()
14622  {
14623    as_val=`expr "$@" || test $? -eq 1`
14624  }
14625fi # as_fn_arith
14626
14627
14628if expr a : '\(a\)' >/dev/null 2>&1 &&
14629   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14630  as_expr=expr
14631else
14632  as_expr=false
14633fi
14634
14635if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14636  as_basename=basename
14637else
14638  as_basename=false
14639fi
14640
14641if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14642  as_dirname=dirname
14643else
14644  as_dirname=false
14645fi
14646
14647as_me=`$as_basename -- "$0" ||
14648$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14649	 X"$0" : 'X\(//\)$' \| \
14650	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14651$as_echo X/"$0" |
14652    sed '/^.*\/\([^/][^/]*\)\/*$/{
14653	    s//\1/
14654	    q
14655	  }
14656	  /^X\/\(\/\/\)$/{
14657	    s//\1/
14658	    q
14659	  }
14660	  /^X\/\(\/\).*/{
14661	    s//\1/
14662	    q
14663	  }
14664	  s/.*/./; q'`
14665
14666# Avoid depending upon Character Ranges.
14667as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14668as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14669as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14670as_cr_digits='0123456789'
14671as_cr_alnum=$as_cr_Letters$as_cr_digits
14672
14673ECHO_C= ECHO_N= ECHO_T=
14674case `echo -n x` in #(((((
14675-n*)
14676  case `echo 'xy\c'` in
14677  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14678  xy)  ECHO_C='\c';;
14679  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14680       ECHO_T='	';;
14681  esac;;
14682*)
14683  ECHO_N='-n';;
14684esac
14685
14686rm -f conf$$ conf$$.exe conf$$.file
14687if test -d conf$$.dir; then
14688  rm -f conf$$.dir/conf$$.file
14689else
14690  rm -f conf$$.dir
14691  mkdir conf$$.dir 2>/dev/null
14692fi
14693if (echo >conf$$.file) 2>/dev/null; then
14694  if ln -s conf$$.file conf$$ 2>/dev/null; then
14695    as_ln_s='ln -s'
14696    # ... but there are two gotchas:
14697    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14698    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14699    # In both cases, we have to default to `cp -pR'.
14700    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14701      as_ln_s='cp -pR'
14702  elif ln conf$$.file conf$$ 2>/dev/null; then
14703    as_ln_s=ln
14704  else
14705    as_ln_s='cp -pR'
14706  fi
14707else
14708  as_ln_s='cp -pR'
14709fi
14710rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14711rmdir conf$$.dir 2>/dev/null
14712
14713
14714# as_fn_mkdir_p
14715# -------------
14716# Create "$as_dir" as a directory, including parents if necessary.
14717as_fn_mkdir_p ()
14718{
14719
14720  case $as_dir in #(
14721  -*) as_dir=./$as_dir;;
14722  esac
14723  test -d "$as_dir" || eval $as_mkdir_p || {
14724    as_dirs=
14725    while :; do
14726      case $as_dir in #(
14727      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14728      *) as_qdir=$as_dir;;
14729      esac
14730      as_dirs="'$as_qdir' $as_dirs"
14731      as_dir=`$as_dirname -- "$as_dir" ||
14732$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14733	 X"$as_dir" : 'X\(//\)[^/]' \| \
14734	 X"$as_dir" : 'X\(//\)$' \| \
14735	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14736$as_echo X"$as_dir" |
14737    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14738	    s//\1/
14739	    q
14740	  }
14741	  /^X\(\/\/\)[^/].*/{
14742	    s//\1/
14743	    q
14744	  }
14745	  /^X\(\/\/\)$/{
14746	    s//\1/
14747	    q
14748	  }
14749	  /^X\(\/\).*/{
14750	    s//\1/
14751	    q
14752	  }
14753	  s/.*/./; q'`
14754      test -d "$as_dir" && break
14755    done
14756    test -z "$as_dirs" || eval "mkdir $as_dirs"
14757  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14758
14759
14760} # as_fn_mkdir_p
14761if mkdir -p . 2>/dev/null; then
14762  as_mkdir_p='mkdir -p "$as_dir"'
14763else
14764  test -d ./-p && rmdir ./-p
14765  as_mkdir_p=false
14766fi
14767
14768
14769# as_fn_executable_p FILE
14770# -----------------------
14771# Test if FILE is an executable regular file.
14772as_fn_executable_p ()
14773{
14774  test -f "$1" && test -x "$1"
14775} # as_fn_executable_p
14776as_test_x='test -x'
14777as_executable_p=as_fn_executable_p
14778
14779# Sed expression to map a string onto a valid CPP name.
14780as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14781
14782# Sed expression to map a string onto a valid variable name.
14783as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14784
14785
14786exec 6>&1
14787## ----------------------------------- ##
14788## Main body of $CONFIG_STATUS script. ##
14789## ----------------------------------- ##
14790_ASEOF
14791test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14792
14793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14794# Save the log message, to keep $0 and so on meaningful, and to
14795# report actual input values of CONFIG_FILES etc. instead of their
14796# values after options handling.
14797ac_log="
14798This file was extended by LibDsk $as_me 1.4.2, which was
14799generated by GNU Autoconf 2.69.  Invocation command line was
14800
14801  CONFIG_FILES    = $CONFIG_FILES
14802  CONFIG_HEADERS  = $CONFIG_HEADERS
14803  CONFIG_LINKS    = $CONFIG_LINKS
14804  CONFIG_COMMANDS = $CONFIG_COMMANDS
14805  $ $0 $@
14806
14807on `(hostname || uname -n) 2>/dev/null | sed 1q`
14808"
14809
14810_ACEOF
14811
14812case $ac_config_files in *"
14813"*) set x $ac_config_files; shift; ac_config_files=$*;;
14814esac
14815
14816case $ac_config_headers in *"
14817"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14818esac
14819
14820
14821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14822# Files that config.status was made for.
14823config_files="$ac_config_files"
14824config_headers="$ac_config_headers"
14825config_commands="$ac_config_commands"
14826
14827_ACEOF
14828
14829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14830ac_cs_usage="\
14831\`$as_me' instantiates files and other configuration actions
14832from templates according to the current configuration.  Unless the files
14833and actions are specified as TAGs, all are instantiated by default.
14834
14835Usage: $0 [OPTION]... [TAG]...
14836
14837  -h, --help       print this help, then exit
14838  -V, --version    print version number and configuration settings, then exit
14839      --config     print configuration, then exit
14840  -q, --quiet, --silent
14841                   do not print progress messages
14842  -d, --debug      don't remove temporary files
14843      --recheck    update $as_me by reconfiguring in the same conditions
14844      --file=FILE[:TEMPLATE]
14845                   instantiate the configuration file FILE
14846      --header=FILE[:TEMPLATE]
14847                   instantiate the configuration header FILE
14848
14849Configuration files:
14850$config_files
14851
14852Configuration headers:
14853$config_headers
14854
14855Configuration commands:
14856$config_commands
14857
14858Report bugs to the package provider."
14859
14860_ACEOF
14861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14862ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14863ac_cs_version="\\
14864LibDsk config.status 1.4.2
14865configured by $0, generated by GNU Autoconf 2.69,
14866  with options \\"\$ac_cs_config\\"
14867
14868Copyright (C) 2012 Free Software Foundation, Inc.
14869This config.status script is free software; the Free Software Foundation
14870gives unlimited permission to copy, distribute and modify it."
14871
14872ac_pwd='$ac_pwd'
14873srcdir='$srcdir'
14874INSTALL='$INSTALL'
14875MKDIR_P='$MKDIR_P'
14876AWK='$AWK'
14877test -n "\$AWK" || AWK=awk
14878_ACEOF
14879
14880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14881# The default lists apply if the user does not specify any file.
14882ac_need_defaults=:
14883while test $# != 0
14884do
14885  case $1 in
14886  --*=?*)
14887    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14888    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14889    ac_shift=:
14890    ;;
14891  --*=)
14892    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14893    ac_optarg=
14894    ac_shift=:
14895    ;;
14896  *)
14897    ac_option=$1
14898    ac_optarg=$2
14899    ac_shift=shift
14900    ;;
14901  esac
14902
14903  case $ac_option in
14904  # Handling of the options.
14905  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14906    ac_cs_recheck=: ;;
14907  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14908    $as_echo "$ac_cs_version"; exit ;;
14909  --config | --confi | --conf | --con | --co | --c )
14910    $as_echo "$ac_cs_config"; exit ;;
14911  --debug | --debu | --deb | --de | --d | -d )
14912    debug=: ;;
14913  --file | --fil | --fi | --f )
14914    $ac_shift
14915    case $ac_optarg in
14916    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14917    '') as_fn_error $? "missing file argument" ;;
14918    esac
14919    as_fn_append CONFIG_FILES " '$ac_optarg'"
14920    ac_need_defaults=false;;
14921  --header | --heade | --head | --hea )
14922    $ac_shift
14923    case $ac_optarg in
14924    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14925    esac
14926    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14927    ac_need_defaults=false;;
14928  --he | --h)
14929    # Conflict between --help and --header
14930    as_fn_error $? "ambiguous option: \`$1'
14931Try \`$0 --help' for more information.";;
14932  --help | --hel | -h )
14933    $as_echo "$ac_cs_usage"; exit ;;
14934  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14935  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14936    ac_cs_silent=: ;;
14937
14938  # This is an error.
14939  -*) as_fn_error $? "unrecognized option: \`$1'
14940Try \`$0 --help' for more information." ;;
14941
14942  *) as_fn_append ac_config_targets " $1"
14943     ac_need_defaults=false ;;
14944
14945  esac
14946  shift
14947done
14948
14949ac_configure_extra_args=
14950
14951if $ac_cs_silent; then
14952  exec 6>/dev/null
14953  ac_configure_extra_args="$ac_configure_extra_args --silent"
14954fi
14955
14956_ACEOF
14957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14958if \$ac_cs_recheck; then
14959  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14960  shift
14961  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14962  CONFIG_SHELL='$SHELL'
14963  export CONFIG_SHELL
14964  exec "\$@"
14965fi
14966
14967_ACEOF
14968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14969exec 5>>config.log
14970{
14971  echo
14972  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14973## Running $as_me. ##
14974_ASBOX
14975  $as_echo "$ac_log"
14976} >&5
14977
14978_ACEOF
14979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14980#
14981# INIT-COMMANDS
14982#
14983
14984
14985# The HP-UX ksh and POSIX shell print the target directory to stdout
14986# if CDPATH is set.
14987(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14988
14989sed_quote_subst='$sed_quote_subst'
14990double_quote_subst='$double_quote_subst'
14991delay_variable_subst='$delay_variable_subst'
14992macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14993macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14994enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14995enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14996pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14997enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14998shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14999SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15000ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15001PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15002host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15003host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15004host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15005build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15006build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15007build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15008SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15009Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15010GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15011EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15012FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15013LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15014NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15015LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15016max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15017ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15018exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15019lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15020lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15021lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15022lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15023lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15024reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15025reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15026OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15027deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15028file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15029file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15030want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15031DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15032sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15033AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15034AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15035archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15036STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15037RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15038old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15039old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15040old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15041lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15042CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15043CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15044compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15045GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15046lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15047lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15048lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15049lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15050lt_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"`'
15051lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15052nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15053lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15054lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15055objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15056MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15057lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15058lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15059lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15060lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15061lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15062need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15063MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15064DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15065NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15066LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15067OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15068OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15069libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15070shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15071extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15072archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15073enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15074export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15075whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15076compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15077old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15078old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15079archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15080archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15081module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15082module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15083with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15084allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15085no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15086hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15087hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15088hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15089hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15090hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15091hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15092hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15093inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15094link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15095always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15096export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15097exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15098include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15099prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15100postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15101file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15102variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15103need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15104need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15105version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15106runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15107shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15108shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15109libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15110library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15111soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15112install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15113postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15114postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15115finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15116finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15117hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15118sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15119configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15120configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15121hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15122enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15123enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15124enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15125old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15126striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15127
15128LTCC='$LTCC'
15129LTCFLAGS='$LTCFLAGS'
15130compiler='$compiler_DEFAULT'
15131
15132# A function that is used when there is no print builtin or printf.
15133func_fallback_echo ()
15134{
15135  eval 'cat <<_LTECHO_EOF
15136\$1
15137_LTECHO_EOF'
15138}
15139
15140# Quote evaled strings.
15141for var in SHELL \
15142ECHO \
15143PATH_SEPARATOR \
15144SED \
15145GREP \
15146EGREP \
15147FGREP \
15148LD \
15149NM \
15150LN_S \
15151lt_SP2NL \
15152lt_NL2SP \
15153reload_flag \
15154OBJDUMP \
15155deplibs_check_method \
15156file_magic_cmd \
15157file_magic_glob \
15158want_nocaseglob \
15159DLLTOOL \
15160sharedlib_from_linklib_cmd \
15161AR \
15162AR_FLAGS \
15163archiver_list_spec \
15164STRIP \
15165RANLIB \
15166CC \
15167CFLAGS \
15168compiler \
15169lt_cv_sys_global_symbol_pipe \
15170lt_cv_sys_global_symbol_to_cdecl \
15171lt_cv_sys_global_symbol_to_import \
15172lt_cv_sys_global_symbol_to_c_name_address \
15173lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15174lt_cv_nm_interface \
15175nm_file_list_spec \
15176lt_cv_truncate_bin \
15177lt_prog_compiler_no_builtin_flag \
15178lt_prog_compiler_pic \
15179lt_prog_compiler_wl \
15180lt_prog_compiler_static \
15181lt_cv_prog_compiler_c_o \
15182need_locks \
15183MANIFEST_TOOL \
15184DSYMUTIL \
15185NMEDIT \
15186LIPO \
15187OTOOL \
15188OTOOL64 \
15189shrext_cmds \
15190export_dynamic_flag_spec \
15191whole_archive_flag_spec \
15192compiler_needs_object \
15193with_gnu_ld \
15194allow_undefined_flag \
15195no_undefined_flag \
15196hardcode_libdir_flag_spec \
15197hardcode_libdir_separator \
15198exclude_expsyms \
15199include_expsyms \
15200file_list_spec \
15201variables_saved_for_relink \
15202libname_spec \
15203library_names_spec \
15204soname_spec \
15205install_override_mode \
15206finish_eval \
15207old_striplib \
15208striplib; do
15209    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15210    *[\\\\\\\`\\"\\\$]*)
15211      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15212      ;;
15213    *)
15214      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15215      ;;
15216    esac
15217done
15218
15219# Double-quote double-evaled strings.
15220for var in reload_cmds \
15221old_postinstall_cmds \
15222old_postuninstall_cmds \
15223old_archive_cmds \
15224extract_expsyms_cmds \
15225old_archive_from_new_cmds \
15226old_archive_from_expsyms_cmds \
15227archive_cmds \
15228archive_expsym_cmds \
15229module_cmds \
15230module_expsym_cmds \
15231export_symbols_cmds \
15232prelink_cmds \
15233postlink_cmds \
15234postinstall_cmds \
15235postuninstall_cmds \
15236finish_cmds \
15237sys_lib_search_path_spec \
15238configure_time_dlsearch_path \
15239configure_time_lt_sys_library_path; do
15240    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15241    *[\\\\\\\`\\"\\\$]*)
15242      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15243      ;;
15244    *)
15245      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15246      ;;
15247    esac
15248done
15249
15250ac_aux_dir='$ac_aux_dir'
15251
15252# See if we are running on zsh, and set the options that allow our
15253# commands through without removal of \ escapes INIT.
15254if test -n "\${ZSH_VERSION+set}"; then
15255   setopt NO_GLOB_SUBST
15256fi
15257
15258
15259    PACKAGE='$PACKAGE'
15260    VERSION='$VERSION'
15261    RM='$RM'
15262    ofile='$ofile'
15263
15264
15265
15266AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15267
15268_ACEOF
15269
15270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15271
15272# Handling of arguments.
15273for ac_config_target in $ac_config_targets
15274do
15275  case $ac_config_target in
15276    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15277    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15278    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15279    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15280    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15281    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15282    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
15283    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15284    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15285
15286  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15287  esac
15288done
15289
15290
15291# If the user did not use the arguments to specify the items to instantiate,
15292# then the envvar interface is used.  Set only those that are not.
15293# We use the long form for the default assignment because of an extremely
15294# bizarre bug on SunOS 4.1.3.
15295if $ac_need_defaults; then
15296  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15297  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15298  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15299fi
15300
15301# Have a temporary directory for convenience.  Make it in the build tree
15302# simply because there is no reason against having it here, and in addition,
15303# creating and moving files from /tmp can sometimes cause problems.
15304# Hook for its removal unless debugging.
15305# Note that there is a small window in which the directory will not be cleaned:
15306# after its creation but before its name has been assigned to `$tmp'.
15307$debug ||
15308{
15309  tmp= ac_tmp=
15310  trap 'exit_status=$?
15311  : "${ac_tmp:=$tmp}"
15312  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15313' 0
15314  trap 'as_fn_exit 1' 1 2 13 15
15315}
15316# Create a (secure) tmp directory for tmp files.
15317
15318{
15319  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15320  test -d "$tmp"
15321}  ||
15322{
15323  tmp=./conf$$-$RANDOM
15324  (umask 077 && mkdir "$tmp")
15325} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15326ac_tmp=$tmp
15327
15328# Set up the scripts for CONFIG_FILES section.
15329# No need to generate them if there are no CONFIG_FILES.
15330# This happens for instance with `./config.status config.h'.
15331if test -n "$CONFIG_FILES"; then
15332
15333
15334ac_cr=`echo X | tr X '\015'`
15335# On cygwin, bash can eat \r inside `` if the user requested igncr.
15336# But we know of no other shell where ac_cr would be empty at this
15337# point, so we can use a bashism as a fallback.
15338if test "x$ac_cr" = x; then
15339  eval ac_cr=\$\'\\r\'
15340fi
15341ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15342if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15343  ac_cs_awk_cr='\\r'
15344else
15345  ac_cs_awk_cr=$ac_cr
15346fi
15347
15348echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15349_ACEOF
15350
15351
15352{
15353  echo "cat >conf$$subs.awk <<_ACEOF" &&
15354  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15355  echo "_ACEOF"
15356} >conf$$subs.sh ||
15357  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15358ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15359ac_delim='%!_!# '
15360for ac_last_try in false false false false false :; do
15361  . ./conf$$subs.sh ||
15362    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15363
15364  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15365  if test $ac_delim_n = $ac_delim_num; then
15366    break
15367  elif $ac_last_try; then
15368    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15369  else
15370    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15371  fi
15372done
15373rm -f conf$$subs.sh
15374
15375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15376cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15377_ACEOF
15378sed -n '
15379h
15380s/^/S["/; s/!.*/"]=/
15381p
15382g
15383s/^[^!]*!//
15384:repl
15385t repl
15386s/'"$ac_delim"'$//
15387t delim
15388:nl
15389h
15390s/\(.\{148\}\)..*/\1/
15391t more1
15392s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15393p
15394n
15395b repl
15396:more1
15397s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15398p
15399g
15400s/.\{148\}//
15401t nl
15402:delim
15403h
15404s/\(.\{148\}\)..*/\1/
15405t more2
15406s/["\\]/\\&/g; s/^/"/; s/$/"/
15407p
15408b
15409:more2
15410s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15411p
15412g
15413s/.\{148\}//
15414t delim
15415' <conf$$subs.awk | sed '
15416/^[^""]/{
15417  N
15418  s/\n//
15419}
15420' >>$CONFIG_STATUS || ac_write_fail=1
15421rm -f conf$$subs.awk
15422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15423_ACAWK
15424cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15425  for (key in S) S_is_set[key] = 1
15426  FS = ""
15427
15428}
15429{
15430  line = $ 0
15431  nfields = split(line, field, "@")
15432  substed = 0
15433  len = length(field[1])
15434  for (i = 2; i < nfields; i++) {
15435    key = field[i]
15436    keylen = length(key)
15437    if (S_is_set[key]) {
15438      value = S[key]
15439      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15440      len += length(value) + length(field[++i])
15441      substed = 1
15442    } else
15443      len += 1 + keylen
15444  }
15445
15446  print line
15447}
15448
15449_ACAWK
15450_ACEOF
15451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15452if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15453  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15454else
15455  cat
15456fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15457  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15458_ACEOF
15459
15460# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15461# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15462# trailing colons and then remove the whole line if VPATH becomes empty
15463# (actually we leave an empty line to preserve line numbers).
15464if test "x$srcdir" = x.; then
15465  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15466h
15467s///
15468s/^/:/
15469s/[	 ]*$/:/
15470s/:\$(srcdir):/:/g
15471s/:\${srcdir}:/:/g
15472s/:@srcdir@:/:/g
15473s/^:*//
15474s/:*$//
15475x
15476s/\(=[	 ]*\).*/\1/
15477G
15478s/\n//
15479s/^[^=]*=[	 ]*$//
15480}'
15481fi
15482
15483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15484fi # test -n "$CONFIG_FILES"
15485
15486# Set up the scripts for CONFIG_HEADERS section.
15487# No need to generate them if there are no CONFIG_HEADERS.
15488# This happens for instance with `./config.status Makefile'.
15489if test -n "$CONFIG_HEADERS"; then
15490cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15491BEGIN {
15492_ACEOF
15493
15494# Transform confdefs.h into an awk script `defines.awk', embedded as
15495# here-document in config.status, that substitutes the proper values into
15496# config.h.in to produce config.h.
15497
15498# Create a delimiter string that does not exist in confdefs.h, to ease
15499# handling of long lines.
15500ac_delim='%!_!# '
15501for ac_last_try in false false :; do
15502  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15503  if test -z "$ac_tt"; then
15504    break
15505  elif $ac_last_try; then
15506    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15507  else
15508    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15509  fi
15510done
15511
15512# For the awk script, D is an array of macro values keyed by name,
15513# likewise P contains macro parameters if any.  Preserve backslash
15514# newline sequences.
15515
15516ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15517sed -n '
15518s/.\{148\}/&'"$ac_delim"'/g
15519t rset
15520:rset
15521s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15522t def
15523d
15524:def
15525s/\\$//
15526t bsnl
15527s/["\\]/\\&/g
15528s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15529D["\1"]=" \3"/p
15530s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15531d
15532:bsnl
15533s/["\\]/\\&/g
15534s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15535D["\1"]=" \3\\\\\\n"\\/p
15536t cont
15537s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15538t cont
15539d
15540:cont
15541n
15542s/.\{148\}/&'"$ac_delim"'/g
15543t clear
15544:clear
15545s/\\$//
15546t bsnlc
15547s/["\\]/\\&/g; s/^/"/; s/$/"/p
15548d
15549:bsnlc
15550s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15551b cont
15552' <confdefs.h | sed '
15553s/'"$ac_delim"'/"\\\
15554"/g' >>$CONFIG_STATUS || ac_write_fail=1
15555
15556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15557  for (key in D) D_is_set[key] = 1
15558  FS = ""
15559}
15560/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15561  line = \$ 0
15562  split(line, arg, " ")
15563  if (arg[1] == "#") {
15564    defundef = arg[2]
15565    mac1 = arg[3]
15566  } else {
15567    defundef = substr(arg[1], 2)
15568    mac1 = arg[2]
15569  }
15570  split(mac1, mac2, "(") #)
15571  macro = mac2[1]
15572  prefix = substr(line, 1, index(line, defundef) - 1)
15573  if (D_is_set[macro]) {
15574    # Preserve the white space surrounding the "#".
15575    print prefix "define", macro P[macro] D[macro]
15576    next
15577  } else {
15578    # Replace #undef with comments.  This is necessary, for example,
15579    # in the case of _POSIX_SOURCE, which is predefined and required
15580    # on some systems where configure will not decide to define it.
15581    if (defundef == "undef") {
15582      print "/*", prefix defundef, macro, "*/"
15583      next
15584    }
15585  }
15586}
15587{ print }
15588_ACAWK
15589_ACEOF
15590cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15591  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15592fi # test -n "$CONFIG_HEADERS"
15593
15594
15595eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15596shift
15597for ac_tag
15598do
15599  case $ac_tag in
15600  :[FHLC]) ac_mode=$ac_tag; continue;;
15601  esac
15602  case $ac_mode$ac_tag in
15603  :[FHL]*:*);;
15604  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15605  :[FH]-) ac_tag=-:-;;
15606  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15607  esac
15608  ac_save_IFS=$IFS
15609  IFS=:
15610  set x $ac_tag
15611  IFS=$ac_save_IFS
15612  shift
15613  ac_file=$1
15614  shift
15615
15616  case $ac_mode in
15617  :L) ac_source=$1;;
15618  :[FH])
15619    ac_file_inputs=
15620    for ac_f
15621    do
15622      case $ac_f in
15623      -) ac_f="$ac_tmp/stdin";;
15624      *) # Look for the file first in the build tree, then in the source tree
15625	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15626	 # because $ac_f cannot contain `:'.
15627	 test -f "$ac_f" ||
15628	   case $ac_f in
15629	   [\\/$]*) false;;
15630	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15631	   esac ||
15632	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15633      esac
15634      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15635      as_fn_append ac_file_inputs " '$ac_f'"
15636    done
15637
15638    # Let's still pretend it is `configure' which instantiates (i.e., don't
15639    # use $as_me), people would be surprised to read:
15640    #    /* config.h.  Generated by config.status.  */
15641    configure_input='Generated from '`
15642	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15643	`' by configure.'
15644    if test x"$ac_file" != x-; then
15645      configure_input="$ac_file.  $configure_input"
15646      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15647$as_echo "$as_me: creating $ac_file" >&6;}
15648    fi
15649    # Neutralize special characters interpreted by sed in replacement strings.
15650    case $configure_input in #(
15651    *\&* | *\|* | *\\* )
15652       ac_sed_conf_input=`$as_echo "$configure_input" |
15653       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15654    *) ac_sed_conf_input=$configure_input;;
15655    esac
15656
15657    case $ac_tag in
15658    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15659      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15660    esac
15661    ;;
15662  esac
15663
15664  ac_dir=`$as_dirname -- "$ac_file" ||
15665$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15666	 X"$ac_file" : 'X\(//\)[^/]' \| \
15667	 X"$ac_file" : 'X\(//\)$' \| \
15668	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15669$as_echo X"$ac_file" |
15670    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15671	    s//\1/
15672	    q
15673	  }
15674	  /^X\(\/\/\)[^/].*/{
15675	    s//\1/
15676	    q
15677	  }
15678	  /^X\(\/\/\)$/{
15679	    s//\1/
15680	    q
15681	  }
15682	  /^X\(\/\).*/{
15683	    s//\1/
15684	    q
15685	  }
15686	  s/.*/./; q'`
15687  as_dir="$ac_dir"; as_fn_mkdir_p
15688  ac_builddir=.
15689
15690case "$ac_dir" in
15691.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15692*)
15693  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15694  # A ".." for each directory in $ac_dir_suffix.
15695  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15696  case $ac_top_builddir_sub in
15697  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15698  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15699  esac ;;
15700esac
15701ac_abs_top_builddir=$ac_pwd
15702ac_abs_builddir=$ac_pwd$ac_dir_suffix
15703# for backward compatibility:
15704ac_top_builddir=$ac_top_build_prefix
15705
15706case $srcdir in
15707  .)  # We are building in place.
15708    ac_srcdir=.
15709    ac_top_srcdir=$ac_top_builddir_sub
15710    ac_abs_top_srcdir=$ac_pwd ;;
15711  [\\/]* | ?:[\\/]* )  # Absolute name.
15712    ac_srcdir=$srcdir$ac_dir_suffix;
15713    ac_top_srcdir=$srcdir
15714    ac_abs_top_srcdir=$srcdir ;;
15715  *) # Relative name.
15716    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15717    ac_top_srcdir=$ac_top_build_prefix$srcdir
15718    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15719esac
15720ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15721
15722
15723  case $ac_mode in
15724  :F)
15725  #
15726  # CONFIG_FILE
15727  #
15728
15729  case $INSTALL in
15730  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15731  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15732  esac
15733  ac_MKDIR_P=$MKDIR_P
15734  case $MKDIR_P in
15735  [\\/$]* | ?:[\\/]* ) ;;
15736  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15737  esac
15738_ACEOF
15739
15740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15741# If the template does not know about datarootdir, expand it.
15742# FIXME: This hack should be removed a few years after 2.60.
15743ac_datarootdir_hack=; ac_datarootdir_seen=
15744ac_sed_dataroot='
15745/datarootdir/ {
15746  p
15747  q
15748}
15749/@datadir@/p
15750/@docdir@/p
15751/@infodir@/p
15752/@localedir@/p
15753/@mandir@/p'
15754case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15755*datarootdir*) ac_datarootdir_seen=yes;;
15756*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15757  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15758$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15759_ACEOF
15760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15761  ac_datarootdir_hack='
15762  s&@datadir@&$datadir&g
15763  s&@docdir@&$docdir&g
15764  s&@infodir@&$infodir&g
15765  s&@localedir@&$localedir&g
15766  s&@mandir@&$mandir&g
15767  s&\\\${datarootdir}&$datarootdir&g' ;;
15768esac
15769_ACEOF
15770
15771# Neutralize VPATH when `$srcdir' = `.'.
15772# Shell code in configure.ac might set extrasub.
15773# FIXME: do we really want to maintain this feature?
15774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15775ac_sed_extra="$ac_vpsub
15776$extrasub
15777_ACEOF
15778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15779:t
15780/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15781s|@configure_input@|$ac_sed_conf_input|;t t
15782s&@top_builddir@&$ac_top_builddir_sub&;t t
15783s&@top_build_prefix@&$ac_top_build_prefix&;t t
15784s&@srcdir@&$ac_srcdir&;t t
15785s&@abs_srcdir@&$ac_abs_srcdir&;t t
15786s&@top_srcdir@&$ac_top_srcdir&;t t
15787s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15788s&@builddir@&$ac_builddir&;t t
15789s&@abs_builddir@&$ac_abs_builddir&;t t
15790s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15791s&@INSTALL@&$ac_INSTALL&;t t
15792s&@MKDIR_P@&$ac_MKDIR_P&;t t
15793$ac_datarootdir_hack
15794"
15795eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15796  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15797
15798test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15799  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15800  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15801      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15802  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15803which seems to be undefined.  Please make sure it is defined" >&5
15804$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15805which seems to be undefined.  Please make sure it is defined" >&2;}
15806
15807  rm -f "$ac_tmp/stdin"
15808  case $ac_file in
15809  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15810  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15811  esac \
15812  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15813 ;;
15814  :H)
15815  #
15816  # CONFIG_HEADER
15817  #
15818  if test x"$ac_file" != x-; then
15819    {
15820      $as_echo "/* $configure_input  */" \
15821      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15822    } >"$ac_tmp/config.h" \
15823      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15824    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15825      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15826$as_echo "$as_me: $ac_file is unchanged" >&6;}
15827    else
15828      rm -f "$ac_file"
15829      mv "$ac_tmp/config.h" "$ac_file" \
15830	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15831    fi
15832  else
15833    $as_echo "/* $configure_input  */" \
15834      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15835      || as_fn_error $? "could not create -" "$LINENO" 5
15836  fi
15837# Compute "$ac_file"'s index in $config_headers.
15838_am_arg="$ac_file"
15839_am_stamp_count=1
15840for _am_header in $config_headers :; do
15841  case $_am_header in
15842    $_am_arg | $_am_arg:* )
15843      break ;;
15844    * )
15845      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15846  esac
15847done
15848echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15849$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15850	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15851	 X"$_am_arg" : 'X\(//\)$' \| \
15852	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15853$as_echo X"$_am_arg" |
15854    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15855	    s//\1/
15856	    q
15857	  }
15858	  /^X\(\/\/\)[^/].*/{
15859	    s//\1/
15860	    q
15861	  }
15862	  /^X\(\/\/\)$/{
15863	    s//\1/
15864	    q
15865	  }
15866	  /^X\(\/\).*/{
15867	    s//\1/
15868	    q
15869	  }
15870	  s/.*/./; q'`/stamp-h$_am_stamp_count
15871 ;;
15872
15873  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15874$as_echo "$as_me: executing $ac_file commands" >&6;}
15875 ;;
15876  esac
15877
15878
15879  case $ac_file$ac_mode in
15880    "libtool":C)
15881
15882    # See if we are running on zsh, and set the options that allow our
15883    # commands through without removal of \ escapes.
15884    if test -n "${ZSH_VERSION+set}"; then
15885      setopt NO_GLOB_SUBST
15886    fi
15887
15888    cfgfile=${ofile}T
15889    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15890    $RM "$cfgfile"
15891
15892    cat <<_LT_EOF >> "$cfgfile"
15893#! $SHELL
15894# Generated automatically by $as_me ($PACKAGE) $VERSION
15895# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15896# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15897
15898# Provide generalized library-building support services.
15899# Written by Gordon Matzigkeit, 1996
15900
15901# Copyright (C) 2014 Free Software Foundation, Inc.
15902# This is free software; see the source for copying conditions.  There is NO
15903# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15904
15905# GNU Libtool is free software; you can redistribute it and/or modify
15906# it under the terms of the GNU General Public License as published by
15907# the Free Software Foundation; either version 2 of of the License, or
15908# (at your option) any later version.
15909#
15910# As a special exception to the GNU General Public License, if you
15911# distribute this file as part of a program or library that is built
15912# using GNU Libtool, you may include this file under the  same
15913# distribution terms that you use for the rest of that program.
15914#
15915# GNU Libtool is distributed in the hope that it will be useful, but
15916# WITHOUT ANY WARRANTY; without even the implied warranty of
15917# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15918# GNU General Public License for more details.
15919#
15920# You should have received a copy of the GNU General Public License
15921# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15922
15923
15924# The names of the tagged configurations supported by this script.
15925available_tags=''
15926
15927# Configured defaults for sys_lib_dlsearch_path munging.
15928: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15929
15930# ### BEGIN LIBTOOL CONFIG
15931
15932# Which release of libtool.m4 was used?
15933macro_version=$macro_version
15934macro_revision=$macro_revision
15935
15936# Whether or not to build shared libraries.
15937build_libtool_libs=$enable_shared
15938
15939# Whether or not to build static libraries.
15940build_old_libs=$enable_static
15941
15942# What type of objects to build.
15943pic_mode=$pic_mode
15944
15945# Whether or not to optimize for fast installation.
15946fast_install=$enable_fast_install
15947
15948# Shared archive member basename,for filename based shared library versioning on AIX.
15949shared_archive_member_spec=$shared_archive_member_spec
15950
15951# Shell to use when invoking shell scripts.
15952SHELL=$lt_SHELL
15953
15954# An echo program that protects backslashes.
15955ECHO=$lt_ECHO
15956
15957# The PATH separator for the build system.
15958PATH_SEPARATOR=$lt_PATH_SEPARATOR
15959
15960# The host system.
15961host_alias=$host_alias
15962host=$host
15963host_os=$host_os
15964
15965# The build system.
15966build_alias=$build_alias
15967build=$build
15968build_os=$build_os
15969
15970# A sed program that does not truncate output.
15971SED=$lt_SED
15972
15973# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15974Xsed="\$SED -e 1s/^X//"
15975
15976# A grep program that handles long lines.
15977GREP=$lt_GREP
15978
15979# An ERE matcher.
15980EGREP=$lt_EGREP
15981
15982# A literal string matcher.
15983FGREP=$lt_FGREP
15984
15985# A BSD- or MS-compatible name lister.
15986NM=$lt_NM
15987
15988# Whether we need soft or hard links.
15989LN_S=$lt_LN_S
15990
15991# What is the maximum length of a command?
15992max_cmd_len=$max_cmd_len
15993
15994# Object file suffix (normally "o").
15995objext=$ac_objext
15996
15997# Executable file suffix (normally "").
15998exeext=$exeext
15999
16000# whether the shell understands "unset".
16001lt_unset=$lt_unset
16002
16003# turn spaces into newlines.
16004SP2NL=$lt_lt_SP2NL
16005
16006# turn newlines into spaces.
16007NL2SP=$lt_lt_NL2SP
16008
16009# convert \$build file names to \$host format.
16010to_host_file_cmd=$lt_cv_to_host_file_cmd
16011
16012# convert \$build files to toolchain format.
16013to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16014
16015# An object symbol dumper.
16016OBJDUMP=$lt_OBJDUMP
16017
16018# Method to check whether dependent libraries are shared objects.
16019deplibs_check_method=$lt_deplibs_check_method
16020
16021# Command to use when deplibs_check_method = "file_magic".
16022file_magic_cmd=$lt_file_magic_cmd
16023
16024# How to find potential files when deplibs_check_method = "file_magic".
16025file_magic_glob=$lt_file_magic_glob
16026
16027# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16028want_nocaseglob=$lt_want_nocaseglob
16029
16030# DLL creation program.
16031DLLTOOL=$lt_DLLTOOL
16032
16033# Command to associate shared and link libraries.
16034sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16035
16036# The archiver.
16037AR=$lt_AR
16038
16039# Flags to create an archive.
16040AR_FLAGS=$lt_AR_FLAGS
16041
16042# How to feed a file listing to the archiver.
16043archiver_list_spec=$lt_archiver_list_spec
16044
16045# A symbol stripping program.
16046STRIP=$lt_STRIP
16047
16048# Commands used to install an old-style archive.
16049RANLIB=$lt_RANLIB
16050old_postinstall_cmds=$lt_old_postinstall_cmds
16051old_postuninstall_cmds=$lt_old_postuninstall_cmds
16052
16053# Whether to use a lock for old archive extraction.
16054lock_old_archive_extraction=$lock_old_archive_extraction
16055
16056# A C compiler.
16057LTCC=$lt_CC
16058
16059# LTCC compiler flags.
16060LTCFLAGS=$lt_CFLAGS
16061
16062# Take the output of nm and produce a listing of raw symbols and C names.
16063global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16064
16065# Transform the output of nm in a proper C declaration.
16066global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16067
16068# Transform the output of nm into a list of symbols to manually relocate.
16069global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16070
16071# Transform the output of nm in a C name address pair.
16072global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16073
16074# Transform the output of nm in a C name address pair when lib prefix is needed.
16075global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16076
16077# The name lister interface.
16078nm_interface=$lt_lt_cv_nm_interface
16079
16080# Specify filename containing input files for \$NM.
16081nm_file_list_spec=$lt_nm_file_list_spec
16082
16083# The root where to search for dependent libraries,and where our libraries should be installed.
16084lt_sysroot=$lt_sysroot
16085
16086# Command to truncate a binary pipe.
16087lt_truncate_bin=$lt_lt_cv_truncate_bin
16088
16089# The name of the directory that contains temporary libtool files.
16090objdir=$objdir
16091
16092# Used to examine libraries when file_magic_cmd begins with "file".
16093MAGIC_CMD=$MAGIC_CMD
16094
16095# Must we lock files when doing compilation?
16096need_locks=$lt_need_locks
16097
16098# Manifest tool.
16099MANIFEST_TOOL=$lt_MANIFEST_TOOL
16100
16101# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16102DSYMUTIL=$lt_DSYMUTIL
16103
16104# Tool to change global to local symbols on Mac OS X.
16105NMEDIT=$lt_NMEDIT
16106
16107# Tool to manipulate fat objects and archives on Mac OS X.
16108LIPO=$lt_LIPO
16109
16110# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16111OTOOL=$lt_OTOOL
16112
16113# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16114OTOOL64=$lt_OTOOL64
16115
16116# Old archive suffix (normally "a").
16117libext=$libext
16118
16119# Shared library suffix (normally ".so").
16120shrext_cmds=$lt_shrext_cmds
16121
16122# The commands to extract the exported symbol list from a shared archive.
16123extract_expsyms_cmds=$lt_extract_expsyms_cmds
16124
16125# Variables whose values should be saved in libtool wrapper scripts and
16126# restored at link time.
16127variables_saved_for_relink=$lt_variables_saved_for_relink
16128
16129# Do we need the "lib" prefix for modules?
16130need_lib_prefix=$need_lib_prefix
16131
16132# Do we need a version for libraries?
16133need_version=$need_version
16134
16135# Library versioning type.
16136version_type=$version_type
16137
16138# Shared library runtime path variable.
16139runpath_var=$runpath_var
16140
16141# Shared library path variable.
16142shlibpath_var=$shlibpath_var
16143
16144# Is shlibpath searched before the hard-coded library search path?
16145shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16146
16147# Format of library name prefix.
16148libname_spec=$lt_libname_spec
16149
16150# List of archive names.  First name is the real one, the rest are links.
16151# The last name is the one that the linker finds with -lNAME
16152library_names_spec=$lt_library_names_spec
16153
16154# The coded name of the library, if different from the real name.
16155soname_spec=$lt_soname_spec
16156
16157# Permission mode override for installation of shared libraries.
16158install_override_mode=$lt_install_override_mode
16159
16160# Command to use after installation of a shared archive.
16161postinstall_cmds=$lt_postinstall_cmds
16162
16163# Command to use after uninstallation of a shared archive.
16164postuninstall_cmds=$lt_postuninstall_cmds
16165
16166# Commands used to finish a libtool library installation in a directory.
16167finish_cmds=$lt_finish_cmds
16168
16169# As "finish_cmds", except a single script fragment to be evaled but
16170# not shown.
16171finish_eval=$lt_finish_eval
16172
16173# Whether we should hardcode library paths into libraries.
16174hardcode_into_libs=$hardcode_into_libs
16175
16176# Compile-time system search path for libraries.
16177sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16178
16179# Detected run-time system search path for libraries.
16180sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16181
16182# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16183configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16184
16185# Whether dlopen is supported.
16186dlopen_support=$enable_dlopen
16187
16188# Whether dlopen of programs is supported.
16189dlopen_self=$enable_dlopen_self
16190
16191# Whether dlopen of statically linked programs is supported.
16192dlopen_self_static=$enable_dlopen_self_static
16193
16194# Commands to strip libraries.
16195old_striplib=$lt_old_striplib
16196striplib=$lt_striplib
16197
16198
16199# The linker used to build libraries.
16200LD=$lt_LD
16201
16202# How to create reloadable object files.
16203reload_flag=$lt_reload_flag
16204reload_cmds=$lt_reload_cmds
16205
16206# Commands used to build an old-style archive.
16207old_archive_cmds=$lt_old_archive_cmds
16208
16209# A language specific compiler.
16210CC=$lt_compiler
16211
16212# Is the compiler the GNU compiler?
16213with_gcc=$GCC
16214
16215# Compiler flag to turn off builtin functions.
16216no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16217
16218# Additional compiler flags for building library objects.
16219pic_flag=$lt_lt_prog_compiler_pic
16220
16221# How to pass a linker flag through the compiler.
16222wl=$lt_lt_prog_compiler_wl
16223
16224# Compiler flag to prevent dynamic linking.
16225link_static_flag=$lt_lt_prog_compiler_static
16226
16227# Does compiler simultaneously support -c and -o options?
16228compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16229
16230# Whether or not to add -lc for building shared libraries.
16231build_libtool_need_lc=$archive_cmds_need_lc
16232
16233# Whether or not to disallow shared libs when runtime libs are static.
16234allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16235
16236# Compiler flag to allow reflexive dlopens.
16237export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16238
16239# Compiler flag to generate shared objects directly from archives.
16240whole_archive_flag_spec=$lt_whole_archive_flag_spec
16241
16242# Whether the compiler copes with passing no objects directly.
16243compiler_needs_object=$lt_compiler_needs_object
16244
16245# Create an old-style archive from a shared archive.
16246old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16247
16248# Create a temporary old-style archive to link instead of a shared archive.
16249old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16250
16251# Commands used to build a shared archive.
16252archive_cmds=$lt_archive_cmds
16253archive_expsym_cmds=$lt_archive_expsym_cmds
16254
16255# Commands used to build a loadable module if different from building
16256# a shared archive.
16257module_cmds=$lt_module_cmds
16258module_expsym_cmds=$lt_module_expsym_cmds
16259
16260# Whether we are building with GNU ld or not.
16261with_gnu_ld=$lt_with_gnu_ld
16262
16263# Flag that allows shared libraries with undefined symbols to be built.
16264allow_undefined_flag=$lt_allow_undefined_flag
16265
16266# Flag that enforces no undefined symbols.
16267no_undefined_flag=$lt_no_undefined_flag
16268
16269# Flag to hardcode \$libdir into a binary during linking.
16270# This must work even if \$libdir does not exist
16271hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16272
16273# Whether we need a single "-rpath" flag with a separated argument.
16274hardcode_libdir_separator=$lt_hardcode_libdir_separator
16275
16276# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16277# DIR into the resulting binary.
16278hardcode_direct=$hardcode_direct
16279
16280# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16281# DIR into the resulting binary and the resulting library dependency is
16282# "absolute",i.e impossible to change by setting \$shlibpath_var if the
16283# library is relocated.
16284hardcode_direct_absolute=$hardcode_direct_absolute
16285
16286# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16287# into the resulting binary.
16288hardcode_minus_L=$hardcode_minus_L
16289
16290# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16291# into the resulting binary.
16292hardcode_shlibpath_var=$hardcode_shlibpath_var
16293
16294# Set to "yes" if building a shared library automatically hardcodes DIR
16295# into the library and all subsequent libraries and executables linked
16296# against it.
16297hardcode_automatic=$hardcode_automatic
16298
16299# Set to yes if linker adds runtime paths of dependent libraries
16300# to runtime path list.
16301inherit_rpath=$inherit_rpath
16302
16303# Whether libtool must link a program against all its dependency libraries.
16304link_all_deplibs=$link_all_deplibs
16305
16306# Set to "yes" if exported symbols are required.
16307always_export_symbols=$always_export_symbols
16308
16309# The commands to list exported symbols.
16310export_symbols_cmds=$lt_export_symbols_cmds
16311
16312# Symbols that should not be listed in the preloaded symbols.
16313exclude_expsyms=$lt_exclude_expsyms
16314
16315# Symbols that must always be exported.
16316include_expsyms=$lt_include_expsyms
16317
16318# Commands necessary for linking programs (against libraries) with templates.
16319prelink_cmds=$lt_prelink_cmds
16320
16321# Commands necessary for finishing linking programs.
16322postlink_cmds=$lt_postlink_cmds
16323
16324# Specify filename containing input files.
16325file_list_spec=$lt_file_list_spec
16326
16327# How to hardcode a shared library path into an executable.
16328hardcode_action=$hardcode_action
16329
16330# ### END LIBTOOL CONFIG
16331
16332_LT_EOF
16333
16334    cat <<'_LT_EOF' >> "$cfgfile"
16335
16336# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16337
16338# func_munge_path_list VARIABLE PATH
16339# -----------------------------------
16340# VARIABLE is name of variable containing _space_ separated list of
16341# directories to be munged by the contents of PATH, which is string
16342# having a format:
16343# "DIR[:DIR]:"
16344#       string "DIR[ DIR]" will be prepended to VARIABLE
16345# ":DIR[:DIR]"
16346#       string "DIR[ DIR]" will be appended to VARIABLE
16347# "DIRP[:DIRP]::[DIRA:]DIRA"
16348#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16349#       "DIRA[ DIRA]" will be appended to VARIABLE
16350# "DIR[:DIR]"
16351#       VARIABLE will be replaced by "DIR[ DIR]"
16352func_munge_path_list ()
16353{
16354    case x$2 in
16355    x)
16356        ;;
16357    *:)
16358        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16359        ;;
16360    x:*)
16361        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16362        ;;
16363    *::*)
16364        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16365        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16366        ;;
16367    *)
16368        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16369        ;;
16370    esac
16371}
16372
16373
16374# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16375func_cc_basename ()
16376{
16377    for cc_temp in $*""; do
16378      case $cc_temp in
16379        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16380        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16381        \-*) ;;
16382        *) break;;
16383      esac
16384    done
16385    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16386}
16387
16388
16389# ### END FUNCTIONS SHARED WITH CONFIGURE
16390
16391_LT_EOF
16392
16393  case $host_os in
16394  aix3*)
16395    cat <<\_LT_EOF >> "$cfgfile"
16396# AIX sometimes has problems with the GCC collect2 program.  For some
16397# reason, if we set the COLLECT_NAMES environment variable, the problems
16398# vanish in a puff of smoke.
16399if test set != "${COLLECT_NAMES+set}"; then
16400  COLLECT_NAMES=
16401  export COLLECT_NAMES
16402fi
16403_LT_EOF
16404    ;;
16405  esac
16406
16407
16408ltmain=$ac_aux_dir/ltmain.sh
16409
16410
16411  # We use sed instead of cat because bash on DJGPP gets confused if
16412  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16413  # text mode, it properly converts lines to CR/LF.  This bash problem
16414  # is reportedly fixed, but why not run on old versions too?
16415  sed '$q' "$ltmain" >> "$cfgfile" \
16416     || (rm -f "$cfgfile"; exit 1)
16417
16418   mv -f "$cfgfile" "$ofile" ||
16419    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16420  chmod +x "$ofile"
16421
16422 ;;
16423    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16424  # Older Autoconf quotes --file arguments for eval, but not when files
16425  # are listed without --file.  Let's play safe and only enable the eval
16426  # if we detect the quoting.
16427  case $CONFIG_FILES in
16428  *\'*) eval set x "$CONFIG_FILES" ;;
16429  *)   set x $CONFIG_FILES ;;
16430  esac
16431  shift
16432  for mf
16433  do
16434    # Strip MF so we end up with the name of the file.
16435    mf=`echo "$mf" | sed -e 's/:.*$//'`
16436    # Check whether this is an Automake generated Makefile or not.
16437    # We used to match only the files named 'Makefile.in', but
16438    # some people rename them; so instead we look at the file content.
16439    # Grep'ing the first line is not enough: some people post-process
16440    # each Makefile.in and add a new line on top of each file to say so.
16441    # Grep'ing the whole file is not good either: AIX grep has a line
16442    # limit of 2048, but all sed's we know have understand at least 4000.
16443    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16444      dirpart=`$as_dirname -- "$mf" ||
16445$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16446	 X"$mf" : 'X\(//\)[^/]' \| \
16447	 X"$mf" : 'X\(//\)$' \| \
16448	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16449$as_echo X"$mf" |
16450    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16451	    s//\1/
16452	    q
16453	  }
16454	  /^X\(\/\/\)[^/].*/{
16455	    s//\1/
16456	    q
16457	  }
16458	  /^X\(\/\/\)$/{
16459	    s//\1/
16460	    q
16461	  }
16462	  /^X\(\/\).*/{
16463	    s//\1/
16464	    q
16465	  }
16466	  s/.*/./; q'`
16467    else
16468      continue
16469    fi
16470    # Extract the definition of DEPDIR, am__include, and am__quote
16471    # from the Makefile without running 'make'.
16472    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16473    test -z "$DEPDIR" && continue
16474    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16475    test -z "$am__include" && continue
16476    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16477    # Find all dependency output files, they are included files with
16478    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16479    # simplest approach to changing $(DEPDIR) to its actual value in the
16480    # expansion.
16481    for file in `sed -n "
16482      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16483	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16484      # Make sure the directory exists.
16485      test -f "$dirpart/$file" && continue
16486      fdir=`$as_dirname -- "$file" ||
16487$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16488	 X"$file" : 'X\(//\)[^/]' \| \
16489	 X"$file" : 'X\(//\)$' \| \
16490	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16491$as_echo X"$file" |
16492    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16493	    s//\1/
16494	    q
16495	  }
16496	  /^X\(\/\/\)[^/].*/{
16497	    s//\1/
16498	    q
16499	  }
16500	  /^X\(\/\/\)$/{
16501	    s//\1/
16502	    q
16503	  }
16504	  /^X\(\/\).*/{
16505	    s//\1/
16506	    q
16507	  }
16508	  s/.*/./; q'`
16509      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16510      # echo "creating $dirpart/$file"
16511      echo '# dummy' > "$dirpart/$file"
16512    done
16513  done
16514}
16515 ;;
16516
16517  esac
16518done # for ac_tag
16519
16520
16521as_fn_exit 0
16522_ACEOF
16523ac_clean_files=$ac_clean_files_save
16524
16525test $ac_write_fail = 0 ||
16526  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16527
16528
16529# configure is writing to config.log, and then calls config.status.
16530# config.status does its own redirection, appending to config.log.
16531# Unfortunately, on DOS this fails, as config.log is still kept open
16532# by configure, so config.status won't be able to write to it; its
16533# output is simply discarded.  So we exec the FD to /dev/null,
16534# effectively closing config.log, so it can be properly (re)opened and
16535# appended to by config.status.  When coming back to configure, we
16536# need to make the FD available again.
16537if test "$no_create" != yes; then
16538  ac_cs_success=:
16539  ac_config_status_args=
16540  test "$silent" = yes &&
16541    ac_config_status_args="$ac_config_status_args --quiet"
16542  exec 5>/dev/null
16543  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16544  exec 5>>config.log
16545  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16546  # would make configure fail if this is the last instruction.
16547  $ac_cs_success || as_fn_exit 1
16548fi
16549if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16550  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16551$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16552fi
16553
16554