1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.66 for maildir 0.11.
4#
5# Report bugs to <courier-maildrop@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1
177
178  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    PATH=/empty FPATH=/empty; export PATH FPATH
183    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
185  if (eval "$as_required") 2>/dev/null; then :
186  as_have_required=yes
187else
188  as_have_required=no
189fi
190  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197  IFS=$as_save_IFS
198  test -z "$as_dir" && as_dir=.
199  as_found=:
200  case $as_dir in #(
201	 /*)
202	   for as_base in sh bash ksh sh5; do
203	     # Try only shells that exist, to save several forks.
204	     as_shell=$as_dir/$as_base
205	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207  CONFIG_SHELL=$as_shell as_have_required=yes
208		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209  break 2
210fi
211fi
212	   done;;
213       esac
214  as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218  CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223      if test "x$CONFIG_SHELL" != x; then :
224  # We cannot yet assume a decent shell, so we have to provide a
225	# neutralization value for shells without unset; and this also
226	# works around shells that cannot unset nonexistent variables.
227	BASH_ENV=/dev/null
228	ENV=/dev/null
229	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230	export CONFIG_SHELL
231	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: courier-maildrop@lists.sourceforge.net about your
243$0: system, including any error possibly output before this
244$0: message. Then install a modern shell, or manually run
245$0: the script under such a shell if you do have one."
246  fi
247  exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265  { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274  return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282  set +e
283  as_fn_set_status $1
284  exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293  case $as_dir in #(
294  -*) as_dir=./$as_dir;;
295  esac
296  test -d "$as_dir" || eval $as_mkdir_p || {
297    as_dirs=
298    while :; do
299      case $as_dir in #(
300      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301      *) as_qdir=$as_dir;;
302      esac
303      as_dirs="'$as_qdir' $as_dirs"
304      as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306	 X"$as_dir" : 'X\(//\)[^/]' \| \
307	 X"$as_dir" : 'X\(//\)$' \| \
308	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\/\)[^/].*/{
315	    s//\1/
316	    q
317	  }
318	  /^X\(\/\/\)$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\).*/{
323	    s//\1/
324	    q
325	  }
326	  s/.*/./; q'`
327      test -d "$as_dir" && break
328    done
329    test -z "$as_dirs" || eval "mkdir $as_dirs"
330  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341  eval 'as_fn_append ()
342  {
343    eval $1+=\$2
344  }'
345else
346  as_fn_append ()
347  {
348    eval $1=\$$1\$2
349  }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358  eval 'as_fn_arith ()
359  {
360    as_val=$(( $* ))
361  }'
362else
363  as_fn_arith ()
364  {
365    as_val=`expr "$@" || test $? -eq 1`
366  }
367fi # as_fn_arith
368
369
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with STATUS, using 1 if that was 0.
375as_fn_error ()
376{
377  as_status=$1; test $as_status -eq 0 && as_status=1
378  if test "$4"; then
379    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381  fi
382  $as_echo "$as_me: error: $2" >&2
383  as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388  as_expr=expr
389else
390  as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394  as_basename=basename
395else
396  as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400  as_dirname=dirname
401else
402  as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407	 X"$0" : 'X\(//\)$' \| \
408	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410    sed '/^.*\/\([^/][^/]*\)\/*$/{
411	    s//\1/
412	    q
413	  }
414	  /^X\/\(\/\/\)$/{
415	    s//\1/
416	    q
417	  }
418	  /^X\/\(\/\).*/{
419	    s//\1/
420	    q
421	  }
422	  s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437  sed -n '
438    p
439    /[$]LINENO/=
440  ' <$as_myself |
441    sed '
442      s/[$]LINENO.*/&-/
443      t lineno
444      b
445      :lineno
446      N
447      :loop
448      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449      t loop
450      s/-\n.*//
451    ' >$as_me.lineno &&
452  chmod +x "$as_me.lineno" ||
453    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466  case `echo 'xy\c'` in
467  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
468  xy)  ECHO_C='\c';;
469  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470       ECHO_T='	';;
471  esac;;
472*)
473  ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478  rm -f conf$$.dir/conf$$.file
479else
480  rm -f conf$$.dir
481  mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484  if ln -s conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s='ln -s'
486    # ... but there are two gotchas:
487    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489    # In both cases, we have to default to `cp -p'.
490    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491      as_ln_s='cp -p'
492  elif ln conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s=ln
494  else
495    as_ln_s='cp -p'
496  fi
497else
498  as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504  as_mkdir_p='mkdir -p "$as_dir"'
505else
506  test -d ./-p && rmdir ./-p
507  as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511  as_test_x='test -x'
512else
513  if ls -dL / >/dev/null 2>&1; then
514    as_ls_L_option=L
515  else
516    as_ls_L_option=
517  fi
518  as_test_x='
519    eval sh -c '\''
520      if test -d "$1"; then
521	test -d "$1/.";
522      else
523	case $1 in #(
524	-*)set "./$1";;
525	esac;
526	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527	???[sx]*):;;*)false;;esac;fi
528    '\'' sh
529  '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539SHELL=${CONFIG_SHELL-/bin/sh}
540
541
542test -n "$DJDIR" || exec 7<&0 </dev/null
543exec 6>&1
544
545# Name of the host.
546# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
547# so uname gets run too.
548ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549
550#
551# Initializations.
552#
553ac_default_prefix=/usr/local
554ac_clean_files=
555ac_config_libobj_dir=.
556LIBOBJS=
557cross_compiling=no
558subdirs=
559MFLAGS=
560MAKEFLAGS=
561
562# Identity of this package.
563PACKAGE_NAME='maildir'
564PACKAGE_TARNAME='maildir'
565PACKAGE_VERSION='0.11'
566PACKAGE_STRING='maildir 0.11'
567PACKAGE_BUGREPORT='courier-maildrop@lists.sourceforge.net'
568PACKAGE_URL=''
569
570ac_unique_file="maildirquota.c"
571# Factoring default headers for most tests.
572ac_includes_default="\
573#include <stdio.h>
574#ifdef HAVE_SYS_TYPES_H
575# include <sys/types.h>
576#endif
577#ifdef HAVE_SYS_STAT_H
578# include <sys/stat.h>
579#endif
580#ifdef STDC_HEADERS
581# include <stdlib.h>
582# include <stddef.h>
583#else
584# ifdef HAVE_STDLIB_H
585#  include <stdlib.h>
586# endif
587#endif
588#ifdef HAVE_STRING_H
589# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590#  include <memory.h>
591# endif
592# include <string.h>
593#endif
594#ifdef HAVE_STRINGS_H
595# include <strings.h>
596#endif
597#ifdef HAVE_INTTYPES_H
598# include <inttypes.h>
599#endif
600#ifdef HAVE_STDINT_H
601# include <stdint.h>
602#endif
603#ifdef HAVE_UNISTD_H
604# include <unistd.h>
605#endif"
606
607ac_subst_vars='am__EXEEXT_FALSE
608am__EXEEXT_TRUE
609LTLIBOBJS
610LIBOBJS
611HAVE_SGML_FALSE
612HAVE_SGML_TRUE
613MAILBOT
614LIBFAM
615LIBPCRE
616PERL
617CXXCPP
618am__fastdepCXX_FALSE
619am__fastdepCXX_TRUE
620CXXDEPMODE
621ac_ct_CXX
622CXXFLAGS
623CXX
624OTOOL64
625OTOOL
626LIPO
627NMEDIT
628DSYMUTIL
629RANLIB
630AR
631OBJDUMP
632NM
633ac_ct_DUMPBIN
634DUMPBIN
635LD
636FGREP
637SED
638LIBTOOL
639LN_S
640EGREP
641GREP
642CPP
643am__fastdepCC_FALSE
644am__fastdepCC_TRUE
645CCDEPMODE
646AMDEPBACKSLASH
647AMDEP_FALSE
648AMDEP_TRUE
649am__quote
650am__include
651DEPDIR
652OBJEXT
653EXEEXT
654ac_ct_CC
655CPPFLAGS
656LDFLAGS
657CFLAGS
658CC
659am__untar
660am__tar
661AMTAR
662am__leading_dot
663SET_MAKE
664AWK
665mkdir_p
666MKDIR_P
667INSTALL_STRIP_PROGRAM
668STRIP
669install_sh
670MAKEINFO
671AUTOHEADER
672AUTOMAKE
673AUTOCONF
674ACLOCAL
675VERSION
676PACKAGE
677CYGPATH_W
678am__isrc
679INSTALL_DATA
680INSTALL_SCRIPT
681INSTALL_PROGRAM
682target_os
683target_vendor
684target_cpu
685target
686host_os
687host_vendor
688host_cpu
689host
690build_os
691build_vendor
692build_cpu
693build
694target_alias
695host_alias
696build_alias
697LIBS
698ECHO_T
699ECHO_N
700ECHO_C
701DEFS
702mandir
703localedir
704libdir
705psdir
706pdfdir
707dvidir
708htmldir
709infodir
710docdir
711oldincludedir
712includedir
713localstatedir
714sharedstatedir
715sysconfdir
716datadir
717datarootdir
718libexecdir
719sbindir
720bindir
721program_transform_name
722prefix
723exec_prefix
724PACKAGE_URL
725PACKAGE_BUGREPORT
726PACKAGE_STRING
727PACKAGE_VERSION
728PACKAGE_TARNAME
729PACKAGE_NAME
730PATH_SEPARATOR
731SHELL'
732ac_subst_files=''
733ac_user_opts='
734enable_option_checking
735enable_dependency_tracking
736enable_shared
737enable_static
738with_pic
739enable_fast_install
740with_gnu_ld
741enable_libtool_lock
742with_db
743with_trashquota
744'
745      ac_precious_vars='build_alias
746host_alias
747target_alias
748CC
749CFLAGS
750LDFLAGS
751LIBS
752CPPFLAGS
753CPP
754CXX
755CXXFLAGS
756CCC
757CXXCPP'
758
759
760# Initialize some variables set by options.
761ac_init_help=
762ac_init_version=false
763ac_unrecognized_opts=
764ac_unrecognized_sep=
765# The variables have the same names as the options, with
766# dashes changed to underlines.
767cache_file=/dev/null
768exec_prefix=NONE
769no_create=
770no_recursion=
771prefix=NONE
772program_prefix=NONE
773program_suffix=NONE
774program_transform_name=s,x,x,
775silent=
776site=
777srcdir=
778verbose=
779x_includes=NONE
780x_libraries=NONE
781
782# Installation directory options.
783# These are left unexpanded so users can "make install exec_prefix=/foo"
784# and all the variables that are supposed to be based on exec_prefix
785# by default will actually change.
786# Use braces instead of parens because sh, perl, etc. also accept them.
787# (The list follows the same order as the GNU Coding Standards.)
788bindir='${exec_prefix}/bin'
789sbindir='${exec_prefix}/sbin'
790libexecdir='${exec_prefix}/libexec'
791datarootdir='${prefix}/share'
792datadir='${datarootdir}'
793sysconfdir='${prefix}/etc'
794sharedstatedir='${prefix}/com'
795localstatedir='${prefix}/var'
796includedir='${prefix}/include'
797oldincludedir='/usr/include'
798docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799infodir='${datarootdir}/info'
800htmldir='${docdir}'
801dvidir='${docdir}'
802pdfdir='${docdir}'
803psdir='${docdir}'
804libdir='${exec_prefix}/lib'
805localedir='${datarootdir}/locale'
806mandir='${datarootdir}/man'
807
808ac_prev=
809ac_dashdash=
810for ac_option
811do
812  # If the previous option needs an argument, assign it.
813  if test -n "$ac_prev"; then
814    eval $ac_prev=\$ac_option
815    ac_prev=
816    continue
817  fi
818
819  case $ac_option in
820  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821  *)	ac_optarg=yes ;;
822  esac
823
824  # Accept the important Cygnus configure options, so we can diagnose typos.
825
826  case $ac_dashdash$ac_option in
827  --)
828    ac_dashdash=yes ;;
829
830  -bindir | --bindir | --bindi | --bind | --bin | --bi)
831    ac_prev=bindir ;;
832  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833    bindir=$ac_optarg ;;
834
835  -build | --build | --buil | --bui | --bu)
836    ac_prev=build_alias ;;
837  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838    build_alias=$ac_optarg ;;
839
840  -cache-file | --cache-file | --cache-fil | --cache-fi \
841  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842    ac_prev=cache_file ;;
843  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845    cache_file=$ac_optarg ;;
846
847  --config-cache | -C)
848    cache_file=config.cache ;;
849
850  -datadir | --datadir | --datadi | --datad)
851    ac_prev=datadir ;;
852  -datadir=* | --datadir=* | --datadi=* | --datad=*)
853    datadir=$ac_optarg ;;
854
855  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856  | --dataroo | --dataro | --datar)
857    ac_prev=datarootdir ;;
858  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860    datarootdir=$ac_optarg ;;
861
862  -disable-* | --disable-*)
863    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864    # Reject names that are not valid shell variable names.
865    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866      as_fn_error $? "invalid feature name: $ac_useropt"
867    ac_useropt_orig=$ac_useropt
868    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869    case $ac_user_opts in
870      *"
871"enable_$ac_useropt"
872"*) ;;
873      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874	 ac_unrecognized_sep=', ';;
875    esac
876    eval enable_$ac_useropt=no ;;
877
878  -docdir | --docdir | --docdi | --doc | --do)
879    ac_prev=docdir ;;
880  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881    docdir=$ac_optarg ;;
882
883  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884    ac_prev=dvidir ;;
885  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886    dvidir=$ac_optarg ;;
887
888  -enable-* | --enable-*)
889    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890    # Reject names that are not valid shell variable names.
891    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892      as_fn_error $? "invalid feature name: $ac_useropt"
893    ac_useropt_orig=$ac_useropt
894    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895    case $ac_user_opts in
896      *"
897"enable_$ac_useropt"
898"*) ;;
899      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900	 ac_unrecognized_sep=', ';;
901    esac
902    eval enable_$ac_useropt=\$ac_optarg ;;
903
904  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906  | --exec | --exe | --ex)
907    ac_prev=exec_prefix ;;
908  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910  | --exec=* | --exe=* | --ex=*)
911    exec_prefix=$ac_optarg ;;
912
913  -gas | --gas | --ga | --g)
914    # Obsolete; use --with-gas.
915    with_gas=yes ;;
916
917  -help | --help | --hel | --he | -h)
918    ac_init_help=long ;;
919  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920    ac_init_help=recursive ;;
921  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922    ac_init_help=short ;;
923
924  -host | --host | --hos | --ho)
925    ac_prev=host_alias ;;
926  -host=* | --host=* | --hos=* | --ho=*)
927    host_alias=$ac_optarg ;;
928
929  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930    ac_prev=htmldir ;;
931  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932  | --ht=*)
933    htmldir=$ac_optarg ;;
934
935  -includedir | --includedir | --includedi | --included | --include \
936  | --includ | --inclu | --incl | --inc)
937    ac_prev=includedir ;;
938  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939  | --includ=* | --inclu=* | --incl=* | --inc=*)
940    includedir=$ac_optarg ;;
941
942  -infodir | --infodir | --infodi | --infod | --info | --inf)
943    ac_prev=infodir ;;
944  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945    infodir=$ac_optarg ;;
946
947  -libdir | --libdir | --libdi | --libd)
948    ac_prev=libdir ;;
949  -libdir=* | --libdir=* | --libdi=* | --libd=*)
950    libdir=$ac_optarg ;;
951
952  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953  | --libexe | --libex | --libe)
954    ac_prev=libexecdir ;;
955  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956  | --libexe=* | --libex=* | --libe=*)
957    libexecdir=$ac_optarg ;;
958
959  -localedir | --localedir | --localedi | --localed | --locale)
960    ac_prev=localedir ;;
961  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962    localedir=$ac_optarg ;;
963
964  -localstatedir | --localstatedir | --localstatedi | --localstated \
965  | --localstate | --localstat | --localsta | --localst | --locals)
966    ac_prev=localstatedir ;;
967  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969    localstatedir=$ac_optarg ;;
970
971  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972    ac_prev=mandir ;;
973  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974    mandir=$ac_optarg ;;
975
976  -nfp | --nfp | --nf)
977    # Obsolete; use --without-fp.
978    with_fp=no ;;
979
980  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981  | --no-cr | --no-c | -n)
982    no_create=yes ;;
983
984  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986    no_recursion=yes ;;
987
988  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990  | --oldin | --oldi | --old | --ol | --o)
991    ac_prev=oldincludedir ;;
992  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995    oldincludedir=$ac_optarg ;;
996
997  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998    ac_prev=prefix ;;
999  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000    prefix=$ac_optarg ;;
1001
1002  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003  | --program-pre | --program-pr | --program-p)
1004    ac_prev=program_prefix ;;
1005  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007    program_prefix=$ac_optarg ;;
1008
1009  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010  | --program-suf | --program-su | --program-s)
1011    ac_prev=program_suffix ;;
1012  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014    program_suffix=$ac_optarg ;;
1015
1016  -program-transform-name | --program-transform-name \
1017  | --program-transform-nam | --program-transform-na \
1018  | --program-transform-n | --program-transform- \
1019  | --program-transform | --program-transfor \
1020  | --program-transfo | --program-transf \
1021  | --program-trans | --program-tran \
1022  | --progr-tra | --program-tr | --program-t)
1023    ac_prev=program_transform_name ;;
1024  -program-transform-name=* | --program-transform-name=* \
1025  | --program-transform-nam=* | --program-transform-na=* \
1026  | --program-transform-n=* | --program-transform-=* \
1027  | --program-transform=* | --program-transfor=* \
1028  | --program-transfo=* | --program-transf=* \
1029  | --program-trans=* | --program-tran=* \
1030  | --progr-tra=* | --program-tr=* | --program-t=*)
1031    program_transform_name=$ac_optarg ;;
1032
1033  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034    ac_prev=pdfdir ;;
1035  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036    pdfdir=$ac_optarg ;;
1037
1038  -psdir | --psdir | --psdi | --psd | --ps)
1039    ac_prev=psdir ;;
1040  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041    psdir=$ac_optarg ;;
1042
1043  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044  | -silent | --silent | --silen | --sile | --sil)
1045    silent=yes ;;
1046
1047  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048    ac_prev=sbindir ;;
1049  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050  | --sbi=* | --sb=*)
1051    sbindir=$ac_optarg ;;
1052
1053  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055  | --sharedst | --shareds | --shared | --share | --shar \
1056  | --sha | --sh)
1057    ac_prev=sharedstatedir ;;
1058  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061  | --sha=* | --sh=*)
1062    sharedstatedir=$ac_optarg ;;
1063
1064  -site | --site | --sit)
1065    ac_prev=site ;;
1066  -site=* | --site=* | --sit=*)
1067    site=$ac_optarg ;;
1068
1069  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070    ac_prev=srcdir ;;
1071  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072    srcdir=$ac_optarg ;;
1073
1074  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075  | --syscon | --sysco | --sysc | --sys | --sy)
1076    ac_prev=sysconfdir ;;
1077  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079    sysconfdir=$ac_optarg ;;
1080
1081  -target | --target | --targe | --targ | --tar | --ta | --t)
1082    ac_prev=target_alias ;;
1083  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084    target_alias=$ac_optarg ;;
1085
1086  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087    verbose=yes ;;
1088
1089  -version | --version | --versio | --versi | --vers | -V)
1090    ac_init_version=: ;;
1091
1092  -with-* | --with-*)
1093    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094    # Reject names that are not valid shell variable names.
1095    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096      as_fn_error $? "invalid package name: $ac_useropt"
1097    ac_useropt_orig=$ac_useropt
1098    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099    case $ac_user_opts in
1100      *"
1101"with_$ac_useropt"
1102"*) ;;
1103      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104	 ac_unrecognized_sep=', ';;
1105    esac
1106    eval with_$ac_useropt=\$ac_optarg ;;
1107
1108  -without-* | --without-*)
1109    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110    # Reject names that are not valid shell variable names.
1111    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112      as_fn_error $? "invalid package name: $ac_useropt"
1113    ac_useropt_orig=$ac_useropt
1114    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115    case $ac_user_opts in
1116      *"
1117"with_$ac_useropt"
1118"*) ;;
1119      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120	 ac_unrecognized_sep=', ';;
1121    esac
1122    eval with_$ac_useropt=no ;;
1123
1124  --x)
1125    # Obsolete; use --with-x.
1126    with_x=yes ;;
1127
1128  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129  | --x-incl | --x-inc | --x-in | --x-i)
1130    ac_prev=x_includes ;;
1131  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133    x_includes=$ac_optarg ;;
1134
1135  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137    ac_prev=x_libraries ;;
1138  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140    x_libraries=$ac_optarg ;;
1141
1142  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1143Try \`$0 --help' for more information"
1144    ;;
1145
1146  *=*)
1147    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148    # Reject names that are not valid shell variable names.
1149    case $ac_envvar in #(
1150      '' | [0-9]* | *[!_$as_cr_alnum]* )
1151      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1152    esac
1153    eval $ac_envvar=\$ac_optarg
1154    export $ac_envvar ;;
1155
1156  *)
1157    # FIXME: should be removed in autoconf 3.0.
1158    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162    ;;
1163
1164  esac
1165done
1166
1167if test -n "$ac_prev"; then
1168  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169  as_fn_error $? "missing argument to $ac_option"
1170fi
1171
1172if test -n "$ac_unrecognized_opts"; then
1173  case $enable_option_checking in
1174    no) ;;
1175    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1176    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1177  esac
1178fi
1179
1180# Check all directory arguments for consistency.
1181for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182		datadir sysconfdir sharedstatedir localstatedir includedir \
1183		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184		libdir localedir mandir
1185do
1186  eval ac_val=\$$ac_var
1187  # Remove trailing slashes.
1188  case $ac_val in
1189    */ )
1190      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1191      eval $ac_var=\$ac_val;;
1192  esac
1193  # Be sure to have absolute directory names.
1194  case $ac_val in
1195    [\\/$]* | ?:[\\/]* )  continue;;
1196    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197  esac
1198  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1199done
1200
1201# There might be people who depend on the old broken behavior: `$host'
1202# used to hold the argument of --host etc.
1203# FIXME: To remove some day.
1204build=$build_alias
1205host=$host_alias
1206target=$target_alias
1207
1208# FIXME: To remove some day.
1209if test "x$host_alias" != x; then
1210  if test "x$build_alias" = x; then
1211    cross_compiling=maybe
1212    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1213    If a cross compiler is detected then cross compile mode will be used" >&2
1214  elif test "x$build_alias" != "x$host_alias"; then
1215    cross_compiling=yes
1216  fi
1217fi
1218
1219ac_tool_prefix=
1220test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222test "$silent" = yes && exec 6>/dev/null
1223
1224
1225ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226ac_ls_di=`ls -di .` &&
1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228  as_fn_error $? "working directory cannot be determined"
1229test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230  as_fn_error $? "pwd does not report name of working directory"
1231
1232
1233# Find the source files, if location was not specified.
1234if test -z "$srcdir"; then
1235  ac_srcdir_defaulted=yes
1236  # Try the directory containing this script, then the parent directory.
1237  ac_confdir=`$as_dirname -- "$as_myself" ||
1238$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239	 X"$as_myself" : 'X\(//\)[^/]' \| \
1240	 X"$as_myself" : 'X\(//\)$' \| \
1241	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242$as_echo X"$as_myself" |
1243    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244	    s//\1/
1245	    q
1246	  }
1247	  /^X\(\/\/\)[^/].*/{
1248	    s//\1/
1249	    q
1250	  }
1251	  /^X\(\/\/\)$/{
1252	    s//\1/
1253	    q
1254	  }
1255	  /^X\(\/\).*/{
1256	    s//\1/
1257	    q
1258	  }
1259	  s/.*/./; q'`
1260  srcdir=$ac_confdir
1261  if test ! -r "$srcdir/$ac_unique_file"; then
1262    srcdir=..
1263  fi
1264else
1265  ac_srcdir_defaulted=no
1266fi
1267if test ! -r "$srcdir/$ac_unique_file"; then
1268  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1270fi
1271ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272ac_abs_confdir=`(
1273	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1274	pwd)`
1275# When building in place, set srcdir=.
1276if test "$ac_abs_confdir" = "$ac_pwd"; then
1277  srcdir=.
1278fi
1279# Remove unnecessary trailing slashes from srcdir.
1280# Double slashes in file names in object file debugging info
1281# mess up M-x gdb in Emacs.
1282case $srcdir in
1283*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284esac
1285for ac_var in $ac_precious_vars; do
1286  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1287  eval ac_env_${ac_var}_value=\$${ac_var}
1288  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1289  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1290done
1291
1292#
1293# Report the --help message.
1294#
1295if test "$ac_init_help" = "long"; then
1296  # Omit some internal or obsolete options to make the list less imposing.
1297  # This message is too long to be a string in the A/UX 3.1 sh.
1298  cat <<_ACEOF
1299\`configure' configures maildir 0.11 to adapt to many kinds of systems.
1300
1301Usage: $0 [OPTION]... [VAR=VALUE]...
1302
1303To assign environment variables (e.g., CC, CFLAGS...), specify them as
1304VAR=VALUE.  See below for descriptions of some of the useful variables.
1305
1306Defaults for the options are specified in brackets.
1307
1308Configuration:
1309  -h, --help              display this help and exit
1310      --help=short        display options specific to this package
1311      --help=recursive    display the short help of all the included packages
1312  -V, --version           display version information and exit
1313  -q, --quiet, --silent   do not print \`checking ...' messages
1314      --cache-file=FILE   cache test results in FILE [disabled]
1315  -C, --config-cache      alias for \`--cache-file=config.cache'
1316  -n, --no-create         do not create output files
1317      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1318
1319Installation directories:
1320  --prefix=PREFIX         install architecture-independent files in PREFIX
1321                          [$ac_default_prefix]
1322  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1323                          [PREFIX]
1324
1325By default, \`make install' will install all the files in
1326\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1327an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1328for instance \`--prefix=\$HOME'.
1329
1330For better control, use the options below.
1331
1332Fine tuning of the installation directories:
1333  --bindir=DIR            user executables [EPREFIX/bin]
1334  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1335  --libexecdir=DIR        program executables [EPREFIX/libexec]
1336  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1337  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1338  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1339  --libdir=DIR            object code libraries [EPREFIX/lib]
1340  --includedir=DIR        C header files [PREFIX/include]
1341  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1342  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1343  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1344  --infodir=DIR           info documentation [DATAROOTDIR/info]
1345  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1346  --mandir=DIR            man documentation [DATAROOTDIR/man]
1347  --docdir=DIR            documentation root [DATAROOTDIR/doc/maildir]
1348  --htmldir=DIR           html documentation [DOCDIR]
1349  --dvidir=DIR            dvi documentation [DOCDIR]
1350  --pdfdir=DIR            pdf documentation [DOCDIR]
1351  --psdir=DIR             ps documentation [DOCDIR]
1352_ACEOF
1353
1354  cat <<\_ACEOF
1355
1356Program names:
1357  --program-prefix=PREFIX            prepend PREFIX to installed program names
1358  --program-suffix=SUFFIX            append SUFFIX to installed program names
1359  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1360
1361System types:
1362  --build=BUILD     configure for building on BUILD [guessed]
1363  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1364  --target=TARGET   configure for building compilers for TARGET [HOST]
1365_ACEOF
1366fi
1367
1368if test -n "$ac_init_help"; then
1369  case $ac_init_help in
1370     short | recursive ) echo "Configuration of maildir 0.11:";;
1371   esac
1372  cat <<\_ACEOF
1373
1374Optional Features:
1375  --disable-option-checking  ignore unrecognized --enable/--with options
1376  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1377  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1378  --disable-dependency-tracking  speeds up one-time build
1379  --enable-dependency-tracking   do not reject slow dependency extractors
1380  --enable-shared[=PKGS]  build shared libraries [default=yes]
1381  --enable-static[=PKGS]  build static libraries [default=yes]
1382  --enable-fast-install[=PKGS]
1383                          optimize for fast installation [default=yes]
1384  --disable-libtool-lock  avoid locking (might break parallel builds)
1385
1386Optional Packages:
1387  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1388  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1389  --with-pic              try to use only PIC/non-PIC objects [default=use
1390                          both]
1391  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1392  --with-db=gdbm          Use the GDBM library.
1393  --with-db=db            Use the libdb.a library.
1394  --with-trashquota       Count deleted messages as part of the quota
1395
1396Some influential environment variables:
1397  CC          C compiler command
1398  CFLAGS      C compiler flags
1399  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1400              nonstandard directory <lib dir>
1401  LIBS        libraries to pass to the linker, e.g. -l<library>
1402  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1403              you have headers in a nonstandard directory <include dir>
1404  CPP         C preprocessor
1405  CXX         C++ compiler command
1406  CXXFLAGS    C++ compiler flags
1407  CXXCPP      C++ preprocessor
1408
1409Use these variables to override the choices made by `configure' or to help
1410it to find libraries and programs with nonstandard names/locations.
1411
1412Report bugs to <courier-maildrop@lists.sourceforge.net>.
1413_ACEOF
1414ac_status=$?
1415fi
1416
1417if test "$ac_init_help" = "recursive"; then
1418  # If there are subdirs, report their specific --help.
1419  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1420    test -d "$ac_dir" ||
1421      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1422      continue
1423    ac_builddir=.
1424
1425case "$ac_dir" in
1426.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427*)
1428  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1429  # A ".." for each directory in $ac_dir_suffix.
1430  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1431  case $ac_top_builddir_sub in
1432  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434  esac ;;
1435esac
1436ac_abs_top_builddir=$ac_pwd
1437ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438# for backward compatibility:
1439ac_top_builddir=$ac_top_build_prefix
1440
1441case $srcdir in
1442  .)  # We are building in place.
1443    ac_srcdir=.
1444    ac_top_srcdir=$ac_top_builddir_sub
1445    ac_abs_top_srcdir=$ac_pwd ;;
1446  [\\/]* | ?:[\\/]* )  # Absolute name.
1447    ac_srcdir=$srcdir$ac_dir_suffix;
1448    ac_top_srcdir=$srcdir
1449    ac_abs_top_srcdir=$srcdir ;;
1450  *) # Relative name.
1451    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452    ac_top_srcdir=$ac_top_build_prefix$srcdir
1453    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454esac
1455ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456
1457    cd "$ac_dir" || { ac_status=$?; continue; }
1458    # Check for guested configure.
1459    if test -f "$ac_srcdir/configure.gnu"; then
1460      echo &&
1461      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462    elif test -f "$ac_srcdir/configure"; then
1463      echo &&
1464      $SHELL "$ac_srcdir/configure" --help=recursive
1465    else
1466      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467    fi || ac_status=$?
1468    cd "$ac_pwd" || { ac_status=$?; break; }
1469  done
1470fi
1471
1472test -n "$ac_init_help" && exit $ac_status
1473if $ac_init_version; then
1474  cat <<\_ACEOF
1475maildir configure 0.11
1476generated by GNU Autoconf 2.66
1477
1478Copyright (C) 2010 Free Software Foundation, Inc.
1479This configure script is free software; the Free Software Foundation
1480gives unlimited permission to copy, distribute and modify it.
1481_ACEOF
1482  exit
1483fi
1484
1485## ------------------------ ##
1486## Autoconf initialization. ##
1487## ------------------------ ##
1488
1489# ac_fn_c_try_compile LINENO
1490# --------------------------
1491# Try to compile conftest.$ac_ext, and return whether this succeeded.
1492ac_fn_c_try_compile ()
1493{
1494  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495  rm -f conftest.$ac_objext
1496  if { { ac_try="$ac_compile"
1497case "(($ac_try" in
1498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1499  *) ac_try_echo=$ac_try;;
1500esac
1501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502$as_echo "$ac_try_echo"; } >&5
1503  (eval "$ac_compile") 2>conftest.err
1504  ac_status=$?
1505  if test -s conftest.err; then
1506    grep -v '^ *+' conftest.err >conftest.er1
1507    cat conftest.er1 >&5
1508    mv -f conftest.er1 conftest.err
1509  fi
1510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511  test $ac_status = 0; } && {
1512	 test -z "$ac_c_werror_flag" ||
1513	 test ! -s conftest.err
1514       } && test -s conftest.$ac_objext; then :
1515  ac_retval=0
1516else
1517  $as_echo "$as_me: failed program was:" >&5
1518sed 's/^/| /' conftest.$ac_ext >&5
1519
1520	ac_retval=1
1521fi
1522  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1523  as_fn_set_status $ac_retval
1524
1525} # ac_fn_c_try_compile
1526
1527# ac_fn_c_try_cpp LINENO
1528# ----------------------
1529# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1530ac_fn_c_try_cpp ()
1531{
1532  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533  if { { ac_try="$ac_cpp conftest.$ac_ext"
1534case "(($ac_try" in
1535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536  *) ac_try_echo=$ac_try;;
1537esac
1538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539$as_echo "$ac_try_echo"; } >&5
1540  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1541  ac_status=$?
1542  if test -s conftest.err; then
1543    grep -v '^ *+' conftest.err >conftest.er1
1544    cat conftest.er1 >&5
1545    mv -f conftest.er1 conftest.err
1546  fi
1547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548  test $ac_status = 0; } >/dev/null && {
1549	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1550	 test ! -s conftest.err
1551       }; then :
1552  ac_retval=0
1553else
1554  $as_echo "$as_me: failed program was:" >&5
1555sed 's/^/| /' conftest.$ac_ext >&5
1556
1557    ac_retval=1
1558fi
1559  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560  as_fn_set_status $ac_retval
1561
1562} # ac_fn_c_try_cpp
1563
1564# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1565# -------------------------------------------------------
1566# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1567# the include files in INCLUDES and setting the cache variable VAR
1568# accordingly.
1569ac_fn_c_check_header_mongrel ()
1570{
1571  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572  if eval "test \"\${$3+set}\"" = set; then :
1573  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1574$as_echo_n "checking for $2... " >&6; }
1575if eval "test \"\${$3+set}\"" = set; then :
1576  $as_echo_n "(cached) " >&6
1577fi
1578eval ac_res=\$$3
1579	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1580$as_echo "$ac_res" >&6; }
1581else
1582  # Is the header compilable?
1583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1584$as_echo_n "checking $2 usability... " >&6; }
1585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1586/* end confdefs.h.  */
1587$4
1588#include <$2>
1589_ACEOF
1590if ac_fn_c_try_compile "$LINENO"; then :
1591  ac_header_compiler=yes
1592else
1593  ac_header_compiler=no
1594fi
1595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1597$as_echo "$ac_header_compiler" >&6; }
1598
1599# Is the header present?
1600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1601$as_echo_n "checking $2 presence... " >&6; }
1602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603/* end confdefs.h.  */
1604#include <$2>
1605_ACEOF
1606if ac_fn_c_try_cpp "$LINENO"; then :
1607  ac_header_preproc=yes
1608else
1609  ac_header_preproc=no
1610fi
1611rm -f conftest.err conftest.$ac_ext
1612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1613$as_echo "$ac_header_preproc" >&6; }
1614
1615# So?  What about this header?
1616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1617  yes:no: )
1618    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1619$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1620    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1621$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1622    ;;
1623  no:yes:* )
1624    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1625$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1626    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1627$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1628    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1629$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1630    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1631$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1632    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1633$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1634( $as_echo "## ----------------------------------------------------- ##
1635## Report this to courier-maildrop@lists.sourceforge.net ##
1636## ----------------------------------------------------- ##"
1637     ) | sed "s/^/$as_me: WARNING:     /" >&2
1638    ;;
1639esac
1640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641$as_echo_n "checking for $2... " >&6; }
1642if eval "test \"\${$3+set}\"" = set; then :
1643  $as_echo_n "(cached) " >&6
1644else
1645  eval "$3=\$ac_header_compiler"
1646fi
1647eval ac_res=\$$3
1648	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649$as_echo "$ac_res" >&6; }
1650fi
1651  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1652
1653} # ac_fn_c_check_header_mongrel
1654
1655# ac_fn_c_try_run LINENO
1656# ----------------------
1657# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1658# that executables *can* be run.
1659ac_fn_c_try_run ()
1660{
1661  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662  if { { ac_try="$ac_link"
1663case "(($ac_try" in
1664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665  *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669  (eval "$ac_link") 2>&5
1670  ac_status=$?
1671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1673  { { case "(($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_try") 2>&5
1680  ac_status=$?
1681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682  test $ac_status = 0; }; }; then :
1683  ac_retval=0
1684else
1685  $as_echo "$as_me: program exited with status $ac_status" >&5
1686       $as_echo "$as_me: failed program was:" >&5
1687sed 's/^/| /' conftest.$ac_ext >&5
1688
1689       ac_retval=$ac_status
1690fi
1691  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1693  as_fn_set_status $ac_retval
1694
1695} # ac_fn_c_try_run
1696
1697# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1698# -------------------------------------------------------
1699# Tests whether HEADER exists and can be compiled using the include files in
1700# INCLUDES, setting the cache variable VAR accordingly.
1701ac_fn_c_check_header_compile ()
1702{
1703  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705$as_echo_n "checking for $2... " >&6; }
1706if eval "test \"\${$3+set}\"" = set; then :
1707  $as_echo_n "(cached) " >&6
1708else
1709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710/* end confdefs.h.  */
1711$4
1712#include <$2>
1713_ACEOF
1714if ac_fn_c_try_compile "$LINENO"; then :
1715  eval "$3=yes"
1716else
1717  eval "$3=no"
1718fi
1719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720fi
1721eval ac_res=\$$3
1722	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723$as_echo "$ac_res" >&6; }
1724  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725
1726} # ac_fn_c_check_header_compile
1727
1728# ac_fn_c_try_link LINENO
1729# -----------------------
1730# Try to link conftest.$ac_ext, and return whether this succeeded.
1731ac_fn_c_try_link ()
1732{
1733  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734  rm -f conftest.$ac_objext conftest$ac_exeext
1735  if { { ac_try="$ac_link"
1736case "(($ac_try" in
1737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738  *) ac_try_echo=$ac_try;;
1739esac
1740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741$as_echo "$ac_try_echo"; } >&5
1742  (eval "$ac_link") 2>conftest.err
1743  ac_status=$?
1744  if test -s conftest.err; then
1745    grep -v '^ *+' conftest.err >conftest.er1
1746    cat conftest.er1 >&5
1747    mv -f conftest.er1 conftest.err
1748  fi
1749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750  test $ac_status = 0; } && {
1751	 test -z "$ac_c_werror_flag" ||
1752	 test ! -s conftest.err
1753       } && test -s conftest$ac_exeext && {
1754	 test "$cross_compiling" = yes ||
1755	 $as_test_x conftest$ac_exeext
1756       }; then :
1757  ac_retval=0
1758else
1759  $as_echo "$as_me: failed program was:" >&5
1760sed 's/^/| /' conftest.$ac_ext >&5
1761
1762	ac_retval=1
1763fi
1764  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1765  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1766  # interfere with the next link command; also delete a directory that is
1767  # left behind by Apple's compiler.  We do this before executing the actions.
1768  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770  as_fn_set_status $ac_retval
1771
1772} # ac_fn_c_try_link
1773
1774# ac_fn_c_check_func LINENO FUNC VAR
1775# ----------------------------------
1776# Tests whether FUNC exists, setting the cache variable VAR accordingly
1777ac_fn_c_check_func ()
1778{
1779  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781$as_echo_n "checking for $2... " >&6; }
1782if eval "test \"\${$3+set}\"" = set; then :
1783  $as_echo_n "(cached) " >&6
1784else
1785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h.  */
1787/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1788   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1789#define $2 innocuous_$2
1790
1791/* System header to define __stub macros and hopefully few prototypes,
1792    which can conflict with char $2 (); below.
1793    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1794    <limits.h> exists even on freestanding compilers.  */
1795
1796#ifdef __STDC__
1797# include <limits.h>
1798#else
1799# include <assert.h>
1800#endif
1801
1802#undef $2
1803
1804/* Override any GCC internal prototype to avoid an error.
1805   Use char because int might match the return type of a GCC
1806   builtin and then its argument prototype would still apply.  */
1807#ifdef __cplusplus
1808extern "C"
1809#endif
1810char $2 ();
1811/* The GNU C library defines this for functions which it implements
1812    to always fail with ENOSYS.  Some functions are actually named
1813    something starting with __ and the normal name is an alias.  */
1814#if defined __stub_$2 || defined __stub___$2
1815choke me
1816#endif
1817
1818int
1819main ()
1820{
1821return $2 ();
1822  ;
1823  return 0;
1824}
1825_ACEOF
1826if ac_fn_c_try_link "$LINENO"; then :
1827  eval "$3=yes"
1828else
1829  eval "$3=no"
1830fi
1831rm -f core conftest.err conftest.$ac_objext \
1832    conftest$ac_exeext conftest.$ac_ext
1833fi
1834eval ac_res=\$$3
1835	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836$as_echo "$ac_res" >&6; }
1837  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838
1839} # ac_fn_c_check_func
1840
1841# ac_fn_cxx_try_compile LINENO
1842# ----------------------------
1843# Try to compile conftest.$ac_ext, and return whether this succeeded.
1844ac_fn_cxx_try_compile ()
1845{
1846  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847  rm -f conftest.$ac_objext
1848  if { { ac_try="$ac_compile"
1849case "(($ac_try" in
1850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851  *) ac_try_echo=$ac_try;;
1852esac
1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854$as_echo "$ac_try_echo"; } >&5
1855  (eval "$ac_compile") 2>conftest.err
1856  ac_status=$?
1857  if test -s conftest.err; then
1858    grep -v '^ *+' conftest.err >conftest.er1
1859    cat conftest.er1 >&5
1860    mv -f conftest.er1 conftest.err
1861  fi
1862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863  test $ac_status = 0; } && {
1864	 test -z "$ac_cxx_werror_flag" ||
1865	 test ! -s conftest.err
1866       } && test -s conftest.$ac_objext; then :
1867  ac_retval=0
1868else
1869  $as_echo "$as_me: failed program was:" >&5
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
1872	ac_retval=1
1873fi
1874  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875  as_fn_set_status $ac_retval
1876
1877} # ac_fn_cxx_try_compile
1878
1879# ac_fn_cxx_try_cpp LINENO
1880# ------------------------
1881# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1882ac_fn_cxx_try_cpp ()
1883{
1884  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885  if { { ac_try="$ac_cpp conftest.$ac_ext"
1886case "(($ac_try" in
1887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888  *) ac_try_echo=$ac_try;;
1889esac
1890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891$as_echo "$ac_try_echo"; } >&5
1892  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1893  ac_status=$?
1894  if test -s conftest.err; then
1895    grep -v '^ *+' conftest.err >conftest.er1
1896    cat conftest.er1 >&5
1897    mv -f conftest.er1 conftest.err
1898  fi
1899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900  test $ac_status = 0; } >/dev/null && {
1901	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1902	 test ! -s conftest.err
1903       }; then :
1904  ac_retval=0
1905else
1906  $as_echo "$as_me: failed program was:" >&5
1907sed 's/^/| /' conftest.$ac_ext >&5
1908
1909    ac_retval=1
1910fi
1911  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912  as_fn_set_status $ac_retval
1913
1914} # ac_fn_cxx_try_cpp
1915
1916# ac_fn_cxx_try_link LINENO
1917# -------------------------
1918# Try to link conftest.$ac_ext, and return whether this succeeded.
1919ac_fn_cxx_try_link ()
1920{
1921  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922  rm -f conftest.$ac_objext conftest$ac_exeext
1923  if { { ac_try="$ac_link"
1924case "(($ac_try" in
1925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926  *) ac_try_echo=$ac_try;;
1927esac
1928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929$as_echo "$ac_try_echo"; } >&5
1930  (eval "$ac_link") 2>conftest.err
1931  ac_status=$?
1932  if test -s conftest.err; then
1933    grep -v '^ *+' conftest.err >conftest.er1
1934    cat conftest.er1 >&5
1935    mv -f conftest.er1 conftest.err
1936  fi
1937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938  test $ac_status = 0; } && {
1939	 test -z "$ac_cxx_werror_flag" ||
1940	 test ! -s conftest.err
1941       } && test -s conftest$ac_exeext && {
1942	 test "$cross_compiling" = yes ||
1943	 $as_test_x conftest$ac_exeext
1944       }; then :
1945  ac_retval=0
1946else
1947  $as_echo "$as_me: failed program was:" >&5
1948sed 's/^/| /' conftest.$ac_ext >&5
1949
1950	ac_retval=1
1951fi
1952  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1953  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1954  # interfere with the next link command; also delete a directory that is
1955  # left behind by Apple's compiler.  We do this before executing the actions.
1956  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958  as_fn_set_status $ac_retval
1959
1960} # ac_fn_cxx_try_link
1961
1962# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1963# ---------------------------------------------------------
1964# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1965# the include files in INCLUDES and setting the cache variable VAR
1966# accordingly.
1967ac_fn_cxx_check_header_mongrel ()
1968{
1969  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970  if eval "test \"\${$3+set}\"" = set; then :
1971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1972$as_echo_n "checking for $2... " >&6; }
1973if eval "test \"\${$3+set}\"" = set; then :
1974  $as_echo_n "(cached) " >&6
1975fi
1976eval ac_res=\$$3
1977	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978$as_echo "$ac_res" >&6; }
1979else
1980  # Is the header compilable?
1981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1982$as_echo_n "checking $2 usability... " >&6; }
1983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984/* end confdefs.h.  */
1985$4
1986#include <$2>
1987_ACEOF
1988if ac_fn_cxx_try_compile "$LINENO"; then :
1989  ac_header_compiler=yes
1990else
1991  ac_header_compiler=no
1992fi
1993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1995$as_echo "$ac_header_compiler" >&6; }
1996
1997# Is the header present?
1998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1999$as_echo_n "checking $2 presence... " >&6; }
2000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001/* end confdefs.h.  */
2002#include <$2>
2003_ACEOF
2004if ac_fn_cxx_try_cpp "$LINENO"; then :
2005  ac_header_preproc=yes
2006else
2007  ac_header_preproc=no
2008fi
2009rm -f conftest.err conftest.$ac_ext
2010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2011$as_echo "$ac_header_preproc" >&6; }
2012
2013# So?  What about this header?
2014case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2015  yes:no: )
2016    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2017$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2018    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2019$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2020    ;;
2021  no:yes:* )
2022    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2023$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2024    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2025$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2026    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2027$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2028    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2029$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2030    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2031$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2032( $as_echo "## ----------------------------------------------------- ##
2033## Report this to courier-maildrop@lists.sourceforge.net ##
2034## ----------------------------------------------------- ##"
2035     ) | sed "s/^/$as_me: WARNING:     /" >&2
2036    ;;
2037esac
2038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039$as_echo_n "checking for $2... " >&6; }
2040if eval "test \"\${$3+set}\"" = set; then :
2041  $as_echo_n "(cached) " >&6
2042else
2043  eval "$3=\$ac_header_compiler"
2044fi
2045eval ac_res=\$$3
2046	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047$as_echo "$ac_res" >&6; }
2048fi
2049  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050
2051} # ac_fn_cxx_check_header_mongrel
2052
2053# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2054# -------------------------------------------
2055# Tests whether TYPE exists after having included INCLUDES, setting cache
2056# variable VAR accordingly.
2057ac_fn_c_check_type ()
2058{
2059  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061$as_echo_n "checking for $2... " >&6; }
2062if eval "test \"\${$3+set}\"" = set; then :
2063  $as_echo_n "(cached) " >&6
2064else
2065  eval "$3=no"
2066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067/* end confdefs.h.  */
2068$4
2069int
2070main ()
2071{
2072if (sizeof ($2))
2073	 return 0;
2074  ;
2075  return 0;
2076}
2077_ACEOF
2078if ac_fn_c_try_compile "$LINENO"; then :
2079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h.  */
2081$4
2082int
2083main ()
2084{
2085if (sizeof (($2)))
2086	    return 0;
2087  ;
2088  return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_compile "$LINENO"; then :
2092
2093else
2094  eval "$3=yes"
2095fi
2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097fi
2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099fi
2100eval ac_res=\$$3
2101	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102$as_echo "$ac_res" >&6; }
2103  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104
2105} # ac_fn_c_check_type
2106cat >config.log <<_ACEOF
2107This file contains any messages produced by compilers while
2108running configure, to aid debugging if configure makes a mistake.
2109
2110It was created by maildir $as_me 0.11, which was
2111generated by GNU Autoconf 2.66.  Invocation command line was
2112
2113  $ $0 $@
2114
2115_ACEOF
2116exec 5>>config.log
2117{
2118cat <<_ASUNAME
2119## --------- ##
2120## Platform. ##
2121## --------- ##
2122
2123hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2124uname -m = `(uname -m) 2>/dev/null || echo unknown`
2125uname -r = `(uname -r) 2>/dev/null || echo unknown`
2126uname -s = `(uname -s) 2>/dev/null || echo unknown`
2127uname -v = `(uname -v) 2>/dev/null || echo unknown`
2128
2129/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2130/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2131
2132/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2133/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2134/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2135/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2136/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2137/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2138/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2139
2140_ASUNAME
2141
2142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143for as_dir in $PATH
2144do
2145  IFS=$as_save_IFS
2146  test -z "$as_dir" && as_dir=.
2147    $as_echo "PATH: $as_dir"
2148  done
2149IFS=$as_save_IFS
2150
2151} >&5
2152
2153cat >&5 <<_ACEOF
2154
2155
2156## ----------- ##
2157## Core tests. ##
2158## ----------- ##
2159
2160_ACEOF
2161
2162
2163# Keep a trace of the command line.
2164# Strip out --no-create and --no-recursion so they do not pile up.
2165# Strip out --silent because we don't want to record it for future runs.
2166# Also quote any args containing shell meta-characters.
2167# Make two passes to allow for proper duplicate-argument suppression.
2168ac_configure_args=
2169ac_configure_args0=
2170ac_configure_args1=
2171ac_must_keep_next=false
2172for ac_pass in 1 2
2173do
2174  for ac_arg
2175  do
2176    case $ac_arg in
2177    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2178    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2179    | -silent | --silent | --silen | --sile | --sil)
2180      continue ;;
2181    *\'*)
2182      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2183    esac
2184    case $ac_pass in
2185    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2186    2)
2187      as_fn_append ac_configure_args1 " '$ac_arg'"
2188      if test $ac_must_keep_next = true; then
2189	ac_must_keep_next=false # Got value, back to normal.
2190      else
2191	case $ac_arg in
2192	  *=* | --config-cache | -C | -disable-* | --disable-* \
2193	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2194	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2195	  | -with-* | --with-* | -without-* | --without-* | --x)
2196	    case "$ac_configure_args0 " in
2197	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2198	    esac
2199	    ;;
2200	  -* ) ac_must_keep_next=true ;;
2201	esac
2202      fi
2203      as_fn_append ac_configure_args " '$ac_arg'"
2204      ;;
2205    esac
2206  done
2207done
2208{ ac_configure_args0=; unset ac_configure_args0;}
2209{ ac_configure_args1=; unset ac_configure_args1;}
2210
2211# When interrupted or exit'd, cleanup temporary files, and complete
2212# config.log.  We remove comments because anyway the quotes in there
2213# would cause problems or look ugly.
2214# WARNING: Use '\'' to represent an apostrophe within the trap.
2215# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2216trap 'exit_status=$?
2217  # Save into config.log some information that might help in debugging.
2218  {
2219    echo
2220
2221    $as_echo "## ---------------- ##
2222## Cache variables. ##
2223## ---------------- ##"
2224    echo
2225    # The following way of writing the cache mishandles newlines in values,
2226(
2227  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2228    eval ac_val=\$$ac_var
2229    case $ac_val in #(
2230    *${as_nl}*)
2231      case $ac_var in #(
2232      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2233$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2234      esac
2235      case $ac_var in #(
2236      _ | IFS | as_nl) ;; #(
2237      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2238      *) { eval $ac_var=; unset $ac_var;} ;;
2239      esac ;;
2240    esac
2241  done
2242  (set) 2>&1 |
2243    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2244    *${as_nl}ac_space=\ *)
2245      sed -n \
2246	"s/'\''/'\''\\\\'\'''\''/g;
2247	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2248      ;; #(
2249    *)
2250      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2251      ;;
2252    esac |
2253    sort
2254)
2255    echo
2256
2257    $as_echo "## ----------------- ##
2258## Output variables. ##
2259## ----------------- ##"
2260    echo
2261    for ac_var in $ac_subst_vars
2262    do
2263      eval ac_val=\$$ac_var
2264      case $ac_val in
2265      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266      esac
2267      $as_echo "$ac_var='\''$ac_val'\''"
2268    done | sort
2269    echo
2270
2271    if test -n "$ac_subst_files"; then
2272      $as_echo "## ------------------- ##
2273## File substitutions. ##
2274## ------------------- ##"
2275      echo
2276      for ac_var in $ac_subst_files
2277      do
2278	eval ac_val=\$$ac_var
2279	case $ac_val in
2280	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281	esac
2282	$as_echo "$ac_var='\''$ac_val'\''"
2283      done | sort
2284      echo
2285    fi
2286
2287    if test -s confdefs.h; then
2288      $as_echo "## ----------- ##
2289## confdefs.h. ##
2290## ----------- ##"
2291      echo
2292      cat confdefs.h
2293      echo
2294    fi
2295    test "$ac_signal" != 0 &&
2296      $as_echo "$as_me: caught signal $ac_signal"
2297    $as_echo "$as_me: exit $exit_status"
2298  } >&5
2299  rm -f core *.core core.conftest.* &&
2300    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2301    exit $exit_status
2302' 0
2303for ac_signal in 1 2 13 15; do
2304  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2305done
2306ac_signal=0
2307
2308# confdefs.h avoids OS command line length limits that DEFS can exceed.
2309rm -f -r conftest* confdefs.h
2310
2311$as_echo "/* confdefs.h */" > confdefs.h
2312
2313# Predefined preprocessor variables.
2314
2315cat >>confdefs.h <<_ACEOF
2316#define PACKAGE_NAME "$PACKAGE_NAME"
2317_ACEOF
2318
2319cat >>confdefs.h <<_ACEOF
2320#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2321_ACEOF
2322
2323cat >>confdefs.h <<_ACEOF
2324#define PACKAGE_VERSION "$PACKAGE_VERSION"
2325_ACEOF
2326
2327cat >>confdefs.h <<_ACEOF
2328#define PACKAGE_STRING "$PACKAGE_STRING"
2329_ACEOF
2330
2331cat >>confdefs.h <<_ACEOF
2332#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2333_ACEOF
2334
2335cat >>confdefs.h <<_ACEOF
2336#define PACKAGE_URL "$PACKAGE_URL"
2337_ACEOF
2338
2339
2340# Let the site file select an alternate cache file if it wants to.
2341# Prefer an explicitly selected file to automatically selected ones.
2342ac_site_file1=NONE
2343ac_site_file2=NONE
2344if test -n "$CONFIG_SITE"; then
2345  # We do not want a PATH search for config.site.
2346  case $CONFIG_SITE in #((
2347    -*)  ac_site_file1=./$CONFIG_SITE;;
2348    */*) ac_site_file1=$CONFIG_SITE;;
2349    *)   ac_site_file1=./$CONFIG_SITE;;
2350  esac
2351elif test "x$prefix" != xNONE; then
2352  ac_site_file1=$prefix/share/config.site
2353  ac_site_file2=$prefix/etc/config.site
2354else
2355  ac_site_file1=$ac_default_prefix/share/config.site
2356  ac_site_file2=$ac_default_prefix/etc/config.site
2357fi
2358for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2359do
2360  test "x$ac_site_file" = xNONE && continue
2361  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2362    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2363$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2364    sed 's/^/| /' "$ac_site_file" >&5
2365    . "$ac_site_file" \
2366      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2368as_fn_error $? "failed to load site script $ac_site_file
2369See \`config.log' for more details" "$LINENO" 5; }
2370  fi
2371done
2372
2373if test -r "$cache_file"; then
2374  # Some versions of bash will fail to source /dev/null (special files
2375  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2376  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2377    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2378$as_echo "$as_me: loading cache $cache_file" >&6;}
2379    case $cache_file in
2380      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2381      *)                      . "./$cache_file";;
2382    esac
2383  fi
2384else
2385  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2386$as_echo "$as_me: creating cache $cache_file" >&6;}
2387  >$cache_file
2388fi
2389
2390# Check that the precious variables saved in the cache have kept the same
2391# value.
2392ac_cache_corrupted=false
2393for ac_var in $ac_precious_vars; do
2394  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2395  eval ac_new_set=\$ac_env_${ac_var}_set
2396  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2397  eval ac_new_val=\$ac_env_${ac_var}_value
2398  case $ac_old_set,$ac_new_set in
2399    set,)
2400      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2401$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2402      ac_cache_corrupted=: ;;
2403    ,set)
2404      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2405$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2406      ac_cache_corrupted=: ;;
2407    ,);;
2408    *)
2409      if test "x$ac_old_val" != "x$ac_new_val"; then
2410	# differences in whitespace do not lead to failure.
2411	ac_old_val_w=`echo x $ac_old_val`
2412	ac_new_val_w=`echo x $ac_new_val`
2413	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2414	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2415$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2416	  ac_cache_corrupted=:
2417	else
2418	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2419$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2420	  eval $ac_var=\$ac_old_val
2421	fi
2422	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2423$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2424	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2425$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2426      fi;;
2427  esac
2428  # Pass precious variables to config.status.
2429  if test "$ac_new_set" = set; then
2430    case $ac_new_val in
2431    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2432    *) ac_arg=$ac_var=$ac_new_val ;;
2433    esac
2434    case " $ac_configure_args " in
2435      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2436      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2437    esac
2438  fi
2439done
2440if $ac_cache_corrupted; then
2441  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2443  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2444$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2445  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2446fi
2447## -------------------- ##
2448## Main body of script. ##
2449## -------------------- ##
2450
2451ac_ext=c
2452ac_cpp='$CPP $CPPFLAGS'
2453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456
2457
2458
2459>confdefs.h  # Kill PACKAGE_ macros
2460
2461
2462LPATH="$PATH:/usr/local/bin"
2463ac_aux_dir=
2464for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2465  if test -f "$ac_dir/install-sh"; then
2466    ac_aux_dir=$ac_dir
2467    ac_install_sh="$ac_aux_dir/install-sh -c"
2468    break
2469  elif test -f "$ac_dir/install.sh"; then
2470    ac_aux_dir=$ac_dir
2471    ac_install_sh="$ac_aux_dir/install.sh -c"
2472    break
2473  elif test -f "$ac_dir/shtool"; then
2474    ac_aux_dir=$ac_dir
2475    ac_install_sh="$ac_aux_dir/shtool install -c"
2476    break
2477  fi
2478done
2479if test -z "$ac_aux_dir"; then
2480  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2481fi
2482
2483# These three variables are undocumented and unsupported,
2484# and are intended to be withdrawn in a future Autoconf release.
2485# They can cause serious problems if a builder's source tree is in a directory
2486# whose full name contains unusual characters.
2487ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2488ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2489ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2490
2491
2492# Make sure we can run config.sub.
2493$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2494  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2495
2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2497$as_echo_n "checking build system type... " >&6; }
2498if test "${ac_cv_build+set}" = set; then :
2499  $as_echo_n "(cached) " >&6
2500else
2501  ac_build_alias=$build_alias
2502test "x$ac_build_alias" = x &&
2503  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2504test "x$ac_build_alias" = x &&
2505  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2506ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2507  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2508
2509fi
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2511$as_echo "$ac_cv_build" >&6; }
2512case $ac_cv_build in
2513*-*-*) ;;
2514*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2515esac
2516build=$ac_cv_build
2517ac_save_IFS=$IFS; IFS='-'
2518set x $ac_cv_build
2519shift
2520build_cpu=$1
2521build_vendor=$2
2522shift; shift
2523# Remember, the first character of IFS is used to create $*,
2524# except with old shells:
2525build_os=$*
2526IFS=$ac_save_IFS
2527case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2528
2529
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2531$as_echo_n "checking host system type... " >&6; }
2532if test "${ac_cv_host+set}" = set; then :
2533  $as_echo_n "(cached) " >&6
2534else
2535  if test "x$host_alias" = x; then
2536  ac_cv_host=$ac_cv_build
2537else
2538  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2539    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2540fi
2541
2542fi
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2544$as_echo "$ac_cv_host" >&6; }
2545case $ac_cv_host in
2546*-*-*) ;;
2547*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2548esac
2549host=$ac_cv_host
2550ac_save_IFS=$IFS; IFS='-'
2551set x $ac_cv_host
2552shift
2553host_cpu=$1
2554host_vendor=$2
2555shift; shift
2556# Remember, the first character of IFS is used to create $*,
2557# except with old shells:
2558host_os=$*
2559IFS=$ac_save_IFS
2560case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2561
2562
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2564$as_echo_n "checking target system type... " >&6; }
2565if test "${ac_cv_target+set}" = set; then :
2566  $as_echo_n "(cached) " >&6
2567else
2568  if test "x$target_alias" = x; then
2569  ac_cv_target=$ac_cv_host
2570else
2571  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2572    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2573fi
2574
2575fi
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2577$as_echo "$ac_cv_target" >&6; }
2578case $ac_cv_target in
2579*-*-*) ;;
2580*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2581esac
2582target=$ac_cv_target
2583ac_save_IFS=$IFS; IFS='-'
2584set x $ac_cv_target
2585shift
2586target_cpu=$1
2587target_vendor=$2
2588shift; shift
2589# Remember, the first character of IFS is used to create $*,
2590# except with old shells:
2591target_os=$*
2592IFS=$ac_save_IFS
2593case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2594
2595
2596# The aliases save the names the user supplied, while $host etc.
2597# will get canonicalized.
2598test -n "$target_alias" &&
2599  test "$program_prefix$program_suffix$program_transform_name" = \
2600    NONENONEs,x,x, &&
2601  program_prefix=${target_alias}-
2602
2603am__api_version='1.11'
2604
2605# Find a good install program.  We prefer a C program (faster),
2606# so one script is as good as another.  But avoid the broken or
2607# incompatible versions:
2608# SysV /etc/install, /usr/sbin/install
2609# SunOS /usr/etc/install
2610# IRIX /sbin/install
2611# AIX /bin/install
2612# AmigaOS /C/install, which installs bootblocks on floppy discs
2613# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2614# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2615# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2616# OS/2's system install, which has a completely different semantic
2617# ./install, which can be erroneously created by make from ./install.sh.
2618# Reject install programs that cannot install multiple files.
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2620$as_echo_n "checking for a BSD-compatible install... " >&6; }
2621if test -z "$INSTALL"; then
2622if test "${ac_cv_path_install+set}" = set; then :
2623  $as_echo_n "(cached) " >&6
2624else
2625  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628  IFS=$as_save_IFS
2629  test -z "$as_dir" && as_dir=.
2630    # Account for people who put trailing slashes in PATH elements.
2631case $as_dir/ in #((
2632  ./ | .// | /[cC]/* | \
2633  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2634  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2635  /usr/ucb/* ) ;;
2636  *)
2637    # OSF1 and SCO ODT 3.0 have their own names for install.
2638    # Don't use installbsd from OSF since it installs stuff as root
2639    # by default.
2640    for ac_prog in ginstall scoinst install; do
2641      for ac_exec_ext in '' $ac_executable_extensions; do
2642	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2643	  if test $ac_prog = install &&
2644	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2645	    # AIX install.  It has an incompatible calling convention.
2646	    :
2647	  elif test $ac_prog = install &&
2648	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2649	    # program-specific install script used by HP pwplus--don't use.
2650	    :
2651	  else
2652	    rm -rf conftest.one conftest.two conftest.dir
2653	    echo one > conftest.one
2654	    echo two > conftest.two
2655	    mkdir conftest.dir
2656	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2657	      test -s conftest.one && test -s conftest.two &&
2658	      test -s conftest.dir/conftest.one &&
2659	      test -s conftest.dir/conftest.two
2660	    then
2661	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2662	      break 3
2663	    fi
2664	  fi
2665	fi
2666      done
2667    done
2668    ;;
2669esac
2670
2671  done
2672IFS=$as_save_IFS
2673
2674rm -rf conftest.one conftest.two conftest.dir
2675
2676fi
2677  if test "${ac_cv_path_install+set}" = set; then
2678    INSTALL=$ac_cv_path_install
2679  else
2680    # As a last resort, use the slow shell script.  Don't cache a
2681    # value for INSTALL within a source directory, because that will
2682    # break other packages using the cache if that directory is
2683    # removed, or if the value is a relative name.
2684    INSTALL=$ac_install_sh
2685  fi
2686fi
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2688$as_echo "$INSTALL" >&6; }
2689
2690# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2691# It thinks the first close brace ends the variable substitution.
2692test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2693
2694test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2695
2696test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2697
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2699$as_echo_n "checking whether build environment is sane... " >&6; }
2700# Just in case
2701sleep 1
2702echo timestamp > conftest.file
2703# Reject unsafe characters in $srcdir or the absolute working directory
2704# name.  Accept space and tab only in the latter.
2705am_lf='
2706'
2707case `pwd` in
2708  *[\\\"\#\$\&\'\`$am_lf]*)
2709    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2710esac
2711case $srcdir in
2712  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2713    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2714esac
2715
2716# Do `set' in a subshell so we don't clobber the current shell's
2717# arguments.  Must try -L first in case configure is actually a
2718# symlink; some systems play weird games with the mod time of symlinks
2719# (eg FreeBSD returns the mod time of the symlink's containing
2720# directory).
2721if (
2722   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2723   if test "$*" = "X"; then
2724      # -L didn't work.
2725      set X `ls -t "$srcdir/configure" conftest.file`
2726   fi
2727   rm -f conftest.file
2728   if test "$*" != "X $srcdir/configure conftest.file" \
2729      && test "$*" != "X conftest.file $srcdir/configure"; then
2730
2731      # If neither matched, then we have a broken ls.  This can happen
2732      # if, for instance, CONFIG_SHELL is bash and it inherits a
2733      # broken ls alias from the environment.  This has actually
2734      # happened.  Such a system could not be considered "sane".
2735      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2736alias in your environment" "$LINENO" 5
2737   fi
2738
2739   test "$2" = conftest.file
2740   )
2741then
2742   # Ok.
2743   :
2744else
2745   as_fn_error $? "newly created file is older than distributed files!
2746Check your system clock" "$LINENO" 5
2747fi
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2749$as_echo "yes" >&6; }
2750test "$program_prefix" != NONE &&
2751  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2752# Use a double $ so make ignores it.
2753test "$program_suffix" != NONE &&
2754  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2755# Double any \ or $.
2756# By default was `s,x,x', remove it if useless.
2757ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2758program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2759
2760# expand $ac_aux_dir to an absolute path
2761am_aux_dir=`cd $ac_aux_dir && pwd`
2762
2763if test x"${MISSING+set}" != xset; then
2764  case $am_aux_dir in
2765  *\ * | *\	*)
2766    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2767  *)
2768    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2769  esac
2770fi
2771# Use eval to expand $SHELL
2772if eval "$MISSING --run true"; then
2773  am_missing_run="$MISSING --run "
2774else
2775  am_missing_run=
2776  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2777$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2778fi
2779
2780if test x"${install_sh}" != xset; then
2781  case $am_aux_dir in
2782  *\ * | *\	*)
2783    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2784  *)
2785    install_sh="\${SHELL} $am_aux_dir/install-sh"
2786  esac
2787fi
2788
2789# Installed binaries are usually stripped using `strip' when the user
2790# run `make install-strip'.  However `strip' might not be the right
2791# tool to use in cross-compilation environments, therefore Automake
2792# will honor the `STRIP' environment variable to overrule this program.
2793if test "$cross_compiling" != no; then
2794  if test -n "$ac_tool_prefix"; then
2795  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2796set dummy ${ac_tool_prefix}strip; ac_word=$2
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798$as_echo_n "checking for $ac_word... " >&6; }
2799if test "${ac_cv_prog_STRIP+set}" = set; then :
2800  $as_echo_n "(cached) " >&6
2801else
2802  if test -n "$STRIP"; then
2803  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2804else
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808  IFS=$as_save_IFS
2809  test -z "$as_dir" && as_dir=.
2810    for ac_exec_ext in '' $ac_executable_extensions; do
2811  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2813    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814    break 2
2815  fi
2816done
2817  done
2818IFS=$as_save_IFS
2819
2820fi
2821fi
2822STRIP=$ac_cv_prog_STRIP
2823if test -n "$STRIP"; then
2824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2825$as_echo "$STRIP" >&6; }
2826else
2827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828$as_echo "no" >&6; }
2829fi
2830
2831
2832fi
2833if test -z "$ac_cv_prog_STRIP"; then
2834  ac_ct_STRIP=$STRIP
2835  # Extract the first word of "strip", so it can be a program name with args.
2836set dummy strip; ac_word=$2
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838$as_echo_n "checking for $ac_word... " >&6; }
2839if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2840  $as_echo_n "(cached) " >&6
2841else
2842  if test -n "$ac_ct_STRIP"; then
2843  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848  IFS=$as_save_IFS
2849  test -z "$as_dir" && as_dir=.
2850    for ac_exec_ext in '' $ac_executable_extensions; do
2851  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852    ac_cv_prog_ac_ct_STRIP="strip"
2853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854    break 2
2855  fi
2856done
2857  done
2858IFS=$as_save_IFS
2859
2860fi
2861fi
2862ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2863if test -n "$ac_ct_STRIP"; then
2864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2865$as_echo "$ac_ct_STRIP" >&6; }
2866else
2867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868$as_echo "no" >&6; }
2869fi
2870
2871  if test "x$ac_ct_STRIP" = x; then
2872    STRIP=":"
2873  else
2874    case $cross_compiling:$ac_tool_warned in
2875yes:)
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878ac_tool_warned=yes ;;
2879esac
2880    STRIP=$ac_ct_STRIP
2881  fi
2882else
2883  STRIP="$ac_cv_prog_STRIP"
2884fi
2885
2886fi
2887INSTALL_STRIP_PROGRAM="install  -s -m 555 -s"
2888
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2890$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2891if test -z "$MKDIR_P"; then
2892  if test "${ac_cv_path_mkdir+set}" = set; then :
2893  $as_echo_n "(cached) " >&6
2894else
2895  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2897do
2898  IFS=$as_save_IFS
2899  test -z "$as_dir" && as_dir=.
2900    for ac_prog in mkdir gmkdir; do
2901	 for ac_exec_ext in '' $ac_executable_extensions; do
2902	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2903	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2904	     'mkdir (GNU coreutils) '* | \
2905	     'mkdir (coreutils) '* | \
2906	     'mkdir (fileutils) '4.1*)
2907	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2908	       break 3;;
2909	   esac
2910	 done
2911       done
2912  done
2913IFS=$as_save_IFS
2914
2915fi
2916
2917  test -d ./--version && rmdir ./--version
2918  if test "${ac_cv_path_mkdir+set}" = set; then
2919    MKDIR_P="$ac_cv_path_mkdir -p"
2920  else
2921    # As a last resort, use the slow shell script.  Don't cache a
2922    # value for MKDIR_P within a source directory, because that will
2923    # break other packages using the cache if that directory is
2924    # removed, or if the value is a relative name.
2925    MKDIR_P="$ac_install_sh -d"
2926  fi
2927fi
2928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2929$as_echo "$MKDIR_P" >&6; }
2930
2931mkdir_p="$MKDIR_P"
2932case $mkdir_p in
2933  [\\/$]* | ?:[\\/]*) ;;
2934  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2935esac
2936
2937for ac_prog in gawk mawk nawk awk
2938do
2939  # Extract the first word of "$ac_prog", so it can be a program name with args.
2940set dummy $ac_prog; ac_word=$2
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942$as_echo_n "checking for $ac_word... " >&6; }
2943if test "${ac_cv_prog_AWK+set}" = set; then :
2944  $as_echo_n "(cached) " >&6
2945else
2946  if test -n "$AWK"; then
2947  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2948else
2949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950for as_dir in $PATH
2951do
2952  IFS=$as_save_IFS
2953  test -z "$as_dir" && as_dir=.
2954    for ac_exec_ext in '' $ac_executable_extensions; do
2955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956    ac_cv_prog_AWK="$ac_prog"
2957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958    break 2
2959  fi
2960done
2961  done
2962IFS=$as_save_IFS
2963
2964fi
2965fi
2966AWK=$ac_cv_prog_AWK
2967if test -n "$AWK"; then
2968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2969$as_echo "$AWK" >&6; }
2970else
2971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972$as_echo "no" >&6; }
2973fi
2974
2975
2976  test -n "$AWK" && break
2977done
2978
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2980$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2981set x ${MAKE-make}
2982ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2983if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2984  $as_echo_n "(cached) " >&6
2985else
2986  cat >conftest.make <<\_ACEOF
2987SHELL = /bin/sh
2988all:
2989	@echo '@@@%%%=$(MAKE)=@@@%%%'
2990_ACEOF
2991# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2992case `${MAKE-make} -f conftest.make 2>/dev/null` in
2993  *@@@%%%=?*=@@@%%%*)
2994    eval ac_cv_prog_make_${ac_make}_set=yes;;
2995  *)
2996    eval ac_cv_prog_make_${ac_make}_set=no;;
2997esac
2998rm -f conftest.make
2999fi
3000if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3002$as_echo "yes" >&6; }
3003  SET_MAKE=
3004else
3005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006$as_echo "no" >&6; }
3007  SET_MAKE="MAKE=${MAKE-make}"
3008fi
3009
3010rm -rf .tst 2>/dev/null
3011mkdir .tst 2>/dev/null
3012if test -d .tst; then
3013  am__leading_dot=.
3014else
3015  am__leading_dot=_
3016fi
3017rmdir .tst 2>/dev/null
3018
3019if test "`cd $srcdir && pwd`" != "`pwd`"; then
3020  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3021  # is not polluted with repeated "-I."
3022  am__isrc=' -I$(srcdir)'
3023  # test to see if srcdir already configured
3024  if test -f $srcdir/config.status; then
3025    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3026  fi
3027fi
3028
3029# test whether we have cygpath
3030if test -z "$CYGPATH_W"; then
3031  if (cygpath --version) >/dev/null 2>/dev/null; then
3032    CYGPATH_W='cygpath -w'
3033  else
3034    CYGPATH_W=echo
3035  fi
3036fi
3037
3038
3039# Define the identity of the package.
3040 PACKAGE='maildir'
3041 VERSION='0.11'
3042
3043
3044# Some tools Automake needs.
3045
3046ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3047
3048
3049AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3050
3051
3052AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3053
3054
3055AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3056
3057
3058MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3059
3060# We need awk for the "check" target.  The system "awk" is bad on
3061# some platforms.
3062# Always define AMTAR for backward compatibility.
3063
3064AMTAR=${AMTAR-"${am_missing_run}tar"}
3065
3066am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3067
3068
3069
3070
3071
3072ac_config_headers="$ac_config_headers config.h"
3073
3074
3075for ac_prog in gawk mawk nawk awk
3076do
3077  # Extract the first word of "$ac_prog", so it can be a program name with args.
3078set dummy $ac_prog; ac_word=$2
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080$as_echo_n "checking for $ac_word... " >&6; }
3081if test "${ac_cv_prog_AWK+set}" = set; then :
3082  $as_echo_n "(cached) " >&6
3083else
3084  if test -n "$AWK"; then
3085  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3086else
3087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088for as_dir in $PATH
3089do
3090  IFS=$as_save_IFS
3091  test -z "$as_dir" && as_dir=.
3092    for ac_exec_ext in '' $ac_executable_extensions; do
3093  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094    ac_cv_prog_AWK="$ac_prog"
3095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096    break 2
3097  fi
3098done
3099  done
3100IFS=$as_save_IFS
3101
3102fi
3103fi
3104AWK=$ac_cv_prog_AWK
3105if test -n "$AWK"; then
3106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3107$as_echo "$AWK" >&6; }
3108else
3109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110$as_echo "no" >&6; }
3111fi
3112
3113
3114  test -n "$AWK" && break
3115done
3116
3117DEPDIR="${am__leading_dot}deps"
3118
3119ac_config_commands="$ac_config_commands depfiles"
3120
3121
3122am_make=${MAKE-make}
3123cat > confinc << 'END'
3124am__doit:
3125	@echo this is the am__doit target
3126.PHONY: am__doit
3127END
3128# If we don't find an include directive, just comment out the code.
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3130$as_echo_n "checking for style of include used by $am_make... " >&6; }
3131am__include="#"
3132am__quote=
3133_am_result=none
3134# First try GNU make style include.
3135echo "include confinc" > confmf
3136# Ignore all kinds of additional output from `make'.
3137case `$am_make -s -f confmf 2> /dev/null` in #(
3138*the\ am__doit\ target*)
3139  am__include=include
3140  am__quote=
3141  _am_result=GNU
3142  ;;
3143esac
3144# Now try BSD make style include.
3145if test "$am__include" = "#"; then
3146   echo '.include "confinc"' > confmf
3147   case `$am_make -s -f confmf 2> /dev/null` in #(
3148   *the\ am__doit\ target*)
3149     am__include=.include
3150     am__quote="\""
3151     _am_result=BSD
3152     ;;
3153   esac
3154fi
3155
3156
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3158$as_echo "$_am_result" >&6; }
3159rm -f confinc confmf
3160
3161# Check whether --enable-dependency-tracking was given.
3162if test "${enable_dependency_tracking+set}" = set; then :
3163  enableval=$enable_dependency_tracking;
3164fi
3165
3166if test "x$enable_dependency_tracking" != xno; then
3167  am_depcomp="$ac_aux_dir/depcomp"
3168  AMDEPBACKSLASH='\'
3169fi
3170 if test "x$enable_dependency_tracking" != xno; then
3171  AMDEP_TRUE=
3172  AMDEP_FALSE='#'
3173else
3174  AMDEP_TRUE='#'
3175  AMDEP_FALSE=
3176fi
3177
3178
3179ac_ext=c
3180ac_cpp='$CPP $CPPFLAGS'
3181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184if test -n "$ac_tool_prefix"; then
3185  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3186set dummy ${ac_tool_prefix}gcc; ac_word=$2
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188$as_echo_n "checking for $ac_word... " >&6; }
3189if test "${ac_cv_prog_CC+set}" = set; then :
3190  $as_echo_n "(cached) " >&6
3191else
3192  if test -n "$CC"; then
3193  ac_cv_prog_CC="$CC" # Let the user override the test.
3194else
3195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196for as_dir in $PATH
3197do
3198  IFS=$as_save_IFS
3199  test -z "$as_dir" && as_dir=.
3200    for ac_exec_ext in '' $ac_executable_extensions; do
3201  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204    break 2
3205  fi
3206done
3207  done
3208IFS=$as_save_IFS
3209
3210fi
3211fi
3212CC=$ac_cv_prog_CC
3213if test -n "$CC"; then
3214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3215$as_echo "$CC" >&6; }
3216else
3217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218$as_echo "no" >&6; }
3219fi
3220
3221
3222fi
3223if test -z "$ac_cv_prog_CC"; then
3224  ac_ct_CC=$CC
3225  # Extract the first word of "gcc", so it can be a program name with args.
3226set dummy gcc; ac_word=$2
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228$as_echo_n "checking for $ac_word... " >&6; }
3229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3230  $as_echo_n "(cached) " >&6
3231else
3232  if test -n "$ac_ct_CC"; then
3233  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3234else
3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236for as_dir in $PATH
3237do
3238  IFS=$as_save_IFS
3239  test -z "$as_dir" && as_dir=.
3240    for ac_exec_ext in '' $ac_executable_extensions; do
3241  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3242    ac_cv_prog_ac_ct_CC="gcc"
3243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244    break 2
3245  fi
3246done
3247  done
3248IFS=$as_save_IFS
3249
3250fi
3251fi
3252ac_ct_CC=$ac_cv_prog_ac_ct_CC
3253if test -n "$ac_ct_CC"; then
3254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3255$as_echo "$ac_ct_CC" >&6; }
3256else
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258$as_echo "no" >&6; }
3259fi
3260
3261  if test "x$ac_ct_CC" = x; then
3262    CC=""
3263  else
3264    case $cross_compiling:$ac_tool_warned in
3265yes:)
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3268ac_tool_warned=yes ;;
3269esac
3270    CC=$ac_ct_CC
3271  fi
3272else
3273  CC="$ac_cv_prog_CC"
3274fi
3275
3276if test -z "$CC"; then
3277          if test -n "$ac_tool_prefix"; then
3278    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3279set dummy ${ac_tool_prefix}cc; ac_word=$2
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281$as_echo_n "checking for $ac_word... " >&6; }
3282if test "${ac_cv_prog_CC+set}" = set; then :
3283  $as_echo_n "(cached) " >&6
3284else
3285  if test -n "$CC"; then
3286  ac_cv_prog_CC="$CC" # Let the user override the test.
3287else
3288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289for as_dir in $PATH
3290do
3291  IFS=$as_save_IFS
3292  test -z "$as_dir" && as_dir=.
3293    for ac_exec_ext in '' $ac_executable_extensions; do
3294  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295    ac_cv_prog_CC="${ac_tool_prefix}cc"
3296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297    break 2
3298  fi
3299done
3300  done
3301IFS=$as_save_IFS
3302
3303fi
3304fi
3305CC=$ac_cv_prog_CC
3306if test -n "$CC"; then
3307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308$as_echo "$CC" >&6; }
3309else
3310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311$as_echo "no" >&6; }
3312fi
3313
3314
3315  fi
3316fi
3317if test -z "$CC"; then
3318  # Extract the first word of "cc", so it can be a program name with args.
3319set dummy cc; ac_word=$2
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321$as_echo_n "checking for $ac_word... " >&6; }
3322if test "${ac_cv_prog_CC+set}" = set; then :
3323  $as_echo_n "(cached) " >&6
3324else
3325  if test -n "$CC"; then
3326  ac_cv_prog_CC="$CC" # Let the user override the test.
3327else
3328  ac_prog_rejected=no
3329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330for as_dir in $PATH
3331do
3332  IFS=$as_save_IFS
3333  test -z "$as_dir" && as_dir=.
3334    for ac_exec_ext in '' $ac_executable_extensions; do
3335  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3336    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3337       ac_prog_rejected=yes
3338       continue
3339     fi
3340    ac_cv_prog_CC="cc"
3341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342    break 2
3343  fi
3344done
3345  done
3346IFS=$as_save_IFS
3347
3348if test $ac_prog_rejected = yes; then
3349  # We found a bogon in the path, so make sure we never use it.
3350  set dummy $ac_cv_prog_CC
3351  shift
3352  if test $# != 0; then
3353    # We chose a different compiler from the bogus one.
3354    # However, it has the same basename, so the bogon will be chosen
3355    # first if we set CC to just the basename; use the full file name.
3356    shift
3357    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3358  fi
3359fi
3360fi
3361fi
3362CC=$ac_cv_prog_CC
3363if test -n "$CC"; then
3364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3365$as_echo "$CC" >&6; }
3366else
3367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368$as_echo "no" >&6; }
3369fi
3370
3371
3372fi
3373if test -z "$CC"; then
3374  if test -n "$ac_tool_prefix"; then
3375  for ac_prog in cl.exe
3376  do
3377    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3378set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380$as_echo_n "checking for $ac_word... " >&6; }
3381if test "${ac_cv_prog_CC+set}" = set; then :
3382  $as_echo_n "(cached) " >&6
3383else
3384  if test -n "$CC"; then
3385  ac_cv_prog_CC="$CC" # Let the user override the test.
3386else
3387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388for as_dir in $PATH
3389do
3390  IFS=$as_save_IFS
3391  test -z "$as_dir" && as_dir=.
3392    for ac_exec_ext in '' $ac_executable_extensions; do
3393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396    break 2
3397  fi
3398done
3399  done
3400IFS=$as_save_IFS
3401
3402fi
3403fi
3404CC=$ac_cv_prog_CC
3405if test -n "$CC"; then
3406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407$as_echo "$CC" >&6; }
3408else
3409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410$as_echo "no" >&6; }
3411fi
3412
3413
3414    test -n "$CC" && break
3415  done
3416fi
3417if test -z "$CC"; then
3418  ac_ct_CC=$CC
3419  for ac_prog in cl.exe
3420do
3421  # Extract the first word of "$ac_prog", so it can be a program name with args.
3422set dummy $ac_prog; ac_word=$2
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424$as_echo_n "checking for $ac_word... " >&6; }
3425if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3426  $as_echo_n "(cached) " >&6
3427else
3428  if test -n "$ac_ct_CC"; then
3429  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3430else
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
3434  IFS=$as_save_IFS
3435  test -z "$as_dir" && as_dir=.
3436    for ac_exec_ext in '' $ac_executable_extensions; do
3437  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3438    ac_cv_prog_ac_ct_CC="$ac_prog"
3439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440    break 2
3441  fi
3442done
3443  done
3444IFS=$as_save_IFS
3445
3446fi
3447fi
3448ac_ct_CC=$ac_cv_prog_ac_ct_CC
3449if test -n "$ac_ct_CC"; then
3450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3451$as_echo "$ac_ct_CC" >&6; }
3452else
3453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454$as_echo "no" >&6; }
3455fi
3456
3457
3458  test -n "$ac_ct_CC" && break
3459done
3460
3461  if test "x$ac_ct_CC" = x; then
3462    CC=""
3463  else
3464    case $cross_compiling:$ac_tool_warned in
3465yes:)
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3468ac_tool_warned=yes ;;
3469esac
3470    CC=$ac_ct_CC
3471  fi
3472fi
3473
3474fi
3475
3476
3477test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479as_fn_error $? "no acceptable C compiler found in \$PATH
3480See \`config.log' for more details" "$LINENO" 5; }
3481
3482# Provide some information about the compiler.
3483$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3484set X $ac_compile
3485ac_compiler=$2
3486for ac_option in --version -v -V -qversion; do
3487  { { ac_try="$ac_compiler $ac_option >&5"
3488case "(($ac_try" in
3489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490  *) ac_try_echo=$ac_try;;
3491esac
3492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493$as_echo "$ac_try_echo"; } >&5
3494  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3495  ac_status=$?
3496  if test -s conftest.err; then
3497    sed '10a\
3498... rest of stderr output deleted ...
3499         10q' conftest.err >conftest.er1
3500    cat conftest.er1 >&5
3501  fi
3502  rm -f conftest.er1 conftest.err
3503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504  test $ac_status = 0; }
3505done
3506
3507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508/* end confdefs.h.  */
3509
3510int
3511main ()
3512{
3513
3514  ;
3515  return 0;
3516}
3517_ACEOF
3518ac_clean_files_save=$ac_clean_files
3519ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3520# Try to create an executable without -o first, disregard a.out.
3521# It will help us diagnose broken compilers, and finding out an intuition
3522# of exeext.
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3524$as_echo_n "checking whether the C compiler works... " >&6; }
3525ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3526
3527# The possible output files:
3528ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3529
3530ac_rmfiles=
3531for ac_file in $ac_files
3532do
3533  case $ac_file in
3534    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3535    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3536  esac
3537done
3538rm -f $ac_rmfiles
3539
3540if { { ac_try="$ac_link_default"
3541case "(($ac_try" in
3542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543  *) ac_try_echo=$ac_try;;
3544esac
3545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546$as_echo "$ac_try_echo"; } >&5
3547  (eval "$ac_link_default") 2>&5
3548  ac_status=$?
3549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550  test $ac_status = 0; }; then :
3551  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3552# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3553# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3554# so that the user can short-circuit this test for compilers unknown to
3555# Autoconf.
3556for ac_file in $ac_files ''
3557do
3558  test -f "$ac_file" || continue
3559  case $ac_file in
3560    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3561	;;
3562    [ab].out )
3563	# We found the default executable, but exeext='' is most
3564	# certainly right.
3565	break;;
3566    *.* )
3567	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3568	then :; else
3569	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3570	fi
3571	# We set ac_cv_exeext here because the later test for it is not
3572	# safe: cross compilers may not add the suffix if given an `-o'
3573	# argument, so we may need to know it at that point already.
3574	# Even if this section looks crufty: it has the advantage of
3575	# actually working.
3576	break;;
3577    * )
3578	break;;
3579  esac
3580done
3581test "$ac_cv_exeext" = no && ac_cv_exeext=
3582
3583else
3584  ac_file=''
3585fi
3586if test -z "$ac_file"; then :
3587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588$as_echo "no" >&6; }
3589$as_echo "$as_me: failed program was:" >&5
3590sed 's/^/| /' conftest.$ac_ext >&5
3591
3592{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594as_fn_error 77 "C compiler cannot create executables
3595See \`config.log' for more details" "$LINENO" 5; }
3596else
3597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3598$as_echo "yes" >&6; }
3599fi
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3601$as_echo_n "checking for C compiler default output file name... " >&6; }
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3603$as_echo "$ac_file" >&6; }
3604ac_exeext=$ac_cv_exeext
3605
3606rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3607ac_clean_files=$ac_clean_files_save
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3609$as_echo_n "checking for suffix of executables... " >&6; }
3610if { { ac_try="$ac_link"
3611case "(($ac_try" in
3612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613  *) ac_try_echo=$ac_try;;
3614esac
3615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616$as_echo "$ac_try_echo"; } >&5
3617  (eval "$ac_link") 2>&5
3618  ac_status=$?
3619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620  test $ac_status = 0; }; then :
3621  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3622# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3623# work properly (i.e., refer to `conftest.exe'), while it won't with
3624# `rm'.
3625for ac_file in conftest.exe conftest conftest.*; do
3626  test -f "$ac_file" || continue
3627  case $ac_file in
3628    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3629    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3630	  break;;
3631    * ) break;;
3632  esac
3633done
3634else
3635  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3638See \`config.log' for more details" "$LINENO" 5; }
3639fi
3640rm -f conftest conftest$ac_cv_exeext
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3642$as_echo "$ac_cv_exeext" >&6; }
3643
3644rm -f conftest.$ac_ext
3645EXEEXT=$ac_cv_exeext
3646ac_exeext=$EXEEXT
3647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648/* end confdefs.h.  */
3649#include <stdio.h>
3650int
3651main ()
3652{
3653FILE *f = fopen ("conftest.out", "w");
3654 return ferror (f) || fclose (f) != 0;
3655
3656  ;
3657  return 0;
3658}
3659_ACEOF
3660ac_clean_files="$ac_clean_files conftest.out"
3661# Check that the compiler produces executables we can run.  If not, either
3662# the compiler is broken, or we cross compile.
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3664$as_echo_n "checking whether we are cross compiling... " >&6; }
3665if test "$cross_compiling" != yes; then
3666  { { ac_try="$ac_link"
3667case "(($ac_try" in
3668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669  *) ac_try_echo=$ac_try;;
3670esac
3671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672$as_echo "$ac_try_echo"; } >&5
3673  (eval "$ac_link") 2>&5
3674  ac_status=$?
3675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676  test $ac_status = 0; }
3677  if { ac_try='./conftest$ac_cv_exeext'
3678  { { case "(($ac_try" in
3679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680  *) ac_try_echo=$ac_try;;
3681esac
3682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683$as_echo "$ac_try_echo"; } >&5
3684  (eval "$ac_try") 2>&5
3685  ac_status=$?
3686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687  test $ac_status = 0; }; }; then
3688    cross_compiling=no
3689  else
3690    if test "$cross_compiling" = maybe; then
3691	cross_compiling=yes
3692    else
3693	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3695as_fn_error $? "cannot run C compiled programs.
3696If you meant to cross compile, use \`--host'.
3697See \`config.log' for more details" "$LINENO" 5; }
3698    fi
3699  fi
3700fi
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3702$as_echo "$cross_compiling" >&6; }
3703
3704rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3705ac_clean_files=$ac_clean_files_save
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3707$as_echo_n "checking for suffix of object files... " >&6; }
3708if test "${ac_cv_objext+set}" = set; then :
3709  $as_echo_n "(cached) " >&6
3710else
3711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712/* end confdefs.h.  */
3713
3714int
3715main ()
3716{
3717
3718  ;
3719  return 0;
3720}
3721_ACEOF
3722rm -f conftest.o conftest.obj
3723if { { ac_try="$ac_compile"
3724case "(($ac_try" in
3725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726  *) ac_try_echo=$ac_try;;
3727esac
3728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729$as_echo "$ac_try_echo"; } >&5
3730  (eval "$ac_compile") 2>&5
3731  ac_status=$?
3732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733  test $ac_status = 0; }; then :
3734  for ac_file in conftest.o conftest.obj conftest.*; do
3735  test -f "$ac_file" || continue;
3736  case $ac_file in
3737    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3738    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3739       break;;
3740  esac
3741done
3742else
3743  $as_echo "$as_me: failed program was:" >&5
3744sed 's/^/| /' conftest.$ac_ext >&5
3745
3746{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748as_fn_error $? "cannot compute suffix of object files: cannot compile
3749See \`config.log' for more details" "$LINENO" 5; }
3750fi
3751rm -f conftest.$ac_cv_objext conftest.$ac_ext
3752fi
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3754$as_echo "$ac_cv_objext" >&6; }
3755OBJEXT=$ac_cv_objext
3756ac_objext=$OBJEXT
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3758$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3759if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3760  $as_echo_n "(cached) " >&6
3761else
3762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763/* end confdefs.h.  */
3764
3765int
3766main ()
3767{
3768#ifndef __GNUC__
3769       choke me
3770#endif
3771
3772  ;
3773  return 0;
3774}
3775_ACEOF
3776if ac_fn_c_try_compile "$LINENO"; then :
3777  ac_compiler_gnu=yes
3778else
3779  ac_compiler_gnu=no
3780fi
3781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782ac_cv_c_compiler_gnu=$ac_compiler_gnu
3783
3784fi
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3786$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3787if test $ac_compiler_gnu = yes; then
3788  GCC=yes
3789else
3790  GCC=
3791fi
3792ac_test_CFLAGS=${CFLAGS+set}
3793ac_save_CFLAGS=$CFLAGS
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3795$as_echo_n "checking whether $CC accepts -g... " >&6; }
3796if test "${ac_cv_prog_cc_g+set}" = set; then :
3797  $as_echo_n "(cached) " >&6
3798else
3799  ac_save_c_werror_flag=$ac_c_werror_flag
3800   ac_c_werror_flag=yes
3801   ac_cv_prog_cc_g=no
3802   CFLAGS="-g"
3803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804/* end confdefs.h.  */
3805
3806int
3807main ()
3808{
3809
3810  ;
3811  return 0;
3812}
3813_ACEOF
3814if ac_fn_c_try_compile "$LINENO"; then :
3815  ac_cv_prog_cc_g=yes
3816else
3817  CFLAGS=""
3818      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819/* end confdefs.h.  */
3820
3821int
3822main ()
3823{
3824
3825  ;
3826  return 0;
3827}
3828_ACEOF
3829if ac_fn_c_try_compile "$LINENO"; then :
3830
3831else
3832  ac_c_werror_flag=$ac_save_c_werror_flag
3833	 CFLAGS="-g"
3834	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h.  */
3836
3837int
3838main ()
3839{
3840
3841  ;
3842  return 0;
3843}
3844_ACEOF
3845if ac_fn_c_try_compile "$LINENO"; then :
3846  ac_cv_prog_cc_g=yes
3847fi
3848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849fi
3850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851fi
3852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853   ac_c_werror_flag=$ac_save_c_werror_flag
3854fi
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3856$as_echo "$ac_cv_prog_cc_g" >&6; }
3857if test "$ac_test_CFLAGS" = set; then
3858  CFLAGS=$ac_save_CFLAGS
3859elif test $ac_cv_prog_cc_g = yes; then
3860  if test "$GCC" = yes; then
3861    CFLAGS="-g -O2"
3862  else
3863    CFLAGS="-g"
3864  fi
3865else
3866  if test "$GCC" = yes; then
3867    CFLAGS="-O2"
3868  else
3869    CFLAGS=
3870  fi
3871fi
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3873$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3874if test "${ac_cv_prog_cc_c89+set}" = set; then :
3875  $as_echo_n "(cached) " >&6
3876else
3877  ac_cv_prog_cc_c89=no
3878ac_save_CC=$CC
3879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880/* end confdefs.h.  */
3881#include <stdarg.h>
3882#include <stdio.h>
3883#include <sys/types.h>
3884#include <sys/stat.h>
3885/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3886struct buf { int x; };
3887FILE * (*rcsopen) (struct buf *, struct stat *, int);
3888static char *e (p, i)
3889     char **p;
3890     int i;
3891{
3892  return p[i];
3893}
3894static char *f (char * (*g) (char **, int), char **p, ...)
3895{
3896  char *s;
3897  va_list v;
3898  va_start (v,p);
3899  s = g (p, va_arg (v,int));
3900  va_end (v);
3901  return s;
3902}
3903
3904/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3905   function prototypes and stuff, but not '\xHH' hex character constants.
3906   These don't provoke an error unfortunately, instead are silently treated
3907   as 'x'.  The following induces an error, until -std is added to get
3908   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3909   array size at least.  It's necessary to write '\x00'==0 to get something
3910   that's true only with -std.  */
3911int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3912
3913/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3914   inside strings and character constants.  */
3915#define FOO(x) 'x'
3916int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3917
3918int test (int i, double x);
3919struct s1 {int (*f) (int a);};
3920struct s2 {int (*f) (double a);};
3921int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3922int argc;
3923char **argv;
3924int
3925main ()
3926{
3927return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3928  ;
3929  return 0;
3930}
3931_ACEOF
3932for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3933	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3934do
3935  CC="$ac_save_CC $ac_arg"
3936  if ac_fn_c_try_compile "$LINENO"; then :
3937  ac_cv_prog_cc_c89=$ac_arg
3938fi
3939rm -f core conftest.err conftest.$ac_objext
3940  test "x$ac_cv_prog_cc_c89" != "xno" && break
3941done
3942rm -f conftest.$ac_ext
3943CC=$ac_save_CC
3944
3945fi
3946# AC_CACHE_VAL
3947case "x$ac_cv_prog_cc_c89" in
3948  x)
3949    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3950$as_echo "none needed" >&6; } ;;
3951  xno)
3952    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3953$as_echo "unsupported" >&6; } ;;
3954  *)
3955    CC="$CC $ac_cv_prog_cc_c89"
3956    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3957$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3958esac
3959if test "x$ac_cv_prog_cc_c89" != xno; then :
3960
3961fi
3962
3963ac_ext=c
3964ac_cpp='$CPP $CPPFLAGS'
3965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3967ac_compiler_gnu=$ac_cv_c_compiler_gnu
3968
3969depcc="$CC"   am_compiler_list=
3970
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3972$as_echo_n "checking dependency style of $depcc... " >&6; }
3973if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3974  $as_echo_n "(cached) " >&6
3975else
3976  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3977  # We make a subdir and do the tests there.  Otherwise we can end up
3978  # making bogus files that we don't know about and never remove.  For
3979  # instance it was reported that on HP-UX the gcc test will end up
3980  # making a dummy file named `D' -- because `-MD' means `put the output
3981  # in D'.
3982  mkdir conftest.dir
3983  # Copy depcomp to subdir because otherwise we won't find it if we're
3984  # using a relative directory.
3985  cp "$am_depcomp" conftest.dir
3986  cd conftest.dir
3987  # We will build objects and dependencies in a subdirectory because
3988  # it helps to detect inapplicable dependency modes.  For instance
3989  # both Tru64's cc and ICC support -MD to output dependencies as a
3990  # side effect of compilation, but ICC will put the dependencies in
3991  # the current directory while Tru64 will put them in the object
3992  # directory.
3993  mkdir sub
3994
3995  am_cv_CC_dependencies_compiler_type=none
3996  if test "$am_compiler_list" = ""; then
3997     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3998  fi
3999  am__universal=false
4000  case " $depcc " in #(
4001     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4002     esac
4003
4004  for depmode in $am_compiler_list; do
4005    # Setup a source with many dependencies, because some compilers
4006    # like to wrap large dependency lists on column 80 (with \), and
4007    # we should not choose a depcomp mode which is confused by this.
4008    #
4009    # We need to recreate these files for each test, as the compiler may
4010    # overwrite some of them when testing with obscure command lines.
4011    # This happens at least with the AIX C compiler.
4012    : > sub/conftest.c
4013    for i in 1 2 3 4 5 6; do
4014      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4015      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4016      # Solaris 8's {/usr,}/bin/sh.
4017      touch sub/conftst$i.h
4018    done
4019    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4020
4021    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4022    # mode.  It turns out that the SunPro C++ compiler does not properly
4023    # handle `-M -o', and we need to detect this.  Also, some Intel
4024    # versions had trouble with output in subdirs
4025    am__obj=sub/conftest.${OBJEXT-o}
4026    am__minus_obj="-o $am__obj"
4027    case $depmode in
4028    gcc)
4029      # This depmode causes a compiler race in universal mode.
4030      test "$am__universal" = false || continue
4031      ;;
4032    nosideeffect)
4033      # after this tag, mechanisms are not by side-effect, so they'll
4034      # only be used when explicitly requested
4035      if test "x$enable_dependency_tracking" = xyes; then
4036	continue
4037      else
4038	break
4039      fi
4040      ;;
4041    msvisualcpp | msvcmsys)
4042      # This compiler won't grok `-c -o', but also, the minuso test has
4043      # not run yet.  These depmodes are late enough in the game, and
4044      # so weak that their functioning should not be impacted.
4045      am__obj=conftest.${OBJEXT-o}
4046      am__minus_obj=
4047      ;;
4048    none) break ;;
4049    esac
4050    if depmode=$depmode \
4051       source=sub/conftest.c object=$am__obj \
4052       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4053       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4054         >/dev/null 2>conftest.err &&
4055       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4056       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4057       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4058       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4059      # icc doesn't choke on unknown options, it will just issue warnings
4060      # or remarks (even with -Werror).  So we grep stderr for any message
4061      # that says an option was ignored or not supported.
4062      # When given -MP, icc 7.0 and 7.1 complain thusly:
4063      #   icc: Command line warning: ignoring option '-M'; no argument required
4064      # The diagnosis changed in icc 8.0:
4065      #   icc: Command line remark: option '-MP' not supported
4066      if (grep 'ignoring option' conftest.err ||
4067          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4068        am_cv_CC_dependencies_compiler_type=$depmode
4069        break
4070      fi
4071    fi
4072  done
4073
4074  cd ..
4075  rm -rf conftest.dir
4076else
4077  am_cv_CC_dependencies_compiler_type=none
4078fi
4079
4080fi
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4082$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4083CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4084
4085 if
4086  test "x$enable_dependency_tracking" != xno \
4087  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4088  am__fastdepCC_TRUE=
4089  am__fastdepCC_FALSE='#'
4090else
4091  am__fastdepCC_TRUE='#'
4092  am__fastdepCC_FALSE=
4093fi
4094
4095
4096
4097ac_ext=c
4098ac_cpp='$CPP $CPPFLAGS'
4099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4103$as_echo_n "checking how to run the C preprocessor... " >&6; }
4104# On Suns, sometimes $CPP names a directory.
4105if test -n "$CPP" && test -d "$CPP"; then
4106  CPP=
4107fi
4108if test -z "$CPP"; then
4109  if test "${ac_cv_prog_CPP+set}" = set; then :
4110  $as_echo_n "(cached) " >&6
4111else
4112      # Double quotes because CPP needs to be expanded
4113    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4114    do
4115      ac_preproc_ok=false
4116for ac_c_preproc_warn_flag in '' yes
4117do
4118  # Use a header file that comes with gcc, so configuring glibc
4119  # with a fresh cross-compiler works.
4120  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4121  # <limits.h> exists even on freestanding compilers.
4122  # On the NeXT, cc -E runs the code through the compiler's parser,
4123  # not just through cpp. "Syntax error" is here to catch this case.
4124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125/* end confdefs.h.  */
4126#ifdef __STDC__
4127# include <limits.h>
4128#else
4129# include <assert.h>
4130#endif
4131		     Syntax error
4132_ACEOF
4133if ac_fn_c_try_cpp "$LINENO"; then :
4134
4135else
4136  # Broken: fails on valid input.
4137continue
4138fi
4139rm -f conftest.err conftest.$ac_ext
4140
4141  # OK, works on sane cases.  Now check whether nonexistent headers
4142  # can be detected and how.
4143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144/* end confdefs.h.  */
4145#include <ac_nonexistent.h>
4146_ACEOF
4147if ac_fn_c_try_cpp "$LINENO"; then :
4148  # Broken: success on invalid input.
4149continue
4150else
4151  # Passes both tests.
4152ac_preproc_ok=:
4153break
4154fi
4155rm -f conftest.err conftest.$ac_ext
4156
4157done
4158# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4159rm -f conftest.err conftest.$ac_ext
4160if $ac_preproc_ok; then :
4161  break
4162fi
4163
4164    done
4165    ac_cv_prog_CPP=$CPP
4166
4167fi
4168  CPP=$ac_cv_prog_CPP
4169else
4170  ac_cv_prog_CPP=$CPP
4171fi
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4173$as_echo "$CPP" >&6; }
4174ac_preproc_ok=false
4175for ac_c_preproc_warn_flag in '' yes
4176do
4177  # Use a header file that comes with gcc, so configuring glibc
4178  # with a fresh cross-compiler works.
4179  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4180  # <limits.h> exists even on freestanding compilers.
4181  # On the NeXT, cc -E runs the code through the compiler's parser,
4182  # not just through cpp. "Syntax error" is here to catch this case.
4183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184/* end confdefs.h.  */
4185#ifdef __STDC__
4186# include <limits.h>
4187#else
4188# include <assert.h>
4189#endif
4190		     Syntax error
4191_ACEOF
4192if ac_fn_c_try_cpp "$LINENO"; then :
4193
4194else
4195  # Broken: fails on valid input.
4196continue
4197fi
4198rm -f conftest.err conftest.$ac_ext
4199
4200  # OK, works on sane cases.  Now check whether nonexistent headers
4201  # can be detected and how.
4202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203/* end confdefs.h.  */
4204#include <ac_nonexistent.h>
4205_ACEOF
4206if ac_fn_c_try_cpp "$LINENO"; then :
4207  # Broken: success on invalid input.
4208continue
4209else
4210  # Passes both tests.
4211ac_preproc_ok=:
4212break
4213fi
4214rm -f conftest.err conftest.$ac_ext
4215
4216done
4217# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4218rm -f conftest.err conftest.$ac_ext
4219if $ac_preproc_ok; then :
4220
4221else
4222  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4224as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4225See \`config.log' for more details" "$LINENO" 5; }
4226fi
4227
4228ac_ext=c
4229ac_cpp='$CPP $CPPFLAGS'
4230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233
4234
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4236$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4237if test "${ac_cv_path_GREP+set}" = set; then :
4238  $as_echo_n "(cached) " >&6
4239else
4240  if test -z "$GREP"; then
4241  ac_path_GREP_found=false
4242  # Loop through the user's path and test for each of PROGNAME-LIST
4243  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4245do
4246  IFS=$as_save_IFS
4247  test -z "$as_dir" && as_dir=.
4248    for ac_prog in grep ggrep; do
4249    for ac_exec_ext in '' $ac_executable_extensions; do
4250      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4251      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4252# Check for GNU ac_path_GREP and select it if it is found.
4253  # Check for GNU $ac_path_GREP
4254case `"$ac_path_GREP" --version 2>&1` in
4255*GNU*)
4256  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4257*)
4258  ac_count=0
4259  $as_echo_n 0123456789 >"conftest.in"
4260  while :
4261  do
4262    cat "conftest.in" "conftest.in" >"conftest.tmp"
4263    mv "conftest.tmp" "conftest.in"
4264    cp "conftest.in" "conftest.nl"
4265    $as_echo 'GREP' >> "conftest.nl"
4266    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4267    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4268    as_fn_arith $ac_count + 1 && ac_count=$as_val
4269    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4270      # Best one so far, save it but keep looking for a better one
4271      ac_cv_path_GREP="$ac_path_GREP"
4272      ac_path_GREP_max=$ac_count
4273    fi
4274    # 10*(2^10) chars as input seems more than enough
4275    test $ac_count -gt 10 && break
4276  done
4277  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4278esac
4279
4280      $ac_path_GREP_found && break 3
4281    done
4282  done
4283  done
4284IFS=$as_save_IFS
4285  if test -z "$ac_cv_path_GREP"; then
4286    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4287  fi
4288else
4289  ac_cv_path_GREP=$GREP
4290fi
4291
4292fi
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4294$as_echo "$ac_cv_path_GREP" >&6; }
4295 GREP="$ac_cv_path_GREP"
4296
4297
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4299$as_echo_n "checking for egrep... " >&6; }
4300if test "${ac_cv_path_EGREP+set}" = set; then :
4301  $as_echo_n "(cached) " >&6
4302else
4303  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4304   then ac_cv_path_EGREP="$GREP -E"
4305   else
4306     if test -z "$EGREP"; then
4307  ac_path_EGREP_found=false
4308  # Loop through the user's path and test for each of PROGNAME-LIST
4309  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4311do
4312  IFS=$as_save_IFS
4313  test -z "$as_dir" && as_dir=.
4314    for ac_prog in egrep; do
4315    for ac_exec_ext in '' $ac_executable_extensions; do
4316      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4317      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4318# Check for GNU ac_path_EGREP and select it if it is found.
4319  # Check for GNU $ac_path_EGREP
4320case `"$ac_path_EGREP" --version 2>&1` in
4321*GNU*)
4322  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4323*)
4324  ac_count=0
4325  $as_echo_n 0123456789 >"conftest.in"
4326  while :
4327  do
4328    cat "conftest.in" "conftest.in" >"conftest.tmp"
4329    mv "conftest.tmp" "conftest.in"
4330    cp "conftest.in" "conftest.nl"
4331    $as_echo 'EGREP' >> "conftest.nl"
4332    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4333    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4334    as_fn_arith $ac_count + 1 && ac_count=$as_val
4335    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4336      # Best one so far, save it but keep looking for a better one
4337      ac_cv_path_EGREP="$ac_path_EGREP"
4338      ac_path_EGREP_max=$ac_count
4339    fi
4340    # 10*(2^10) chars as input seems more than enough
4341    test $ac_count -gt 10 && break
4342  done
4343  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4344esac
4345
4346      $ac_path_EGREP_found && break 3
4347    done
4348  done
4349  done
4350IFS=$as_save_IFS
4351  if test -z "$ac_cv_path_EGREP"; then
4352    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4353  fi
4354else
4355  ac_cv_path_EGREP=$EGREP
4356fi
4357
4358   fi
4359fi
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4361$as_echo "$ac_cv_path_EGREP" >&6; }
4362 EGREP="$ac_cv_path_EGREP"
4363
4364
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4366$as_echo_n "checking for ANSI C header files... " >&6; }
4367if test "${ac_cv_header_stdc+set}" = set; then :
4368  $as_echo_n "(cached) " >&6
4369else
4370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371/* end confdefs.h.  */
4372#include <stdlib.h>
4373#include <stdarg.h>
4374#include <string.h>
4375#include <float.h>
4376
4377int
4378main ()
4379{
4380
4381  ;
4382  return 0;
4383}
4384_ACEOF
4385if ac_fn_c_try_compile "$LINENO"; then :
4386  ac_cv_header_stdc=yes
4387else
4388  ac_cv_header_stdc=no
4389fi
4390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391
4392if test $ac_cv_header_stdc = yes; then
4393  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395/* end confdefs.h.  */
4396#include <string.h>
4397
4398_ACEOF
4399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4400  $EGREP "memchr" >/dev/null 2>&1; then :
4401
4402else
4403  ac_cv_header_stdc=no
4404fi
4405rm -f conftest*
4406
4407fi
4408
4409if test $ac_cv_header_stdc = yes; then
4410  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412/* end confdefs.h.  */
4413#include <stdlib.h>
4414
4415_ACEOF
4416if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4417  $EGREP "free" >/dev/null 2>&1; then :
4418
4419else
4420  ac_cv_header_stdc=no
4421fi
4422rm -f conftest*
4423
4424fi
4425
4426if test $ac_cv_header_stdc = yes; then
4427  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4428  if test "$cross_compiling" = yes; then :
4429  :
4430else
4431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432/* end confdefs.h.  */
4433#include <ctype.h>
4434#include <stdlib.h>
4435#if ((' ' & 0x0FF) == 0x020)
4436# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4437# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4438#else
4439# define ISLOWER(c) \
4440		   (('a' <= (c) && (c) <= 'i') \
4441		     || ('j' <= (c) && (c) <= 'r') \
4442		     || ('s' <= (c) && (c) <= 'z'))
4443# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4444#endif
4445
4446#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4447int
4448main ()
4449{
4450  int i;
4451  for (i = 0; i < 256; i++)
4452    if (XOR (islower (i), ISLOWER (i))
4453	|| toupper (i) != TOUPPER (i))
4454      return 2;
4455  return 0;
4456}
4457_ACEOF
4458if ac_fn_c_try_run "$LINENO"; then :
4459
4460else
4461  ac_cv_header_stdc=no
4462fi
4463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4464  conftest.$ac_objext conftest.beam conftest.$ac_ext
4465fi
4466
4467fi
4468fi
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4470$as_echo "$ac_cv_header_stdc" >&6; }
4471if test $ac_cv_header_stdc = yes; then
4472
4473$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4474
4475fi
4476
4477# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4478for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4479		  inttypes.h stdint.h unistd.h
4480do :
4481  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4482ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4483"
4484if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4485  cat >>confdefs.h <<_ACEOF
4486#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4487_ACEOF
4488
4489fi
4490
4491done
4492
4493
4494
4495  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4496if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4497  MINIX=yes
4498else
4499  MINIX=
4500fi
4501
4502
4503  if test "$MINIX" = yes; then
4504
4505$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4506
4507
4508$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4509
4510
4511$as_echo "#define _MINIX 1" >>confdefs.h
4512
4513  fi
4514
4515
4516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4517$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4518if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4519  $as_echo_n "(cached) " >&6
4520else
4521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522/* end confdefs.h.  */
4523
4524#	  define __EXTENSIONS__ 1
4525	  $ac_includes_default
4526int
4527main ()
4528{
4529
4530  ;
4531  return 0;
4532}
4533_ACEOF
4534if ac_fn_c_try_compile "$LINENO"; then :
4535  ac_cv_safe_to_define___extensions__=yes
4536else
4537  ac_cv_safe_to_define___extensions__=no
4538fi
4539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540fi
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4542$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4543  test $ac_cv_safe_to_define___extensions__ = yes &&
4544    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4545
4546  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4547
4548  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4549
4550  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4551
4552  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4553
4554
4555ac_ext=c
4556ac_cpp='$CPP $CPPFLAGS'
4557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560if test -n "$ac_tool_prefix"; then
4561  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4562set dummy ${ac_tool_prefix}gcc; ac_word=$2
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564$as_echo_n "checking for $ac_word... " >&6; }
4565if test "${ac_cv_prog_CC+set}" = set; then :
4566  $as_echo_n "(cached) " >&6
4567else
4568  if test -n "$CC"; then
4569  ac_cv_prog_CC="$CC" # Let the user override the test.
4570else
4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
4574  IFS=$as_save_IFS
4575  test -z "$as_dir" && as_dir=.
4576    for ac_exec_ext in '' $ac_executable_extensions; do
4577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580    break 2
4581  fi
4582done
4583  done
4584IFS=$as_save_IFS
4585
4586fi
4587fi
4588CC=$ac_cv_prog_CC
4589if test -n "$CC"; then
4590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4591$as_echo "$CC" >&6; }
4592else
4593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594$as_echo "no" >&6; }
4595fi
4596
4597
4598fi
4599if test -z "$ac_cv_prog_CC"; then
4600  ac_ct_CC=$CC
4601  # Extract the first word of "gcc", so it can be a program name with args.
4602set dummy gcc; ac_word=$2
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604$as_echo_n "checking for $ac_word... " >&6; }
4605if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4606  $as_echo_n "(cached) " >&6
4607else
4608  if test -n "$ac_ct_CC"; then
4609  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4610else
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614  IFS=$as_save_IFS
4615  test -z "$as_dir" && as_dir=.
4616    for ac_exec_ext in '' $ac_executable_extensions; do
4617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618    ac_cv_prog_ac_ct_CC="gcc"
4619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620    break 2
4621  fi
4622done
4623  done
4624IFS=$as_save_IFS
4625
4626fi
4627fi
4628ac_ct_CC=$ac_cv_prog_ac_ct_CC
4629if test -n "$ac_ct_CC"; then
4630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4631$as_echo "$ac_ct_CC" >&6; }
4632else
4633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634$as_echo "no" >&6; }
4635fi
4636
4637  if test "x$ac_ct_CC" = x; then
4638    CC=""
4639  else
4640    case $cross_compiling:$ac_tool_warned in
4641yes:)
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4644ac_tool_warned=yes ;;
4645esac
4646    CC=$ac_ct_CC
4647  fi
4648else
4649  CC="$ac_cv_prog_CC"
4650fi
4651
4652if test -z "$CC"; then
4653          if test -n "$ac_tool_prefix"; then
4654    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4655set dummy ${ac_tool_prefix}cc; ac_word=$2
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657$as_echo_n "checking for $ac_word... " >&6; }
4658if test "${ac_cv_prog_CC+set}" = set; then :
4659  $as_echo_n "(cached) " >&6
4660else
4661  if test -n "$CC"; then
4662  ac_cv_prog_CC="$CC" # Let the user override the test.
4663else
4664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665for as_dir in $PATH
4666do
4667  IFS=$as_save_IFS
4668  test -z "$as_dir" && as_dir=.
4669    for ac_exec_ext in '' $ac_executable_extensions; do
4670  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671    ac_cv_prog_CC="${ac_tool_prefix}cc"
4672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4673    break 2
4674  fi
4675done
4676  done
4677IFS=$as_save_IFS
4678
4679fi
4680fi
4681CC=$ac_cv_prog_CC
4682if test -n "$CC"; then
4683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4684$as_echo "$CC" >&6; }
4685else
4686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687$as_echo "no" >&6; }
4688fi
4689
4690
4691  fi
4692fi
4693if test -z "$CC"; then
4694  # Extract the first word of "cc", so it can be a program name with args.
4695set dummy cc; ac_word=$2
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697$as_echo_n "checking for $ac_word... " >&6; }
4698if test "${ac_cv_prog_CC+set}" = set; then :
4699  $as_echo_n "(cached) " >&6
4700else
4701  if test -n "$CC"; then
4702  ac_cv_prog_CC="$CC" # Let the user override the test.
4703else
4704  ac_prog_rejected=no
4705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706for as_dir in $PATH
4707do
4708  IFS=$as_save_IFS
4709  test -z "$as_dir" && as_dir=.
4710    for ac_exec_ext in '' $ac_executable_extensions; do
4711  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4713       ac_prog_rejected=yes
4714       continue
4715     fi
4716    ac_cv_prog_CC="cc"
4717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718    break 2
4719  fi
4720done
4721  done
4722IFS=$as_save_IFS
4723
4724if test $ac_prog_rejected = yes; then
4725  # We found a bogon in the path, so make sure we never use it.
4726  set dummy $ac_cv_prog_CC
4727  shift
4728  if test $# != 0; then
4729    # We chose a different compiler from the bogus one.
4730    # However, it has the same basename, so the bogon will be chosen
4731    # first if we set CC to just the basename; use the full file name.
4732    shift
4733    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4734  fi
4735fi
4736fi
4737fi
4738CC=$ac_cv_prog_CC
4739if test -n "$CC"; then
4740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4741$as_echo "$CC" >&6; }
4742else
4743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744$as_echo "no" >&6; }
4745fi
4746
4747
4748fi
4749if test -z "$CC"; then
4750  if test -n "$ac_tool_prefix"; then
4751  for ac_prog in cl.exe
4752  do
4753    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4754set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756$as_echo_n "checking for $ac_word... " >&6; }
4757if test "${ac_cv_prog_CC+set}" = set; then :
4758  $as_echo_n "(cached) " >&6
4759else
4760  if test -n "$CC"; then
4761  ac_cv_prog_CC="$CC" # Let the user override the test.
4762else
4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766  IFS=$as_save_IFS
4767  test -z "$as_dir" && as_dir=.
4768    for ac_exec_ext in '' $ac_executable_extensions; do
4769  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772    break 2
4773  fi
4774done
4775  done
4776IFS=$as_save_IFS
4777
4778fi
4779fi
4780CC=$ac_cv_prog_CC
4781if test -n "$CC"; then
4782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4783$as_echo "$CC" >&6; }
4784else
4785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786$as_echo "no" >&6; }
4787fi
4788
4789
4790    test -n "$CC" && break
4791  done
4792fi
4793if test -z "$CC"; then
4794  ac_ct_CC=$CC
4795  for ac_prog in cl.exe
4796do
4797  # Extract the first word of "$ac_prog", so it can be a program name with args.
4798set dummy $ac_prog; ac_word=$2
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800$as_echo_n "checking for $ac_word... " >&6; }
4801if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4802  $as_echo_n "(cached) " >&6
4803else
4804  if test -n "$ac_ct_CC"; then
4805  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4806else
4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808for as_dir in $PATH
4809do
4810  IFS=$as_save_IFS
4811  test -z "$as_dir" && as_dir=.
4812    for ac_exec_ext in '' $ac_executable_extensions; do
4813  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814    ac_cv_prog_ac_ct_CC="$ac_prog"
4815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816    break 2
4817  fi
4818done
4819  done
4820IFS=$as_save_IFS
4821
4822fi
4823fi
4824ac_ct_CC=$ac_cv_prog_ac_ct_CC
4825if test -n "$ac_ct_CC"; then
4826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4827$as_echo "$ac_ct_CC" >&6; }
4828else
4829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830$as_echo "no" >&6; }
4831fi
4832
4833
4834  test -n "$ac_ct_CC" && break
4835done
4836
4837  if test "x$ac_ct_CC" = x; then
4838    CC=""
4839  else
4840    case $cross_compiling:$ac_tool_warned in
4841yes:)
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4844ac_tool_warned=yes ;;
4845esac
4846    CC=$ac_ct_CC
4847  fi
4848fi
4849
4850fi
4851
4852
4853test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4855as_fn_error $? "no acceptable C compiler found in \$PATH
4856See \`config.log' for more details" "$LINENO" 5; }
4857
4858# Provide some information about the compiler.
4859$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4860set X $ac_compile
4861ac_compiler=$2
4862for ac_option in --version -v -V -qversion; do
4863  { { ac_try="$ac_compiler $ac_option >&5"
4864case "(($ac_try" in
4865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866  *) ac_try_echo=$ac_try;;
4867esac
4868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4869$as_echo "$ac_try_echo"; } >&5
4870  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4871  ac_status=$?
4872  if test -s conftest.err; then
4873    sed '10a\
4874... rest of stderr output deleted ...
4875         10q' conftest.err >conftest.er1
4876    cat conftest.er1 >&5
4877  fi
4878  rm -f conftest.er1 conftest.err
4879  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4880  test $ac_status = 0; }
4881done
4882
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4884$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4885if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4886  $as_echo_n "(cached) " >&6
4887else
4888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889/* end confdefs.h.  */
4890
4891int
4892main ()
4893{
4894#ifndef __GNUC__
4895       choke me
4896#endif
4897
4898  ;
4899  return 0;
4900}
4901_ACEOF
4902if ac_fn_c_try_compile "$LINENO"; then :
4903  ac_compiler_gnu=yes
4904else
4905  ac_compiler_gnu=no
4906fi
4907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908ac_cv_c_compiler_gnu=$ac_compiler_gnu
4909
4910fi
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4912$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4913if test $ac_compiler_gnu = yes; then
4914  GCC=yes
4915else
4916  GCC=
4917fi
4918ac_test_CFLAGS=${CFLAGS+set}
4919ac_save_CFLAGS=$CFLAGS
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4921$as_echo_n "checking whether $CC accepts -g... " >&6; }
4922if test "${ac_cv_prog_cc_g+set}" = set; then :
4923  $as_echo_n "(cached) " >&6
4924else
4925  ac_save_c_werror_flag=$ac_c_werror_flag
4926   ac_c_werror_flag=yes
4927   ac_cv_prog_cc_g=no
4928   CFLAGS="-g"
4929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930/* end confdefs.h.  */
4931
4932int
4933main ()
4934{
4935
4936  ;
4937  return 0;
4938}
4939_ACEOF
4940if ac_fn_c_try_compile "$LINENO"; then :
4941  ac_cv_prog_cc_g=yes
4942else
4943  CFLAGS=""
4944      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945/* end confdefs.h.  */
4946
4947int
4948main ()
4949{
4950
4951  ;
4952  return 0;
4953}
4954_ACEOF
4955if ac_fn_c_try_compile "$LINENO"; then :
4956
4957else
4958  ac_c_werror_flag=$ac_save_c_werror_flag
4959	 CFLAGS="-g"
4960	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961/* end confdefs.h.  */
4962
4963int
4964main ()
4965{
4966
4967  ;
4968  return 0;
4969}
4970_ACEOF
4971if ac_fn_c_try_compile "$LINENO"; then :
4972  ac_cv_prog_cc_g=yes
4973fi
4974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975fi
4976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4977fi
4978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979   ac_c_werror_flag=$ac_save_c_werror_flag
4980fi
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4982$as_echo "$ac_cv_prog_cc_g" >&6; }
4983if test "$ac_test_CFLAGS" = set; then
4984  CFLAGS=$ac_save_CFLAGS
4985elif test $ac_cv_prog_cc_g = yes; then
4986  if test "$GCC" = yes; then
4987    CFLAGS="-g -O2"
4988  else
4989    CFLAGS="-g"
4990  fi
4991else
4992  if test "$GCC" = yes; then
4993    CFLAGS="-O2"
4994  else
4995    CFLAGS=
4996  fi
4997fi
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4999$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5000if test "${ac_cv_prog_cc_c89+set}" = set; then :
5001  $as_echo_n "(cached) " >&6
5002else
5003  ac_cv_prog_cc_c89=no
5004ac_save_CC=$CC
5005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006/* end confdefs.h.  */
5007#include <stdarg.h>
5008#include <stdio.h>
5009#include <sys/types.h>
5010#include <sys/stat.h>
5011/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5012struct buf { int x; };
5013FILE * (*rcsopen) (struct buf *, struct stat *, int);
5014static char *e (p, i)
5015     char **p;
5016     int i;
5017{
5018  return p[i];
5019}
5020static char *f (char * (*g) (char **, int), char **p, ...)
5021{
5022  char *s;
5023  va_list v;
5024  va_start (v,p);
5025  s = g (p, va_arg (v,int));
5026  va_end (v);
5027  return s;
5028}
5029
5030/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5031   function prototypes and stuff, but not '\xHH' hex character constants.
5032   These don't provoke an error unfortunately, instead are silently treated
5033   as 'x'.  The following induces an error, until -std is added to get
5034   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5035   array size at least.  It's necessary to write '\x00'==0 to get something
5036   that's true only with -std.  */
5037int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5038
5039/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5040   inside strings and character constants.  */
5041#define FOO(x) 'x'
5042int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5043
5044int test (int i, double x);
5045struct s1 {int (*f) (int a);};
5046struct s2 {int (*f) (double a);};
5047int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5048int argc;
5049char **argv;
5050int
5051main ()
5052{
5053return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5054  ;
5055  return 0;
5056}
5057_ACEOF
5058for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5059	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5060do
5061  CC="$ac_save_CC $ac_arg"
5062  if ac_fn_c_try_compile "$LINENO"; then :
5063  ac_cv_prog_cc_c89=$ac_arg
5064fi
5065rm -f core conftest.err conftest.$ac_objext
5066  test "x$ac_cv_prog_cc_c89" != "xno" && break
5067done
5068rm -f conftest.$ac_ext
5069CC=$ac_save_CC
5070
5071fi
5072# AC_CACHE_VAL
5073case "x$ac_cv_prog_cc_c89" in
5074  x)
5075    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5076$as_echo "none needed" >&6; } ;;
5077  xno)
5078    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5079$as_echo "unsupported" >&6; } ;;
5080  *)
5081    CC="$CC $ac_cv_prog_cc_c89"
5082    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5083$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5084esac
5085if test "x$ac_cv_prog_cc_c89" != xno; then :
5086
5087fi
5088
5089ac_ext=c
5090ac_cpp='$CPP $CPPFLAGS'
5091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5093ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094
5095depcc="$CC"   am_compiler_list=
5096
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5098$as_echo_n "checking dependency style of $depcc... " >&6; }
5099if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5100  $as_echo_n "(cached) " >&6
5101else
5102  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5103  # We make a subdir and do the tests there.  Otherwise we can end up
5104  # making bogus files that we don't know about and never remove.  For
5105  # instance it was reported that on HP-UX the gcc test will end up
5106  # making a dummy file named `D' -- because `-MD' means `put the output
5107  # in D'.
5108  mkdir conftest.dir
5109  # Copy depcomp to subdir because otherwise we won't find it if we're
5110  # using a relative directory.
5111  cp "$am_depcomp" conftest.dir
5112  cd conftest.dir
5113  # We will build objects and dependencies in a subdirectory because
5114  # it helps to detect inapplicable dependency modes.  For instance
5115  # both Tru64's cc and ICC support -MD to output dependencies as a
5116  # side effect of compilation, but ICC will put the dependencies in
5117  # the current directory while Tru64 will put them in the object
5118  # directory.
5119  mkdir sub
5120
5121  am_cv_CC_dependencies_compiler_type=none
5122  if test "$am_compiler_list" = ""; then
5123     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5124  fi
5125  am__universal=false
5126  case " $depcc " in #(
5127     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5128     esac
5129
5130  for depmode in $am_compiler_list; do
5131    # Setup a source with many dependencies, because some compilers
5132    # like to wrap large dependency lists on column 80 (with \), and
5133    # we should not choose a depcomp mode which is confused by this.
5134    #
5135    # We need to recreate these files for each test, as the compiler may
5136    # overwrite some of them when testing with obscure command lines.
5137    # This happens at least with the AIX C compiler.
5138    : > sub/conftest.c
5139    for i in 1 2 3 4 5 6; do
5140      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5141      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5142      # Solaris 8's {/usr,}/bin/sh.
5143      touch sub/conftst$i.h
5144    done
5145    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5146
5147    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5148    # mode.  It turns out that the SunPro C++ compiler does not properly
5149    # handle `-M -o', and we need to detect this.  Also, some Intel
5150    # versions had trouble with output in subdirs
5151    am__obj=sub/conftest.${OBJEXT-o}
5152    am__minus_obj="-o $am__obj"
5153    case $depmode in
5154    gcc)
5155      # This depmode causes a compiler race in universal mode.
5156      test "$am__universal" = false || continue
5157      ;;
5158    nosideeffect)
5159      # after this tag, mechanisms are not by side-effect, so they'll
5160      # only be used when explicitly requested
5161      if test "x$enable_dependency_tracking" = xyes; then
5162	continue
5163      else
5164	break
5165      fi
5166      ;;
5167    msvisualcpp | msvcmsys)
5168      # This compiler won't grok `-c -o', but also, the minuso test has
5169      # not run yet.  These depmodes are late enough in the game, and
5170      # so weak that their functioning should not be impacted.
5171      am__obj=conftest.${OBJEXT-o}
5172      am__minus_obj=
5173      ;;
5174    none) break ;;
5175    esac
5176    if depmode=$depmode \
5177       source=sub/conftest.c object=$am__obj \
5178       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5179       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5180         >/dev/null 2>conftest.err &&
5181       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5182       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5183       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5184       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5185      # icc doesn't choke on unknown options, it will just issue warnings
5186      # or remarks (even with -Werror).  So we grep stderr for any message
5187      # that says an option was ignored or not supported.
5188      # When given -MP, icc 7.0 and 7.1 complain thusly:
5189      #   icc: Command line warning: ignoring option '-M'; no argument required
5190      # The diagnosis changed in icc 8.0:
5191      #   icc: Command line remark: option '-MP' not supported
5192      if (grep 'ignoring option' conftest.err ||
5193          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5194        am_cv_CC_dependencies_compiler_type=$depmode
5195        break
5196      fi
5197    fi
5198  done
5199
5200  cd ..
5201  rm -rf conftest.dir
5202else
5203  am_cv_CC_dependencies_compiler_type=none
5204fi
5205
5206fi
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5208$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5209CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5210
5211 if
5212  test "x$enable_dependency_tracking" != xno \
5213  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5214  am__fastdepCC_TRUE=
5215  am__fastdepCC_FALSE='#'
5216else
5217  am__fastdepCC_TRUE='#'
5218  am__fastdepCC_FALSE=
5219fi
5220
5221
5222
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5224$as_echo_n "checking whether ln -s works... " >&6; }
5225LN_S=$as_ln_s
5226if test "$LN_S" = "ln -s"; then
5227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5228$as_echo "yes" >&6; }
5229else
5230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5231$as_echo "no, using $LN_S" >&6; }
5232fi
5233
5234enable_dlopen=yes
5235
5236
5237
5238case `pwd` in
5239  *\ * | *\	*)
5240    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5241$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5242esac
5243
5244
5245
5246macro_version='2.2.10'
5247macro_revision='1.3175'
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261ltmain="$ac_aux_dir/ltmain.sh"
5262
5263# Backslashify metacharacters that are still active within
5264# double-quoted strings.
5265sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5266
5267# Same as above, but do not quote variable references.
5268double_quote_subst='s/\(["`\\]\)/\\\1/g'
5269
5270# Sed substitution to delay expansion of an escaped shell variable in a
5271# double_quote_subst'ed string.
5272delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5273
5274# Sed substitution to delay expansion of an escaped single quote.
5275delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5276
5277# Sed substitution to avoid accidental globbing in evaled expressions
5278no_glob_subst='s/\*/\\\*/g'
5279
5280ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5281ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5282ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5283
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5285$as_echo_n "checking how to print strings... " >&6; }
5286# Test print first, because it will be a builtin if present.
5287if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5288   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5289  ECHO='print -r --'
5290elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5291  ECHO='printf %s\n'
5292else
5293  # Use this function as a fallback that always works.
5294  func_fallback_echo ()
5295  {
5296    eval 'cat <<_LTECHO_EOF
5297$1
5298_LTECHO_EOF'
5299  }
5300  ECHO='func_fallback_echo'
5301fi
5302
5303# func_echo_all arg...
5304# Invoke $ECHO with all args, space-separated.
5305func_echo_all ()
5306{
5307    $ECHO ""
5308}
5309
5310case "$ECHO" in
5311  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5312$as_echo "printf" >&6; } ;;
5313  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5314$as_echo "print -r" >&6; } ;;
5315  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5316$as_echo "cat" >&6; } ;;
5317esac
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5333$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5334if test "${ac_cv_path_SED+set}" = set; then :
5335  $as_echo_n "(cached) " >&6
5336else
5337            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5338     for ac_i in 1 2 3 4 5 6 7; do
5339       ac_script="$ac_script$as_nl$ac_script"
5340     done
5341     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5342     { ac_script=; unset ac_script;}
5343     if test -z "$SED"; then
5344  ac_path_SED_found=false
5345  # Loop through the user's path and test for each of PROGNAME-LIST
5346  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347for as_dir in $PATH
5348do
5349  IFS=$as_save_IFS
5350  test -z "$as_dir" && as_dir=.
5351    for ac_prog in sed gsed; do
5352    for ac_exec_ext in '' $ac_executable_extensions; do
5353      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5354      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5355# Check for GNU ac_path_SED and select it if it is found.
5356  # Check for GNU $ac_path_SED
5357case `"$ac_path_SED" --version 2>&1` in
5358*GNU*)
5359  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5360*)
5361  ac_count=0
5362  $as_echo_n 0123456789 >"conftest.in"
5363  while :
5364  do
5365    cat "conftest.in" "conftest.in" >"conftest.tmp"
5366    mv "conftest.tmp" "conftest.in"
5367    cp "conftest.in" "conftest.nl"
5368    $as_echo '' >> "conftest.nl"
5369    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5370    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5371    as_fn_arith $ac_count + 1 && ac_count=$as_val
5372    if test $ac_count -gt ${ac_path_SED_max-0}; then
5373      # Best one so far, save it but keep looking for a better one
5374      ac_cv_path_SED="$ac_path_SED"
5375      ac_path_SED_max=$ac_count
5376    fi
5377    # 10*(2^10) chars as input seems more than enough
5378    test $ac_count -gt 10 && break
5379  done
5380  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5381esac
5382
5383      $ac_path_SED_found && break 3
5384    done
5385  done
5386  done
5387IFS=$as_save_IFS
5388  if test -z "$ac_cv_path_SED"; then
5389    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5390  fi
5391else
5392  ac_cv_path_SED=$SED
5393fi
5394
5395fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5397$as_echo "$ac_cv_path_SED" >&6; }
5398 SED="$ac_cv_path_SED"
5399  rm -f conftest.sed
5400
5401test -z "$SED" && SED=sed
5402Xsed="$SED -e 1s/^X//"
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5415$as_echo_n "checking for fgrep... " >&6; }
5416if test "${ac_cv_path_FGREP+set}" = set; then :
5417  $as_echo_n "(cached) " >&6
5418else
5419  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5420   then ac_cv_path_FGREP="$GREP -F"
5421   else
5422     if test -z "$FGREP"; then
5423  ac_path_FGREP_found=false
5424  # Loop through the user's path and test for each of PROGNAME-LIST
5425  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5427do
5428  IFS=$as_save_IFS
5429  test -z "$as_dir" && as_dir=.
5430    for ac_prog in fgrep; do
5431    for ac_exec_ext in '' $ac_executable_extensions; do
5432      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5433      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5434# Check for GNU ac_path_FGREP and select it if it is found.
5435  # Check for GNU $ac_path_FGREP
5436case `"$ac_path_FGREP" --version 2>&1` in
5437*GNU*)
5438  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5439*)
5440  ac_count=0
5441  $as_echo_n 0123456789 >"conftest.in"
5442  while :
5443  do
5444    cat "conftest.in" "conftest.in" >"conftest.tmp"
5445    mv "conftest.tmp" "conftest.in"
5446    cp "conftest.in" "conftest.nl"
5447    $as_echo 'FGREP' >> "conftest.nl"
5448    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5449    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5450    as_fn_arith $ac_count + 1 && ac_count=$as_val
5451    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5452      # Best one so far, save it but keep looking for a better one
5453      ac_cv_path_FGREP="$ac_path_FGREP"
5454      ac_path_FGREP_max=$ac_count
5455    fi
5456    # 10*(2^10) chars as input seems more than enough
5457    test $ac_count -gt 10 && break
5458  done
5459  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5460esac
5461
5462      $ac_path_FGREP_found && break 3
5463    done
5464  done
5465  done
5466IFS=$as_save_IFS
5467  if test -z "$ac_cv_path_FGREP"; then
5468    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5469  fi
5470else
5471  ac_cv_path_FGREP=$FGREP
5472fi
5473
5474   fi
5475fi
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5477$as_echo "$ac_cv_path_FGREP" >&6; }
5478 FGREP="$ac_cv_path_FGREP"
5479
5480
5481test -z "$GREP" && GREP=grep
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501# Check whether --with-gnu-ld was given.
5502if test "${with_gnu_ld+set}" = set; then :
5503  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5504else
5505  with_gnu_ld=no
5506fi
5507
5508ac_prog=ld
5509if test "$GCC" = yes; then
5510  # Check if gcc -print-prog-name=ld gives a path.
5511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5512$as_echo_n "checking for ld used by $CC... " >&6; }
5513  case $host in
5514  *-*-mingw*)
5515    # gcc leaves a trailing carriage return which upsets mingw
5516    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5517  *)
5518    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5519  esac
5520  case $ac_prog in
5521    # Accept absolute paths.
5522    [\\/]* | ?:[\\/]*)
5523      re_direlt='/[^/][^/]*/\.\./'
5524      # Canonicalize the pathname of ld
5525      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5526      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5527	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5528      done
5529      test -z "$LD" && LD="$ac_prog"
5530      ;;
5531  "")
5532    # If it fails, then pretend we aren't using GCC.
5533    ac_prog=ld
5534    ;;
5535  *)
5536    # If it is relative, then search for the first ld in PATH.
5537    with_gnu_ld=unknown
5538    ;;
5539  esac
5540elif test "$with_gnu_ld" = yes; then
5541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5542$as_echo_n "checking for GNU ld... " >&6; }
5543else
5544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5545$as_echo_n "checking for non-GNU ld... " >&6; }
5546fi
5547if test "${lt_cv_path_LD+set}" = set; then :
5548  $as_echo_n "(cached) " >&6
5549else
5550  if test -z "$LD"; then
5551  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5552  for ac_dir in $PATH; do
5553    IFS="$lt_save_ifs"
5554    test -z "$ac_dir" && ac_dir=.
5555    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5556      lt_cv_path_LD="$ac_dir/$ac_prog"
5557      # Check to see if the program is GNU ld.  I'd rather use --version,
5558      # but apparently some variants of GNU ld only accept -v.
5559      # Break only if it was the GNU/non-GNU ld that we prefer.
5560      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5561      *GNU* | *'with BFD'*)
5562	test "$with_gnu_ld" != no && break
5563	;;
5564      *)
5565	test "$with_gnu_ld" != yes && break
5566	;;
5567      esac
5568    fi
5569  done
5570  IFS="$lt_save_ifs"
5571else
5572  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5573fi
5574fi
5575
5576LD="$lt_cv_path_LD"
5577if test -n "$LD"; then
5578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5579$as_echo "$LD" >&6; }
5580else
5581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582$as_echo "no" >&6; }
5583fi
5584test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5586$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5587if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5588  $as_echo_n "(cached) " >&6
5589else
5590  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5591case `$LD -v 2>&1 </dev/null` in
5592*GNU* | *'with BFD'*)
5593  lt_cv_prog_gnu_ld=yes
5594  ;;
5595*)
5596  lt_cv_prog_gnu_ld=no
5597  ;;
5598esac
5599fi
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5601$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5602with_gnu_ld=$lt_cv_prog_gnu_ld
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5613$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5614if test "${lt_cv_path_NM+set}" = set; then :
5615  $as_echo_n "(cached) " >&6
5616else
5617  if test -n "$NM"; then
5618  # Let the user override the test.
5619  lt_cv_path_NM="$NM"
5620else
5621  lt_nm_to_check="${ac_tool_prefix}nm"
5622  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5623    lt_nm_to_check="$lt_nm_to_check nm"
5624  fi
5625  for lt_tmp_nm in $lt_nm_to_check; do
5626    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5627    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5628      IFS="$lt_save_ifs"
5629      test -z "$ac_dir" && ac_dir=.
5630      tmp_nm="$ac_dir/$lt_tmp_nm"
5631      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5632	# Check to see if the nm accepts a BSD-compat flag.
5633	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5634	#   nm: unknown option "B" ignored
5635	# Tru64's nm complains that /dev/null is an invalid object file
5636	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5637	*/dev/null* | *'Invalid file or object type'*)
5638	  lt_cv_path_NM="$tmp_nm -B"
5639	  break
5640	  ;;
5641	*)
5642	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5643	  */dev/null*)
5644	    lt_cv_path_NM="$tmp_nm -p"
5645	    break
5646	    ;;
5647	  *)
5648	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5649	    continue # so that we can try to find one that supports BSD flags
5650	    ;;
5651	  esac
5652	  ;;
5653	esac
5654      fi
5655    done
5656    IFS="$lt_save_ifs"
5657  done
5658  : ${lt_cv_path_NM=no}
5659fi
5660fi
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5662$as_echo "$lt_cv_path_NM" >&6; }
5663if test "$lt_cv_path_NM" != "no"; then
5664  NM="$lt_cv_path_NM"
5665else
5666  # Didn't find any BSD compatible name lister, look for dumpbin.
5667  if test -n "$DUMPBIN"; then :
5668    # Let the user override the test.
5669  else
5670    if test -n "$ac_tool_prefix"; then
5671  for ac_prog in dumpbin "link -dump"
5672  do
5673    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5674set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676$as_echo_n "checking for $ac_word... " >&6; }
5677if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5678  $as_echo_n "(cached) " >&6
5679else
5680  if test -n "$DUMPBIN"; then
5681  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5682else
5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686  IFS=$as_save_IFS
5687  test -z "$as_dir" && as_dir=.
5688    for ac_exec_ext in '' $ac_executable_extensions; do
5689  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5690    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692    break 2
5693  fi
5694done
5695  done
5696IFS=$as_save_IFS
5697
5698fi
5699fi
5700DUMPBIN=$ac_cv_prog_DUMPBIN
5701if test -n "$DUMPBIN"; then
5702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5703$as_echo "$DUMPBIN" >&6; }
5704else
5705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706$as_echo "no" >&6; }
5707fi
5708
5709
5710    test -n "$DUMPBIN" && break
5711  done
5712fi
5713if test -z "$DUMPBIN"; then
5714  ac_ct_DUMPBIN=$DUMPBIN
5715  for ac_prog in dumpbin "link -dump"
5716do
5717  # Extract the first word of "$ac_prog", so it can be a program name with args.
5718set dummy $ac_prog; ac_word=$2
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720$as_echo_n "checking for $ac_word... " >&6; }
5721if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5722  $as_echo_n "(cached) " >&6
5723else
5724  if test -n "$ac_ct_DUMPBIN"; then
5725  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5726else
5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728for as_dir in $PATH
5729do
5730  IFS=$as_save_IFS
5731  test -z "$as_dir" && as_dir=.
5732    for ac_exec_ext in '' $ac_executable_extensions; do
5733  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736    break 2
5737  fi
5738done
5739  done
5740IFS=$as_save_IFS
5741
5742fi
5743fi
5744ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5745if test -n "$ac_ct_DUMPBIN"; then
5746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5747$as_echo "$ac_ct_DUMPBIN" >&6; }
5748else
5749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750$as_echo "no" >&6; }
5751fi
5752
5753
5754  test -n "$ac_ct_DUMPBIN" && break
5755done
5756
5757  if test "x$ac_ct_DUMPBIN" = x; then
5758    DUMPBIN=":"
5759  else
5760    case $cross_compiling:$ac_tool_warned in
5761yes:)
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5764ac_tool_warned=yes ;;
5765esac
5766    DUMPBIN=$ac_ct_DUMPBIN
5767  fi
5768fi
5769
5770    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5771    *COFF*)
5772      DUMPBIN="$DUMPBIN -symbols"
5773      ;;
5774    *)
5775      DUMPBIN=:
5776      ;;
5777    esac
5778  fi
5779
5780  if test "$DUMPBIN" != ":"; then
5781    NM="$DUMPBIN"
5782  fi
5783fi
5784test -z "$NM" && NM=nm
5785
5786
5787
5788
5789
5790
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5792$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5793if test "${lt_cv_nm_interface+set}" = set; then :
5794  $as_echo_n "(cached) " >&6
5795else
5796  lt_cv_nm_interface="BSD nm"
5797  echo "int some_variable = 0;" > conftest.$ac_ext
5798  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5799  (eval "$ac_compile" 2>conftest.err)
5800  cat conftest.err >&5
5801  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5802  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5803  cat conftest.err >&5
5804  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5805  cat conftest.out >&5
5806  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5807    lt_cv_nm_interface="MS dumpbin"
5808  fi
5809  rm -f conftest*
5810fi
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5812$as_echo "$lt_cv_nm_interface" >&6; }
5813
5814# find the maximum length of command line arguments
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5816$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5817if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5818  $as_echo_n "(cached) " >&6
5819else
5820    i=0
5821  teststring="ABCD"
5822
5823  case $build_os in
5824  msdosdjgpp*)
5825    # On DJGPP, this test can blow up pretty badly due to problems in libc
5826    # (any single argument exceeding 2000 bytes causes a buffer overrun
5827    # during glob expansion).  Even if it were fixed, the result of this
5828    # check would be larger than it should be.
5829    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5830    ;;
5831
5832  gnu*)
5833    # Under GNU Hurd, this test is not required because there is
5834    # no limit to the length of command line arguments.
5835    # Libtool will interpret -1 as no limit whatsoever
5836    lt_cv_sys_max_cmd_len=-1;
5837    ;;
5838
5839  cygwin* | mingw* | cegcc*)
5840    # On Win9x/ME, this test blows up -- it succeeds, but takes
5841    # about 5 minutes as the teststring grows exponentially.
5842    # Worse, since 9x/ME are not pre-emptively multitasking,
5843    # you end up with a "frozen" computer, even though with patience
5844    # the test eventually succeeds (with a max line length of 256k).
5845    # Instead, let's just punt: use the minimum linelength reported by
5846    # all of the supported platforms: 8192 (on NT/2K/XP).
5847    lt_cv_sys_max_cmd_len=8192;
5848    ;;
5849
5850  mint*)
5851    # On MiNT this can take a long time and run out of memory.
5852    lt_cv_sys_max_cmd_len=8192;
5853    ;;
5854
5855  amigaos*)
5856    # On AmigaOS with pdksh, this test takes hours, literally.
5857    # So we just punt and use a minimum line length of 8192.
5858    lt_cv_sys_max_cmd_len=8192;
5859    ;;
5860
5861  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5862    # This has been around since 386BSD, at least.  Likely further.
5863    if test -x /sbin/sysctl; then
5864      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5865    elif test -x /usr/sbin/sysctl; then
5866      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5867    else
5868      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5869    fi
5870    # And add a safety zone
5871    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5872    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5873    ;;
5874
5875  interix*)
5876    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5877    lt_cv_sys_max_cmd_len=196608
5878    ;;
5879
5880  osf*)
5881    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5882    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5883    # nice to cause kernel panics so lets avoid the loop below.
5884    # First set a reasonable default.
5885    lt_cv_sys_max_cmd_len=16384
5886    #
5887    if test -x /sbin/sysconfig; then
5888      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5889        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5890      esac
5891    fi
5892    ;;
5893  sco3.2v5*)
5894    lt_cv_sys_max_cmd_len=102400
5895    ;;
5896  sysv5* | sco5v6* | sysv4.2uw2*)
5897    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5898    if test -n "$kargmax"; then
5899      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5900    else
5901      lt_cv_sys_max_cmd_len=32768
5902    fi
5903    ;;
5904  *)
5905    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5906    if test -n "$lt_cv_sys_max_cmd_len"; then
5907      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5908      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5909    else
5910      # Make teststring a little bigger before we do anything with it.
5911      # a 1K string should be a reasonable start.
5912      for i in 1 2 3 4 5 6 7 8 ; do
5913        teststring=$teststring$teststring
5914      done
5915      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5916      # If test is not a shell built-in, we'll probably end up computing a
5917      # maximum length that is only half of the actual maximum length, but
5918      # we can't tell.
5919      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5920	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5921	      test $i != 17 # 1/2 MB should be enough
5922      do
5923        i=`expr $i + 1`
5924        teststring=$teststring$teststring
5925      done
5926      # Only check the string length outside the loop.
5927      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5928      teststring=
5929      # Add a significant safety factor because C++ compilers can tack on
5930      # massive amounts of additional arguments before passing them to the
5931      # linker.  It appears as though 1/2 is a usable value.
5932      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5933    fi
5934    ;;
5935  esac
5936
5937fi
5938
5939if test -n $lt_cv_sys_max_cmd_len ; then
5940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5941$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5942else
5943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5944$as_echo "none" >&6; }
5945fi
5946max_cmd_len=$lt_cv_sys_max_cmd_len
5947
5948
5949
5950
5951
5952
5953: ${CP="cp -f"}
5954: ${MV="mv -f"}
5955: ${RM="rm -f"}
5956
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5958$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5959# Try some XSI features
5960xsi_shell=no
5961( _lt_dummy="a/b/c"
5962  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5963      = c,a/b,, \
5964    && eval 'test $(( 1 + 1 )) -eq 2 \
5965    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5966  && xsi_shell=yes
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5968$as_echo "$xsi_shell" >&6; }
5969
5970
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5972$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5973lt_shell_append=no
5974( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5975    >/dev/null 2>&1 \
5976  && lt_shell_append=yes
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5978$as_echo "$lt_shell_append" >&6; }
5979
5980
5981if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5982  lt_unset=unset
5983else
5984  lt_unset=false
5985fi
5986
5987
5988
5989
5990
5991# test EBCDIC or ASCII
5992case `echo X|tr X '\101'` in
5993 A) # ASCII based system
5994    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5995  lt_SP2NL='tr \040 \012'
5996  lt_NL2SP='tr \015\012 \040\040'
5997  ;;
5998 *) # EBCDIC based system
5999  lt_SP2NL='tr \100 \n'
6000  lt_NL2SP='tr \r\n \100\100'
6001  ;;
6002esac
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6013$as_echo_n "checking for $LD option to reload object files... " >&6; }
6014if test "${lt_cv_ld_reload_flag+set}" = set; then :
6015  $as_echo_n "(cached) " >&6
6016else
6017  lt_cv_ld_reload_flag='-r'
6018fi
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6020$as_echo "$lt_cv_ld_reload_flag" >&6; }
6021reload_flag=$lt_cv_ld_reload_flag
6022case $reload_flag in
6023"" | " "*) ;;
6024*) reload_flag=" $reload_flag" ;;
6025esac
6026reload_cmds='$LD$reload_flag -o $output$reload_objs'
6027case $host_os in
6028  darwin*)
6029    if test "$GCC" = yes; then
6030      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6031    else
6032      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6033    fi
6034    ;;
6035esac
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045if test -n "$ac_tool_prefix"; then
6046  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6047set dummy ${ac_tool_prefix}objdump; ac_word=$2
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049$as_echo_n "checking for $ac_word... " >&6; }
6050if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6051  $as_echo_n "(cached) " >&6
6052else
6053  if test -n "$OBJDUMP"; then
6054  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6055else
6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057for as_dir in $PATH
6058do
6059  IFS=$as_save_IFS
6060  test -z "$as_dir" && as_dir=.
6061    for ac_exec_ext in '' $ac_executable_extensions; do
6062  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065    break 2
6066  fi
6067done
6068  done
6069IFS=$as_save_IFS
6070
6071fi
6072fi
6073OBJDUMP=$ac_cv_prog_OBJDUMP
6074if test -n "$OBJDUMP"; then
6075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6076$as_echo "$OBJDUMP" >&6; }
6077else
6078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079$as_echo "no" >&6; }
6080fi
6081
6082
6083fi
6084if test -z "$ac_cv_prog_OBJDUMP"; then
6085  ac_ct_OBJDUMP=$OBJDUMP
6086  # Extract the first word of "objdump", so it can be a program name with args.
6087set dummy objdump; ac_word=$2
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089$as_echo_n "checking for $ac_word... " >&6; }
6090if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6091  $as_echo_n "(cached) " >&6
6092else
6093  if test -n "$ac_ct_OBJDUMP"; then
6094  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6095else
6096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097for as_dir in $PATH
6098do
6099  IFS=$as_save_IFS
6100  test -z "$as_dir" && as_dir=.
6101    for ac_exec_ext in '' $ac_executable_extensions; do
6102  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105    break 2
6106  fi
6107done
6108  done
6109IFS=$as_save_IFS
6110
6111fi
6112fi
6113ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6114if test -n "$ac_ct_OBJDUMP"; then
6115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6116$as_echo "$ac_ct_OBJDUMP" >&6; }
6117else
6118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119$as_echo "no" >&6; }
6120fi
6121
6122  if test "x$ac_ct_OBJDUMP" = x; then
6123    OBJDUMP="false"
6124  else
6125    case $cross_compiling:$ac_tool_warned in
6126yes:)
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6129ac_tool_warned=yes ;;
6130esac
6131    OBJDUMP=$ac_ct_OBJDUMP
6132  fi
6133else
6134  OBJDUMP="$ac_cv_prog_OBJDUMP"
6135fi
6136
6137test -z "$OBJDUMP" && OBJDUMP=objdump
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6148$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6149if test "${lt_cv_deplibs_check_method+set}" = set; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152  lt_cv_file_magic_cmd='$MAGIC_CMD'
6153lt_cv_file_magic_test_file=
6154lt_cv_deplibs_check_method='unknown'
6155# Need to set the preceding variable on all platforms that support
6156# interlibrary dependencies.
6157# 'none' -- dependencies not supported.
6158# `unknown' -- same as none, but documents that we really don't know.
6159# 'pass_all' -- all dependencies passed with no checks.
6160# 'test_compile' -- check by making test program.
6161# 'file_magic [[regex]]' -- check by looking for files in library path
6162# which responds to the $file_magic_cmd with a given extended regex.
6163# If you have `file' or equivalent on your system and you're not sure
6164# whether `pass_all' will *always* work, you probably want this one.
6165
6166case $host_os in
6167aix[4-9]*)
6168  lt_cv_deplibs_check_method=pass_all
6169  ;;
6170
6171beos*)
6172  lt_cv_deplibs_check_method=pass_all
6173  ;;
6174
6175bsdi[45]*)
6176  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6177  lt_cv_file_magic_cmd='/usr/bin/file -L'
6178  lt_cv_file_magic_test_file=/shlib/libc.so
6179  ;;
6180
6181cygwin*)
6182  # func_win32_libid is a shell function defined in ltmain.sh
6183  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6184  lt_cv_file_magic_cmd='func_win32_libid'
6185  ;;
6186
6187mingw* | pw32*)
6188  # Base MSYS/MinGW do not provide the 'file' command needed by
6189  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6190  # unless we find 'file', for example because we are cross-compiling.
6191  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6192  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6193    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6194    lt_cv_file_magic_cmd='func_win32_libid'
6195  else
6196    # Keep this pattern in sync with the one in func_win32_libid.
6197    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6198    lt_cv_file_magic_cmd='$OBJDUMP -f'
6199  fi
6200  ;;
6201
6202cegcc*)
6203  # use the weaker test based on 'objdump'. See mingw*.
6204  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6205  lt_cv_file_magic_cmd='$OBJDUMP -f'
6206  ;;
6207
6208darwin* | rhapsody*)
6209  lt_cv_deplibs_check_method=pass_all
6210  ;;
6211
6212freebsd* | dragonfly*)
6213  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6214    case $host_cpu in
6215    i*86 )
6216      # Not sure whether the presence of OpenBSD here was a mistake.
6217      # Let's accept both of them until this is cleared up.
6218      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6219      lt_cv_file_magic_cmd=/usr/bin/file
6220      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6221      ;;
6222    esac
6223  else
6224    lt_cv_deplibs_check_method=pass_all
6225  fi
6226  ;;
6227
6228gnu*)
6229  lt_cv_deplibs_check_method=pass_all
6230  ;;
6231
6232haiku*)
6233  lt_cv_deplibs_check_method=pass_all
6234  ;;
6235
6236hpux10.20* | hpux11*)
6237  lt_cv_file_magic_cmd=/usr/bin/file
6238  case $host_cpu in
6239  ia64*)
6240    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6241    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6242    ;;
6243  hppa*64*)
6244    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]'
6245    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6246    ;;
6247  *)
6248    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6249    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6250    ;;
6251  esac
6252  ;;
6253
6254interix[3-9]*)
6255  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6256  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6257  ;;
6258
6259irix5* | irix6* | nonstopux*)
6260  case $LD in
6261  *-32|*"-32 ") libmagic=32-bit;;
6262  *-n32|*"-n32 ") libmagic=N32;;
6263  *-64|*"-64 ") libmagic=64-bit;;
6264  *) libmagic=never-match;;
6265  esac
6266  lt_cv_deplibs_check_method=pass_all
6267  ;;
6268
6269# This must be Linux ELF.
6270linux* | k*bsd*-gnu | kopensolaris*-gnu)
6271  lt_cv_deplibs_check_method=pass_all
6272  ;;
6273
6274netbsd*)
6275  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6276    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6277  else
6278    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6279  fi
6280  ;;
6281
6282newos6*)
6283  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6284  lt_cv_file_magic_cmd=/usr/bin/file
6285  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6286  ;;
6287
6288*nto* | *qnx*)
6289  lt_cv_deplibs_check_method=pass_all
6290  ;;
6291
6292openbsd*)
6293  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6294    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6295  else
6296    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6297  fi
6298  ;;
6299
6300osf3* | osf4* | osf5*)
6301  lt_cv_deplibs_check_method=pass_all
6302  ;;
6303
6304rdos*)
6305  lt_cv_deplibs_check_method=pass_all
6306  ;;
6307
6308solaris*)
6309  lt_cv_deplibs_check_method=pass_all
6310  ;;
6311
6312sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6313  lt_cv_deplibs_check_method=pass_all
6314  ;;
6315
6316sysv4 | sysv4.3*)
6317  case $host_vendor in
6318  motorola)
6319    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]'
6320    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6321    ;;
6322  ncr)
6323    lt_cv_deplibs_check_method=pass_all
6324    ;;
6325  sequent)
6326    lt_cv_file_magic_cmd='/bin/file'
6327    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6328    ;;
6329  sni)
6330    lt_cv_file_magic_cmd='/bin/file'
6331    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6332    lt_cv_file_magic_test_file=/lib/libc.so
6333    ;;
6334  siemens)
6335    lt_cv_deplibs_check_method=pass_all
6336    ;;
6337  pc)
6338    lt_cv_deplibs_check_method=pass_all
6339    ;;
6340  esac
6341  ;;
6342
6343tpf*)
6344  lt_cv_deplibs_check_method=pass_all
6345  ;;
6346esac
6347
6348fi
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6350$as_echo "$lt_cv_deplibs_check_method" >&6; }
6351file_magic_cmd=$lt_cv_file_magic_cmd
6352deplibs_check_method=$lt_cv_deplibs_check_method
6353test -z "$deplibs_check_method" && deplibs_check_method=unknown
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366if test -n "$ac_tool_prefix"; then
6367  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6368set dummy ${ac_tool_prefix}ar; ac_word=$2
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370$as_echo_n "checking for $ac_word... " >&6; }
6371if test "${ac_cv_prog_AR+set}" = set; then :
6372  $as_echo_n "(cached) " >&6
6373else
6374  if test -n "$AR"; then
6375  ac_cv_prog_AR="$AR" # Let the user override the test.
6376else
6377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378for as_dir in $PATH
6379do
6380  IFS=$as_save_IFS
6381  test -z "$as_dir" && as_dir=.
6382    for ac_exec_ext in '' $ac_executable_extensions; do
6383  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6384    ac_cv_prog_AR="${ac_tool_prefix}ar"
6385    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386    break 2
6387  fi
6388done
6389  done
6390IFS=$as_save_IFS
6391
6392fi
6393fi
6394AR=$ac_cv_prog_AR
6395if test -n "$AR"; then
6396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6397$as_echo "$AR" >&6; }
6398else
6399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400$as_echo "no" >&6; }
6401fi
6402
6403
6404fi
6405if test -z "$ac_cv_prog_AR"; then
6406  ac_ct_AR=$AR
6407  # Extract the first word of "ar", so it can be a program name with args.
6408set dummy ar; ac_word=$2
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410$as_echo_n "checking for $ac_word... " >&6; }
6411if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6412  $as_echo_n "(cached) " >&6
6413else
6414  if test -n "$ac_ct_AR"; then
6415  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6416else
6417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418for as_dir in $PATH
6419do
6420  IFS=$as_save_IFS
6421  test -z "$as_dir" && as_dir=.
6422    for ac_exec_ext in '' $ac_executable_extensions; do
6423  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6424    ac_cv_prog_ac_ct_AR="ar"
6425    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426    break 2
6427  fi
6428done
6429  done
6430IFS=$as_save_IFS
6431
6432fi
6433fi
6434ac_ct_AR=$ac_cv_prog_ac_ct_AR
6435if test -n "$ac_ct_AR"; then
6436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6437$as_echo "$ac_ct_AR" >&6; }
6438else
6439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440$as_echo "no" >&6; }
6441fi
6442
6443  if test "x$ac_ct_AR" = x; then
6444    AR="false"
6445  else
6446    case $cross_compiling:$ac_tool_warned in
6447yes:)
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6450ac_tool_warned=yes ;;
6451esac
6452    AR=$ac_ct_AR
6453  fi
6454else
6455  AR="$ac_cv_prog_AR"
6456fi
6457
6458test -z "$AR" && AR=ar
6459test -z "$AR_FLAGS" && AR_FLAGS=cru
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471if test -n "$ac_tool_prefix"; then
6472  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6473set dummy ${ac_tool_prefix}strip; ac_word=$2
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475$as_echo_n "checking for $ac_word... " >&6; }
6476if test "${ac_cv_prog_STRIP+set}" = set; then :
6477  $as_echo_n "(cached) " >&6
6478else
6479  if test -n "$STRIP"; then
6480  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6481else
6482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483for as_dir in $PATH
6484do
6485  IFS=$as_save_IFS
6486  test -z "$as_dir" && as_dir=.
6487    for ac_exec_ext in '' $ac_executable_extensions; do
6488  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491    break 2
6492  fi
6493done
6494  done
6495IFS=$as_save_IFS
6496
6497fi
6498fi
6499STRIP=$ac_cv_prog_STRIP
6500if test -n "$STRIP"; then
6501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6502$as_echo "$STRIP" >&6; }
6503else
6504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505$as_echo "no" >&6; }
6506fi
6507
6508
6509fi
6510if test -z "$ac_cv_prog_STRIP"; then
6511  ac_ct_STRIP=$STRIP
6512  # Extract the first word of "strip", so it can be a program name with args.
6513set dummy strip; ac_word=$2
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515$as_echo_n "checking for $ac_word... " >&6; }
6516if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6517  $as_echo_n "(cached) " >&6
6518else
6519  if test -n "$ac_ct_STRIP"; then
6520  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6521else
6522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523for as_dir in $PATH
6524do
6525  IFS=$as_save_IFS
6526  test -z "$as_dir" && as_dir=.
6527    for ac_exec_ext in '' $ac_executable_extensions; do
6528  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529    ac_cv_prog_ac_ct_STRIP="strip"
6530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6531    break 2
6532  fi
6533done
6534  done
6535IFS=$as_save_IFS
6536
6537fi
6538fi
6539ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6540if test -n "$ac_ct_STRIP"; then
6541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6542$as_echo "$ac_ct_STRIP" >&6; }
6543else
6544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545$as_echo "no" >&6; }
6546fi
6547
6548  if test "x$ac_ct_STRIP" = x; then
6549    STRIP=":"
6550  else
6551    case $cross_compiling:$ac_tool_warned in
6552yes:)
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555ac_tool_warned=yes ;;
6556esac
6557    STRIP=$ac_ct_STRIP
6558  fi
6559else
6560  STRIP="$ac_cv_prog_STRIP"
6561fi
6562
6563test -z "$STRIP" && STRIP=:
6564
6565
6566
6567
6568
6569
6570if test -n "$ac_tool_prefix"; then
6571  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6572set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574$as_echo_n "checking for $ac_word... " >&6; }
6575if test "${ac_cv_prog_RANLIB+set}" = set; then :
6576  $as_echo_n "(cached) " >&6
6577else
6578  if test -n "$RANLIB"; then
6579  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6580else
6581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582for as_dir in $PATH
6583do
6584  IFS=$as_save_IFS
6585  test -z "$as_dir" && as_dir=.
6586    for ac_exec_ext in '' $ac_executable_extensions; do
6587  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590    break 2
6591  fi
6592done
6593  done
6594IFS=$as_save_IFS
6595
6596fi
6597fi
6598RANLIB=$ac_cv_prog_RANLIB
6599if test -n "$RANLIB"; then
6600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6601$as_echo "$RANLIB" >&6; }
6602else
6603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604$as_echo "no" >&6; }
6605fi
6606
6607
6608fi
6609if test -z "$ac_cv_prog_RANLIB"; then
6610  ac_ct_RANLIB=$RANLIB
6611  # Extract the first word of "ranlib", so it can be a program name with args.
6612set dummy ranlib; ac_word=$2
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614$as_echo_n "checking for $ac_word... " >&6; }
6615if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6616  $as_echo_n "(cached) " >&6
6617else
6618  if test -n "$ac_ct_RANLIB"; then
6619  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6620else
6621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622for as_dir in $PATH
6623do
6624  IFS=$as_save_IFS
6625  test -z "$as_dir" && as_dir=.
6626    for ac_exec_ext in '' $ac_executable_extensions; do
6627  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6628    ac_cv_prog_ac_ct_RANLIB="ranlib"
6629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630    break 2
6631  fi
6632done
6633  done
6634IFS=$as_save_IFS
6635
6636fi
6637fi
6638ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6639if test -n "$ac_ct_RANLIB"; then
6640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6641$as_echo "$ac_ct_RANLIB" >&6; }
6642else
6643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644$as_echo "no" >&6; }
6645fi
6646
6647  if test "x$ac_ct_RANLIB" = x; then
6648    RANLIB=":"
6649  else
6650    case $cross_compiling:$ac_tool_warned in
6651yes:)
6652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6654ac_tool_warned=yes ;;
6655esac
6656    RANLIB=$ac_ct_RANLIB
6657  fi
6658else
6659  RANLIB="$ac_cv_prog_RANLIB"
6660fi
6661
6662test -z "$RANLIB" && RANLIB=:
6663
6664
6665
6666
6667
6668
6669# Determine commands to create old-style static archives.
6670old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6671old_postinstall_cmds='chmod 644 $oldlib'
6672old_postuninstall_cmds=
6673
6674if test -n "$RANLIB"; then
6675  case $host_os in
6676  openbsd*)
6677    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6678    ;;
6679  *)
6680    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6681    ;;
6682  esac
6683  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6684fi
6685
6686case $host_os in
6687  darwin*)
6688    lock_old_archive_extraction=yes ;;
6689  *)
6690    lock_old_archive_extraction=no ;;
6691esac
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731# If no C compiler was specified, use CC.
6732LTCC=${LTCC-"$CC"}
6733
6734# If no C compiler flags were specified, use CFLAGS.
6735LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6736
6737# Allow CC to be a program name with arguments.
6738compiler=$CC
6739
6740
6741# Check for command to grab the raw symbol name followed by C symbol from nm.
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6743$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6744if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6745  $as_echo_n "(cached) " >&6
6746else
6747
6748# These are sane defaults that work on at least a few old systems.
6749# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6750
6751# Character class describing NM global symbol codes.
6752symcode='[BCDEGRST]'
6753
6754# Regexp to match symbols that can be accessed directly from C.
6755sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6756
6757# Define system-specific variables.
6758case $host_os in
6759aix*)
6760  symcode='[BCDT]'
6761  ;;
6762cygwin* | mingw* | pw32* | cegcc*)
6763  symcode='[ABCDGISTW]'
6764  ;;
6765hpux*)
6766  if test "$host_cpu" = ia64; then
6767    symcode='[ABCDEGRST]'
6768  fi
6769  ;;
6770irix* | nonstopux*)
6771  symcode='[BCDEGRST]'
6772  ;;
6773osf*)
6774  symcode='[BCDEGQRST]'
6775  ;;
6776solaris*)
6777  symcode='[BDRT]'
6778  ;;
6779sco3.2v5*)
6780  symcode='[DT]'
6781  ;;
6782sysv4.2uw2*)
6783  symcode='[DT]'
6784  ;;
6785sysv5* | sco5v6* | unixware* | OpenUNIX*)
6786  symcode='[ABDT]'
6787  ;;
6788sysv4)
6789  symcode='[DFNSTU]'
6790  ;;
6791esac
6792
6793# If we're using GNU nm, then use its standard symbol codes.
6794case `$NM -V 2>&1` in
6795*GNU* | *'with BFD'*)
6796  symcode='[ABCDGIRSTW]' ;;
6797esac
6798
6799# Transform an extracted symbol line into a proper C declaration.
6800# Some systems (esp. on ia64) link data and code symbols differently,
6801# so use this general approach.
6802lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6803
6804# Transform an extracted symbol line into symbol name and symbol address
6805lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6806lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6807
6808# Handle CRLF in mingw tool chain
6809opt_cr=
6810case $build_os in
6811mingw*)
6812  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6813  ;;
6814esac
6815
6816# Try without a prefix underscore, then with it.
6817for ac_symprfx in "" "_"; do
6818
6819  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6820  symxfrm="\\1 $ac_symprfx\\2 \\2"
6821
6822  # Write the raw and C identifiers.
6823  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6824    # Fake it for dumpbin and say T for any non-static function
6825    # and D for any global variable.
6826    # Also find C++ and __fastcall symbols from MSVC++,
6827    # which start with @ or ?.
6828    lt_cv_sys_global_symbol_pipe="$AWK '"\
6829"     {last_section=section; section=\$ 3};"\
6830"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6831"     \$ 0!~/External *\|/{next};"\
6832"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6833"     {if(hide[section]) next};"\
6834"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6835"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6836"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6837"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6838"     ' prfx=^$ac_symprfx"
6839  else
6840    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6841  fi
6842
6843  # Check to see that the pipe works correctly.
6844  pipe_works=no
6845
6846  rm -f conftest*
6847  cat > conftest.$ac_ext <<_LT_EOF
6848#ifdef __cplusplus
6849extern "C" {
6850#endif
6851char nm_test_var;
6852void nm_test_func(void);
6853void nm_test_func(void){}
6854#ifdef __cplusplus
6855}
6856#endif
6857int main(){nm_test_var='a';nm_test_func();return(0);}
6858_LT_EOF
6859
6860  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6861  (eval $ac_compile) 2>&5
6862  ac_status=$?
6863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6864  test $ac_status = 0; }; then
6865    # Now try to grab the symbols.
6866    nlist=conftest.nm
6867    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6868  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6869  ac_status=$?
6870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6871  test $ac_status = 0; } && test -s "$nlist"; then
6872      # Try sorting and uniquifying the output.
6873      if sort "$nlist" | uniq > "$nlist"T; then
6874	mv -f "$nlist"T "$nlist"
6875      else
6876	rm -f "$nlist"T
6877      fi
6878
6879      # Make sure that we snagged all the symbols we need.
6880      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6881	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6882	  cat <<_LT_EOF > conftest.$ac_ext
6883#ifdef __cplusplus
6884extern "C" {
6885#endif
6886
6887_LT_EOF
6888	  # Now generate the symbol file.
6889	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6890
6891	  cat <<_LT_EOF >> conftest.$ac_ext
6892
6893/* The mapping between symbol names and symbols.  */
6894const struct {
6895  const char *name;
6896  void       *address;
6897}
6898lt__PROGRAM__LTX_preloaded_symbols[] =
6899{
6900  { "@PROGRAM@", (void *) 0 },
6901_LT_EOF
6902	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6903	  cat <<\_LT_EOF >> conftest.$ac_ext
6904  {0, (void *) 0}
6905};
6906
6907/* This works around a problem in FreeBSD linker */
6908#ifdef FREEBSD_WORKAROUND
6909static const void *lt_preloaded_setup() {
6910  return lt__PROGRAM__LTX_preloaded_symbols;
6911}
6912#endif
6913
6914#ifdef __cplusplus
6915}
6916#endif
6917_LT_EOF
6918	  # Now try linking the two files.
6919	  mv conftest.$ac_objext conftstm.$ac_objext
6920	  lt_save_LIBS="$LIBS"
6921	  lt_save_CFLAGS="$CFLAGS"
6922	  LIBS="conftstm.$ac_objext"
6923	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6924	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6925  (eval $ac_link) 2>&5
6926  ac_status=$?
6927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6928  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6929	    pipe_works=yes
6930	  fi
6931	  LIBS="$lt_save_LIBS"
6932	  CFLAGS="$lt_save_CFLAGS"
6933	else
6934	  echo "cannot find nm_test_func in $nlist" >&5
6935	fi
6936      else
6937	echo "cannot find nm_test_var in $nlist" >&5
6938      fi
6939    else
6940      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6941    fi
6942  else
6943    echo "$progname: failed program was:" >&5
6944    cat conftest.$ac_ext >&5
6945  fi
6946  rm -rf conftest* conftst*
6947
6948  # Do not use the global_symbol_pipe unless it works.
6949  if test "$pipe_works" = yes; then
6950    break
6951  else
6952    lt_cv_sys_global_symbol_pipe=
6953  fi
6954done
6955
6956fi
6957
6958if test -z "$lt_cv_sys_global_symbol_pipe"; then
6959  lt_cv_sys_global_symbol_to_cdecl=
6960fi
6961if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6963$as_echo "failed" >&6; }
6964else
6965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6966$as_echo "ok" >&6; }
6967fi
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990# Check whether --enable-libtool-lock was given.
6991if test "${enable_libtool_lock+set}" = set; then :
6992  enableval=$enable_libtool_lock;
6993fi
6994
6995test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6996
6997# Some flags need to be propagated to the compiler or linker for good
6998# libtool support.
6999case $host in
7000ia64-*-hpux*)
7001  # Find out which ABI we are using.
7002  echo 'int i;' > conftest.$ac_ext
7003  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7004  (eval $ac_compile) 2>&5
7005  ac_status=$?
7006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7007  test $ac_status = 0; }; then
7008    case `/usr/bin/file conftest.$ac_objext` in
7009      *ELF-32*)
7010	HPUX_IA64_MODE="32"
7011	;;
7012      *ELF-64*)
7013	HPUX_IA64_MODE="64"
7014	;;
7015    esac
7016  fi
7017  rm -rf conftest*
7018  ;;
7019*-*-irix6*)
7020  # Find out which ABI we are using.
7021  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7022  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7023  (eval $ac_compile) 2>&5
7024  ac_status=$?
7025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7026  test $ac_status = 0; }; then
7027    if test "$lt_cv_prog_gnu_ld" = yes; then
7028      case `/usr/bin/file conftest.$ac_objext` in
7029	*32-bit*)
7030	  LD="${LD-ld} -melf32bsmip"
7031	  ;;
7032	*N32*)
7033	  LD="${LD-ld} -melf32bmipn32"
7034	  ;;
7035	*64-bit*)
7036	  LD="${LD-ld} -melf64bmip"
7037	;;
7038      esac
7039    else
7040      case `/usr/bin/file conftest.$ac_objext` in
7041	*32-bit*)
7042	  LD="${LD-ld} -32"
7043	  ;;
7044	*N32*)
7045	  LD="${LD-ld} -n32"
7046	  ;;
7047	*64-bit*)
7048	  LD="${LD-ld} -64"
7049	  ;;
7050      esac
7051    fi
7052  fi
7053  rm -rf conftest*
7054  ;;
7055
7056x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7057s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7058  # Find out which ABI we are using.
7059  echo 'int i;' > conftest.$ac_ext
7060  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7061  (eval $ac_compile) 2>&5
7062  ac_status=$?
7063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7064  test $ac_status = 0; }; then
7065    case `/usr/bin/file conftest.o` in
7066      *32-bit*)
7067	case $host in
7068	  x86_64-*kfreebsd*-gnu)
7069	    LD="${LD-ld} -m elf_i386_fbsd"
7070	    ;;
7071	  x86_64-*linux*)
7072	    LD="${LD-ld} -m elf_i386"
7073	    ;;
7074	  ppc64-*linux*|powerpc64-*linux*)
7075	    LD="${LD-ld} -m elf32ppclinux"
7076	    ;;
7077	  s390x-*linux*)
7078	    LD="${LD-ld} -m elf_s390"
7079	    ;;
7080	  sparc64-*linux*)
7081	    LD="${LD-ld} -m elf32_sparc"
7082	    ;;
7083	esac
7084	;;
7085      *64-bit*)
7086	case $host in
7087	  x86_64-*kfreebsd*-gnu)
7088	    LD="${LD-ld} -m elf_x86_64_fbsd"
7089	    ;;
7090	  x86_64-*linux*)
7091	    LD="${LD-ld} -m elf_x86_64"
7092	    ;;
7093	  ppc*-*linux*|powerpc*-*linux*)
7094	    LD="${LD-ld} -m elf64ppc"
7095	    ;;
7096	  s390*-*linux*|s390*-*tpf*)
7097	    LD="${LD-ld} -m elf64_s390"
7098	    ;;
7099	  sparc*-*linux*)
7100	    LD="${LD-ld} -m elf64_sparc"
7101	    ;;
7102	esac
7103	;;
7104    esac
7105  fi
7106  rm -rf conftest*
7107  ;;
7108
7109*-*-sco3.2v5*)
7110  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7111  SAVE_CFLAGS="$CFLAGS"
7112  CFLAGS="$CFLAGS -belf"
7113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7114$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7115if test "${lt_cv_cc_needs_belf+set}" = set; then :
7116  $as_echo_n "(cached) " >&6
7117else
7118  ac_ext=c
7119ac_cpp='$CPP $CPPFLAGS'
7120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7122ac_compiler_gnu=$ac_cv_c_compiler_gnu
7123
7124     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125/* end confdefs.h.  */
7126
7127int
7128main ()
7129{
7130
7131  ;
7132  return 0;
7133}
7134_ACEOF
7135if ac_fn_c_try_link "$LINENO"; then :
7136  lt_cv_cc_needs_belf=yes
7137else
7138  lt_cv_cc_needs_belf=no
7139fi
7140rm -f core conftest.err conftest.$ac_objext \
7141    conftest$ac_exeext conftest.$ac_ext
7142     ac_ext=c
7143ac_cpp='$CPP $CPPFLAGS'
7144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7146ac_compiler_gnu=$ac_cv_c_compiler_gnu
7147
7148fi
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7150$as_echo "$lt_cv_cc_needs_belf" >&6; }
7151  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7152    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7153    CFLAGS="$SAVE_CFLAGS"
7154  fi
7155  ;;
7156sparc*-*solaris*)
7157  # Find out which ABI we are using.
7158  echo 'int i;' > conftest.$ac_ext
7159  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7160  (eval $ac_compile) 2>&5
7161  ac_status=$?
7162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7163  test $ac_status = 0; }; then
7164    case `/usr/bin/file conftest.o` in
7165    *64-bit*)
7166      case $lt_cv_prog_gnu_ld in
7167      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7168      *)
7169	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7170	  LD="${LD-ld} -64"
7171	fi
7172	;;
7173      esac
7174      ;;
7175    esac
7176  fi
7177  rm -rf conftest*
7178  ;;
7179esac
7180
7181need_locks="$enable_libtool_lock"
7182
7183
7184  case $host_os in
7185    rhapsody* | darwin*)
7186    if test -n "$ac_tool_prefix"; then
7187  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7188set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190$as_echo_n "checking for $ac_word... " >&6; }
7191if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7192  $as_echo_n "(cached) " >&6
7193else
7194  if test -n "$DSYMUTIL"; then
7195  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7196else
7197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198for as_dir in $PATH
7199do
7200  IFS=$as_save_IFS
7201  test -z "$as_dir" && as_dir=.
7202    for ac_exec_ext in '' $ac_executable_extensions; do
7203  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7204    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206    break 2
7207  fi
7208done
7209  done
7210IFS=$as_save_IFS
7211
7212fi
7213fi
7214DSYMUTIL=$ac_cv_prog_DSYMUTIL
7215if test -n "$DSYMUTIL"; then
7216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7217$as_echo "$DSYMUTIL" >&6; }
7218else
7219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220$as_echo "no" >&6; }
7221fi
7222
7223
7224fi
7225if test -z "$ac_cv_prog_DSYMUTIL"; then
7226  ac_ct_DSYMUTIL=$DSYMUTIL
7227  # Extract the first word of "dsymutil", so it can be a program name with args.
7228set dummy dsymutil; ac_word=$2
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230$as_echo_n "checking for $ac_word... " >&6; }
7231if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7232  $as_echo_n "(cached) " >&6
7233else
7234  if test -n "$ac_ct_DSYMUTIL"; then
7235  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7236else
7237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238for as_dir in $PATH
7239do
7240  IFS=$as_save_IFS
7241  test -z "$as_dir" && as_dir=.
7242    for ac_exec_ext in '' $ac_executable_extensions; do
7243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7244    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246    break 2
7247  fi
7248done
7249  done
7250IFS=$as_save_IFS
7251
7252fi
7253fi
7254ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7255if test -n "$ac_ct_DSYMUTIL"; then
7256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7257$as_echo "$ac_ct_DSYMUTIL" >&6; }
7258else
7259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260$as_echo "no" >&6; }
7261fi
7262
7263  if test "x$ac_ct_DSYMUTIL" = x; then
7264    DSYMUTIL=":"
7265  else
7266    case $cross_compiling:$ac_tool_warned in
7267yes:)
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270ac_tool_warned=yes ;;
7271esac
7272    DSYMUTIL=$ac_ct_DSYMUTIL
7273  fi
7274else
7275  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7276fi
7277
7278    if test -n "$ac_tool_prefix"; then
7279  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7280set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7282$as_echo_n "checking for $ac_word... " >&6; }
7283if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7284  $as_echo_n "(cached) " >&6
7285else
7286  if test -n "$NMEDIT"; then
7287  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7288else
7289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290for as_dir in $PATH
7291do
7292  IFS=$as_save_IFS
7293  test -z "$as_dir" && as_dir=.
7294    for ac_exec_ext in '' $ac_executable_extensions; do
7295  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7296    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7298    break 2
7299  fi
7300done
7301  done
7302IFS=$as_save_IFS
7303
7304fi
7305fi
7306NMEDIT=$ac_cv_prog_NMEDIT
7307if test -n "$NMEDIT"; then
7308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7309$as_echo "$NMEDIT" >&6; }
7310else
7311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312$as_echo "no" >&6; }
7313fi
7314
7315
7316fi
7317if test -z "$ac_cv_prog_NMEDIT"; then
7318  ac_ct_NMEDIT=$NMEDIT
7319  # Extract the first word of "nmedit", so it can be a program name with args.
7320set dummy nmedit; ac_word=$2
7321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7322$as_echo_n "checking for $ac_word... " >&6; }
7323if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7324  $as_echo_n "(cached) " >&6
7325else
7326  if test -n "$ac_ct_NMEDIT"; then
7327  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7328else
7329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330for as_dir in $PATH
7331do
7332  IFS=$as_save_IFS
7333  test -z "$as_dir" && as_dir=.
7334    for ac_exec_ext in '' $ac_executable_extensions; do
7335  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7336    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7337    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7338    break 2
7339  fi
7340done
7341  done
7342IFS=$as_save_IFS
7343
7344fi
7345fi
7346ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7347if test -n "$ac_ct_NMEDIT"; then
7348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7349$as_echo "$ac_ct_NMEDIT" >&6; }
7350else
7351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352$as_echo "no" >&6; }
7353fi
7354
7355  if test "x$ac_ct_NMEDIT" = x; then
7356    NMEDIT=":"
7357  else
7358    case $cross_compiling:$ac_tool_warned in
7359yes:)
7360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7362ac_tool_warned=yes ;;
7363esac
7364    NMEDIT=$ac_ct_NMEDIT
7365  fi
7366else
7367  NMEDIT="$ac_cv_prog_NMEDIT"
7368fi
7369
7370    if test -n "$ac_tool_prefix"; then
7371  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7372set dummy ${ac_tool_prefix}lipo; ac_word=$2
7373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374$as_echo_n "checking for $ac_word... " >&6; }
7375if test "${ac_cv_prog_LIPO+set}" = set; then :
7376  $as_echo_n "(cached) " >&6
7377else
7378  if test -n "$LIPO"; then
7379  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7380else
7381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382for as_dir in $PATH
7383do
7384  IFS=$as_save_IFS
7385  test -z "$as_dir" && as_dir=.
7386    for ac_exec_ext in '' $ac_executable_extensions; do
7387  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7388    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7390    break 2
7391  fi
7392done
7393  done
7394IFS=$as_save_IFS
7395
7396fi
7397fi
7398LIPO=$ac_cv_prog_LIPO
7399if test -n "$LIPO"; then
7400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7401$as_echo "$LIPO" >&6; }
7402else
7403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404$as_echo "no" >&6; }
7405fi
7406
7407
7408fi
7409if test -z "$ac_cv_prog_LIPO"; then
7410  ac_ct_LIPO=$LIPO
7411  # Extract the first word of "lipo", so it can be a program name with args.
7412set dummy lipo; ac_word=$2
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414$as_echo_n "checking for $ac_word... " >&6; }
7415if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7416  $as_echo_n "(cached) " >&6
7417else
7418  if test -n "$ac_ct_LIPO"; then
7419  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7420else
7421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422for as_dir in $PATH
7423do
7424  IFS=$as_save_IFS
7425  test -z "$as_dir" && as_dir=.
7426    for ac_exec_ext in '' $ac_executable_extensions; do
7427  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428    ac_cv_prog_ac_ct_LIPO="lipo"
7429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430    break 2
7431  fi
7432done
7433  done
7434IFS=$as_save_IFS
7435
7436fi
7437fi
7438ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7439if test -n "$ac_ct_LIPO"; then
7440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7441$as_echo "$ac_ct_LIPO" >&6; }
7442else
7443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444$as_echo "no" >&6; }
7445fi
7446
7447  if test "x$ac_ct_LIPO" = x; then
7448    LIPO=":"
7449  else
7450    case $cross_compiling:$ac_tool_warned in
7451yes:)
7452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7454ac_tool_warned=yes ;;
7455esac
7456    LIPO=$ac_ct_LIPO
7457  fi
7458else
7459  LIPO="$ac_cv_prog_LIPO"
7460fi
7461
7462    if test -n "$ac_tool_prefix"; then
7463  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7464set dummy ${ac_tool_prefix}otool; ac_word=$2
7465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466$as_echo_n "checking for $ac_word... " >&6; }
7467if test "${ac_cv_prog_OTOOL+set}" = set; then :
7468  $as_echo_n "(cached) " >&6
7469else
7470  if test -n "$OTOOL"; then
7471  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7472else
7473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474for as_dir in $PATH
7475do
7476  IFS=$as_save_IFS
7477  test -z "$as_dir" && as_dir=.
7478    for ac_exec_ext in '' $ac_executable_extensions; do
7479  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7480    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482    break 2
7483  fi
7484done
7485  done
7486IFS=$as_save_IFS
7487
7488fi
7489fi
7490OTOOL=$ac_cv_prog_OTOOL
7491if test -n "$OTOOL"; then
7492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7493$as_echo "$OTOOL" >&6; }
7494else
7495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496$as_echo "no" >&6; }
7497fi
7498
7499
7500fi
7501if test -z "$ac_cv_prog_OTOOL"; then
7502  ac_ct_OTOOL=$OTOOL
7503  # Extract the first word of "otool", so it can be a program name with args.
7504set dummy otool; ac_word=$2
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506$as_echo_n "checking for $ac_word... " >&6; }
7507if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7508  $as_echo_n "(cached) " >&6
7509else
7510  if test -n "$ac_ct_OTOOL"; then
7511  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7512else
7513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514for as_dir in $PATH
7515do
7516  IFS=$as_save_IFS
7517  test -z "$as_dir" && as_dir=.
7518    for ac_exec_ext in '' $ac_executable_extensions; do
7519  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7520    ac_cv_prog_ac_ct_OTOOL="otool"
7521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522    break 2
7523  fi
7524done
7525  done
7526IFS=$as_save_IFS
7527
7528fi
7529fi
7530ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7531if test -n "$ac_ct_OTOOL"; then
7532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7533$as_echo "$ac_ct_OTOOL" >&6; }
7534else
7535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536$as_echo "no" >&6; }
7537fi
7538
7539  if test "x$ac_ct_OTOOL" = x; then
7540    OTOOL=":"
7541  else
7542    case $cross_compiling:$ac_tool_warned in
7543yes:)
7544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7546ac_tool_warned=yes ;;
7547esac
7548    OTOOL=$ac_ct_OTOOL
7549  fi
7550else
7551  OTOOL="$ac_cv_prog_OTOOL"
7552fi
7553
7554    if test -n "$ac_tool_prefix"; then
7555  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7556set dummy ${ac_tool_prefix}otool64; ac_word=$2
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558$as_echo_n "checking for $ac_word... " >&6; }
7559if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7560  $as_echo_n "(cached) " >&6
7561else
7562  if test -n "$OTOOL64"; then
7563  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7564else
7565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566for as_dir in $PATH
7567do
7568  IFS=$as_save_IFS
7569  test -z "$as_dir" && as_dir=.
7570    for ac_exec_ext in '' $ac_executable_extensions; do
7571  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7572    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574    break 2
7575  fi
7576done
7577  done
7578IFS=$as_save_IFS
7579
7580fi
7581fi
7582OTOOL64=$ac_cv_prog_OTOOL64
7583if test -n "$OTOOL64"; then
7584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7585$as_echo "$OTOOL64" >&6; }
7586else
7587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588$as_echo "no" >&6; }
7589fi
7590
7591
7592fi
7593if test -z "$ac_cv_prog_OTOOL64"; then
7594  ac_ct_OTOOL64=$OTOOL64
7595  # Extract the first word of "otool64", so it can be a program name with args.
7596set dummy otool64; ac_word=$2
7597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598$as_echo_n "checking for $ac_word... " >&6; }
7599if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7600  $as_echo_n "(cached) " >&6
7601else
7602  if test -n "$ac_ct_OTOOL64"; then
7603  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7604else
7605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606for as_dir in $PATH
7607do
7608  IFS=$as_save_IFS
7609  test -z "$as_dir" && as_dir=.
7610    for ac_exec_ext in '' $ac_executable_extensions; do
7611  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7612    ac_cv_prog_ac_ct_OTOOL64="otool64"
7613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614    break 2
7615  fi
7616done
7617  done
7618IFS=$as_save_IFS
7619
7620fi
7621fi
7622ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7623if test -n "$ac_ct_OTOOL64"; then
7624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7625$as_echo "$ac_ct_OTOOL64" >&6; }
7626else
7627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628$as_echo "no" >&6; }
7629fi
7630
7631  if test "x$ac_ct_OTOOL64" = x; then
7632    OTOOL64=":"
7633  else
7634    case $cross_compiling:$ac_tool_warned in
7635yes:)
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7638ac_tool_warned=yes ;;
7639esac
7640    OTOOL64=$ac_ct_OTOOL64
7641  fi
7642else
7643  OTOOL64="$ac_cv_prog_OTOOL64"
7644fi
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7673$as_echo_n "checking for -single_module linker flag... " >&6; }
7674if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7675  $as_echo_n "(cached) " >&6
7676else
7677  lt_cv_apple_cc_single_mod=no
7678      if test -z "${LT_MULTI_MODULE}"; then
7679	# By default we will add the -single_module flag. You can override
7680	# by either setting the environment variable LT_MULTI_MODULE
7681	# non-empty at configure time, or by adding -multi_module to the
7682	# link flags.
7683	rm -rf libconftest.dylib*
7684	echo "int foo(void){return 1;}" > conftest.c
7685	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7686-dynamiclib -Wl,-single_module conftest.c" >&5
7687	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7688	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7689        _lt_result=$?
7690	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7691	  lt_cv_apple_cc_single_mod=yes
7692	else
7693	  cat conftest.err >&5
7694	fi
7695	rm -rf libconftest.dylib*
7696	rm -f conftest.*
7697      fi
7698fi
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7700$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7701    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7702$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7703if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7704  $as_echo_n "(cached) " >&6
7705else
7706  lt_cv_ld_exported_symbols_list=no
7707      save_LDFLAGS=$LDFLAGS
7708      echo "_main" > conftest.sym
7709      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7710      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711/* end confdefs.h.  */
7712
7713int
7714main ()
7715{
7716
7717  ;
7718  return 0;
7719}
7720_ACEOF
7721if ac_fn_c_try_link "$LINENO"; then :
7722  lt_cv_ld_exported_symbols_list=yes
7723else
7724  lt_cv_ld_exported_symbols_list=no
7725fi
7726rm -f core conftest.err conftest.$ac_objext \
7727    conftest$ac_exeext conftest.$ac_ext
7728	LDFLAGS="$save_LDFLAGS"
7729
7730fi
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7732$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7733    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7734$as_echo_n "checking for -force_load linker flag... " >&6; }
7735if test "${lt_cv_ld_force_load+set}" = set; then :
7736  $as_echo_n "(cached) " >&6
7737else
7738  lt_cv_ld_force_load=no
7739      cat > conftest.c << _LT_EOF
7740int forced_loaded() { return 2;}
7741_LT_EOF
7742      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7743      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7744      echo "$AR cru libconftest.a conftest.o" >&5
7745      $AR cru libconftest.a conftest.o 2>&5
7746      echo "$RANLIB libconftest.a" >&5
7747      $RANLIB libconftest.a 2>&5
7748      cat > conftest.c << _LT_EOF
7749int main() { return 0;}
7750_LT_EOF
7751      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7752      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7753      _lt_result=$?
7754      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7755	lt_cv_ld_force_load=yes
7756      else
7757	cat conftest.err >&5
7758      fi
7759        rm -f conftest.err libconftest.a conftest conftest.c
7760        rm -rf conftest.dSYM
7761
7762fi
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7764$as_echo "$lt_cv_ld_force_load" >&6; }
7765    case $host_os in
7766    rhapsody* | darwin1.[012])
7767      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7768    darwin1.*)
7769      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7770    darwin*) # darwin 5.x on
7771      # if running on 10.5 or later, the deployment target defaults
7772      # to the OS version, if on x86, and 10.4, the deployment
7773      # target defaults to 10.4. Don't you love it?
7774      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7775	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7776	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7777	10.[012]*)
7778	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7779	10.*)
7780	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7781      esac
7782    ;;
7783  esac
7784    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7785      _lt_dar_single_mod='$single_module'
7786    fi
7787    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7788      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7789    else
7790      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7791    fi
7792    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7793      _lt_dsymutil='~$DSYMUTIL $lib || :'
7794    else
7795      _lt_dsymutil=
7796    fi
7797    ;;
7798  esac
7799
7800for ac_header in dlfcn.h
7801do :
7802  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7803"
7804if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7805  cat >>confdefs.h <<_ACEOF
7806#define HAVE_DLFCN_H 1
7807_ACEOF
7808
7809fi
7810
7811done
7812
7813
7814
7815
7816
7817# Set options
7818
7819
7820
7821
7822  enable_win32_dll=no
7823
7824
7825            # Check whether --enable-shared was given.
7826if test "${enable_shared+set}" = set; then :
7827  enableval=$enable_shared; p=${PACKAGE-default}
7828    case $enableval in
7829    yes) enable_shared=yes ;;
7830    no) enable_shared=no ;;
7831    *)
7832      enable_shared=no
7833      # Look at the argument we got.  We use all the common list separators.
7834      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7835      for pkg in $enableval; do
7836	IFS="$lt_save_ifs"
7837	if test "X$pkg" = "X$p"; then
7838	  enable_shared=yes
7839	fi
7840      done
7841      IFS="$lt_save_ifs"
7842      ;;
7843    esac
7844else
7845  enable_shared=yes
7846fi
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856  # Check whether --enable-static was given.
7857if test "${enable_static+set}" = set; then :
7858  enableval=$enable_static; p=${PACKAGE-default}
7859    case $enableval in
7860    yes) enable_static=yes ;;
7861    no) enable_static=no ;;
7862    *)
7863     enable_static=no
7864      # Look at the argument we got.  We use all the common list separators.
7865      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7866      for pkg in $enableval; do
7867	IFS="$lt_save_ifs"
7868	if test "X$pkg" = "X$p"; then
7869	  enable_static=yes
7870	fi
7871      done
7872      IFS="$lt_save_ifs"
7873      ;;
7874    esac
7875else
7876  enable_static=yes
7877fi
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888# Check whether --with-pic was given.
7889if test "${with_pic+set}" = set; then :
7890  withval=$with_pic; pic_mode="$withval"
7891else
7892  pic_mode=default
7893fi
7894
7895
7896test -z "$pic_mode" && pic_mode=default
7897
7898
7899
7900
7901
7902
7903
7904  # Check whether --enable-fast-install was given.
7905if test "${enable_fast_install+set}" = set; then :
7906  enableval=$enable_fast_install; p=${PACKAGE-default}
7907    case $enableval in
7908    yes) enable_fast_install=yes ;;
7909    no) enable_fast_install=no ;;
7910    *)
7911      enable_fast_install=no
7912      # Look at the argument we got.  We use all the common list separators.
7913      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7914      for pkg in $enableval; do
7915	IFS="$lt_save_ifs"
7916	if test "X$pkg" = "X$p"; then
7917	  enable_fast_install=yes
7918	fi
7919      done
7920      IFS="$lt_save_ifs"
7921      ;;
7922    esac
7923else
7924  enable_fast_install=yes
7925fi
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937# This can be used to rebuild libtool when needed
7938LIBTOOL_DEPS="$ltmain"
7939
7940# Always use our own libtool.
7941LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968test -z "$LN_S" && LN_S="ln -s"
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983if test -n "${ZSH_VERSION+set}" ; then
7984   setopt NO_GLOB_SUBST
7985fi
7986
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7988$as_echo_n "checking for objdir... " >&6; }
7989if test "${lt_cv_objdir+set}" = set; then :
7990  $as_echo_n "(cached) " >&6
7991else
7992  rm -f .libs 2>/dev/null
7993mkdir .libs 2>/dev/null
7994if test -d .libs; then
7995  lt_cv_objdir=.libs
7996else
7997  # MS-DOS does not allow filenames that begin with a dot.
7998  lt_cv_objdir=_libs
7999fi
8000rmdir .libs 2>/dev/null
8001fi
8002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8003$as_echo "$lt_cv_objdir" >&6; }
8004objdir=$lt_cv_objdir
8005
8006
8007
8008
8009
8010cat >>confdefs.h <<_ACEOF
8011#define LT_OBJDIR "$lt_cv_objdir/"
8012_ACEOF
8013
8014
8015
8016
8017case $host_os in
8018aix3*)
8019  # AIX sometimes has problems with the GCC collect2 program.  For some
8020  # reason, if we set the COLLECT_NAMES environment variable, the problems
8021  # vanish in a puff of smoke.
8022  if test "X${COLLECT_NAMES+set}" != Xset; then
8023    COLLECT_NAMES=
8024    export COLLECT_NAMES
8025  fi
8026  ;;
8027esac
8028
8029# Global variables:
8030ofile=libtool
8031can_build_shared=yes
8032
8033# All known linkers require a `.a' archive for static linking (except MSVC,
8034# which needs '.lib').
8035libext=a
8036
8037with_gnu_ld="$lt_cv_prog_gnu_ld"
8038
8039old_CC="$CC"
8040old_CFLAGS="$CFLAGS"
8041
8042# Set sane defaults for various variables
8043test -z "$CC" && CC=cc
8044test -z "$LTCC" && LTCC=$CC
8045test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8046test -z "$LD" && LD=ld
8047test -z "$ac_objext" && ac_objext=o
8048
8049for cc_temp in $compiler""; do
8050  case $cc_temp in
8051    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8052    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8053    \-*) ;;
8054    *) break;;
8055  esac
8056done
8057cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8058
8059
8060# Only perform the check for file, if the check method requires it
8061test -z "$MAGIC_CMD" && MAGIC_CMD=file
8062case $deplibs_check_method in
8063file_magic*)
8064  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8065    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8066$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8067if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8068  $as_echo_n "(cached) " >&6
8069else
8070  case $MAGIC_CMD in
8071[\\/*] |  ?:[\\/]*)
8072  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8073  ;;
8074*)
8075  lt_save_MAGIC_CMD="$MAGIC_CMD"
8076  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8077  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8078  for ac_dir in $ac_dummy; do
8079    IFS="$lt_save_ifs"
8080    test -z "$ac_dir" && ac_dir=.
8081    if test -f $ac_dir/${ac_tool_prefix}file; then
8082      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8083      if test -n "$file_magic_test_file"; then
8084	case $deplibs_check_method in
8085	"file_magic "*)
8086	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8087	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8088	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8089	    $EGREP "$file_magic_regex" > /dev/null; then
8090	    :
8091	  else
8092	    cat <<_LT_EOF 1>&2
8093
8094*** Warning: the command libtool uses to detect shared libraries,
8095*** $file_magic_cmd, produces output that libtool cannot recognize.
8096*** The result is that libtool may fail to recognize shared libraries
8097*** as such.  This will affect the creation of libtool libraries that
8098*** depend on shared libraries, but programs linked with such libtool
8099*** libraries will work regardless of this problem.  Nevertheless, you
8100*** may want to report the problem to your system manager and/or to
8101*** bug-libtool@gnu.org
8102
8103_LT_EOF
8104	  fi ;;
8105	esac
8106      fi
8107      break
8108    fi
8109  done
8110  IFS="$lt_save_ifs"
8111  MAGIC_CMD="$lt_save_MAGIC_CMD"
8112  ;;
8113esac
8114fi
8115
8116MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8117if test -n "$MAGIC_CMD"; then
8118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8119$as_echo "$MAGIC_CMD" >&6; }
8120else
8121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122$as_echo "no" >&6; }
8123fi
8124
8125
8126
8127
8128
8129if test -z "$lt_cv_path_MAGIC_CMD"; then
8130  if test -n "$ac_tool_prefix"; then
8131    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8132$as_echo_n "checking for file... " >&6; }
8133if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8134  $as_echo_n "(cached) " >&6
8135else
8136  case $MAGIC_CMD in
8137[\\/*] |  ?:[\\/]*)
8138  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8139  ;;
8140*)
8141  lt_save_MAGIC_CMD="$MAGIC_CMD"
8142  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8143  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8144  for ac_dir in $ac_dummy; do
8145    IFS="$lt_save_ifs"
8146    test -z "$ac_dir" && ac_dir=.
8147    if test -f $ac_dir/file; then
8148      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8149      if test -n "$file_magic_test_file"; then
8150	case $deplibs_check_method in
8151	"file_magic "*)
8152	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8153	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8154	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8155	    $EGREP "$file_magic_regex" > /dev/null; then
8156	    :
8157	  else
8158	    cat <<_LT_EOF 1>&2
8159
8160*** Warning: the command libtool uses to detect shared libraries,
8161*** $file_magic_cmd, produces output that libtool cannot recognize.
8162*** The result is that libtool may fail to recognize shared libraries
8163*** as such.  This will affect the creation of libtool libraries that
8164*** depend on shared libraries, but programs linked with such libtool
8165*** libraries will work regardless of this problem.  Nevertheless, you
8166*** may want to report the problem to your system manager and/or to
8167*** bug-libtool@gnu.org
8168
8169_LT_EOF
8170	  fi ;;
8171	esac
8172      fi
8173      break
8174    fi
8175  done
8176  IFS="$lt_save_ifs"
8177  MAGIC_CMD="$lt_save_MAGIC_CMD"
8178  ;;
8179esac
8180fi
8181
8182MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8183if test -n "$MAGIC_CMD"; then
8184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8185$as_echo "$MAGIC_CMD" >&6; }
8186else
8187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188$as_echo "no" >&6; }
8189fi
8190
8191
8192  else
8193    MAGIC_CMD=:
8194  fi
8195fi
8196
8197  fi
8198  ;;
8199esac
8200
8201# Use C for the default configuration in the libtool script
8202
8203lt_save_CC="$CC"
8204ac_ext=c
8205ac_cpp='$CPP $CPPFLAGS'
8206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8208ac_compiler_gnu=$ac_cv_c_compiler_gnu
8209
8210
8211# Source file extension for C test sources.
8212ac_ext=c
8213
8214# Object file extension for compiled C test sources.
8215objext=o
8216objext=$objext
8217
8218# Code to be used in simple compile tests
8219lt_simple_compile_test_code="int some_variable = 0;"
8220
8221# Code to be used in simple link tests
8222lt_simple_link_test_code='int main(){return(0);}'
8223
8224
8225
8226
8227
8228
8229
8230# If no C compiler was specified, use CC.
8231LTCC=${LTCC-"$CC"}
8232
8233# If no C compiler flags were specified, use CFLAGS.
8234LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8235
8236# Allow CC to be a program name with arguments.
8237compiler=$CC
8238
8239# Save the default compiler, since it gets overwritten when the other
8240# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8241compiler_DEFAULT=$CC
8242
8243# save warnings/boilerplate of simple test code
8244ac_outfile=conftest.$ac_objext
8245echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8246eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8247_lt_compiler_boilerplate=`cat conftest.err`
8248$RM conftest*
8249
8250ac_outfile=conftest.$ac_objext
8251echo "$lt_simple_link_test_code" >conftest.$ac_ext
8252eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8253_lt_linker_boilerplate=`cat conftest.err`
8254$RM -r conftest*
8255
8256
8257if test -n "$compiler"; then
8258
8259lt_prog_compiler_no_builtin_flag=
8260
8261if test "$GCC" = yes; then
8262  case $cc_basename in
8263  nvcc*)
8264    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8265  *)
8266    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8267  esac
8268
8269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8270$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8271if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8272  $as_echo_n "(cached) " >&6
8273else
8274  lt_cv_prog_compiler_rtti_exceptions=no
8275   ac_outfile=conftest.$ac_objext
8276   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8277   lt_compiler_flag="-fno-rtti -fno-exceptions"
8278   # Insert the option either (1) after the last *FLAGS variable, or
8279   # (2) before a word containing "conftest.", or (3) at the end.
8280   # Note that $ac_compile itself does not contain backslashes and begins
8281   # with a dollar sign (not a hyphen), so the echo should work correctly.
8282   # The option is referenced via a variable to avoid confusing sed.
8283   lt_compile=`echo "$ac_compile" | $SED \
8284   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8285   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8286   -e 's:$: $lt_compiler_flag:'`
8287   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8288   (eval "$lt_compile" 2>conftest.err)
8289   ac_status=$?
8290   cat conftest.err >&5
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   if (exit $ac_status) && test -s "$ac_outfile"; then
8293     # The compiler can only warn and ignore the option if not recognized
8294     # So say no if there are warnings other than the usual output.
8295     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8296     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8297     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8298       lt_cv_prog_compiler_rtti_exceptions=yes
8299     fi
8300   fi
8301   $RM conftest*
8302
8303fi
8304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8305$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8306
8307if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8308    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8309else
8310    :
8311fi
8312
8313fi
8314
8315
8316
8317
8318
8319
8320  lt_prog_compiler_wl=
8321lt_prog_compiler_pic=
8322lt_prog_compiler_static=
8323
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8325$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8326
8327  if test "$GCC" = yes; then
8328    lt_prog_compiler_wl='-Wl,'
8329    lt_prog_compiler_static='-static'
8330
8331    case $host_os in
8332      aix*)
8333      # All AIX code is PIC.
8334      if test "$host_cpu" = ia64; then
8335	# AIX 5 now supports IA64 processor
8336	lt_prog_compiler_static='-Bstatic'
8337      fi
8338      ;;
8339
8340    amigaos*)
8341      case $host_cpu in
8342      powerpc)
8343            # see comment about AmigaOS4 .so support
8344            lt_prog_compiler_pic='-fPIC'
8345        ;;
8346      m68k)
8347            # FIXME: we need at least 68020 code to build shared libraries, but
8348            # adding the `-m68020' flag to GCC prevents building anything better,
8349            # like `-m68040'.
8350            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8351        ;;
8352      esac
8353      ;;
8354
8355    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8356      # PIC is the default for these OSes.
8357      ;;
8358
8359    mingw* | cygwin* | pw32* | os2* | cegcc*)
8360      # This hack is so that the source file can tell whether it is being
8361      # built for inclusion in a dll (and should export symbols for example).
8362      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8363      # (--disable-auto-import) libraries
8364      lt_prog_compiler_pic='-DDLL_EXPORT'
8365      ;;
8366
8367    darwin* | rhapsody*)
8368      # PIC is the default on this platform
8369      # Common symbols not allowed in MH_DYLIB files
8370      lt_prog_compiler_pic='-fno-common'
8371      ;;
8372
8373    haiku*)
8374      # PIC is the default for Haiku.
8375      # The "-static" flag exists, but is broken.
8376      lt_prog_compiler_static=
8377      ;;
8378
8379    hpux*)
8380      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8381      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8382      # sets the default TLS model and affects inlining.
8383      case $host_cpu in
8384      hppa*64*)
8385	# +Z the default
8386	;;
8387      *)
8388	lt_prog_compiler_pic='-fPIC'
8389	;;
8390      esac
8391      ;;
8392
8393    interix[3-9]*)
8394      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8395      # Instead, we relocate shared libraries at runtime.
8396      ;;
8397
8398    msdosdjgpp*)
8399      # Just because we use GCC doesn't mean we suddenly get shared libraries
8400      # on systems that don't support them.
8401      lt_prog_compiler_can_build_shared=no
8402      enable_shared=no
8403      ;;
8404
8405    *nto* | *qnx*)
8406      # QNX uses GNU C++, but need to define -shared option too, otherwise
8407      # it will coredump.
8408      lt_prog_compiler_pic='-fPIC -shared'
8409      ;;
8410
8411    sysv4*MP*)
8412      if test -d /usr/nec; then
8413	lt_prog_compiler_pic=-Kconform_pic
8414      fi
8415      ;;
8416
8417    *)
8418      lt_prog_compiler_pic='-fPIC'
8419      ;;
8420    esac
8421
8422    case $cc_basename in
8423    nvcc*) # Cuda Compiler Driver 2.2
8424      lt_prog_compiler_wl='-Xlinker '
8425      lt_prog_compiler_pic='-Xcompiler -fPIC'
8426      ;;
8427    esac
8428  else
8429    # PORTME Check for flag to pass linker flags through the system compiler.
8430    case $host_os in
8431    aix*)
8432      lt_prog_compiler_wl='-Wl,'
8433      if test "$host_cpu" = ia64; then
8434	# AIX 5 now supports IA64 processor
8435	lt_prog_compiler_static='-Bstatic'
8436      else
8437	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8438      fi
8439      ;;
8440
8441    mingw* | cygwin* | pw32* | os2* | cegcc*)
8442      # This hack is so that the source file can tell whether it is being
8443      # built for inclusion in a dll (and should export symbols for example).
8444      lt_prog_compiler_pic='-DDLL_EXPORT'
8445      ;;
8446
8447    hpux9* | hpux10* | hpux11*)
8448      lt_prog_compiler_wl='-Wl,'
8449      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8450      # not for PA HP-UX.
8451      case $host_cpu in
8452      hppa*64*|ia64*)
8453	# +Z the default
8454	;;
8455      *)
8456	lt_prog_compiler_pic='+Z'
8457	;;
8458      esac
8459      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8460      lt_prog_compiler_static='${wl}-a ${wl}archive'
8461      ;;
8462
8463    irix5* | irix6* | nonstopux*)
8464      lt_prog_compiler_wl='-Wl,'
8465      # PIC (with -KPIC) is the default.
8466      lt_prog_compiler_static='-non_shared'
8467      ;;
8468
8469    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8470      case $cc_basename in
8471      # old Intel for x86_64 which still supported -KPIC.
8472      ecc*)
8473	lt_prog_compiler_wl='-Wl,'
8474	lt_prog_compiler_pic='-KPIC'
8475	lt_prog_compiler_static='-static'
8476        ;;
8477      # icc used to be incompatible with GCC.
8478      # ICC 10 doesn't accept -KPIC any more.
8479      icc* | ifort*)
8480	lt_prog_compiler_wl='-Wl,'
8481	lt_prog_compiler_pic='-fPIC'
8482	lt_prog_compiler_static='-static'
8483        ;;
8484      # Lahey Fortran 8.1.
8485      lf95*)
8486	lt_prog_compiler_wl='-Wl,'
8487	lt_prog_compiler_pic='--shared'
8488	lt_prog_compiler_static='--static'
8489	;;
8490      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8491        # Portland Group compilers (*not* the Pentium gcc compiler,
8492	# which looks to be a dead project)
8493	lt_prog_compiler_wl='-Wl,'
8494	lt_prog_compiler_pic='-fpic'
8495	lt_prog_compiler_static='-Bstatic'
8496        ;;
8497      ccc*)
8498        lt_prog_compiler_wl='-Wl,'
8499        # All Alpha code is PIC.
8500        lt_prog_compiler_static='-non_shared'
8501        ;;
8502      xl* | bgxl* | bgf* | mpixl*)
8503	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8504	lt_prog_compiler_wl='-Wl,'
8505	lt_prog_compiler_pic='-qpic'
8506	lt_prog_compiler_static='-qstaticlink'
8507	;;
8508      *)
8509	case `$CC -V 2>&1 | sed 5q` in
8510	*Sun\ F* | *Sun*Fortran*)
8511	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8512	  lt_prog_compiler_pic='-KPIC'
8513	  lt_prog_compiler_static='-Bstatic'
8514	  lt_prog_compiler_wl=''
8515	  ;;
8516	*Sun\ C*)
8517	  # Sun C 5.9
8518	  lt_prog_compiler_pic='-KPIC'
8519	  lt_prog_compiler_static='-Bstatic'
8520	  lt_prog_compiler_wl='-Wl,'
8521	  ;;
8522	esac
8523	;;
8524      esac
8525      ;;
8526
8527    newsos6)
8528      lt_prog_compiler_pic='-KPIC'
8529      lt_prog_compiler_static='-Bstatic'
8530      ;;
8531
8532    *nto* | *qnx*)
8533      # QNX uses GNU C++, but need to define -shared option too, otherwise
8534      # it will coredump.
8535      lt_prog_compiler_pic='-fPIC -shared'
8536      ;;
8537
8538    osf3* | osf4* | osf5*)
8539      lt_prog_compiler_wl='-Wl,'
8540      # All OSF/1 code is PIC.
8541      lt_prog_compiler_static='-non_shared'
8542      ;;
8543
8544    rdos*)
8545      lt_prog_compiler_static='-non_shared'
8546      ;;
8547
8548    solaris*)
8549      lt_prog_compiler_pic='-KPIC'
8550      lt_prog_compiler_static='-Bstatic'
8551      case $cc_basename in
8552      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8553	lt_prog_compiler_wl='-Qoption ld ';;
8554      *)
8555	lt_prog_compiler_wl='-Wl,';;
8556      esac
8557      ;;
8558
8559    sunos4*)
8560      lt_prog_compiler_wl='-Qoption ld '
8561      lt_prog_compiler_pic='-PIC'
8562      lt_prog_compiler_static='-Bstatic'
8563      ;;
8564
8565    sysv4 | sysv4.2uw2* | sysv4.3*)
8566      lt_prog_compiler_wl='-Wl,'
8567      lt_prog_compiler_pic='-KPIC'
8568      lt_prog_compiler_static='-Bstatic'
8569      ;;
8570
8571    sysv4*MP*)
8572      if test -d /usr/nec ;then
8573	lt_prog_compiler_pic='-Kconform_pic'
8574	lt_prog_compiler_static='-Bstatic'
8575      fi
8576      ;;
8577
8578    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8579      lt_prog_compiler_wl='-Wl,'
8580      lt_prog_compiler_pic='-KPIC'
8581      lt_prog_compiler_static='-Bstatic'
8582      ;;
8583
8584    unicos*)
8585      lt_prog_compiler_wl='-Wl,'
8586      lt_prog_compiler_can_build_shared=no
8587      ;;
8588
8589    uts4*)
8590      lt_prog_compiler_pic='-pic'
8591      lt_prog_compiler_static='-Bstatic'
8592      ;;
8593
8594    *)
8595      lt_prog_compiler_can_build_shared=no
8596      ;;
8597    esac
8598  fi
8599
8600case $host_os in
8601  # For platforms which do not support PIC, -DPIC is meaningless:
8602  *djgpp*)
8603    lt_prog_compiler_pic=
8604    ;;
8605  *)
8606    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8607    ;;
8608esac
8609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8610$as_echo "$lt_prog_compiler_pic" >&6; }
8611
8612
8613
8614
8615
8616
8617#
8618# Check to make sure the PIC flag actually works.
8619#
8620if test -n "$lt_prog_compiler_pic"; then
8621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8622$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8623if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8624  $as_echo_n "(cached) " >&6
8625else
8626  lt_cv_prog_compiler_pic_works=no
8627   ac_outfile=conftest.$ac_objext
8628   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8629   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8630   # Insert the option either (1) after the last *FLAGS variable, or
8631   # (2) before a word containing "conftest.", or (3) at the end.
8632   # Note that $ac_compile itself does not contain backslashes and begins
8633   # with a dollar sign (not a hyphen), so the echo should work correctly.
8634   # The option is referenced via a variable to avoid confusing sed.
8635   lt_compile=`echo "$ac_compile" | $SED \
8636   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8637   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8638   -e 's:$: $lt_compiler_flag:'`
8639   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8640   (eval "$lt_compile" 2>conftest.err)
8641   ac_status=$?
8642   cat conftest.err >&5
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   if (exit $ac_status) && test -s "$ac_outfile"; then
8645     # The compiler can only warn and ignore the option if not recognized
8646     # So say no if there are warnings other than the usual output.
8647     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8648     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8649     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8650       lt_cv_prog_compiler_pic_works=yes
8651     fi
8652   fi
8653   $RM conftest*
8654
8655fi
8656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8657$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8658
8659if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8660    case $lt_prog_compiler_pic in
8661     "" | " "*) ;;
8662     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8663     esac
8664else
8665    lt_prog_compiler_pic=
8666     lt_prog_compiler_can_build_shared=no
8667fi
8668
8669fi
8670
8671
8672
8673
8674
8675
8676#
8677# Check to make sure the static flag actually works.
8678#
8679wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8681$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8682if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8683  $as_echo_n "(cached) " >&6
8684else
8685  lt_cv_prog_compiler_static_works=no
8686   save_LDFLAGS="$LDFLAGS"
8687   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8688   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8689   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8690     # The linker can only warn and ignore the option if not recognized
8691     # So say no if there are warnings
8692     if test -s conftest.err; then
8693       # Append any errors to the config.log.
8694       cat conftest.err 1>&5
8695       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8696       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8697       if diff conftest.exp conftest.er2 >/dev/null; then
8698         lt_cv_prog_compiler_static_works=yes
8699       fi
8700     else
8701       lt_cv_prog_compiler_static_works=yes
8702     fi
8703   fi
8704   $RM -r conftest*
8705   LDFLAGS="$save_LDFLAGS"
8706
8707fi
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8709$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8710
8711if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8712    :
8713else
8714    lt_prog_compiler_static=
8715fi
8716
8717
8718
8719
8720
8721
8722
8723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8724$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8725if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8726  $as_echo_n "(cached) " >&6
8727else
8728  lt_cv_prog_compiler_c_o=no
8729   $RM -r conftest 2>/dev/null
8730   mkdir conftest
8731   cd conftest
8732   mkdir out
8733   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8734
8735   lt_compiler_flag="-o out/conftest2.$ac_objext"
8736   # Insert the option either (1) after the last *FLAGS variable, or
8737   # (2) before a word containing "conftest.", or (3) at the end.
8738   # Note that $ac_compile itself does not contain backslashes and begins
8739   # with a dollar sign (not a hyphen), so the echo should work correctly.
8740   lt_compile=`echo "$ac_compile" | $SED \
8741   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8742   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8743   -e 's:$: $lt_compiler_flag:'`
8744   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8745   (eval "$lt_compile" 2>out/conftest.err)
8746   ac_status=$?
8747   cat out/conftest.err >&5
8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8750   then
8751     # The compiler can only warn and ignore the option if not recognized
8752     # So say no if there are warnings
8753     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8754     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8755     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8756       lt_cv_prog_compiler_c_o=yes
8757     fi
8758   fi
8759   chmod u+w . 2>&5
8760   $RM conftest*
8761   # SGI C++ compiler will create directory out/ii_files/ for
8762   # template instantiation
8763   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8764   $RM out/* && rmdir out
8765   cd ..
8766   $RM -r conftest
8767   $RM conftest*
8768
8769fi
8770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8771$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8772
8773
8774
8775
8776
8777
8778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8779$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8780if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8781  $as_echo_n "(cached) " >&6
8782else
8783  lt_cv_prog_compiler_c_o=no
8784   $RM -r conftest 2>/dev/null
8785   mkdir conftest
8786   cd conftest
8787   mkdir out
8788   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8789
8790   lt_compiler_flag="-o out/conftest2.$ac_objext"
8791   # Insert the option either (1) after the last *FLAGS variable, or
8792   # (2) before a word containing "conftest.", or (3) at the end.
8793   # Note that $ac_compile itself does not contain backslashes and begins
8794   # with a dollar sign (not a hyphen), so the echo should work correctly.
8795   lt_compile=`echo "$ac_compile" | $SED \
8796   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8797   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8798   -e 's:$: $lt_compiler_flag:'`
8799   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8800   (eval "$lt_compile" 2>out/conftest.err)
8801   ac_status=$?
8802   cat out/conftest.err >&5
8803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8805   then
8806     # The compiler can only warn and ignore the option if not recognized
8807     # So say no if there are warnings
8808     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8809     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8810     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8811       lt_cv_prog_compiler_c_o=yes
8812     fi
8813   fi
8814   chmod u+w . 2>&5
8815   $RM conftest*
8816   # SGI C++ compiler will create directory out/ii_files/ for
8817   # template instantiation
8818   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8819   $RM out/* && rmdir out
8820   cd ..
8821   $RM -r conftest
8822   $RM conftest*
8823
8824fi
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8826$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8827
8828
8829
8830
8831hard_links="nottested"
8832if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8833  # do not overwrite the value of need_locks provided by the user
8834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8835$as_echo_n "checking if we can lock with hard links... " >&6; }
8836  hard_links=yes
8837  $RM conftest*
8838  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8839  touch conftest.a
8840  ln conftest.a conftest.b 2>&5 || hard_links=no
8841  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8843$as_echo "$hard_links" >&6; }
8844  if test "$hard_links" = no; then
8845    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8846$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8847    need_locks=warn
8848  fi
8849else
8850  need_locks=no
8851fi
8852
8853
8854
8855
8856
8857
8858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8859$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8860
8861  runpath_var=
8862  allow_undefined_flag=
8863  always_export_symbols=no
8864  archive_cmds=
8865  archive_expsym_cmds=
8866  compiler_needs_object=no
8867  enable_shared_with_static_runtimes=no
8868  export_dynamic_flag_spec=
8869  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8870  hardcode_automatic=no
8871  hardcode_direct=no
8872  hardcode_direct_absolute=no
8873  hardcode_libdir_flag_spec=
8874  hardcode_libdir_flag_spec_ld=
8875  hardcode_libdir_separator=
8876  hardcode_minus_L=no
8877  hardcode_shlibpath_var=unsupported
8878  inherit_rpath=no
8879  link_all_deplibs=unknown
8880  module_cmds=
8881  module_expsym_cmds=
8882  old_archive_from_new_cmds=
8883  old_archive_from_expsyms_cmds=
8884  thread_safe_flag_spec=
8885  whole_archive_flag_spec=
8886  # include_expsyms should be a list of space-separated symbols to be *always*
8887  # included in the symbol list
8888  include_expsyms=
8889  # exclude_expsyms can be an extended regexp of symbols to exclude
8890  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8891  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8892  # as well as any symbol that contains `d'.
8893  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8894  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8895  # platforms (ab)use it in PIC code, but their linkers get confused if
8896  # the symbol is explicitly referenced.  Since portable code cannot
8897  # rely on this symbol name, it's probably fine to never include it in
8898  # preloaded symbol tables.
8899  # Exclude shared library initialization/finalization symbols.
8900  extract_expsyms_cmds=
8901
8902  case $host_os in
8903  cygwin* | mingw* | pw32* | cegcc*)
8904    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8905    # When not using gcc, we currently assume that we are using
8906    # Microsoft Visual C++.
8907    if test "$GCC" != yes; then
8908      with_gnu_ld=no
8909    fi
8910    ;;
8911  interix*)
8912    # we just hope/assume this is gcc and not c89 (= MSVC++)
8913    with_gnu_ld=yes
8914    ;;
8915  openbsd*)
8916    with_gnu_ld=no
8917    ;;
8918  esac
8919
8920  ld_shlibs=yes
8921
8922  # On some targets, GNU ld is compatible enough with the native linker
8923  # that we're better off using the native interface for both.
8924  lt_use_gnu_ld_interface=no
8925  if test "$with_gnu_ld" = yes; then
8926    case $host_os in
8927      aix*)
8928	# The AIX port of GNU ld has always aspired to compatibility
8929	# with the native linker.  However, as the warning in the GNU ld
8930	# block says, versions before 2.19.5* couldn't really create working
8931	# shared libraries, regardless of the interface used.
8932	case `$LD -v 2>&1` in
8933	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8934	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8935	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8936	  *)
8937	    lt_use_gnu_ld_interface=yes
8938	    ;;
8939	esac
8940	;;
8941      *)
8942	lt_use_gnu_ld_interface=yes
8943	;;
8944    esac
8945  fi
8946
8947  if test "$lt_use_gnu_ld_interface" = yes; then
8948    # If archive_cmds runs LD, not CC, wlarc should be empty
8949    wlarc='${wl}'
8950
8951    # Set some defaults for GNU ld with shared library support. These
8952    # are reset later if shared libraries are not supported. Putting them
8953    # here allows them to be overridden if necessary.
8954    runpath_var=LD_RUN_PATH
8955    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8956    export_dynamic_flag_spec='${wl}--export-dynamic'
8957    # ancient GNU ld didn't support --whole-archive et. al.
8958    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8959      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8960    else
8961      whole_archive_flag_spec=
8962    fi
8963    supports_anon_versioning=no
8964    case `$LD -v 2>&1` in
8965      *GNU\ gold*) supports_anon_versioning=yes ;;
8966      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8967      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8968      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8969      *\ 2.11.*) ;; # other 2.11 versions
8970      *) supports_anon_versioning=yes ;;
8971    esac
8972
8973    # See if GNU ld supports shared libraries.
8974    case $host_os in
8975    aix[3-9]*)
8976      # On AIX/PPC, the GNU linker is very broken
8977      if test "$host_cpu" != ia64; then
8978	ld_shlibs=no
8979	cat <<_LT_EOF 1>&2
8980
8981*** Warning: the GNU linker, at least up to release 2.19, is reported
8982*** to be unable to reliably create shared libraries on AIX.
8983*** Therefore, libtool is disabling shared libraries support.  If you
8984*** really care for shared libraries, you may want to install binutils
8985*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8986*** You will then need to restart the configuration process.
8987
8988_LT_EOF
8989      fi
8990      ;;
8991
8992    amigaos*)
8993      case $host_cpu in
8994      powerpc)
8995            # see comment about AmigaOS4 .so support
8996            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8997            archive_expsym_cmds=''
8998        ;;
8999      m68k)
9000            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)'
9001            hardcode_libdir_flag_spec='-L$libdir'
9002            hardcode_minus_L=yes
9003        ;;
9004      esac
9005      ;;
9006
9007    beos*)
9008      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9009	allow_undefined_flag=unsupported
9010	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9011	# support --undefined.  This deserves some investigation.  FIXME
9012	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9013      else
9014	ld_shlibs=no
9015      fi
9016      ;;
9017
9018    cygwin* | mingw* | pw32* | cegcc*)
9019      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9020      # as there is no search path for DLLs.
9021      hardcode_libdir_flag_spec='-L$libdir'
9022      export_dynamic_flag_spec='${wl}--export-all-symbols'
9023      allow_undefined_flag=unsupported
9024      always_export_symbols=no
9025      enable_shared_with_static_runtimes=yes
9026      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9027
9028      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9029        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9030	# If the export-symbols file already is a .def file (1st line
9031	# is EXPORTS), use it as is; otherwise, prepend...
9032	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9033	  cp $export_symbols $output_objdir/$soname.def;
9034	else
9035	  echo EXPORTS > $output_objdir/$soname.def;
9036	  cat $export_symbols >> $output_objdir/$soname.def;
9037	fi~
9038	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9039      else
9040	ld_shlibs=no
9041      fi
9042      ;;
9043
9044    haiku*)
9045      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9046      link_all_deplibs=yes
9047      ;;
9048
9049    interix[3-9]*)
9050      hardcode_direct=no
9051      hardcode_shlibpath_var=no
9052      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9053      export_dynamic_flag_spec='${wl}-E'
9054      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9055      # Instead, shared libraries are loaded at an image base (0x10000000 by
9056      # default) and relocated if they conflict, which is a slow very memory
9057      # consuming and fragmenting process.  To avoid this, we pick a random,
9058      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9059      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9060      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9061      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'
9062      ;;
9063
9064    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9065      tmp_diet=no
9066      if test "$host_os" = linux-dietlibc; then
9067	case $cc_basename in
9068	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9069	esac
9070      fi
9071      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9072	 && test "$tmp_diet" = no
9073      then
9074	tmp_addflag=
9075	tmp_sharedflag='-shared'
9076	case $cc_basename,$host_cpu in
9077        pgcc*)				# Portland Group C compiler
9078	  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'
9079	  tmp_addflag=' $pic_flag'
9080	  ;;
9081	pgf77* | pgf90* | pgf95* | pgfortran*)
9082					# Portland Group f77 and f90 compilers
9083	  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'
9084	  tmp_addflag=' $pic_flag -Mnomain' ;;
9085	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9086	  tmp_addflag=' -i_dynamic' ;;
9087	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9088	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9089	ifc* | ifort*)			# Intel Fortran compiler
9090	  tmp_addflag=' -nofor_main' ;;
9091	lf95*)				# Lahey Fortran 8.1
9092	  whole_archive_flag_spec=
9093	  tmp_sharedflag='--shared' ;;
9094	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9095	  tmp_sharedflag='-qmkshrobj'
9096	  tmp_addflag= ;;
9097	nvcc*)	# Cuda Compiler Driver 2.2
9098	  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'
9099	  compiler_needs_object=yes
9100	  ;;
9101	esac
9102	case `$CC -V 2>&1 | sed 5q` in
9103	*Sun\ C*)			# Sun C 5.9
9104	  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'
9105	  compiler_needs_object=yes
9106	  tmp_sharedflag='-G' ;;
9107	*Sun\ F*)			# Sun Fortran 8.3
9108	  tmp_sharedflag='-G' ;;
9109	esac
9110	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9111
9112        if test "x$supports_anon_versioning" = xyes; then
9113          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9114	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9115	    echo "local: *; };" >> $output_objdir/$libname.ver~
9116	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9117        fi
9118
9119	case $cc_basename in
9120	xlf* | bgf* | bgxlf* | mpixlf*)
9121	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9122	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9123	  hardcode_libdir_flag_spec=
9124	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9125	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9126	  if test "x$supports_anon_versioning" = xyes; then
9127	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9128	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9129	      echo "local: *; };" >> $output_objdir/$libname.ver~
9130	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9131	  fi
9132	  ;;
9133	esac
9134      else
9135        ld_shlibs=no
9136      fi
9137      ;;
9138
9139    netbsd*)
9140      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9141	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9142	wlarc=
9143      else
9144	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9145	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9146      fi
9147      ;;
9148
9149    solaris*)
9150      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9151	ld_shlibs=no
9152	cat <<_LT_EOF 1>&2
9153
9154*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9155*** create shared libraries on Solaris systems.  Therefore, libtool
9156*** is disabling shared libraries support.  We urge you to upgrade GNU
9157*** binutils to release 2.9.1 or newer.  Another option is to modify
9158*** your PATH or compiler configuration so that the native linker is
9159*** used, and then restart.
9160
9161_LT_EOF
9162      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9163	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9164	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9165      else
9166	ld_shlibs=no
9167      fi
9168      ;;
9169
9170    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9171      case `$LD -v 2>&1` in
9172        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9173	ld_shlibs=no
9174	cat <<_LT_EOF 1>&2
9175
9176*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9177*** reliably create shared libraries on SCO systems.  Therefore, libtool
9178*** is disabling shared libraries support.  We urge you to upgrade GNU
9179*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9180*** your PATH or compiler configuration so that the native linker is
9181*** used, and then restart.
9182
9183_LT_EOF
9184	;;
9185	*)
9186	  # For security reasons, it is highly recommended that you always
9187	  # use absolute paths for naming shared libraries, and exclude the
9188	  # DT_RUNPATH tag from executables and libraries.  But doing so
9189	  # requires that you compile everything twice, which is a pain.
9190	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9191	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9192	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9193	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9194	  else
9195	    ld_shlibs=no
9196	  fi
9197	;;
9198      esac
9199      ;;
9200
9201    sunos4*)
9202      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9203      wlarc=
9204      hardcode_direct=yes
9205      hardcode_shlibpath_var=no
9206      ;;
9207
9208    *)
9209      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9210	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9211	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9212      else
9213	ld_shlibs=no
9214      fi
9215      ;;
9216    esac
9217
9218    if test "$ld_shlibs" = no; then
9219      runpath_var=
9220      hardcode_libdir_flag_spec=
9221      export_dynamic_flag_spec=
9222      whole_archive_flag_spec=
9223    fi
9224  else
9225    # PORTME fill in a description of your system's linker (not GNU ld)
9226    case $host_os in
9227    aix3*)
9228      allow_undefined_flag=unsupported
9229      always_export_symbols=yes
9230      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'
9231      # Note: this linker hardcodes the directories in LIBPATH if there
9232      # are no directories specified by -L.
9233      hardcode_minus_L=yes
9234      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9235	# Neither direct hardcoding nor static linking is supported with a
9236	# broken collect2.
9237	hardcode_direct=unsupported
9238      fi
9239      ;;
9240
9241    aix[4-9]*)
9242      if test "$host_cpu" = ia64; then
9243	# On IA64, the linker does run time linking by default, so we don't
9244	# have to do anything special.
9245	aix_use_runtimelinking=no
9246	exp_sym_flag='-Bexport'
9247	no_entry_flag=""
9248      else
9249	# If we're using GNU nm, then we don't want the "-C" option.
9250	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9251	# Also, AIX nm treats weak defined symbols like other global
9252	# defined symbols, whereas GNU nm marks them as "W".
9253	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9254	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9255	else
9256	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9257	fi
9258	aix_use_runtimelinking=no
9259
9260	# Test if we are trying to use run time linking or normal
9261	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9262	# need to do runtime linking.
9263	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9264	  for ld_flag in $LDFLAGS; do
9265	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9266	    aix_use_runtimelinking=yes
9267	    break
9268	  fi
9269	  done
9270	  ;;
9271	esac
9272
9273	exp_sym_flag='-bexport'
9274	no_entry_flag='-bnoentry'
9275      fi
9276
9277      # When large executables or shared objects are built, AIX ld can
9278      # have problems creating the table of contents.  If linking a library
9279      # or program results in "error TOC overflow" add -mminimal-toc to
9280      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9281      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9282
9283      archive_cmds=''
9284      hardcode_direct=yes
9285      hardcode_direct_absolute=yes
9286      hardcode_libdir_separator=':'
9287      link_all_deplibs=yes
9288      file_list_spec='${wl}-f,'
9289
9290      if test "$GCC" = yes; then
9291	case $host_os in aix4.[012]|aix4.[012].*)
9292	# We only want to do this on AIX 4.2 and lower, the check
9293	# below for broken collect2 doesn't work under 4.3+
9294	  collect2name=`${CC} -print-prog-name=collect2`
9295	  if test -f "$collect2name" &&
9296	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9297	  then
9298	  # We have reworked collect2
9299	  :
9300	  else
9301	  # We have old collect2
9302	  hardcode_direct=unsupported
9303	  # It fails to find uninstalled libraries when the uninstalled
9304	  # path is not listed in the libpath.  Setting hardcode_minus_L
9305	  # to unsupported forces relinking
9306	  hardcode_minus_L=yes
9307	  hardcode_libdir_flag_spec='-L$libdir'
9308	  hardcode_libdir_separator=
9309	  fi
9310	  ;;
9311	esac
9312	shared_flag='-shared'
9313	if test "$aix_use_runtimelinking" = yes; then
9314	  shared_flag="$shared_flag "'${wl}-G'
9315	fi
9316      else
9317	# not using gcc
9318	if test "$host_cpu" = ia64; then
9319	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9320	# chokes on -Wl,-G. The following line is correct:
9321	  shared_flag='-G'
9322	else
9323	  if test "$aix_use_runtimelinking" = yes; then
9324	    shared_flag='${wl}-G'
9325	  else
9326	    shared_flag='${wl}-bM:SRE'
9327	  fi
9328	fi
9329      fi
9330
9331      export_dynamic_flag_spec='${wl}-bexpall'
9332      # It seems that -bexpall does not export symbols beginning with
9333      # underscore (_), so it is better to generate a list of symbols to export.
9334      always_export_symbols=yes
9335      if test "$aix_use_runtimelinking" = yes; then
9336	# Warning - without using the other runtime loading flags (-brtl),
9337	# -berok will link without error, but may produce a broken library.
9338	allow_undefined_flag='-berok'
9339        # Determine the default libpath from the value encoded in an
9340        # empty executable.
9341        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342/* end confdefs.h.  */
9343
9344int
9345main ()
9346{
9347
9348  ;
9349  return 0;
9350}
9351_ACEOF
9352if ac_fn_c_try_link "$LINENO"; then :
9353
9354lt_aix_libpath_sed='
9355    /Import File Strings/,/^$/ {
9356	/^0/ {
9357	    s/^0  *\(.*\)$/\1/
9358	    p
9359	}
9360    }'
9361aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9362# Check for a 64-bit object if we didn't find anything.
9363if test -z "$aix_libpath"; then
9364  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9365fi
9366fi
9367rm -f core conftest.err conftest.$ac_objext \
9368    conftest$ac_exeext conftest.$ac_ext
9369if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9370
9371        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9372        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9373      else
9374	if test "$host_cpu" = ia64; then
9375	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9376	  allow_undefined_flag="-z nodefs"
9377	  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"
9378	else
9379	 # Determine the default libpath from the value encoded in an
9380	 # empty executable.
9381	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382/* end confdefs.h.  */
9383
9384int
9385main ()
9386{
9387
9388  ;
9389  return 0;
9390}
9391_ACEOF
9392if ac_fn_c_try_link "$LINENO"; then :
9393
9394lt_aix_libpath_sed='
9395    /Import File Strings/,/^$/ {
9396	/^0/ {
9397	    s/^0  *\(.*\)$/\1/
9398	    p
9399	}
9400    }'
9401aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9402# Check for a 64-bit object if we didn't find anything.
9403if test -z "$aix_libpath"; then
9404  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9405fi
9406fi
9407rm -f core conftest.err conftest.$ac_objext \
9408    conftest$ac_exeext conftest.$ac_ext
9409if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9410
9411	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9412	  # Warning - without using the other run time loading flags,
9413	  # -berok will link without error, but may produce a broken library.
9414	  no_undefined_flag=' ${wl}-bernotok'
9415	  allow_undefined_flag=' ${wl}-berok'
9416	  if test "$with_gnu_ld" = yes; then
9417	    # We only use this code for GNU lds that support --whole-archive.
9418	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9419	  else
9420	    # Exported symbols can be pulled into shared objects from archives
9421	    whole_archive_flag_spec='$convenience'
9422	  fi
9423	  archive_cmds_need_lc=yes
9424	  # This is similar to how AIX traditionally builds its shared libraries.
9425	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9426	fi
9427      fi
9428      ;;
9429
9430    amigaos*)
9431      case $host_cpu in
9432      powerpc)
9433            # see comment about AmigaOS4 .so support
9434            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9435            archive_expsym_cmds=''
9436        ;;
9437      m68k)
9438            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)'
9439            hardcode_libdir_flag_spec='-L$libdir'
9440            hardcode_minus_L=yes
9441        ;;
9442      esac
9443      ;;
9444
9445    bsdi[45]*)
9446      export_dynamic_flag_spec=-rdynamic
9447      ;;
9448
9449    cygwin* | mingw* | pw32* | cegcc*)
9450      # When not using gcc, we currently assume that we are using
9451      # Microsoft Visual C++.
9452      # hardcode_libdir_flag_spec is actually meaningless, as there is
9453      # no search path for DLLs.
9454      hardcode_libdir_flag_spec=' '
9455      allow_undefined_flag=unsupported
9456      # Tell ltmain to make .lib files, not .a files.
9457      libext=lib
9458      # Tell ltmain to make .dll files, not .so files.
9459      shrext_cmds=".dll"
9460      # FIXME: Setting linknames here is a bad hack.
9461      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9462      # The linker will automatically build a .lib file if we build a DLL.
9463      old_archive_from_new_cmds='true'
9464      # FIXME: Should let the user specify the lib program.
9465      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9466      fix_srcfile_path='`cygpath -w "$srcfile"`'
9467      enable_shared_with_static_runtimes=yes
9468      ;;
9469
9470    darwin* | rhapsody*)
9471
9472
9473  archive_cmds_need_lc=no
9474  hardcode_direct=no
9475  hardcode_automatic=yes
9476  hardcode_shlibpath_var=unsupported
9477  if test "$lt_cv_ld_force_load" = "yes"; then
9478    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\"`'
9479  else
9480    whole_archive_flag_spec=''
9481  fi
9482  link_all_deplibs=yes
9483  allow_undefined_flag="$_lt_dar_allow_undefined"
9484  case $cc_basename in
9485     ifort*) _lt_dar_can_shared=yes ;;
9486     *) _lt_dar_can_shared=$GCC ;;
9487  esac
9488  if test "$_lt_dar_can_shared" = "yes"; then
9489    output_verbose_link_cmd=func_echo_all
9490    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9491    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9492    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}"
9493    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}"
9494
9495  else
9496  ld_shlibs=no
9497  fi
9498
9499      ;;
9500
9501    dgux*)
9502      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9503      hardcode_libdir_flag_spec='-L$libdir'
9504      hardcode_shlibpath_var=no
9505      ;;
9506
9507    freebsd1*)
9508      ld_shlibs=no
9509      ;;
9510
9511    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9512    # support.  Future versions do this automatically, but an explicit c++rt0.o
9513    # does not break anything, and helps significantly (at the cost of a little
9514    # extra space).
9515    freebsd2.2*)
9516      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9517      hardcode_libdir_flag_spec='-R$libdir'
9518      hardcode_direct=yes
9519      hardcode_shlibpath_var=no
9520      ;;
9521
9522    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9523    freebsd2*)
9524      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9525      hardcode_direct=yes
9526      hardcode_minus_L=yes
9527      hardcode_shlibpath_var=no
9528      ;;
9529
9530    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9531    freebsd* | dragonfly*)
9532      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9533      hardcode_libdir_flag_spec='-R$libdir'
9534      hardcode_direct=yes
9535      hardcode_shlibpath_var=no
9536      ;;
9537
9538    hpux9*)
9539      if test "$GCC" = yes; then
9540	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9541      else
9542	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9543      fi
9544      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9545      hardcode_libdir_separator=:
9546      hardcode_direct=yes
9547
9548      # hardcode_minus_L: Not really in the search PATH,
9549      # but as the default location of the library.
9550      hardcode_minus_L=yes
9551      export_dynamic_flag_spec='${wl}-E'
9552      ;;
9553
9554    hpux10*)
9555      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9556	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9557      else
9558	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9559      fi
9560      if test "$with_gnu_ld" = no; then
9561	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9562	hardcode_libdir_flag_spec_ld='+b $libdir'
9563	hardcode_libdir_separator=:
9564	hardcode_direct=yes
9565	hardcode_direct_absolute=yes
9566	export_dynamic_flag_spec='${wl}-E'
9567	# hardcode_minus_L: Not really in the search PATH,
9568	# but as the default location of the library.
9569	hardcode_minus_L=yes
9570      fi
9571      ;;
9572
9573    hpux11*)
9574      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9575	case $host_cpu in
9576	hppa*64*)
9577	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9578	  ;;
9579	ia64*)
9580	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9581	  ;;
9582	*)
9583	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9584	  ;;
9585	esac
9586      else
9587	case $host_cpu in
9588	hppa*64*)
9589	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9590	  ;;
9591	ia64*)
9592	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9593	  ;;
9594	*)
9595
9596	  # Older versions of the 11.00 compiler do not understand -b yet
9597	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9598	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9599$as_echo_n "checking if $CC understands -b... " >&6; }
9600if test "${lt_cv_prog_compiler__b+set}" = set; then :
9601  $as_echo_n "(cached) " >&6
9602else
9603  lt_cv_prog_compiler__b=no
9604   save_LDFLAGS="$LDFLAGS"
9605   LDFLAGS="$LDFLAGS -b"
9606   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9607   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9608     # The linker can only warn and ignore the option if not recognized
9609     # So say no if there are warnings
9610     if test -s conftest.err; then
9611       # Append any errors to the config.log.
9612       cat conftest.err 1>&5
9613       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9614       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9615       if diff conftest.exp conftest.er2 >/dev/null; then
9616         lt_cv_prog_compiler__b=yes
9617       fi
9618     else
9619       lt_cv_prog_compiler__b=yes
9620     fi
9621   fi
9622   $RM -r conftest*
9623   LDFLAGS="$save_LDFLAGS"
9624
9625fi
9626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9627$as_echo "$lt_cv_prog_compiler__b" >&6; }
9628
9629if test x"$lt_cv_prog_compiler__b" = xyes; then
9630    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9631else
9632    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9633fi
9634
9635	  ;;
9636	esac
9637      fi
9638      if test "$with_gnu_ld" = no; then
9639	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9640	hardcode_libdir_separator=:
9641
9642	case $host_cpu in
9643	hppa*64*|ia64*)
9644	  hardcode_direct=no
9645	  hardcode_shlibpath_var=no
9646	  ;;
9647	*)
9648	  hardcode_direct=yes
9649	  hardcode_direct_absolute=yes
9650	  export_dynamic_flag_spec='${wl}-E'
9651
9652	  # hardcode_minus_L: Not really in the search PATH,
9653	  # but as the default location of the library.
9654	  hardcode_minus_L=yes
9655	  ;;
9656	esac
9657      fi
9658      ;;
9659
9660    irix5* | irix6* | nonstopux*)
9661      if test "$GCC" = yes; then
9662	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9663	# Try to use the -exported_symbol ld option, if it does not
9664	# work, assume that -exports_file does not work either and
9665	# implicitly export all symbols.
9666        save_LDFLAGS="$LDFLAGS"
9667        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9668        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669/* end confdefs.h.  */
9670int foo(void) {}
9671_ACEOF
9672if ac_fn_c_try_link "$LINENO"; then :
9673  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9674
9675fi
9676rm -f core conftest.err conftest.$ac_objext \
9677    conftest$ac_exeext conftest.$ac_ext
9678        LDFLAGS="$save_LDFLAGS"
9679      else
9680	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'
9681	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'
9682      fi
9683      archive_cmds_need_lc='no'
9684      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9685      hardcode_libdir_separator=:
9686      inherit_rpath=yes
9687      link_all_deplibs=yes
9688      ;;
9689
9690    netbsd*)
9691      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9692	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9693      else
9694	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9695      fi
9696      hardcode_libdir_flag_spec='-R$libdir'
9697      hardcode_direct=yes
9698      hardcode_shlibpath_var=no
9699      ;;
9700
9701    newsos6)
9702      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703      hardcode_direct=yes
9704      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9705      hardcode_libdir_separator=:
9706      hardcode_shlibpath_var=no
9707      ;;
9708
9709    *nto* | *qnx*)
9710      ;;
9711
9712    openbsd*)
9713      if test -f /usr/libexec/ld.so; then
9714	hardcode_direct=yes
9715	hardcode_shlibpath_var=no
9716	hardcode_direct_absolute=yes
9717	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9718	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9719	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9720	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9721	  export_dynamic_flag_spec='${wl}-E'
9722	else
9723	  case $host_os in
9724	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9725	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9726	     hardcode_libdir_flag_spec='-R$libdir'
9727	     ;;
9728	   *)
9729	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9730	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9731	     ;;
9732	  esac
9733	fi
9734      else
9735	ld_shlibs=no
9736      fi
9737      ;;
9738
9739    os2*)
9740      hardcode_libdir_flag_spec='-L$libdir'
9741      hardcode_minus_L=yes
9742      allow_undefined_flag=unsupported
9743      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9744      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9745      ;;
9746
9747    osf3*)
9748      if test "$GCC" = yes; then
9749	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9750	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'
9751      else
9752	allow_undefined_flag=' -expect_unresolved \*'
9753	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'
9754      fi
9755      archive_cmds_need_lc='no'
9756      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9757      hardcode_libdir_separator=:
9758      ;;
9759
9760    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9761      if test "$GCC" = yes; then
9762	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9763	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9764	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9765      else
9766	allow_undefined_flag=' -expect_unresolved \*'
9767	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'
9768	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~
9769	$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'
9770
9771	# Both c and cxx compiler support -rpath directly
9772	hardcode_libdir_flag_spec='-rpath $libdir'
9773      fi
9774      archive_cmds_need_lc='no'
9775      hardcode_libdir_separator=:
9776      ;;
9777
9778    solaris*)
9779      no_undefined_flag=' -z defs'
9780      if test "$GCC" = yes; then
9781	wlarc='${wl}'
9782	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9783	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9784	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9785      else
9786	case `$CC -V 2>&1` in
9787	*"Compilers 5.0"*)
9788	  wlarc=''
9789	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9790	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9791	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9792	  ;;
9793	*)
9794	  wlarc='${wl}'
9795	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9796	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9797	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9798	  ;;
9799	esac
9800      fi
9801      hardcode_libdir_flag_spec='-R$libdir'
9802      hardcode_shlibpath_var=no
9803      case $host_os in
9804      solaris2.[0-5] | solaris2.[0-5].*) ;;
9805      *)
9806	# The compiler driver will combine and reorder linker options,
9807	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9808	# but is careful enough not to reorder.
9809	# Supported since Solaris 2.6 (maybe 2.5.1?)
9810	if test "$GCC" = yes; then
9811	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9812	else
9813	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9814	fi
9815	;;
9816      esac
9817      link_all_deplibs=yes
9818      ;;
9819
9820    sunos4*)
9821      if test "x$host_vendor" = xsequent; then
9822	# Use $CC to link under sequent, because it throws in some extra .o
9823	# files that make .init and .fini sections work.
9824	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9825      else
9826	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9827      fi
9828      hardcode_libdir_flag_spec='-L$libdir'
9829      hardcode_direct=yes
9830      hardcode_minus_L=yes
9831      hardcode_shlibpath_var=no
9832      ;;
9833
9834    sysv4)
9835      case $host_vendor in
9836	sni)
9837	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9838	  hardcode_direct=yes # is this really true???
9839	;;
9840	siemens)
9841	  ## LD is ld it makes a PLAMLIB
9842	  ## CC just makes a GrossModule.
9843	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9844	  reload_cmds='$CC -r -o $output$reload_objs'
9845	  hardcode_direct=no
9846        ;;
9847	motorola)
9848	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9849	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9850	;;
9851      esac
9852      runpath_var='LD_RUN_PATH'
9853      hardcode_shlibpath_var=no
9854      ;;
9855
9856    sysv4.3*)
9857      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9858      hardcode_shlibpath_var=no
9859      export_dynamic_flag_spec='-Bexport'
9860      ;;
9861
9862    sysv4*MP*)
9863      if test -d /usr/nec; then
9864	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9865	hardcode_shlibpath_var=no
9866	runpath_var=LD_RUN_PATH
9867	hardcode_runpath_var=yes
9868	ld_shlibs=yes
9869      fi
9870      ;;
9871
9872    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9873      no_undefined_flag='${wl}-z,text'
9874      archive_cmds_need_lc=no
9875      hardcode_shlibpath_var=no
9876      runpath_var='LD_RUN_PATH'
9877
9878      if test "$GCC" = yes; then
9879	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9880	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9881      else
9882	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9883	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9884      fi
9885      ;;
9886
9887    sysv5* | sco3.2v5* | sco5v6*)
9888      # Note: We can NOT use -z defs as we might desire, because we do not
9889      # link with -lc, and that would cause any symbols used from libc to
9890      # always be unresolved, which means just about no library would
9891      # ever link correctly.  If we're not using GNU ld we use -z text
9892      # though, which does catch some bad symbols but isn't as heavy-handed
9893      # as -z defs.
9894      no_undefined_flag='${wl}-z,text'
9895      allow_undefined_flag='${wl}-z,nodefs'
9896      archive_cmds_need_lc=no
9897      hardcode_shlibpath_var=no
9898      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9899      hardcode_libdir_separator=':'
9900      link_all_deplibs=yes
9901      export_dynamic_flag_spec='${wl}-Bexport'
9902      runpath_var='LD_RUN_PATH'
9903
9904      if test "$GCC" = yes; then
9905	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9906	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9907      else
9908	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9909	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9910      fi
9911      ;;
9912
9913    uts4*)
9914      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9915      hardcode_libdir_flag_spec='-L$libdir'
9916      hardcode_shlibpath_var=no
9917      ;;
9918
9919    *)
9920      ld_shlibs=no
9921      ;;
9922    esac
9923
9924    if test x$host_vendor = xsni; then
9925      case $host in
9926      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9927	export_dynamic_flag_spec='${wl}-Blargedynsym'
9928	;;
9929      esac
9930    fi
9931  fi
9932
9933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9934$as_echo "$ld_shlibs" >&6; }
9935test "$ld_shlibs" = no && can_build_shared=no
9936
9937with_gnu_ld=$with_gnu_ld
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953#
9954# Do we need to explicitly link libc?
9955#
9956case "x$archive_cmds_need_lc" in
9957x|xyes)
9958  # Assume -lc should be added
9959  archive_cmds_need_lc=yes
9960
9961  if test "$enable_shared" = yes && test "$GCC" = yes; then
9962    case $archive_cmds in
9963    *'~'*)
9964      # FIXME: we may have to deal with multi-command sequences.
9965      ;;
9966    '$CC '*)
9967      # Test whether the compiler implicitly links with -lc since on some
9968      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9969      # to ld, don't add -lc before -lgcc.
9970      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9971$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9972if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9973  $as_echo_n "(cached) " >&6
9974else
9975  $RM conftest*
9976	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9977
9978	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9979  (eval $ac_compile) 2>&5
9980  ac_status=$?
9981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9982  test $ac_status = 0; } 2>conftest.err; then
9983	  soname=conftest
9984	  lib=conftest
9985	  libobjs=conftest.$ac_objext
9986	  deplibs=
9987	  wl=$lt_prog_compiler_wl
9988	  pic_flag=$lt_prog_compiler_pic
9989	  compiler_flags=-v
9990	  linker_flags=-v
9991	  verstring=
9992	  output_objdir=.
9993	  libname=conftest
9994	  lt_save_allow_undefined_flag=$allow_undefined_flag
9995	  allow_undefined_flag=
9996	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9997  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9998  ac_status=$?
9999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10000  test $ac_status = 0; }
10001	  then
10002	    lt_cv_archive_cmds_need_lc=no
10003	  else
10004	    lt_cv_archive_cmds_need_lc=yes
10005	  fi
10006	  allow_undefined_flag=$lt_save_allow_undefined_flag
10007	else
10008	  cat conftest.err 1>&5
10009	fi
10010	$RM conftest*
10011
10012fi
10013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10014$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10015      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10016      ;;
10017    esac
10018  fi
10019  ;;
10020esac
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10179$as_echo_n "checking dynamic linker characteristics... " >&6; }
10180
10181if test "$GCC" = yes; then
10182  case $host_os in
10183    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10184    *) lt_awk_arg="/^libraries:/" ;;
10185  esac
10186  case $host_os in
10187    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10188    *) lt_sed_strip_eq="s,=/,/,g" ;;
10189  esac
10190  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10191  case $lt_search_path_spec in
10192  *\;*)
10193    # if the path contains ";" then we assume it to be the separator
10194    # otherwise default to the standard path separator (i.e. ":") - it is
10195    # assumed that no part of a normal pathname contains ";" but that should
10196    # okay in the real world where ";" in dirpaths is itself problematic.
10197    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10198    ;;
10199  *)
10200    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10201    ;;
10202  esac
10203  # Ok, now we have the path, separated by spaces, we can step through it
10204  # and add multilib dir if necessary.
10205  lt_tmp_lt_search_path_spec=
10206  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10207  for lt_sys_path in $lt_search_path_spec; do
10208    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10209      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10210    else
10211      test -d "$lt_sys_path" && \
10212	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10213    fi
10214  done
10215  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10216BEGIN {RS=" "; FS="/|\n";} {
10217  lt_foo="";
10218  lt_count=0;
10219  for (lt_i = NF; lt_i > 0; lt_i--) {
10220    if ($lt_i != "" && $lt_i != ".") {
10221      if ($lt_i == "..") {
10222        lt_count++;
10223      } else {
10224        if (lt_count == 0) {
10225          lt_foo="/" $lt_i lt_foo;
10226        } else {
10227          lt_count--;
10228        }
10229      }
10230    }
10231  }
10232  if (lt_foo != "") { lt_freq[lt_foo]++; }
10233  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10234}'`
10235  # AWK program above erroneously prepends '/' to C:/dos/paths
10236  # for these hosts.
10237  case $host_os in
10238    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10239      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10240  esac
10241  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10242else
10243  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10244fi
10245library_names_spec=
10246libname_spec='lib$name'
10247soname_spec=
10248shrext_cmds=".so"
10249postinstall_cmds=
10250postuninstall_cmds=
10251finish_cmds=
10252finish_eval=
10253shlibpath_var=
10254shlibpath_overrides_runpath=unknown
10255version_type=none
10256dynamic_linker="$host_os ld.so"
10257sys_lib_dlsearch_path_spec="/lib /usr/lib"
10258need_lib_prefix=unknown
10259hardcode_into_libs=no
10260
10261# when you set need_version to no, make sure it does not cause -set_version
10262# flags to be left without arguments
10263need_version=unknown
10264
10265case $host_os in
10266aix3*)
10267  version_type=linux
10268  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10269  shlibpath_var=LIBPATH
10270
10271  # AIX 3 has no versioning support, so we append a major version to the name.
10272  soname_spec='${libname}${release}${shared_ext}$major'
10273  ;;
10274
10275aix[4-9]*)
10276  version_type=linux
10277  need_lib_prefix=no
10278  need_version=no
10279  hardcode_into_libs=yes
10280  if test "$host_cpu" = ia64; then
10281    # AIX 5 supports IA64
10282    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10283    shlibpath_var=LD_LIBRARY_PATH
10284  else
10285    # With GCC up to 2.95.x, collect2 would create an import file
10286    # for dependence libraries.  The import file would start with
10287    # the line `#! .'.  This would cause the generated library to
10288    # depend on `.', always an invalid library.  This was fixed in
10289    # development snapshots of GCC prior to 3.0.
10290    case $host_os in
10291      aix4 | aix4.[01] | aix4.[01].*)
10292      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10293	   echo ' yes '
10294	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10295	:
10296      else
10297	can_build_shared=no
10298      fi
10299      ;;
10300    esac
10301    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10302    # soname into executable. Probably we can add versioning support to
10303    # collect2, so additional links can be useful in future.
10304    if test "$aix_use_runtimelinking" = yes; then
10305      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10306      # instead of lib<name>.a to let people know that these are not
10307      # typical AIX shared libraries.
10308      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10309    else
10310      # We preserve .a as extension for shared libraries through AIX4.2
10311      # and later when we are not doing run time linking.
10312      library_names_spec='${libname}${release}.a $libname.a'
10313      soname_spec='${libname}${release}${shared_ext}$major'
10314    fi
10315    shlibpath_var=LIBPATH
10316  fi
10317  ;;
10318
10319amigaos*)
10320  case $host_cpu in
10321  powerpc)
10322    # Since July 2007 AmigaOS4 officially supports .so libraries.
10323    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10324    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325    ;;
10326  m68k)
10327    library_names_spec='$libname.ixlibrary $libname.a'
10328    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10329    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10330    ;;
10331  esac
10332  ;;
10333
10334beos*)
10335  library_names_spec='${libname}${shared_ext}'
10336  dynamic_linker="$host_os ld.so"
10337  shlibpath_var=LIBRARY_PATH
10338  ;;
10339
10340bsdi[45]*)
10341  version_type=linux
10342  need_version=no
10343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344  soname_spec='${libname}${release}${shared_ext}$major'
10345  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10346  shlibpath_var=LD_LIBRARY_PATH
10347  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10348  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10349  # the default ld.so.conf also contains /usr/contrib/lib and
10350  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10351  # libtool to hard-code these into programs
10352  ;;
10353
10354cygwin* | mingw* | pw32* | cegcc*)
10355  version_type=windows
10356  shrext_cmds=".dll"
10357  need_version=no
10358  need_lib_prefix=no
10359
10360  case $GCC,$host_os in
10361  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10362    library_names_spec='$libname.dll.a'
10363    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10364    postinstall_cmds='base_file=`basename \${file}`~
10365      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10366      dldir=$destdir/`dirname \$dlpath`~
10367      test -d \$dldir || mkdir -p \$dldir~
10368      $install_prog $dir/$dlname \$dldir/$dlname~
10369      chmod a+x \$dldir/$dlname~
10370      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10371        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10372      fi'
10373    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10374      dlpath=$dir/\$dldll~
10375       $RM \$dlpath'
10376    shlibpath_overrides_runpath=yes
10377
10378    case $host_os in
10379    cygwin*)
10380      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10381      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10382
10383      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10384      ;;
10385    mingw* | cegcc*)
10386      # MinGW DLLs use traditional 'lib' prefix
10387      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10388      ;;
10389    pw32*)
10390      # pw32 DLLs use 'pw' prefix rather than 'lib'
10391      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10392      ;;
10393    esac
10394    ;;
10395
10396  *)
10397    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10398    ;;
10399  esac
10400  dynamic_linker='Win32 ld.exe'
10401  # FIXME: first we should search . and the directory the executable is in
10402  shlibpath_var=PATH
10403  ;;
10404
10405darwin* | rhapsody*)
10406  dynamic_linker="$host_os dyld"
10407  version_type=darwin
10408  need_lib_prefix=no
10409  need_version=no
10410  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10411  soname_spec='${libname}${release}${major}$shared_ext'
10412  shlibpath_overrides_runpath=yes
10413  shlibpath_var=DYLD_LIBRARY_PATH
10414  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10415
10416  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10417  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10418  ;;
10419
10420dgux*)
10421  version_type=linux
10422  need_lib_prefix=no
10423  need_version=no
10424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10425  soname_spec='${libname}${release}${shared_ext}$major'
10426  shlibpath_var=LD_LIBRARY_PATH
10427  ;;
10428
10429freebsd1*)
10430  dynamic_linker=no
10431  ;;
10432
10433freebsd* | dragonfly*)
10434  # DragonFly does not have aout.  When/if they implement a new
10435  # versioning mechanism, adjust this.
10436  if test -x /usr/bin/objformat; then
10437    objformat=`/usr/bin/objformat`
10438  else
10439    case $host_os in
10440    freebsd[123]*) objformat=aout ;;
10441    *) objformat=elf ;;
10442    esac
10443  fi
10444  version_type=freebsd-$objformat
10445  case $version_type in
10446    freebsd-elf*)
10447      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10448      need_version=no
10449      need_lib_prefix=no
10450      ;;
10451    freebsd-*)
10452      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10453      need_version=yes
10454      ;;
10455  esac
10456  shlibpath_var=LD_LIBRARY_PATH
10457  case $host_os in
10458  freebsd2*)
10459    shlibpath_overrides_runpath=yes
10460    ;;
10461  freebsd3.[01]* | freebsdelf3.[01]*)
10462    shlibpath_overrides_runpath=yes
10463    hardcode_into_libs=yes
10464    ;;
10465  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10466  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10467    shlibpath_overrides_runpath=no
10468    hardcode_into_libs=yes
10469    ;;
10470  *) # from 4.6 on, and DragonFly
10471    shlibpath_overrides_runpath=yes
10472    hardcode_into_libs=yes
10473    ;;
10474  esac
10475  ;;
10476
10477gnu*)
10478  version_type=linux
10479  need_lib_prefix=no
10480  need_version=no
10481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10482  soname_spec='${libname}${release}${shared_ext}$major'
10483  shlibpath_var=LD_LIBRARY_PATH
10484  hardcode_into_libs=yes
10485  ;;
10486
10487haiku*)
10488  version_type=linux
10489  need_lib_prefix=no
10490  need_version=no
10491  dynamic_linker="$host_os runtime_loader"
10492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10493  soname_spec='${libname}${release}${shared_ext}$major'
10494  shlibpath_var=LIBRARY_PATH
10495  shlibpath_overrides_runpath=yes
10496  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10497  hardcode_into_libs=yes
10498  ;;
10499
10500hpux9* | hpux10* | hpux11*)
10501  # Give a soname corresponding to the major version so that dld.sl refuses to
10502  # link against other versions.
10503  version_type=sunos
10504  need_lib_prefix=no
10505  need_version=no
10506  case $host_cpu in
10507  ia64*)
10508    shrext_cmds='.so'
10509    hardcode_into_libs=yes
10510    dynamic_linker="$host_os dld.so"
10511    shlibpath_var=LD_LIBRARY_PATH
10512    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10513    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514    soname_spec='${libname}${release}${shared_ext}$major'
10515    if test "X$HPUX_IA64_MODE" = X32; then
10516      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10517    else
10518      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10519    fi
10520    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10521    ;;
10522  hppa*64*)
10523    shrext_cmds='.sl'
10524    hardcode_into_libs=yes
10525    dynamic_linker="$host_os dld.sl"
10526    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10527    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10528    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529    soname_spec='${libname}${release}${shared_ext}$major'
10530    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10531    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10532    ;;
10533  *)
10534    shrext_cmds='.sl'
10535    dynamic_linker="$host_os dld.sl"
10536    shlibpath_var=SHLIB_PATH
10537    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10538    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10539    soname_spec='${libname}${release}${shared_ext}$major'
10540    ;;
10541  esac
10542  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10543  postinstall_cmds='chmod 555 $lib'
10544  # or fails outright, so override atomically:
10545  install_override_mode=555
10546  ;;
10547
10548interix[3-9]*)
10549  version_type=linux
10550  need_lib_prefix=no
10551  need_version=no
10552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10553  soname_spec='${libname}${release}${shared_ext}$major'
10554  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10555  shlibpath_var=LD_LIBRARY_PATH
10556  shlibpath_overrides_runpath=no
10557  hardcode_into_libs=yes
10558  ;;
10559
10560irix5* | irix6* | nonstopux*)
10561  case $host_os in
10562    nonstopux*) version_type=nonstopux ;;
10563    *)
10564	if test "$lt_cv_prog_gnu_ld" = yes; then
10565		version_type=linux
10566	else
10567		version_type=irix
10568	fi ;;
10569  esac
10570  need_lib_prefix=no
10571  need_version=no
10572  soname_spec='${libname}${release}${shared_ext}$major'
10573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10574  case $host_os in
10575  irix5* | nonstopux*)
10576    libsuff= shlibsuff=
10577    ;;
10578  *)
10579    case $LD in # libtool.m4 will add one of these switches to LD
10580    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10581      libsuff= shlibsuff= libmagic=32-bit;;
10582    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10583      libsuff=32 shlibsuff=N32 libmagic=N32;;
10584    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10585      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10586    *) libsuff= shlibsuff= libmagic=never-match;;
10587    esac
10588    ;;
10589  esac
10590  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10591  shlibpath_overrides_runpath=no
10592  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10593  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10594  hardcode_into_libs=yes
10595  ;;
10596
10597# No shared lib support for Linux oldld, aout, or coff.
10598linux*oldld* | linux*aout* | linux*coff*)
10599  dynamic_linker=no
10600  ;;
10601
10602# This must be Linux ELF.
10603linux* | k*bsd*-gnu | kopensolaris*-gnu)
10604  version_type=linux
10605  need_lib_prefix=no
10606  need_version=no
10607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608  soname_spec='${libname}${release}${shared_ext}$major'
10609  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10610  shlibpath_var=LD_LIBRARY_PATH
10611  shlibpath_overrides_runpath=no
10612
10613  # Some binutils ld are patched to set DT_RUNPATH
10614  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10615  $as_echo_n "(cached) " >&6
10616else
10617  lt_cv_shlibpath_overrides_runpath=no
10618    save_LDFLAGS=$LDFLAGS
10619    save_libdir=$libdir
10620    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10621	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10622    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623/* end confdefs.h.  */
10624
10625int
10626main ()
10627{
10628
10629  ;
10630  return 0;
10631}
10632_ACEOF
10633if ac_fn_c_try_link "$LINENO"; then :
10634  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10635  lt_cv_shlibpath_overrides_runpath=yes
10636fi
10637fi
10638rm -f core conftest.err conftest.$ac_objext \
10639    conftest$ac_exeext conftest.$ac_ext
10640    LDFLAGS=$save_LDFLAGS
10641    libdir=$save_libdir
10642
10643fi
10644
10645  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10646
10647  # This implies no fast_install, which is unacceptable.
10648  # Some rework will be needed to allow for fast_install
10649  # before this can be enabled.
10650  hardcode_into_libs=yes
10651
10652  # Add ABI-specific directories to the system library path.
10653  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10654
10655  # Append ld.so.conf contents to the search path
10656  if test -f /etc/ld.so.conf; then
10657    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' ' '`
10658    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10659
10660  fi
10661
10662  # We used to test for /lib/ld.so.1 and disable shared libraries on
10663  # powerpc, because MkLinux only supported shared libraries with the
10664  # GNU dynamic linker.  Since this was broken with cross compilers,
10665  # most powerpc-linux boxes support dynamic linking these days and
10666  # people can always --disable-shared, the test was removed, and we
10667  # assume the GNU/Linux dynamic linker is in use.
10668  dynamic_linker='GNU/Linux ld.so'
10669  ;;
10670
10671netbsd*)
10672  version_type=sunos
10673  need_lib_prefix=no
10674  need_version=no
10675  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10676    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10677    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10678    dynamic_linker='NetBSD (a.out) ld.so'
10679  else
10680    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10681    soname_spec='${libname}${release}${shared_ext}$major'
10682    dynamic_linker='NetBSD ld.elf_so'
10683  fi
10684  shlibpath_var=LD_LIBRARY_PATH
10685  shlibpath_overrides_runpath=yes
10686  hardcode_into_libs=yes
10687  ;;
10688
10689newsos6)
10690  version_type=linux
10691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692  shlibpath_var=LD_LIBRARY_PATH
10693  shlibpath_overrides_runpath=yes
10694  ;;
10695
10696*nto* | *qnx*)
10697  version_type=qnx
10698  need_lib_prefix=no
10699  need_version=no
10700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701  soname_spec='${libname}${release}${shared_ext}$major'
10702  shlibpath_var=LD_LIBRARY_PATH
10703  shlibpath_overrides_runpath=no
10704  hardcode_into_libs=yes
10705  dynamic_linker='ldqnx.so'
10706  ;;
10707
10708openbsd*)
10709  version_type=sunos
10710  sys_lib_dlsearch_path_spec="/usr/lib"
10711  need_lib_prefix=no
10712  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10713  case $host_os in
10714    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10715    *)				need_version=no  ;;
10716  esac
10717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10718  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10719  shlibpath_var=LD_LIBRARY_PATH
10720  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10721    case $host_os in
10722      openbsd2.[89] | openbsd2.[89].*)
10723	shlibpath_overrides_runpath=no
10724	;;
10725      *)
10726	shlibpath_overrides_runpath=yes
10727	;;
10728      esac
10729  else
10730    shlibpath_overrides_runpath=yes
10731  fi
10732  ;;
10733
10734os2*)
10735  libname_spec='$name'
10736  shrext_cmds=".dll"
10737  need_lib_prefix=no
10738  library_names_spec='$libname${shared_ext} $libname.a'
10739  dynamic_linker='OS/2 ld.exe'
10740  shlibpath_var=LIBPATH
10741  ;;
10742
10743osf3* | osf4* | osf5*)
10744  version_type=osf
10745  need_lib_prefix=no
10746  need_version=no
10747  soname_spec='${libname}${release}${shared_ext}$major'
10748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749  shlibpath_var=LD_LIBRARY_PATH
10750  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10751  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10752  ;;
10753
10754rdos*)
10755  dynamic_linker=no
10756  ;;
10757
10758solaris*)
10759  version_type=linux
10760  need_lib_prefix=no
10761  need_version=no
10762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10763  soname_spec='${libname}${release}${shared_ext}$major'
10764  shlibpath_var=LD_LIBRARY_PATH
10765  shlibpath_overrides_runpath=yes
10766  hardcode_into_libs=yes
10767  # ldd complains unless libraries are executable
10768  postinstall_cmds='chmod +x $lib'
10769  ;;
10770
10771sunos4*)
10772  version_type=sunos
10773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10774  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10775  shlibpath_var=LD_LIBRARY_PATH
10776  shlibpath_overrides_runpath=yes
10777  if test "$with_gnu_ld" = yes; then
10778    need_lib_prefix=no
10779  fi
10780  need_version=yes
10781  ;;
10782
10783sysv4 | sysv4.3*)
10784  version_type=linux
10785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786  soname_spec='${libname}${release}${shared_ext}$major'
10787  shlibpath_var=LD_LIBRARY_PATH
10788  case $host_vendor in
10789    sni)
10790      shlibpath_overrides_runpath=no
10791      need_lib_prefix=no
10792      runpath_var=LD_RUN_PATH
10793      ;;
10794    siemens)
10795      need_lib_prefix=no
10796      ;;
10797    motorola)
10798      need_lib_prefix=no
10799      need_version=no
10800      shlibpath_overrides_runpath=no
10801      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10802      ;;
10803  esac
10804  ;;
10805
10806sysv4*MP*)
10807  if test -d /usr/nec ;then
10808    version_type=linux
10809    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10810    soname_spec='$libname${shared_ext}.$major'
10811    shlibpath_var=LD_LIBRARY_PATH
10812  fi
10813  ;;
10814
10815sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10816  version_type=freebsd-elf
10817  need_lib_prefix=no
10818  need_version=no
10819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10820  soname_spec='${libname}${release}${shared_ext}$major'
10821  shlibpath_var=LD_LIBRARY_PATH
10822  shlibpath_overrides_runpath=yes
10823  hardcode_into_libs=yes
10824  if test "$with_gnu_ld" = yes; then
10825    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10826  else
10827    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10828    case $host_os in
10829      sco3.2v5*)
10830        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10831	;;
10832    esac
10833  fi
10834  sys_lib_dlsearch_path_spec='/usr/lib'
10835  ;;
10836
10837tpf*)
10838  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10839  version_type=linux
10840  need_lib_prefix=no
10841  need_version=no
10842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843  shlibpath_var=LD_LIBRARY_PATH
10844  shlibpath_overrides_runpath=no
10845  hardcode_into_libs=yes
10846  ;;
10847
10848uts4*)
10849  version_type=linux
10850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851  soname_spec='${libname}${release}${shared_ext}$major'
10852  shlibpath_var=LD_LIBRARY_PATH
10853  ;;
10854
10855*)
10856  dynamic_linker=no
10857  ;;
10858esac
10859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10860$as_echo "$dynamic_linker" >&6; }
10861test "$dynamic_linker" = no && can_build_shared=no
10862
10863variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10864if test "$GCC" = yes; then
10865  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10866fi
10867
10868if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10869  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10870fi
10871if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10872  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10873fi
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10967$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10968hardcode_action=
10969if test -n "$hardcode_libdir_flag_spec" ||
10970   test -n "$runpath_var" ||
10971   test "X$hardcode_automatic" = "Xyes" ; then
10972
10973  # We can hardcode non-existent directories.
10974  if test "$hardcode_direct" != no &&
10975     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10976     # have to relink, otherwise we might link with an installed library
10977     # when we should be linking with a yet-to-be-installed one
10978     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10979     test "$hardcode_minus_L" != no; then
10980    # Linking always hardcodes the temporary library directory.
10981    hardcode_action=relink
10982  else
10983    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10984    hardcode_action=immediate
10985  fi
10986else
10987  # We cannot hardcode anything, or else we can only hardcode existing
10988  # directories.
10989  hardcode_action=unsupported
10990fi
10991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10992$as_echo "$hardcode_action" >&6; }
10993
10994if test "$hardcode_action" = relink ||
10995   test "$inherit_rpath" = yes; then
10996  # Fast installation is not supported
10997  enable_fast_install=no
10998elif test "$shlibpath_overrides_runpath" = yes ||
10999     test "$enable_shared" = no; then
11000  # Fast installation is not necessary
11001  enable_fast_install=needless
11002fi
11003
11004
11005
11006
11007
11008
11009  if test "x$enable_dlopen" != xyes; then
11010  enable_dlopen=unknown
11011  enable_dlopen_self=unknown
11012  enable_dlopen_self_static=unknown
11013else
11014  lt_cv_dlopen=no
11015  lt_cv_dlopen_libs=
11016
11017  case $host_os in
11018  beos*)
11019    lt_cv_dlopen="load_add_on"
11020    lt_cv_dlopen_libs=
11021    lt_cv_dlopen_self=yes
11022    ;;
11023
11024  mingw* | pw32* | cegcc*)
11025    lt_cv_dlopen="LoadLibrary"
11026    lt_cv_dlopen_libs=
11027    ;;
11028
11029  cygwin*)
11030    lt_cv_dlopen="dlopen"
11031    lt_cv_dlopen_libs=
11032    ;;
11033
11034  darwin*)
11035  # if libdl is installed we need to link against it
11036    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11037$as_echo_n "checking for dlopen in -ldl... " >&6; }
11038if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11039  $as_echo_n "(cached) " >&6
11040else
11041  ac_check_lib_save_LIBS=$LIBS
11042LIBS="-ldl  $LIBS"
11043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044/* end confdefs.h.  */
11045
11046/* Override any GCC internal prototype to avoid an error.
11047   Use char because int might match the return type of a GCC
11048   builtin and then its argument prototype would still apply.  */
11049#ifdef __cplusplus
11050extern "C"
11051#endif
11052char dlopen ();
11053int
11054main ()
11055{
11056return dlopen ();
11057  ;
11058  return 0;
11059}
11060_ACEOF
11061if ac_fn_c_try_link "$LINENO"; then :
11062  ac_cv_lib_dl_dlopen=yes
11063else
11064  ac_cv_lib_dl_dlopen=no
11065fi
11066rm -f core conftest.err conftest.$ac_objext \
11067    conftest$ac_exeext conftest.$ac_ext
11068LIBS=$ac_check_lib_save_LIBS
11069fi
11070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11071$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11072if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11073  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11074else
11075
11076    lt_cv_dlopen="dyld"
11077    lt_cv_dlopen_libs=
11078    lt_cv_dlopen_self=yes
11079
11080fi
11081
11082    ;;
11083
11084  *)
11085    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11086if test "x$ac_cv_func_shl_load" = x""yes; then :
11087  lt_cv_dlopen="shl_load"
11088else
11089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11090$as_echo_n "checking for shl_load in -ldld... " >&6; }
11091if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11092  $as_echo_n "(cached) " >&6
11093else
11094  ac_check_lib_save_LIBS=$LIBS
11095LIBS="-ldld  $LIBS"
11096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097/* end confdefs.h.  */
11098
11099/* Override any GCC internal prototype to avoid an error.
11100   Use char because int might match the return type of a GCC
11101   builtin and then its argument prototype would still apply.  */
11102#ifdef __cplusplus
11103extern "C"
11104#endif
11105char shl_load ();
11106int
11107main ()
11108{
11109return shl_load ();
11110  ;
11111  return 0;
11112}
11113_ACEOF
11114if ac_fn_c_try_link "$LINENO"; then :
11115  ac_cv_lib_dld_shl_load=yes
11116else
11117  ac_cv_lib_dld_shl_load=no
11118fi
11119rm -f core conftest.err conftest.$ac_objext \
11120    conftest$ac_exeext conftest.$ac_ext
11121LIBS=$ac_check_lib_save_LIBS
11122fi
11123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11124$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11125if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11126  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11127else
11128  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11129if test "x$ac_cv_func_dlopen" = x""yes; then :
11130  lt_cv_dlopen="dlopen"
11131else
11132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11133$as_echo_n "checking for dlopen in -ldl... " >&6; }
11134if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11135  $as_echo_n "(cached) " >&6
11136else
11137  ac_check_lib_save_LIBS=$LIBS
11138LIBS="-ldl  $LIBS"
11139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140/* end confdefs.h.  */
11141
11142/* Override any GCC internal prototype to avoid an error.
11143   Use char because int might match the return type of a GCC
11144   builtin and then its argument prototype would still apply.  */
11145#ifdef __cplusplus
11146extern "C"
11147#endif
11148char dlopen ();
11149int
11150main ()
11151{
11152return dlopen ();
11153  ;
11154  return 0;
11155}
11156_ACEOF
11157if ac_fn_c_try_link "$LINENO"; then :
11158  ac_cv_lib_dl_dlopen=yes
11159else
11160  ac_cv_lib_dl_dlopen=no
11161fi
11162rm -f core conftest.err conftest.$ac_objext \
11163    conftest$ac_exeext conftest.$ac_ext
11164LIBS=$ac_check_lib_save_LIBS
11165fi
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11167$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11168if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11169  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11170else
11171  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11172$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11173if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11174  $as_echo_n "(cached) " >&6
11175else
11176  ac_check_lib_save_LIBS=$LIBS
11177LIBS="-lsvld  $LIBS"
11178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179/* end confdefs.h.  */
11180
11181/* Override any GCC internal prototype to avoid an error.
11182   Use char because int might match the return type of a GCC
11183   builtin and then its argument prototype would still apply.  */
11184#ifdef __cplusplus
11185extern "C"
11186#endif
11187char dlopen ();
11188int
11189main ()
11190{
11191return dlopen ();
11192  ;
11193  return 0;
11194}
11195_ACEOF
11196if ac_fn_c_try_link "$LINENO"; then :
11197  ac_cv_lib_svld_dlopen=yes
11198else
11199  ac_cv_lib_svld_dlopen=no
11200fi
11201rm -f core conftest.err conftest.$ac_objext \
11202    conftest$ac_exeext conftest.$ac_ext
11203LIBS=$ac_check_lib_save_LIBS
11204fi
11205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11206$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11207if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11208  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11209else
11210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11211$as_echo_n "checking for dld_link in -ldld... " >&6; }
11212if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11213  $as_echo_n "(cached) " >&6
11214else
11215  ac_check_lib_save_LIBS=$LIBS
11216LIBS="-ldld  $LIBS"
11217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218/* end confdefs.h.  */
11219
11220/* Override any GCC internal prototype to avoid an error.
11221   Use char because int might match the return type of a GCC
11222   builtin and then its argument prototype would still apply.  */
11223#ifdef __cplusplus
11224extern "C"
11225#endif
11226char dld_link ();
11227int
11228main ()
11229{
11230return dld_link ();
11231  ;
11232  return 0;
11233}
11234_ACEOF
11235if ac_fn_c_try_link "$LINENO"; then :
11236  ac_cv_lib_dld_dld_link=yes
11237else
11238  ac_cv_lib_dld_dld_link=no
11239fi
11240rm -f core conftest.err conftest.$ac_objext \
11241    conftest$ac_exeext conftest.$ac_ext
11242LIBS=$ac_check_lib_save_LIBS
11243fi
11244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11245$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11246if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11247  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11248fi
11249
11250
11251fi
11252
11253
11254fi
11255
11256
11257fi
11258
11259
11260fi
11261
11262
11263fi
11264
11265    ;;
11266  esac
11267
11268  if test "x$lt_cv_dlopen" != xno; then
11269    enable_dlopen=yes
11270  else
11271    enable_dlopen=no
11272  fi
11273
11274  case $lt_cv_dlopen in
11275  dlopen)
11276    save_CPPFLAGS="$CPPFLAGS"
11277    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11278
11279    save_LDFLAGS="$LDFLAGS"
11280    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11281
11282    save_LIBS="$LIBS"
11283    LIBS="$lt_cv_dlopen_libs $LIBS"
11284
11285    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11286$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11287if test "${lt_cv_dlopen_self+set}" = set; then :
11288  $as_echo_n "(cached) " >&6
11289else
11290  	  if test "$cross_compiling" = yes; then :
11291  lt_cv_dlopen_self=cross
11292else
11293  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11294  lt_status=$lt_dlunknown
11295  cat > conftest.$ac_ext <<_LT_EOF
11296#line $LINENO "configure"
11297#include "confdefs.h"
11298
11299#if HAVE_DLFCN_H
11300#include <dlfcn.h>
11301#endif
11302
11303#include <stdio.h>
11304
11305#ifdef RTLD_GLOBAL
11306#  define LT_DLGLOBAL		RTLD_GLOBAL
11307#else
11308#  ifdef DL_GLOBAL
11309#    define LT_DLGLOBAL		DL_GLOBAL
11310#  else
11311#    define LT_DLGLOBAL		0
11312#  endif
11313#endif
11314
11315/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11316   find out it does not work in some platform. */
11317#ifndef LT_DLLAZY_OR_NOW
11318#  ifdef RTLD_LAZY
11319#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11320#  else
11321#    ifdef DL_LAZY
11322#      define LT_DLLAZY_OR_NOW		DL_LAZY
11323#    else
11324#      ifdef RTLD_NOW
11325#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11326#      else
11327#        ifdef DL_NOW
11328#          define LT_DLLAZY_OR_NOW	DL_NOW
11329#        else
11330#          define LT_DLLAZY_OR_NOW	0
11331#        endif
11332#      endif
11333#    endif
11334#  endif
11335#endif
11336
11337/* When -fvisbility=hidden is used, assume the code has been annotated
11338   correspondingly for the symbols needed.  */
11339#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11340void fnord () __attribute__((visibility("default")));
11341#endif
11342
11343void fnord () { int i=42; }
11344int main ()
11345{
11346  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11347  int status = $lt_dlunknown;
11348
11349  if (self)
11350    {
11351      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11352      else
11353        {
11354	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11355          else puts (dlerror ());
11356	}
11357      /* dlclose (self); */
11358    }
11359  else
11360    puts (dlerror ());
11361
11362  return status;
11363}
11364_LT_EOF
11365  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11366  (eval $ac_link) 2>&5
11367  ac_status=$?
11368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11369  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11370    (./conftest; exit; ) >&5 2>/dev/null
11371    lt_status=$?
11372    case x$lt_status in
11373      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11374      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11375      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11376    esac
11377  else :
11378    # compilation failed
11379    lt_cv_dlopen_self=no
11380  fi
11381fi
11382rm -fr conftest*
11383
11384
11385fi
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11387$as_echo "$lt_cv_dlopen_self" >&6; }
11388
11389    if test "x$lt_cv_dlopen_self" = xyes; then
11390      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11391      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11392$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11393if test "${lt_cv_dlopen_self_static+set}" = set; then :
11394  $as_echo_n "(cached) " >&6
11395else
11396  	  if test "$cross_compiling" = yes; then :
11397  lt_cv_dlopen_self_static=cross
11398else
11399  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11400  lt_status=$lt_dlunknown
11401  cat > conftest.$ac_ext <<_LT_EOF
11402#line $LINENO "configure"
11403#include "confdefs.h"
11404
11405#if HAVE_DLFCN_H
11406#include <dlfcn.h>
11407#endif
11408
11409#include <stdio.h>
11410
11411#ifdef RTLD_GLOBAL
11412#  define LT_DLGLOBAL		RTLD_GLOBAL
11413#else
11414#  ifdef DL_GLOBAL
11415#    define LT_DLGLOBAL		DL_GLOBAL
11416#  else
11417#    define LT_DLGLOBAL		0
11418#  endif
11419#endif
11420
11421/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11422   find out it does not work in some platform. */
11423#ifndef LT_DLLAZY_OR_NOW
11424#  ifdef RTLD_LAZY
11425#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11426#  else
11427#    ifdef DL_LAZY
11428#      define LT_DLLAZY_OR_NOW		DL_LAZY
11429#    else
11430#      ifdef RTLD_NOW
11431#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11432#      else
11433#        ifdef DL_NOW
11434#          define LT_DLLAZY_OR_NOW	DL_NOW
11435#        else
11436#          define LT_DLLAZY_OR_NOW	0
11437#        endif
11438#      endif
11439#    endif
11440#  endif
11441#endif
11442
11443/* When -fvisbility=hidden is used, assume the code has been annotated
11444   correspondingly for the symbols needed.  */
11445#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11446void fnord () __attribute__((visibility("default")));
11447#endif
11448
11449void fnord () { int i=42; }
11450int main ()
11451{
11452  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11453  int status = $lt_dlunknown;
11454
11455  if (self)
11456    {
11457      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11458      else
11459        {
11460	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11461          else puts (dlerror ());
11462	}
11463      /* dlclose (self); */
11464    }
11465  else
11466    puts (dlerror ());
11467
11468  return status;
11469}
11470_LT_EOF
11471  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11472  (eval $ac_link) 2>&5
11473  ac_status=$?
11474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11475  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11476    (./conftest; exit; ) >&5 2>/dev/null
11477    lt_status=$?
11478    case x$lt_status in
11479      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11480      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11481      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11482    esac
11483  else :
11484    # compilation failed
11485    lt_cv_dlopen_self_static=no
11486  fi
11487fi
11488rm -fr conftest*
11489
11490
11491fi
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11493$as_echo "$lt_cv_dlopen_self_static" >&6; }
11494    fi
11495
11496    CPPFLAGS="$save_CPPFLAGS"
11497    LDFLAGS="$save_LDFLAGS"
11498    LIBS="$save_LIBS"
11499    ;;
11500  esac
11501
11502  case $lt_cv_dlopen_self in
11503  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11504  *) enable_dlopen_self=unknown ;;
11505  esac
11506
11507  case $lt_cv_dlopen_self_static in
11508  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11509  *) enable_dlopen_self_static=unknown ;;
11510  esac
11511fi
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529striplib=
11530old_striplib=
11531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11532$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11533if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11534  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11535  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11537$as_echo "yes" >&6; }
11538else
11539# FIXME - insert some real tests, host_os isn't really good enough
11540  case $host_os in
11541  darwin*)
11542    if test -n "$STRIP" ; then
11543      striplib="$STRIP -x"
11544      old_striplib="$STRIP -S"
11545      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11546$as_echo "yes" >&6; }
11547    else
11548      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549$as_echo "no" >&6; }
11550    fi
11551    ;;
11552  *)
11553    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554$as_echo "no" >&6; }
11555    ;;
11556  esac
11557fi
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570  # Report which library types will actually be built
11571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11572$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11574$as_echo "$can_build_shared" >&6; }
11575
11576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11577$as_echo_n "checking whether to build shared libraries... " >&6; }
11578  test "$can_build_shared" = "no" && enable_shared=no
11579
11580  # On AIX, shared libraries and static libraries use the same namespace, and
11581  # are all built from PIC.
11582  case $host_os in
11583  aix3*)
11584    test "$enable_shared" = yes && enable_static=no
11585    if test -n "$RANLIB"; then
11586      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11587      postinstall_cmds='$RANLIB $lib'
11588    fi
11589    ;;
11590
11591  aix[4-9]*)
11592    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11593      test "$enable_shared" = yes && enable_static=no
11594    fi
11595    ;;
11596  esac
11597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11598$as_echo "$enable_shared" >&6; }
11599
11600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11601$as_echo_n "checking whether to build static libraries... " >&6; }
11602  # Make sure either enable_shared or enable_static is yes.
11603  test "$enable_shared" = yes || enable_static=yes
11604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11605$as_echo "$enable_static" >&6; }
11606
11607
11608
11609
11610fi
11611ac_ext=c
11612ac_cpp='$CPP $CPPFLAGS'
11613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11615ac_compiler_gnu=$ac_cv_c_compiler_gnu
11616
11617CC="$lt_save_CC"
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631        ac_config_commands="$ac_config_commands libtool"
11632
11633
11634
11635
11636# Only expand once:
11637
11638
11639
11640ac_ext=cpp
11641ac_cpp='$CXXCPP $CPPFLAGS'
11642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11645if test -z "$CXX"; then
11646  if test -n "$CCC"; then
11647    CXX=$CCC
11648  else
11649    if test -n "$ac_tool_prefix"; then
11650  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11651  do
11652    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655$as_echo_n "checking for $ac_word... " >&6; }
11656if test "${ac_cv_prog_CXX+set}" = set; then :
11657  $as_echo_n "(cached) " >&6
11658else
11659  if test -n "$CXX"; then
11660  ac_cv_prog_CXX="$CXX" # Let the user override the test.
11661else
11662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663for as_dir in $PATH
11664do
11665  IFS=$as_save_IFS
11666  test -z "$as_dir" && as_dir=.
11667    for ac_exec_ext in '' $ac_executable_extensions; do
11668  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11669    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11671    break 2
11672  fi
11673done
11674  done
11675IFS=$as_save_IFS
11676
11677fi
11678fi
11679CXX=$ac_cv_prog_CXX
11680if test -n "$CXX"; then
11681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11682$as_echo "$CXX" >&6; }
11683else
11684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685$as_echo "no" >&6; }
11686fi
11687
11688
11689    test -n "$CXX" && break
11690  done
11691fi
11692if test -z "$CXX"; then
11693  ac_ct_CXX=$CXX
11694  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11695do
11696  # Extract the first word of "$ac_prog", so it can be a program name with args.
11697set dummy $ac_prog; ac_word=$2
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699$as_echo_n "checking for $ac_word... " >&6; }
11700if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11701  $as_echo_n "(cached) " >&6
11702else
11703  if test -n "$ac_ct_CXX"; then
11704  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11705else
11706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707for as_dir in $PATH
11708do
11709  IFS=$as_save_IFS
11710  test -z "$as_dir" && as_dir=.
11711    for ac_exec_ext in '' $ac_executable_extensions; do
11712  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11713    ac_cv_prog_ac_ct_CXX="$ac_prog"
11714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11715    break 2
11716  fi
11717done
11718  done
11719IFS=$as_save_IFS
11720
11721fi
11722fi
11723ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11724if test -n "$ac_ct_CXX"; then
11725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11726$as_echo "$ac_ct_CXX" >&6; }
11727else
11728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729$as_echo "no" >&6; }
11730fi
11731
11732
11733  test -n "$ac_ct_CXX" && break
11734done
11735
11736  if test "x$ac_ct_CXX" = x; then
11737    CXX="g++"
11738  else
11739    case $cross_compiling:$ac_tool_warned in
11740yes:)
11741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11743ac_tool_warned=yes ;;
11744esac
11745    CXX=$ac_ct_CXX
11746  fi
11747fi
11748
11749  fi
11750fi
11751# Provide some information about the compiler.
11752$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11753set X $ac_compile
11754ac_compiler=$2
11755for ac_option in --version -v -V -qversion; do
11756  { { ac_try="$ac_compiler $ac_option >&5"
11757case "(($ac_try" in
11758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759  *) ac_try_echo=$ac_try;;
11760esac
11761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11762$as_echo "$ac_try_echo"; } >&5
11763  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11764  ac_status=$?
11765  if test -s conftest.err; then
11766    sed '10a\
11767... rest of stderr output deleted ...
11768         10q' conftest.err >conftest.er1
11769    cat conftest.er1 >&5
11770  fi
11771  rm -f conftest.er1 conftest.err
11772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11773  test $ac_status = 0; }
11774done
11775
11776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11777$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11778if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11779  $as_echo_n "(cached) " >&6
11780else
11781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782/* end confdefs.h.  */
11783
11784int
11785main ()
11786{
11787#ifndef __GNUC__
11788       choke me
11789#endif
11790
11791  ;
11792  return 0;
11793}
11794_ACEOF
11795if ac_fn_cxx_try_compile "$LINENO"; then :
11796  ac_compiler_gnu=yes
11797else
11798  ac_compiler_gnu=no
11799fi
11800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11801ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11802
11803fi
11804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11805$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11806if test $ac_compiler_gnu = yes; then
11807  GXX=yes
11808else
11809  GXX=
11810fi
11811ac_test_CXXFLAGS=${CXXFLAGS+set}
11812ac_save_CXXFLAGS=$CXXFLAGS
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11814$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11815if test "${ac_cv_prog_cxx_g+set}" = set; then :
11816  $as_echo_n "(cached) " >&6
11817else
11818  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11819   ac_cxx_werror_flag=yes
11820   ac_cv_prog_cxx_g=no
11821   CXXFLAGS="-g"
11822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823/* end confdefs.h.  */
11824
11825int
11826main ()
11827{
11828
11829  ;
11830  return 0;
11831}
11832_ACEOF
11833if ac_fn_cxx_try_compile "$LINENO"; then :
11834  ac_cv_prog_cxx_g=yes
11835else
11836  CXXFLAGS=""
11837      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838/* end confdefs.h.  */
11839
11840int
11841main ()
11842{
11843
11844  ;
11845  return 0;
11846}
11847_ACEOF
11848if ac_fn_cxx_try_compile "$LINENO"; then :
11849
11850else
11851  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11852	 CXXFLAGS="-g"
11853	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11854/* end confdefs.h.  */
11855
11856int
11857main ()
11858{
11859
11860  ;
11861  return 0;
11862}
11863_ACEOF
11864if ac_fn_cxx_try_compile "$LINENO"; then :
11865  ac_cv_prog_cxx_g=yes
11866fi
11867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11868fi
11869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870fi
11871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11872   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11873fi
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11875$as_echo "$ac_cv_prog_cxx_g" >&6; }
11876if test "$ac_test_CXXFLAGS" = set; then
11877  CXXFLAGS=$ac_save_CXXFLAGS
11878elif test $ac_cv_prog_cxx_g = yes; then
11879  if test "$GXX" = yes; then
11880    CXXFLAGS="-g -O2"
11881  else
11882    CXXFLAGS="-g"
11883  fi
11884else
11885  if test "$GXX" = yes; then
11886    CXXFLAGS="-O2"
11887  else
11888    CXXFLAGS=
11889  fi
11890fi
11891ac_ext=c
11892ac_cpp='$CPP $CPPFLAGS'
11893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11895ac_compiler_gnu=$ac_cv_c_compiler_gnu
11896
11897depcc="$CXX"  am_compiler_list=
11898
11899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11900$as_echo_n "checking dependency style of $depcc... " >&6; }
11901if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11902  $as_echo_n "(cached) " >&6
11903else
11904  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11905  # We make a subdir and do the tests there.  Otherwise we can end up
11906  # making bogus files that we don't know about and never remove.  For
11907  # instance it was reported that on HP-UX the gcc test will end up
11908  # making a dummy file named `D' -- because `-MD' means `put the output
11909  # in D'.
11910  mkdir conftest.dir
11911  # Copy depcomp to subdir because otherwise we won't find it if we're
11912  # using a relative directory.
11913  cp "$am_depcomp" conftest.dir
11914  cd conftest.dir
11915  # We will build objects and dependencies in a subdirectory because
11916  # it helps to detect inapplicable dependency modes.  For instance
11917  # both Tru64's cc and ICC support -MD to output dependencies as a
11918  # side effect of compilation, but ICC will put the dependencies in
11919  # the current directory while Tru64 will put them in the object
11920  # directory.
11921  mkdir sub
11922
11923  am_cv_CXX_dependencies_compiler_type=none
11924  if test "$am_compiler_list" = ""; then
11925     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11926  fi
11927  am__universal=false
11928  case " $depcc " in #(
11929     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11930     esac
11931
11932  for depmode in $am_compiler_list; do
11933    # Setup a source with many dependencies, because some compilers
11934    # like to wrap large dependency lists on column 80 (with \), and
11935    # we should not choose a depcomp mode which is confused by this.
11936    #
11937    # We need to recreate these files for each test, as the compiler may
11938    # overwrite some of them when testing with obscure command lines.
11939    # This happens at least with the AIX C compiler.
11940    : > sub/conftest.c
11941    for i in 1 2 3 4 5 6; do
11942      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11943      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11944      # Solaris 8's {/usr,}/bin/sh.
11945      touch sub/conftst$i.h
11946    done
11947    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11948
11949    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11950    # mode.  It turns out that the SunPro C++ compiler does not properly
11951    # handle `-M -o', and we need to detect this.  Also, some Intel
11952    # versions had trouble with output in subdirs
11953    am__obj=sub/conftest.${OBJEXT-o}
11954    am__minus_obj="-o $am__obj"
11955    case $depmode in
11956    gcc)
11957      # This depmode causes a compiler race in universal mode.
11958      test "$am__universal" = false || continue
11959      ;;
11960    nosideeffect)
11961      # after this tag, mechanisms are not by side-effect, so they'll
11962      # only be used when explicitly requested
11963      if test "x$enable_dependency_tracking" = xyes; then
11964	continue
11965      else
11966	break
11967      fi
11968      ;;
11969    msvisualcpp | msvcmsys)
11970      # This compiler won't grok `-c -o', but also, the minuso test has
11971      # not run yet.  These depmodes are late enough in the game, and
11972      # so weak that their functioning should not be impacted.
11973      am__obj=conftest.${OBJEXT-o}
11974      am__minus_obj=
11975      ;;
11976    none) break ;;
11977    esac
11978    if depmode=$depmode \
11979       source=sub/conftest.c object=$am__obj \
11980       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11981       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11982         >/dev/null 2>conftest.err &&
11983       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11984       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11985       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11986       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11987      # icc doesn't choke on unknown options, it will just issue warnings
11988      # or remarks (even with -Werror).  So we grep stderr for any message
11989      # that says an option was ignored or not supported.
11990      # When given -MP, icc 7.0 and 7.1 complain thusly:
11991      #   icc: Command line warning: ignoring option '-M'; no argument required
11992      # The diagnosis changed in icc 8.0:
11993      #   icc: Command line remark: option '-MP' not supported
11994      if (grep 'ignoring option' conftest.err ||
11995          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11996        am_cv_CXX_dependencies_compiler_type=$depmode
11997        break
11998      fi
11999    fi
12000  done
12001
12002  cd ..
12003  rm -rf conftest.dir
12004else
12005  am_cv_CXX_dependencies_compiler_type=none
12006fi
12007
12008fi
12009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12010$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12011CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12012
12013 if
12014  test "x$enable_dependency_tracking" != xno \
12015  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12016  am__fastdepCXX_TRUE=
12017  am__fastdepCXX_FALSE='#'
12018else
12019  am__fastdepCXX_TRUE='#'
12020  am__fastdepCXX_FALSE=
12021fi
12022
12023
12024      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12025    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12026    (test "X$CXX" != "Xg++"))) ; then
12027  ac_ext=cpp
12028ac_cpp='$CXXCPP $CPPFLAGS'
12029ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12030ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12031ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12033$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12034if test -z "$CXXCPP"; then
12035  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12036  $as_echo_n "(cached) " >&6
12037else
12038      # Double quotes because CXXCPP needs to be expanded
12039    for CXXCPP in "$CXX -E" "/lib/cpp"
12040    do
12041      ac_preproc_ok=false
12042for ac_cxx_preproc_warn_flag in '' yes
12043do
12044  # Use a header file that comes with gcc, so configuring glibc
12045  # with a fresh cross-compiler works.
12046  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12047  # <limits.h> exists even on freestanding compilers.
12048  # On the NeXT, cc -E runs the code through the compiler's parser,
12049  # not just through cpp. "Syntax error" is here to catch this case.
12050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051/* end confdefs.h.  */
12052#ifdef __STDC__
12053# include <limits.h>
12054#else
12055# include <assert.h>
12056#endif
12057		     Syntax error
12058_ACEOF
12059if ac_fn_cxx_try_cpp "$LINENO"; then :
12060
12061else
12062  # Broken: fails on valid input.
12063continue
12064fi
12065rm -f conftest.err conftest.$ac_ext
12066
12067  # OK, works on sane cases.  Now check whether nonexistent headers
12068  # can be detected and how.
12069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070/* end confdefs.h.  */
12071#include <ac_nonexistent.h>
12072_ACEOF
12073if ac_fn_cxx_try_cpp "$LINENO"; then :
12074  # Broken: success on invalid input.
12075continue
12076else
12077  # Passes both tests.
12078ac_preproc_ok=:
12079break
12080fi
12081rm -f conftest.err conftest.$ac_ext
12082
12083done
12084# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12085rm -f conftest.err conftest.$ac_ext
12086if $ac_preproc_ok; then :
12087  break
12088fi
12089
12090    done
12091    ac_cv_prog_CXXCPP=$CXXCPP
12092
12093fi
12094  CXXCPP=$ac_cv_prog_CXXCPP
12095else
12096  ac_cv_prog_CXXCPP=$CXXCPP
12097fi
12098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12099$as_echo "$CXXCPP" >&6; }
12100ac_preproc_ok=false
12101for ac_cxx_preproc_warn_flag in '' yes
12102do
12103  # Use a header file that comes with gcc, so configuring glibc
12104  # with a fresh cross-compiler works.
12105  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12106  # <limits.h> exists even on freestanding compilers.
12107  # On the NeXT, cc -E runs the code through the compiler's parser,
12108  # not just through cpp. "Syntax error" is here to catch this case.
12109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110/* end confdefs.h.  */
12111#ifdef __STDC__
12112# include <limits.h>
12113#else
12114# include <assert.h>
12115#endif
12116		     Syntax error
12117_ACEOF
12118if ac_fn_cxx_try_cpp "$LINENO"; then :
12119
12120else
12121  # Broken: fails on valid input.
12122continue
12123fi
12124rm -f conftest.err conftest.$ac_ext
12125
12126  # OK, works on sane cases.  Now check whether nonexistent headers
12127  # can be detected and how.
12128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129/* end confdefs.h.  */
12130#include <ac_nonexistent.h>
12131_ACEOF
12132if ac_fn_cxx_try_cpp "$LINENO"; then :
12133  # Broken: success on invalid input.
12134continue
12135else
12136  # Passes both tests.
12137ac_preproc_ok=:
12138break
12139fi
12140rm -f conftest.err conftest.$ac_ext
12141
12142done
12143# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12144rm -f conftest.err conftest.$ac_ext
12145if $ac_preproc_ok; then :
12146
12147else
12148  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12150as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12151See \`config.log' for more details" "$LINENO" 5; }
12152fi
12153
12154ac_ext=c
12155ac_cpp='$CPP $CPPFLAGS'
12156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12158ac_compiler_gnu=$ac_cv_c_compiler_gnu
12159
12160else
12161  _lt_caught_CXX_error=yes
12162fi
12163
12164ac_ext=cpp
12165ac_cpp='$CXXCPP $CPPFLAGS'
12166ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12167ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12168ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12169
12170archive_cmds_need_lc_CXX=no
12171allow_undefined_flag_CXX=
12172always_export_symbols_CXX=no
12173archive_expsym_cmds_CXX=
12174compiler_needs_object_CXX=no
12175export_dynamic_flag_spec_CXX=
12176hardcode_direct_CXX=no
12177hardcode_direct_absolute_CXX=no
12178hardcode_libdir_flag_spec_CXX=
12179hardcode_libdir_flag_spec_ld_CXX=
12180hardcode_libdir_separator_CXX=
12181hardcode_minus_L_CXX=no
12182hardcode_shlibpath_var_CXX=unsupported
12183hardcode_automatic_CXX=no
12184inherit_rpath_CXX=no
12185module_cmds_CXX=
12186module_expsym_cmds_CXX=
12187link_all_deplibs_CXX=unknown
12188old_archive_cmds_CXX=$old_archive_cmds
12189reload_flag_CXX=$reload_flag
12190reload_cmds_CXX=$reload_cmds
12191no_undefined_flag_CXX=
12192whole_archive_flag_spec_CXX=
12193enable_shared_with_static_runtimes_CXX=no
12194
12195# Source file extension for C++ test sources.
12196ac_ext=cpp
12197
12198# Object file extension for compiled C++ test sources.
12199objext=o
12200objext_CXX=$objext
12201
12202# No sense in running all these tests if we already determined that
12203# the CXX compiler isn't working.  Some variables (like enable_shared)
12204# are currently assumed to apply to all compilers on this platform,
12205# and will be corrupted by setting them based on a non-working compiler.
12206if test "$_lt_caught_CXX_error" != yes; then
12207  # Code to be used in simple compile tests
12208  lt_simple_compile_test_code="int some_variable = 0;"
12209
12210  # Code to be used in simple link tests
12211  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12212
12213  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12214
12215
12216
12217
12218
12219
12220# If no C compiler was specified, use CC.
12221LTCC=${LTCC-"$CC"}
12222
12223# If no C compiler flags were specified, use CFLAGS.
12224LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12225
12226# Allow CC to be a program name with arguments.
12227compiler=$CC
12228
12229
12230  # save warnings/boilerplate of simple test code
12231  ac_outfile=conftest.$ac_objext
12232echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12233eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12234_lt_compiler_boilerplate=`cat conftest.err`
12235$RM conftest*
12236
12237  ac_outfile=conftest.$ac_objext
12238echo "$lt_simple_link_test_code" >conftest.$ac_ext
12239eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12240_lt_linker_boilerplate=`cat conftest.err`
12241$RM -r conftest*
12242
12243
12244  # Allow CC to be a program name with arguments.
12245  lt_save_CC=$CC
12246  lt_save_LD=$LD
12247  lt_save_GCC=$GCC
12248  GCC=$GXX
12249  lt_save_with_gnu_ld=$with_gnu_ld
12250  lt_save_path_LD=$lt_cv_path_LD
12251  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12252    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12253  else
12254    $as_unset lt_cv_prog_gnu_ld
12255  fi
12256  if test -n "${lt_cv_path_LDCXX+set}"; then
12257    lt_cv_path_LD=$lt_cv_path_LDCXX
12258  else
12259    $as_unset lt_cv_path_LD
12260  fi
12261  test -z "${LDCXX+set}" || LD=$LDCXX
12262  CC=${CXX-"c++"}
12263  compiler=$CC
12264  compiler_CXX=$CC
12265  for cc_temp in $compiler""; do
12266  case $cc_temp in
12267    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12268    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12269    \-*) ;;
12270    *) break;;
12271  esac
12272done
12273cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12274
12275
12276  if test -n "$compiler"; then
12277    # We don't want -fno-exception when compiling C++ code, so set the
12278    # no_builtin_flag separately
12279    if test "$GXX" = yes; then
12280      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12281    else
12282      lt_prog_compiler_no_builtin_flag_CXX=
12283    fi
12284
12285    if test "$GXX" = yes; then
12286      # Set up default GNU C++ configuration
12287
12288
12289
12290# Check whether --with-gnu-ld was given.
12291if test "${with_gnu_ld+set}" = set; then :
12292  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12293else
12294  with_gnu_ld=no
12295fi
12296
12297ac_prog=ld
12298if test "$GCC" = yes; then
12299  # Check if gcc -print-prog-name=ld gives a path.
12300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12301$as_echo_n "checking for ld used by $CC... " >&6; }
12302  case $host in
12303  *-*-mingw*)
12304    # gcc leaves a trailing carriage return which upsets mingw
12305    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12306  *)
12307    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12308  esac
12309  case $ac_prog in
12310    # Accept absolute paths.
12311    [\\/]* | ?:[\\/]*)
12312      re_direlt='/[^/][^/]*/\.\./'
12313      # Canonicalize the pathname of ld
12314      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12315      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12316	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12317      done
12318      test -z "$LD" && LD="$ac_prog"
12319      ;;
12320  "")
12321    # If it fails, then pretend we aren't using GCC.
12322    ac_prog=ld
12323    ;;
12324  *)
12325    # If it is relative, then search for the first ld in PATH.
12326    with_gnu_ld=unknown
12327    ;;
12328  esac
12329elif test "$with_gnu_ld" = yes; then
12330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12331$as_echo_n "checking for GNU ld... " >&6; }
12332else
12333  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12334$as_echo_n "checking for non-GNU ld... " >&6; }
12335fi
12336if test "${lt_cv_path_LD+set}" = set; then :
12337  $as_echo_n "(cached) " >&6
12338else
12339  if test -z "$LD"; then
12340  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12341  for ac_dir in $PATH; do
12342    IFS="$lt_save_ifs"
12343    test -z "$ac_dir" && ac_dir=.
12344    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12345      lt_cv_path_LD="$ac_dir/$ac_prog"
12346      # Check to see if the program is GNU ld.  I'd rather use --version,
12347      # but apparently some variants of GNU ld only accept -v.
12348      # Break only if it was the GNU/non-GNU ld that we prefer.
12349      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12350      *GNU* | *'with BFD'*)
12351	test "$with_gnu_ld" != no && break
12352	;;
12353      *)
12354	test "$with_gnu_ld" != yes && break
12355	;;
12356      esac
12357    fi
12358  done
12359  IFS="$lt_save_ifs"
12360else
12361  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12362fi
12363fi
12364
12365LD="$lt_cv_path_LD"
12366if test -n "$LD"; then
12367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12368$as_echo "$LD" >&6; }
12369else
12370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371$as_echo "no" >&6; }
12372fi
12373test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12375$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12376if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12377  $as_echo_n "(cached) " >&6
12378else
12379  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12380case `$LD -v 2>&1 </dev/null` in
12381*GNU* | *'with BFD'*)
12382  lt_cv_prog_gnu_ld=yes
12383  ;;
12384*)
12385  lt_cv_prog_gnu_ld=no
12386  ;;
12387esac
12388fi
12389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12390$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12391with_gnu_ld=$lt_cv_prog_gnu_ld
12392
12393
12394
12395
12396
12397
12398
12399      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12400      # archiving commands below assume that GNU ld is being used.
12401      if test "$with_gnu_ld" = yes; then
12402        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12403        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12404
12405        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12406        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12407
12408        # If archive_cmds runs LD, not CC, wlarc should be empty
12409        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12410        #     investigate it a little bit more. (MM)
12411        wlarc='${wl}'
12412
12413        # ancient GNU ld didn't support --whole-archive et. al.
12414        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12415	  $GREP 'no-whole-archive' > /dev/null; then
12416          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12417        else
12418          whole_archive_flag_spec_CXX=
12419        fi
12420      else
12421        with_gnu_ld=no
12422        wlarc=
12423
12424        # A generic and very simple default shared library creation
12425        # command for GNU C++ for the case where it uses the native
12426        # linker, instead of GNU ld.  If possible, this setting should
12427        # overridden to take advantage of the native linker features on
12428        # the platform it is being used on.
12429        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12430      fi
12431
12432      # Commands to make compiler produce verbose output that lists
12433      # what "hidden" libraries, object files and flags are used when
12434      # linking a shared library.
12435      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12436
12437    else
12438      GXX=no
12439      with_gnu_ld=no
12440      wlarc=
12441    fi
12442
12443    # PORTME: fill in a description of your system's C++ link characteristics
12444    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12445$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12446    ld_shlibs_CXX=yes
12447    case $host_os in
12448      aix3*)
12449        # FIXME: insert proper C++ library support
12450        ld_shlibs_CXX=no
12451        ;;
12452      aix[4-9]*)
12453        if test "$host_cpu" = ia64; then
12454          # On IA64, the linker does run time linking by default, so we don't
12455          # have to do anything special.
12456          aix_use_runtimelinking=no
12457          exp_sym_flag='-Bexport'
12458          no_entry_flag=""
12459        else
12460          aix_use_runtimelinking=no
12461
12462          # Test if we are trying to use run time linking or normal
12463          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12464          # need to do runtime linking.
12465          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12466	    for ld_flag in $LDFLAGS; do
12467	      case $ld_flag in
12468	      *-brtl*)
12469	        aix_use_runtimelinking=yes
12470	        break
12471	        ;;
12472	      esac
12473	    done
12474	    ;;
12475          esac
12476
12477          exp_sym_flag='-bexport'
12478          no_entry_flag='-bnoentry'
12479        fi
12480
12481        # When large executables or shared objects are built, AIX ld can
12482        # have problems creating the table of contents.  If linking a library
12483        # or program results in "error TOC overflow" add -mminimal-toc to
12484        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12485        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12486
12487        archive_cmds_CXX=''
12488        hardcode_direct_CXX=yes
12489        hardcode_direct_absolute_CXX=yes
12490        hardcode_libdir_separator_CXX=':'
12491        link_all_deplibs_CXX=yes
12492        file_list_spec_CXX='${wl}-f,'
12493
12494        if test "$GXX" = yes; then
12495          case $host_os in aix4.[012]|aix4.[012].*)
12496          # We only want to do this on AIX 4.2 and lower, the check
12497          # below for broken collect2 doesn't work under 4.3+
12498	  collect2name=`${CC} -print-prog-name=collect2`
12499	  if test -f "$collect2name" &&
12500	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12501	  then
12502	    # We have reworked collect2
12503	    :
12504	  else
12505	    # We have old collect2
12506	    hardcode_direct_CXX=unsupported
12507	    # It fails to find uninstalled libraries when the uninstalled
12508	    # path is not listed in the libpath.  Setting hardcode_minus_L
12509	    # to unsupported forces relinking
12510	    hardcode_minus_L_CXX=yes
12511	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12512	    hardcode_libdir_separator_CXX=
12513	  fi
12514          esac
12515          shared_flag='-shared'
12516	  if test "$aix_use_runtimelinking" = yes; then
12517	    shared_flag="$shared_flag "'${wl}-G'
12518	  fi
12519        else
12520          # not using gcc
12521          if test "$host_cpu" = ia64; then
12522	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12523	  # chokes on -Wl,-G. The following line is correct:
12524	  shared_flag='-G'
12525          else
12526	    if test "$aix_use_runtimelinking" = yes; then
12527	      shared_flag='${wl}-G'
12528	    else
12529	      shared_flag='${wl}-bM:SRE'
12530	    fi
12531          fi
12532        fi
12533
12534        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12535        # It seems that -bexpall does not export symbols beginning with
12536        # underscore (_), so it is better to generate a list of symbols to
12537	# export.
12538        always_export_symbols_CXX=yes
12539        if test "$aix_use_runtimelinking" = yes; then
12540          # Warning - without using the other runtime loading flags (-brtl),
12541          # -berok will link without error, but may produce a broken library.
12542          allow_undefined_flag_CXX='-berok'
12543          # Determine the default libpath from the value encoded in an empty
12544          # executable.
12545          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546/* end confdefs.h.  */
12547
12548int
12549main ()
12550{
12551
12552  ;
12553  return 0;
12554}
12555_ACEOF
12556if ac_fn_cxx_try_link "$LINENO"; then :
12557
12558lt_aix_libpath_sed='
12559    /Import File Strings/,/^$/ {
12560	/^0/ {
12561	    s/^0  *\(.*\)$/\1/
12562	    p
12563	}
12564    }'
12565aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12566# Check for a 64-bit object if we didn't find anything.
12567if test -z "$aix_libpath"; then
12568  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12569fi
12570fi
12571rm -f core conftest.err conftest.$ac_objext \
12572    conftest$ac_exeext conftest.$ac_ext
12573if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12574
12575          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12576
12577          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12578        else
12579          if test "$host_cpu" = ia64; then
12580	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12581	    allow_undefined_flag_CXX="-z nodefs"
12582	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12583          else
12584	    # Determine the default libpath from the value encoded in an
12585	    # empty executable.
12586	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587/* end confdefs.h.  */
12588
12589int
12590main ()
12591{
12592
12593  ;
12594  return 0;
12595}
12596_ACEOF
12597if ac_fn_cxx_try_link "$LINENO"; then :
12598
12599lt_aix_libpath_sed='
12600    /Import File Strings/,/^$/ {
12601	/^0/ {
12602	    s/^0  *\(.*\)$/\1/
12603	    p
12604	}
12605    }'
12606aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12607# Check for a 64-bit object if we didn't find anything.
12608if test -z "$aix_libpath"; then
12609  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12610fi
12611fi
12612rm -f core conftest.err conftest.$ac_objext \
12613    conftest$ac_exeext conftest.$ac_ext
12614if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12615
12616	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12617	    # Warning - without using the other run time loading flags,
12618	    # -berok will link without error, but may produce a broken library.
12619	    no_undefined_flag_CXX=' ${wl}-bernotok'
12620	    allow_undefined_flag_CXX=' ${wl}-berok'
12621	    if test "$with_gnu_ld" = yes; then
12622	      # We only use this code for GNU lds that support --whole-archive.
12623	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12624	    else
12625	      # Exported symbols can be pulled into shared objects from archives
12626	      whole_archive_flag_spec_CXX='$convenience'
12627	    fi
12628	    archive_cmds_need_lc_CXX=yes
12629	    # This is similar to how AIX traditionally builds its shared
12630	    # libraries.
12631	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12632          fi
12633        fi
12634        ;;
12635
12636      beos*)
12637	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12638	  allow_undefined_flag_CXX=unsupported
12639	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12640	  # support --undefined.  This deserves some investigation.  FIXME
12641	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12642	else
12643	  ld_shlibs_CXX=no
12644	fi
12645	;;
12646
12647      chorus*)
12648        case $cc_basename in
12649          *)
12650	  # FIXME: insert proper C++ library support
12651	  ld_shlibs_CXX=no
12652	  ;;
12653        esac
12654        ;;
12655
12656      cygwin* | mingw* | pw32* | cegcc*)
12657        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12658        # as there is no search path for DLLs.
12659        hardcode_libdir_flag_spec_CXX='-L$libdir'
12660        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12661        allow_undefined_flag_CXX=unsupported
12662        always_export_symbols_CXX=no
12663        enable_shared_with_static_runtimes_CXX=yes
12664
12665        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12666          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12667          # If the export-symbols file already is a .def file (1st line
12668          # is EXPORTS), use it as is; otherwise, prepend...
12669          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12670	    cp $export_symbols $output_objdir/$soname.def;
12671          else
12672	    echo EXPORTS > $output_objdir/$soname.def;
12673	    cat $export_symbols >> $output_objdir/$soname.def;
12674          fi~
12675          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12676        else
12677          ld_shlibs_CXX=no
12678        fi
12679        ;;
12680      darwin* | rhapsody*)
12681
12682
12683  archive_cmds_need_lc_CXX=no
12684  hardcode_direct_CXX=no
12685  hardcode_automatic_CXX=yes
12686  hardcode_shlibpath_var_CXX=unsupported
12687  if test "$lt_cv_ld_force_load" = "yes"; then
12688    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12689  else
12690    whole_archive_flag_spec_CXX=''
12691  fi
12692  link_all_deplibs_CXX=yes
12693  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12694  case $cc_basename in
12695     ifort*) _lt_dar_can_shared=yes ;;
12696     *) _lt_dar_can_shared=$GCC ;;
12697  esac
12698  if test "$_lt_dar_can_shared" = "yes"; then
12699    output_verbose_link_cmd=func_echo_all
12700    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12701    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12702    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12703    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12704       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12705      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12706      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12707    fi
12708
12709  else
12710  ld_shlibs_CXX=no
12711  fi
12712
12713	;;
12714
12715      dgux*)
12716        case $cc_basename in
12717          ec++*)
12718	    # FIXME: insert proper C++ library support
12719	    ld_shlibs_CXX=no
12720	    ;;
12721          ghcx*)
12722	    # Green Hills C++ Compiler
12723	    # FIXME: insert proper C++ library support
12724	    ld_shlibs_CXX=no
12725	    ;;
12726          *)
12727	    # FIXME: insert proper C++ library support
12728	    ld_shlibs_CXX=no
12729	    ;;
12730        esac
12731        ;;
12732
12733      freebsd[12]*)
12734        # C++ shared libraries reported to be fairly broken before
12735	# switch to ELF
12736        ld_shlibs_CXX=no
12737        ;;
12738
12739      freebsd-elf*)
12740        archive_cmds_need_lc_CXX=no
12741        ;;
12742
12743      freebsd* | dragonfly*)
12744        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12745        # conventions
12746        ld_shlibs_CXX=yes
12747        ;;
12748
12749      gnu*)
12750        ;;
12751
12752      haiku*)
12753        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12754        link_all_deplibs_CXX=yes
12755        ;;
12756
12757      hpux9*)
12758        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12759        hardcode_libdir_separator_CXX=:
12760        export_dynamic_flag_spec_CXX='${wl}-E'
12761        hardcode_direct_CXX=yes
12762        hardcode_minus_L_CXX=yes # Not in the search PATH,
12763				             # but as the default
12764				             # location of the library.
12765
12766        case $cc_basename in
12767          CC*)
12768            # FIXME: insert proper C++ library support
12769            ld_shlibs_CXX=no
12770            ;;
12771          aCC*)
12772            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12773            # Commands to make compiler produce verbose output that lists
12774            # what "hidden" libraries, object files and flags are used when
12775            # linking a shared library.
12776            #
12777            # There doesn't appear to be a way to prevent this compiler from
12778            # explicitly linking system object files so we need to strip them
12779            # from the output so that they don't get included in the library
12780            # dependencies.
12781            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12782            ;;
12783          *)
12784            if test "$GXX" = yes; then
12785              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12786            else
12787              # FIXME: insert proper C++ library support
12788              ld_shlibs_CXX=no
12789            fi
12790            ;;
12791        esac
12792        ;;
12793
12794      hpux10*|hpux11*)
12795        if test $with_gnu_ld = no; then
12796	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12797	  hardcode_libdir_separator_CXX=:
12798
12799          case $host_cpu in
12800            hppa*64*|ia64*)
12801              ;;
12802            *)
12803	      export_dynamic_flag_spec_CXX='${wl}-E'
12804              ;;
12805          esac
12806        fi
12807        case $host_cpu in
12808          hppa*64*|ia64*)
12809            hardcode_direct_CXX=no
12810            hardcode_shlibpath_var_CXX=no
12811            ;;
12812          *)
12813            hardcode_direct_CXX=yes
12814            hardcode_direct_absolute_CXX=yes
12815            hardcode_minus_L_CXX=yes # Not in the search PATH,
12816					         # but as the default
12817					         # location of the library.
12818            ;;
12819        esac
12820
12821        case $cc_basename in
12822          CC*)
12823	    # FIXME: insert proper C++ library support
12824	    ld_shlibs_CXX=no
12825	    ;;
12826          aCC*)
12827	    case $host_cpu in
12828	      hppa*64*)
12829	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12830	        ;;
12831	      ia64*)
12832	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12833	        ;;
12834	      *)
12835	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12836	        ;;
12837	    esac
12838	    # Commands to make compiler produce verbose output that lists
12839	    # what "hidden" libraries, object files and flags are used when
12840	    # linking a shared library.
12841	    #
12842	    # There doesn't appear to be a way to prevent this compiler from
12843	    # explicitly linking system object files so we need to strip them
12844	    # from the output so that they don't get included in the library
12845	    # dependencies.
12846	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12847	    ;;
12848          *)
12849	    if test "$GXX" = yes; then
12850	      if test $with_gnu_ld = no; then
12851	        case $host_cpu in
12852	          hppa*64*)
12853	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12854	            ;;
12855	          ia64*)
12856	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12857	            ;;
12858	          *)
12859	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12860	            ;;
12861	        esac
12862	      fi
12863	    else
12864	      # FIXME: insert proper C++ library support
12865	      ld_shlibs_CXX=no
12866	    fi
12867	    ;;
12868        esac
12869        ;;
12870
12871      interix[3-9]*)
12872	hardcode_direct_CXX=no
12873	hardcode_shlibpath_var_CXX=no
12874	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12875	export_dynamic_flag_spec_CXX='${wl}-E'
12876	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12877	# Instead, shared libraries are loaded at an image base (0x10000000 by
12878	# default) and relocated if they conflict, which is a slow very memory
12879	# consuming and fragmenting process.  To avoid this, we pick a random,
12880	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12881	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12882	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12883	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12884	;;
12885      irix5* | irix6*)
12886        case $cc_basename in
12887          CC*)
12888	    # SGI C++
12889	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12890
12891	    # Archives containing C++ object files must be created using
12892	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12893	    # necessary to make sure instantiated templates are included
12894	    # in the archive.
12895	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12896	    ;;
12897          *)
12898	    if test "$GXX" = yes; then
12899	      if test "$with_gnu_ld" = no; then
12900	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12901	      else
12902	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12903	      fi
12904	    fi
12905	    link_all_deplibs_CXX=yes
12906	    ;;
12907        esac
12908        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12909        hardcode_libdir_separator_CXX=:
12910        inherit_rpath_CXX=yes
12911        ;;
12912
12913      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12914        case $cc_basename in
12915          KCC*)
12916	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12917
12918	    # KCC will only create a shared library if the output file
12919	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12920	    # to its proper name (with version) after linking.
12921	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12922	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12923	    # Commands to make compiler produce verbose output that lists
12924	    # what "hidden" libraries, object files and flags are used when
12925	    # linking a shared library.
12926	    #
12927	    # There doesn't appear to be a way to prevent this compiler from
12928	    # explicitly linking system object files so we need to strip them
12929	    # from the output so that they don't get included in the library
12930	    # dependencies.
12931	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12932
12933	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12934	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12935
12936	    # Archives containing C++ object files must be created using
12937	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12938	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12939	    ;;
12940	  icpc* | ecpc* )
12941	    # Intel C++
12942	    with_gnu_ld=yes
12943	    # version 8.0 and above of icpc choke on multiply defined symbols
12944	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12945	    # earlier do not add the objects themselves.
12946	    case `$CC -V 2>&1` in
12947	      *"Version 7."*)
12948	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12949		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12950		;;
12951	      *)  # Version 8.0 or newer
12952	        tmp_idyn=
12953	        case $host_cpu in
12954		  ia64*) tmp_idyn=' -i_dynamic';;
12955		esac
12956	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12957		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12958		;;
12959	    esac
12960	    archive_cmds_need_lc_CXX=no
12961	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12962	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12963	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12964	    ;;
12965          pgCC* | pgcpp*)
12966            # Portland Group C++ compiler
12967	    case `$CC -V` in
12968	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12969	      prelink_cmds_CXX='tpldir=Template.dir~
12970		rm -rf $tpldir~
12971		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12972		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12973	      old_archive_cmds_CXX='tpldir=Template.dir~
12974		rm -rf $tpldir~
12975		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12976		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12977		$RANLIB $oldlib'
12978	      archive_cmds_CXX='tpldir=Template.dir~
12979		rm -rf $tpldir~
12980		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12981		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12982	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12983		rm -rf $tpldir~
12984		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12985		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12986	      ;;
12987	    *) # Version 6 and above use weak symbols
12988	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12989	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12990	      ;;
12991	    esac
12992
12993	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12994	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12995	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12996            ;;
12997	  cxx*)
12998	    # Compaq C++
12999	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13000	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13001
13002	    runpath_var=LD_RUN_PATH
13003	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13004	    hardcode_libdir_separator_CXX=:
13005
13006	    # Commands to make compiler produce verbose output that lists
13007	    # what "hidden" libraries, object files and flags are used when
13008	    # linking a shared library.
13009	    #
13010	    # There doesn't appear to be a way to prevent this compiler from
13011	    # explicitly linking system object files so we need to strip them
13012	    # from the output so that they don't get included in the library
13013	    # dependencies.
13014	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13015	    ;;
13016	  xl* | mpixl* | bgxl*)
13017	    # IBM XL 8.0 on PPC, with GNU ld
13018	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13019	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13020	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13021	    if test "x$supports_anon_versioning" = xyes; then
13022	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13023		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13024		echo "local: *; };" >> $output_objdir/$libname.ver~
13025		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13026	    fi
13027	    ;;
13028	  *)
13029	    case `$CC -V 2>&1 | sed 5q` in
13030	    *Sun\ C*)
13031	      # Sun C++ 5.9
13032	      no_undefined_flag_CXX=' -zdefs'
13033	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13034	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13035	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13036	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13037	      compiler_needs_object_CXX=yes
13038
13039	      # Not sure whether something based on
13040	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13041	      # would be better.
13042	      output_verbose_link_cmd='func_echo_all'
13043
13044	      # Archives containing C++ object files must be created using
13045	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13046	      # necessary to make sure instantiated templates are included
13047	      # in the archive.
13048	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13049	      ;;
13050	    esac
13051	    ;;
13052	esac
13053	;;
13054
13055      lynxos*)
13056        # FIXME: insert proper C++ library support
13057	ld_shlibs_CXX=no
13058	;;
13059
13060      m88k*)
13061        # FIXME: insert proper C++ library support
13062        ld_shlibs_CXX=no
13063	;;
13064
13065      mvs*)
13066        case $cc_basename in
13067          cxx*)
13068	    # FIXME: insert proper C++ library support
13069	    ld_shlibs_CXX=no
13070	    ;;
13071	  *)
13072	    # FIXME: insert proper C++ library support
13073	    ld_shlibs_CXX=no
13074	    ;;
13075	esac
13076	;;
13077
13078      netbsd*)
13079        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13080	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13081	  wlarc=
13082	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13083	  hardcode_direct_CXX=yes
13084	  hardcode_shlibpath_var_CXX=no
13085	fi
13086	# Workaround some broken pre-1.5 toolchains
13087	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13088	;;
13089
13090      *nto* | *qnx*)
13091        ld_shlibs_CXX=yes
13092	;;
13093
13094      openbsd2*)
13095        # C++ shared libraries are fairly broken
13096	ld_shlibs_CXX=no
13097	;;
13098
13099      openbsd*)
13100	if test -f /usr/libexec/ld.so; then
13101	  hardcode_direct_CXX=yes
13102	  hardcode_shlibpath_var_CXX=no
13103	  hardcode_direct_absolute_CXX=yes
13104	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13105	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13106	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13107	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13108	    export_dynamic_flag_spec_CXX='${wl}-E'
13109	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13110	  fi
13111	  output_verbose_link_cmd=func_echo_all
13112	else
13113	  ld_shlibs_CXX=no
13114	fi
13115	;;
13116
13117      osf3* | osf4* | osf5*)
13118        case $cc_basename in
13119          KCC*)
13120	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13121
13122	    # KCC will only create a shared library if the output file
13123	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13124	    # to its proper name (with version) after linking.
13125	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13126
13127	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13128	    hardcode_libdir_separator_CXX=:
13129
13130	    # Archives containing C++ object files must be created using
13131	    # the KAI C++ compiler.
13132	    case $host in
13133	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13134	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13135	    esac
13136	    ;;
13137          RCC*)
13138	    # Rational C++ 2.4.1
13139	    # FIXME: insert proper C++ library support
13140	    ld_shlibs_CXX=no
13141	    ;;
13142          cxx*)
13143	    case $host in
13144	      osf3*)
13145	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13146	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13147	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13148		;;
13149	      *)
13150	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13151	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13152	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13153	          echo "-hidden">> $lib.exp~
13154	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13155	          $RM $lib.exp'
13156	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13157		;;
13158	    esac
13159
13160	    hardcode_libdir_separator_CXX=:
13161
13162	    # Commands to make compiler produce verbose output that lists
13163	    # what "hidden" libraries, object files and flags are used when
13164	    # linking a shared library.
13165	    #
13166	    # There doesn't appear to be a way to prevent this compiler from
13167	    # explicitly linking system object files so we need to strip them
13168	    # from the output so that they don't get included in the library
13169	    # dependencies.
13170	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13171	    ;;
13172	  *)
13173	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13174	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13175	      case $host in
13176	        osf3*)
13177	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13178		  ;;
13179	        *)
13180	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13181		  ;;
13182	      esac
13183
13184	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13185	      hardcode_libdir_separator_CXX=:
13186
13187	      # Commands to make compiler produce verbose output that lists
13188	      # what "hidden" libraries, object files and flags are used when
13189	      # linking a shared library.
13190	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13191
13192	    else
13193	      # FIXME: insert proper C++ library support
13194	      ld_shlibs_CXX=no
13195	    fi
13196	    ;;
13197        esac
13198        ;;
13199
13200      psos*)
13201        # FIXME: insert proper C++ library support
13202        ld_shlibs_CXX=no
13203        ;;
13204
13205      sunos4*)
13206        case $cc_basename in
13207          CC*)
13208	    # Sun C++ 4.x
13209	    # FIXME: insert proper C++ library support
13210	    ld_shlibs_CXX=no
13211	    ;;
13212          lcc*)
13213	    # Lucid
13214	    # FIXME: insert proper C++ library support
13215	    ld_shlibs_CXX=no
13216	    ;;
13217          *)
13218	    # FIXME: insert proper C++ library support
13219	    ld_shlibs_CXX=no
13220	    ;;
13221        esac
13222        ;;
13223
13224      solaris*)
13225        case $cc_basename in
13226          CC* | sunCC*)
13227	    # Sun C++ 4.2, 5.x and Centerline C++
13228            archive_cmds_need_lc_CXX=yes
13229	    no_undefined_flag_CXX=' -zdefs'
13230	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13231	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13232	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13233
13234	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13235	    hardcode_shlibpath_var_CXX=no
13236	    case $host_os in
13237	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13238	      *)
13239		# The compiler driver will combine and reorder linker options,
13240		# but understands `-z linker_flag'.
13241	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13242		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13243	        ;;
13244	    esac
13245	    link_all_deplibs_CXX=yes
13246
13247	    output_verbose_link_cmd='func_echo_all'
13248
13249	    # Archives containing C++ object files must be created using
13250	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13251	    # necessary to make sure instantiated templates are included
13252	    # in the archive.
13253	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13254	    ;;
13255          gcx*)
13256	    # Green Hills C++ Compiler
13257	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13258
13259	    # The C++ compiler must be used to create the archive.
13260	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13261	    ;;
13262          *)
13263	    # GNU C++ compiler with Solaris linker
13264	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13265	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13266	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13267	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13268	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13269		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13270
13271	        # Commands to make compiler produce verbose output that lists
13272	        # what "hidden" libraries, object files and flags are used when
13273	        # linking a shared library.
13274	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13275	      else
13276	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13277	        # platform.
13278	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13279	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13280		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13281
13282	        # Commands to make compiler produce verbose output that lists
13283	        # what "hidden" libraries, object files and flags are used when
13284	        # linking a shared library.
13285	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13286	      fi
13287
13288	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13289	      case $host_os in
13290		solaris2.[0-5] | solaris2.[0-5].*) ;;
13291		*)
13292		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13293		  ;;
13294	      esac
13295	    fi
13296	    ;;
13297        esac
13298        ;;
13299
13300    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13301      no_undefined_flag_CXX='${wl}-z,text'
13302      archive_cmds_need_lc_CXX=no
13303      hardcode_shlibpath_var_CXX=no
13304      runpath_var='LD_RUN_PATH'
13305
13306      case $cc_basename in
13307        CC*)
13308	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13309	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13310	  ;;
13311	*)
13312	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13313	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13314	  ;;
13315      esac
13316      ;;
13317
13318      sysv5* | sco3.2v5* | sco5v6*)
13319	# Note: We can NOT use -z defs as we might desire, because we do not
13320	# link with -lc, and that would cause any symbols used from libc to
13321	# always be unresolved, which means just about no library would
13322	# ever link correctly.  If we're not using GNU ld we use -z text
13323	# though, which does catch some bad symbols but isn't as heavy-handed
13324	# as -z defs.
13325	no_undefined_flag_CXX='${wl}-z,text'
13326	allow_undefined_flag_CXX='${wl}-z,nodefs'
13327	archive_cmds_need_lc_CXX=no
13328	hardcode_shlibpath_var_CXX=no
13329	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13330	hardcode_libdir_separator_CXX=':'
13331	link_all_deplibs_CXX=yes
13332	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13333	runpath_var='LD_RUN_PATH'
13334
13335	case $cc_basename in
13336          CC*)
13337	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13338	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13339	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13340	      '"$old_archive_cmds_CXX"
13341	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13342	      '"$reload_cmds_CXX"
13343	    ;;
13344	  *)
13345	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13346	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13347	    ;;
13348	esac
13349      ;;
13350
13351      tandem*)
13352        case $cc_basename in
13353          NCC*)
13354	    # NonStop-UX NCC 3.20
13355	    # FIXME: insert proper C++ library support
13356	    ld_shlibs_CXX=no
13357	    ;;
13358          *)
13359	    # FIXME: insert proper C++ library support
13360	    ld_shlibs_CXX=no
13361	    ;;
13362        esac
13363        ;;
13364
13365      vxworks*)
13366        # FIXME: insert proper C++ library support
13367        ld_shlibs_CXX=no
13368        ;;
13369
13370      *)
13371        # FIXME: insert proper C++ library support
13372        ld_shlibs_CXX=no
13373        ;;
13374    esac
13375
13376    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13377$as_echo "$ld_shlibs_CXX" >&6; }
13378    test "$ld_shlibs_CXX" = no && can_build_shared=no
13379
13380    GCC_CXX="$GXX"
13381    LD_CXX="$LD"
13382
13383    ## CAVEAT EMPTOR:
13384    ## There is no encapsulation within the following macros, do not change
13385    ## the running order or otherwise move them around unless you know exactly
13386    ## what you are doing...
13387    # Dependencies to place before and after the object being linked:
13388predep_objects_CXX=
13389postdep_objects_CXX=
13390predeps_CXX=
13391postdeps_CXX=
13392compiler_lib_search_path_CXX=
13393
13394cat > conftest.$ac_ext <<_LT_EOF
13395class Foo
13396{
13397public:
13398  Foo (void) { a = 0; }
13399private:
13400  int a;
13401};
13402_LT_EOF
13403
13404if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13405  (eval $ac_compile) 2>&5
13406  ac_status=$?
13407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13408  test $ac_status = 0; }; then
13409  # Parse the compiler output and extract the necessary
13410  # objects, libraries and library flags.
13411
13412  # Sentinel used to keep track of whether or not we are before
13413  # the conftest object file.
13414  pre_test_object_deps_done=no
13415
13416  for p in `eval "$output_verbose_link_cmd"`; do
13417    case $p in
13418
13419    -L* | -R* | -l*)
13420       # Some compilers place space between "-{L,R}" and the path.
13421       # Remove the space.
13422       if test $p = "-L" ||
13423          test $p = "-R"; then
13424	 prev=$p
13425	 continue
13426       else
13427	 prev=
13428       fi
13429
13430       if test "$pre_test_object_deps_done" = no; then
13431	 case $p in
13432	 -L* | -R*)
13433	   # Internal compiler library paths should come after those
13434	   # provided the user.  The postdeps already come after the
13435	   # user supplied libs so there is no need to process them.
13436	   if test -z "$compiler_lib_search_path_CXX"; then
13437	     compiler_lib_search_path_CXX="${prev}${p}"
13438	   else
13439	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13440	   fi
13441	   ;;
13442	 # The "-l" case would never come before the object being
13443	 # linked, so don't bother handling this case.
13444	 esac
13445       else
13446	 if test -z "$postdeps_CXX"; then
13447	   postdeps_CXX="${prev}${p}"
13448	 else
13449	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13450	 fi
13451       fi
13452       ;;
13453
13454    *.$objext)
13455       # This assumes that the test object file only shows up
13456       # once in the compiler output.
13457       if test "$p" = "conftest.$objext"; then
13458	 pre_test_object_deps_done=yes
13459	 continue
13460       fi
13461
13462       if test "$pre_test_object_deps_done" = no; then
13463	 if test -z "$predep_objects_CXX"; then
13464	   predep_objects_CXX="$p"
13465	 else
13466	   predep_objects_CXX="$predep_objects_CXX $p"
13467	 fi
13468       else
13469	 if test -z "$postdep_objects_CXX"; then
13470	   postdep_objects_CXX="$p"
13471	 else
13472	   postdep_objects_CXX="$postdep_objects_CXX $p"
13473	 fi
13474       fi
13475       ;;
13476
13477    *) ;; # Ignore the rest.
13478
13479    esac
13480  done
13481
13482  # Clean up.
13483  rm -f a.out a.exe
13484else
13485  echo "libtool.m4: error: problem compiling CXX test program"
13486fi
13487
13488$RM -f confest.$objext
13489
13490# PORTME: override above test on systems where it is broken
13491case $host_os in
13492interix[3-9]*)
13493  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13494  # hack all around it, let's just trust "g++" to DTRT.
13495  predep_objects_CXX=
13496  postdep_objects_CXX=
13497  postdeps_CXX=
13498  ;;
13499
13500linux*)
13501  case `$CC -V 2>&1 | sed 5q` in
13502  *Sun\ C*)
13503    # Sun C++ 5.9
13504
13505    # The more standards-conforming stlport4 library is
13506    # incompatible with the Cstd library. Avoid specifying
13507    # it if it's in CXXFLAGS. Ignore libCrun as
13508    # -library=stlport4 depends on it.
13509    case " $CXX $CXXFLAGS " in
13510    *" -library=stlport4 "*)
13511      solaris_use_stlport4=yes
13512      ;;
13513    esac
13514
13515    if test "$solaris_use_stlport4" != yes; then
13516      postdeps_CXX='-library=Cstd -library=Crun'
13517    fi
13518    ;;
13519  esac
13520  ;;
13521
13522solaris*)
13523  case $cc_basename in
13524  CC* | sunCC*)
13525    # The more standards-conforming stlport4 library is
13526    # incompatible with the Cstd library. Avoid specifying
13527    # it if it's in CXXFLAGS. Ignore libCrun as
13528    # -library=stlport4 depends on it.
13529    case " $CXX $CXXFLAGS " in
13530    *" -library=stlport4 "*)
13531      solaris_use_stlport4=yes
13532      ;;
13533    esac
13534
13535    # Adding this requires a known-good setup of shared libraries for
13536    # Sun compiler versions before 5.6, else PIC objects from an old
13537    # archive will be linked into the output, leading to subtle bugs.
13538    if test "$solaris_use_stlport4" != yes; then
13539      postdeps_CXX='-library=Cstd -library=Crun'
13540    fi
13541    ;;
13542  esac
13543  ;;
13544esac
13545
13546
13547case " $postdeps_CXX " in
13548*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13549esac
13550 compiler_lib_search_dirs_CXX=
13551if test -n "${compiler_lib_search_path_CXX}"; then
13552 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13553fi
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585    lt_prog_compiler_wl_CXX=
13586lt_prog_compiler_pic_CXX=
13587lt_prog_compiler_static_CXX=
13588
13589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13590$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13591
13592  # C++ specific cases for pic, static, wl, etc.
13593  if test "$GXX" = yes; then
13594    lt_prog_compiler_wl_CXX='-Wl,'
13595    lt_prog_compiler_static_CXX='-static'
13596
13597    case $host_os in
13598    aix*)
13599      # All AIX code is PIC.
13600      if test "$host_cpu" = ia64; then
13601	# AIX 5 now supports IA64 processor
13602	lt_prog_compiler_static_CXX='-Bstatic'
13603      fi
13604      ;;
13605
13606    amigaos*)
13607      case $host_cpu in
13608      powerpc)
13609            # see comment about AmigaOS4 .so support
13610            lt_prog_compiler_pic_CXX='-fPIC'
13611        ;;
13612      m68k)
13613            # FIXME: we need at least 68020 code to build shared libraries, but
13614            # adding the `-m68020' flag to GCC prevents building anything better,
13615            # like `-m68040'.
13616            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13617        ;;
13618      esac
13619      ;;
13620
13621    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13622      # PIC is the default for these OSes.
13623      ;;
13624    mingw* | cygwin* | os2* | pw32* | cegcc*)
13625      # This hack is so that the source file can tell whether it is being
13626      # built for inclusion in a dll (and should export symbols for example).
13627      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13628      # (--disable-auto-import) libraries
13629      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13630      ;;
13631    darwin* | rhapsody*)
13632      # PIC is the default on this platform
13633      # Common symbols not allowed in MH_DYLIB files
13634      lt_prog_compiler_pic_CXX='-fno-common'
13635      ;;
13636    *djgpp*)
13637      # DJGPP does not support shared libraries at all
13638      lt_prog_compiler_pic_CXX=
13639      ;;
13640    haiku*)
13641      # PIC is the default for Haiku.
13642      # The "-static" flag exists, but is broken.
13643      lt_prog_compiler_static_CXX=
13644      ;;
13645    interix[3-9]*)
13646      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13647      # Instead, we relocate shared libraries at runtime.
13648      ;;
13649    sysv4*MP*)
13650      if test -d /usr/nec; then
13651	lt_prog_compiler_pic_CXX=-Kconform_pic
13652      fi
13653      ;;
13654    hpux*)
13655      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13656      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13657      # sets the default TLS model and affects inlining.
13658      case $host_cpu in
13659      hppa*64*)
13660	;;
13661      *)
13662	lt_prog_compiler_pic_CXX='-fPIC'
13663	;;
13664      esac
13665      ;;
13666    *qnx* | *nto*)
13667      # QNX uses GNU C++, but need to define -shared option too, otherwise
13668      # it will coredump.
13669      lt_prog_compiler_pic_CXX='-fPIC -shared'
13670      ;;
13671    *)
13672      lt_prog_compiler_pic_CXX='-fPIC'
13673      ;;
13674    esac
13675  else
13676    case $host_os in
13677      aix[4-9]*)
13678	# All AIX code is PIC.
13679	if test "$host_cpu" = ia64; then
13680	  # AIX 5 now supports IA64 processor
13681	  lt_prog_compiler_static_CXX='-Bstatic'
13682	else
13683	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13684	fi
13685	;;
13686      chorus*)
13687	case $cc_basename in
13688	cxch68*)
13689	  # Green Hills C++ Compiler
13690	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13691	  ;;
13692	esac
13693	;;
13694      dgux*)
13695	case $cc_basename in
13696	  ec++*)
13697	    lt_prog_compiler_pic_CXX='-KPIC'
13698	    ;;
13699	  ghcx*)
13700	    # Green Hills C++ Compiler
13701	    lt_prog_compiler_pic_CXX='-pic'
13702	    ;;
13703	  *)
13704	    ;;
13705	esac
13706	;;
13707      freebsd* | dragonfly*)
13708	# FreeBSD uses GNU C++
13709	;;
13710      hpux9* | hpux10* | hpux11*)
13711	case $cc_basename in
13712	  CC*)
13713	    lt_prog_compiler_wl_CXX='-Wl,'
13714	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13715	    if test "$host_cpu" != ia64; then
13716	      lt_prog_compiler_pic_CXX='+Z'
13717	    fi
13718	    ;;
13719	  aCC*)
13720	    lt_prog_compiler_wl_CXX='-Wl,'
13721	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13722	    case $host_cpu in
13723	    hppa*64*|ia64*)
13724	      # +Z the default
13725	      ;;
13726	    *)
13727	      lt_prog_compiler_pic_CXX='+Z'
13728	      ;;
13729	    esac
13730	    ;;
13731	  *)
13732	    ;;
13733	esac
13734	;;
13735      interix*)
13736	# This is c89, which is MS Visual C++ (no shared libs)
13737	# Anyone wants to do a port?
13738	;;
13739      irix5* | irix6* | nonstopux*)
13740	case $cc_basename in
13741	  CC*)
13742	    lt_prog_compiler_wl_CXX='-Wl,'
13743	    lt_prog_compiler_static_CXX='-non_shared'
13744	    # CC pic flag -KPIC is the default.
13745	    ;;
13746	  *)
13747	    ;;
13748	esac
13749	;;
13750      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13751	case $cc_basename in
13752	  KCC*)
13753	    # KAI C++ Compiler
13754	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13755	    lt_prog_compiler_pic_CXX='-fPIC'
13756	    ;;
13757	  ecpc* )
13758	    # old Intel C++ for x86_64 which still supported -KPIC.
13759	    lt_prog_compiler_wl_CXX='-Wl,'
13760	    lt_prog_compiler_pic_CXX='-KPIC'
13761	    lt_prog_compiler_static_CXX='-static'
13762	    ;;
13763	  icpc* )
13764	    # Intel C++, used to be incompatible with GCC.
13765	    # ICC 10 doesn't accept -KPIC any more.
13766	    lt_prog_compiler_wl_CXX='-Wl,'
13767	    lt_prog_compiler_pic_CXX='-fPIC'
13768	    lt_prog_compiler_static_CXX='-static'
13769	    ;;
13770	  pgCC* | pgcpp*)
13771	    # Portland Group C++ compiler
13772	    lt_prog_compiler_wl_CXX='-Wl,'
13773	    lt_prog_compiler_pic_CXX='-fpic'
13774	    lt_prog_compiler_static_CXX='-Bstatic'
13775	    ;;
13776	  cxx*)
13777	    # Compaq C++
13778	    # Make sure the PIC flag is empty.  It appears that all Alpha
13779	    # Linux and Compaq Tru64 Unix objects are PIC.
13780	    lt_prog_compiler_pic_CXX=
13781	    lt_prog_compiler_static_CXX='-non_shared'
13782	    ;;
13783	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13784	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13785	    lt_prog_compiler_wl_CXX='-Wl,'
13786	    lt_prog_compiler_pic_CXX='-qpic'
13787	    lt_prog_compiler_static_CXX='-qstaticlink'
13788	    ;;
13789	  *)
13790	    case `$CC -V 2>&1 | sed 5q` in
13791	    *Sun\ C*)
13792	      # Sun C++ 5.9
13793	      lt_prog_compiler_pic_CXX='-KPIC'
13794	      lt_prog_compiler_static_CXX='-Bstatic'
13795	      lt_prog_compiler_wl_CXX='-Qoption ld '
13796	      ;;
13797	    esac
13798	    ;;
13799	esac
13800	;;
13801      lynxos*)
13802	;;
13803      m88k*)
13804	;;
13805      mvs*)
13806	case $cc_basename in
13807	  cxx*)
13808	    lt_prog_compiler_pic_CXX='-W c,exportall'
13809	    ;;
13810	  *)
13811	    ;;
13812	esac
13813	;;
13814      netbsd*)
13815	;;
13816      *qnx* | *nto*)
13817        # QNX uses GNU C++, but need to define -shared option too, otherwise
13818        # it will coredump.
13819        lt_prog_compiler_pic_CXX='-fPIC -shared'
13820        ;;
13821      osf3* | osf4* | osf5*)
13822	case $cc_basename in
13823	  KCC*)
13824	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13825	    ;;
13826	  RCC*)
13827	    # Rational C++ 2.4.1
13828	    lt_prog_compiler_pic_CXX='-pic'
13829	    ;;
13830	  cxx*)
13831	    # Digital/Compaq C++
13832	    lt_prog_compiler_wl_CXX='-Wl,'
13833	    # Make sure the PIC flag is empty.  It appears that all Alpha
13834	    # Linux and Compaq Tru64 Unix objects are PIC.
13835	    lt_prog_compiler_pic_CXX=
13836	    lt_prog_compiler_static_CXX='-non_shared'
13837	    ;;
13838	  *)
13839	    ;;
13840	esac
13841	;;
13842      psos*)
13843	;;
13844      solaris*)
13845	case $cc_basename in
13846	  CC* | sunCC*)
13847	    # Sun C++ 4.2, 5.x and Centerline C++
13848	    lt_prog_compiler_pic_CXX='-KPIC'
13849	    lt_prog_compiler_static_CXX='-Bstatic'
13850	    lt_prog_compiler_wl_CXX='-Qoption ld '
13851	    ;;
13852	  gcx*)
13853	    # Green Hills C++ Compiler
13854	    lt_prog_compiler_pic_CXX='-PIC'
13855	    ;;
13856	  *)
13857	    ;;
13858	esac
13859	;;
13860      sunos4*)
13861	case $cc_basename in
13862	  CC*)
13863	    # Sun C++ 4.x
13864	    lt_prog_compiler_pic_CXX='-pic'
13865	    lt_prog_compiler_static_CXX='-Bstatic'
13866	    ;;
13867	  lcc*)
13868	    # Lucid
13869	    lt_prog_compiler_pic_CXX='-pic'
13870	    ;;
13871	  *)
13872	    ;;
13873	esac
13874	;;
13875      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13876	case $cc_basename in
13877	  CC*)
13878	    lt_prog_compiler_wl_CXX='-Wl,'
13879	    lt_prog_compiler_pic_CXX='-KPIC'
13880	    lt_prog_compiler_static_CXX='-Bstatic'
13881	    ;;
13882	esac
13883	;;
13884      tandem*)
13885	case $cc_basename in
13886	  NCC*)
13887	    # NonStop-UX NCC 3.20
13888	    lt_prog_compiler_pic_CXX='-KPIC'
13889	    ;;
13890	  *)
13891	    ;;
13892	esac
13893	;;
13894      vxworks*)
13895	;;
13896      *)
13897	lt_prog_compiler_can_build_shared_CXX=no
13898	;;
13899    esac
13900  fi
13901
13902case $host_os in
13903  # For platforms which do not support PIC, -DPIC is meaningless:
13904  *djgpp*)
13905    lt_prog_compiler_pic_CXX=
13906    ;;
13907  *)
13908    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13909    ;;
13910esac
13911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13912$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13913
13914
13915
13916#
13917# Check to make sure the PIC flag actually works.
13918#
13919if test -n "$lt_prog_compiler_pic_CXX"; then
13920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13921$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13922if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13923  $as_echo_n "(cached) " >&6
13924else
13925  lt_cv_prog_compiler_pic_works_CXX=no
13926   ac_outfile=conftest.$ac_objext
13927   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13928   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13929   # Insert the option either (1) after the last *FLAGS variable, or
13930   # (2) before a word containing "conftest.", or (3) at the end.
13931   # Note that $ac_compile itself does not contain backslashes and begins
13932   # with a dollar sign (not a hyphen), so the echo should work correctly.
13933   # The option is referenced via a variable to avoid confusing sed.
13934   lt_compile=`echo "$ac_compile" | $SED \
13935   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13936   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13937   -e 's:$: $lt_compiler_flag:'`
13938   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13939   (eval "$lt_compile" 2>conftest.err)
13940   ac_status=$?
13941   cat conftest.err >&5
13942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943   if (exit $ac_status) && test -s "$ac_outfile"; then
13944     # The compiler can only warn and ignore the option if not recognized
13945     # So say no if there are warnings other than the usual output.
13946     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13947     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13948     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13949       lt_cv_prog_compiler_pic_works_CXX=yes
13950     fi
13951   fi
13952   $RM conftest*
13953
13954fi
13955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13956$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13957
13958if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13959    case $lt_prog_compiler_pic_CXX in
13960     "" | " "*) ;;
13961     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13962     esac
13963else
13964    lt_prog_compiler_pic_CXX=
13965     lt_prog_compiler_can_build_shared_CXX=no
13966fi
13967
13968fi
13969
13970
13971
13972#
13973# Check to make sure the static flag actually works.
13974#
13975wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13977$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13978if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13979  $as_echo_n "(cached) " >&6
13980else
13981  lt_cv_prog_compiler_static_works_CXX=no
13982   save_LDFLAGS="$LDFLAGS"
13983   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13984   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13985   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13986     # The linker can only warn and ignore the option if not recognized
13987     # So say no if there are warnings
13988     if test -s conftest.err; then
13989       # Append any errors to the config.log.
13990       cat conftest.err 1>&5
13991       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13992       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13993       if diff conftest.exp conftest.er2 >/dev/null; then
13994         lt_cv_prog_compiler_static_works_CXX=yes
13995       fi
13996     else
13997       lt_cv_prog_compiler_static_works_CXX=yes
13998     fi
13999   fi
14000   $RM -r conftest*
14001   LDFLAGS="$save_LDFLAGS"
14002
14003fi
14004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14005$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14006
14007if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14008    :
14009else
14010    lt_prog_compiler_static_CXX=
14011fi
14012
14013
14014
14015
14016    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14017$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14018if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14019  $as_echo_n "(cached) " >&6
14020else
14021  lt_cv_prog_compiler_c_o_CXX=no
14022   $RM -r conftest 2>/dev/null
14023   mkdir conftest
14024   cd conftest
14025   mkdir out
14026   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14027
14028   lt_compiler_flag="-o out/conftest2.$ac_objext"
14029   # Insert the option either (1) after the last *FLAGS variable, or
14030   # (2) before a word containing "conftest.", or (3) at the end.
14031   # Note that $ac_compile itself does not contain backslashes and begins
14032   # with a dollar sign (not a hyphen), so the echo should work correctly.
14033   lt_compile=`echo "$ac_compile" | $SED \
14034   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14035   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14036   -e 's:$: $lt_compiler_flag:'`
14037   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14038   (eval "$lt_compile" 2>out/conftest.err)
14039   ac_status=$?
14040   cat out/conftest.err >&5
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14043   then
14044     # The compiler can only warn and ignore the option if not recognized
14045     # So say no if there are warnings
14046     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14047     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14048     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14049       lt_cv_prog_compiler_c_o_CXX=yes
14050     fi
14051   fi
14052   chmod u+w . 2>&5
14053   $RM conftest*
14054   # SGI C++ compiler will create directory out/ii_files/ for
14055   # template instantiation
14056   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14057   $RM out/* && rmdir out
14058   cd ..
14059   $RM -r conftest
14060   $RM conftest*
14061
14062fi
14063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14064$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14065
14066
14067
14068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14069$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14070if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14071  $as_echo_n "(cached) " >&6
14072else
14073  lt_cv_prog_compiler_c_o_CXX=no
14074   $RM -r conftest 2>/dev/null
14075   mkdir conftest
14076   cd conftest
14077   mkdir out
14078   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14079
14080   lt_compiler_flag="-o out/conftest2.$ac_objext"
14081   # Insert the option either (1) after the last *FLAGS variable, or
14082   # (2) before a word containing "conftest.", or (3) at the end.
14083   # Note that $ac_compile itself does not contain backslashes and begins
14084   # with a dollar sign (not a hyphen), so the echo should work correctly.
14085   lt_compile=`echo "$ac_compile" | $SED \
14086   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14087   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14088   -e 's:$: $lt_compiler_flag:'`
14089   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14090   (eval "$lt_compile" 2>out/conftest.err)
14091   ac_status=$?
14092   cat out/conftest.err >&5
14093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14095   then
14096     # The compiler can only warn and ignore the option if not recognized
14097     # So say no if there are warnings
14098     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14099     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14100     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14101       lt_cv_prog_compiler_c_o_CXX=yes
14102     fi
14103   fi
14104   chmod u+w . 2>&5
14105   $RM conftest*
14106   # SGI C++ compiler will create directory out/ii_files/ for
14107   # template instantiation
14108   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14109   $RM out/* && rmdir out
14110   cd ..
14111   $RM -r conftest
14112   $RM conftest*
14113
14114fi
14115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14116$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14117
14118
14119
14120
14121hard_links="nottested"
14122if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14123  # do not overwrite the value of need_locks provided by the user
14124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14125$as_echo_n "checking if we can lock with hard links... " >&6; }
14126  hard_links=yes
14127  $RM conftest*
14128  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14129  touch conftest.a
14130  ln conftest.a conftest.b 2>&5 || hard_links=no
14131  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14133$as_echo "$hard_links" >&6; }
14134  if test "$hard_links" = no; then
14135    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14136$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14137    need_locks=warn
14138  fi
14139else
14140  need_locks=no
14141fi
14142
14143
14144
14145    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14146$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14147
14148  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14149  case $host_os in
14150  aix[4-9]*)
14151    # If we're using GNU nm, then we don't want the "-C" option.
14152    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14153    # Also, AIX nm treats weak defined symbols like other global defined
14154    # symbols, whereas GNU nm marks them as "W".
14155    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14156      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14157    else
14158      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14159    fi
14160    ;;
14161  pw32*)
14162    export_symbols_cmds_CXX="$ltdll_cmds"
14163  ;;
14164  cygwin* | mingw* | cegcc*)
14165    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14166  ;;
14167  *)
14168    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14169  ;;
14170  esac
14171  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14172
14173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14174$as_echo "$ld_shlibs_CXX" >&6; }
14175test "$ld_shlibs_CXX" = no && can_build_shared=no
14176
14177with_gnu_ld_CXX=$with_gnu_ld
14178
14179
14180
14181
14182
14183
14184#
14185# Do we need to explicitly link libc?
14186#
14187case "x$archive_cmds_need_lc_CXX" in
14188x|xyes)
14189  # Assume -lc should be added
14190  archive_cmds_need_lc_CXX=yes
14191
14192  if test "$enable_shared" = yes && test "$GCC" = yes; then
14193    case $archive_cmds_CXX in
14194    *'~'*)
14195      # FIXME: we may have to deal with multi-command sequences.
14196      ;;
14197    '$CC '*)
14198      # Test whether the compiler implicitly links with -lc since on some
14199      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14200      # to ld, don't add -lc before -lgcc.
14201      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14202$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14203if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14204  $as_echo_n "(cached) " >&6
14205else
14206  $RM conftest*
14207	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14208
14209	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14210  (eval $ac_compile) 2>&5
14211  ac_status=$?
14212  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14213  test $ac_status = 0; } 2>conftest.err; then
14214	  soname=conftest
14215	  lib=conftest
14216	  libobjs=conftest.$ac_objext
14217	  deplibs=
14218	  wl=$lt_prog_compiler_wl_CXX
14219	  pic_flag=$lt_prog_compiler_pic_CXX
14220	  compiler_flags=-v
14221	  linker_flags=-v
14222	  verstring=
14223	  output_objdir=.
14224	  libname=conftest
14225	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14226	  allow_undefined_flag_CXX=
14227	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14228  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14229  ac_status=$?
14230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14231  test $ac_status = 0; }
14232	  then
14233	    lt_cv_archive_cmds_need_lc_CXX=no
14234	  else
14235	    lt_cv_archive_cmds_need_lc_CXX=yes
14236	  fi
14237	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14238	else
14239	  cat conftest.err 1>&5
14240	fi
14241	$RM conftest*
14242
14243fi
14244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14245$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14246      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14247      ;;
14248    esac
14249  fi
14250  ;;
14251esac
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14317$as_echo_n "checking dynamic linker characteristics... " >&6; }
14318
14319library_names_spec=
14320libname_spec='lib$name'
14321soname_spec=
14322shrext_cmds=".so"
14323postinstall_cmds=
14324postuninstall_cmds=
14325finish_cmds=
14326finish_eval=
14327shlibpath_var=
14328shlibpath_overrides_runpath=unknown
14329version_type=none
14330dynamic_linker="$host_os ld.so"
14331sys_lib_dlsearch_path_spec="/lib /usr/lib"
14332need_lib_prefix=unknown
14333hardcode_into_libs=no
14334
14335# when you set need_version to no, make sure it does not cause -set_version
14336# flags to be left without arguments
14337need_version=unknown
14338
14339case $host_os in
14340aix3*)
14341  version_type=linux
14342  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14343  shlibpath_var=LIBPATH
14344
14345  # AIX 3 has no versioning support, so we append a major version to the name.
14346  soname_spec='${libname}${release}${shared_ext}$major'
14347  ;;
14348
14349aix[4-9]*)
14350  version_type=linux
14351  need_lib_prefix=no
14352  need_version=no
14353  hardcode_into_libs=yes
14354  if test "$host_cpu" = ia64; then
14355    # AIX 5 supports IA64
14356    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14357    shlibpath_var=LD_LIBRARY_PATH
14358  else
14359    # With GCC up to 2.95.x, collect2 would create an import file
14360    # for dependence libraries.  The import file would start with
14361    # the line `#! .'.  This would cause the generated library to
14362    # depend on `.', always an invalid library.  This was fixed in
14363    # development snapshots of GCC prior to 3.0.
14364    case $host_os in
14365      aix4 | aix4.[01] | aix4.[01].*)
14366      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14367	   echo ' yes '
14368	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14369	:
14370      else
14371	can_build_shared=no
14372      fi
14373      ;;
14374    esac
14375    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14376    # soname into executable. Probably we can add versioning support to
14377    # collect2, so additional links can be useful in future.
14378    if test "$aix_use_runtimelinking" = yes; then
14379      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14380      # instead of lib<name>.a to let people know that these are not
14381      # typical AIX shared libraries.
14382      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14383    else
14384      # We preserve .a as extension for shared libraries through AIX4.2
14385      # and later when we are not doing run time linking.
14386      library_names_spec='${libname}${release}.a $libname.a'
14387      soname_spec='${libname}${release}${shared_ext}$major'
14388    fi
14389    shlibpath_var=LIBPATH
14390  fi
14391  ;;
14392
14393amigaos*)
14394  case $host_cpu in
14395  powerpc)
14396    # Since July 2007 AmigaOS4 officially supports .so libraries.
14397    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14398    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14399    ;;
14400  m68k)
14401    library_names_spec='$libname.ixlibrary $libname.a'
14402    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14403    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14404    ;;
14405  esac
14406  ;;
14407
14408beos*)
14409  library_names_spec='${libname}${shared_ext}'
14410  dynamic_linker="$host_os ld.so"
14411  shlibpath_var=LIBRARY_PATH
14412  ;;
14413
14414bsdi[45]*)
14415  version_type=linux
14416  need_version=no
14417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14418  soname_spec='${libname}${release}${shared_ext}$major'
14419  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14420  shlibpath_var=LD_LIBRARY_PATH
14421  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14422  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14423  # the default ld.so.conf also contains /usr/contrib/lib and
14424  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14425  # libtool to hard-code these into programs
14426  ;;
14427
14428cygwin* | mingw* | pw32* | cegcc*)
14429  version_type=windows
14430  shrext_cmds=".dll"
14431  need_version=no
14432  need_lib_prefix=no
14433
14434  case $GCC,$host_os in
14435  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14436    library_names_spec='$libname.dll.a'
14437    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14438    postinstall_cmds='base_file=`basename \${file}`~
14439      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14440      dldir=$destdir/`dirname \$dlpath`~
14441      test -d \$dldir || mkdir -p \$dldir~
14442      $install_prog $dir/$dlname \$dldir/$dlname~
14443      chmod a+x \$dldir/$dlname~
14444      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14445        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14446      fi'
14447    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14448      dlpath=$dir/\$dldll~
14449       $RM \$dlpath'
14450    shlibpath_overrides_runpath=yes
14451
14452    case $host_os in
14453    cygwin*)
14454      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14455      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14456
14457      ;;
14458    mingw* | cegcc*)
14459      # MinGW DLLs use traditional 'lib' prefix
14460      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14461      ;;
14462    pw32*)
14463      # pw32 DLLs use 'pw' prefix rather than 'lib'
14464      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14465      ;;
14466    esac
14467    ;;
14468
14469  *)
14470    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14471    ;;
14472  esac
14473  dynamic_linker='Win32 ld.exe'
14474  # FIXME: first we should search . and the directory the executable is in
14475  shlibpath_var=PATH
14476  ;;
14477
14478darwin* | rhapsody*)
14479  dynamic_linker="$host_os dyld"
14480  version_type=darwin
14481  need_lib_prefix=no
14482  need_version=no
14483  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14484  soname_spec='${libname}${release}${major}$shared_ext'
14485  shlibpath_overrides_runpath=yes
14486  shlibpath_var=DYLD_LIBRARY_PATH
14487  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14488
14489  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14490  ;;
14491
14492dgux*)
14493  version_type=linux
14494  need_lib_prefix=no
14495  need_version=no
14496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14497  soname_spec='${libname}${release}${shared_ext}$major'
14498  shlibpath_var=LD_LIBRARY_PATH
14499  ;;
14500
14501freebsd1*)
14502  dynamic_linker=no
14503  ;;
14504
14505freebsd* | dragonfly*)
14506  # DragonFly does not have aout.  When/if they implement a new
14507  # versioning mechanism, adjust this.
14508  if test -x /usr/bin/objformat; then
14509    objformat=`/usr/bin/objformat`
14510  else
14511    case $host_os in
14512    freebsd[123]*) objformat=aout ;;
14513    *) objformat=elf ;;
14514    esac
14515  fi
14516  version_type=freebsd-$objformat
14517  case $version_type in
14518    freebsd-elf*)
14519      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14520      need_version=no
14521      need_lib_prefix=no
14522      ;;
14523    freebsd-*)
14524      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14525      need_version=yes
14526      ;;
14527  esac
14528  shlibpath_var=LD_LIBRARY_PATH
14529  case $host_os in
14530  freebsd2*)
14531    shlibpath_overrides_runpath=yes
14532    ;;
14533  freebsd3.[01]* | freebsdelf3.[01]*)
14534    shlibpath_overrides_runpath=yes
14535    hardcode_into_libs=yes
14536    ;;
14537  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14538  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14539    shlibpath_overrides_runpath=no
14540    hardcode_into_libs=yes
14541    ;;
14542  *) # from 4.6 on, and DragonFly
14543    shlibpath_overrides_runpath=yes
14544    hardcode_into_libs=yes
14545    ;;
14546  esac
14547  ;;
14548
14549gnu*)
14550  version_type=linux
14551  need_lib_prefix=no
14552  need_version=no
14553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14554  soname_spec='${libname}${release}${shared_ext}$major'
14555  shlibpath_var=LD_LIBRARY_PATH
14556  hardcode_into_libs=yes
14557  ;;
14558
14559haiku*)
14560  version_type=linux
14561  need_lib_prefix=no
14562  need_version=no
14563  dynamic_linker="$host_os runtime_loader"
14564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14565  soname_spec='${libname}${release}${shared_ext}$major'
14566  shlibpath_var=LIBRARY_PATH
14567  shlibpath_overrides_runpath=yes
14568  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14569  hardcode_into_libs=yes
14570  ;;
14571
14572hpux9* | hpux10* | hpux11*)
14573  # Give a soname corresponding to the major version so that dld.sl refuses to
14574  # link against other versions.
14575  version_type=sunos
14576  need_lib_prefix=no
14577  need_version=no
14578  case $host_cpu in
14579  ia64*)
14580    shrext_cmds='.so'
14581    hardcode_into_libs=yes
14582    dynamic_linker="$host_os dld.so"
14583    shlibpath_var=LD_LIBRARY_PATH
14584    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14585    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14586    soname_spec='${libname}${release}${shared_ext}$major'
14587    if test "X$HPUX_IA64_MODE" = X32; then
14588      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14589    else
14590      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14591    fi
14592    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14593    ;;
14594  hppa*64*)
14595    shrext_cmds='.sl'
14596    hardcode_into_libs=yes
14597    dynamic_linker="$host_os dld.sl"
14598    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14599    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14600    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601    soname_spec='${libname}${release}${shared_ext}$major'
14602    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14603    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14604    ;;
14605  *)
14606    shrext_cmds='.sl'
14607    dynamic_linker="$host_os dld.sl"
14608    shlibpath_var=SHLIB_PATH
14609    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14610    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611    soname_spec='${libname}${release}${shared_ext}$major'
14612    ;;
14613  esac
14614  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14615  postinstall_cmds='chmod 555 $lib'
14616  # or fails outright, so override atomically:
14617  install_override_mode=555
14618  ;;
14619
14620interix[3-9]*)
14621  version_type=linux
14622  need_lib_prefix=no
14623  need_version=no
14624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14625  soname_spec='${libname}${release}${shared_ext}$major'
14626  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14627  shlibpath_var=LD_LIBRARY_PATH
14628  shlibpath_overrides_runpath=no
14629  hardcode_into_libs=yes
14630  ;;
14631
14632irix5* | irix6* | nonstopux*)
14633  case $host_os in
14634    nonstopux*) version_type=nonstopux ;;
14635    *)
14636	if test "$lt_cv_prog_gnu_ld" = yes; then
14637		version_type=linux
14638	else
14639		version_type=irix
14640	fi ;;
14641  esac
14642  need_lib_prefix=no
14643  need_version=no
14644  soname_spec='${libname}${release}${shared_ext}$major'
14645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14646  case $host_os in
14647  irix5* | nonstopux*)
14648    libsuff= shlibsuff=
14649    ;;
14650  *)
14651    case $LD in # libtool.m4 will add one of these switches to LD
14652    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14653      libsuff= shlibsuff= libmagic=32-bit;;
14654    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14655      libsuff=32 shlibsuff=N32 libmagic=N32;;
14656    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14657      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14658    *) libsuff= shlibsuff= libmagic=never-match;;
14659    esac
14660    ;;
14661  esac
14662  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14663  shlibpath_overrides_runpath=no
14664  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14665  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14666  hardcode_into_libs=yes
14667  ;;
14668
14669# No shared lib support for Linux oldld, aout, or coff.
14670linux*oldld* | linux*aout* | linux*coff*)
14671  dynamic_linker=no
14672  ;;
14673
14674# This must be Linux ELF.
14675linux* | k*bsd*-gnu | kopensolaris*-gnu)
14676  version_type=linux
14677  need_lib_prefix=no
14678  need_version=no
14679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680  soname_spec='${libname}${release}${shared_ext}$major'
14681  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14682  shlibpath_var=LD_LIBRARY_PATH
14683  shlibpath_overrides_runpath=no
14684
14685  # Some binutils ld are patched to set DT_RUNPATH
14686  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14687  $as_echo_n "(cached) " >&6
14688else
14689  lt_cv_shlibpath_overrides_runpath=no
14690    save_LDFLAGS=$LDFLAGS
14691    save_libdir=$libdir
14692    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14693	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14694    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695/* end confdefs.h.  */
14696
14697int
14698main ()
14699{
14700
14701  ;
14702  return 0;
14703}
14704_ACEOF
14705if ac_fn_cxx_try_link "$LINENO"; then :
14706  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14707  lt_cv_shlibpath_overrides_runpath=yes
14708fi
14709fi
14710rm -f core conftest.err conftest.$ac_objext \
14711    conftest$ac_exeext conftest.$ac_ext
14712    LDFLAGS=$save_LDFLAGS
14713    libdir=$save_libdir
14714
14715fi
14716
14717  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14718
14719  # This implies no fast_install, which is unacceptable.
14720  # Some rework will be needed to allow for fast_install
14721  # before this can be enabled.
14722  hardcode_into_libs=yes
14723
14724  # Add ABI-specific directories to the system library path.
14725  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14726
14727  # Append ld.so.conf contents to the search path
14728  if test -f /etc/ld.so.conf; then
14729    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' ' '`
14730    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14731
14732  fi
14733
14734  # We used to test for /lib/ld.so.1 and disable shared libraries on
14735  # powerpc, because MkLinux only supported shared libraries with the
14736  # GNU dynamic linker.  Since this was broken with cross compilers,
14737  # most powerpc-linux boxes support dynamic linking these days and
14738  # people can always --disable-shared, the test was removed, and we
14739  # assume the GNU/Linux dynamic linker is in use.
14740  dynamic_linker='GNU/Linux ld.so'
14741  ;;
14742
14743netbsd*)
14744  version_type=sunos
14745  need_lib_prefix=no
14746  need_version=no
14747  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14748    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14749    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14750    dynamic_linker='NetBSD (a.out) ld.so'
14751  else
14752    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14753    soname_spec='${libname}${release}${shared_ext}$major'
14754    dynamic_linker='NetBSD ld.elf_so'
14755  fi
14756  shlibpath_var=LD_LIBRARY_PATH
14757  shlibpath_overrides_runpath=yes
14758  hardcode_into_libs=yes
14759  ;;
14760
14761newsos6)
14762  version_type=linux
14763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764  shlibpath_var=LD_LIBRARY_PATH
14765  shlibpath_overrides_runpath=yes
14766  ;;
14767
14768*nto* | *qnx*)
14769  version_type=qnx
14770  need_lib_prefix=no
14771  need_version=no
14772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773  soname_spec='${libname}${release}${shared_ext}$major'
14774  shlibpath_var=LD_LIBRARY_PATH
14775  shlibpath_overrides_runpath=no
14776  hardcode_into_libs=yes
14777  dynamic_linker='ldqnx.so'
14778  ;;
14779
14780openbsd*)
14781  version_type=sunos
14782  sys_lib_dlsearch_path_spec="/usr/lib"
14783  need_lib_prefix=no
14784  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14785  case $host_os in
14786    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14787    *)				need_version=no  ;;
14788  esac
14789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14790  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14791  shlibpath_var=LD_LIBRARY_PATH
14792  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14793    case $host_os in
14794      openbsd2.[89] | openbsd2.[89].*)
14795	shlibpath_overrides_runpath=no
14796	;;
14797      *)
14798	shlibpath_overrides_runpath=yes
14799	;;
14800      esac
14801  else
14802    shlibpath_overrides_runpath=yes
14803  fi
14804  ;;
14805
14806os2*)
14807  libname_spec='$name'
14808  shrext_cmds=".dll"
14809  need_lib_prefix=no
14810  library_names_spec='$libname${shared_ext} $libname.a'
14811  dynamic_linker='OS/2 ld.exe'
14812  shlibpath_var=LIBPATH
14813  ;;
14814
14815osf3* | osf4* | osf5*)
14816  version_type=osf
14817  need_lib_prefix=no
14818  need_version=no
14819  soname_spec='${libname}${release}${shared_ext}$major'
14820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14821  shlibpath_var=LD_LIBRARY_PATH
14822  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14823  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14824  ;;
14825
14826rdos*)
14827  dynamic_linker=no
14828  ;;
14829
14830solaris*)
14831  version_type=linux
14832  need_lib_prefix=no
14833  need_version=no
14834  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835  soname_spec='${libname}${release}${shared_ext}$major'
14836  shlibpath_var=LD_LIBRARY_PATH
14837  shlibpath_overrides_runpath=yes
14838  hardcode_into_libs=yes
14839  # ldd complains unless libraries are executable
14840  postinstall_cmds='chmod +x $lib'
14841  ;;
14842
14843sunos4*)
14844  version_type=sunos
14845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14846  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14847  shlibpath_var=LD_LIBRARY_PATH
14848  shlibpath_overrides_runpath=yes
14849  if test "$with_gnu_ld" = yes; then
14850    need_lib_prefix=no
14851  fi
14852  need_version=yes
14853  ;;
14854
14855sysv4 | sysv4.3*)
14856  version_type=linux
14857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14858  soname_spec='${libname}${release}${shared_ext}$major'
14859  shlibpath_var=LD_LIBRARY_PATH
14860  case $host_vendor in
14861    sni)
14862      shlibpath_overrides_runpath=no
14863      need_lib_prefix=no
14864      runpath_var=LD_RUN_PATH
14865      ;;
14866    siemens)
14867      need_lib_prefix=no
14868      ;;
14869    motorola)
14870      need_lib_prefix=no
14871      need_version=no
14872      shlibpath_overrides_runpath=no
14873      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14874      ;;
14875  esac
14876  ;;
14877
14878sysv4*MP*)
14879  if test -d /usr/nec ;then
14880    version_type=linux
14881    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14882    soname_spec='$libname${shared_ext}.$major'
14883    shlibpath_var=LD_LIBRARY_PATH
14884  fi
14885  ;;
14886
14887sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14888  version_type=freebsd-elf
14889  need_lib_prefix=no
14890  need_version=no
14891  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14892  soname_spec='${libname}${release}${shared_ext}$major'
14893  shlibpath_var=LD_LIBRARY_PATH
14894  shlibpath_overrides_runpath=yes
14895  hardcode_into_libs=yes
14896  if test "$with_gnu_ld" = yes; then
14897    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14898  else
14899    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14900    case $host_os in
14901      sco3.2v5*)
14902        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14903	;;
14904    esac
14905  fi
14906  sys_lib_dlsearch_path_spec='/usr/lib'
14907  ;;
14908
14909tpf*)
14910  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14911  version_type=linux
14912  need_lib_prefix=no
14913  need_version=no
14914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915  shlibpath_var=LD_LIBRARY_PATH
14916  shlibpath_overrides_runpath=no
14917  hardcode_into_libs=yes
14918  ;;
14919
14920uts4*)
14921  version_type=linux
14922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14923  soname_spec='${libname}${release}${shared_ext}$major'
14924  shlibpath_var=LD_LIBRARY_PATH
14925  ;;
14926
14927*)
14928  dynamic_linker=no
14929  ;;
14930esac
14931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14932$as_echo "$dynamic_linker" >&6; }
14933test "$dynamic_linker" = no && can_build_shared=no
14934
14935variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14936if test "$GCC" = yes; then
14937  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14938fi
14939
14940if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14941  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14942fi
14943if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14944  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14945fi
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14985$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14986hardcode_action_CXX=
14987if test -n "$hardcode_libdir_flag_spec_CXX" ||
14988   test -n "$runpath_var_CXX" ||
14989   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14990
14991  # We can hardcode non-existent directories.
14992  if test "$hardcode_direct_CXX" != no &&
14993     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14994     # have to relink, otherwise we might link with an installed library
14995     # when we should be linking with a yet-to-be-installed one
14996     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14997     test "$hardcode_minus_L_CXX" != no; then
14998    # Linking always hardcodes the temporary library directory.
14999    hardcode_action_CXX=relink
15000  else
15001    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15002    hardcode_action_CXX=immediate
15003  fi
15004else
15005  # We cannot hardcode anything, or else we can only hardcode existing
15006  # directories.
15007  hardcode_action_CXX=unsupported
15008fi
15009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15010$as_echo "$hardcode_action_CXX" >&6; }
15011
15012if test "$hardcode_action_CXX" = relink ||
15013   test "$inherit_rpath_CXX" = yes; then
15014  # Fast installation is not supported
15015  enable_fast_install=no
15016elif test "$shlibpath_overrides_runpath" = yes ||
15017     test "$enable_shared" = no; then
15018  # Fast installation is not necessary
15019  enable_fast_install=needless
15020fi
15021
15022
15023
15024
15025
15026
15027
15028  fi # test -n "$compiler"
15029
15030  CC=$lt_save_CC
15031  LDCXX=$LD
15032  LD=$lt_save_LD
15033  GCC=$lt_save_GCC
15034  with_gnu_ld=$lt_save_with_gnu_ld
15035  lt_cv_path_LDCXX=$lt_cv_path_LD
15036  lt_cv_path_LD=$lt_save_path_LD
15037  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15038  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15039fi # test "$_lt_caught_CXX_error" != yes
15040
15041ac_ext=c
15042ac_cpp='$CPP $CPPFLAGS'
15043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15045ac_compiler_gnu=$ac_cv_c_compiler_gnu
15046
15047
15048
15049for ac_prog in perl5 perl
15050do
15051  # Extract the first word of "$ac_prog", so it can be a program name with args.
15052set dummy $ac_prog; ac_word=$2
15053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15054$as_echo_n "checking for $ac_word... " >&6; }
15055if test "${ac_cv_path_PERL+set}" = set; then :
15056  $as_echo_n "(cached) " >&6
15057else
15058  case $PERL in
15059  [\\/]* | ?:[\\/]*)
15060  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15061  ;;
15062  *)
15063  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15064for as_dir in $LPATH
15065do
15066  IFS=$as_save_IFS
15067  test -z "$as_dir" && as_dir=.
15068    for ac_exec_ext in '' $ac_executable_extensions; do
15069  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15070    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15072    break 2
15073  fi
15074done
15075  done
15076IFS=$as_save_IFS
15077
15078  ;;
15079esac
15080fi
15081PERL=$ac_cv_path_PERL
15082if test -n "$PERL"; then
15083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15084$as_echo "$PERL" >&6; }
15085else
15086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15087$as_echo "no" >&6; }
15088fi
15089
15090
15091  test -n "$PERL" && break
15092done
15093test -n "$PERL" || PERL="perl"
15094
15095
15096if test "$GCC" = "yes"
15097then
15098	CFLAGS="$CFLAGS -Wall"
15099fi
15100
15101if test "$GXX" = "yes"
15102then
15103	CXXFLAGS="$CXXFLAGS -Wall"
15104fi
15105
15106CFLAGS="$CFLAGS -I${srcdir}/.. -I.."
15107
15108
15109ac_header_dirent=no
15110for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15111  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15113$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15114if eval "test \"\${$as_ac_Header+set}\"" = set; then :
15115  $as_echo_n "(cached) " >&6
15116else
15117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118/* end confdefs.h.  */
15119#include <sys/types.h>
15120#include <$ac_hdr>
15121
15122int
15123main ()
15124{
15125if ((DIR *) 0)
15126return 0;
15127  ;
15128  return 0;
15129}
15130_ACEOF
15131if ac_fn_c_try_compile "$LINENO"; then :
15132  eval "$as_ac_Header=yes"
15133else
15134  eval "$as_ac_Header=no"
15135fi
15136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137fi
15138eval ac_res=\$$as_ac_Header
15139	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15140$as_echo "$ac_res" >&6; }
15141if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15142  cat >>confdefs.h <<_ACEOF
15143#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15144_ACEOF
15145
15146ac_header_dirent=$ac_hdr; break
15147fi
15148
15149done
15150# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15151if test $ac_header_dirent = dirent.h; then
15152  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15153$as_echo_n "checking for library containing opendir... " >&6; }
15154if test "${ac_cv_search_opendir+set}" = set; then :
15155  $as_echo_n "(cached) " >&6
15156else
15157  ac_func_search_save_LIBS=$LIBS
15158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159/* end confdefs.h.  */
15160
15161/* Override any GCC internal prototype to avoid an error.
15162   Use char because int might match the return type of a GCC
15163   builtin and then its argument prototype would still apply.  */
15164#ifdef __cplusplus
15165extern "C"
15166#endif
15167char opendir ();
15168int
15169main ()
15170{
15171return opendir ();
15172  ;
15173  return 0;
15174}
15175_ACEOF
15176for ac_lib in '' dir; do
15177  if test -z "$ac_lib"; then
15178    ac_res="none required"
15179  else
15180    ac_res=-l$ac_lib
15181    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15182  fi
15183  if ac_fn_c_try_link "$LINENO"; then :
15184  ac_cv_search_opendir=$ac_res
15185fi
15186rm -f core conftest.err conftest.$ac_objext \
15187    conftest$ac_exeext
15188  if test "${ac_cv_search_opendir+set}" = set; then :
15189  break
15190fi
15191done
15192if test "${ac_cv_search_opendir+set}" = set; then :
15193
15194else
15195  ac_cv_search_opendir=no
15196fi
15197rm conftest.$ac_ext
15198LIBS=$ac_func_search_save_LIBS
15199fi
15200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15201$as_echo "$ac_cv_search_opendir" >&6; }
15202ac_res=$ac_cv_search_opendir
15203if test "$ac_res" != no; then :
15204  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15205
15206fi
15207
15208else
15209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15210$as_echo_n "checking for library containing opendir... " >&6; }
15211if test "${ac_cv_search_opendir+set}" = set; then :
15212  $as_echo_n "(cached) " >&6
15213else
15214  ac_func_search_save_LIBS=$LIBS
15215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216/* end confdefs.h.  */
15217
15218/* Override any GCC internal prototype to avoid an error.
15219   Use char because int might match the return type of a GCC
15220   builtin and then its argument prototype would still apply.  */
15221#ifdef __cplusplus
15222extern "C"
15223#endif
15224char opendir ();
15225int
15226main ()
15227{
15228return opendir ();
15229  ;
15230  return 0;
15231}
15232_ACEOF
15233for ac_lib in '' x; do
15234  if test -z "$ac_lib"; then
15235    ac_res="none required"
15236  else
15237    ac_res=-l$ac_lib
15238    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15239  fi
15240  if ac_fn_c_try_link "$LINENO"; then :
15241  ac_cv_search_opendir=$ac_res
15242fi
15243rm -f core conftest.err conftest.$ac_objext \
15244    conftest$ac_exeext
15245  if test "${ac_cv_search_opendir+set}" = set; then :
15246  break
15247fi
15248done
15249if test "${ac_cv_search_opendir+set}" = set; then :
15250
15251else
15252  ac_cv_search_opendir=no
15253fi
15254rm conftest.$ac_ext
15255LIBS=$ac_func_search_save_LIBS
15256fi
15257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15258$as_echo "$ac_cv_search_opendir" >&6; }
15259ac_res=$ac_cv_search_opendir
15260if test "$ac_res" != no; then :
15261  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15262
15263fi
15264
15265fi
15266
15267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15268$as_echo_n "checking for ANSI C header files... " >&6; }
15269if test "${ac_cv_header_stdc+set}" = set; then :
15270  $as_echo_n "(cached) " >&6
15271else
15272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273/* end confdefs.h.  */
15274#include <stdlib.h>
15275#include <stdarg.h>
15276#include <string.h>
15277#include <float.h>
15278
15279int
15280main ()
15281{
15282
15283  ;
15284  return 0;
15285}
15286_ACEOF
15287if ac_fn_c_try_compile "$LINENO"; then :
15288  ac_cv_header_stdc=yes
15289else
15290  ac_cv_header_stdc=no
15291fi
15292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15293
15294if test $ac_cv_header_stdc = yes; then
15295  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15297/* end confdefs.h.  */
15298#include <string.h>
15299
15300_ACEOF
15301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15302  $EGREP "memchr" >/dev/null 2>&1; then :
15303
15304else
15305  ac_cv_header_stdc=no
15306fi
15307rm -f conftest*
15308
15309fi
15310
15311if test $ac_cv_header_stdc = yes; then
15312  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15314/* end confdefs.h.  */
15315#include <stdlib.h>
15316
15317_ACEOF
15318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15319  $EGREP "free" >/dev/null 2>&1; then :
15320
15321else
15322  ac_cv_header_stdc=no
15323fi
15324rm -f conftest*
15325
15326fi
15327
15328if test $ac_cv_header_stdc = yes; then
15329  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15330  if test "$cross_compiling" = yes; then :
15331  :
15332else
15333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334/* end confdefs.h.  */
15335#include <ctype.h>
15336#include <stdlib.h>
15337#if ((' ' & 0x0FF) == 0x020)
15338# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15339# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15340#else
15341# define ISLOWER(c) \
15342		   (('a' <= (c) && (c) <= 'i') \
15343		     || ('j' <= (c) && (c) <= 'r') \
15344		     || ('s' <= (c) && (c) <= 'z'))
15345# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15346#endif
15347
15348#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15349int
15350main ()
15351{
15352  int i;
15353  for (i = 0; i < 256; i++)
15354    if (XOR (islower (i), ISLOWER (i))
15355	|| toupper (i) != TOUPPER (i))
15356      return 2;
15357  return 0;
15358}
15359_ACEOF
15360if ac_fn_c_try_run "$LINENO"; then :
15361
15362else
15363  ac_cv_header_stdc=no
15364fi
15365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15366  conftest.$ac_objext conftest.beam conftest.$ac_ext
15367fi
15368
15369fi
15370fi
15371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15372$as_echo "$ac_cv_header_stdc" >&6; }
15373if test $ac_cv_header_stdc = yes; then
15374
15375$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15376
15377fi
15378
15379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15380$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15381if test "${ac_cv_header_time+set}" = set; then :
15382  $as_echo_n "(cached) " >&6
15383else
15384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15385/* end confdefs.h.  */
15386#include <sys/types.h>
15387#include <sys/time.h>
15388#include <time.h>
15389
15390int
15391main ()
15392{
15393if ((struct tm *) 0)
15394return 0;
15395  ;
15396  return 0;
15397}
15398_ACEOF
15399if ac_fn_c_try_compile "$LINENO"; then :
15400  ac_cv_header_time=yes
15401else
15402  ac_cv_header_time=no
15403fi
15404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15405fi
15406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15407$as_echo "$ac_cv_header_time" >&6; }
15408if test $ac_cv_header_time = yes; then
15409
15410$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15411
15412fi
15413
15414for ac_header in sys/stat.h sys/wait.h fcntl.h unistd.h sysexits.h utime.h pcre.h pcre/pcre.h
15415do :
15416  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15417ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15418if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15419  cat >>confdefs.h <<_ACEOF
15420#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15421_ACEOF
15422
15423fi
15424
15425done
15426
15427
15428ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
15429if test "x$ac_cv_header_pcre_h" = x""yes; then :
15430  LIBPCRE=-lpcre
15431fi
15432
15433
15434
15435ac_fn_c_check_header_mongrel "$LINENO" "pcre/pcre.h" "ac_cv_header_pcre_pcre_h" "$ac_includes_default"
15436if test "x$ac_cv_header_pcre_pcre_h" = x""yes; then :
15437  LIBPCRE=-lpcre
15438fi
15439
15440
15441
15442
15443
15444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15445$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15446if test "${ac_cv_header_sys_wait_h+set}" = set; then :
15447  $as_echo_n "(cached) " >&6
15448else
15449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450/* end confdefs.h.  */
15451#include <sys/types.h>
15452#include <sys/wait.h>
15453#ifndef WEXITSTATUS
15454# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15455#endif
15456#ifndef WIFEXITED
15457# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15458#endif
15459
15460int
15461main ()
15462{
15463  int s;
15464  wait (&s);
15465  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15466  ;
15467  return 0;
15468}
15469_ACEOF
15470if ac_fn_c_try_compile "$LINENO"; then :
15471  ac_cv_header_sys_wait_h=yes
15472else
15473  ac_cv_header_sys_wait_h=no
15474fi
15475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15476fi
15477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15478$as_echo "$ac_cv_header_sys_wait_h" >&6; }
15479if test $ac_cv_header_sys_wait_h = yes; then
15480
15481$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15482
15483fi
15484
15485
15486ac_ext=cpp
15487ac_cpp='$CXXCPP $CPPFLAGS'
15488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15491
15492
15493for ac_header in vector vector.h
15494do :
15495  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15496ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15497if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15498  cat >>confdefs.h <<_ACEOF
15499#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15500_ACEOF
15501
15502fi
15503
15504done
15505
15506ac_ext=c
15507ac_cpp='$CPP $CPPFLAGS'
15508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15510ac_compiler_gnu=$ac_cv_c_compiler_gnu
15511
15512
15513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15514$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15515if test "${ac_cv_c_const+set}" = set; then :
15516  $as_echo_n "(cached) " >&6
15517else
15518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15519/* end confdefs.h.  */
15520
15521int
15522main ()
15523{
15524/* FIXME: Include the comments suggested by Paul. */
15525#ifndef __cplusplus
15526  /* Ultrix mips cc rejects this.  */
15527  typedef int charset[2];
15528  const charset cs;
15529  /* SunOS 4.1.1 cc rejects this.  */
15530  char const *const *pcpcc;
15531  char **ppc;
15532  /* NEC SVR4.0.2 mips cc rejects this.  */
15533  struct point {int x, y;};
15534  static struct point const zero = {0,0};
15535  /* AIX XL C 1.02.0.0 rejects this.
15536     It does not let you subtract one const X* pointer from another in
15537     an arm of an if-expression whose if-part is not a constant
15538     expression */
15539  const char *g = "string";
15540  pcpcc = &g + (g ? g-g : 0);
15541  /* HPUX 7.0 cc rejects these. */
15542  ++pcpcc;
15543  ppc = (char**) pcpcc;
15544  pcpcc = (char const *const *) ppc;
15545  { /* SCO 3.2v4 cc rejects this.  */
15546    char *t;
15547    char const *s = 0 ? (char *) 0 : (char const *) 0;
15548
15549    *t++ = 0;
15550    if (s) return 0;
15551  }
15552  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15553    int x[] = {25, 17};
15554    const int *foo = &x[0];
15555    ++foo;
15556  }
15557  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15558    typedef const int *iptr;
15559    iptr p = 0;
15560    ++p;
15561  }
15562  { /* AIX XL C 1.02.0.0 rejects this saying
15563       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15564    struct s { int j; const int *ap[3]; };
15565    struct s *b; b->j = 5;
15566  }
15567  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15568    const int foo = 10;
15569    if (!foo) return 0;
15570  }
15571  return !cs[0] && !zero.x;
15572#endif
15573
15574  ;
15575  return 0;
15576}
15577_ACEOF
15578if ac_fn_c_try_compile "$LINENO"; then :
15579  ac_cv_c_const=yes
15580else
15581  ac_cv_c_const=no
15582fi
15583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15584fi
15585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15586$as_echo "$ac_cv_c_const" >&6; }
15587if test $ac_cv_c_const = no; then
15588
15589$as_echo "#define const /**/" >>confdefs.h
15590
15591fi
15592
15593ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15594if test "x$ac_cv_type_off_t" = x""yes; then :
15595
15596else
15597
15598cat >>confdefs.h <<_ACEOF
15599#define off_t long int
15600_ACEOF
15601
15602fi
15603
15604ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15605if test "x$ac_cv_type_size_t" = x""yes; then :
15606
15607else
15608
15609cat >>confdefs.h <<_ACEOF
15610#define size_t unsigned int
15611_ACEOF
15612
15613fi
15614
15615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15616$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15617if test "${ac_cv_type_uid_t+set}" = set; then :
15618  $as_echo_n "(cached) " >&6
15619else
15620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621/* end confdefs.h.  */
15622#include <sys/types.h>
15623
15624_ACEOF
15625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15626  $EGREP "uid_t" >/dev/null 2>&1; then :
15627  ac_cv_type_uid_t=yes
15628else
15629  ac_cv_type_uid_t=no
15630fi
15631rm -f conftest*
15632
15633fi
15634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15635$as_echo "$ac_cv_type_uid_t" >&6; }
15636if test $ac_cv_type_uid_t = no; then
15637
15638$as_echo "#define uid_t int" >>confdefs.h
15639
15640
15641$as_echo "#define gid_t int" >>confdefs.h
15642
15643fi
15644
15645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
15646$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15647if test "${ac_cv_struct_tm+set}" = set; then :
15648  $as_echo_n "(cached) " >&6
15649else
15650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15651/* end confdefs.h.  */
15652#include <sys/types.h>
15653#include <time.h>
15654
15655int
15656main ()
15657{
15658struct tm tm;
15659				     int *p = &tm.tm_sec;
15660				     return !p;
15661  ;
15662  return 0;
15663}
15664_ACEOF
15665if ac_fn_c_try_compile "$LINENO"; then :
15666  ac_cv_struct_tm=time.h
15667else
15668  ac_cv_struct_tm=sys/time.h
15669fi
15670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15671fi
15672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
15673$as_echo "$ac_cv_struct_tm" >&6; }
15674if test $ac_cv_struct_tm = sys/time.h; then
15675
15676$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
15677
15678fi
15679
15680
15681ac_fn_c_check_header_mongrel "$LINENO" "fam.h" "ac_cv_header_fam_h" "$ac_includes_default"
15682if test "x$ac_cv_header_fam_h" = x""yes; then :
15683  :
15684else
15685  :
15686fi
15687
15688
15689for ac_func in symlink readlink strcasecmp utime utimes
15690do :
15691  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15692ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15693if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15694  cat >>confdefs.h <<_ACEOF
15695#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15696_ACEOF
15697
15698fi
15699done
15700
15701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMOpen in -lfam" >&5
15702$as_echo_n "checking for FAMOpen in -lfam... " >&6; }
15703if test "${ac_cv_lib_fam_FAMOpen+set}" = set; then :
15704  $as_echo_n "(cached) " >&6
15705else
15706  ac_check_lib_save_LIBS=$LIBS
15707LIBS="-lfam  $LIBS"
15708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709/* end confdefs.h.  */
15710
15711/* Override any GCC internal prototype to avoid an error.
15712   Use char because int might match the return type of a GCC
15713   builtin and then its argument prototype would still apply.  */
15714#ifdef __cplusplus
15715extern "C"
15716#endif
15717char FAMOpen ();
15718int
15719main ()
15720{
15721return FAMOpen ();
15722  ;
15723  return 0;
15724}
15725_ACEOF
15726if ac_fn_c_try_link "$LINENO"; then :
15727  ac_cv_lib_fam_FAMOpen=yes
15728else
15729  ac_cv_lib_fam_FAMOpen=no
15730fi
15731rm -f core conftest.err conftest.$ac_objext \
15732    conftest$ac_exeext conftest.$ac_ext
15733LIBS=$ac_check_lib_save_LIBS
15734fi
15735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMOpen" >&5
15736$as_echo "$ac_cv_lib_fam_FAMOpen" >&6; }
15737if test "x$ac_cv_lib_fam_FAMOpen" = x""yes; then :
15738
15739			LIBFAM=-lfam
15740
15741cat >>confdefs.h <<_ACEOF
15742#define HAVE_FAM 1
15743_ACEOF
15744
15745
15746			ac_fn_c_check_header_mongrel "$LINENO" "fam.h" "ac_cv_header_fam_h" "$ac_includes_default"
15747if test "x$ac_cv_header_fam_h" = x""yes; then :
15748  :
15749else
15750
15751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The development header files and libraries for fam," >&5
15752$as_echo "$as_me: WARNING: The development header files and libraries for fam," >&2;}
15753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the File Alteration Monitor, are not installed." >&5
15754$as_echo "$as_me: WARNING: the File Alteration Monitor, are not installed." >&2;}
15755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You appear to have the FAM runtime libraries installed," >&5
15756$as_echo "$as_me: WARNING: You appear to have the FAM runtime libraries installed," >&2;}
15757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: so you need to simply install the additional development" >&5
15758$as_echo "$as_me: WARNING: so you need to simply install the additional development" >&2;}
15759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: package for your operating system." >&5
15760$as_echo "$as_me: WARNING: package for your operating system." >&2;}
15761as_fn_error $? "FAM development libraries not found." "$LINENO" 5
15762
15763fi
15764
15765
15766
15767fi
15768
15769
15770
15771
15772echo "$LIBFAM" >maildir.libdeps
15773
15774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing gethostname prototype" >&5
15775$as_echo_n "checking for missing gethostname prototype... " >&6; }
15776if test "${maildir_cv_SYS_GETHOSTNAME+set}" = set; then :
15777  $as_echo_n "(cached) " >&6
15778else
15779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780/* end confdefs.h.  */
15781
15782#if HAVE_UNISTD_H
15783#include	<unistd.h>
15784#endif
15785
15786extern "C" int gethostname(int,int);
15787
15788int
15789main ()
15790{
15791
15792
15793  ;
15794  return 0;
15795}
15796_ACEOF
15797if ac_fn_c_try_compile "$LINENO"; then :
15798  maildir_cv_SYS_GETHOSTNAME=yes
15799else
15800  maildir_cv_SYS_GETHOSTNAME=no
15801
15802fi
15803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15804
15805
15806fi
15807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maildir_cv_SYS_GETHOSTNAME" >&5
15808$as_echo "$maildir_cv_SYS_GETHOSTNAME" >&6; }
15809
15810if test $maildir_cv_SYS_GETHOSTNAME = "no"
15811then
15812
15813cat >>confdefs.h <<_ACEOF
15814#define HAS_GETHOSTNAME 1
15815_ACEOF
15816
15817fi
15818
15819
15820# Check whether --with-db was given.
15821if test "${with_db+set}" = set; then :
15822  withval=$with_db; db="$withval"
15823else
15824  db=""
15825fi
15826
15827
15828if test "$db" = "no"
15829then
15830	db=""
15831fi
15832
15833if test "$db" != ""
15834then
15835
15836cat >>confdefs.h <<_ACEOF
15837#define HAVE_DBOBJ 1
15838_ACEOF
15839
15840fi
15841
15842
15843# Check whether --with-trashquota was given.
15844if test "${with_trashquota+set}" = set; then :
15845  withval=$with_trashquota; trashquota="$withval"
15846else
15847  trashquota="no"
15848fi
15849
15850
15851if test "$trashquota" = "yes"
15852then
15853
15854cat >>confdefs.h <<_ACEOF
15855#define TRASHQUOTA 1
15856_ACEOF
15857
15858fi
15859
15860test "x$prefix" = xNONE && prefix=$ac_default_prefix
15861test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15862eval "prefix=$prefix"
15863eval "exec_prefix=$exec_prefix"
15864eval "sysconfdir=$sysconfdir"
15865
15866for ac_prog in mailbot
15867do
15868  # Extract the first word of "$ac_prog", so it can be a program name with args.
15869set dummy $ac_prog; ac_word=$2
15870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15871$as_echo_n "checking for $ac_word... " >&6; }
15872if test "${ac_cv_path_MAILBOT+set}" = set; then :
15873  $as_echo_n "(cached) " >&6
15874else
15875  case $MAILBOT in
15876  [\\/]* | ?:[\\/]*)
15877  ac_cv_path_MAILBOT="$MAILBOT" # Let the user override the test with a path.
15878  ;;
15879  *)
15880  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15881for as_dir in $LPATH
15882do
15883  IFS=$as_save_IFS
15884  test -z "$as_dir" && as_dir=.
15885    for ac_exec_ext in '' $ac_executable_extensions; do
15886  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15887    ac_cv_path_MAILBOT="$as_dir/$ac_word$ac_exec_ext"
15888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15889    break 2
15890  fi
15891done
15892  done
15893IFS=$as_save_IFS
15894
15895  ;;
15896esac
15897fi
15898MAILBOT=$ac_cv_path_MAILBOT
15899if test -n "$MAILBOT"; then
15900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAILBOT" >&5
15901$as_echo "$MAILBOT" >&6; }
15902else
15903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15904$as_echo "no" >&6; }
15905fi
15906
15907
15908  test -n "$MAILBOT" && break
15909done
15910test -n "$MAILBOT" || MAILBOT="mailbot"
15911
15912
15913if test -d $srcdir/../courier
15914then
15915	MAILBOT="$bindir/mailbot"
15916
15917cat >>confdefs.h <<_ACEOF
15918#define HAVE_COURIER 1
15919_ACEOF
15920
15921fi
15922
15923
15924 if test -d ${srcdir}/../docbook; then
15925  HAVE_SGML_TRUE=
15926  HAVE_SGML_FALSE='#'
15927else
15928  HAVE_SGML_TRUE='#'
15929  HAVE_SGML_FALSE=
15930fi
15931
15932
15933if test "$target_os" = "cygwin"
15934then
15935
15936cat >>confdefs.h <<_ACEOF
15937#define MDIRSEP "!"
15938_ACEOF
15939
15940else
15941
15942cat >>confdefs.h <<_ACEOF
15943#define MDIRSEP ":"
15944_ACEOF
15945
15946fi
15947
15948ac_config_files="$ac_config_files Makefile sharedindexinstall sharedindexsplit"
15949
15950cat >confcache <<\_ACEOF
15951# This file is a shell script that caches the results of configure
15952# tests run on this system so they can be shared between configure
15953# scripts and configure runs, see configure's option --config-cache.
15954# It is not useful on other systems.  If it contains results you don't
15955# want to keep, you may remove or edit it.
15956#
15957# config.status only pays attention to the cache file if you give it
15958# the --recheck option to rerun configure.
15959#
15960# `ac_cv_env_foo' variables (set or unset) will be overridden when
15961# loading this file, other *unset* `ac_cv_foo' will be assigned the
15962# following values.
15963
15964_ACEOF
15965
15966# The following way of writing the cache mishandles newlines in values,
15967# but we know of no workaround that is simple, portable, and efficient.
15968# So, we kill variables containing newlines.
15969# Ultrix sh set writes to stderr and can't be redirected directly,
15970# and sets the high bit in the cache file unless we assign to the vars.
15971(
15972  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15973    eval ac_val=\$$ac_var
15974    case $ac_val in #(
15975    *${as_nl}*)
15976      case $ac_var in #(
15977      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15978$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15979      esac
15980      case $ac_var in #(
15981      _ | IFS | as_nl) ;; #(
15982      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15983      *) { eval $ac_var=; unset $ac_var;} ;;
15984      esac ;;
15985    esac
15986  done
15987
15988  (set) 2>&1 |
15989    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15990    *${as_nl}ac_space=\ *)
15991      # `set' does not quote correctly, so add quotes: double-quote
15992      # substitution turns \\\\ into \\, and sed turns \\ into \.
15993      sed -n \
15994	"s/'/'\\\\''/g;
15995	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15996      ;; #(
15997    *)
15998      # `set' quotes correctly as required by POSIX, so do not add quotes.
15999      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16000      ;;
16001    esac |
16002    sort
16003) |
16004  sed '
16005     /^ac_cv_env_/b end
16006     t clear
16007     :clear
16008     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16009     t end
16010     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16011     :end' >>confcache
16012if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16013  if test -w "$cache_file"; then
16014    test "x$cache_file" != "x/dev/null" &&
16015      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16016$as_echo "$as_me: updating cache $cache_file" >&6;}
16017    cat confcache >$cache_file
16018  else
16019    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16020$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16021  fi
16022fi
16023rm -f confcache
16024
16025test "x$prefix" = xNONE && prefix=$ac_default_prefix
16026# Let make expand exec_prefix.
16027test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16028
16029DEFS=-DHAVE_CONFIG_H
16030
16031ac_libobjs=
16032ac_ltlibobjs=
16033U=
16034for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16035  # 1. Remove the extension, and $U if already installed.
16036  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16037  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16038  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16039  #    will be set to the directory where LIBOBJS objects are built.
16040  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16041  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16042done
16043LIBOBJS=$ac_libobjs
16044
16045LTLIBOBJS=$ac_ltlibobjs
16046
16047
16048 if test -n "$EXEEXT"; then
16049  am__EXEEXT_TRUE=
16050  am__EXEEXT_FALSE='#'
16051else
16052  am__EXEEXT_TRUE='#'
16053  am__EXEEXT_FALSE=
16054fi
16055
16056if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16057  as_fn_error $? "conditional \"AMDEP\" was never defined.
16058Usually this means the macro was only invoked conditionally." "$LINENO" 5
16059fi
16060if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16061  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16062Usually this means the macro was only invoked conditionally." "$LINENO" 5
16063fi
16064if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16065  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16066Usually this means the macro was only invoked conditionally." "$LINENO" 5
16067fi
16068if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16069  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16070Usually this means the macro was only invoked conditionally." "$LINENO" 5
16071fi
16072if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
16073  as_fn_error $? "conditional \"HAVE_SGML\" was never defined.
16074Usually this means the macro was only invoked conditionally." "$LINENO" 5
16075fi
16076
16077: ${CONFIG_STATUS=./config.status}
16078ac_write_fail=0
16079ac_clean_files_save=$ac_clean_files
16080ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16081{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16082$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16083as_write_fail=0
16084cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16085#! $SHELL
16086# Generated by $as_me.
16087# Run this file to recreate the current configuration.
16088# Compiler output produced by configure, useful for debugging
16089# configure, is in config.log if it exists.
16090
16091debug=false
16092ac_cs_recheck=false
16093ac_cs_silent=false
16094
16095SHELL=\${CONFIG_SHELL-$SHELL}
16096export SHELL
16097_ASEOF
16098cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16099## -------------------- ##
16100## M4sh Initialization. ##
16101## -------------------- ##
16102
16103# Be more Bourne compatible
16104DUALCASE=1; export DUALCASE # for MKS sh
16105if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16106  emulate sh
16107  NULLCMD=:
16108  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16109  # is contrary to our usage.  Disable this feature.
16110  alias -g '${1+"$@"}'='"$@"'
16111  setopt NO_GLOB_SUBST
16112else
16113  case `(set -o) 2>/dev/null` in #(
16114  *posix*) :
16115    set -o posix ;; #(
16116  *) :
16117     ;;
16118esac
16119fi
16120
16121
16122as_nl='
16123'
16124export as_nl
16125# Printing a long string crashes Solaris 7 /usr/bin/printf.
16126as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16127as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16128as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16129# Prefer a ksh shell builtin over an external printf program on Solaris,
16130# but without wasting forks for bash or zsh.
16131if test -z "$BASH_VERSION$ZSH_VERSION" \
16132    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16133  as_echo='print -r --'
16134  as_echo_n='print -rn --'
16135elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16136  as_echo='printf %s\n'
16137  as_echo_n='printf %s'
16138else
16139  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16140    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16141    as_echo_n='/usr/ucb/echo -n'
16142  else
16143    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16144    as_echo_n_body='eval
16145      arg=$1;
16146      case $arg in #(
16147      *"$as_nl"*)
16148	expr "X$arg" : "X\\(.*\\)$as_nl";
16149	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16150      esac;
16151      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16152    '
16153    export as_echo_n_body
16154    as_echo_n='sh -c $as_echo_n_body as_echo'
16155  fi
16156  export as_echo_body
16157  as_echo='sh -c $as_echo_body as_echo'
16158fi
16159
16160# The user is always right.
16161if test "${PATH_SEPARATOR+set}" != set; then
16162  PATH_SEPARATOR=:
16163  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16164    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16165      PATH_SEPARATOR=';'
16166  }
16167fi
16168
16169
16170# IFS
16171# We need space, tab and new line, in precisely that order.  Quoting is
16172# there to prevent editors from complaining about space-tab.
16173# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16174# splitting by setting IFS to empty value.)
16175IFS=" ""	$as_nl"
16176
16177# Find who we are.  Look in the path if we contain no directory separator.
16178case $0 in #((
16179  *[\\/]* ) as_myself=$0 ;;
16180  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16181for as_dir in $PATH
16182do
16183  IFS=$as_save_IFS
16184  test -z "$as_dir" && as_dir=.
16185    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16186  done
16187IFS=$as_save_IFS
16188
16189     ;;
16190esac
16191# We did not find ourselves, most probably we were run as `sh COMMAND'
16192# in which case we are not to be found in the path.
16193if test "x$as_myself" = x; then
16194  as_myself=$0
16195fi
16196if test ! -f "$as_myself"; then
16197  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16198  exit 1
16199fi
16200
16201# Unset variables that we do not need and which cause bugs (e.g. in
16202# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16203# suppresses any "Segmentation fault" message there.  '((' could
16204# trigger a bug in pdksh 5.2.14.
16205for as_var in BASH_ENV ENV MAIL MAILPATH
16206do eval test x\${$as_var+set} = xset \
16207  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16208done
16209PS1='$ '
16210PS2='> '
16211PS4='+ '
16212
16213# NLS nuisances.
16214LC_ALL=C
16215export LC_ALL
16216LANGUAGE=C
16217export LANGUAGE
16218
16219# CDPATH.
16220(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16221
16222
16223# as_fn_error STATUS ERROR [LINENO LOG_FD]
16224# ----------------------------------------
16225# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16226# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16227# script with STATUS, using 1 if that was 0.
16228as_fn_error ()
16229{
16230  as_status=$1; test $as_status -eq 0 && as_status=1
16231  if test "$4"; then
16232    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16233    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16234  fi
16235  $as_echo "$as_me: error: $2" >&2
16236  as_fn_exit $as_status
16237} # as_fn_error
16238
16239
16240# as_fn_set_status STATUS
16241# -----------------------
16242# Set $? to STATUS, without forking.
16243as_fn_set_status ()
16244{
16245  return $1
16246} # as_fn_set_status
16247
16248# as_fn_exit STATUS
16249# -----------------
16250# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16251as_fn_exit ()
16252{
16253  set +e
16254  as_fn_set_status $1
16255  exit $1
16256} # as_fn_exit
16257
16258# as_fn_unset VAR
16259# ---------------
16260# Portably unset VAR.
16261as_fn_unset ()
16262{
16263  { eval $1=; unset $1;}
16264}
16265as_unset=as_fn_unset
16266# as_fn_append VAR VALUE
16267# ----------------------
16268# Append the text in VALUE to the end of the definition contained in VAR. Take
16269# advantage of any shell optimizations that allow amortized linear growth over
16270# repeated appends, instead of the typical quadratic growth present in naive
16271# implementations.
16272if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16273  eval 'as_fn_append ()
16274  {
16275    eval $1+=\$2
16276  }'
16277else
16278  as_fn_append ()
16279  {
16280    eval $1=\$$1\$2
16281  }
16282fi # as_fn_append
16283
16284# as_fn_arith ARG...
16285# ------------------
16286# Perform arithmetic evaluation on the ARGs, and store the result in the
16287# global $as_val. Take advantage of shells that can avoid forks. The arguments
16288# must be portable across $(()) and expr.
16289if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16290  eval 'as_fn_arith ()
16291  {
16292    as_val=$(( $* ))
16293  }'
16294else
16295  as_fn_arith ()
16296  {
16297    as_val=`expr "$@" || test $? -eq 1`
16298  }
16299fi # as_fn_arith
16300
16301
16302if expr a : '\(a\)' >/dev/null 2>&1 &&
16303   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16304  as_expr=expr
16305else
16306  as_expr=false
16307fi
16308
16309if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16310  as_basename=basename
16311else
16312  as_basename=false
16313fi
16314
16315if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16316  as_dirname=dirname
16317else
16318  as_dirname=false
16319fi
16320
16321as_me=`$as_basename -- "$0" ||
16322$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16323	 X"$0" : 'X\(//\)$' \| \
16324	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16325$as_echo X/"$0" |
16326    sed '/^.*\/\([^/][^/]*\)\/*$/{
16327	    s//\1/
16328	    q
16329	  }
16330	  /^X\/\(\/\/\)$/{
16331	    s//\1/
16332	    q
16333	  }
16334	  /^X\/\(\/\).*/{
16335	    s//\1/
16336	    q
16337	  }
16338	  s/.*/./; q'`
16339
16340# Avoid depending upon Character Ranges.
16341as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16342as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16343as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16344as_cr_digits='0123456789'
16345as_cr_alnum=$as_cr_Letters$as_cr_digits
16346
16347ECHO_C= ECHO_N= ECHO_T=
16348case `echo -n x` in #(((((
16349-n*)
16350  case `echo 'xy\c'` in
16351  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16352  xy)  ECHO_C='\c';;
16353  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16354       ECHO_T='	';;
16355  esac;;
16356*)
16357  ECHO_N='-n';;
16358esac
16359
16360rm -f conf$$ conf$$.exe conf$$.file
16361if test -d conf$$.dir; then
16362  rm -f conf$$.dir/conf$$.file
16363else
16364  rm -f conf$$.dir
16365  mkdir conf$$.dir 2>/dev/null
16366fi
16367if (echo >conf$$.file) 2>/dev/null; then
16368  if ln -s conf$$.file conf$$ 2>/dev/null; then
16369    as_ln_s='ln -s'
16370    # ... but there are two gotchas:
16371    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16372    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16373    # In both cases, we have to default to `cp -p'.
16374    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16375      as_ln_s='cp -p'
16376  elif ln conf$$.file conf$$ 2>/dev/null; then
16377    as_ln_s=ln
16378  else
16379    as_ln_s='cp -p'
16380  fi
16381else
16382  as_ln_s='cp -p'
16383fi
16384rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16385rmdir conf$$.dir 2>/dev/null
16386
16387
16388# as_fn_mkdir_p
16389# -------------
16390# Create "$as_dir" as a directory, including parents if necessary.
16391as_fn_mkdir_p ()
16392{
16393
16394  case $as_dir in #(
16395  -*) as_dir=./$as_dir;;
16396  esac
16397  test -d "$as_dir" || eval $as_mkdir_p || {
16398    as_dirs=
16399    while :; do
16400      case $as_dir in #(
16401      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16402      *) as_qdir=$as_dir;;
16403      esac
16404      as_dirs="'$as_qdir' $as_dirs"
16405      as_dir=`$as_dirname -- "$as_dir" ||
16406$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16407	 X"$as_dir" : 'X\(//\)[^/]' \| \
16408	 X"$as_dir" : 'X\(//\)$' \| \
16409	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16410$as_echo X"$as_dir" |
16411    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16412	    s//\1/
16413	    q
16414	  }
16415	  /^X\(\/\/\)[^/].*/{
16416	    s//\1/
16417	    q
16418	  }
16419	  /^X\(\/\/\)$/{
16420	    s//\1/
16421	    q
16422	  }
16423	  /^X\(\/\).*/{
16424	    s//\1/
16425	    q
16426	  }
16427	  s/.*/./; q'`
16428      test -d "$as_dir" && break
16429    done
16430    test -z "$as_dirs" || eval "mkdir $as_dirs"
16431  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16432
16433
16434} # as_fn_mkdir_p
16435if mkdir -p . 2>/dev/null; then
16436  as_mkdir_p='mkdir -p "$as_dir"'
16437else
16438  test -d ./-p && rmdir ./-p
16439  as_mkdir_p=false
16440fi
16441
16442if test -x / >/dev/null 2>&1; then
16443  as_test_x='test -x'
16444else
16445  if ls -dL / >/dev/null 2>&1; then
16446    as_ls_L_option=L
16447  else
16448    as_ls_L_option=
16449  fi
16450  as_test_x='
16451    eval sh -c '\''
16452      if test -d "$1"; then
16453	test -d "$1/.";
16454      else
16455	case $1 in #(
16456	-*)set "./$1";;
16457	esac;
16458	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16459	???[sx]*):;;*)false;;esac;fi
16460    '\'' sh
16461  '
16462fi
16463as_executable_p=$as_test_x
16464
16465# Sed expression to map a string onto a valid CPP name.
16466as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16467
16468# Sed expression to map a string onto a valid variable name.
16469as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16470
16471
16472exec 6>&1
16473## ----------------------------------- ##
16474## Main body of $CONFIG_STATUS script. ##
16475## ----------------------------------- ##
16476_ASEOF
16477test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16478
16479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16480# Save the log message, to keep $0 and so on meaningful, and to
16481# report actual input values of CONFIG_FILES etc. instead of their
16482# values after options handling.
16483ac_log="
16484This file was extended by maildir $as_me 0.11, which was
16485generated by GNU Autoconf 2.66.  Invocation command line was
16486
16487  CONFIG_FILES    = $CONFIG_FILES
16488  CONFIG_HEADERS  = $CONFIG_HEADERS
16489  CONFIG_LINKS    = $CONFIG_LINKS
16490  CONFIG_COMMANDS = $CONFIG_COMMANDS
16491  $ $0 $@
16492
16493on `(hostname || uname -n) 2>/dev/null | sed 1q`
16494"
16495
16496_ACEOF
16497
16498case $ac_config_files in *"
16499"*) set x $ac_config_files; shift; ac_config_files=$*;;
16500esac
16501
16502case $ac_config_headers in *"
16503"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16504esac
16505
16506
16507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16508# Files that config.status was made for.
16509config_files="$ac_config_files"
16510config_headers="$ac_config_headers"
16511config_commands="$ac_config_commands"
16512
16513_ACEOF
16514
16515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16516ac_cs_usage="\
16517\`$as_me' instantiates files and other configuration actions
16518from templates according to the current configuration.  Unless the files
16519and actions are specified as TAGs, all are instantiated by default.
16520
16521Usage: $0 [OPTION]... [TAG]...
16522
16523  -h, --help       print this help, then exit
16524  -V, --version    print version number and configuration settings, then exit
16525      --config     print configuration, then exit
16526  -q, --quiet, --silent
16527                   do not print progress messages
16528  -d, --debug      don't remove temporary files
16529      --recheck    update $as_me by reconfiguring in the same conditions
16530      --file=FILE[:TEMPLATE]
16531                   instantiate the configuration file FILE
16532      --header=FILE[:TEMPLATE]
16533                   instantiate the configuration header FILE
16534
16535Configuration files:
16536$config_files
16537
16538Configuration headers:
16539$config_headers
16540
16541Configuration commands:
16542$config_commands
16543
16544Report bugs to <courier-maildrop@lists.sourceforge.net>."
16545
16546_ACEOF
16547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16548ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16549ac_cs_version="\\
16550maildir config.status 0.11
16551configured by $0, generated by GNU Autoconf 2.66,
16552  with options \\"\$ac_cs_config\\"
16553
16554Copyright (C) 2010 Free Software Foundation, Inc.
16555This config.status script is free software; the Free Software Foundation
16556gives unlimited permission to copy, distribute and modify it."
16557
16558ac_pwd='$ac_pwd'
16559srcdir='$srcdir'
16560INSTALL='$INSTALL'
16561MKDIR_P='$MKDIR_P'
16562AWK='$AWK'
16563test -n "\$AWK" || AWK=awk
16564_ACEOF
16565
16566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16567# The default lists apply if the user does not specify any file.
16568ac_need_defaults=:
16569while test $# != 0
16570do
16571  case $1 in
16572  --*=*)
16573    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16574    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16575    ac_shift=:
16576    ;;
16577  *)
16578    ac_option=$1
16579    ac_optarg=$2
16580    ac_shift=shift
16581    ;;
16582  esac
16583
16584  case $ac_option in
16585  # Handling of the options.
16586  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16587    ac_cs_recheck=: ;;
16588  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16589    $as_echo "$ac_cs_version"; exit ;;
16590  --config | --confi | --conf | --con | --co | --c )
16591    $as_echo "$ac_cs_config"; exit ;;
16592  --debug | --debu | --deb | --de | --d | -d )
16593    debug=: ;;
16594  --file | --fil | --fi | --f )
16595    $ac_shift
16596    case $ac_optarg in
16597    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16598    esac
16599    as_fn_append CONFIG_FILES " '$ac_optarg'"
16600    ac_need_defaults=false;;
16601  --header | --heade | --head | --hea )
16602    $ac_shift
16603    case $ac_optarg in
16604    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16605    esac
16606    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16607    ac_need_defaults=false;;
16608  --he | --h)
16609    # Conflict between --help and --header
16610    as_fn_error $? "ambiguous option: \`$1'
16611Try \`$0 --help' for more information.";;
16612  --help | --hel | -h )
16613    $as_echo "$ac_cs_usage"; exit ;;
16614  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16615  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16616    ac_cs_silent=: ;;
16617
16618  # This is an error.
16619  -*) as_fn_error $? "unrecognized option: \`$1'
16620Try \`$0 --help' for more information." ;;
16621
16622  *) as_fn_append ac_config_targets " $1"
16623     ac_need_defaults=false ;;
16624
16625  esac
16626  shift
16627done
16628
16629ac_configure_extra_args=
16630
16631if $ac_cs_silent; then
16632  exec 6>/dev/null
16633  ac_configure_extra_args="$ac_configure_extra_args --silent"
16634fi
16635
16636_ACEOF
16637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16638if \$ac_cs_recheck; then
16639  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16640  shift
16641  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16642  CONFIG_SHELL='$SHELL'
16643  export CONFIG_SHELL
16644  exec "\$@"
16645fi
16646
16647_ACEOF
16648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16649exec 5>>config.log
16650{
16651  echo
16652  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16653## Running $as_me. ##
16654_ASBOX
16655  $as_echo "$ac_log"
16656} >&5
16657
16658_ACEOF
16659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16660#
16661# INIT-COMMANDS
16662#
16663AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16664
16665
16666# The HP-UX ksh and POSIX shell print the target directory to stdout
16667# if CDPATH is set.
16668(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16669
16670sed_quote_subst='$sed_quote_subst'
16671double_quote_subst='$double_quote_subst'
16672delay_variable_subst='$delay_variable_subst'
16673macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16674macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16675enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16676enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16677pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16678enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16679SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16680ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16681host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16682host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16683host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16684build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16685build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16686build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16687SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16688Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16689GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16690EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16691FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16692LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16693NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16694LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16695max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16696ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16697exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16698lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16699lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16700lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16701reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16702reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16703OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16704deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16705file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16706AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16707AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16708STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16709RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16710old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16711old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16712old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16713lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16714CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16715CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16716compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16717GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16718lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16719lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16720lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16721lt_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"`'
16722objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16723MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16724lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16725lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16726lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16727lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16728lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16729need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16730DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16731NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16732LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16733OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16734OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16735libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16736shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16737extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16738archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16739enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16740export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16741whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16742compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16743old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16744old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16745archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16746archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16747module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16748module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16749with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16750allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16751no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16752hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16753hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16754hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16755hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16756hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16757hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16758hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16759hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16760inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16761link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16762fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16763always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16764export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16765exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16766include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16767prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16768file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16769variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16770need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16771need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16772version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16773runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16774shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16775shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16776libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16777library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16778soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16779install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16780postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16781postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16782finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16783finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16784hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16785sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16786sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16787hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16788enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16789enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16790enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16791old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16792striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16793compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16794predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16795postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16796predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16797postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16798compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16799LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16800reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16801reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16802old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16803compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16804GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16805lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16806lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16807lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16808lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16809lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16810archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16811enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16812export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16813whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16814compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16815old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16816old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16817archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16818archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16819module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16820module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16821with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16822allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16823no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16824hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16825hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16826hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16827hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16828hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16829hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16830hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16831hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16832inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16833link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16834fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16835always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16836export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16837exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16838include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16839prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16840file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16841hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16842compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16843predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16844postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16845predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16846postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16847compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16848
16849LTCC='$LTCC'
16850LTCFLAGS='$LTCFLAGS'
16851compiler='$compiler_DEFAULT'
16852
16853# A function that is used when there is no print builtin or printf.
16854func_fallback_echo ()
16855{
16856  eval 'cat <<_LTECHO_EOF
16857\$1
16858_LTECHO_EOF'
16859}
16860
16861# Quote evaled strings.
16862for var in SHELL \
16863ECHO \
16864SED \
16865GREP \
16866EGREP \
16867FGREP \
16868LD \
16869NM \
16870LN_S \
16871lt_SP2NL \
16872lt_NL2SP \
16873reload_flag \
16874OBJDUMP \
16875deplibs_check_method \
16876file_magic_cmd \
16877AR \
16878AR_FLAGS \
16879STRIP \
16880RANLIB \
16881CC \
16882CFLAGS \
16883compiler \
16884lt_cv_sys_global_symbol_pipe \
16885lt_cv_sys_global_symbol_to_cdecl \
16886lt_cv_sys_global_symbol_to_c_name_address \
16887lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16888lt_prog_compiler_no_builtin_flag \
16889lt_prog_compiler_wl \
16890lt_prog_compiler_pic \
16891lt_prog_compiler_static \
16892lt_cv_prog_compiler_c_o \
16893need_locks \
16894DSYMUTIL \
16895NMEDIT \
16896LIPO \
16897OTOOL \
16898OTOOL64 \
16899shrext_cmds \
16900export_dynamic_flag_spec \
16901whole_archive_flag_spec \
16902compiler_needs_object \
16903with_gnu_ld \
16904allow_undefined_flag \
16905no_undefined_flag \
16906hardcode_libdir_flag_spec \
16907hardcode_libdir_flag_spec_ld \
16908hardcode_libdir_separator \
16909fix_srcfile_path \
16910exclude_expsyms \
16911include_expsyms \
16912file_list_spec \
16913variables_saved_for_relink \
16914libname_spec \
16915library_names_spec \
16916soname_spec \
16917install_override_mode \
16918finish_eval \
16919old_striplib \
16920striplib \
16921compiler_lib_search_dirs \
16922predep_objects \
16923postdep_objects \
16924predeps \
16925postdeps \
16926compiler_lib_search_path \
16927LD_CXX \
16928reload_flag_CXX \
16929compiler_CXX \
16930lt_prog_compiler_no_builtin_flag_CXX \
16931lt_prog_compiler_wl_CXX \
16932lt_prog_compiler_pic_CXX \
16933lt_prog_compiler_static_CXX \
16934lt_cv_prog_compiler_c_o_CXX \
16935export_dynamic_flag_spec_CXX \
16936whole_archive_flag_spec_CXX \
16937compiler_needs_object_CXX \
16938with_gnu_ld_CXX \
16939allow_undefined_flag_CXX \
16940no_undefined_flag_CXX \
16941hardcode_libdir_flag_spec_CXX \
16942hardcode_libdir_flag_spec_ld_CXX \
16943hardcode_libdir_separator_CXX \
16944fix_srcfile_path_CXX \
16945exclude_expsyms_CXX \
16946include_expsyms_CXX \
16947file_list_spec_CXX \
16948compiler_lib_search_dirs_CXX \
16949predep_objects_CXX \
16950postdep_objects_CXX \
16951predeps_CXX \
16952postdeps_CXX \
16953compiler_lib_search_path_CXX; do
16954    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16955    *[\\\\\\\`\\"\\\$]*)
16956      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16957      ;;
16958    *)
16959      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16960      ;;
16961    esac
16962done
16963
16964# Double-quote double-evaled strings.
16965for var in reload_cmds \
16966old_postinstall_cmds \
16967old_postuninstall_cmds \
16968old_archive_cmds \
16969extract_expsyms_cmds \
16970old_archive_from_new_cmds \
16971old_archive_from_expsyms_cmds \
16972archive_cmds \
16973archive_expsym_cmds \
16974module_cmds \
16975module_expsym_cmds \
16976export_symbols_cmds \
16977prelink_cmds \
16978postinstall_cmds \
16979postuninstall_cmds \
16980finish_cmds \
16981sys_lib_search_path_spec \
16982sys_lib_dlsearch_path_spec \
16983reload_cmds_CXX \
16984old_archive_cmds_CXX \
16985old_archive_from_new_cmds_CXX \
16986old_archive_from_expsyms_cmds_CXX \
16987archive_cmds_CXX \
16988archive_expsym_cmds_CXX \
16989module_cmds_CXX \
16990module_expsym_cmds_CXX \
16991export_symbols_cmds_CXX \
16992prelink_cmds_CXX; do
16993    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16994    *[\\\\\\\`\\"\\\$]*)
16995      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16996      ;;
16997    *)
16998      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16999      ;;
17000    esac
17001done
17002
17003ac_aux_dir='$ac_aux_dir'
17004xsi_shell='$xsi_shell'
17005lt_shell_append='$lt_shell_append'
17006
17007# See if we are running on zsh, and set the options which allow our
17008# commands through without removal of \ escapes INIT.
17009if test -n "\${ZSH_VERSION+set}" ; then
17010   setopt NO_GLOB_SUBST
17011fi
17012
17013
17014    PACKAGE='$PACKAGE'
17015    VERSION='$VERSION'
17016    TIMESTAMP='$TIMESTAMP'
17017    RM='$RM'
17018    ofile='$ofile'
17019
17020
17021
17022
17023
17024
17025_ACEOF
17026
17027cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17028
17029# Handling of arguments.
17030for ac_config_target in $ac_config_targets
17031do
17032  case $ac_config_target in
17033    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17034    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17035    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17036    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17037    "sharedindexinstall") CONFIG_FILES="$CONFIG_FILES sharedindexinstall" ;;
17038    "sharedindexsplit") CONFIG_FILES="$CONFIG_FILES sharedindexsplit" ;;
17039
17040  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17041  esac
17042done
17043
17044
17045# If the user did not use the arguments to specify the items to instantiate,
17046# then the envvar interface is used.  Set only those that are not.
17047# We use the long form for the default assignment because of an extremely
17048# bizarre bug on SunOS 4.1.3.
17049if $ac_need_defaults; then
17050  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17051  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17052  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17053fi
17054
17055# Have a temporary directory for convenience.  Make it in the build tree
17056# simply because there is no reason against having it here, and in addition,
17057# creating and moving files from /tmp can sometimes cause problems.
17058# Hook for its removal unless debugging.
17059# Note that there is a small window in which the directory will not be cleaned:
17060# after its creation but before its name has been assigned to `$tmp'.
17061$debug ||
17062{
17063  tmp=
17064  trap 'exit_status=$?
17065  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17066' 0
17067  trap 'as_fn_exit 1' 1 2 13 15
17068}
17069# Create a (secure) tmp directory for tmp files.
17070
17071{
17072  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17073  test -n "$tmp" && test -d "$tmp"
17074}  ||
17075{
17076  tmp=./conf$$-$RANDOM
17077  (umask 077 && mkdir "$tmp")
17078} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17079
17080# Set up the scripts for CONFIG_FILES section.
17081# No need to generate them if there are no CONFIG_FILES.
17082# This happens for instance with `./config.status config.h'.
17083if test -n "$CONFIG_FILES"; then
17084
17085
17086ac_cr=`echo X | tr X '\015'`
17087# On cygwin, bash can eat \r inside `` if the user requested igncr.
17088# But we know of no other shell where ac_cr would be empty at this
17089# point, so we can use a bashism as a fallback.
17090if test "x$ac_cr" = x; then
17091  eval ac_cr=\$\'\\r\'
17092fi
17093ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17094if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17095  ac_cs_awk_cr='\\r'
17096else
17097  ac_cs_awk_cr=$ac_cr
17098fi
17099
17100echo 'BEGIN {' >"$tmp/subs1.awk" &&
17101_ACEOF
17102
17103
17104{
17105  echo "cat >conf$$subs.awk <<_ACEOF" &&
17106  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17107  echo "_ACEOF"
17108} >conf$$subs.sh ||
17109  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17110ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17111ac_delim='%!_!# '
17112for ac_last_try in false false false false false :; do
17113  . ./conf$$subs.sh ||
17114    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17115
17116  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17117  if test $ac_delim_n = $ac_delim_num; then
17118    break
17119  elif $ac_last_try; then
17120    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17121  else
17122    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17123  fi
17124done
17125rm -f conf$$subs.sh
17126
17127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17128cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17129_ACEOF
17130sed -n '
17131h
17132s/^/S["/; s/!.*/"]=/
17133p
17134g
17135s/^[^!]*!//
17136:repl
17137t repl
17138s/'"$ac_delim"'$//
17139t delim
17140:nl
17141h
17142s/\(.\{148\}\)..*/\1/
17143t more1
17144s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17145p
17146n
17147b repl
17148:more1
17149s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17150p
17151g
17152s/.\{148\}//
17153t nl
17154:delim
17155h
17156s/\(.\{148\}\)..*/\1/
17157t more2
17158s/["\\]/\\&/g; s/^/"/; s/$/"/
17159p
17160b
17161:more2
17162s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17163p
17164g
17165s/.\{148\}//
17166t delim
17167' <conf$$subs.awk | sed '
17168/^[^""]/{
17169  N
17170  s/\n//
17171}
17172' >>$CONFIG_STATUS || ac_write_fail=1
17173rm -f conf$$subs.awk
17174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17175_ACAWK
17176cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17177  for (key in S) S_is_set[key] = 1
17178  FS = ""
17179
17180}
17181{
17182  line = $ 0
17183  nfields = split(line, field, "@")
17184  substed = 0
17185  len = length(field[1])
17186  for (i = 2; i < nfields; i++) {
17187    key = field[i]
17188    keylen = length(key)
17189    if (S_is_set[key]) {
17190      value = S[key]
17191      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17192      len += length(value) + length(field[++i])
17193      substed = 1
17194    } else
17195      len += 1 + keylen
17196  }
17197
17198  print line
17199}
17200
17201_ACAWK
17202_ACEOF
17203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17204if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17205  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17206else
17207  cat
17208fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17209  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17210_ACEOF
17211
17212# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17213# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17214# trailing colons and then remove the whole line if VPATH becomes empty
17215# (actually we leave an empty line to preserve line numbers).
17216if test "x$srcdir" = x.; then
17217  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17218h
17219s///
17220s/^/:/
17221s/[	 ]*$/:/
17222s/:\$(srcdir):/:/g
17223s/:\${srcdir}:/:/g
17224s/:@srcdir@:/:/g
17225s/^:*//
17226s/:*$//
17227x
17228s/\(=[	 ]*\).*/\1/
17229G
17230s/\n//
17231s/^[^=]*=[	 ]*$//
17232}'
17233fi
17234
17235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17236fi # test -n "$CONFIG_FILES"
17237
17238# Set up the scripts for CONFIG_HEADERS section.
17239# No need to generate them if there are no CONFIG_HEADERS.
17240# This happens for instance with `./config.status Makefile'.
17241if test -n "$CONFIG_HEADERS"; then
17242cat >"$tmp/defines.awk" <<\_ACAWK ||
17243BEGIN {
17244_ACEOF
17245
17246# Transform confdefs.h into an awk script `defines.awk', embedded as
17247# here-document in config.status, that substitutes the proper values into
17248# config.h.in to produce config.h.
17249
17250# Create a delimiter string that does not exist in confdefs.h, to ease
17251# handling of long lines.
17252ac_delim='%!_!# '
17253for ac_last_try in false false :; do
17254  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17255  if test -z "$ac_t"; then
17256    break
17257  elif $ac_last_try; then
17258    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17259  else
17260    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17261  fi
17262done
17263
17264# For the awk script, D is an array of macro values keyed by name,
17265# likewise P contains macro parameters if any.  Preserve backslash
17266# newline sequences.
17267
17268ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17269sed -n '
17270s/.\{148\}/&'"$ac_delim"'/g
17271t rset
17272:rset
17273s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17274t def
17275d
17276:def
17277s/\\$//
17278t bsnl
17279s/["\\]/\\&/g
17280s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17281D["\1"]=" \3"/p
17282s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17283d
17284:bsnl
17285s/["\\]/\\&/g
17286s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17287D["\1"]=" \3\\\\\\n"\\/p
17288t cont
17289s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17290t cont
17291d
17292:cont
17293n
17294s/.\{148\}/&'"$ac_delim"'/g
17295t clear
17296:clear
17297s/\\$//
17298t bsnlc
17299s/["\\]/\\&/g; s/^/"/; s/$/"/p
17300d
17301:bsnlc
17302s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17303b cont
17304' <confdefs.h | sed '
17305s/'"$ac_delim"'/"\\\
17306"/g' >>$CONFIG_STATUS || ac_write_fail=1
17307
17308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17309  for (key in D) D_is_set[key] = 1
17310  FS = ""
17311}
17312/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17313  line = \$ 0
17314  split(line, arg, " ")
17315  if (arg[1] == "#") {
17316    defundef = arg[2]
17317    mac1 = arg[3]
17318  } else {
17319    defundef = substr(arg[1], 2)
17320    mac1 = arg[2]
17321  }
17322  split(mac1, mac2, "(") #)
17323  macro = mac2[1]
17324  prefix = substr(line, 1, index(line, defundef) - 1)
17325  if (D_is_set[macro]) {
17326    # Preserve the white space surrounding the "#".
17327    print prefix "define", macro P[macro] D[macro]
17328    next
17329  } else {
17330    # Replace #undef with comments.  This is necessary, for example,
17331    # in the case of _POSIX_SOURCE, which is predefined and required
17332    # on some systems where configure will not decide to define it.
17333    if (defundef == "undef") {
17334      print "/*", prefix defundef, macro, "*/"
17335      next
17336    }
17337  }
17338}
17339{ print }
17340_ACAWK
17341_ACEOF
17342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17343  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17344fi # test -n "$CONFIG_HEADERS"
17345
17346
17347eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17348shift
17349for ac_tag
17350do
17351  case $ac_tag in
17352  :[FHLC]) ac_mode=$ac_tag; continue;;
17353  esac
17354  case $ac_mode$ac_tag in
17355  :[FHL]*:*);;
17356  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17357  :[FH]-) ac_tag=-:-;;
17358  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17359  esac
17360  ac_save_IFS=$IFS
17361  IFS=:
17362  set x $ac_tag
17363  IFS=$ac_save_IFS
17364  shift
17365  ac_file=$1
17366  shift
17367
17368  case $ac_mode in
17369  :L) ac_source=$1;;
17370  :[FH])
17371    ac_file_inputs=
17372    for ac_f
17373    do
17374      case $ac_f in
17375      -) ac_f="$tmp/stdin";;
17376      *) # Look for the file first in the build tree, then in the source tree
17377	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17378	 # because $ac_f cannot contain `:'.
17379	 test -f "$ac_f" ||
17380	   case $ac_f in
17381	   [\\/$]*) false;;
17382	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17383	   esac ||
17384	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17385      esac
17386      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17387      as_fn_append ac_file_inputs " '$ac_f'"
17388    done
17389
17390    # Let's still pretend it is `configure' which instantiates (i.e., don't
17391    # use $as_me), people would be surprised to read:
17392    #    /* config.h.  Generated by config.status.  */
17393    configure_input='Generated from '`
17394	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17395	`' by configure.'
17396    if test x"$ac_file" != x-; then
17397      configure_input="$ac_file.  $configure_input"
17398      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17399$as_echo "$as_me: creating $ac_file" >&6;}
17400    fi
17401    # Neutralize special characters interpreted by sed in replacement strings.
17402    case $configure_input in #(
17403    *\&* | *\|* | *\\* )
17404       ac_sed_conf_input=`$as_echo "$configure_input" |
17405       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17406    *) ac_sed_conf_input=$configure_input;;
17407    esac
17408
17409    case $ac_tag in
17410    *:-:* | *:-) cat >"$tmp/stdin" \
17411      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17412    esac
17413    ;;
17414  esac
17415
17416  ac_dir=`$as_dirname -- "$ac_file" ||
17417$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17418	 X"$ac_file" : 'X\(//\)[^/]' \| \
17419	 X"$ac_file" : 'X\(//\)$' \| \
17420	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17421$as_echo X"$ac_file" |
17422    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17423	    s//\1/
17424	    q
17425	  }
17426	  /^X\(\/\/\)[^/].*/{
17427	    s//\1/
17428	    q
17429	  }
17430	  /^X\(\/\/\)$/{
17431	    s//\1/
17432	    q
17433	  }
17434	  /^X\(\/\).*/{
17435	    s//\1/
17436	    q
17437	  }
17438	  s/.*/./; q'`
17439  as_dir="$ac_dir"; as_fn_mkdir_p
17440  ac_builddir=.
17441
17442case "$ac_dir" in
17443.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17444*)
17445  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17446  # A ".." for each directory in $ac_dir_suffix.
17447  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17448  case $ac_top_builddir_sub in
17449  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17450  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17451  esac ;;
17452esac
17453ac_abs_top_builddir=$ac_pwd
17454ac_abs_builddir=$ac_pwd$ac_dir_suffix
17455# for backward compatibility:
17456ac_top_builddir=$ac_top_build_prefix
17457
17458case $srcdir in
17459  .)  # We are building in place.
17460    ac_srcdir=.
17461    ac_top_srcdir=$ac_top_builddir_sub
17462    ac_abs_top_srcdir=$ac_pwd ;;
17463  [\\/]* | ?:[\\/]* )  # Absolute name.
17464    ac_srcdir=$srcdir$ac_dir_suffix;
17465    ac_top_srcdir=$srcdir
17466    ac_abs_top_srcdir=$srcdir ;;
17467  *) # Relative name.
17468    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17469    ac_top_srcdir=$ac_top_build_prefix$srcdir
17470    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17471esac
17472ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17473
17474
17475  case $ac_mode in
17476  :F)
17477  #
17478  # CONFIG_FILE
17479  #
17480
17481  case $INSTALL in
17482  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17483  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17484  esac
17485  ac_MKDIR_P=$MKDIR_P
17486  case $MKDIR_P in
17487  [\\/$]* | ?:[\\/]* ) ;;
17488  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17489  esac
17490_ACEOF
17491
17492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17493# If the template does not know about datarootdir, expand it.
17494# FIXME: This hack should be removed a few years after 2.60.
17495ac_datarootdir_hack=; ac_datarootdir_seen=
17496ac_sed_dataroot='
17497/datarootdir/ {
17498  p
17499  q
17500}
17501/@datadir@/p
17502/@docdir@/p
17503/@infodir@/p
17504/@localedir@/p
17505/@mandir@/p'
17506case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17507*datarootdir*) ac_datarootdir_seen=yes;;
17508*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17509  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17510$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17511_ACEOF
17512cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17513  ac_datarootdir_hack='
17514  s&@datadir@&$datadir&g
17515  s&@docdir@&$docdir&g
17516  s&@infodir@&$infodir&g
17517  s&@localedir@&$localedir&g
17518  s&@mandir@&$mandir&g
17519  s&\\\${datarootdir}&$datarootdir&g' ;;
17520esac
17521_ACEOF
17522
17523# Neutralize VPATH when `$srcdir' = `.'.
17524# Shell code in configure.ac might set extrasub.
17525# FIXME: do we really want to maintain this feature?
17526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17527ac_sed_extra="$ac_vpsub
17528$extrasub
17529_ACEOF
17530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17531:t
17532/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17533s|@configure_input@|$ac_sed_conf_input|;t t
17534s&@top_builddir@&$ac_top_builddir_sub&;t t
17535s&@top_build_prefix@&$ac_top_build_prefix&;t t
17536s&@srcdir@&$ac_srcdir&;t t
17537s&@abs_srcdir@&$ac_abs_srcdir&;t t
17538s&@top_srcdir@&$ac_top_srcdir&;t t
17539s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17540s&@builddir@&$ac_builddir&;t t
17541s&@abs_builddir@&$ac_abs_builddir&;t t
17542s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17543s&@INSTALL@&$ac_INSTALL&;t t
17544s&@MKDIR_P@&$ac_MKDIR_P&;t t
17545$ac_datarootdir_hack
17546"
17547eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17548  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17549
17550test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17551  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17552  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17553  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17554which seems to be undefined.  Please make sure it is defined" >&5
17555$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17556which seems to be undefined.  Please make sure it is defined" >&2;}
17557
17558  rm -f "$tmp/stdin"
17559  case $ac_file in
17560  -) cat "$tmp/out" && rm -f "$tmp/out";;
17561  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17562  esac \
17563  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17564 ;;
17565  :H)
17566  #
17567  # CONFIG_HEADER
17568  #
17569  if test x"$ac_file" != x-; then
17570    {
17571      $as_echo "/* $configure_input  */" \
17572      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17573    } >"$tmp/config.h" \
17574      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17575    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17576      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17577$as_echo "$as_me: $ac_file is unchanged" >&6;}
17578    else
17579      rm -f "$ac_file"
17580      mv "$tmp/config.h" "$ac_file" \
17581	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17582    fi
17583  else
17584    $as_echo "/* $configure_input  */" \
17585      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17586      || as_fn_error $? "could not create -" "$LINENO" 5
17587  fi
17588# Compute "$ac_file"'s index in $config_headers.
17589_am_arg="$ac_file"
17590_am_stamp_count=1
17591for _am_header in $config_headers :; do
17592  case $_am_header in
17593    $_am_arg | $_am_arg:* )
17594      break ;;
17595    * )
17596      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17597  esac
17598done
17599echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17600$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17601	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17602	 X"$_am_arg" : 'X\(//\)$' \| \
17603	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17604$as_echo X"$_am_arg" |
17605    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17606	    s//\1/
17607	    q
17608	  }
17609	  /^X\(\/\/\)[^/].*/{
17610	    s//\1/
17611	    q
17612	  }
17613	  /^X\(\/\/\)$/{
17614	    s//\1/
17615	    q
17616	  }
17617	  /^X\(\/\).*/{
17618	    s//\1/
17619	    q
17620	  }
17621	  s/.*/./; q'`/stamp-h$_am_stamp_count
17622 ;;
17623
17624  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17625$as_echo "$as_me: executing $ac_file commands" >&6;}
17626 ;;
17627  esac
17628
17629
17630  case $ac_file$ac_mode in
17631    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17632  # Autoconf 2.62 quotes --file arguments for eval, but not when files
17633  # are listed without --file.  Let's play safe and only enable the eval
17634  # if we detect the quoting.
17635  case $CONFIG_FILES in
17636  *\'*) eval set x "$CONFIG_FILES" ;;
17637  *)   set x $CONFIG_FILES ;;
17638  esac
17639  shift
17640  for mf
17641  do
17642    # Strip MF so we end up with the name of the file.
17643    mf=`echo "$mf" | sed -e 's/:.*$//'`
17644    # Check whether this is an Automake generated Makefile or not.
17645    # We used to match only the files named `Makefile.in', but
17646    # some people rename them; so instead we look at the file content.
17647    # Grep'ing the first line is not enough: some people post-process
17648    # each Makefile.in and add a new line on top of each file to say so.
17649    # Grep'ing the whole file is not good either: AIX grep has a line
17650    # limit of 2048, but all sed's we know have understand at least 4000.
17651    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17652      dirpart=`$as_dirname -- "$mf" ||
17653$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17654	 X"$mf" : 'X\(//\)[^/]' \| \
17655	 X"$mf" : 'X\(//\)$' \| \
17656	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17657$as_echo X"$mf" |
17658    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17659	    s//\1/
17660	    q
17661	  }
17662	  /^X\(\/\/\)[^/].*/{
17663	    s//\1/
17664	    q
17665	  }
17666	  /^X\(\/\/\)$/{
17667	    s//\1/
17668	    q
17669	  }
17670	  /^X\(\/\).*/{
17671	    s//\1/
17672	    q
17673	  }
17674	  s/.*/./; q'`
17675    else
17676      continue
17677    fi
17678    # Extract the definition of DEPDIR, am__include, and am__quote
17679    # from the Makefile without running `make'.
17680    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17681    test -z "$DEPDIR" && continue
17682    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17683    test -z "am__include" && continue
17684    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17685    # When using ansi2knr, U may be empty or an underscore; expand it
17686    U=`sed -n 's/^U = //p' < "$mf"`
17687    # Find all dependency output files, they are included files with
17688    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17689    # simplest approach to changing $(DEPDIR) to its actual value in the
17690    # expansion.
17691    for file in `sed -n "
17692      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17693	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17694      # Make sure the directory exists.
17695      test -f "$dirpart/$file" && continue
17696      fdir=`$as_dirname -- "$file" ||
17697$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17698	 X"$file" : 'X\(//\)[^/]' \| \
17699	 X"$file" : 'X\(//\)$' \| \
17700	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17701$as_echo X"$file" |
17702    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17703	    s//\1/
17704	    q
17705	  }
17706	  /^X\(\/\/\)[^/].*/{
17707	    s//\1/
17708	    q
17709	  }
17710	  /^X\(\/\/\)$/{
17711	    s//\1/
17712	    q
17713	  }
17714	  /^X\(\/\).*/{
17715	    s//\1/
17716	    q
17717	  }
17718	  s/.*/./; q'`
17719      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17720      # echo "creating $dirpart/$file"
17721      echo '# dummy' > "$dirpart/$file"
17722    done
17723  done
17724}
17725 ;;
17726    "libtool":C)
17727
17728    # See if we are running on zsh, and set the options which allow our
17729    # commands through without removal of \ escapes.
17730    if test -n "${ZSH_VERSION+set}" ; then
17731      setopt NO_GLOB_SUBST
17732    fi
17733
17734    cfgfile="${ofile}T"
17735    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17736    $RM "$cfgfile"
17737
17738    cat <<_LT_EOF >> "$cfgfile"
17739#! $SHELL
17740
17741# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17742# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17743# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17744# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17745#
17746#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17747#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17748#                 Inc.
17749#   Written by Gordon Matzigkeit, 1996
17750#
17751#   This file is part of GNU Libtool.
17752#
17753# GNU Libtool is free software; you can redistribute it and/or
17754# modify it under the terms of the GNU General Public License as
17755# published by the Free Software Foundation; either version 2 of
17756# the License, or (at your option) any later version.
17757#
17758# As a special exception to the GNU General Public License,
17759# if you distribute this file as part of a program or library that
17760# is built using GNU Libtool, you may include this file under the
17761# same distribution terms that you use for the rest of that program.
17762#
17763# GNU Libtool is distributed in the hope that it will be useful,
17764# but WITHOUT ANY WARRANTY; without even the implied warranty of
17765# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17766# GNU General Public License for more details.
17767#
17768# You should have received a copy of the GNU General Public License
17769# along with GNU Libtool; see the file COPYING.  If not, a copy
17770# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17771# obtained by writing to the Free Software Foundation, Inc.,
17772# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17773
17774
17775# The names of the tagged configurations supported by this script.
17776available_tags="CXX "
17777
17778# ### BEGIN LIBTOOL CONFIG
17779
17780# Which release of libtool.m4 was used?
17781macro_version=$macro_version
17782macro_revision=$macro_revision
17783
17784# Whether or not to build shared libraries.
17785build_libtool_libs=$enable_shared
17786
17787# Whether or not to build static libraries.
17788build_old_libs=$enable_static
17789
17790# What type of objects to build.
17791pic_mode=$pic_mode
17792
17793# Whether or not to optimize for fast installation.
17794fast_install=$enable_fast_install
17795
17796# Shell to use when invoking shell scripts.
17797SHELL=$lt_SHELL
17798
17799# An echo program that protects backslashes.
17800ECHO=$lt_ECHO
17801
17802# The host system.
17803host_alias=$host_alias
17804host=$host
17805host_os=$host_os
17806
17807# The build system.
17808build_alias=$build_alias
17809build=$build
17810build_os=$build_os
17811
17812# A sed program that does not truncate output.
17813SED=$lt_SED
17814
17815# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17816Xsed="\$SED -e 1s/^X//"
17817
17818# A grep program that handles long lines.
17819GREP=$lt_GREP
17820
17821# An ERE matcher.
17822EGREP=$lt_EGREP
17823
17824# A literal string matcher.
17825FGREP=$lt_FGREP
17826
17827# A BSD- or MS-compatible name lister.
17828NM=$lt_NM
17829
17830# Whether we need soft or hard links.
17831LN_S=$lt_LN_S
17832
17833# What is the maximum length of a command?
17834max_cmd_len=$max_cmd_len
17835
17836# Object file suffix (normally "o").
17837objext=$ac_objext
17838
17839# Executable file suffix (normally "").
17840exeext=$exeext
17841
17842# whether the shell understands "unset".
17843lt_unset=$lt_unset
17844
17845# turn spaces into newlines.
17846SP2NL=$lt_lt_SP2NL
17847
17848# turn newlines into spaces.
17849NL2SP=$lt_lt_NL2SP
17850
17851# An object symbol dumper.
17852OBJDUMP=$lt_OBJDUMP
17853
17854# Method to check whether dependent libraries are shared objects.
17855deplibs_check_method=$lt_deplibs_check_method
17856
17857# Command to use when deplibs_check_method == "file_magic".
17858file_magic_cmd=$lt_file_magic_cmd
17859
17860# The archiver.
17861AR=$lt_AR
17862AR_FLAGS=$lt_AR_FLAGS
17863
17864# A symbol stripping program.
17865STRIP=$lt_STRIP
17866
17867# Commands used to install an old-style archive.
17868RANLIB=$lt_RANLIB
17869old_postinstall_cmds=$lt_old_postinstall_cmds
17870old_postuninstall_cmds=$lt_old_postuninstall_cmds
17871
17872# Whether to use a lock for old archive extraction.
17873lock_old_archive_extraction=$lock_old_archive_extraction
17874
17875# A C compiler.
17876LTCC=$lt_CC
17877
17878# LTCC compiler flags.
17879LTCFLAGS=$lt_CFLAGS
17880
17881# Take the output of nm and produce a listing of raw symbols and C names.
17882global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17883
17884# Transform the output of nm in a proper C declaration.
17885global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17886
17887# Transform the output of nm in a C name address pair.
17888global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17889
17890# Transform the output of nm in a C name address pair when lib prefix is needed.
17891global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17892
17893# The name of the directory that contains temporary libtool files.
17894objdir=$objdir
17895
17896# Used to examine libraries when file_magic_cmd begins with "file".
17897MAGIC_CMD=$MAGIC_CMD
17898
17899# Must we lock files when doing compilation?
17900need_locks=$lt_need_locks
17901
17902# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17903DSYMUTIL=$lt_DSYMUTIL
17904
17905# Tool to change global to local symbols on Mac OS X.
17906NMEDIT=$lt_NMEDIT
17907
17908# Tool to manipulate fat objects and archives on Mac OS X.
17909LIPO=$lt_LIPO
17910
17911# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17912OTOOL=$lt_OTOOL
17913
17914# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17915OTOOL64=$lt_OTOOL64
17916
17917# Old archive suffix (normally "a").
17918libext=$libext
17919
17920# Shared library suffix (normally ".so").
17921shrext_cmds=$lt_shrext_cmds
17922
17923# The commands to extract the exported symbol list from a shared archive.
17924extract_expsyms_cmds=$lt_extract_expsyms_cmds
17925
17926# Variables whose values should be saved in libtool wrapper scripts and
17927# restored at link time.
17928variables_saved_for_relink=$lt_variables_saved_for_relink
17929
17930# Do we need the "lib" prefix for modules?
17931need_lib_prefix=$need_lib_prefix
17932
17933# Do we need a version for libraries?
17934need_version=$need_version
17935
17936# Library versioning type.
17937version_type=$version_type
17938
17939# Shared library runtime path variable.
17940runpath_var=$runpath_var
17941
17942# Shared library path variable.
17943shlibpath_var=$shlibpath_var
17944
17945# Is shlibpath searched before the hard-coded library search path?
17946shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17947
17948# Format of library name prefix.
17949libname_spec=$lt_libname_spec
17950
17951# List of archive names.  First name is the real one, the rest are links.
17952# The last name is the one that the linker finds with -lNAME
17953library_names_spec=$lt_library_names_spec
17954
17955# The coded name of the library, if different from the real name.
17956soname_spec=$lt_soname_spec
17957
17958# Permission mode override for installation of shared libraries.
17959install_override_mode=$lt_install_override_mode
17960
17961# Command to use after installation of a shared archive.
17962postinstall_cmds=$lt_postinstall_cmds
17963
17964# Command to use after uninstallation of a shared archive.
17965postuninstall_cmds=$lt_postuninstall_cmds
17966
17967# Commands used to finish a libtool library installation in a directory.
17968finish_cmds=$lt_finish_cmds
17969
17970# As "finish_cmds", except a single script fragment to be evaled but
17971# not shown.
17972finish_eval=$lt_finish_eval
17973
17974# Whether we should hardcode library paths into libraries.
17975hardcode_into_libs=$hardcode_into_libs
17976
17977# Compile-time system search path for libraries.
17978sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17979
17980# Run-time system search path for libraries.
17981sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17982
17983# Whether dlopen is supported.
17984dlopen_support=$enable_dlopen
17985
17986# Whether dlopen of programs is supported.
17987dlopen_self=$enable_dlopen_self
17988
17989# Whether dlopen of statically linked programs is supported.
17990dlopen_self_static=$enable_dlopen_self_static
17991
17992# Commands to strip libraries.
17993old_striplib=$lt_old_striplib
17994striplib=$lt_striplib
17995
17996
17997# The linker used to build libraries.
17998LD=$lt_LD
17999
18000# How to create reloadable object files.
18001reload_flag=$lt_reload_flag
18002reload_cmds=$lt_reload_cmds
18003
18004# Commands used to build an old-style archive.
18005old_archive_cmds=$lt_old_archive_cmds
18006
18007# A language specific compiler.
18008CC=$lt_compiler
18009
18010# Is the compiler the GNU compiler?
18011with_gcc=$GCC
18012
18013# Compiler flag to turn off builtin functions.
18014no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18015
18016# How to pass a linker flag through the compiler.
18017wl=$lt_lt_prog_compiler_wl
18018
18019# Additional compiler flags for building library objects.
18020pic_flag=$lt_lt_prog_compiler_pic
18021
18022# Compiler flag to prevent dynamic linking.
18023link_static_flag=$lt_lt_prog_compiler_static
18024
18025# Does compiler simultaneously support -c and -o options?
18026compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18027
18028# Whether or not to add -lc for building shared libraries.
18029build_libtool_need_lc=$archive_cmds_need_lc
18030
18031# Whether or not to disallow shared libs when runtime libs are static.
18032allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18033
18034# Compiler flag to allow reflexive dlopens.
18035export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18036
18037# Compiler flag to generate shared objects directly from archives.
18038whole_archive_flag_spec=$lt_whole_archive_flag_spec
18039
18040# Whether the compiler copes with passing no objects directly.
18041compiler_needs_object=$lt_compiler_needs_object
18042
18043# Create an old-style archive from a shared archive.
18044old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18045
18046# Create a temporary old-style archive to link instead of a shared archive.
18047old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18048
18049# Commands used to build a shared archive.
18050archive_cmds=$lt_archive_cmds
18051archive_expsym_cmds=$lt_archive_expsym_cmds
18052
18053# Commands used to build a loadable module if different from building
18054# a shared archive.
18055module_cmds=$lt_module_cmds
18056module_expsym_cmds=$lt_module_expsym_cmds
18057
18058# Whether we are building with GNU ld or not.
18059with_gnu_ld=$lt_with_gnu_ld
18060
18061# Flag that allows shared libraries with undefined symbols to be built.
18062allow_undefined_flag=$lt_allow_undefined_flag
18063
18064# Flag that enforces no undefined symbols.
18065no_undefined_flag=$lt_no_undefined_flag
18066
18067# Flag to hardcode \$libdir into a binary during linking.
18068# This must work even if \$libdir does not exist
18069hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18070
18071# If ld is used when linking, flag to hardcode \$libdir into a binary
18072# during linking.  This must work even if \$libdir does not exist.
18073hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18074
18075# Whether we need a single "-rpath" flag with a separated argument.
18076hardcode_libdir_separator=$lt_hardcode_libdir_separator
18077
18078# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18079# DIR into the resulting binary.
18080hardcode_direct=$hardcode_direct
18081
18082# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18083# DIR into the resulting binary and the resulting library dependency is
18084# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18085# library is relocated.
18086hardcode_direct_absolute=$hardcode_direct_absolute
18087
18088# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18089# into the resulting binary.
18090hardcode_minus_L=$hardcode_minus_L
18091
18092# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18093# into the resulting binary.
18094hardcode_shlibpath_var=$hardcode_shlibpath_var
18095
18096# Set to "yes" if building a shared library automatically hardcodes DIR
18097# into the library and all subsequent libraries and executables linked
18098# against it.
18099hardcode_automatic=$hardcode_automatic
18100
18101# Set to yes if linker adds runtime paths of dependent libraries
18102# to runtime path list.
18103inherit_rpath=$inherit_rpath
18104
18105# Whether libtool must link a program against all its dependency libraries.
18106link_all_deplibs=$link_all_deplibs
18107
18108# Fix the shell variable \$srcfile for the compiler.
18109fix_srcfile_path=$lt_fix_srcfile_path
18110
18111# Set to "yes" if exported symbols are required.
18112always_export_symbols=$always_export_symbols
18113
18114# The commands to list exported symbols.
18115export_symbols_cmds=$lt_export_symbols_cmds
18116
18117# Symbols that should not be listed in the preloaded symbols.
18118exclude_expsyms=$lt_exclude_expsyms
18119
18120# Symbols that must always be exported.
18121include_expsyms=$lt_include_expsyms
18122
18123# Commands necessary for linking programs (against libraries) with templates.
18124prelink_cmds=$lt_prelink_cmds
18125
18126# Specify filename containing input files.
18127file_list_spec=$lt_file_list_spec
18128
18129# How to hardcode a shared library path into an executable.
18130hardcode_action=$hardcode_action
18131
18132# The directories searched by this compiler when creating a shared library.
18133compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18134
18135# Dependencies to place before and after the objects being linked to
18136# create a shared library.
18137predep_objects=$lt_predep_objects
18138postdep_objects=$lt_postdep_objects
18139predeps=$lt_predeps
18140postdeps=$lt_postdeps
18141
18142# The library search path used internally by the compiler when linking
18143# a shared library.
18144compiler_lib_search_path=$lt_compiler_lib_search_path
18145
18146# ### END LIBTOOL CONFIG
18147
18148_LT_EOF
18149
18150  case $host_os in
18151  aix3*)
18152    cat <<\_LT_EOF >> "$cfgfile"
18153# AIX sometimes has problems with the GCC collect2 program.  For some
18154# reason, if we set the COLLECT_NAMES environment variable, the problems
18155# vanish in a puff of smoke.
18156if test "X${COLLECT_NAMES+set}" != Xset; then
18157  COLLECT_NAMES=
18158  export COLLECT_NAMES
18159fi
18160_LT_EOF
18161    ;;
18162  esac
18163
18164
18165ltmain="$ac_aux_dir/ltmain.sh"
18166
18167
18168  # We use sed instead of cat because bash on DJGPP gets confused if
18169  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18170  # text mode, it properly converts lines to CR/LF.  This bash problem
18171  # is reportedly fixed, but why not run on old versions too?
18172  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18173    || (rm -f "$cfgfile"; exit 1)
18174
18175  case $xsi_shell in
18176  yes)
18177    cat << \_LT_EOF >> "$cfgfile"
18178
18179# func_dirname file append nondir_replacement
18180# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18181# otherwise set result to NONDIR_REPLACEMENT.
18182func_dirname ()
18183{
18184  case ${1} in
18185    */*) func_dirname_result="${1%/*}${2}" ;;
18186    *  ) func_dirname_result="${3}" ;;
18187  esac
18188}
18189
18190# func_basename file
18191func_basename ()
18192{
18193  func_basename_result="${1##*/}"
18194}
18195
18196# func_dirname_and_basename file append nondir_replacement
18197# perform func_basename and func_dirname in a single function
18198# call:
18199#   dirname:  Compute the dirname of FILE.  If nonempty,
18200#             add APPEND to the result, otherwise set result
18201#             to NONDIR_REPLACEMENT.
18202#             value returned in "$func_dirname_result"
18203#   basename: Compute filename of FILE.
18204#             value retuned in "$func_basename_result"
18205# Implementation must be kept synchronized with func_dirname
18206# and func_basename. For efficiency, we do not delegate to
18207# those functions but instead duplicate the functionality here.
18208func_dirname_and_basename ()
18209{
18210  case ${1} in
18211    */*) func_dirname_result="${1%/*}${2}" ;;
18212    *  ) func_dirname_result="${3}" ;;
18213  esac
18214  func_basename_result="${1##*/}"
18215}
18216
18217# func_stripname prefix suffix name
18218# strip PREFIX and SUFFIX off of NAME.
18219# PREFIX and SUFFIX must not contain globbing or regex special
18220# characters, hashes, percent signs, but SUFFIX may contain a leading
18221# dot (in which case that matches only a dot).
18222func_stripname ()
18223{
18224  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18225  # positional parameters, so assign one to ordinary parameter first.
18226  func_stripname_result=${3}
18227  func_stripname_result=${func_stripname_result#"${1}"}
18228  func_stripname_result=${func_stripname_result%"${2}"}
18229}
18230
18231# func_opt_split
18232func_opt_split ()
18233{
18234  func_opt_split_opt=${1%%=*}
18235  func_opt_split_arg=${1#*=}
18236}
18237
18238# func_lo2o object
18239func_lo2o ()
18240{
18241  case ${1} in
18242    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18243    *)    func_lo2o_result=${1} ;;
18244  esac
18245}
18246
18247# func_xform libobj-or-source
18248func_xform ()
18249{
18250  func_xform_result=${1%.*}.lo
18251}
18252
18253# func_arith arithmetic-term...
18254func_arith ()
18255{
18256  func_arith_result=$(( $* ))
18257}
18258
18259# func_len string
18260# STRING may not start with a hyphen.
18261func_len ()
18262{
18263  func_len_result=${#1}
18264}
18265
18266_LT_EOF
18267    ;;
18268  *) # Bourne compatible functions.
18269    cat << \_LT_EOF >> "$cfgfile"
18270
18271# func_dirname file append nondir_replacement
18272# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18273# otherwise set result to NONDIR_REPLACEMENT.
18274func_dirname ()
18275{
18276  # Extract subdirectory from the argument.
18277  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18278  if test "X$func_dirname_result" = "X${1}"; then
18279    func_dirname_result="${3}"
18280  else
18281    func_dirname_result="$func_dirname_result${2}"
18282  fi
18283}
18284
18285# func_basename file
18286func_basename ()
18287{
18288  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18289}
18290
18291
18292# func_stripname prefix suffix name
18293# strip PREFIX and SUFFIX off of NAME.
18294# PREFIX and SUFFIX must not contain globbing or regex special
18295# characters, hashes, percent signs, but SUFFIX may contain a leading
18296# dot (in which case that matches only a dot).
18297# func_strip_suffix prefix name
18298func_stripname ()
18299{
18300  case ${2} in
18301    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18302    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18303  esac
18304}
18305
18306# sed scripts:
18307my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18308my_sed_long_arg='1s/^-[^=]*=//'
18309
18310# func_opt_split
18311func_opt_split ()
18312{
18313  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18314  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18315}
18316
18317# func_lo2o object
18318func_lo2o ()
18319{
18320  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18321}
18322
18323# func_xform libobj-or-source
18324func_xform ()
18325{
18326  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18327}
18328
18329# func_arith arithmetic-term...
18330func_arith ()
18331{
18332  func_arith_result=`expr "$@"`
18333}
18334
18335# func_len string
18336# STRING may not start with a hyphen.
18337func_len ()
18338{
18339  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18340}
18341
18342_LT_EOF
18343esac
18344
18345case $lt_shell_append in
18346  yes)
18347    cat << \_LT_EOF >> "$cfgfile"
18348
18349# func_append var value
18350# Append VALUE to the end of shell variable VAR.
18351func_append ()
18352{
18353  eval "$1+=\$2"
18354}
18355_LT_EOF
18356    ;;
18357  *)
18358    cat << \_LT_EOF >> "$cfgfile"
18359
18360# func_append var value
18361# Append VALUE to the end of shell variable VAR.
18362func_append ()
18363{
18364  eval "$1=\$$1\$2"
18365}
18366
18367_LT_EOF
18368    ;;
18369  esac
18370
18371
18372  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18373    || (rm -f "$cfgfile"; exit 1)
18374
18375  mv -f "$cfgfile" "$ofile" ||
18376    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18377  chmod +x "$ofile"
18378
18379
18380    cat <<_LT_EOF >> "$ofile"
18381
18382# ### BEGIN LIBTOOL TAG CONFIG: CXX
18383
18384# The linker used to build libraries.
18385LD=$lt_LD_CXX
18386
18387# How to create reloadable object files.
18388reload_flag=$lt_reload_flag_CXX
18389reload_cmds=$lt_reload_cmds_CXX
18390
18391# Commands used to build an old-style archive.
18392old_archive_cmds=$lt_old_archive_cmds_CXX
18393
18394# A language specific compiler.
18395CC=$lt_compiler_CXX
18396
18397# Is the compiler the GNU compiler?
18398with_gcc=$GCC_CXX
18399
18400# Compiler flag to turn off builtin functions.
18401no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18402
18403# How to pass a linker flag through the compiler.
18404wl=$lt_lt_prog_compiler_wl_CXX
18405
18406# Additional compiler flags for building library objects.
18407pic_flag=$lt_lt_prog_compiler_pic_CXX
18408
18409# Compiler flag to prevent dynamic linking.
18410link_static_flag=$lt_lt_prog_compiler_static_CXX
18411
18412# Does compiler simultaneously support -c and -o options?
18413compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18414
18415# Whether or not to add -lc for building shared libraries.
18416build_libtool_need_lc=$archive_cmds_need_lc_CXX
18417
18418# Whether or not to disallow shared libs when runtime libs are static.
18419allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18420
18421# Compiler flag to allow reflexive dlopens.
18422export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18423
18424# Compiler flag to generate shared objects directly from archives.
18425whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18426
18427# Whether the compiler copes with passing no objects directly.
18428compiler_needs_object=$lt_compiler_needs_object_CXX
18429
18430# Create an old-style archive from a shared archive.
18431old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18432
18433# Create a temporary old-style archive to link instead of a shared archive.
18434old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18435
18436# Commands used to build a shared archive.
18437archive_cmds=$lt_archive_cmds_CXX
18438archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18439
18440# Commands used to build a loadable module if different from building
18441# a shared archive.
18442module_cmds=$lt_module_cmds_CXX
18443module_expsym_cmds=$lt_module_expsym_cmds_CXX
18444
18445# Whether we are building with GNU ld or not.
18446with_gnu_ld=$lt_with_gnu_ld_CXX
18447
18448# Flag that allows shared libraries with undefined symbols to be built.
18449allow_undefined_flag=$lt_allow_undefined_flag_CXX
18450
18451# Flag that enforces no undefined symbols.
18452no_undefined_flag=$lt_no_undefined_flag_CXX
18453
18454# Flag to hardcode \$libdir into a binary during linking.
18455# This must work even if \$libdir does not exist
18456hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18457
18458# If ld is used when linking, flag to hardcode \$libdir into a binary
18459# during linking.  This must work even if \$libdir does not exist.
18460hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18461
18462# Whether we need a single "-rpath" flag with a separated argument.
18463hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18464
18465# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18466# DIR into the resulting binary.
18467hardcode_direct=$hardcode_direct_CXX
18468
18469# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18470# DIR into the resulting binary and the resulting library dependency is
18471# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18472# library is relocated.
18473hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18474
18475# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18476# into the resulting binary.
18477hardcode_minus_L=$hardcode_minus_L_CXX
18478
18479# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18480# into the resulting binary.
18481hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18482
18483# Set to "yes" if building a shared library automatically hardcodes DIR
18484# into the library and all subsequent libraries and executables linked
18485# against it.
18486hardcode_automatic=$hardcode_automatic_CXX
18487
18488# Set to yes if linker adds runtime paths of dependent libraries
18489# to runtime path list.
18490inherit_rpath=$inherit_rpath_CXX
18491
18492# Whether libtool must link a program against all its dependency libraries.
18493link_all_deplibs=$link_all_deplibs_CXX
18494
18495# Fix the shell variable \$srcfile for the compiler.
18496fix_srcfile_path=$lt_fix_srcfile_path_CXX
18497
18498# Set to "yes" if exported symbols are required.
18499always_export_symbols=$always_export_symbols_CXX
18500
18501# The commands to list exported symbols.
18502export_symbols_cmds=$lt_export_symbols_cmds_CXX
18503
18504# Symbols that should not be listed in the preloaded symbols.
18505exclude_expsyms=$lt_exclude_expsyms_CXX
18506
18507# Symbols that must always be exported.
18508include_expsyms=$lt_include_expsyms_CXX
18509
18510# Commands necessary for linking programs (against libraries) with templates.
18511prelink_cmds=$lt_prelink_cmds_CXX
18512
18513# Specify filename containing input files.
18514file_list_spec=$lt_file_list_spec_CXX
18515
18516# How to hardcode a shared library path into an executable.
18517hardcode_action=$hardcode_action_CXX
18518
18519# The directories searched by this compiler when creating a shared library.
18520compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18521
18522# Dependencies to place before and after the objects being linked to
18523# create a shared library.
18524predep_objects=$lt_predep_objects_CXX
18525postdep_objects=$lt_postdep_objects_CXX
18526predeps=$lt_predeps_CXX
18527postdeps=$lt_postdeps_CXX
18528
18529# The library search path used internally by the compiler when linking
18530# a shared library.
18531compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18532
18533# ### END LIBTOOL TAG CONFIG: CXX
18534_LT_EOF
18535
18536 ;;
18537
18538  esac
18539done # for ac_tag
18540
18541
18542as_fn_exit 0
18543_ACEOF
18544ac_clean_files=$ac_clean_files_save
18545
18546test $ac_write_fail = 0 ||
18547  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18548
18549
18550# configure is writing to config.log, and then calls config.status.
18551# config.status does its own redirection, appending to config.log.
18552# Unfortunately, on DOS this fails, as config.log is still kept open
18553# by configure, so config.status won't be able to write to it; its
18554# output is simply discarded.  So we exec the FD to /dev/null,
18555# effectively closing config.log, so it can be properly (re)opened and
18556# appended to by config.status.  When coming back to configure, we
18557# need to make the FD available again.
18558if test "$no_create" != yes; then
18559  ac_cs_success=:
18560  ac_config_status_args=
18561  test "$silent" = yes &&
18562    ac_config_status_args="$ac_config_status_args --quiet"
18563  exec 5>/dev/null
18564  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18565  exec 5>>config.log
18566  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18567  # would make configure fail if this is the last instruction.
18568  $ac_cs_success || as_fn_exit 1
18569fi
18570if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18571  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18572$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18573fi
18574
18575