1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.66 for http11 0.10.
4#
5# Report bugs to <courier-users@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-users@lists.sourceforge.net about your system,
243$0: 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='http11'
564PACKAGE_TARNAME='http11'
565PACKAGE_VERSION='0.10'
566PACKAGE_STRING='http11 0.10'
567PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
568PACKAGE_URL=''
569
570ac_unique_file="http11.h.in"
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
611DEFAULTLANG
612OTOOL64
613OTOOL
614LIPO
615NMEDIT
616DSYMUTIL
617RANLIB
618AR
619OBJDUMP
620LN_S
621NM
622ac_ct_DUMPBIN
623DUMPBIN
624LD
625FGREP
626SED
627host_os
628host_vendor
629host_cpu
630host
631build_os
632build_vendor
633build_cpu
634build
635LIBTOOL
636EGREP
637GREP
638CPP
639am__fastdepCC_FALSE
640am__fastdepCC_TRUE
641CCDEPMODE
642AMDEPBACKSLASH
643AMDEP_FALSE
644AMDEP_TRUE
645am__quote
646am__include
647DEPDIR
648OBJEXT
649EXEEXT
650ac_ct_CC
651CPPFLAGS
652LDFLAGS
653CFLAGS
654CC
655am__untar
656am__tar
657AMTAR
658am__leading_dot
659SET_MAKE
660AWK
661mkdir_p
662MKDIR_P
663INSTALL_STRIP_PROGRAM
664STRIP
665install_sh
666MAKEINFO
667AUTOHEADER
668AUTOMAKE
669AUTOCONF
670ACLOCAL
671VERSION
672PACKAGE
673CYGPATH_W
674am__isrc
675INSTALL_DATA
676INSTALL_SCRIPT
677INSTALL_PROGRAM
678target_alias
679host_alias
680build_alias
681LIBS
682ECHO_T
683ECHO_N
684ECHO_C
685DEFS
686mandir
687localedir
688libdir
689psdir
690pdfdir
691dvidir
692htmldir
693infodir
694docdir
695oldincludedir
696includedir
697localstatedir
698sharedstatedir
699sysconfdir
700datadir
701datarootdir
702libexecdir
703sbindir
704bindir
705program_transform_name
706prefix
707exec_prefix
708PACKAGE_URL
709PACKAGE_BUGREPORT
710PACKAGE_STRING
711PACKAGE_VERSION
712PACKAGE_TARNAME
713PACKAGE_NAME
714PATH_SEPARATOR
715SHELL'
716ac_subst_files=''
717ac_user_opts='
718enable_option_checking
719enable_dependency_tracking
720enable_shared
721enable_static
722with_pic
723enable_fast_install
724with_gnu_ld
725enable_libtool_lock
726with_defaultlang
727'
728      ac_precious_vars='build_alias
729host_alias
730target_alias
731CC
732CFLAGS
733LDFLAGS
734LIBS
735CPPFLAGS
736CPP'
737
738
739# Initialize some variables set by options.
740ac_init_help=
741ac_init_version=false
742ac_unrecognized_opts=
743ac_unrecognized_sep=
744# The variables have the same names as the options, with
745# dashes changed to underlines.
746cache_file=/dev/null
747exec_prefix=NONE
748no_create=
749no_recursion=
750prefix=NONE
751program_prefix=NONE
752program_suffix=NONE
753program_transform_name=s,x,x,
754silent=
755site=
756srcdir=
757verbose=
758x_includes=NONE
759x_libraries=NONE
760
761# Installation directory options.
762# These are left unexpanded so users can "make install exec_prefix=/foo"
763# and all the variables that are supposed to be based on exec_prefix
764# by default will actually change.
765# Use braces instead of parens because sh, perl, etc. also accept them.
766# (The list follows the same order as the GNU Coding Standards.)
767bindir='${exec_prefix}/bin'
768sbindir='${exec_prefix}/sbin'
769libexecdir='${exec_prefix}/libexec'
770datarootdir='${prefix}/share'
771datadir='${datarootdir}'
772sysconfdir='${prefix}/etc'
773sharedstatedir='${prefix}/com'
774localstatedir='${prefix}/var'
775includedir='${prefix}/include'
776oldincludedir='/usr/include'
777docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
778infodir='${datarootdir}/info'
779htmldir='${docdir}'
780dvidir='${docdir}'
781pdfdir='${docdir}'
782psdir='${docdir}'
783libdir='${exec_prefix}/lib'
784localedir='${datarootdir}/locale'
785mandir='${datarootdir}/man'
786
787ac_prev=
788ac_dashdash=
789for ac_option
790do
791  # If the previous option needs an argument, assign it.
792  if test -n "$ac_prev"; then
793    eval $ac_prev=\$ac_option
794    ac_prev=
795    continue
796  fi
797
798  case $ac_option in
799  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800  *)	ac_optarg=yes ;;
801  esac
802
803  # Accept the important Cygnus configure options, so we can diagnose typos.
804
805  case $ac_dashdash$ac_option in
806  --)
807    ac_dashdash=yes ;;
808
809  -bindir | --bindir | --bindi | --bind | --bin | --bi)
810    ac_prev=bindir ;;
811  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812    bindir=$ac_optarg ;;
813
814  -build | --build | --buil | --bui | --bu)
815    ac_prev=build_alias ;;
816  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817    build_alias=$ac_optarg ;;
818
819  -cache-file | --cache-file | --cache-fil | --cache-fi \
820  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821    ac_prev=cache_file ;;
822  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824    cache_file=$ac_optarg ;;
825
826  --config-cache | -C)
827    cache_file=config.cache ;;
828
829  -datadir | --datadir | --datadi | --datad)
830    ac_prev=datadir ;;
831  -datadir=* | --datadir=* | --datadi=* | --datad=*)
832    datadir=$ac_optarg ;;
833
834  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835  | --dataroo | --dataro | --datar)
836    ac_prev=datarootdir ;;
837  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839    datarootdir=$ac_optarg ;;
840
841  -disable-* | --disable-*)
842    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843    # Reject names that are not valid shell variable names.
844    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
845      as_fn_error $? "invalid feature name: $ac_useropt"
846    ac_useropt_orig=$ac_useropt
847    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
848    case $ac_user_opts in
849      *"
850"enable_$ac_useropt"
851"*) ;;
852      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
853	 ac_unrecognized_sep=', ';;
854    esac
855    eval enable_$ac_useropt=no ;;
856
857  -docdir | --docdir | --docdi | --doc | --do)
858    ac_prev=docdir ;;
859  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
860    docdir=$ac_optarg ;;
861
862  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
863    ac_prev=dvidir ;;
864  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
865    dvidir=$ac_optarg ;;
866
867  -enable-* | --enable-*)
868    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
869    # Reject names that are not valid shell variable names.
870    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871      as_fn_error $? "invalid feature name: $ac_useropt"
872    ac_useropt_orig=$ac_useropt
873    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874    case $ac_user_opts in
875      *"
876"enable_$ac_useropt"
877"*) ;;
878      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
879	 ac_unrecognized_sep=', ';;
880    esac
881    eval enable_$ac_useropt=\$ac_optarg ;;
882
883  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
884  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
885  | --exec | --exe | --ex)
886    ac_prev=exec_prefix ;;
887  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
888  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
889  | --exec=* | --exe=* | --ex=*)
890    exec_prefix=$ac_optarg ;;
891
892  -gas | --gas | --ga | --g)
893    # Obsolete; use --with-gas.
894    with_gas=yes ;;
895
896  -help | --help | --hel | --he | -h)
897    ac_init_help=long ;;
898  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
899    ac_init_help=recursive ;;
900  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
901    ac_init_help=short ;;
902
903  -host | --host | --hos | --ho)
904    ac_prev=host_alias ;;
905  -host=* | --host=* | --hos=* | --ho=*)
906    host_alias=$ac_optarg ;;
907
908  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
909    ac_prev=htmldir ;;
910  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
911  | --ht=*)
912    htmldir=$ac_optarg ;;
913
914  -includedir | --includedir | --includedi | --included | --include \
915  | --includ | --inclu | --incl | --inc)
916    ac_prev=includedir ;;
917  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
918  | --includ=* | --inclu=* | --incl=* | --inc=*)
919    includedir=$ac_optarg ;;
920
921  -infodir | --infodir | --infodi | --infod | --info | --inf)
922    ac_prev=infodir ;;
923  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
924    infodir=$ac_optarg ;;
925
926  -libdir | --libdir | --libdi | --libd)
927    ac_prev=libdir ;;
928  -libdir=* | --libdir=* | --libdi=* | --libd=*)
929    libdir=$ac_optarg ;;
930
931  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
932  | --libexe | --libex | --libe)
933    ac_prev=libexecdir ;;
934  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
935  | --libexe=* | --libex=* | --libe=*)
936    libexecdir=$ac_optarg ;;
937
938  -localedir | --localedir | --localedi | --localed | --locale)
939    ac_prev=localedir ;;
940  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
941    localedir=$ac_optarg ;;
942
943  -localstatedir | --localstatedir | --localstatedi | --localstated \
944  | --localstate | --localstat | --localsta | --localst | --locals)
945    ac_prev=localstatedir ;;
946  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
947  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
948    localstatedir=$ac_optarg ;;
949
950  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
951    ac_prev=mandir ;;
952  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
953    mandir=$ac_optarg ;;
954
955  -nfp | --nfp | --nf)
956    # Obsolete; use --without-fp.
957    with_fp=no ;;
958
959  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
960  | --no-cr | --no-c | -n)
961    no_create=yes ;;
962
963  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
964  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
965    no_recursion=yes ;;
966
967  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
968  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
969  | --oldin | --oldi | --old | --ol | --o)
970    ac_prev=oldincludedir ;;
971  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
972  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
973  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
974    oldincludedir=$ac_optarg ;;
975
976  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
977    ac_prev=prefix ;;
978  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979    prefix=$ac_optarg ;;
980
981  -program-prefix | --program-prefix | --program-prefi | --program-pref \
982  | --program-pre | --program-pr | --program-p)
983    ac_prev=program_prefix ;;
984  -program-prefix=* | --program-prefix=* | --program-prefi=* \
985  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
986    program_prefix=$ac_optarg ;;
987
988  -program-suffix | --program-suffix | --program-suffi | --program-suff \
989  | --program-suf | --program-su | --program-s)
990    ac_prev=program_suffix ;;
991  -program-suffix=* | --program-suffix=* | --program-suffi=* \
992  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
993    program_suffix=$ac_optarg ;;
994
995  -program-transform-name | --program-transform-name \
996  | --program-transform-nam | --program-transform-na \
997  | --program-transform-n | --program-transform- \
998  | --program-transform | --program-transfor \
999  | --program-transfo | --program-transf \
1000  | --program-trans | --program-tran \
1001  | --progr-tra | --program-tr | --program-t)
1002    ac_prev=program_transform_name ;;
1003  -program-transform-name=* | --program-transform-name=* \
1004  | --program-transform-nam=* | --program-transform-na=* \
1005  | --program-transform-n=* | --program-transform-=* \
1006  | --program-transform=* | --program-transfor=* \
1007  | --program-transfo=* | --program-transf=* \
1008  | --program-trans=* | --program-tran=* \
1009  | --progr-tra=* | --program-tr=* | --program-t=*)
1010    program_transform_name=$ac_optarg ;;
1011
1012  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1013    ac_prev=pdfdir ;;
1014  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1015    pdfdir=$ac_optarg ;;
1016
1017  -psdir | --psdir | --psdi | --psd | --ps)
1018    ac_prev=psdir ;;
1019  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1020    psdir=$ac_optarg ;;
1021
1022  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023  | -silent | --silent | --silen | --sile | --sil)
1024    silent=yes ;;
1025
1026  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027    ac_prev=sbindir ;;
1028  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029  | --sbi=* | --sb=*)
1030    sbindir=$ac_optarg ;;
1031
1032  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034  | --sharedst | --shareds | --shared | --share | --shar \
1035  | --sha | --sh)
1036    ac_prev=sharedstatedir ;;
1037  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040  | --sha=* | --sh=*)
1041    sharedstatedir=$ac_optarg ;;
1042
1043  -site | --site | --sit)
1044    ac_prev=site ;;
1045  -site=* | --site=* | --sit=*)
1046    site=$ac_optarg ;;
1047
1048  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049    ac_prev=srcdir ;;
1050  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051    srcdir=$ac_optarg ;;
1052
1053  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054  | --syscon | --sysco | --sysc | --sys | --sy)
1055    ac_prev=sysconfdir ;;
1056  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058    sysconfdir=$ac_optarg ;;
1059
1060  -target | --target | --targe | --targ | --tar | --ta | --t)
1061    ac_prev=target_alias ;;
1062  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063    target_alias=$ac_optarg ;;
1064
1065  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066    verbose=yes ;;
1067
1068  -version | --version | --versio | --versi | --vers | -V)
1069    ac_init_version=: ;;
1070
1071  -with-* | --with-*)
1072    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073    # Reject names that are not valid shell variable names.
1074    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075      as_fn_error $? "invalid package name: $ac_useropt"
1076    ac_useropt_orig=$ac_useropt
1077    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078    case $ac_user_opts in
1079      *"
1080"with_$ac_useropt"
1081"*) ;;
1082      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1083	 ac_unrecognized_sep=', ';;
1084    esac
1085    eval with_$ac_useropt=\$ac_optarg ;;
1086
1087  -without-* | --without-*)
1088    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1089    # Reject names that are not valid shell variable names.
1090    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091      as_fn_error $? "invalid package name: $ac_useropt"
1092    ac_useropt_orig=$ac_useropt
1093    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094    case $ac_user_opts in
1095      *"
1096"with_$ac_useropt"
1097"*) ;;
1098      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1099	 ac_unrecognized_sep=', ';;
1100    esac
1101    eval with_$ac_useropt=no ;;
1102
1103  --x)
1104    # Obsolete; use --with-x.
1105    with_x=yes ;;
1106
1107  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1108  | --x-incl | --x-inc | --x-in | --x-i)
1109    ac_prev=x_includes ;;
1110  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1111  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1112    x_includes=$ac_optarg ;;
1113
1114  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1115  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1116    ac_prev=x_libraries ;;
1117  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1118  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1119    x_libraries=$ac_optarg ;;
1120
1121  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1122Try \`$0 --help' for more information"
1123    ;;
1124
1125  *=*)
1126    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1127    # Reject names that are not valid shell variable names.
1128    case $ac_envvar in #(
1129      '' | [0-9]* | *[!_$as_cr_alnum]* )
1130      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1131    esac
1132    eval $ac_envvar=\$ac_optarg
1133    export $ac_envvar ;;
1134
1135  *)
1136    # FIXME: should be removed in autoconf 3.0.
1137    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1138    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1139      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1140    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1141    ;;
1142
1143  esac
1144done
1145
1146if test -n "$ac_prev"; then
1147  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1148  as_fn_error $? "missing argument to $ac_option"
1149fi
1150
1151if test -n "$ac_unrecognized_opts"; then
1152  case $enable_option_checking in
1153    no) ;;
1154    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1155    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1156  esac
1157fi
1158
1159# Check all directory arguments for consistency.
1160for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1161		datadir sysconfdir sharedstatedir localstatedir includedir \
1162		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1163		libdir localedir mandir
1164do
1165  eval ac_val=\$$ac_var
1166  # Remove trailing slashes.
1167  case $ac_val in
1168    */ )
1169      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1170      eval $ac_var=\$ac_val;;
1171  esac
1172  # Be sure to have absolute directory names.
1173  case $ac_val in
1174    [\\/$]* | ?:[\\/]* )  continue;;
1175    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1176  esac
1177  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1178done
1179
1180# There might be people who depend on the old broken behavior: `$host'
1181# used to hold the argument of --host etc.
1182# FIXME: To remove some day.
1183build=$build_alias
1184host=$host_alias
1185target=$target_alias
1186
1187# FIXME: To remove some day.
1188if test "x$host_alias" != x; then
1189  if test "x$build_alias" = x; then
1190    cross_compiling=maybe
1191    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1192    If a cross compiler is detected then cross compile mode will be used" >&2
1193  elif test "x$build_alias" != "x$host_alias"; then
1194    cross_compiling=yes
1195  fi
1196fi
1197
1198ac_tool_prefix=
1199test -n "$host_alias" && ac_tool_prefix=$host_alias-
1200
1201test "$silent" = yes && exec 6>/dev/null
1202
1203
1204ac_pwd=`pwd` && test -n "$ac_pwd" &&
1205ac_ls_di=`ls -di .` &&
1206ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1207  as_fn_error $? "working directory cannot be determined"
1208test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1209  as_fn_error $? "pwd does not report name of working directory"
1210
1211
1212# Find the source files, if location was not specified.
1213if test -z "$srcdir"; then
1214  ac_srcdir_defaulted=yes
1215  # Try the directory containing this script, then the parent directory.
1216  ac_confdir=`$as_dirname -- "$as_myself" ||
1217$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218	 X"$as_myself" : 'X\(//\)[^/]' \| \
1219	 X"$as_myself" : 'X\(//\)$' \| \
1220	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1221$as_echo X"$as_myself" |
1222    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223	    s//\1/
1224	    q
1225	  }
1226	  /^X\(\/\/\)[^/].*/{
1227	    s//\1/
1228	    q
1229	  }
1230	  /^X\(\/\/\)$/{
1231	    s//\1/
1232	    q
1233	  }
1234	  /^X\(\/\).*/{
1235	    s//\1/
1236	    q
1237	  }
1238	  s/.*/./; q'`
1239  srcdir=$ac_confdir
1240  if test ! -r "$srcdir/$ac_unique_file"; then
1241    srcdir=..
1242  fi
1243else
1244  ac_srcdir_defaulted=no
1245fi
1246if test ! -r "$srcdir/$ac_unique_file"; then
1247  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1248  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1249fi
1250ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1251ac_abs_confdir=`(
1252	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1253	pwd)`
1254# When building in place, set srcdir=.
1255if test "$ac_abs_confdir" = "$ac_pwd"; then
1256  srcdir=.
1257fi
1258# Remove unnecessary trailing slashes from srcdir.
1259# Double slashes in file names in object file debugging info
1260# mess up M-x gdb in Emacs.
1261case $srcdir in
1262*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1263esac
1264for ac_var in $ac_precious_vars; do
1265  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1266  eval ac_env_${ac_var}_value=\$${ac_var}
1267  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1268  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1269done
1270
1271#
1272# Report the --help message.
1273#
1274if test "$ac_init_help" = "long"; then
1275  # Omit some internal or obsolete options to make the list less imposing.
1276  # This message is too long to be a string in the A/UX 3.1 sh.
1277  cat <<_ACEOF
1278\`configure' configures http11 0.10 to adapt to many kinds of systems.
1279
1280Usage: $0 [OPTION]... [VAR=VALUE]...
1281
1282To assign environment variables (e.g., CC, CFLAGS...), specify them as
1283VAR=VALUE.  See below for descriptions of some of the useful variables.
1284
1285Defaults for the options are specified in brackets.
1286
1287Configuration:
1288  -h, --help              display this help and exit
1289      --help=short        display options specific to this package
1290      --help=recursive    display the short help of all the included packages
1291  -V, --version           display version information and exit
1292  -q, --quiet, --silent   do not print \`checking ...' messages
1293      --cache-file=FILE   cache test results in FILE [disabled]
1294  -C, --config-cache      alias for \`--cache-file=config.cache'
1295  -n, --no-create         do not create output files
1296      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1297
1298Installation directories:
1299  --prefix=PREFIX         install architecture-independent files in PREFIX
1300                          [$ac_default_prefix]
1301  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1302                          [PREFIX]
1303
1304By default, \`make install' will install all the files in
1305\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1306an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1307for instance \`--prefix=\$HOME'.
1308
1309For better control, use the options below.
1310
1311Fine tuning of the installation directories:
1312  --bindir=DIR            user executables [EPREFIX/bin]
1313  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1314  --libexecdir=DIR        program executables [EPREFIX/libexec]
1315  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1316  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1317  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1318  --libdir=DIR            object code libraries [EPREFIX/lib]
1319  --includedir=DIR        C header files [PREFIX/include]
1320  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1321  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1322  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1323  --infodir=DIR           info documentation [DATAROOTDIR/info]
1324  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1325  --mandir=DIR            man documentation [DATAROOTDIR/man]
1326  --docdir=DIR            documentation root [DATAROOTDIR/doc/http11]
1327  --htmldir=DIR           html documentation [DOCDIR]
1328  --dvidir=DIR            dvi documentation [DOCDIR]
1329  --pdfdir=DIR            pdf documentation [DOCDIR]
1330  --psdir=DIR             ps documentation [DOCDIR]
1331_ACEOF
1332
1333  cat <<\_ACEOF
1334
1335Program names:
1336  --program-prefix=PREFIX            prepend PREFIX to installed program names
1337  --program-suffix=SUFFIX            append SUFFIX to installed program names
1338  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1339
1340System types:
1341  --build=BUILD     configure for building on BUILD [guessed]
1342  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1343_ACEOF
1344fi
1345
1346if test -n "$ac_init_help"; then
1347  case $ac_init_help in
1348     short | recursive ) echo "Configuration of http11 0.10:";;
1349   esac
1350  cat <<\_ACEOF
1351
1352Optional Features:
1353  --disable-option-checking  ignore unrecognized --enable/--with options
1354  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1355  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1356  --disable-dependency-tracking  speeds up one-time build
1357  --enable-dependency-tracking   do not reject slow dependency extractors
1358  --enable-shared[=PKGS]  build shared libraries [default=yes]
1359  --enable-static[=PKGS]  build static libraries [default=yes]
1360  --enable-fast-install[=PKGS]
1361                          optimize for fast installation [default=yes]
1362  --disable-libtool-lock  avoid locking (might break parallel builds)
1363
1364Optional Packages:
1365  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1366  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1367  --with-pic              try to use only PIC/non-PIC objects [default=use
1368                          both]
1369  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1370  --with-defaultlang=lang        Default Content-Language:
1371
1372Some influential environment variables:
1373  CC          C compiler command
1374  CFLAGS      C compiler flags
1375  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1376              nonstandard directory <lib dir>
1377  LIBS        libraries to pass to the linker, e.g. -l<library>
1378  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1379              you have headers in a nonstandard directory <include dir>
1380  CPP         C preprocessor
1381
1382Use these variables to override the choices made by `configure' or to help
1383it to find libraries and programs with nonstandard names/locations.
1384
1385Report bugs to <courier-users@lists.sourceforge.net>.
1386_ACEOF
1387ac_status=$?
1388fi
1389
1390if test "$ac_init_help" = "recursive"; then
1391  # If there are subdirs, report their specific --help.
1392  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1393    test -d "$ac_dir" ||
1394      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1395      continue
1396    ac_builddir=.
1397
1398case "$ac_dir" in
1399.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400*)
1401  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1402  # A ".." for each directory in $ac_dir_suffix.
1403  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1404  case $ac_top_builddir_sub in
1405  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1407  esac ;;
1408esac
1409ac_abs_top_builddir=$ac_pwd
1410ac_abs_builddir=$ac_pwd$ac_dir_suffix
1411# for backward compatibility:
1412ac_top_builddir=$ac_top_build_prefix
1413
1414case $srcdir in
1415  .)  # We are building in place.
1416    ac_srcdir=.
1417    ac_top_srcdir=$ac_top_builddir_sub
1418    ac_abs_top_srcdir=$ac_pwd ;;
1419  [\\/]* | ?:[\\/]* )  # Absolute name.
1420    ac_srcdir=$srcdir$ac_dir_suffix;
1421    ac_top_srcdir=$srcdir
1422    ac_abs_top_srcdir=$srcdir ;;
1423  *) # Relative name.
1424    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1425    ac_top_srcdir=$ac_top_build_prefix$srcdir
1426    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1427esac
1428ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1429
1430    cd "$ac_dir" || { ac_status=$?; continue; }
1431    # Check for guested configure.
1432    if test -f "$ac_srcdir/configure.gnu"; then
1433      echo &&
1434      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1435    elif test -f "$ac_srcdir/configure"; then
1436      echo &&
1437      $SHELL "$ac_srcdir/configure" --help=recursive
1438    else
1439      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1440    fi || ac_status=$?
1441    cd "$ac_pwd" || { ac_status=$?; break; }
1442  done
1443fi
1444
1445test -n "$ac_init_help" && exit $ac_status
1446if $ac_init_version; then
1447  cat <<\_ACEOF
1448http11 configure 0.10
1449generated by GNU Autoconf 2.66
1450
1451Copyright (C) 2010 Free Software Foundation, Inc.
1452This configure script is free software; the Free Software Foundation
1453gives unlimited permission to copy, distribute and modify it.
1454_ACEOF
1455  exit
1456fi
1457
1458## ------------------------ ##
1459## Autoconf initialization. ##
1460## ------------------------ ##
1461
1462# ac_fn_c_try_compile LINENO
1463# --------------------------
1464# Try to compile conftest.$ac_ext, and return whether this succeeded.
1465ac_fn_c_try_compile ()
1466{
1467  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1468  rm -f conftest.$ac_objext
1469  if { { ac_try="$ac_compile"
1470case "(($ac_try" in
1471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1472  *) ac_try_echo=$ac_try;;
1473esac
1474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1475$as_echo "$ac_try_echo"; } >&5
1476  (eval "$ac_compile") 2>conftest.err
1477  ac_status=$?
1478  if test -s conftest.err; then
1479    grep -v '^ *+' conftest.err >conftest.er1
1480    cat conftest.er1 >&5
1481    mv -f conftest.er1 conftest.err
1482  fi
1483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1484  test $ac_status = 0; } && {
1485	 test -z "$ac_c_werror_flag" ||
1486	 test ! -s conftest.err
1487       } && test -s conftest.$ac_objext; then :
1488  ac_retval=0
1489else
1490  $as_echo "$as_me: failed program was:" >&5
1491sed 's/^/| /' conftest.$ac_ext >&5
1492
1493	ac_retval=1
1494fi
1495  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1496  as_fn_set_status $ac_retval
1497
1498} # ac_fn_c_try_compile
1499
1500# ac_fn_c_try_cpp LINENO
1501# ----------------------
1502# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1503ac_fn_c_try_cpp ()
1504{
1505  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506  if { { ac_try="$ac_cpp conftest.$ac_ext"
1507case "(($ac_try" in
1508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509  *) ac_try_echo=$ac_try;;
1510esac
1511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512$as_echo "$ac_try_echo"; } >&5
1513  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1514  ac_status=$?
1515  if test -s conftest.err; then
1516    grep -v '^ *+' conftest.err >conftest.er1
1517    cat conftest.er1 >&5
1518    mv -f conftest.er1 conftest.err
1519  fi
1520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521  test $ac_status = 0; } >/dev/null && {
1522	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1523	 test ! -s conftest.err
1524       }; then :
1525  ac_retval=0
1526else
1527  $as_echo "$as_me: failed program was:" >&5
1528sed 's/^/| /' conftest.$ac_ext >&5
1529
1530    ac_retval=1
1531fi
1532  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1533  as_fn_set_status $ac_retval
1534
1535} # ac_fn_c_try_cpp
1536
1537# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1538# -------------------------------------------------------
1539# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1540# the include files in INCLUDES and setting the cache variable VAR
1541# accordingly.
1542ac_fn_c_check_header_mongrel ()
1543{
1544  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545  if eval "test \"\${$3+set}\"" = set; then :
1546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1547$as_echo_n "checking for $2... " >&6; }
1548if eval "test \"\${$3+set}\"" = set; then :
1549  $as_echo_n "(cached) " >&6
1550fi
1551eval ac_res=\$$3
1552	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1553$as_echo "$ac_res" >&6; }
1554else
1555  # Is the header compilable?
1556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1557$as_echo_n "checking $2 usability... " >&6; }
1558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1559/* end confdefs.h.  */
1560$4
1561#include <$2>
1562_ACEOF
1563if ac_fn_c_try_compile "$LINENO"; then :
1564  ac_header_compiler=yes
1565else
1566  ac_header_compiler=no
1567fi
1568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1570$as_echo "$ac_header_compiler" >&6; }
1571
1572# Is the header present?
1573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1574$as_echo_n "checking $2 presence... " >&6; }
1575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1576/* end confdefs.h.  */
1577#include <$2>
1578_ACEOF
1579if ac_fn_c_try_cpp "$LINENO"; then :
1580  ac_header_preproc=yes
1581else
1582  ac_header_preproc=no
1583fi
1584rm -f conftest.err conftest.$ac_ext
1585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1586$as_echo "$ac_header_preproc" >&6; }
1587
1588# So?  What about this header?
1589case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1590  yes:no: )
1591    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1592$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1593    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1594$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1595    ;;
1596  no:yes:* )
1597    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1598$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1599    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1600$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1601    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1602$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1603    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1604$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1605    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1606$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1607( $as_echo "## -------------------------------------------------- ##
1608## Report this to courier-users@lists.sourceforge.net ##
1609## -------------------------------------------------- ##"
1610     ) | sed "s/^/$as_me: WARNING:     /" >&2
1611    ;;
1612esac
1613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614$as_echo_n "checking for $2... " >&6; }
1615if eval "test \"\${$3+set}\"" = set; then :
1616  $as_echo_n "(cached) " >&6
1617else
1618  eval "$3=\$ac_header_compiler"
1619fi
1620eval ac_res=\$$3
1621	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622$as_echo "$ac_res" >&6; }
1623fi
1624  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1625
1626} # ac_fn_c_check_header_mongrel
1627
1628# ac_fn_c_try_run LINENO
1629# ----------------------
1630# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1631# that executables *can* be run.
1632ac_fn_c_try_run ()
1633{
1634  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635  if { { ac_try="$ac_link"
1636case "(($ac_try" in
1637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638  *) ac_try_echo=$ac_try;;
1639esac
1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641$as_echo "$ac_try_echo"; } >&5
1642  (eval "$ac_link") 2>&5
1643  ac_status=$?
1644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1646  { { case "(($ac_try" in
1647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648  *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652  (eval "$ac_try") 2>&5
1653  ac_status=$?
1654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655  test $ac_status = 0; }; }; then :
1656  ac_retval=0
1657else
1658  $as_echo "$as_me: program exited with status $ac_status" >&5
1659       $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662       ac_retval=$ac_status
1663fi
1664  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1666  as_fn_set_status $ac_retval
1667
1668} # ac_fn_c_try_run
1669
1670# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1671# -------------------------------------------------------
1672# Tests whether HEADER exists and can be compiled using the include files in
1673# INCLUDES, setting the cache variable VAR accordingly.
1674ac_fn_c_check_header_compile ()
1675{
1676  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678$as_echo_n "checking for $2... " >&6; }
1679if eval "test \"\${$3+set}\"" = set; then :
1680  $as_echo_n "(cached) " >&6
1681else
1682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683/* end confdefs.h.  */
1684$4
1685#include <$2>
1686_ACEOF
1687if ac_fn_c_try_compile "$LINENO"; then :
1688  eval "$3=yes"
1689else
1690  eval "$3=no"
1691fi
1692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693fi
1694eval ac_res=\$$3
1695	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696$as_echo "$ac_res" >&6; }
1697  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698
1699} # ac_fn_c_check_header_compile
1700
1701# ac_fn_c_try_link LINENO
1702# -----------------------
1703# Try to link conftest.$ac_ext, and return whether this succeeded.
1704ac_fn_c_try_link ()
1705{
1706  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707  rm -f conftest.$ac_objext conftest$ac_exeext
1708  if { { ac_try="$ac_link"
1709case "(($ac_try" in
1710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711  *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715  (eval "$ac_link") 2>conftest.err
1716  ac_status=$?
1717  if test -s conftest.err; then
1718    grep -v '^ *+' conftest.err >conftest.er1
1719    cat conftest.er1 >&5
1720    mv -f conftest.er1 conftest.err
1721  fi
1722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723  test $ac_status = 0; } && {
1724	 test -z "$ac_c_werror_flag" ||
1725	 test ! -s conftest.err
1726       } && test -s conftest$ac_exeext && {
1727	 test "$cross_compiling" = yes ||
1728	 $as_test_x conftest$ac_exeext
1729       }; then :
1730  ac_retval=0
1731else
1732  $as_echo "$as_me: failed program was:" >&5
1733sed 's/^/| /' conftest.$ac_ext >&5
1734
1735	ac_retval=1
1736fi
1737  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1738  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1739  # interfere with the next link command; also delete a directory that is
1740  # left behind by Apple's compiler.  We do this before executing the actions.
1741  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743  as_fn_set_status $ac_retval
1744
1745} # ac_fn_c_try_link
1746
1747# ac_fn_c_check_func LINENO FUNC VAR
1748# ----------------------------------
1749# Tests whether FUNC exists, setting the cache variable VAR accordingly
1750ac_fn_c_check_func ()
1751{
1752  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754$as_echo_n "checking for $2... " >&6; }
1755if eval "test \"\${$3+set}\"" = set; then :
1756  $as_echo_n "(cached) " >&6
1757else
1758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759/* end confdefs.h.  */
1760/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1761   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1762#define $2 innocuous_$2
1763
1764/* System header to define __stub macros and hopefully few prototypes,
1765    which can conflict with char $2 (); below.
1766    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1767    <limits.h> exists even on freestanding compilers.  */
1768
1769#ifdef __STDC__
1770# include <limits.h>
1771#else
1772# include <assert.h>
1773#endif
1774
1775#undef $2
1776
1777/* Override any GCC internal prototype to avoid an error.
1778   Use char because int might match the return type of a GCC
1779   builtin and then its argument prototype would still apply.  */
1780#ifdef __cplusplus
1781extern "C"
1782#endif
1783char $2 ();
1784/* The GNU C library defines this for functions which it implements
1785    to always fail with ENOSYS.  Some functions are actually named
1786    something starting with __ and the normal name is an alias.  */
1787#if defined __stub_$2 || defined __stub___$2
1788choke me
1789#endif
1790
1791int
1792main ()
1793{
1794return $2 ();
1795  ;
1796  return 0;
1797}
1798_ACEOF
1799if ac_fn_c_try_link "$LINENO"; then :
1800  eval "$3=yes"
1801else
1802  eval "$3=no"
1803fi
1804rm -f core conftest.err conftest.$ac_objext \
1805    conftest$ac_exeext conftest.$ac_ext
1806fi
1807eval ac_res=\$$3
1808	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809$as_echo "$ac_res" >&6; }
1810  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811
1812} # ac_fn_c_check_func
1813
1814# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1815# -------------------------------------------
1816# Tests whether TYPE exists after having included INCLUDES, setting cache
1817# variable VAR accordingly.
1818ac_fn_c_check_type ()
1819{
1820  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822$as_echo_n "checking for $2... " >&6; }
1823if eval "test \"\${$3+set}\"" = set; then :
1824  $as_echo_n "(cached) " >&6
1825else
1826  eval "$3=no"
1827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h.  */
1829$4
1830int
1831main ()
1832{
1833if (sizeof ($2))
1834	 return 0;
1835  ;
1836  return 0;
1837}
1838_ACEOF
1839if ac_fn_c_try_compile "$LINENO"; then :
1840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841/* end confdefs.h.  */
1842$4
1843int
1844main ()
1845{
1846if (sizeof (($2)))
1847	    return 0;
1848  ;
1849  return 0;
1850}
1851_ACEOF
1852if ac_fn_c_try_compile "$LINENO"; then :
1853
1854else
1855  eval "$3=yes"
1856fi
1857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1858fi
1859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860fi
1861eval ac_res=\$$3
1862	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863$as_echo "$ac_res" >&6; }
1864  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865
1866} # ac_fn_c_check_type
1867cat >config.log <<_ACEOF
1868This file contains any messages produced by compilers while
1869running configure, to aid debugging if configure makes a mistake.
1870
1871It was created by http11 $as_me 0.10, which was
1872generated by GNU Autoconf 2.66.  Invocation command line was
1873
1874  $ $0 $@
1875
1876_ACEOF
1877exec 5>>config.log
1878{
1879cat <<_ASUNAME
1880## --------- ##
1881## Platform. ##
1882## --------- ##
1883
1884hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1885uname -m = `(uname -m) 2>/dev/null || echo unknown`
1886uname -r = `(uname -r) 2>/dev/null || echo unknown`
1887uname -s = `(uname -s) 2>/dev/null || echo unknown`
1888uname -v = `(uname -v) 2>/dev/null || echo unknown`
1889
1890/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1891/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1892
1893/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1894/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1895/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1896/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1897/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1898/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1899/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1900
1901_ASUNAME
1902
1903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904for as_dir in $PATH
1905do
1906  IFS=$as_save_IFS
1907  test -z "$as_dir" && as_dir=.
1908    $as_echo "PATH: $as_dir"
1909  done
1910IFS=$as_save_IFS
1911
1912} >&5
1913
1914cat >&5 <<_ACEOF
1915
1916
1917## ----------- ##
1918## Core tests. ##
1919## ----------- ##
1920
1921_ACEOF
1922
1923
1924# Keep a trace of the command line.
1925# Strip out --no-create and --no-recursion so they do not pile up.
1926# Strip out --silent because we don't want to record it for future runs.
1927# Also quote any args containing shell meta-characters.
1928# Make two passes to allow for proper duplicate-argument suppression.
1929ac_configure_args=
1930ac_configure_args0=
1931ac_configure_args1=
1932ac_must_keep_next=false
1933for ac_pass in 1 2
1934do
1935  for ac_arg
1936  do
1937    case $ac_arg in
1938    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1939    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1940    | -silent | --silent | --silen | --sile | --sil)
1941      continue ;;
1942    *\'*)
1943      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1944    esac
1945    case $ac_pass in
1946    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1947    2)
1948      as_fn_append ac_configure_args1 " '$ac_arg'"
1949      if test $ac_must_keep_next = true; then
1950	ac_must_keep_next=false # Got value, back to normal.
1951      else
1952	case $ac_arg in
1953	  *=* | --config-cache | -C | -disable-* | --disable-* \
1954	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1955	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1956	  | -with-* | --with-* | -without-* | --without-* | --x)
1957	    case "$ac_configure_args0 " in
1958	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1959	    esac
1960	    ;;
1961	  -* ) ac_must_keep_next=true ;;
1962	esac
1963      fi
1964      as_fn_append ac_configure_args " '$ac_arg'"
1965      ;;
1966    esac
1967  done
1968done
1969{ ac_configure_args0=; unset ac_configure_args0;}
1970{ ac_configure_args1=; unset ac_configure_args1;}
1971
1972# When interrupted or exit'd, cleanup temporary files, and complete
1973# config.log.  We remove comments because anyway the quotes in there
1974# would cause problems or look ugly.
1975# WARNING: Use '\'' to represent an apostrophe within the trap.
1976# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1977trap 'exit_status=$?
1978  # Save into config.log some information that might help in debugging.
1979  {
1980    echo
1981
1982    $as_echo "## ---------------- ##
1983## Cache variables. ##
1984## ---------------- ##"
1985    echo
1986    # The following way of writing the cache mishandles newlines in values,
1987(
1988  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1989    eval ac_val=\$$ac_var
1990    case $ac_val in #(
1991    *${as_nl}*)
1992      case $ac_var in #(
1993      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1994$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1995      esac
1996      case $ac_var in #(
1997      _ | IFS | as_nl) ;; #(
1998      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1999      *) { eval $ac_var=; unset $ac_var;} ;;
2000      esac ;;
2001    esac
2002  done
2003  (set) 2>&1 |
2004    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2005    *${as_nl}ac_space=\ *)
2006      sed -n \
2007	"s/'\''/'\''\\\\'\'''\''/g;
2008	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2009      ;; #(
2010    *)
2011      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2012      ;;
2013    esac |
2014    sort
2015)
2016    echo
2017
2018    $as_echo "## ----------------- ##
2019## Output variables. ##
2020## ----------------- ##"
2021    echo
2022    for ac_var in $ac_subst_vars
2023    do
2024      eval ac_val=\$$ac_var
2025      case $ac_val in
2026      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027      esac
2028      $as_echo "$ac_var='\''$ac_val'\''"
2029    done | sort
2030    echo
2031
2032    if test -n "$ac_subst_files"; then
2033      $as_echo "## ------------------- ##
2034## File substitutions. ##
2035## ------------------- ##"
2036      echo
2037      for ac_var in $ac_subst_files
2038      do
2039	eval ac_val=\$$ac_var
2040	case $ac_val in
2041	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042	esac
2043	$as_echo "$ac_var='\''$ac_val'\''"
2044      done | sort
2045      echo
2046    fi
2047
2048    if test -s confdefs.h; then
2049      $as_echo "## ----------- ##
2050## confdefs.h. ##
2051## ----------- ##"
2052      echo
2053      cat confdefs.h
2054      echo
2055    fi
2056    test "$ac_signal" != 0 &&
2057      $as_echo "$as_me: caught signal $ac_signal"
2058    $as_echo "$as_me: exit $exit_status"
2059  } >&5
2060  rm -f core *.core core.conftest.* &&
2061    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2062    exit $exit_status
2063' 0
2064for ac_signal in 1 2 13 15; do
2065  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2066done
2067ac_signal=0
2068
2069# confdefs.h avoids OS command line length limits that DEFS can exceed.
2070rm -f -r conftest* confdefs.h
2071
2072$as_echo "/* confdefs.h */" > confdefs.h
2073
2074# Predefined preprocessor variables.
2075
2076cat >>confdefs.h <<_ACEOF
2077#define PACKAGE_NAME "$PACKAGE_NAME"
2078_ACEOF
2079
2080cat >>confdefs.h <<_ACEOF
2081#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2082_ACEOF
2083
2084cat >>confdefs.h <<_ACEOF
2085#define PACKAGE_VERSION "$PACKAGE_VERSION"
2086_ACEOF
2087
2088cat >>confdefs.h <<_ACEOF
2089#define PACKAGE_STRING "$PACKAGE_STRING"
2090_ACEOF
2091
2092cat >>confdefs.h <<_ACEOF
2093#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2094_ACEOF
2095
2096cat >>confdefs.h <<_ACEOF
2097#define PACKAGE_URL "$PACKAGE_URL"
2098_ACEOF
2099
2100
2101# Let the site file select an alternate cache file if it wants to.
2102# Prefer an explicitly selected file to automatically selected ones.
2103ac_site_file1=NONE
2104ac_site_file2=NONE
2105if test -n "$CONFIG_SITE"; then
2106  # We do not want a PATH search for config.site.
2107  case $CONFIG_SITE in #((
2108    -*)  ac_site_file1=./$CONFIG_SITE;;
2109    */*) ac_site_file1=$CONFIG_SITE;;
2110    *)   ac_site_file1=./$CONFIG_SITE;;
2111  esac
2112elif test "x$prefix" != xNONE; then
2113  ac_site_file1=$prefix/share/config.site
2114  ac_site_file2=$prefix/etc/config.site
2115else
2116  ac_site_file1=$ac_default_prefix/share/config.site
2117  ac_site_file2=$ac_default_prefix/etc/config.site
2118fi
2119for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2120do
2121  test "x$ac_site_file" = xNONE && continue
2122  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2123    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2124$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2125    sed 's/^/| /' "$ac_site_file" >&5
2126    . "$ac_site_file" \
2127      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2129as_fn_error $? "failed to load site script $ac_site_file
2130See \`config.log' for more details" "$LINENO" 5; }
2131  fi
2132done
2133
2134if test -r "$cache_file"; then
2135  # Some versions of bash will fail to source /dev/null (special files
2136  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2137  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2138    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2139$as_echo "$as_me: loading cache $cache_file" >&6;}
2140    case $cache_file in
2141      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2142      *)                      . "./$cache_file";;
2143    esac
2144  fi
2145else
2146  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2147$as_echo "$as_me: creating cache $cache_file" >&6;}
2148  >$cache_file
2149fi
2150
2151# Check that the precious variables saved in the cache have kept the same
2152# value.
2153ac_cache_corrupted=false
2154for ac_var in $ac_precious_vars; do
2155  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2156  eval ac_new_set=\$ac_env_${ac_var}_set
2157  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2158  eval ac_new_val=\$ac_env_${ac_var}_value
2159  case $ac_old_set,$ac_new_set in
2160    set,)
2161      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2162$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2163      ac_cache_corrupted=: ;;
2164    ,set)
2165      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2166$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2167      ac_cache_corrupted=: ;;
2168    ,);;
2169    *)
2170      if test "x$ac_old_val" != "x$ac_new_val"; then
2171	# differences in whitespace do not lead to failure.
2172	ac_old_val_w=`echo x $ac_old_val`
2173	ac_new_val_w=`echo x $ac_new_val`
2174	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2175	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2176$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2177	  ac_cache_corrupted=:
2178	else
2179	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2180$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2181	  eval $ac_var=\$ac_old_val
2182	fi
2183	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2184$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2185	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2186$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2187      fi;;
2188  esac
2189  # Pass precious variables to config.status.
2190  if test "$ac_new_set" = set; then
2191    case $ac_new_val in
2192    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2193    *) ac_arg=$ac_var=$ac_new_val ;;
2194    esac
2195    case " $ac_configure_args " in
2196      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2197      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2198    esac
2199  fi
2200done
2201if $ac_cache_corrupted; then
2202  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2204  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2205$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2206  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2207fi
2208## -------------------- ##
2209## Main body of script. ##
2210## -------------------- ##
2211
2212ac_ext=c
2213ac_cpp='$CPP $CPPFLAGS'
2214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216ac_compiler_gnu=$ac_cv_c_compiler_gnu
2217
2218
2219
2220>confdefs.h  # Kill PACKAGE_ macros
2221
2222
2223am__api_version='1.11'
2224
2225ac_aux_dir=
2226for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2227  if test -f "$ac_dir/install-sh"; then
2228    ac_aux_dir=$ac_dir
2229    ac_install_sh="$ac_aux_dir/install-sh -c"
2230    break
2231  elif test -f "$ac_dir/install.sh"; then
2232    ac_aux_dir=$ac_dir
2233    ac_install_sh="$ac_aux_dir/install.sh -c"
2234    break
2235  elif test -f "$ac_dir/shtool"; then
2236    ac_aux_dir=$ac_dir
2237    ac_install_sh="$ac_aux_dir/shtool install -c"
2238    break
2239  fi
2240done
2241if test -z "$ac_aux_dir"; then
2242  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2243fi
2244
2245# These three variables are undocumented and unsupported,
2246# and are intended to be withdrawn in a future Autoconf release.
2247# They can cause serious problems if a builder's source tree is in a directory
2248# whose full name contains unusual characters.
2249ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2250ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2251ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2252
2253
2254# Find a good install program.  We prefer a C program (faster),
2255# so one script is as good as another.  But avoid the broken or
2256# incompatible versions:
2257# SysV /etc/install, /usr/sbin/install
2258# SunOS /usr/etc/install
2259# IRIX /sbin/install
2260# AIX /bin/install
2261# AmigaOS /C/install, which installs bootblocks on floppy discs
2262# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2263# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2264# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2265# OS/2's system install, which has a completely different semantic
2266# ./install, which can be erroneously created by make from ./install.sh.
2267# Reject install programs that cannot install multiple files.
2268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2269$as_echo_n "checking for a BSD-compatible install... " >&6; }
2270if test -z "$INSTALL"; then
2271if test "${ac_cv_path_install+set}" = set; then :
2272  $as_echo_n "(cached) " >&6
2273else
2274  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275for as_dir in $PATH
2276do
2277  IFS=$as_save_IFS
2278  test -z "$as_dir" && as_dir=.
2279    # Account for people who put trailing slashes in PATH elements.
2280case $as_dir/ in #((
2281  ./ | .// | /[cC]/* | \
2282  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2283  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2284  /usr/ucb/* ) ;;
2285  *)
2286    # OSF1 and SCO ODT 3.0 have their own names for install.
2287    # Don't use installbsd from OSF since it installs stuff as root
2288    # by default.
2289    for ac_prog in ginstall scoinst install; do
2290      for ac_exec_ext in '' $ac_executable_extensions; do
2291	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2292	  if test $ac_prog = install &&
2293	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2294	    # AIX install.  It has an incompatible calling convention.
2295	    :
2296	  elif test $ac_prog = install &&
2297	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2298	    # program-specific install script used by HP pwplus--don't use.
2299	    :
2300	  else
2301	    rm -rf conftest.one conftest.two conftest.dir
2302	    echo one > conftest.one
2303	    echo two > conftest.two
2304	    mkdir conftest.dir
2305	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2306	      test -s conftest.one && test -s conftest.two &&
2307	      test -s conftest.dir/conftest.one &&
2308	      test -s conftest.dir/conftest.two
2309	    then
2310	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2311	      break 3
2312	    fi
2313	  fi
2314	fi
2315      done
2316    done
2317    ;;
2318esac
2319
2320  done
2321IFS=$as_save_IFS
2322
2323rm -rf conftest.one conftest.two conftest.dir
2324
2325fi
2326  if test "${ac_cv_path_install+set}" = set; then
2327    INSTALL=$ac_cv_path_install
2328  else
2329    # As a last resort, use the slow shell script.  Don't cache a
2330    # value for INSTALL within a source directory, because that will
2331    # break other packages using the cache if that directory is
2332    # removed, or if the value is a relative name.
2333    INSTALL=$ac_install_sh
2334  fi
2335fi
2336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2337$as_echo "$INSTALL" >&6; }
2338
2339# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2340# It thinks the first close brace ends the variable substitution.
2341test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2342
2343test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2344
2345test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2346
2347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2348$as_echo_n "checking whether build environment is sane... " >&6; }
2349# Just in case
2350sleep 1
2351echo timestamp > conftest.file
2352# Reject unsafe characters in $srcdir or the absolute working directory
2353# name.  Accept space and tab only in the latter.
2354am_lf='
2355'
2356case `pwd` in
2357  *[\\\"\#\$\&\'\`$am_lf]*)
2358    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2359esac
2360case $srcdir in
2361  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2362    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2363esac
2364
2365# Do `set' in a subshell so we don't clobber the current shell's
2366# arguments.  Must try -L first in case configure is actually a
2367# symlink; some systems play weird games with the mod time of symlinks
2368# (eg FreeBSD returns the mod time of the symlink's containing
2369# directory).
2370if (
2371   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2372   if test "$*" = "X"; then
2373      # -L didn't work.
2374      set X `ls -t "$srcdir/configure" conftest.file`
2375   fi
2376   rm -f conftest.file
2377   if test "$*" != "X $srcdir/configure conftest.file" \
2378      && test "$*" != "X conftest.file $srcdir/configure"; then
2379
2380      # If neither matched, then we have a broken ls.  This can happen
2381      # if, for instance, CONFIG_SHELL is bash and it inherits a
2382      # broken ls alias from the environment.  This has actually
2383      # happened.  Such a system could not be considered "sane".
2384      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2385alias in your environment" "$LINENO" 5
2386   fi
2387
2388   test "$2" = conftest.file
2389   )
2390then
2391   # Ok.
2392   :
2393else
2394   as_fn_error $? "newly created file is older than distributed files!
2395Check your system clock" "$LINENO" 5
2396fi
2397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2398$as_echo "yes" >&6; }
2399test "$program_prefix" != NONE &&
2400  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2401# Use a double $ so make ignores it.
2402test "$program_suffix" != NONE &&
2403  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2404# Double any \ or $.
2405# By default was `s,x,x', remove it if useless.
2406ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2407program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2408
2409# expand $ac_aux_dir to an absolute path
2410am_aux_dir=`cd $ac_aux_dir && pwd`
2411
2412if test x"${MISSING+set}" != xset; then
2413  case $am_aux_dir in
2414  *\ * | *\	*)
2415    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2416  *)
2417    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2418  esac
2419fi
2420# Use eval to expand $SHELL
2421if eval "$MISSING --run true"; then
2422  am_missing_run="$MISSING --run "
2423else
2424  am_missing_run=
2425  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2426$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2427fi
2428
2429if test x"${install_sh}" != xset; then
2430  case $am_aux_dir in
2431  *\ * | *\	*)
2432    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2433  *)
2434    install_sh="\${SHELL} $am_aux_dir/install-sh"
2435  esac
2436fi
2437
2438# Installed binaries are usually stripped using `strip' when the user
2439# run `make install-strip'.  However `strip' might not be the right
2440# tool to use in cross-compilation environments, therefore Automake
2441# will honor the `STRIP' environment variable to overrule this program.
2442if test "$cross_compiling" != no; then
2443  if test -n "$ac_tool_prefix"; then
2444  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2445set dummy ${ac_tool_prefix}strip; ac_word=$2
2446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2447$as_echo_n "checking for $ac_word... " >&6; }
2448if test "${ac_cv_prog_STRIP+set}" = set; then :
2449  $as_echo_n "(cached) " >&6
2450else
2451  if test -n "$STRIP"; then
2452  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2453else
2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457  IFS=$as_save_IFS
2458  test -z "$as_dir" && as_dir=.
2459    for ac_exec_ext in '' $ac_executable_extensions; do
2460  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2461    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2463    break 2
2464  fi
2465done
2466  done
2467IFS=$as_save_IFS
2468
2469fi
2470fi
2471STRIP=$ac_cv_prog_STRIP
2472if test -n "$STRIP"; then
2473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2474$as_echo "$STRIP" >&6; }
2475else
2476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2477$as_echo "no" >&6; }
2478fi
2479
2480
2481fi
2482if test -z "$ac_cv_prog_STRIP"; then
2483  ac_ct_STRIP=$STRIP
2484  # Extract the first word of "strip", so it can be a program name with args.
2485set dummy strip; ac_word=$2
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2487$as_echo_n "checking for $ac_word... " >&6; }
2488if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2489  $as_echo_n "(cached) " >&6
2490else
2491  if test -n "$ac_ct_STRIP"; then
2492  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2493else
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH
2496do
2497  IFS=$as_save_IFS
2498  test -z "$as_dir" && as_dir=.
2499    for ac_exec_ext in '' $ac_executable_extensions; do
2500  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2501    ac_cv_prog_ac_ct_STRIP="strip"
2502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2503    break 2
2504  fi
2505done
2506  done
2507IFS=$as_save_IFS
2508
2509fi
2510fi
2511ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2512if test -n "$ac_ct_STRIP"; then
2513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2514$as_echo "$ac_ct_STRIP" >&6; }
2515else
2516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2517$as_echo "no" >&6; }
2518fi
2519
2520  if test "x$ac_ct_STRIP" = x; then
2521    STRIP=":"
2522  else
2523    case $cross_compiling:$ac_tool_warned in
2524yes:)
2525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2527ac_tool_warned=yes ;;
2528esac
2529    STRIP=$ac_ct_STRIP
2530  fi
2531else
2532  STRIP="$ac_cv_prog_STRIP"
2533fi
2534
2535fi
2536INSTALL_STRIP_PROGRAM="install  -s -m 555 -s"
2537
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2539$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2540if test -z "$MKDIR_P"; then
2541  if test "${ac_cv_path_mkdir+set}" = set; then :
2542  $as_echo_n "(cached) " >&6
2543else
2544  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2546do
2547  IFS=$as_save_IFS
2548  test -z "$as_dir" && as_dir=.
2549    for ac_prog in mkdir gmkdir; do
2550	 for ac_exec_ext in '' $ac_executable_extensions; do
2551	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2552	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2553	     'mkdir (GNU coreutils) '* | \
2554	     'mkdir (coreutils) '* | \
2555	     'mkdir (fileutils) '4.1*)
2556	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2557	       break 3;;
2558	   esac
2559	 done
2560       done
2561  done
2562IFS=$as_save_IFS
2563
2564fi
2565
2566  test -d ./--version && rmdir ./--version
2567  if test "${ac_cv_path_mkdir+set}" = set; then
2568    MKDIR_P="$ac_cv_path_mkdir -p"
2569  else
2570    # As a last resort, use the slow shell script.  Don't cache a
2571    # value for MKDIR_P within a source directory, because that will
2572    # break other packages using the cache if that directory is
2573    # removed, or if the value is a relative name.
2574    MKDIR_P="$ac_install_sh -d"
2575  fi
2576fi
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2578$as_echo "$MKDIR_P" >&6; }
2579
2580mkdir_p="$MKDIR_P"
2581case $mkdir_p in
2582  [\\/$]* | ?:[\\/]*) ;;
2583  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2584esac
2585
2586for ac_prog in gawk mawk nawk awk
2587do
2588  # Extract the first word of "$ac_prog", so it can be a program name with args.
2589set dummy $ac_prog; ac_word=$2
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591$as_echo_n "checking for $ac_word... " >&6; }
2592if test "${ac_cv_prog_AWK+set}" = set; then :
2593  $as_echo_n "(cached) " >&6
2594else
2595  if test -n "$AWK"; then
2596  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2597else
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601  IFS=$as_save_IFS
2602  test -z "$as_dir" && as_dir=.
2603    for ac_exec_ext in '' $ac_executable_extensions; do
2604  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2605    ac_cv_prog_AWK="$ac_prog"
2606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607    break 2
2608  fi
2609done
2610  done
2611IFS=$as_save_IFS
2612
2613fi
2614fi
2615AWK=$ac_cv_prog_AWK
2616if test -n "$AWK"; then
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2618$as_echo "$AWK" >&6; }
2619else
2620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621$as_echo "no" >&6; }
2622fi
2623
2624
2625  test -n "$AWK" && break
2626done
2627
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2629$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2630set x ${MAKE-make}
2631ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2632if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2633  $as_echo_n "(cached) " >&6
2634else
2635  cat >conftest.make <<\_ACEOF
2636SHELL = /bin/sh
2637all:
2638	@echo '@@@%%%=$(MAKE)=@@@%%%'
2639_ACEOF
2640# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2641case `${MAKE-make} -f conftest.make 2>/dev/null` in
2642  *@@@%%%=?*=@@@%%%*)
2643    eval ac_cv_prog_make_${ac_make}_set=yes;;
2644  *)
2645    eval ac_cv_prog_make_${ac_make}_set=no;;
2646esac
2647rm -f conftest.make
2648fi
2649if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2651$as_echo "yes" >&6; }
2652  SET_MAKE=
2653else
2654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655$as_echo "no" >&6; }
2656  SET_MAKE="MAKE=${MAKE-make}"
2657fi
2658
2659rm -rf .tst 2>/dev/null
2660mkdir .tst 2>/dev/null
2661if test -d .tst; then
2662  am__leading_dot=.
2663else
2664  am__leading_dot=_
2665fi
2666rmdir .tst 2>/dev/null
2667
2668if test "`cd $srcdir && pwd`" != "`pwd`"; then
2669  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2670  # is not polluted with repeated "-I."
2671  am__isrc=' -I$(srcdir)'
2672  # test to see if srcdir already configured
2673  if test -f $srcdir/config.status; then
2674    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2675  fi
2676fi
2677
2678# test whether we have cygpath
2679if test -z "$CYGPATH_W"; then
2680  if (cygpath --version) >/dev/null 2>/dev/null; then
2681    CYGPATH_W='cygpath -w'
2682  else
2683    CYGPATH_W=echo
2684  fi
2685fi
2686
2687
2688# Define the identity of the package.
2689 PACKAGE='http11'
2690 VERSION='0.10'
2691
2692
2693# Some tools Automake needs.
2694
2695ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2696
2697
2698AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2699
2700
2701AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2702
2703
2704AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2705
2706
2707MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2708
2709# We need awk for the "check" target.  The system "awk" is bad on
2710# some platforms.
2711# Always define AMTAR for backward compatibility.
2712
2713AMTAR=${AMTAR-"${am_missing_run}tar"}
2714
2715am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2716
2717
2718
2719
2720
2721
2722
2723DEPDIR="${am__leading_dot}deps"
2724
2725ac_config_commands="$ac_config_commands depfiles"
2726
2727
2728am_make=${MAKE-make}
2729cat > confinc << 'END'
2730am__doit:
2731	@echo this is the am__doit target
2732.PHONY: am__doit
2733END
2734# If we don't find an include directive, just comment out the code.
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2736$as_echo_n "checking for style of include used by $am_make... " >&6; }
2737am__include="#"
2738am__quote=
2739_am_result=none
2740# First try GNU make style include.
2741echo "include confinc" > confmf
2742# Ignore all kinds of additional output from `make'.
2743case `$am_make -s -f confmf 2> /dev/null` in #(
2744*the\ am__doit\ target*)
2745  am__include=include
2746  am__quote=
2747  _am_result=GNU
2748  ;;
2749esac
2750# Now try BSD make style include.
2751if test "$am__include" = "#"; then
2752   echo '.include "confinc"' > confmf
2753   case `$am_make -s -f confmf 2> /dev/null` in #(
2754   *the\ am__doit\ target*)
2755     am__include=.include
2756     am__quote="\""
2757     _am_result=BSD
2758     ;;
2759   esac
2760fi
2761
2762
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2764$as_echo "$_am_result" >&6; }
2765rm -f confinc confmf
2766
2767# Check whether --enable-dependency-tracking was given.
2768if test "${enable_dependency_tracking+set}" = set; then :
2769  enableval=$enable_dependency_tracking;
2770fi
2771
2772if test "x$enable_dependency_tracking" != xno; then
2773  am_depcomp="$ac_aux_dir/depcomp"
2774  AMDEPBACKSLASH='\'
2775fi
2776 if test "x$enable_dependency_tracking" != xno; then
2777  AMDEP_TRUE=
2778  AMDEP_FALSE='#'
2779else
2780  AMDEP_TRUE='#'
2781  AMDEP_FALSE=
2782fi
2783
2784
2785ac_ext=c
2786ac_cpp='$CPP $CPPFLAGS'
2787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789ac_compiler_gnu=$ac_cv_c_compiler_gnu
2790if test -n "$ac_tool_prefix"; then
2791  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2792set dummy ${ac_tool_prefix}gcc; ac_word=$2
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794$as_echo_n "checking for $ac_word... " >&6; }
2795if test "${ac_cv_prog_CC+set}" = set; then :
2796  $as_echo_n "(cached) " >&6
2797else
2798  if test -n "$CC"; then
2799  ac_cv_prog_CC="$CC" # Let the user override the test.
2800else
2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804  IFS=$as_save_IFS
2805  test -z "$as_dir" && as_dir=.
2806    for ac_exec_ext in '' $ac_executable_extensions; do
2807  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810    break 2
2811  fi
2812done
2813  done
2814IFS=$as_save_IFS
2815
2816fi
2817fi
2818CC=$ac_cv_prog_CC
2819if test -n "$CC"; then
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2821$as_echo "$CC" >&6; }
2822else
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824$as_echo "no" >&6; }
2825fi
2826
2827
2828fi
2829if test -z "$ac_cv_prog_CC"; then
2830  ac_ct_CC=$CC
2831  # Extract the first word of "gcc", so it can be a program name with args.
2832set dummy gcc; ac_word=$2
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834$as_echo_n "checking for $ac_word... " >&6; }
2835if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2836  $as_echo_n "(cached) " >&6
2837else
2838  if test -n "$ac_ct_CC"; then
2839  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844  IFS=$as_save_IFS
2845  test -z "$as_dir" && as_dir=.
2846    for ac_exec_ext in '' $ac_executable_extensions; do
2847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848    ac_cv_prog_ac_ct_CC="gcc"
2849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850    break 2
2851  fi
2852done
2853  done
2854IFS=$as_save_IFS
2855
2856fi
2857fi
2858ac_ct_CC=$ac_cv_prog_ac_ct_CC
2859if test -n "$ac_ct_CC"; then
2860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2861$as_echo "$ac_ct_CC" >&6; }
2862else
2863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864$as_echo "no" >&6; }
2865fi
2866
2867  if test "x$ac_ct_CC" = x; then
2868    CC=""
2869  else
2870    case $cross_compiling:$ac_tool_warned in
2871yes:)
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2874ac_tool_warned=yes ;;
2875esac
2876    CC=$ac_ct_CC
2877  fi
2878else
2879  CC="$ac_cv_prog_CC"
2880fi
2881
2882if test -z "$CC"; then
2883          if test -n "$ac_tool_prefix"; then
2884    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2885set dummy ${ac_tool_prefix}cc; ac_word=$2
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887$as_echo_n "checking for $ac_word... " >&6; }
2888if test "${ac_cv_prog_CC+set}" = set; then :
2889  $as_echo_n "(cached) " >&6
2890else
2891  if test -n "$CC"; then
2892  ac_cv_prog_CC="$CC" # Let the user override the test.
2893else
2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895for as_dir in $PATH
2896do
2897  IFS=$as_save_IFS
2898  test -z "$as_dir" && as_dir=.
2899    for ac_exec_ext in '' $ac_executable_extensions; do
2900  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901    ac_cv_prog_CC="${ac_tool_prefix}cc"
2902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903    break 2
2904  fi
2905done
2906  done
2907IFS=$as_save_IFS
2908
2909fi
2910fi
2911CC=$ac_cv_prog_CC
2912if test -n "$CC"; then
2913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2914$as_echo "$CC" >&6; }
2915else
2916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917$as_echo "no" >&6; }
2918fi
2919
2920
2921  fi
2922fi
2923if test -z "$CC"; then
2924  # Extract the first word of "cc", so it can be a program name with args.
2925set dummy cc; ac_word=$2
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927$as_echo_n "checking for $ac_word... " >&6; }
2928if test "${ac_cv_prog_CC+set}" = set; then :
2929  $as_echo_n "(cached) " >&6
2930else
2931  if test -n "$CC"; then
2932  ac_cv_prog_CC="$CC" # Let the user override the test.
2933else
2934  ac_prog_rejected=no
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938  IFS=$as_save_IFS
2939  test -z "$as_dir" && as_dir=.
2940    for ac_exec_ext in '' $ac_executable_extensions; do
2941  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2943       ac_prog_rejected=yes
2944       continue
2945     fi
2946    ac_cv_prog_CC="cc"
2947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948    break 2
2949  fi
2950done
2951  done
2952IFS=$as_save_IFS
2953
2954if test $ac_prog_rejected = yes; then
2955  # We found a bogon in the path, so make sure we never use it.
2956  set dummy $ac_cv_prog_CC
2957  shift
2958  if test $# != 0; then
2959    # We chose a different compiler from the bogus one.
2960    # However, it has the same basename, so the bogon will be chosen
2961    # first if we set CC to just the basename; use the full file name.
2962    shift
2963    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2964  fi
2965fi
2966fi
2967fi
2968CC=$ac_cv_prog_CC
2969if test -n "$CC"; then
2970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971$as_echo "$CC" >&6; }
2972else
2973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
2975fi
2976
2977
2978fi
2979if test -z "$CC"; then
2980  if test -n "$ac_tool_prefix"; then
2981  for ac_prog in cl.exe
2982  do
2983    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2984set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986$as_echo_n "checking for $ac_word... " >&6; }
2987if test "${ac_cv_prog_CC+set}" = set; then :
2988  $as_echo_n "(cached) " >&6
2989else
2990  if test -n "$CC"; then
2991  ac_cv_prog_CC="$CC" # Let the user override the test.
2992else
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996  IFS=$as_save_IFS
2997  test -z "$as_dir" && as_dir=.
2998    for ac_exec_ext in '' $ac_executable_extensions; do
2999  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002    break 2
3003  fi
3004done
3005  done
3006IFS=$as_save_IFS
3007
3008fi
3009fi
3010CC=$ac_cv_prog_CC
3011if test -n "$CC"; then
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013$as_echo "$CC" >&6; }
3014else
3015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016$as_echo "no" >&6; }
3017fi
3018
3019
3020    test -n "$CC" && break
3021  done
3022fi
3023if test -z "$CC"; then
3024  ac_ct_CC=$CC
3025  for ac_prog in cl.exe
3026do
3027  # Extract the first word of "$ac_prog", so it can be a program name with args.
3028set dummy $ac_prog; ac_word=$2
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030$as_echo_n "checking for $ac_word... " >&6; }
3031if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3032  $as_echo_n "(cached) " >&6
3033else
3034  if test -n "$ac_ct_CC"; then
3035  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3036else
3037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH
3039do
3040  IFS=$as_save_IFS
3041  test -z "$as_dir" && as_dir=.
3042    for ac_exec_ext in '' $ac_executable_extensions; do
3043  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044    ac_cv_prog_ac_ct_CC="$ac_prog"
3045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046    break 2
3047  fi
3048done
3049  done
3050IFS=$as_save_IFS
3051
3052fi
3053fi
3054ac_ct_CC=$ac_cv_prog_ac_ct_CC
3055if test -n "$ac_ct_CC"; then
3056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3057$as_echo "$ac_ct_CC" >&6; }
3058else
3059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060$as_echo "no" >&6; }
3061fi
3062
3063
3064  test -n "$ac_ct_CC" && break
3065done
3066
3067  if test "x$ac_ct_CC" = x; then
3068    CC=""
3069  else
3070    case $cross_compiling:$ac_tool_warned in
3071yes:)
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3074ac_tool_warned=yes ;;
3075esac
3076    CC=$ac_ct_CC
3077  fi
3078fi
3079
3080fi
3081
3082
3083test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085as_fn_error $? "no acceptable C compiler found in \$PATH
3086See \`config.log' for more details" "$LINENO" 5; }
3087
3088# Provide some information about the compiler.
3089$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3090set X $ac_compile
3091ac_compiler=$2
3092for ac_option in --version -v -V -qversion; do
3093  { { ac_try="$ac_compiler $ac_option >&5"
3094case "(($ac_try" in
3095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096  *) ac_try_echo=$ac_try;;
3097esac
3098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099$as_echo "$ac_try_echo"; } >&5
3100  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3101  ac_status=$?
3102  if test -s conftest.err; then
3103    sed '10a\
3104... rest of stderr output deleted ...
3105         10q' conftest.err >conftest.er1
3106    cat conftest.er1 >&5
3107  fi
3108  rm -f conftest.er1 conftest.err
3109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110  test $ac_status = 0; }
3111done
3112
3113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114/* end confdefs.h.  */
3115
3116int
3117main ()
3118{
3119
3120  ;
3121  return 0;
3122}
3123_ACEOF
3124ac_clean_files_save=$ac_clean_files
3125ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3126# Try to create an executable without -o first, disregard a.out.
3127# It will help us diagnose broken compilers, and finding out an intuition
3128# of exeext.
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3130$as_echo_n "checking whether the C compiler works... " >&6; }
3131ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3132
3133# The possible output files:
3134ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3135
3136ac_rmfiles=
3137for ac_file in $ac_files
3138do
3139  case $ac_file in
3140    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3141    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3142  esac
3143done
3144rm -f $ac_rmfiles
3145
3146if { { ac_try="$ac_link_default"
3147case "(($ac_try" in
3148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149  *) ac_try_echo=$ac_try;;
3150esac
3151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152$as_echo "$ac_try_echo"; } >&5
3153  (eval "$ac_link_default") 2>&5
3154  ac_status=$?
3155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156  test $ac_status = 0; }; then :
3157  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3158# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3159# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3160# so that the user can short-circuit this test for compilers unknown to
3161# Autoconf.
3162for ac_file in $ac_files ''
3163do
3164  test -f "$ac_file" || continue
3165  case $ac_file in
3166    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3167	;;
3168    [ab].out )
3169	# We found the default executable, but exeext='' is most
3170	# certainly right.
3171	break;;
3172    *.* )
3173	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3174	then :; else
3175	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3176	fi
3177	# We set ac_cv_exeext here because the later test for it is not
3178	# safe: cross compilers may not add the suffix if given an `-o'
3179	# argument, so we may need to know it at that point already.
3180	# Even if this section looks crufty: it has the advantage of
3181	# actually working.
3182	break;;
3183    * )
3184	break;;
3185  esac
3186done
3187test "$ac_cv_exeext" = no && ac_cv_exeext=
3188
3189else
3190  ac_file=''
3191fi
3192if test -z "$ac_file"; then :
3193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194$as_echo "no" >&6; }
3195$as_echo "$as_me: failed program was:" >&5
3196sed 's/^/| /' conftest.$ac_ext >&5
3197
3198{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200as_fn_error 77 "C compiler cannot create executables
3201See \`config.log' for more details" "$LINENO" 5; }
3202else
3203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3204$as_echo "yes" >&6; }
3205fi
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3207$as_echo_n "checking for C compiler default output file name... " >&6; }
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3209$as_echo "$ac_file" >&6; }
3210ac_exeext=$ac_cv_exeext
3211
3212rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3213ac_clean_files=$ac_clean_files_save
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3215$as_echo_n "checking for suffix of executables... " >&6; }
3216if { { ac_try="$ac_link"
3217case "(($ac_try" in
3218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219  *) ac_try_echo=$ac_try;;
3220esac
3221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222$as_echo "$ac_try_echo"; } >&5
3223  (eval "$ac_link") 2>&5
3224  ac_status=$?
3225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226  test $ac_status = 0; }; then :
3227  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3228# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3229# work properly (i.e., refer to `conftest.exe'), while it won't with
3230# `rm'.
3231for ac_file in conftest.exe conftest conftest.*; do
3232  test -f "$ac_file" || continue
3233  case $ac_file in
3234    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3235    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3236	  break;;
3237    * ) break;;
3238  esac
3239done
3240else
3241  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3244See \`config.log' for more details" "$LINENO" 5; }
3245fi
3246rm -f conftest conftest$ac_cv_exeext
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3248$as_echo "$ac_cv_exeext" >&6; }
3249
3250rm -f conftest.$ac_ext
3251EXEEXT=$ac_cv_exeext
3252ac_exeext=$EXEEXT
3253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254/* end confdefs.h.  */
3255#include <stdio.h>
3256int
3257main ()
3258{
3259FILE *f = fopen ("conftest.out", "w");
3260 return ferror (f) || fclose (f) != 0;
3261
3262  ;
3263  return 0;
3264}
3265_ACEOF
3266ac_clean_files="$ac_clean_files conftest.out"
3267# Check that the compiler produces executables we can run.  If not, either
3268# the compiler is broken, or we cross compile.
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3270$as_echo_n "checking whether we are cross compiling... " >&6; }
3271if test "$cross_compiling" != yes; then
3272  { { ac_try="$ac_link"
3273case "(($ac_try" in
3274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275  *) ac_try_echo=$ac_try;;
3276esac
3277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3278$as_echo "$ac_try_echo"; } >&5
3279  (eval "$ac_link") 2>&5
3280  ac_status=$?
3281  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282  test $ac_status = 0; }
3283  if { ac_try='./conftest$ac_cv_exeext'
3284  { { case "(($ac_try" in
3285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286  *) ac_try_echo=$ac_try;;
3287esac
3288eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289$as_echo "$ac_try_echo"; } >&5
3290  (eval "$ac_try") 2>&5
3291  ac_status=$?
3292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293  test $ac_status = 0; }; }; then
3294    cross_compiling=no
3295  else
3296    if test "$cross_compiling" = maybe; then
3297	cross_compiling=yes
3298    else
3299	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301as_fn_error $? "cannot run C compiled programs.
3302If you meant to cross compile, use \`--host'.
3303See \`config.log' for more details" "$LINENO" 5; }
3304    fi
3305  fi
3306fi
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3308$as_echo "$cross_compiling" >&6; }
3309
3310rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3311ac_clean_files=$ac_clean_files_save
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3313$as_echo_n "checking for suffix of object files... " >&6; }
3314if test "${ac_cv_objext+set}" = set; then :
3315  $as_echo_n "(cached) " >&6
3316else
3317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318/* end confdefs.h.  */
3319
3320int
3321main ()
3322{
3323
3324  ;
3325  return 0;
3326}
3327_ACEOF
3328rm -f conftest.o conftest.obj
3329if { { ac_try="$ac_compile"
3330case "(($ac_try" in
3331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332  *) ac_try_echo=$ac_try;;
3333esac
3334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335$as_echo "$ac_try_echo"; } >&5
3336  (eval "$ac_compile") 2>&5
3337  ac_status=$?
3338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339  test $ac_status = 0; }; then :
3340  for ac_file in conftest.o conftest.obj conftest.*; do
3341  test -f "$ac_file" || continue;
3342  case $ac_file in
3343    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3344    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3345       break;;
3346  esac
3347done
3348else
3349  $as_echo "$as_me: failed program was:" >&5
3350sed 's/^/| /' conftest.$ac_ext >&5
3351
3352{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354as_fn_error $? "cannot compute suffix of object files: cannot compile
3355See \`config.log' for more details" "$LINENO" 5; }
3356fi
3357rm -f conftest.$ac_cv_objext conftest.$ac_ext
3358fi
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3360$as_echo "$ac_cv_objext" >&6; }
3361OBJEXT=$ac_cv_objext
3362ac_objext=$OBJEXT
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3364$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3365if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3366  $as_echo_n "(cached) " >&6
3367else
3368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369/* end confdefs.h.  */
3370
3371int
3372main ()
3373{
3374#ifndef __GNUC__
3375       choke me
3376#endif
3377
3378  ;
3379  return 0;
3380}
3381_ACEOF
3382if ac_fn_c_try_compile "$LINENO"; then :
3383  ac_compiler_gnu=yes
3384else
3385  ac_compiler_gnu=no
3386fi
3387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388ac_cv_c_compiler_gnu=$ac_compiler_gnu
3389
3390fi
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3392$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3393if test $ac_compiler_gnu = yes; then
3394  GCC=yes
3395else
3396  GCC=
3397fi
3398ac_test_CFLAGS=${CFLAGS+set}
3399ac_save_CFLAGS=$CFLAGS
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3401$as_echo_n "checking whether $CC accepts -g... " >&6; }
3402if test "${ac_cv_prog_cc_g+set}" = set; then :
3403  $as_echo_n "(cached) " >&6
3404else
3405  ac_save_c_werror_flag=$ac_c_werror_flag
3406   ac_c_werror_flag=yes
3407   ac_cv_prog_cc_g=no
3408   CFLAGS="-g"
3409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410/* end confdefs.h.  */
3411
3412int
3413main ()
3414{
3415
3416  ;
3417  return 0;
3418}
3419_ACEOF
3420if ac_fn_c_try_compile "$LINENO"; then :
3421  ac_cv_prog_cc_g=yes
3422else
3423  CFLAGS=""
3424      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425/* end confdefs.h.  */
3426
3427int
3428main ()
3429{
3430
3431  ;
3432  return 0;
3433}
3434_ACEOF
3435if ac_fn_c_try_compile "$LINENO"; then :
3436
3437else
3438  ac_c_werror_flag=$ac_save_c_werror_flag
3439	 CFLAGS="-g"
3440	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441/* end confdefs.h.  */
3442
3443int
3444main ()
3445{
3446
3447  ;
3448  return 0;
3449}
3450_ACEOF
3451if ac_fn_c_try_compile "$LINENO"; then :
3452  ac_cv_prog_cc_g=yes
3453fi
3454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455fi
3456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457fi
3458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459   ac_c_werror_flag=$ac_save_c_werror_flag
3460fi
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3462$as_echo "$ac_cv_prog_cc_g" >&6; }
3463if test "$ac_test_CFLAGS" = set; then
3464  CFLAGS=$ac_save_CFLAGS
3465elif test $ac_cv_prog_cc_g = yes; then
3466  if test "$GCC" = yes; then
3467    CFLAGS="-g -O2"
3468  else
3469    CFLAGS="-g"
3470  fi
3471else
3472  if test "$GCC" = yes; then
3473    CFLAGS="-O2"
3474  else
3475    CFLAGS=
3476  fi
3477fi
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3479$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3480if test "${ac_cv_prog_cc_c89+set}" = set; then :
3481  $as_echo_n "(cached) " >&6
3482else
3483  ac_cv_prog_cc_c89=no
3484ac_save_CC=$CC
3485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486/* end confdefs.h.  */
3487#include <stdarg.h>
3488#include <stdio.h>
3489#include <sys/types.h>
3490#include <sys/stat.h>
3491/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3492struct buf { int x; };
3493FILE * (*rcsopen) (struct buf *, struct stat *, int);
3494static char *e (p, i)
3495     char **p;
3496     int i;
3497{
3498  return p[i];
3499}
3500static char *f (char * (*g) (char **, int), char **p, ...)
3501{
3502  char *s;
3503  va_list v;
3504  va_start (v,p);
3505  s = g (p, va_arg (v,int));
3506  va_end (v);
3507  return s;
3508}
3509
3510/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3511   function prototypes and stuff, but not '\xHH' hex character constants.
3512   These don't provoke an error unfortunately, instead are silently treated
3513   as 'x'.  The following induces an error, until -std is added to get
3514   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3515   array size at least.  It's necessary to write '\x00'==0 to get something
3516   that's true only with -std.  */
3517int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3518
3519/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3520   inside strings and character constants.  */
3521#define FOO(x) 'x'
3522int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3523
3524int test (int i, double x);
3525struct s1 {int (*f) (int a);};
3526struct s2 {int (*f) (double a);};
3527int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3528int argc;
3529char **argv;
3530int
3531main ()
3532{
3533return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3534  ;
3535  return 0;
3536}
3537_ACEOF
3538for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3539	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3540do
3541  CC="$ac_save_CC $ac_arg"
3542  if ac_fn_c_try_compile "$LINENO"; then :
3543  ac_cv_prog_cc_c89=$ac_arg
3544fi
3545rm -f core conftest.err conftest.$ac_objext
3546  test "x$ac_cv_prog_cc_c89" != "xno" && break
3547done
3548rm -f conftest.$ac_ext
3549CC=$ac_save_CC
3550
3551fi
3552# AC_CACHE_VAL
3553case "x$ac_cv_prog_cc_c89" in
3554  x)
3555    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3556$as_echo "none needed" >&6; } ;;
3557  xno)
3558    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3559$as_echo "unsupported" >&6; } ;;
3560  *)
3561    CC="$CC $ac_cv_prog_cc_c89"
3562    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3563$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3564esac
3565if test "x$ac_cv_prog_cc_c89" != xno; then :
3566
3567fi
3568
3569ac_ext=c
3570ac_cpp='$CPP $CPPFLAGS'
3571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574
3575depcc="$CC"   am_compiler_list=
3576
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3578$as_echo_n "checking dependency style of $depcc... " >&6; }
3579if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3580  $as_echo_n "(cached) " >&6
3581else
3582  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3583  # We make a subdir and do the tests there.  Otherwise we can end up
3584  # making bogus files that we don't know about and never remove.  For
3585  # instance it was reported that on HP-UX the gcc test will end up
3586  # making a dummy file named `D' -- because `-MD' means `put the output
3587  # in D'.
3588  mkdir conftest.dir
3589  # Copy depcomp to subdir because otherwise we won't find it if we're
3590  # using a relative directory.
3591  cp "$am_depcomp" conftest.dir
3592  cd conftest.dir
3593  # We will build objects and dependencies in a subdirectory because
3594  # it helps to detect inapplicable dependency modes.  For instance
3595  # both Tru64's cc and ICC support -MD to output dependencies as a
3596  # side effect of compilation, but ICC will put the dependencies in
3597  # the current directory while Tru64 will put them in the object
3598  # directory.
3599  mkdir sub
3600
3601  am_cv_CC_dependencies_compiler_type=none
3602  if test "$am_compiler_list" = ""; then
3603     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3604  fi
3605  am__universal=false
3606  case " $depcc " in #(
3607     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3608     esac
3609
3610  for depmode in $am_compiler_list; do
3611    # Setup a source with many dependencies, because some compilers
3612    # like to wrap large dependency lists on column 80 (with \), and
3613    # we should not choose a depcomp mode which is confused by this.
3614    #
3615    # We need to recreate these files for each test, as the compiler may
3616    # overwrite some of them when testing with obscure command lines.
3617    # This happens at least with the AIX C compiler.
3618    : > sub/conftest.c
3619    for i in 1 2 3 4 5 6; do
3620      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3621      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3622      # Solaris 8's {/usr,}/bin/sh.
3623      touch sub/conftst$i.h
3624    done
3625    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3626
3627    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3628    # mode.  It turns out that the SunPro C++ compiler does not properly
3629    # handle `-M -o', and we need to detect this.  Also, some Intel
3630    # versions had trouble with output in subdirs
3631    am__obj=sub/conftest.${OBJEXT-o}
3632    am__minus_obj="-o $am__obj"
3633    case $depmode in
3634    gcc)
3635      # This depmode causes a compiler race in universal mode.
3636      test "$am__universal" = false || continue
3637      ;;
3638    nosideeffect)
3639      # after this tag, mechanisms are not by side-effect, so they'll
3640      # only be used when explicitly requested
3641      if test "x$enable_dependency_tracking" = xyes; then
3642	continue
3643      else
3644	break
3645      fi
3646      ;;
3647    msvisualcpp | msvcmsys)
3648      # This compiler won't grok `-c -o', but also, the minuso test has
3649      # not run yet.  These depmodes are late enough in the game, and
3650      # so weak that their functioning should not be impacted.
3651      am__obj=conftest.${OBJEXT-o}
3652      am__minus_obj=
3653      ;;
3654    none) break ;;
3655    esac
3656    if depmode=$depmode \
3657       source=sub/conftest.c object=$am__obj \
3658       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3659       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3660         >/dev/null 2>conftest.err &&
3661       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3662       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3663       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3664       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3665      # icc doesn't choke on unknown options, it will just issue warnings
3666      # or remarks (even with -Werror).  So we grep stderr for any message
3667      # that says an option was ignored or not supported.
3668      # When given -MP, icc 7.0 and 7.1 complain thusly:
3669      #   icc: Command line warning: ignoring option '-M'; no argument required
3670      # The diagnosis changed in icc 8.0:
3671      #   icc: Command line remark: option '-MP' not supported
3672      if (grep 'ignoring option' conftest.err ||
3673          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3674        am_cv_CC_dependencies_compiler_type=$depmode
3675        break
3676      fi
3677    fi
3678  done
3679
3680  cd ..
3681  rm -rf conftest.dir
3682else
3683  am_cv_CC_dependencies_compiler_type=none
3684fi
3685
3686fi
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3688$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3689CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3690
3691 if
3692  test "x$enable_dependency_tracking" != xno \
3693  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3694  am__fastdepCC_TRUE=
3695  am__fastdepCC_FALSE='#'
3696else
3697  am__fastdepCC_TRUE='#'
3698  am__fastdepCC_FALSE=
3699fi
3700
3701
3702
3703ac_ext=c
3704ac_cpp='$CPP $CPPFLAGS'
3705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3709$as_echo_n "checking how to run the C preprocessor... " >&6; }
3710# On Suns, sometimes $CPP names a directory.
3711if test -n "$CPP" && test -d "$CPP"; then
3712  CPP=
3713fi
3714if test -z "$CPP"; then
3715  if test "${ac_cv_prog_CPP+set}" = set; then :
3716  $as_echo_n "(cached) " >&6
3717else
3718      # Double quotes because CPP needs to be expanded
3719    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3720    do
3721      ac_preproc_ok=false
3722for ac_c_preproc_warn_flag in '' yes
3723do
3724  # Use a header file that comes with gcc, so configuring glibc
3725  # with a fresh cross-compiler works.
3726  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3727  # <limits.h> exists even on freestanding compilers.
3728  # On the NeXT, cc -E runs the code through the compiler's parser,
3729  # not just through cpp. "Syntax error" is here to catch this case.
3730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h.  */
3732#ifdef __STDC__
3733# include <limits.h>
3734#else
3735# include <assert.h>
3736#endif
3737		     Syntax error
3738_ACEOF
3739if ac_fn_c_try_cpp "$LINENO"; then :
3740
3741else
3742  # Broken: fails on valid input.
3743continue
3744fi
3745rm -f conftest.err conftest.$ac_ext
3746
3747  # OK, works on sane cases.  Now check whether nonexistent headers
3748  # can be detected and how.
3749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h.  */
3751#include <ac_nonexistent.h>
3752_ACEOF
3753if ac_fn_c_try_cpp "$LINENO"; then :
3754  # Broken: success on invalid input.
3755continue
3756else
3757  # Passes both tests.
3758ac_preproc_ok=:
3759break
3760fi
3761rm -f conftest.err conftest.$ac_ext
3762
3763done
3764# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3765rm -f conftest.err conftest.$ac_ext
3766if $ac_preproc_ok; then :
3767  break
3768fi
3769
3770    done
3771    ac_cv_prog_CPP=$CPP
3772
3773fi
3774  CPP=$ac_cv_prog_CPP
3775else
3776  ac_cv_prog_CPP=$CPP
3777fi
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3779$as_echo "$CPP" >&6; }
3780ac_preproc_ok=false
3781for ac_c_preproc_warn_flag in '' yes
3782do
3783  # Use a header file that comes with gcc, so configuring glibc
3784  # with a fresh cross-compiler works.
3785  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786  # <limits.h> exists even on freestanding compilers.
3787  # On the NeXT, cc -E runs the code through the compiler's parser,
3788  # not just through cpp. "Syntax error" is here to catch this case.
3789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790/* end confdefs.h.  */
3791#ifdef __STDC__
3792# include <limits.h>
3793#else
3794# include <assert.h>
3795#endif
3796		     Syntax error
3797_ACEOF
3798if ac_fn_c_try_cpp "$LINENO"; then :
3799
3800else
3801  # Broken: fails on valid input.
3802continue
3803fi
3804rm -f conftest.err conftest.$ac_ext
3805
3806  # OK, works on sane cases.  Now check whether nonexistent headers
3807  # can be detected and how.
3808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809/* end confdefs.h.  */
3810#include <ac_nonexistent.h>
3811_ACEOF
3812if ac_fn_c_try_cpp "$LINENO"; then :
3813  # Broken: success on invalid input.
3814continue
3815else
3816  # Passes both tests.
3817ac_preproc_ok=:
3818break
3819fi
3820rm -f conftest.err conftest.$ac_ext
3821
3822done
3823# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3824rm -f conftest.err conftest.$ac_ext
3825if $ac_preproc_ok; then :
3826
3827else
3828  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3831See \`config.log' for more details" "$LINENO" 5; }
3832fi
3833
3834ac_ext=c
3835ac_cpp='$CPP $CPPFLAGS'
3836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838ac_compiler_gnu=$ac_cv_c_compiler_gnu
3839
3840
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3842$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3843if test "${ac_cv_path_GREP+set}" = set; then :
3844  $as_echo_n "(cached) " >&6
3845else
3846  if test -z "$GREP"; then
3847  ac_path_GREP_found=false
3848  # Loop through the user's path and test for each of PROGNAME-LIST
3849  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3851do
3852  IFS=$as_save_IFS
3853  test -z "$as_dir" && as_dir=.
3854    for ac_prog in grep ggrep; do
3855    for ac_exec_ext in '' $ac_executable_extensions; do
3856      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3857      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3858# Check for GNU ac_path_GREP and select it if it is found.
3859  # Check for GNU $ac_path_GREP
3860case `"$ac_path_GREP" --version 2>&1` in
3861*GNU*)
3862  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3863*)
3864  ac_count=0
3865  $as_echo_n 0123456789 >"conftest.in"
3866  while :
3867  do
3868    cat "conftest.in" "conftest.in" >"conftest.tmp"
3869    mv "conftest.tmp" "conftest.in"
3870    cp "conftest.in" "conftest.nl"
3871    $as_echo 'GREP' >> "conftest.nl"
3872    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3873    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3874    as_fn_arith $ac_count + 1 && ac_count=$as_val
3875    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3876      # Best one so far, save it but keep looking for a better one
3877      ac_cv_path_GREP="$ac_path_GREP"
3878      ac_path_GREP_max=$ac_count
3879    fi
3880    # 10*(2^10) chars as input seems more than enough
3881    test $ac_count -gt 10 && break
3882  done
3883  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3884esac
3885
3886      $ac_path_GREP_found && break 3
3887    done
3888  done
3889  done
3890IFS=$as_save_IFS
3891  if test -z "$ac_cv_path_GREP"; then
3892    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3893  fi
3894else
3895  ac_cv_path_GREP=$GREP
3896fi
3897
3898fi
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3900$as_echo "$ac_cv_path_GREP" >&6; }
3901 GREP="$ac_cv_path_GREP"
3902
3903
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3905$as_echo_n "checking for egrep... " >&6; }
3906if test "${ac_cv_path_EGREP+set}" = set; then :
3907  $as_echo_n "(cached) " >&6
3908else
3909  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3910   then ac_cv_path_EGREP="$GREP -E"
3911   else
3912     if test -z "$EGREP"; then
3913  ac_path_EGREP_found=false
3914  # Loop through the user's path and test for each of PROGNAME-LIST
3915  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3917do
3918  IFS=$as_save_IFS
3919  test -z "$as_dir" && as_dir=.
3920    for ac_prog in egrep; do
3921    for ac_exec_ext in '' $ac_executable_extensions; do
3922      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3923      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3924# Check for GNU ac_path_EGREP and select it if it is found.
3925  # Check for GNU $ac_path_EGREP
3926case `"$ac_path_EGREP" --version 2>&1` in
3927*GNU*)
3928  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3929*)
3930  ac_count=0
3931  $as_echo_n 0123456789 >"conftest.in"
3932  while :
3933  do
3934    cat "conftest.in" "conftest.in" >"conftest.tmp"
3935    mv "conftest.tmp" "conftest.in"
3936    cp "conftest.in" "conftest.nl"
3937    $as_echo 'EGREP' >> "conftest.nl"
3938    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3939    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3940    as_fn_arith $ac_count + 1 && ac_count=$as_val
3941    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3942      # Best one so far, save it but keep looking for a better one
3943      ac_cv_path_EGREP="$ac_path_EGREP"
3944      ac_path_EGREP_max=$ac_count
3945    fi
3946    # 10*(2^10) chars as input seems more than enough
3947    test $ac_count -gt 10 && break
3948  done
3949  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3950esac
3951
3952      $ac_path_EGREP_found && break 3
3953    done
3954  done
3955  done
3956IFS=$as_save_IFS
3957  if test -z "$ac_cv_path_EGREP"; then
3958    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3959  fi
3960else
3961  ac_cv_path_EGREP=$EGREP
3962fi
3963
3964   fi
3965fi
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3967$as_echo "$ac_cv_path_EGREP" >&6; }
3968 EGREP="$ac_cv_path_EGREP"
3969
3970
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3972$as_echo_n "checking for ANSI C header files... " >&6; }
3973if test "${ac_cv_header_stdc+set}" = set; then :
3974  $as_echo_n "(cached) " >&6
3975else
3976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977/* end confdefs.h.  */
3978#include <stdlib.h>
3979#include <stdarg.h>
3980#include <string.h>
3981#include <float.h>
3982
3983int
3984main ()
3985{
3986
3987  ;
3988  return 0;
3989}
3990_ACEOF
3991if ac_fn_c_try_compile "$LINENO"; then :
3992  ac_cv_header_stdc=yes
3993else
3994  ac_cv_header_stdc=no
3995fi
3996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997
3998if test $ac_cv_header_stdc = yes; then
3999  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001/* end confdefs.h.  */
4002#include <string.h>
4003
4004_ACEOF
4005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4006  $EGREP "memchr" >/dev/null 2>&1; then :
4007
4008else
4009  ac_cv_header_stdc=no
4010fi
4011rm -f conftest*
4012
4013fi
4014
4015if test $ac_cv_header_stdc = yes; then
4016  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018/* end confdefs.h.  */
4019#include <stdlib.h>
4020
4021_ACEOF
4022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4023  $EGREP "free" >/dev/null 2>&1; then :
4024
4025else
4026  ac_cv_header_stdc=no
4027fi
4028rm -f conftest*
4029
4030fi
4031
4032if test $ac_cv_header_stdc = yes; then
4033  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4034  if test "$cross_compiling" = yes; then :
4035  :
4036else
4037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038/* end confdefs.h.  */
4039#include <ctype.h>
4040#include <stdlib.h>
4041#if ((' ' & 0x0FF) == 0x020)
4042# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4043# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4044#else
4045# define ISLOWER(c) \
4046		   (('a' <= (c) && (c) <= 'i') \
4047		     || ('j' <= (c) && (c) <= 'r') \
4048		     || ('s' <= (c) && (c) <= 'z'))
4049# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4050#endif
4051
4052#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4053int
4054main ()
4055{
4056  int i;
4057  for (i = 0; i < 256; i++)
4058    if (XOR (islower (i), ISLOWER (i))
4059	|| toupper (i) != TOUPPER (i))
4060      return 2;
4061  return 0;
4062}
4063_ACEOF
4064if ac_fn_c_try_run "$LINENO"; then :
4065
4066else
4067  ac_cv_header_stdc=no
4068fi
4069rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4070  conftest.$ac_objext conftest.beam conftest.$ac_ext
4071fi
4072
4073fi
4074fi
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4076$as_echo "$ac_cv_header_stdc" >&6; }
4077if test $ac_cv_header_stdc = yes; then
4078
4079$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4080
4081fi
4082
4083# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4084for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4085		  inttypes.h stdint.h unistd.h
4086do :
4087  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4088ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4089"
4090if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4091  cat >>confdefs.h <<_ACEOF
4092#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4093_ACEOF
4094
4095fi
4096
4097done
4098
4099
4100
4101  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4102if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4103  MINIX=yes
4104else
4105  MINIX=
4106fi
4107
4108
4109  if test "$MINIX" = yes; then
4110
4111$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4112
4113
4114$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4115
4116
4117$as_echo "#define _MINIX 1" >>confdefs.h
4118
4119  fi
4120
4121
4122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4123$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4124if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4125  $as_echo_n "(cached) " >&6
4126else
4127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128/* end confdefs.h.  */
4129
4130#	  define __EXTENSIONS__ 1
4131	  $ac_includes_default
4132int
4133main ()
4134{
4135
4136  ;
4137  return 0;
4138}
4139_ACEOF
4140if ac_fn_c_try_compile "$LINENO"; then :
4141  ac_cv_safe_to_define___extensions__=yes
4142else
4143  ac_cv_safe_to_define___extensions__=no
4144fi
4145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146fi
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4148$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4149  test $ac_cv_safe_to_define___extensions__ = yes &&
4150    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4151
4152  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4153
4154  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4155
4156  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4157
4158  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4159
4160
4161ac_ext=c
4162ac_cpp='$CPP $CPPFLAGS'
4163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165ac_compiler_gnu=$ac_cv_c_compiler_gnu
4166if test -n "$ac_tool_prefix"; then
4167  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4168set dummy ${ac_tool_prefix}gcc; ac_word=$2
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170$as_echo_n "checking for $ac_word... " >&6; }
4171if test "${ac_cv_prog_CC+set}" = set; then :
4172  $as_echo_n "(cached) " >&6
4173else
4174  if test -n "$CC"; then
4175  ac_cv_prog_CC="$CC" # Let the user override the test.
4176else
4177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178for as_dir in $PATH
4179do
4180  IFS=$as_save_IFS
4181  test -z "$as_dir" && as_dir=.
4182    for ac_exec_ext in '' $ac_executable_extensions; do
4183  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186    break 2
4187  fi
4188done
4189  done
4190IFS=$as_save_IFS
4191
4192fi
4193fi
4194CC=$ac_cv_prog_CC
4195if test -n "$CC"; then
4196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4197$as_echo "$CC" >&6; }
4198else
4199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200$as_echo "no" >&6; }
4201fi
4202
4203
4204fi
4205if test -z "$ac_cv_prog_CC"; then
4206  ac_ct_CC=$CC
4207  # Extract the first word of "gcc", so it can be a program name with args.
4208set dummy gcc; ac_word=$2
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210$as_echo_n "checking for $ac_word... " >&6; }
4211if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4212  $as_echo_n "(cached) " >&6
4213else
4214  if test -n "$ac_ct_CC"; then
4215  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4216else
4217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218for as_dir in $PATH
4219do
4220  IFS=$as_save_IFS
4221  test -z "$as_dir" && as_dir=.
4222    for ac_exec_ext in '' $ac_executable_extensions; do
4223  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4224    ac_cv_prog_ac_ct_CC="gcc"
4225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226    break 2
4227  fi
4228done
4229  done
4230IFS=$as_save_IFS
4231
4232fi
4233fi
4234ac_ct_CC=$ac_cv_prog_ac_ct_CC
4235if test -n "$ac_ct_CC"; then
4236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4237$as_echo "$ac_ct_CC" >&6; }
4238else
4239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240$as_echo "no" >&6; }
4241fi
4242
4243  if test "x$ac_ct_CC" = x; then
4244    CC=""
4245  else
4246    case $cross_compiling:$ac_tool_warned in
4247yes:)
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4250ac_tool_warned=yes ;;
4251esac
4252    CC=$ac_ct_CC
4253  fi
4254else
4255  CC="$ac_cv_prog_CC"
4256fi
4257
4258if test -z "$CC"; then
4259          if test -n "$ac_tool_prefix"; then
4260    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4261set dummy ${ac_tool_prefix}cc; ac_word=$2
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263$as_echo_n "checking for $ac_word... " >&6; }
4264if test "${ac_cv_prog_CC+set}" = set; then :
4265  $as_echo_n "(cached) " >&6
4266else
4267  if test -n "$CC"; then
4268  ac_cv_prog_CC="$CC" # Let the user override the test.
4269else
4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH
4272do
4273  IFS=$as_save_IFS
4274  test -z "$as_dir" && as_dir=.
4275    for ac_exec_ext in '' $ac_executable_extensions; do
4276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277    ac_cv_prog_CC="${ac_tool_prefix}cc"
4278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4279    break 2
4280  fi
4281done
4282  done
4283IFS=$as_save_IFS
4284
4285fi
4286fi
4287CC=$ac_cv_prog_CC
4288if test -n "$CC"; then
4289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4290$as_echo "$CC" >&6; }
4291else
4292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293$as_echo "no" >&6; }
4294fi
4295
4296
4297  fi
4298fi
4299if test -z "$CC"; then
4300  # Extract the first word of "cc", so it can be a program name with args.
4301set dummy cc; ac_word=$2
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303$as_echo_n "checking for $ac_word... " >&6; }
4304if test "${ac_cv_prog_CC+set}" = set; then :
4305  $as_echo_n "(cached) " >&6
4306else
4307  if test -n "$CC"; then
4308  ac_cv_prog_CC="$CC" # Let the user override the test.
4309else
4310  ac_prog_rejected=no
4311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312for as_dir in $PATH
4313do
4314  IFS=$as_save_IFS
4315  test -z "$as_dir" && as_dir=.
4316    for ac_exec_ext in '' $ac_executable_extensions; do
4317  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4319       ac_prog_rejected=yes
4320       continue
4321     fi
4322    ac_cv_prog_CC="cc"
4323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324    break 2
4325  fi
4326done
4327  done
4328IFS=$as_save_IFS
4329
4330if test $ac_prog_rejected = yes; then
4331  # We found a bogon in the path, so make sure we never use it.
4332  set dummy $ac_cv_prog_CC
4333  shift
4334  if test $# != 0; then
4335    # We chose a different compiler from the bogus one.
4336    # However, it has the same basename, so the bogon will be chosen
4337    # first if we set CC to just the basename; use the full file name.
4338    shift
4339    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4340  fi
4341fi
4342fi
4343fi
4344CC=$ac_cv_prog_CC
4345if test -n "$CC"; then
4346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4347$as_echo "$CC" >&6; }
4348else
4349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350$as_echo "no" >&6; }
4351fi
4352
4353
4354fi
4355if test -z "$CC"; then
4356  if test -n "$ac_tool_prefix"; then
4357  for ac_prog in cl.exe
4358  do
4359    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4360set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362$as_echo_n "checking for $ac_word... " >&6; }
4363if test "${ac_cv_prog_CC+set}" = set; then :
4364  $as_echo_n "(cached) " >&6
4365else
4366  if test -n "$CC"; then
4367  ac_cv_prog_CC="$CC" # Let the user override the test.
4368else
4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372  IFS=$as_save_IFS
4373  test -z "$as_dir" && as_dir=.
4374    for ac_exec_ext in '' $ac_executable_extensions; do
4375  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378    break 2
4379  fi
4380done
4381  done
4382IFS=$as_save_IFS
4383
4384fi
4385fi
4386CC=$ac_cv_prog_CC
4387if test -n "$CC"; then
4388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4389$as_echo "$CC" >&6; }
4390else
4391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392$as_echo "no" >&6; }
4393fi
4394
4395
4396    test -n "$CC" && break
4397  done
4398fi
4399if test -z "$CC"; then
4400  ac_ct_CC=$CC
4401  for ac_prog in cl.exe
4402do
4403  # Extract the first word of "$ac_prog", so it can be a program name with args.
4404set dummy $ac_prog; ac_word=$2
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406$as_echo_n "checking for $ac_word... " >&6; }
4407if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4408  $as_echo_n "(cached) " >&6
4409else
4410  if test -n "$ac_ct_CC"; then
4411  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4412else
4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416  IFS=$as_save_IFS
4417  test -z "$as_dir" && as_dir=.
4418    for ac_exec_ext in '' $ac_executable_extensions; do
4419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420    ac_cv_prog_ac_ct_CC="$ac_prog"
4421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422    break 2
4423  fi
4424done
4425  done
4426IFS=$as_save_IFS
4427
4428fi
4429fi
4430ac_ct_CC=$ac_cv_prog_ac_ct_CC
4431if test -n "$ac_ct_CC"; then
4432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4433$as_echo "$ac_ct_CC" >&6; }
4434else
4435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436$as_echo "no" >&6; }
4437fi
4438
4439
4440  test -n "$ac_ct_CC" && break
4441done
4442
4443  if test "x$ac_ct_CC" = x; then
4444    CC=""
4445  else
4446    case $cross_compiling:$ac_tool_warned in
4447yes:)
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4450ac_tool_warned=yes ;;
4451esac
4452    CC=$ac_ct_CC
4453  fi
4454fi
4455
4456fi
4457
4458
4459test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4461as_fn_error $? "no acceptable C compiler found in \$PATH
4462See \`config.log' for more details" "$LINENO" 5; }
4463
4464# Provide some information about the compiler.
4465$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4466set X $ac_compile
4467ac_compiler=$2
4468for ac_option in --version -v -V -qversion; do
4469  { { ac_try="$ac_compiler $ac_option >&5"
4470case "(($ac_try" in
4471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472  *) ac_try_echo=$ac_try;;
4473esac
4474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4475$as_echo "$ac_try_echo"; } >&5
4476  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4477  ac_status=$?
4478  if test -s conftest.err; then
4479    sed '10a\
4480... rest of stderr output deleted ...
4481         10q' conftest.err >conftest.er1
4482    cat conftest.er1 >&5
4483  fi
4484  rm -f conftest.er1 conftest.err
4485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4486  test $ac_status = 0; }
4487done
4488
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4490$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4491if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4492  $as_echo_n "(cached) " >&6
4493else
4494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495/* end confdefs.h.  */
4496
4497int
4498main ()
4499{
4500#ifndef __GNUC__
4501       choke me
4502#endif
4503
4504  ;
4505  return 0;
4506}
4507_ACEOF
4508if ac_fn_c_try_compile "$LINENO"; then :
4509  ac_compiler_gnu=yes
4510else
4511  ac_compiler_gnu=no
4512fi
4513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4514ac_cv_c_compiler_gnu=$ac_compiler_gnu
4515
4516fi
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4518$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4519if test $ac_compiler_gnu = yes; then
4520  GCC=yes
4521else
4522  GCC=
4523fi
4524ac_test_CFLAGS=${CFLAGS+set}
4525ac_save_CFLAGS=$CFLAGS
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4527$as_echo_n "checking whether $CC accepts -g... " >&6; }
4528if test "${ac_cv_prog_cc_g+set}" = set; then :
4529  $as_echo_n "(cached) " >&6
4530else
4531  ac_save_c_werror_flag=$ac_c_werror_flag
4532   ac_c_werror_flag=yes
4533   ac_cv_prog_cc_g=no
4534   CFLAGS="-g"
4535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536/* end confdefs.h.  */
4537
4538int
4539main ()
4540{
4541
4542  ;
4543  return 0;
4544}
4545_ACEOF
4546if ac_fn_c_try_compile "$LINENO"; then :
4547  ac_cv_prog_cc_g=yes
4548else
4549  CFLAGS=""
4550      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551/* end confdefs.h.  */
4552
4553int
4554main ()
4555{
4556
4557  ;
4558  return 0;
4559}
4560_ACEOF
4561if ac_fn_c_try_compile "$LINENO"; then :
4562
4563else
4564  ac_c_werror_flag=$ac_save_c_werror_flag
4565	 CFLAGS="-g"
4566	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567/* end confdefs.h.  */
4568
4569int
4570main ()
4571{
4572
4573  ;
4574  return 0;
4575}
4576_ACEOF
4577if ac_fn_c_try_compile "$LINENO"; then :
4578  ac_cv_prog_cc_g=yes
4579fi
4580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581fi
4582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583fi
4584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585   ac_c_werror_flag=$ac_save_c_werror_flag
4586fi
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4588$as_echo "$ac_cv_prog_cc_g" >&6; }
4589if test "$ac_test_CFLAGS" = set; then
4590  CFLAGS=$ac_save_CFLAGS
4591elif test $ac_cv_prog_cc_g = yes; then
4592  if test "$GCC" = yes; then
4593    CFLAGS="-g -O2"
4594  else
4595    CFLAGS="-g"
4596  fi
4597else
4598  if test "$GCC" = yes; then
4599    CFLAGS="-O2"
4600  else
4601    CFLAGS=
4602  fi
4603fi
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4605$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4606if test "${ac_cv_prog_cc_c89+set}" = set; then :
4607  $as_echo_n "(cached) " >&6
4608else
4609  ac_cv_prog_cc_c89=no
4610ac_save_CC=$CC
4611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612/* end confdefs.h.  */
4613#include <stdarg.h>
4614#include <stdio.h>
4615#include <sys/types.h>
4616#include <sys/stat.h>
4617/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4618struct buf { int x; };
4619FILE * (*rcsopen) (struct buf *, struct stat *, int);
4620static char *e (p, i)
4621     char **p;
4622     int i;
4623{
4624  return p[i];
4625}
4626static char *f (char * (*g) (char **, int), char **p, ...)
4627{
4628  char *s;
4629  va_list v;
4630  va_start (v,p);
4631  s = g (p, va_arg (v,int));
4632  va_end (v);
4633  return s;
4634}
4635
4636/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4637   function prototypes and stuff, but not '\xHH' hex character constants.
4638   These don't provoke an error unfortunately, instead are silently treated
4639   as 'x'.  The following induces an error, until -std is added to get
4640   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4641   array size at least.  It's necessary to write '\x00'==0 to get something
4642   that's true only with -std.  */
4643int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4644
4645/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4646   inside strings and character constants.  */
4647#define FOO(x) 'x'
4648int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4649
4650int test (int i, double x);
4651struct s1 {int (*f) (int a);};
4652struct s2 {int (*f) (double a);};
4653int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4654int argc;
4655char **argv;
4656int
4657main ()
4658{
4659return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4660  ;
4661  return 0;
4662}
4663_ACEOF
4664for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4665	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4666do
4667  CC="$ac_save_CC $ac_arg"
4668  if ac_fn_c_try_compile "$LINENO"; then :
4669  ac_cv_prog_cc_c89=$ac_arg
4670fi
4671rm -f core conftest.err conftest.$ac_objext
4672  test "x$ac_cv_prog_cc_c89" != "xno" && break
4673done
4674rm -f conftest.$ac_ext
4675CC=$ac_save_CC
4676
4677fi
4678# AC_CACHE_VAL
4679case "x$ac_cv_prog_cc_c89" in
4680  x)
4681    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4682$as_echo "none needed" >&6; } ;;
4683  xno)
4684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4685$as_echo "unsupported" >&6; } ;;
4686  *)
4687    CC="$CC $ac_cv_prog_cc_c89"
4688    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4689$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4690esac
4691if test "x$ac_cv_prog_cc_c89" != xno; then :
4692
4693fi
4694
4695ac_ext=c
4696ac_cpp='$CPP $CPPFLAGS'
4697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699ac_compiler_gnu=$ac_cv_c_compiler_gnu
4700
4701depcc="$CC"   am_compiler_list=
4702
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4704$as_echo_n "checking dependency style of $depcc... " >&6; }
4705if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4706  $as_echo_n "(cached) " >&6
4707else
4708  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4709  # We make a subdir and do the tests there.  Otherwise we can end up
4710  # making bogus files that we don't know about and never remove.  For
4711  # instance it was reported that on HP-UX the gcc test will end up
4712  # making a dummy file named `D' -- because `-MD' means `put the output
4713  # in D'.
4714  mkdir conftest.dir
4715  # Copy depcomp to subdir because otherwise we won't find it if we're
4716  # using a relative directory.
4717  cp "$am_depcomp" conftest.dir
4718  cd conftest.dir
4719  # We will build objects and dependencies in a subdirectory because
4720  # it helps to detect inapplicable dependency modes.  For instance
4721  # both Tru64's cc and ICC support -MD to output dependencies as a
4722  # side effect of compilation, but ICC will put the dependencies in
4723  # the current directory while Tru64 will put them in the object
4724  # directory.
4725  mkdir sub
4726
4727  am_cv_CC_dependencies_compiler_type=none
4728  if test "$am_compiler_list" = ""; then
4729     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4730  fi
4731  am__universal=false
4732  case " $depcc " in #(
4733     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4734     esac
4735
4736  for depmode in $am_compiler_list; do
4737    # Setup a source with many dependencies, because some compilers
4738    # like to wrap large dependency lists on column 80 (with \), and
4739    # we should not choose a depcomp mode which is confused by this.
4740    #
4741    # We need to recreate these files for each test, as the compiler may
4742    # overwrite some of them when testing with obscure command lines.
4743    # This happens at least with the AIX C compiler.
4744    : > sub/conftest.c
4745    for i in 1 2 3 4 5 6; do
4746      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4747      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4748      # Solaris 8's {/usr,}/bin/sh.
4749      touch sub/conftst$i.h
4750    done
4751    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4752
4753    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4754    # mode.  It turns out that the SunPro C++ compiler does not properly
4755    # handle `-M -o', and we need to detect this.  Also, some Intel
4756    # versions had trouble with output in subdirs
4757    am__obj=sub/conftest.${OBJEXT-o}
4758    am__minus_obj="-o $am__obj"
4759    case $depmode in
4760    gcc)
4761      # This depmode causes a compiler race in universal mode.
4762      test "$am__universal" = false || continue
4763      ;;
4764    nosideeffect)
4765      # after this tag, mechanisms are not by side-effect, so they'll
4766      # only be used when explicitly requested
4767      if test "x$enable_dependency_tracking" = xyes; then
4768	continue
4769      else
4770	break
4771      fi
4772      ;;
4773    msvisualcpp | msvcmsys)
4774      # This compiler won't grok `-c -o', but also, the minuso test has
4775      # not run yet.  These depmodes are late enough in the game, and
4776      # so weak that their functioning should not be impacted.
4777      am__obj=conftest.${OBJEXT-o}
4778      am__minus_obj=
4779      ;;
4780    none) break ;;
4781    esac
4782    if depmode=$depmode \
4783       source=sub/conftest.c object=$am__obj \
4784       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4785       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4786         >/dev/null 2>conftest.err &&
4787       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4788       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4789       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4790       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4791      # icc doesn't choke on unknown options, it will just issue warnings
4792      # or remarks (even with -Werror).  So we grep stderr for any message
4793      # that says an option was ignored or not supported.
4794      # When given -MP, icc 7.0 and 7.1 complain thusly:
4795      #   icc: Command line warning: ignoring option '-M'; no argument required
4796      # The diagnosis changed in icc 8.0:
4797      #   icc: Command line remark: option '-MP' not supported
4798      if (grep 'ignoring option' conftest.err ||
4799          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4800        am_cv_CC_dependencies_compiler_type=$depmode
4801        break
4802      fi
4803    fi
4804  done
4805
4806  cd ..
4807  rm -rf conftest.dir
4808else
4809  am_cv_CC_dependencies_compiler_type=none
4810fi
4811
4812fi
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4814$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4815CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4816
4817 if
4818  test "x$enable_dependency_tracking" != xno \
4819  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4820  am__fastdepCC_TRUE=
4821  am__fastdepCC_FALSE='#'
4822else
4823  am__fastdepCC_TRUE='#'
4824  am__fastdepCC_FALSE=
4825fi
4826
4827
4828case `pwd` in
4829  *\ * | *\	*)
4830    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4831$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4832esac
4833
4834
4835
4836macro_version='2.2.10'
4837macro_revision='1.3175'
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851ltmain="$ac_aux_dir/ltmain.sh"
4852
4853# Make sure we can run config.sub.
4854$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4855  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4856
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4858$as_echo_n "checking build system type... " >&6; }
4859if test "${ac_cv_build+set}" = set; then :
4860  $as_echo_n "(cached) " >&6
4861else
4862  ac_build_alias=$build_alias
4863test "x$ac_build_alias" = x &&
4864  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4865test "x$ac_build_alias" = x &&
4866  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4867ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4868  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4869
4870fi
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4872$as_echo "$ac_cv_build" >&6; }
4873case $ac_cv_build in
4874*-*-*) ;;
4875*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4876esac
4877build=$ac_cv_build
4878ac_save_IFS=$IFS; IFS='-'
4879set x $ac_cv_build
4880shift
4881build_cpu=$1
4882build_vendor=$2
4883shift; shift
4884# Remember, the first character of IFS is used to create $*,
4885# except with old shells:
4886build_os=$*
4887IFS=$ac_save_IFS
4888case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4889
4890
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4892$as_echo_n "checking host system type... " >&6; }
4893if test "${ac_cv_host+set}" = set; then :
4894  $as_echo_n "(cached) " >&6
4895else
4896  if test "x$host_alias" = x; then
4897  ac_cv_host=$ac_cv_build
4898else
4899  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4900    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4901fi
4902
4903fi
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4905$as_echo "$ac_cv_host" >&6; }
4906case $ac_cv_host in
4907*-*-*) ;;
4908*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4909esac
4910host=$ac_cv_host
4911ac_save_IFS=$IFS; IFS='-'
4912set x $ac_cv_host
4913shift
4914host_cpu=$1
4915host_vendor=$2
4916shift; shift
4917# Remember, the first character of IFS is used to create $*,
4918# except with old shells:
4919host_os=$*
4920IFS=$ac_save_IFS
4921case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4922
4923
4924# Backslashify metacharacters that are still active within
4925# double-quoted strings.
4926sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4927
4928# Same as above, but do not quote variable references.
4929double_quote_subst='s/\(["`\\]\)/\\\1/g'
4930
4931# Sed substitution to delay expansion of an escaped shell variable in a
4932# double_quote_subst'ed string.
4933delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4934
4935# Sed substitution to delay expansion of an escaped single quote.
4936delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4937
4938# Sed substitution to avoid accidental globbing in evaled expressions
4939no_glob_subst='s/\*/\\\*/g'
4940
4941ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4942ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4943ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4944
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4946$as_echo_n "checking how to print strings... " >&6; }
4947# Test print first, because it will be a builtin if present.
4948if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4949   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4950  ECHO='print -r --'
4951elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4952  ECHO='printf %s\n'
4953else
4954  # Use this function as a fallback that always works.
4955  func_fallback_echo ()
4956  {
4957    eval 'cat <<_LTECHO_EOF
4958$1
4959_LTECHO_EOF'
4960  }
4961  ECHO='func_fallback_echo'
4962fi
4963
4964# func_echo_all arg...
4965# Invoke $ECHO with all args, space-separated.
4966func_echo_all ()
4967{
4968    $ECHO ""
4969}
4970
4971case "$ECHO" in
4972  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4973$as_echo "printf" >&6; } ;;
4974  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4975$as_echo "print -r" >&6; } ;;
4976  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4977$as_echo "cat" >&6; } ;;
4978esac
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4994$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4995if test "${ac_cv_path_SED+set}" = set; then :
4996  $as_echo_n "(cached) " >&6
4997else
4998            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4999     for ac_i in 1 2 3 4 5 6 7; do
5000       ac_script="$ac_script$as_nl$ac_script"
5001     done
5002     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5003     { ac_script=; unset ac_script;}
5004     if test -z "$SED"; then
5005  ac_path_SED_found=false
5006  # Loop through the user's path and test for each of PROGNAME-LIST
5007  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008for as_dir in $PATH
5009do
5010  IFS=$as_save_IFS
5011  test -z "$as_dir" && as_dir=.
5012    for ac_prog in sed gsed; do
5013    for ac_exec_ext in '' $ac_executable_extensions; do
5014      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5015      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5016# Check for GNU ac_path_SED and select it if it is found.
5017  # Check for GNU $ac_path_SED
5018case `"$ac_path_SED" --version 2>&1` in
5019*GNU*)
5020  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5021*)
5022  ac_count=0
5023  $as_echo_n 0123456789 >"conftest.in"
5024  while :
5025  do
5026    cat "conftest.in" "conftest.in" >"conftest.tmp"
5027    mv "conftest.tmp" "conftest.in"
5028    cp "conftest.in" "conftest.nl"
5029    $as_echo '' >> "conftest.nl"
5030    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5031    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5032    as_fn_arith $ac_count + 1 && ac_count=$as_val
5033    if test $ac_count -gt ${ac_path_SED_max-0}; then
5034      # Best one so far, save it but keep looking for a better one
5035      ac_cv_path_SED="$ac_path_SED"
5036      ac_path_SED_max=$ac_count
5037    fi
5038    # 10*(2^10) chars as input seems more than enough
5039    test $ac_count -gt 10 && break
5040  done
5041  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5042esac
5043
5044      $ac_path_SED_found && break 3
5045    done
5046  done
5047  done
5048IFS=$as_save_IFS
5049  if test -z "$ac_cv_path_SED"; then
5050    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5051  fi
5052else
5053  ac_cv_path_SED=$SED
5054fi
5055
5056fi
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5058$as_echo "$ac_cv_path_SED" >&6; }
5059 SED="$ac_cv_path_SED"
5060  rm -f conftest.sed
5061
5062test -z "$SED" && SED=sed
5063Xsed="$SED -e 1s/^X//"
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5076$as_echo_n "checking for fgrep... " >&6; }
5077if test "${ac_cv_path_FGREP+set}" = set; then :
5078  $as_echo_n "(cached) " >&6
5079else
5080  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5081   then ac_cv_path_FGREP="$GREP -F"
5082   else
5083     if test -z "$FGREP"; then
5084  ac_path_FGREP_found=false
5085  # Loop through the user's path and test for each of PROGNAME-LIST
5086  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5088do
5089  IFS=$as_save_IFS
5090  test -z "$as_dir" && as_dir=.
5091    for ac_prog in fgrep; do
5092    for ac_exec_ext in '' $ac_executable_extensions; do
5093      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5094      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5095# Check for GNU ac_path_FGREP and select it if it is found.
5096  # Check for GNU $ac_path_FGREP
5097case `"$ac_path_FGREP" --version 2>&1` in
5098*GNU*)
5099  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5100*)
5101  ac_count=0
5102  $as_echo_n 0123456789 >"conftest.in"
5103  while :
5104  do
5105    cat "conftest.in" "conftest.in" >"conftest.tmp"
5106    mv "conftest.tmp" "conftest.in"
5107    cp "conftest.in" "conftest.nl"
5108    $as_echo 'FGREP' >> "conftest.nl"
5109    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5110    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5111    as_fn_arith $ac_count + 1 && ac_count=$as_val
5112    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5113      # Best one so far, save it but keep looking for a better one
5114      ac_cv_path_FGREP="$ac_path_FGREP"
5115      ac_path_FGREP_max=$ac_count
5116    fi
5117    # 10*(2^10) chars as input seems more than enough
5118    test $ac_count -gt 10 && break
5119  done
5120  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5121esac
5122
5123      $ac_path_FGREP_found && break 3
5124    done
5125  done
5126  done
5127IFS=$as_save_IFS
5128  if test -z "$ac_cv_path_FGREP"; then
5129    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5130  fi
5131else
5132  ac_cv_path_FGREP=$FGREP
5133fi
5134
5135   fi
5136fi
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5138$as_echo "$ac_cv_path_FGREP" >&6; }
5139 FGREP="$ac_cv_path_FGREP"
5140
5141
5142test -z "$GREP" && GREP=grep
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162# Check whether --with-gnu-ld was given.
5163if test "${with_gnu_ld+set}" = set; then :
5164  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5165else
5166  with_gnu_ld=no
5167fi
5168
5169ac_prog=ld
5170if test "$GCC" = yes; then
5171  # Check if gcc -print-prog-name=ld gives a path.
5172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5173$as_echo_n "checking for ld used by $CC... " >&6; }
5174  case $host in
5175  *-*-mingw*)
5176    # gcc leaves a trailing carriage return which upsets mingw
5177    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5178  *)
5179    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5180  esac
5181  case $ac_prog in
5182    # Accept absolute paths.
5183    [\\/]* | ?:[\\/]*)
5184      re_direlt='/[^/][^/]*/\.\./'
5185      # Canonicalize the pathname of ld
5186      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5187      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5188	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5189      done
5190      test -z "$LD" && LD="$ac_prog"
5191      ;;
5192  "")
5193    # If it fails, then pretend we aren't using GCC.
5194    ac_prog=ld
5195    ;;
5196  *)
5197    # If it is relative, then search for the first ld in PATH.
5198    with_gnu_ld=unknown
5199    ;;
5200  esac
5201elif test "$with_gnu_ld" = yes; then
5202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5203$as_echo_n "checking for GNU ld... " >&6; }
5204else
5205  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5206$as_echo_n "checking for non-GNU ld... " >&6; }
5207fi
5208if test "${lt_cv_path_LD+set}" = set; then :
5209  $as_echo_n "(cached) " >&6
5210else
5211  if test -z "$LD"; then
5212  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5213  for ac_dir in $PATH; do
5214    IFS="$lt_save_ifs"
5215    test -z "$ac_dir" && ac_dir=.
5216    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5217      lt_cv_path_LD="$ac_dir/$ac_prog"
5218      # Check to see if the program is GNU ld.  I'd rather use --version,
5219      # but apparently some variants of GNU ld only accept -v.
5220      # Break only if it was the GNU/non-GNU ld that we prefer.
5221      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5222      *GNU* | *'with BFD'*)
5223	test "$with_gnu_ld" != no && break
5224	;;
5225      *)
5226	test "$with_gnu_ld" != yes && break
5227	;;
5228      esac
5229    fi
5230  done
5231  IFS="$lt_save_ifs"
5232else
5233  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5234fi
5235fi
5236
5237LD="$lt_cv_path_LD"
5238if test -n "$LD"; then
5239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5240$as_echo "$LD" >&6; }
5241else
5242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243$as_echo "no" >&6; }
5244fi
5245test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5247$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5248if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5249  $as_echo_n "(cached) " >&6
5250else
5251  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5252case `$LD -v 2>&1 </dev/null` in
5253*GNU* | *'with BFD'*)
5254  lt_cv_prog_gnu_ld=yes
5255  ;;
5256*)
5257  lt_cv_prog_gnu_ld=no
5258  ;;
5259esac
5260fi
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5262$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5263with_gnu_ld=$lt_cv_prog_gnu_ld
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5274$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5275if test "${lt_cv_path_NM+set}" = set; then :
5276  $as_echo_n "(cached) " >&6
5277else
5278  if test -n "$NM"; then
5279  # Let the user override the test.
5280  lt_cv_path_NM="$NM"
5281else
5282  lt_nm_to_check="${ac_tool_prefix}nm"
5283  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5284    lt_nm_to_check="$lt_nm_to_check nm"
5285  fi
5286  for lt_tmp_nm in $lt_nm_to_check; do
5287    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5288    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5289      IFS="$lt_save_ifs"
5290      test -z "$ac_dir" && ac_dir=.
5291      tmp_nm="$ac_dir/$lt_tmp_nm"
5292      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5293	# Check to see if the nm accepts a BSD-compat flag.
5294	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5295	#   nm: unknown option "B" ignored
5296	# Tru64's nm complains that /dev/null is an invalid object file
5297	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5298	*/dev/null* | *'Invalid file or object type'*)
5299	  lt_cv_path_NM="$tmp_nm -B"
5300	  break
5301	  ;;
5302	*)
5303	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5304	  */dev/null*)
5305	    lt_cv_path_NM="$tmp_nm -p"
5306	    break
5307	    ;;
5308	  *)
5309	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5310	    continue # so that we can try to find one that supports BSD flags
5311	    ;;
5312	  esac
5313	  ;;
5314	esac
5315      fi
5316    done
5317    IFS="$lt_save_ifs"
5318  done
5319  : ${lt_cv_path_NM=no}
5320fi
5321fi
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5323$as_echo "$lt_cv_path_NM" >&6; }
5324if test "$lt_cv_path_NM" != "no"; then
5325  NM="$lt_cv_path_NM"
5326else
5327  # Didn't find any BSD compatible name lister, look for dumpbin.
5328  if test -n "$DUMPBIN"; then :
5329    # Let the user override the test.
5330  else
5331    if test -n "$ac_tool_prefix"; then
5332  for ac_prog in dumpbin "link -dump"
5333  do
5334    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5335set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337$as_echo_n "checking for $ac_word... " >&6; }
5338if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5339  $as_echo_n "(cached) " >&6
5340else
5341  if test -n "$DUMPBIN"; then
5342  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5343else
5344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345for as_dir in $PATH
5346do
5347  IFS=$as_save_IFS
5348  test -z "$as_dir" && as_dir=.
5349    for ac_exec_ext in '' $ac_executable_extensions; do
5350  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353    break 2
5354  fi
5355done
5356  done
5357IFS=$as_save_IFS
5358
5359fi
5360fi
5361DUMPBIN=$ac_cv_prog_DUMPBIN
5362if test -n "$DUMPBIN"; then
5363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5364$as_echo "$DUMPBIN" >&6; }
5365else
5366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367$as_echo "no" >&6; }
5368fi
5369
5370
5371    test -n "$DUMPBIN" && break
5372  done
5373fi
5374if test -z "$DUMPBIN"; then
5375  ac_ct_DUMPBIN=$DUMPBIN
5376  for ac_prog in dumpbin "link -dump"
5377do
5378  # Extract the first word of "$ac_prog", so it can be a program name with args.
5379set dummy $ac_prog; ac_word=$2
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381$as_echo_n "checking for $ac_word... " >&6; }
5382if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5383  $as_echo_n "(cached) " >&6
5384else
5385  if test -n "$ac_ct_DUMPBIN"; then
5386  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5387else
5388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389for as_dir in $PATH
5390do
5391  IFS=$as_save_IFS
5392  test -z "$as_dir" && as_dir=.
5393    for ac_exec_ext in '' $ac_executable_extensions; do
5394  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397    break 2
5398  fi
5399done
5400  done
5401IFS=$as_save_IFS
5402
5403fi
5404fi
5405ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5406if test -n "$ac_ct_DUMPBIN"; then
5407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5408$as_echo "$ac_ct_DUMPBIN" >&6; }
5409else
5410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411$as_echo "no" >&6; }
5412fi
5413
5414
5415  test -n "$ac_ct_DUMPBIN" && break
5416done
5417
5418  if test "x$ac_ct_DUMPBIN" = x; then
5419    DUMPBIN=":"
5420  else
5421    case $cross_compiling:$ac_tool_warned in
5422yes:)
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5425ac_tool_warned=yes ;;
5426esac
5427    DUMPBIN=$ac_ct_DUMPBIN
5428  fi
5429fi
5430
5431    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5432    *COFF*)
5433      DUMPBIN="$DUMPBIN -symbols"
5434      ;;
5435    *)
5436      DUMPBIN=:
5437      ;;
5438    esac
5439  fi
5440
5441  if test "$DUMPBIN" != ":"; then
5442    NM="$DUMPBIN"
5443  fi
5444fi
5445test -z "$NM" && NM=nm
5446
5447
5448
5449
5450
5451
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5453$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5454if test "${lt_cv_nm_interface+set}" = set; then :
5455  $as_echo_n "(cached) " >&6
5456else
5457  lt_cv_nm_interface="BSD nm"
5458  echo "int some_variable = 0;" > conftest.$ac_ext
5459  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5460  (eval "$ac_compile" 2>conftest.err)
5461  cat conftest.err >&5
5462  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5463  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5464  cat conftest.err >&5
5465  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5466  cat conftest.out >&5
5467  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5468    lt_cv_nm_interface="MS dumpbin"
5469  fi
5470  rm -f conftest*
5471fi
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5473$as_echo "$lt_cv_nm_interface" >&6; }
5474
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5476$as_echo_n "checking whether ln -s works... " >&6; }
5477LN_S=$as_ln_s
5478if test "$LN_S" = "ln -s"; then
5479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5480$as_echo "yes" >&6; }
5481else
5482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5483$as_echo "no, using $LN_S" >&6; }
5484fi
5485
5486# find the maximum length of command line arguments
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5488$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5489if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5490  $as_echo_n "(cached) " >&6
5491else
5492    i=0
5493  teststring="ABCD"
5494
5495  case $build_os in
5496  msdosdjgpp*)
5497    # On DJGPP, this test can blow up pretty badly due to problems in libc
5498    # (any single argument exceeding 2000 bytes causes a buffer overrun
5499    # during glob expansion).  Even if it were fixed, the result of this
5500    # check would be larger than it should be.
5501    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5502    ;;
5503
5504  gnu*)
5505    # Under GNU Hurd, this test is not required because there is
5506    # no limit to the length of command line arguments.
5507    # Libtool will interpret -1 as no limit whatsoever
5508    lt_cv_sys_max_cmd_len=-1;
5509    ;;
5510
5511  cygwin* | mingw* | cegcc*)
5512    # On Win9x/ME, this test blows up -- it succeeds, but takes
5513    # about 5 minutes as the teststring grows exponentially.
5514    # Worse, since 9x/ME are not pre-emptively multitasking,
5515    # you end up with a "frozen" computer, even though with patience
5516    # the test eventually succeeds (with a max line length of 256k).
5517    # Instead, let's just punt: use the minimum linelength reported by
5518    # all of the supported platforms: 8192 (on NT/2K/XP).
5519    lt_cv_sys_max_cmd_len=8192;
5520    ;;
5521
5522  mint*)
5523    # On MiNT this can take a long time and run out of memory.
5524    lt_cv_sys_max_cmd_len=8192;
5525    ;;
5526
5527  amigaos*)
5528    # On AmigaOS with pdksh, this test takes hours, literally.
5529    # So we just punt and use a minimum line length of 8192.
5530    lt_cv_sys_max_cmd_len=8192;
5531    ;;
5532
5533  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5534    # This has been around since 386BSD, at least.  Likely further.
5535    if test -x /sbin/sysctl; then
5536      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5537    elif test -x /usr/sbin/sysctl; then
5538      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5539    else
5540      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5541    fi
5542    # And add a safety zone
5543    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5544    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5545    ;;
5546
5547  interix*)
5548    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5549    lt_cv_sys_max_cmd_len=196608
5550    ;;
5551
5552  osf*)
5553    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5554    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5555    # nice to cause kernel panics so lets avoid the loop below.
5556    # First set a reasonable default.
5557    lt_cv_sys_max_cmd_len=16384
5558    #
5559    if test -x /sbin/sysconfig; then
5560      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5561        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5562      esac
5563    fi
5564    ;;
5565  sco3.2v5*)
5566    lt_cv_sys_max_cmd_len=102400
5567    ;;
5568  sysv5* | sco5v6* | sysv4.2uw2*)
5569    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5570    if test -n "$kargmax"; then
5571      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5572    else
5573      lt_cv_sys_max_cmd_len=32768
5574    fi
5575    ;;
5576  *)
5577    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5578    if test -n "$lt_cv_sys_max_cmd_len"; then
5579      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5580      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5581    else
5582      # Make teststring a little bigger before we do anything with it.
5583      # a 1K string should be a reasonable start.
5584      for i in 1 2 3 4 5 6 7 8 ; do
5585        teststring=$teststring$teststring
5586      done
5587      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5588      # If test is not a shell built-in, we'll probably end up computing a
5589      # maximum length that is only half of the actual maximum length, but
5590      # we can't tell.
5591      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5592	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5593	      test $i != 17 # 1/2 MB should be enough
5594      do
5595        i=`expr $i + 1`
5596        teststring=$teststring$teststring
5597      done
5598      # Only check the string length outside the loop.
5599      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5600      teststring=
5601      # Add a significant safety factor because C++ compilers can tack on
5602      # massive amounts of additional arguments before passing them to the
5603      # linker.  It appears as though 1/2 is a usable value.
5604      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5605    fi
5606    ;;
5607  esac
5608
5609fi
5610
5611if test -n $lt_cv_sys_max_cmd_len ; then
5612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5613$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5614else
5615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5616$as_echo "none" >&6; }
5617fi
5618max_cmd_len=$lt_cv_sys_max_cmd_len
5619
5620
5621
5622
5623
5624
5625: ${CP="cp -f"}
5626: ${MV="mv -f"}
5627: ${RM="rm -f"}
5628
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5630$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5631# Try some XSI features
5632xsi_shell=no
5633( _lt_dummy="a/b/c"
5634  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5635      = c,a/b,, \
5636    && eval 'test $(( 1 + 1 )) -eq 2 \
5637    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5638  && xsi_shell=yes
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5640$as_echo "$xsi_shell" >&6; }
5641
5642
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5644$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5645lt_shell_append=no
5646( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5647    >/dev/null 2>&1 \
5648  && lt_shell_append=yes
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5650$as_echo "$lt_shell_append" >&6; }
5651
5652
5653if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5654  lt_unset=unset
5655else
5656  lt_unset=false
5657fi
5658
5659
5660
5661
5662
5663# test EBCDIC or ASCII
5664case `echo X|tr X '\101'` in
5665 A) # ASCII based system
5666    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5667  lt_SP2NL='tr \040 \012'
5668  lt_NL2SP='tr \015\012 \040\040'
5669  ;;
5670 *) # EBCDIC based system
5671  lt_SP2NL='tr \100 \n'
5672  lt_NL2SP='tr \r\n \100\100'
5673  ;;
5674esac
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5685$as_echo_n "checking for $LD option to reload object files... " >&6; }
5686if test "${lt_cv_ld_reload_flag+set}" = set; then :
5687  $as_echo_n "(cached) " >&6
5688else
5689  lt_cv_ld_reload_flag='-r'
5690fi
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5692$as_echo "$lt_cv_ld_reload_flag" >&6; }
5693reload_flag=$lt_cv_ld_reload_flag
5694case $reload_flag in
5695"" | " "*) ;;
5696*) reload_flag=" $reload_flag" ;;
5697esac
5698reload_cmds='$LD$reload_flag -o $output$reload_objs'
5699case $host_os in
5700  darwin*)
5701    if test "$GCC" = yes; then
5702      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5703    else
5704      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5705    fi
5706    ;;
5707esac
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717if test -n "$ac_tool_prefix"; then
5718  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5719set dummy ${ac_tool_prefix}objdump; ac_word=$2
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721$as_echo_n "checking for $ac_word... " >&6; }
5722if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5723  $as_echo_n "(cached) " >&6
5724else
5725  if test -n "$OBJDUMP"; then
5726  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5727else
5728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729for as_dir in $PATH
5730do
5731  IFS=$as_save_IFS
5732  test -z "$as_dir" && as_dir=.
5733    for ac_exec_ext in '' $ac_executable_extensions; do
5734  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5735    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737    break 2
5738  fi
5739done
5740  done
5741IFS=$as_save_IFS
5742
5743fi
5744fi
5745OBJDUMP=$ac_cv_prog_OBJDUMP
5746if test -n "$OBJDUMP"; then
5747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5748$as_echo "$OBJDUMP" >&6; }
5749else
5750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751$as_echo "no" >&6; }
5752fi
5753
5754
5755fi
5756if test -z "$ac_cv_prog_OBJDUMP"; then
5757  ac_ct_OBJDUMP=$OBJDUMP
5758  # Extract the first word of "objdump", so it can be a program name with args.
5759set dummy objdump; ac_word=$2
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761$as_echo_n "checking for $ac_word... " >&6; }
5762if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5763  $as_echo_n "(cached) " >&6
5764else
5765  if test -n "$ac_ct_OBJDUMP"; then
5766  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5767else
5768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769for as_dir in $PATH
5770do
5771  IFS=$as_save_IFS
5772  test -z "$as_dir" && as_dir=.
5773    for ac_exec_ext in '' $ac_executable_extensions; do
5774  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777    break 2
5778  fi
5779done
5780  done
5781IFS=$as_save_IFS
5782
5783fi
5784fi
5785ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5786if test -n "$ac_ct_OBJDUMP"; then
5787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5788$as_echo "$ac_ct_OBJDUMP" >&6; }
5789else
5790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791$as_echo "no" >&6; }
5792fi
5793
5794  if test "x$ac_ct_OBJDUMP" = x; then
5795    OBJDUMP="false"
5796  else
5797    case $cross_compiling:$ac_tool_warned in
5798yes:)
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5801ac_tool_warned=yes ;;
5802esac
5803    OBJDUMP=$ac_ct_OBJDUMP
5804  fi
5805else
5806  OBJDUMP="$ac_cv_prog_OBJDUMP"
5807fi
5808
5809test -z "$OBJDUMP" && OBJDUMP=objdump
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5820$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5821if test "${lt_cv_deplibs_check_method+set}" = set; then :
5822  $as_echo_n "(cached) " >&6
5823else
5824  lt_cv_file_magic_cmd='$MAGIC_CMD'
5825lt_cv_file_magic_test_file=
5826lt_cv_deplibs_check_method='unknown'
5827# Need to set the preceding variable on all platforms that support
5828# interlibrary dependencies.
5829# 'none' -- dependencies not supported.
5830# `unknown' -- same as none, but documents that we really don't know.
5831# 'pass_all' -- all dependencies passed with no checks.
5832# 'test_compile' -- check by making test program.
5833# 'file_magic [[regex]]' -- check by looking for files in library path
5834# which responds to the $file_magic_cmd with a given extended regex.
5835# If you have `file' or equivalent on your system and you're not sure
5836# whether `pass_all' will *always* work, you probably want this one.
5837
5838case $host_os in
5839aix[4-9]*)
5840  lt_cv_deplibs_check_method=pass_all
5841  ;;
5842
5843beos*)
5844  lt_cv_deplibs_check_method=pass_all
5845  ;;
5846
5847bsdi[45]*)
5848  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5849  lt_cv_file_magic_cmd='/usr/bin/file -L'
5850  lt_cv_file_magic_test_file=/shlib/libc.so
5851  ;;
5852
5853cygwin*)
5854  # func_win32_libid is a shell function defined in ltmain.sh
5855  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5856  lt_cv_file_magic_cmd='func_win32_libid'
5857  ;;
5858
5859mingw* | pw32*)
5860  # Base MSYS/MinGW do not provide the 'file' command needed by
5861  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5862  # unless we find 'file', for example because we are cross-compiling.
5863  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5864  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5865    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5866    lt_cv_file_magic_cmd='func_win32_libid'
5867  else
5868    # Keep this pattern in sync with the one in func_win32_libid.
5869    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5870    lt_cv_file_magic_cmd='$OBJDUMP -f'
5871  fi
5872  ;;
5873
5874cegcc*)
5875  # use the weaker test based on 'objdump'. See mingw*.
5876  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5877  lt_cv_file_magic_cmd='$OBJDUMP -f'
5878  ;;
5879
5880darwin* | rhapsody*)
5881  lt_cv_deplibs_check_method=pass_all
5882  ;;
5883
5884freebsd* | dragonfly*)
5885  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5886    case $host_cpu in
5887    i*86 )
5888      # Not sure whether the presence of OpenBSD here was a mistake.
5889      # Let's accept both of them until this is cleared up.
5890      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5891      lt_cv_file_magic_cmd=/usr/bin/file
5892      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5893      ;;
5894    esac
5895  else
5896    lt_cv_deplibs_check_method=pass_all
5897  fi
5898  ;;
5899
5900gnu*)
5901  lt_cv_deplibs_check_method=pass_all
5902  ;;
5903
5904haiku*)
5905  lt_cv_deplibs_check_method=pass_all
5906  ;;
5907
5908hpux10.20* | hpux11*)
5909  lt_cv_file_magic_cmd=/usr/bin/file
5910  case $host_cpu in
5911  ia64*)
5912    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5913    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5914    ;;
5915  hppa*64*)
5916    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]'
5917    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5918    ;;
5919  *)
5920    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5921    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5922    ;;
5923  esac
5924  ;;
5925
5926interix[3-9]*)
5927  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5928  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5929  ;;
5930
5931irix5* | irix6* | nonstopux*)
5932  case $LD in
5933  *-32|*"-32 ") libmagic=32-bit;;
5934  *-n32|*"-n32 ") libmagic=N32;;
5935  *-64|*"-64 ") libmagic=64-bit;;
5936  *) libmagic=never-match;;
5937  esac
5938  lt_cv_deplibs_check_method=pass_all
5939  ;;
5940
5941# This must be Linux ELF.
5942linux* | k*bsd*-gnu | kopensolaris*-gnu)
5943  lt_cv_deplibs_check_method=pass_all
5944  ;;
5945
5946netbsd*)
5947  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5948    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5949  else
5950    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5951  fi
5952  ;;
5953
5954newos6*)
5955  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5956  lt_cv_file_magic_cmd=/usr/bin/file
5957  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5958  ;;
5959
5960*nto* | *qnx*)
5961  lt_cv_deplibs_check_method=pass_all
5962  ;;
5963
5964openbsd*)
5965  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5966    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5967  else
5968    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5969  fi
5970  ;;
5971
5972osf3* | osf4* | osf5*)
5973  lt_cv_deplibs_check_method=pass_all
5974  ;;
5975
5976rdos*)
5977  lt_cv_deplibs_check_method=pass_all
5978  ;;
5979
5980solaris*)
5981  lt_cv_deplibs_check_method=pass_all
5982  ;;
5983
5984sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5985  lt_cv_deplibs_check_method=pass_all
5986  ;;
5987
5988sysv4 | sysv4.3*)
5989  case $host_vendor in
5990  motorola)
5991    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]'
5992    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5993    ;;
5994  ncr)
5995    lt_cv_deplibs_check_method=pass_all
5996    ;;
5997  sequent)
5998    lt_cv_file_magic_cmd='/bin/file'
5999    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6000    ;;
6001  sni)
6002    lt_cv_file_magic_cmd='/bin/file'
6003    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6004    lt_cv_file_magic_test_file=/lib/libc.so
6005    ;;
6006  siemens)
6007    lt_cv_deplibs_check_method=pass_all
6008    ;;
6009  pc)
6010    lt_cv_deplibs_check_method=pass_all
6011    ;;
6012  esac
6013  ;;
6014
6015tpf*)
6016  lt_cv_deplibs_check_method=pass_all
6017  ;;
6018esac
6019
6020fi
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6022$as_echo "$lt_cv_deplibs_check_method" >&6; }
6023file_magic_cmd=$lt_cv_file_magic_cmd
6024deplibs_check_method=$lt_cv_deplibs_check_method
6025test -z "$deplibs_check_method" && deplibs_check_method=unknown
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038if test -n "$ac_tool_prefix"; then
6039  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6040set dummy ${ac_tool_prefix}ar; ac_word=$2
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042$as_echo_n "checking for $ac_word... " >&6; }
6043if test "${ac_cv_prog_AR+set}" = set; then :
6044  $as_echo_n "(cached) " >&6
6045else
6046  if test -n "$AR"; then
6047  ac_cv_prog_AR="$AR" # Let the user override the test.
6048else
6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050for as_dir in $PATH
6051do
6052  IFS=$as_save_IFS
6053  test -z "$as_dir" && as_dir=.
6054    for ac_exec_ext in '' $ac_executable_extensions; do
6055  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056    ac_cv_prog_AR="${ac_tool_prefix}ar"
6057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058    break 2
6059  fi
6060done
6061  done
6062IFS=$as_save_IFS
6063
6064fi
6065fi
6066AR=$ac_cv_prog_AR
6067if test -n "$AR"; then
6068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6069$as_echo "$AR" >&6; }
6070else
6071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072$as_echo "no" >&6; }
6073fi
6074
6075
6076fi
6077if test -z "$ac_cv_prog_AR"; then
6078  ac_ct_AR=$AR
6079  # Extract the first word of "ar", so it can be a program name with args.
6080set dummy ar; ac_word=$2
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082$as_echo_n "checking for $ac_word... " >&6; }
6083if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6084  $as_echo_n "(cached) " >&6
6085else
6086  if test -n "$ac_ct_AR"; then
6087  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6088else
6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090for as_dir in $PATH
6091do
6092  IFS=$as_save_IFS
6093  test -z "$as_dir" && as_dir=.
6094    for ac_exec_ext in '' $ac_executable_extensions; do
6095  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6096    ac_cv_prog_ac_ct_AR="ar"
6097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098    break 2
6099  fi
6100done
6101  done
6102IFS=$as_save_IFS
6103
6104fi
6105fi
6106ac_ct_AR=$ac_cv_prog_ac_ct_AR
6107if test -n "$ac_ct_AR"; then
6108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6109$as_echo "$ac_ct_AR" >&6; }
6110else
6111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112$as_echo "no" >&6; }
6113fi
6114
6115  if test "x$ac_ct_AR" = x; then
6116    AR="false"
6117  else
6118    case $cross_compiling:$ac_tool_warned in
6119yes:)
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6122ac_tool_warned=yes ;;
6123esac
6124    AR=$ac_ct_AR
6125  fi
6126else
6127  AR="$ac_cv_prog_AR"
6128fi
6129
6130test -z "$AR" && AR=ar
6131test -z "$AR_FLAGS" && AR_FLAGS=cru
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143if test -n "$ac_tool_prefix"; then
6144  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6145set dummy ${ac_tool_prefix}strip; ac_word=$2
6146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147$as_echo_n "checking for $ac_word... " >&6; }
6148if test "${ac_cv_prog_STRIP+set}" = set; then :
6149  $as_echo_n "(cached) " >&6
6150else
6151  if test -n "$STRIP"; then
6152  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6153else
6154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155for as_dir in $PATH
6156do
6157  IFS=$as_save_IFS
6158  test -z "$as_dir" && as_dir=.
6159    for ac_exec_ext in '' $ac_executable_extensions; do
6160  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6161    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163    break 2
6164  fi
6165done
6166  done
6167IFS=$as_save_IFS
6168
6169fi
6170fi
6171STRIP=$ac_cv_prog_STRIP
6172if test -n "$STRIP"; then
6173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6174$as_echo "$STRIP" >&6; }
6175else
6176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177$as_echo "no" >&6; }
6178fi
6179
6180
6181fi
6182if test -z "$ac_cv_prog_STRIP"; then
6183  ac_ct_STRIP=$STRIP
6184  # Extract the first word of "strip", so it can be a program name with args.
6185set dummy strip; ac_word=$2
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187$as_echo_n "checking for $ac_word... " >&6; }
6188if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6189  $as_echo_n "(cached) " >&6
6190else
6191  if test -n "$ac_ct_STRIP"; then
6192  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6193else
6194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195for as_dir in $PATH
6196do
6197  IFS=$as_save_IFS
6198  test -z "$as_dir" && as_dir=.
6199    for ac_exec_ext in '' $ac_executable_extensions; do
6200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201    ac_cv_prog_ac_ct_STRIP="strip"
6202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203    break 2
6204  fi
6205done
6206  done
6207IFS=$as_save_IFS
6208
6209fi
6210fi
6211ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6212if test -n "$ac_ct_STRIP"; then
6213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6214$as_echo "$ac_ct_STRIP" >&6; }
6215else
6216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217$as_echo "no" >&6; }
6218fi
6219
6220  if test "x$ac_ct_STRIP" = x; then
6221    STRIP=":"
6222  else
6223    case $cross_compiling:$ac_tool_warned in
6224yes:)
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6227ac_tool_warned=yes ;;
6228esac
6229    STRIP=$ac_ct_STRIP
6230  fi
6231else
6232  STRIP="$ac_cv_prog_STRIP"
6233fi
6234
6235test -z "$STRIP" && STRIP=:
6236
6237
6238
6239
6240
6241
6242if test -n "$ac_tool_prefix"; then
6243  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6244set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246$as_echo_n "checking for $ac_word... " >&6; }
6247if test "${ac_cv_prog_RANLIB+set}" = set; then :
6248  $as_echo_n "(cached) " >&6
6249else
6250  if test -n "$RANLIB"; then
6251  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6252else
6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254for as_dir in $PATH
6255do
6256  IFS=$as_save_IFS
6257  test -z "$as_dir" && as_dir=.
6258    for ac_exec_ext in '' $ac_executable_extensions; do
6259  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6260    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262    break 2
6263  fi
6264done
6265  done
6266IFS=$as_save_IFS
6267
6268fi
6269fi
6270RANLIB=$ac_cv_prog_RANLIB
6271if test -n "$RANLIB"; then
6272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6273$as_echo "$RANLIB" >&6; }
6274else
6275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276$as_echo "no" >&6; }
6277fi
6278
6279
6280fi
6281if test -z "$ac_cv_prog_RANLIB"; then
6282  ac_ct_RANLIB=$RANLIB
6283  # Extract the first word of "ranlib", so it can be a program name with args.
6284set dummy ranlib; ac_word=$2
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286$as_echo_n "checking for $ac_word... " >&6; }
6287if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6288  $as_echo_n "(cached) " >&6
6289else
6290  if test -n "$ac_ct_RANLIB"; then
6291  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6292else
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296  IFS=$as_save_IFS
6297  test -z "$as_dir" && as_dir=.
6298    for ac_exec_ext in '' $ac_executable_extensions; do
6299  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6300    ac_cv_prog_ac_ct_RANLIB="ranlib"
6301    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302    break 2
6303  fi
6304done
6305  done
6306IFS=$as_save_IFS
6307
6308fi
6309fi
6310ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6311if test -n "$ac_ct_RANLIB"; then
6312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6313$as_echo "$ac_ct_RANLIB" >&6; }
6314else
6315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316$as_echo "no" >&6; }
6317fi
6318
6319  if test "x$ac_ct_RANLIB" = x; then
6320    RANLIB=":"
6321  else
6322    case $cross_compiling:$ac_tool_warned in
6323yes:)
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6326ac_tool_warned=yes ;;
6327esac
6328    RANLIB=$ac_ct_RANLIB
6329  fi
6330else
6331  RANLIB="$ac_cv_prog_RANLIB"
6332fi
6333
6334test -z "$RANLIB" && RANLIB=:
6335
6336
6337
6338
6339
6340
6341# Determine commands to create old-style static archives.
6342old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6343old_postinstall_cmds='chmod 644 $oldlib'
6344old_postuninstall_cmds=
6345
6346if test -n "$RANLIB"; then
6347  case $host_os in
6348  openbsd*)
6349    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6350    ;;
6351  *)
6352    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6353    ;;
6354  esac
6355  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6356fi
6357
6358case $host_os in
6359  darwin*)
6360    lock_old_archive_extraction=yes ;;
6361  *)
6362    lock_old_archive_extraction=no ;;
6363esac
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403# If no C compiler was specified, use CC.
6404LTCC=${LTCC-"$CC"}
6405
6406# If no C compiler flags were specified, use CFLAGS.
6407LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6408
6409# Allow CC to be a program name with arguments.
6410compiler=$CC
6411
6412
6413# Check for command to grab the raw symbol name followed by C symbol from nm.
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6415$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6416if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6417  $as_echo_n "(cached) " >&6
6418else
6419
6420# These are sane defaults that work on at least a few old systems.
6421# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6422
6423# Character class describing NM global symbol codes.
6424symcode='[BCDEGRST]'
6425
6426# Regexp to match symbols that can be accessed directly from C.
6427sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6428
6429# Define system-specific variables.
6430case $host_os in
6431aix*)
6432  symcode='[BCDT]'
6433  ;;
6434cygwin* | mingw* | pw32* | cegcc*)
6435  symcode='[ABCDGISTW]'
6436  ;;
6437hpux*)
6438  if test "$host_cpu" = ia64; then
6439    symcode='[ABCDEGRST]'
6440  fi
6441  ;;
6442irix* | nonstopux*)
6443  symcode='[BCDEGRST]'
6444  ;;
6445osf*)
6446  symcode='[BCDEGQRST]'
6447  ;;
6448solaris*)
6449  symcode='[BDRT]'
6450  ;;
6451sco3.2v5*)
6452  symcode='[DT]'
6453  ;;
6454sysv4.2uw2*)
6455  symcode='[DT]'
6456  ;;
6457sysv5* | sco5v6* | unixware* | OpenUNIX*)
6458  symcode='[ABDT]'
6459  ;;
6460sysv4)
6461  symcode='[DFNSTU]'
6462  ;;
6463esac
6464
6465# If we're using GNU nm, then use its standard symbol codes.
6466case `$NM -V 2>&1` in
6467*GNU* | *'with BFD'*)
6468  symcode='[ABCDGIRSTW]' ;;
6469esac
6470
6471# Transform an extracted symbol line into a proper C declaration.
6472# Some systems (esp. on ia64) link data and code symbols differently,
6473# so use this general approach.
6474lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6475
6476# Transform an extracted symbol line into symbol name and symbol address
6477lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6478lt_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'"
6479
6480# Handle CRLF in mingw tool chain
6481opt_cr=
6482case $build_os in
6483mingw*)
6484  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6485  ;;
6486esac
6487
6488# Try without a prefix underscore, then with it.
6489for ac_symprfx in "" "_"; do
6490
6491  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6492  symxfrm="\\1 $ac_symprfx\\2 \\2"
6493
6494  # Write the raw and C identifiers.
6495  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6496    # Fake it for dumpbin and say T for any non-static function
6497    # and D for any global variable.
6498    # Also find C++ and __fastcall symbols from MSVC++,
6499    # which start with @ or ?.
6500    lt_cv_sys_global_symbol_pipe="$AWK '"\
6501"     {last_section=section; section=\$ 3};"\
6502"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6503"     \$ 0!~/External *\|/{next};"\
6504"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6505"     {if(hide[section]) next};"\
6506"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6507"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6508"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6509"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6510"     ' prfx=^$ac_symprfx"
6511  else
6512    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6513  fi
6514
6515  # Check to see that the pipe works correctly.
6516  pipe_works=no
6517
6518  rm -f conftest*
6519  cat > conftest.$ac_ext <<_LT_EOF
6520#ifdef __cplusplus
6521extern "C" {
6522#endif
6523char nm_test_var;
6524void nm_test_func(void);
6525void nm_test_func(void){}
6526#ifdef __cplusplus
6527}
6528#endif
6529int main(){nm_test_var='a';nm_test_func();return(0);}
6530_LT_EOF
6531
6532  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6533  (eval $ac_compile) 2>&5
6534  ac_status=$?
6535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6536  test $ac_status = 0; }; then
6537    # Now try to grab the symbols.
6538    nlist=conftest.nm
6539    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6540  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6541  ac_status=$?
6542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6543  test $ac_status = 0; } && test -s "$nlist"; then
6544      # Try sorting and uniquifying the output.
6545      if sort "$nlist" | uniq > "$nlist"T; then
6546	mv -f "$nlist"T "$nlist"
6547      else
6548	rm -f "$nlist"T
6549      fi
6550
6551      # Make sure that we snagged all the symbols we need.
6552      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6553	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6554	  cat <<_LT_EOF > conftest.$ac_ext
6555#ifdef __cplusplus
6556extern "C" {
6557#endif
6558
6559_LT_EOF
6560	  # Now generate the symbol file.
6561	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6562
6563	  cat <<_LT_EOF >> conftest.$ac_ext
6564
6565/* The mapping between symbol names and symbols.  */
6566const struct {
6567  const char *name;
6568  void       *address;
6569}
6570lt__PROGRAM__LTX_preloaded_symbols[] =
6571{
6572  { "@PROGRAM@", (void *) 0 },
6573_LT_EOF
6574	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6575	  cat <<\_LT_EOF >> conftest.$ac_ext
6576  {0, (void *) 0}
6577};
6578
6579/* This works around a problem in FreeBSD linker */
6580#ifdef FREEBSD_WORKAROUND
6581static const void *lt_preloaded_setup() {
6582  return lt__PROGRAM__LTX_preloaded_symbols;
6583}
6584#endif
6585
6586#ifdef __cplusplus
6587}
6588#endif
6589_LT_EOF
6590	  # Now try linking the two files.
6591	  mv conftest.$ac_objext conftstm.$ac_objext
6592	  lt_save_LIBS="$LIBS"
6593	  lt_save_CFLAGS="$CFLAGS"
6594	  LIBS="conftstm.$ac_objext"
6595	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6596	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6597  (eval $ac_link) 2>&5
6598  ac_status=$?
6599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6600  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6601	    pipe_works=yes
6602	  fi
6603	  LIBS="$lt_save_LIBS"
6604	  CFLAGS="$lt_save_CFLAGS"
6605	else
6606	  echo "cannot find nm_test_func in $nlist" >&5
6607	fi
6608      else
6609	echo "cannot find nm_test_var in $nlist" >&5
6610      fi
6611    else
6612      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6613    fi
6614  else
6615    echo "$progname: failed program was:" >&5
6616    cat conftest.$ac_ext >&5
6617  fi
6618  rm -rf conftest* conftst*
6619
6620  # Do not use the global_symbol_pipe unless it works.
6621  if test "$pipe_works" = yes; then
6622    break
6623  else
6624    lt_cv_sys_global_symbol_pipe=
6625  fi
6626done
6627
6628fi
6629
6630if test -z "$lt_cv_sys_global_symbol_pipe"; then
6631  lt_cv_sys_global_symbol_to_cdecl=
6632fi
6633if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6635$as_echo "failed" >&6; }
6636else
6637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6638$as_echo "ok" >&6; }
6639fi
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662# Check whether --enable-libtool-lock was given.
6663if test "${enable_libtool_lock+set}" = set; then :
6664  enableval=$enable_libtool_lock;
6665fi
6666
6667test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6668
6669# Some flags need to be propagated to the compiler or linker for good
6670# libtool support.
6671case $host in
6672ia64-*-hpux*)
6673  # Find out which ABI we are using.
6674  echo 'int i;' > conftest.$ac_ext
6675  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6676  (eval $ac_compile) 2>&5
6677  ac_status=$?
6678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6679  test $ac_status = 0; }; then
6680    case `/usr/bin/file conftest.$ac_objext` in
6681      *ELF-32*)
6682	HPUX_IA64_MODE="32"
6683	;;
6684      *ELF-64*)
6685	HPUX_IA64_MODE="64"
6686	;;
6687    esac
6688  fi
6689  rm -rf conftest*
6690  ;;
6691*-*-irix6*)
6692  # Find out which ABI we are using.
6693  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6694  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6695  (eval $ac_compile) 2>&5
6696  ac_status=$?
6697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698  test $ac_status = 0; }; then
6699    if test "$lt_cv_prog_gnu_ld" = yes; then
6700      case `/usr/bin/file conftest.$ac_objext` in
6701	*32-bit*)
6702	  LD="${LD-ld} -melf32bsmip"
6703	  ;;
6704	*N32*)
6705	  LD="${LD-ld} -melf32bmipn32"
6706	  ;;
6707	*64-bit*)
6708	  LD="${LD-ld} -melf64bmip"
6709	;;
6710      esac
6711    else
6712      case `/usr/bin/file conftest.$ac_objext` in
6713	*32-bit*)
6714	  LD="${LD-ld} -32"
6715	  ;;
6716	*N32*)
6717	  LD="${LD-ld} -n32"
6718	  ;;
6719	*64-bit*)
6720	  LD="${LD-ld} -64"
6721	  ;;
6722      esac
6723    fi
6724  fi
6725  rm -rf conftest*
6726  ;;
6727
6728x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6729s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6730  # Find out which ABI we are using.
6731  echo 'int i;' > conftest.$ac_ext
6732  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6733  (eval $ac_compile) 2>&5
6734  ac_status=$?
6735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6736  test $ac_status = 0; }; then
6737    case `/usr/bin/file conftest.o` in
6738      *32-bit*)
6739	case $host in
6740	  x86_64-*kfreebsd*-gnu)
6741	    LD="${LD-ld} -m elf_i386_fbsd"
6742	    ;;
6743	  x86_64-*linux*)
6744	    LD="${LD-ld} -m elf_i386"
6745	    ;;
6746	  ppc64-*linux*|powerpc64-*linux*)
6747	    LD="${LD-ld} -m elf32ppclinux"
6748	    ;;
6749	  s390x-*linux*)
6750	    LD="${LD-ld} -m elf_s390"
6751	    ;;
6752	  sparc64-*linux*)
6753	    LD="${LD-ld} -m elf32_sparc"
6754	    ;;
6755	esac
6756	;;
6757      *64-bit*)
6758	case $host in
6759	  x86_64-*kfreebsd*-gnu)
6760	    LD="${LD-ld} -m elf_x86_64_fbsd"
6761	    ;;
6762	  x86_64-*linux*)
6763	    LD="${LD-ld} -m elf_x86_64"
6764	    ;;
6765	  ppc*-*linux*|powerpc*-*linux*)
6766	    LD="${LD-ld} -m elf64ppc"
6767	    ;;
6768	  s390*-*linux*|s390*-*tpf*)
6769	    LD="${LD-ld} -m elf64_s390"
6770	    ;;
6771	  sparc*-*linux*)
6772	    LD="${LD-ld} -m elf64_sparc"
6773	    ;;
6774	esac
6775	;;
6776    esac
6777  fi
6778  rm -rf conftest*
6779  ;;
6780
6781*-*-sco3.2v5*)
6782  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6783  SAVE_CFLAGS="$CFLAGS"
6784  CFLAGS="$CFLAGS -belf"
6785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6786$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6787if test "${lt_cv_cc_needs_belf+set}" = set; then :
6788  $as_echo_n "(cached) " >&6
6789else
6790  ac_ext=c
6791ac_cpp='$CPP $CPPFLAGS'
6792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6794ac_compiler_gnu=$ac_cv_c_compiler_gnu
6795
6796     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797/* end confdefs.h.  */
6798
6799int
6800main ()
6801{
6802
6803  ;
6804  return 0;
6805}
6806_ACEOF
6807if ac_fn_c_try_link "$LINENO"; then :
6808  lt_cv_cc_needs_belf=yes
6809else
6810  lt_cv_cc_needs_belf=no
6811fi
6812rm -f core conftest.err conftest.$ac_objext \
6813    conftest$ac_exeext conftest.$ac_ext
6814     ac_ext=c
6815ac_cpp='$CPP $CPPFLAGS'
6816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6818ac_compiler_gnu=$ac_cv_c_compiler_gnu
6819
6820fi
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6822$as_echo "$lt_cv_cc_needs_belf" >&6; }
6823  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6824    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6825    CFLAGS="$SAVE_CFLAGS"
6826  fi
6827  ;;
6828sparc*-*solaris*)
6829  # Find out which ABI we are using.
6830  echo 'int i;' > conftest.$ac_ext
6831  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6832  (eval $ac_compile) 2>&5
6833  ac_status=$?
6834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835  test $ac_status = 0; }; then
6836    case `/usr/bin/file conftest.o` in
6837    *64-bit*)
6838      case $lt_cv_prog_gnu_ld in
6839      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6840      *)
6841	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6842	  LD="${LD-ld} -64"
6843	fi
6844	;;
6845      esac
6846      ;;
6847    esac
6848  fi
6849  rm -rf conftest*
6850  ;;
6851esac
6852
6853need_locks="$enable_libtool_lock"
6854
6855
6856  case $host_os in
6857    rhapsody* | darwin*)
6858    if test -n "$ac_tool_prefix"; then
6859  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6860set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862$as_echo_n "checking for $ac_word... " >&6; }
6863if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6864  $as_echo_n "(cached) " >&6
6865else
6866  if test -n "$DSYMUTIL"; then
6867  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6868else
6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872  IFS=$as_save_IFS
6873  test -z "$as_dir" && as_dir=.
6874    for ac_exec_ext in '' $ac_executable_extensions; do
6875  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878    break 2
6879  fi
6880done
6881  done
6882IFS=$as_save_IFS
6883
6884fi
6885fi
6886DSYMUTIL=$ac_cv_prog_DSYMUTIL
6887if test -n "$DSYMUTIL"; then
6888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6889$as_echo "$DSYMUTIL" >&6; }
6890else
6891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892$as_echo "no" >&6; }
6893fi
6894
6895
6896fi
6897if test -z "$ac_cv_prog_DSYMUTIL"; then
6898  ac_ct_DSYMUTIL=$DSYMUTIL
6899  # Extract the first word of "dsymutil", so it can be a program name with args.
6900set dummy dsymutil; ac_word=$2
6901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902$as_echo_n "checking for $ac_word... " >&6; }
6903if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6904  $as_echo_n "(cached) " >&6
6905else
6906  if test -n "$ac_ct_DSYMUTIL"; then
6907  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6908else
6909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912  IFS=$as_save_IFS
6913  test -z "$as_dir" && as_dir=.
6914    for ac_exec_ext in '' $ac_executable_extensions; do
6915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6916    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918    break 2
6919  fi
6920done
6921  done
6922IFS=$as_save_IFS
6923
6924fi
6925fi
6926ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6927if test -n "$ac_ct_DSYMUTIL"; then
6928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6929$as_echo "$ac_ct_DSYMUTIL" >&6; }
6930else
6931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932$as_echo "no" >&6; }
6933fi
6934
6935  if test "x$ac_ct_DSYMUTIL" = x; then
6936    DSYMUTIL=":"
6937  else
6938    case $cross_compiling:$ac_tool_warned in
6939yes:)
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6942ac_tool_warned=yes ;;
6943esac
6944    DSYMUTIL=$ac_ct_DSYMUTIL
6945  fi
6946else
6947  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6948fi
6949
6950    if test -n "$ac_tool_prefix"; then
6951  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6952set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954$as_echo_n "checking for $ac_word... " >&6; }
6955if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6956  $as_echo_n "(cached) " >&6
6957else
6958  if test -n "$NMEDIT"; then
6959  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6960else
6961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964  IFS=$as_save_IFS
6965  test -z "$as_dir" && as_dir=.
6966    for ac_exec_ext in '' $ac_executable_extensions; do
6967  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970    break 2
6971  fi
6972done
6973  done
6974IFS=$as_save_IFS
6975
6976fi
6977fi
6978NMEDIT=$ac_cv_prog_NMEDIT
6979if test -n "$NMEDIT"; then
6980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6981$as_echo "$NMEDIT" >&6; }
6982else
6983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984$as_echo "no" >&6; }
6985fi
6986
6987
6988fi
6989if test -z "$ac_cv_prog_NMEDIT"; then
6990  ac_ct_NMEDIT=$NMEDIT
6991  # Extract the first word of "nmedit", so it can be a program name with args.
6992set dummy nmedit; ac_word=$2
6993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994$as_echo_n "checking for $ac_word... " >&6; }
6995if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6996  $as_echo_n "(cached) " >&6
6997else
6998  if test -n "$ac_ct_NMEDIT"; then
6999  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7000else
7001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002for as_dir in $PATH
7003do
7004  IFS=$as_save_IFS
7005  test -z "$as_dir" && as_dir=.
7006    for ac_exec_ext in '' $ac_executable_extensions; do
7007  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7008    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010    break 2
7011  fi
7012done
7013  done
7014IFS=$as_save_IFS
7015
7016fi
7017fi
7018ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7019if test -n "$ac_ct_NMEDIT"; then
7020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7021$as_echo "$ac_ct_NMEDIT" >&6; }
7022else
7023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024$as_echo "no" >&6; }
7025fi
7026
7027  if test "x$ac_ct_NMEDIT" = x; then
7028    NMEDIT=":"
7029  else
7030    case $cross_compiling:$ac_tool_warned in
7031yes:)
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7034ac_tool_warned=yes ;;
7035esac
7036    NMEDIT=$ac_ct_NMEDIT
7037  fi
7038else
7039  NMEDIT="$ac_cv_prog_NMEDIT"
7040fi
7041
7042    if test -n "$ac_tool_prefix"; then
7043  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7044set dummy ${ac_tool_prefix}lipo; ac_word=$2
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046$as_echo_n "checking for $ac_word... " >&6; }
7047if test "${ac_cv_prog_LIPO+set}" = set; then :
7048  $as_echo_n "(cached) " >&6
7049else
7050  if test -n "$LIPO"; then
7051  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7052else
7053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056  IFS=$as_save_IFS
7057  test -z "$as_dir" && as_dir=.
7058    for ac_exec_ext in '' $ac_executable_extensions; do
7059  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7060    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062    break 2
7063  fi
7064done
7065  done
7066IFS=$as_save_IFS
7067
7068fi
7069fi
7070LIPO=$ac_cv_prog_LIPO
7071if test -n "$LIPO"; then
7072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7073$as_echo "$LIPO" >&6; }
7074else
7075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076$as_echo "no" >&6; }
7077fi
7078
7079
7080fi
7081if test -z "$ac_cv_prog_LIPO"; then
7082  ac_ct_LIPO=$LIPO
7083  # Extract the first word of "lipo", so it can be a program name with args.
7084set dummy lipo; ac_word=$2
7085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086$as_echo_n "checking for $ac_word... " >&6; }
7087if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7088  $as_echo_n "(cached) " >&6
7089else
7090  if test -n "$ac_ct_LIPO"; then
7091  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7092else
7093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094for as_dir in $PATH
7095do
7096  IFS=$as_save_IFS
7097  test -z "$as_dir" && as_dir=.
7098    for ac_exec_ext in '' $ac_executable_extensions; do
7099  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7100    ac_cv_prog_ac_ct_LIPO="lipo"
7101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102    break 2
7103  fi
7104done
7105  done
7106IFS=$as_save_IFS
7107
7108fi
7109fi
7110ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7111if test -n "$ac_ct_LIPO"; then
7112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7113$as_echo "$ac_ct_LIPO" >&6; }
7114else
7115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116$as_echo "no" >&6; }
7117fi
7118
7119  if test "x$ac_ct_LIPO" = x; then
7120    LIPO=":"
7121  else
7122    case $cross_compiling:$ac_tool_warned in
7123yes:)
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7126ac_tool_warned=yes ;;
7127esac
7128    LIPO=$ac_ct_LIPO
7129  fi
7130else
7131  LIPO="$ac_cv_prog_LIPO"
7132fi
7133
7134    if test -n "$ac_tool_prefix"; then
7135  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7136set dummy ${ac_tool_prefix}otool; ac_word=$2
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138$as_echo_n "checking for $ac_word... " >&6; }
7139if test "${ac_cv_prog_OTOOL+set}" = set; then :
7140  $as_echo_n "(cached) " >&6
7141else
7142  if test -n "$OTOOL"; then
7143  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7144else
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148  IFS=$as_save_IFS
7149  test -z "$as_dir" && as_dir=.
7150    for ac_exec_ext in '' $ac_executable_extensions; do
7151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154    break 2
7155  fi
7156done
7157  done
7158IFS=$as_save_IFS
7159
7160fi
7161fi
7162OTOOL=$ac_cv_prog_OTOOL
7163if test -n "$OTOOL"; then
7164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7165$as_echo "$OTOOL" >&6; }
7166else
7167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168$as_echo "no" >&6; }
7169fi
7170
7171
7172fi
7173if test -z "$ac_cv_prog_OTOOL"; then
7174  ac_ct_OTOOL=$OTOOL
7175  # Extract the first word of "otool", so it can be a program name with args.
7176set dummy otool; ac_word=$2
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178$as_echo_n "checking for $ac_word... " >&6; }
7179if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7180  $as_echo_n "(cached) " >&6
7181else
7182  if test -n "$ac_ct_OTOOL"; then
7183  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7184else
7185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188  IFS=$as_save_IFS
7189  test -z "$as_dir" && as_dir=.
7190    for ac_exec_ext in '' $ac_executable_extensions; do
7191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7192    ac_cv_prog_ac_ct_OTOOL="otool"
7193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194    break 2
7195  fi
7196done
7197  done
7198IFS=$as_save_IFS
7199
7200fi
7201fi
7202ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7203if test -n "$ac_ct_OTOOL"; then
7204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7205$as_echo "$ac_ct_OTOOL" >&6; }
7206else
7207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208$as_echo "no" >&6; }
7209fi
7210
7211  if test "x$ac_ct_OTOOL" = x; then
7212    OTOOL=":"
7213  else
7214    case $cross_compiling:$ac_tool_warned in
7215yes:)
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7218ac_tool_warned=yes ;;
7219esac
7220    OTOOL=$ac_ct_OTOOL
7221  fi
7222else
7223  OTOOL="$ac_cv_prog_OTOOL"
7224fi
7225
7226    if test -n "$ac_tool_prefix"; then
7227  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7228set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+set}" = set; then :
7232  $as_echo_n "(cached) " >&6
7233else
7234  if test -n "$OTOOL64"; then
7235  ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
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
7254OTOOL64=$ac_cv_prog_OTOOL64
7255if test -n "$OTOOL64"; then
7256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7257$as_echo "$OTOOL64" >&6; }
7258else
7259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260$as_echo "no" >&6; }
7261fi
7262
7263
7264fi
7265if test -z "$ac_cv_prog_OTOOL64"; then
7266  ac_ct_OTOOL64=$OTOOL64
7267  # Extract the first word of "otool64", so it can be a program name with args.
7268set dummy otool64; ac_word=$2
7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270$as_echo_n "checking for $ac_word... " >&6; }
7271if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7272  $as_echo_n "(cached) " >&6
7273else
7274  if test -n "$ac_ct_OTOOL64"; then
7275  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7276else
7277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278for as_dir in $PATH
7279do
7280  IFS=$as_save_IFS
7281  test -z "$as_dir" && as_dir=.
7282    for ac_exec_ext in '' $ac_executable_extensions; do
7283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7284    ac_cv_prog_ac_ct_OTOOL64="otool64"
7285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7286    break 2
7287  fi
7288done
7289  done
7290IFS=$as_save_IFS
7291
7292fi
7293fi
7294ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7295if test -n "$ac_ct_OTOOL64"; then
7296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7297$as_echo "$ac_ct_OTOOL64" >&6; }
7298else
7299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300$as_echo "no" >&6; }
7301fi
7302
7303  if test "x$ac_ct_OTOOL64" = x; then
7304    OTOOL64=":"
7305  else
7306    case $cross_compiling:$ac_tool_warned in
7307yes:)
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7310ac_tool_warned=yes ;;
7311esac
7312    OTOOL64=$ac_ct_OTOOL64
7313  fi
7314else
7315  OTOOL64="$ac_cv_prog_OTOOL64"
7316fi
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7345$as_echo_n "checking for -single_module linker flag... " >&6; }
7346if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7347  $as_echo_n "(cached) " >&6
7348else
7349  lt_cv_apple_cc_single_mod=no
7350      if test -z "${LT_MULTI_MODULE}"; then
7351	# By default we will add the -single_module flag. You can override
7352	# by either setting the environment variable LT_MULTI_MODULE
7353	# non-empty at configure time, or by adding -multi_module to the
7354	# link flags.
7355	rm -rf libconftest.dylib*
7356	echo "int foo(void){return 1;}" > conftest.c
7357	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7358-dynamiclib -Wl,-single_module conftest.c" >&5
7359	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7360	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7361        _lt_result=$?
7362	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7363	  lt_cv_apple_cc_single_mod=yes
7364	else
7365	  cat conftest.err >&5
7366	fi
7367	rm -rf libconftest.dylib*
7368	rm -f conftest.*
7369      fi
7370fi
7371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7372$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7373    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7374$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7375if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7376  $as_echo_n "(cached) " >&6
7377else
7378  lt_cv_ld_exported_symbols_list=no
7379      save_LDFLAGS=$LDFLAGS
7380      echo "_main" > conftest.sym
7381      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7382      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383/* end confdefs.h.  */
7384
7385int
7386main ()
7387{
7388
7389  ;
7390  return 0;
7391}
7392_ACEOF
7393if ac_fn_c_try_link "$LINENO"; then :
7394  lt_cv_ld_exported_symbols_list=yes
7395else
7396  lt_cv_ld_exported_symbols_list=no
7397fi
7398rm -f core conftest.err conftest.$ac_objext \
7399    conftest$ac_exeext conftest.$ac_ext
7400	LDFLAGS="$save_LDFLAGS"
7401
7402fi
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7404$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7405    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7406$as_echo_n "checking for -force_load linker flag... " >&6; }
7407if test "${lt_cv_ld_force_load+set}" = set; then :
7408  $as_echo_n "(cached) " >&6
7409else
7410  lt_cv_ld_force_load=no
7411      cat > conftest.c << _LT_EOF
7412int forced_loaded() { return 2;}
7413_LT_EOF
7414      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7415      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7416      echo "$AR cru libconftest.a conftest.o" >&5
7417      $AR cru libconftest.a conftest.o 2>&5
7418      echo "$RANLIB libconftest.a" >&5
7419      $RANLIB libconftest.a 2>&5
7420      cat > conftest.c << _LT_EOF
7421int main() { return 0;}
7422_LT_EOF
7423      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7424      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7425      _lt_result=$?
7426      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7427	lt_cv_ld_force_load=yes
7428      else
7429	cat conftest.err >&5
7430      fi
7431        rm -f conftest.err libconftest.a conftest conftest.c
7432        rm -rf conftest.dSYM
7433
7434fi
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7436$as_echo "$lt_cv_ld_force_load" >&6; }
7437    case $host_os in
7438    rhapsody* | darwin1.[012])
7439      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7440    darwin1.*)
7441      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7442    darwin*) # darwin 5.x on
7443      # if running on 10.5 or later, the deployment target defaults
7444      # to the OS version, if on x86, and 10.4, the deployment
7445      # target defaults to 10.4. Don't you love it?
7446      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7447	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7448	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7449	10.[012]*)
7450	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7451	10.*)
7452	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7453      esac
7454    ;;
7455  esac
7456    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7457      _lt_dar_single_mod='$single_module'
7458    fi
7459    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7460      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7461    else
7462      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7463    fi
7464    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7465      _lt_dsymutil='~$DSYMUTIL $lib || :'
7466    else
7467      _lt_dsymutil=
7468    fi
7469    ;;
7470  esac
7471
7472for ac_header in dlfcn.h
7473do :
7474  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7475"
7476if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7477  cat >>confdefs.h <<_ACEOF
7478#define HAVE_DLFCN_H 1
7479_ACEOF
7480
7481fi
7482
7483done
7484
7485
7486
7487
7488
7489# Set options
7490
7491
7492
7493        enable_dlopen=no
7494
7495
7496  enable_win32_dll=no
7497
7498
7499            # Check whether --enable-shared was given.
7500if test "${enable_shared+set}" = set; then :
7501  enableval=$enable_shared; p=${PACKAGE-default}
7502    case $enableval in
7503    yes) enable_shared=yes ;;
7504    no) enable_shared=no ;;
7505    *)
7506      enable_shared=no
7507      # Look at the argument we got.  We use all the common list separators.
7508      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7509      for pkg in $enableval; do
7510	IFS="$lt_save_ifs"
7511	if test "X$pkg" = "X$p"; then
7512	  enable_shared=yes
7513	fi
7514      done
7515      IFS="$lt_save_ifs"
7516      ;;
7517    esac
7518else
7519  enable_shared=yes
7520fi
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530  # Check whether --enable-static was given.
7531if test "${enable_static+set}" = set; then :
7532  enableval=$enable_static; p=${PACKAGE-default}
7533    case $enableval in
7534    yes) enable_static=yes ;;
7535    no) enable_static=no ;;
7536    *)
7537     enable_static=no
7538      # Look at the argument we got.  We use all the common list separators.
7539      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7540      for pkg in $enableval; do
7541	IFS="$lt_save_ifs"
7542	if test "X$pkg" = "X$p"; then
7543	  enable_static=yes
7544	fi
7545      done
7546      IFS="$lt_save_ifs"
7547      ;;
7548    esac
7549else
7550  enable_static=yes
7551fi
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562# Check whether --with-pic was given.
7563if test "${with_pic+set}" = set; then :
7564  withval=$with_pic; pic_mode="$withval"
7565else
7566  pic_mode=default
7567fi
7568
7569
7570test -z "$pic_mode" && pic_mode=default
7571
7572
7573
7574
7575
7576
7577
7578  # Check whether --enable-fast-install was given.
7579if test "${enable_fast_install+set}" = set; then :
7580  enableval=$enable_fast_install; p=${PACKAGE-default}
7581    case $enableval in
7582    yes) enable_fast_install=yes ;;
7583    no) enable_fast_install=no ;;
7584    *)
7585      enable_fast_install=no
7586      # Look at the argument we got.  We use all the common list separators.
7587      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7588      for pkg in $enableval; do
7589	IFS="$lt_save_ifs"
7590	if test "X$pkg" = "X$p"; then
7591	  enable_fast_install=yes
7592	fi
7593      done
7594      IFS="$lt_save_ifs"
7595      ;;
7596    esac
7597else
7598  enable_fast_install=yes
7599fi
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611# This can be used to rebuild libtool when needed
7612LIBTOOL_DEPS="$ltmain"
7613
7614# Always use our own libtool.
7615LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642test -z "$LN_S" && LN_S="ln -s"
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657if test -n "${ZSH_VERSION+set}" ; then
7658   setopt NO_GLOB_SUBST
7659fi
7660
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7662$as_echo_n "checking for objdir... " >&6; }
7663if test "${lt_cv_objdir+set}" = set; then :
7664  $as_echo_n "(cached) " >&6
7665else
7666  rm -f .libs 2>/dev/null
7667mkdir .libs 2>/dev/null
7668if test -d .libs; then
7669  lt_cv_objdir=.libs
7670else
7671  # MS-DOS does not allow filenames that begin with a dot.
7672  lt_cv_objdir=_libs
7673fi
7674rmdir .libs 2>/dev/null
7675fi
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7677$as_echo "$lt_cv_objdir" >&6; }
7678objdir=$lt_cv_objdir
7679
7680
7681
7682
7683
7684cat >>confdefs.h <<_ACEOF
7685#define LT_OBJDIR "$lt_cv_objdir/"
7686_ACEOF
7687
7688
7689
7690
7691case $host_os in
7692aix3*)
7693  # AIX sometimes has problems with the GCC collect2 program.  For some
7694  # reason, if we set the COLLECT_NAMES environment variable, the problems
7695  # vanish in a puff of smoke.
7696  if test "X${COLLECT_NAMES+set}" != Xset; then
7697    COLLECT_NAMES=
7698    export COLLECT_NAMES
7699  fi
7700  ;;
7701esac
7702
7703# Global variables:
7704ofile=libtool
7705can_build_shared=yes
7706
7707# All known linkers require a `.a' archive for static linking (except MSVC,
7708# which needs '.lib').
7709libext=a
7710
7711with_gnu_ld="$lt_cv_prog_gnu_ld"
7712
7713old_CC="$CC"
7714old_CFLAGS="$CFLAGS"
7715
7716# Set sane defaults for various variables
7717test -z "$CC" && CC=cc
7718test -z "$LTCC" && LTCC=$CC
7719test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7720test -z "$LD" && LD=ld
7721test -z "$ac_objext" && ac_objext=o
7722
7723for cc_temp in $compiler""; do
7724  case $cc_temp in
7725    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7726    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7727    \-*) ;;
7728    *) break;;
7729  esac
7730done
7731cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7732
7733
7734# Only perform the check for file, if the check method requires it
7735test -z "$MAGIC_CMD" && MAGIC_CMD=file
7736case $deplibs_check_method in
7737file_magic*)
7738  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7739    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7740$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7741if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7742  $as_echo_n "(cached) " >&6
7743else
7744  case $MAGIC_CMD in
7745[\\/*] |  ?:[\\/]*)
7746  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7747  ;;
7748*)
7749  lt_save_MAGIC_CMD="$MAGIC_CMD"
7750  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7751  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7752  for ac_dir in $ac_dummy; do
7753    IFS="$lt_save_ifs"
7754    test -z "$ac_dir" && ac_dir=.
7755    if test -f $ac_dir/${ac_tool_prefix}file; then
7756      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7757      if test -n "$file_magic_test_file"; then
7758	case $deplibs_check_method in
7759	"file_magic "*)
7760	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7761	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7762	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7763	    $EGREP "$file_magic_regex" > /dev/null; then
7764	    :
7765	  else
7766	    cat <<_LT_EOF 1>&2
7767
7768*** Warning: the command libtool uses to detect shared libraries,
7769*** $file_magic_cmd, produces output that libtool cannot recognize.
7770*** The result is that libtool may fail to recognize shared libraries
7771*** as such.  This will affect the creation of libtool libraries that
7772*** depend on shared libraries, but programs linked with such libtool
7773*** libraries will work regardless of this problem.  Nevertheless, you
7774*** may want to report the problem to your system manager and/or to
7775*** bug-libtool@gnu.org
7776
7777_LT_EOF
7778	  fi ;;
7779	esac
7780      fi
7781      break
7782    fi
7783  done
7784  IFS="$lt_save_ifs"
7785  MAGIC_CMD="$lt_save_MAGIC_CMD"
7786  ;;
7787esac
7788fi
7789
7790MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7791if test -n "$MAGIC_CMD"; then
7792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7793$as_echo "$MAGIC_CMD" >&6; }
7794else
7795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796$as_echo "no" >&6; }
7797fi
7798
7799
7800
7801
7802
7803if test -z "$lt_cv_path_MAGIC_CMD"; then
7804  if test -n "$ac_tool_prefix"; then
7805    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7806$as_echo_n "checking for file... " >&6; }
7807if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7808  $as_echo_n "(cached) " >&6
7809else
7810  case $MAGIC_CMD in
7811[\\/*] |  ?:[\\/]*)
7812  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7813  ;;
7814*)
7815  lt_save_MAGIC_CMD="$MAGIC_CMD"
7816  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7817  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7818  for ac_dir in $ac_dummy; do
7819    IFS="$lt_save_ifs"
7820    test -z "$ac_dir" && ac_dir=.
7821    if test -f $ac_dir/file; then
7822      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7823      if test -n "$file_magic_test_file"; then
7824	case $deplibs_check_method in
7825	"file_magic "*)
7826	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7827	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7828	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7829	    $EGREP "$file_magic_regex" > /dev/null; then
7830	    :
7831	  else
7832	    cat <<_LT_EOF 1>&2
7833
7834*** Warning: the command libtool uses to detect shared libraries,
7835*** $file_magic_cmd, produces output that libtool cannot recognize.
7836*** The result is that libtool may fail to recognize shared libraries
7837*** as such.  This will affect the creation of libtool libraries that
7838*** depend on shared libraries, but programs linked with such libtool
7839*** libraries will work regardless of this problem.  Nevertheless, you
7840*** may want to report the problem to your system manager and/or to
7841*** bug-libtool@gnu.org
7842
7843_LT_EOF
7844	  fi ;;
7845	esac
7846      fi
7847      break
7848    fi
7849  done
7850  IFS="$lt_save_ifs"
7851  MAGIC_CMD="$lt_save_MAGIC_CMD"
7852  ;;
7853esac
7854fi
7855
7856MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7857if test -n "$MAGIC_CMD"; then
7858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7859$as_echo "$MAGIC_CMD" >&6; }
7860else
7861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862$as_echo "no" >&6; }
7863fi
7864
7865
7866  else
7867    MAGIC_CMD=:
7868  fi
7869fi
7870
7871  fi
7872  ;;
7873esac
7874
7875# Use C for the default configuration in the libtool script
7876
7877lt_save_CC="$CC"
7878ac_ext=c
7879ac_cpp='$CPP $CPPFLAGS'
7880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7882ac_compiler_gnu=$ac_cv_c_compiler_gnu
7883
7884
7885# Source file extension for C test sources.
7886ac_ext=c
7887
7888# Object file extension for compiled C test sources.
7889objext=o
7890objext=$objext
7891
7892# Code to be used in simple compile tests
7893lt_simple_compile_test_code="int some_variable = 0;"
7894
7895# Code to be used in simple link tests
7896lt_simple_link_test_code='int main(){return(0);}'
7897
7898
7899
7900
7901
7902
7903
7904# If no C compiler was specified, use CC.
7905LTCC=${LTCC-"$CC"}
7906
7907# If no C compiler flags were specified, use CFLAGS.
7908LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7909
7910# Allow CC to be a program name with arguments.
7911compiler=$CC
7912
7913# Save the default compiler, since it gets overwritten when the other
7914# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7915compiler_DEFAULT=$CC
7916
7917# save warnings/boilerplate of simple test code
7918ac_outfile=conftest.$ac_objext
7919echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7920eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7921_lt_compiler_boilerplate=`cat conftest.err`
7922$RM conftest*
7923
7924ac_outfile=conftest.$ac_objext
7925echo "$lt_simple_link_test_code" >conftest.$ac_ext
7926eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7927_lt_linker_boilerplate=`cat conftest.err`
7928$RM -r conftest*
7929
7930
7931if test -n "$compiler"; then
7932
7933lt_prog_compiler_no_builtin_flag=
7934
7935if test "$GCC" = yes; then
7936  case $cc_basename in
7937  nvcc*)
7938    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7939  *)
7940    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7941  esac
7942
7943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7944$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7945if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7946  $as_echo_n "(cached) " >&6
7947else
7948  lt_cv_prog_compiler_rtti_exceptions=no
7949   ac_outfile=conftest.$ac_objext
7950   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7951   lt_compiler_flag="-fno-rtti -fno-exceptions"
7952   # Insert the option either (1) after the last *FLAGS variable, or
7953   # (2) before a word containing "conftest.", or (3) at the end.
7954   # Note that $ac_compile itself does not contain backslashes and begins
7955   # with a dollar sign (not a hyphen), so the echo should work correctly.
7956   # The option is referenced via a variable to avoid confusing sed.
7957   lt_compile=`echo "$ac_compile" | $SED \
7958   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7959   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7960   -e 's:$: $lt_compiler_flag:'`
7961   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7962   (eval "$lt_compile" 2>conftest.err)
7963   ac_status=$?
7964   cat conftest.err >&5
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   if (exit $ac_status) && test -s "$ac_outfile"; then
7967     # The compiler can only warn and ignore the option if not recognized
7968     # So say no if there are warnings other than the usual output.
7969     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7970     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7971     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7972       lt_cv_prog_compiler_rtti_exceptions=yes
7973     fi
7974   fi
7975   $RM conftest*
7976
7977fi
7978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7979$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7980
7981if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7982    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7983else
7984    :
7985fi
7986
7987fi
7988
7989
7990
7991
7992
7993
7994  lt_prog_compiler_wl=
7995lt_prog_compiler_pic=
7996lt_prog_compiler_static=
7997
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7999$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8000
8001  if test "$GCC" = yes; then
8002    lt_prog_compiler_wl='-Wl,'
8003    lt_prog_compiler_static='-static'
8004
8005    case $host_os in
8006      aix*)
8007      # All AIX code is PIC.
8008      if test "$host_cpu" = ia64; then
8009	# AIX 5 now supports IA64 processor
8010	lt_prog_compiler_static='-Bstatic'
8011      fi
8012      ;;
8013
8014    amigaos*)
8015      case $host_cpu in
8016      powerpc)
8017            # see comment about AmigaOS4 .so support
8018            lt_prog_compiler_pic='-fPIC'
8019        ;;
8020      m68k)
8021            # FIXME: we need at least 68020 code to build shared libraries, but
8022            # adding the `-m68020' flag to GCC prevents building anything better,
8023            # like `-m68040'.
8024            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8025        ;;
8026      esac
8027      ;;
8028
8029    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8030      # PIC is the default for these OSes.
8031      ;;
8032
8033    mingw* | cygwin* | pw32* | os2* | cegcc*)
8034      # This hack is so that the source file can tell whether it is being
8035      # built for inclusion in a dll (and should export symbols for example).
8036      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8037      # (--disable-auto-import) libraries
8038      lt_prog_compiler_pic='-DDLL_EXPORT'
8039      ;;
8040
8041    darwin* | rhapsody*)
8042      # PIC is the default on this platform
8043      # Common symbols not allowed in MH_DYLIB files
8044      lt_prog_compiler_pic='-fno-common'
8045      ;;
8046
8047    haiku*)
8048      # PIC is the default for Haiku.
8049      # The "-static" flag exists, but is broken.
8050      lt_prog_compiler_static=
8051      ;;
8052
8053    hpux*)
8054      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8055      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8056      # sets the default TLS model and affects inlining.
8057      case $host_cpu in
8058      hppa*64*)
8059	# +Z the default
8060	;;
8061      *)
8062	lt_prog_compiler_pic='-fPIC'
8063	;;
8064      esac
8065      ;;
8066
8067    interix[3-9]*)
8068      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8069      # Instead, we relocate shared libraries at runtime.
8070      ;;
8071
8072    msdosdjgpp*)
8073      # Just because we use GCC doesn't mean we suddenly get shared libraries
8074      # on systems that don't support them.
8075      lt_prog_compiler_can_build_shared=no
8076      enable_shared=no
8077      ;;
8078
8079    *nto* | *qnx*)
8080      # QNX uses GNU C++, but need to define -shared option too, otherwise
8081      # it will coredump.
8082      lt_prog_compiler_pic='-fPIC -shared'
8083      ;;
8084
8085    sysv4*MP*)
8086      if test -d /usr/nec; then
8087	lt_prog_compiler_pic=-Kconform_pic
8088      fi
8089      ;;
8090
8091    *)
8092      lt_prog_compiler_pic='-fPIC'
8093      ;;
8094    esac
8095
8096    case $cc_basename in
8097    nvcc*) # Cuda Compiler Driver 2.2
8098      lt_prog_compiler_wl='-Xlinker '
8099      lt_prog_compiler_pic='-Xcompiler -fPIC'
8100      ;;
8101    esac
8102  else
8103    # PORTME Check for flag to pass linker flags through the system compiler.
8104    case $host_os in
8105    aix*)
8106      lt_prog_compiler_wl='-Wl,'
8107      if test "$host_cpu" = ia64; then
8108	# AIX 5 now supports IA64 processor
8109	lt_prog_compiler_static='-Bstatic'
8110      else
8111	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8112      fi
8113      ;;
8114
8115    mingw* | cygwin* | pw32* | os2* | cegcc*)
8116      # This hack is so that the source file can tell whether it is being
8117      # built for inclusion in a dll (and should export symbols for example).
8118      lt_prog_compiler_pic='-DDLL_EXPORT'
8119      ;;
8120
8121    hpux9* | hpux10* | hpux11*)
8122      lt_prog_compiler_wl='-Wl,'
8123      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8124      # not for PA HP-UX.
8125      case $host_cpu in
8126      hppa*64*|ia64*)
8127	# +Z the default
8128	;;
8129      *)
8130	lt_prog_compiler_pic='+Z'
8131	;;
8132      esac
8133      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8134      lt_prog_compiler_static='${wl}-a ${wl}archive'
8135      ;;
8136
8137    irix5* | irix6* | nonstopux*)
8138      lt_prog_compiler_wl='-Wl,'
8139      # PIC (with -KPIC) is the default.
8140      lt_prog_compiler_static='-non_shared'
8141      ;;
8142
8143    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8144      case $cc_basename in
8145      # old Intel for x86_64 which still supported -KPIC.
8146      ecc*)
8147	lt_prog_compiler_wl='-Wl,'
8148	lt_prog_compiler_pic='-KPIC'
8149	lt_prog_compiler_static='-static'
8150        ;;
8151      # icc used to be incompatible with GCC.
8152      # ICC 10 doesn't accept -KPIC any more.
8153      icc* | ifort*)
8154	lt_prog_compiler_wl='-Wl,'
8155	lt_prog_compiler_pic='-fPIC'
8156	lt_prog_compiler_static='-static'
8157        ;;
8158      # Lahey Fortran 8.1.
8159      lf95*)
8160	lt_prog_compiler_wl='-Wl,'
8161	lt_prog_compiler_pic='--shared'
8162	lt_prog_compiler_static='--static'
8163	;;
8164      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8165        # Portland Group compilers (*not* the Pentium gcc compiler,
8166	# which looks to be a dead project)
8167	lt_prog_compiler_wl='-Wl,'
8168	lt_prog_compiler_pic='-fpic'
8169	lt_prog_compiler_static='-Bstatic'
8170        ;;
8171      ccc*)
8172        lt_prog_compiler_wl='-Wl,'
8173        # All Alpha code is PIC.
8174        lt_prog_compiler_static='-non_shared'
8175        ;;
8176      xl* | bgxl* | bgf* | mpixl*)
8177	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8178	lt_prog_compiler_wl='-Wl,'
8179	lt_prog_compiler_pic='-qpic'
8180	lt_prog_compiler_static='-qstaticlink'
8181	;;
8182      *)
8183	case `$CC -V 2>&1 | sed 5q` in
8184	*Sun\ F* | *Sun*Fortran*)
8185	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8186	  lt_prog_compiler_pic='-KPIC'
8187	  lt_prog_compiler_static='-Bstatic'
8188	  lt_prog_compiler_wl=''
8189	  ;;
8190	*Sun\ C*)
8191	  # Sun C 5.9
8192	  lt_prog_compiler_pic='-KPIC'
8193	  lt_prog_compiler_static='-Bstatic'
8194	  lt_prog_compiler_wl='-Wl,'
8195	  ;;
8196	esac
8197	;;
8198      esac
8199      ;;
8200
8201    newsos6)
8202      lt_prog_compiler_pic='-KPIC'
8203      lt_prog_compiler_static='-Bstatic'
8204      ;;
8205
8206    *nto* | *qnx*)
8207      # QNX uses GNU C++, but need to define -shared option too, otherwise
8208      # it will coredump.
8209      lt_prog_compiler_pic='-fPIC -shared'
8210      ;;
8211
8212    osf3* | osf4* | osf5*)
8213      lt_prog_compiler_wl='-Wl,'
8214      # All OSF/1 code is PIC.
8215      lt_prog_compiler_static='-non_shared'
8216      ;;
8217
8218    rdos*)
8219      lt_prog_compiler_static='-non_shared'
8220      ;;
8221
8222    solaris*)
8223      lt_prog_compiler_pic='-KPIC'
8224      lt_prog_compiler_static='-Bstatic'
8225      case $cc_basename in
8226      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8227	lt_prog_compiler_wl='-Qoption ld ';;
8228      *)
8229	lt_prog_compiler_wl='-Wl,';;
8230      esac
8231      ;;
8232
8233    sunos4*)
8234      lt_prog_compiler_wl='-Qoption ld '
8235      lt_prog_compiler_pic='-PIC'
8236      lt_prog_compiler_static='-Bstatic'
8237      ;;
8238
8239    sysv4 | sysv4.2uw2* | sysv4.3*)
8240      lt_prog_compiler_wl='-Wl,'
8241      lt_prog_compiler_pic='-KPIC'
8242      lt_prog_compiler_static='-Bstatic'
8243      ;;
8244
8245    sysv4*MP*)
8246      if test -d /usr/nec ;then
8247	lt_prog_compiler_pic='-Kconform_pic'
8248	lt_prog_compiler_static='-Bstatic'
8249      fi
8250      ;;
8251
8252    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8253      lt_prog_compiler_wl='-Wl,'
8254      lt_prog_compiler_pic='-KPIC'
8255      lt_prog_compiler_static='-Bstatic'
8256      ;;
8257
8258    unicos*)
8259      lt_prog_compiler_wl='-Wl,'
8260      lt_prog_compiler_can_build_shared=no
8261      ;;
8262
8263    uts4*)
8264      lt_prog_compiler_pic='-pic'
8265      lt_prog_compiler_static='-Bstatic'
8266      ;;
8267
8268    *)
8269      lt_prog_compiler_can_build_shared=no
8270      ;;
8271    esac
8272  fi
8273
8274case $host_os in
8275  # For platforms which do not support PIC, -DPIC is meaningless:
8276  *djgpp*)
8277    lt_prog_compiler_pic=
8278    ;;
8279  *)
8280    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8281    ;;
8282esac
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8284$as_echo "$lt_prog_compiler_pic" >&6; }
8285
8286
8287
8288
8289
8290
8291#
8292# Check to make sure the PIC flag actually works.
8293#
8294if test -n "$lt_prog_compiler_pic"; then
8295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8296$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8297if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8298  $as_echo_n "(cached) " >&6
8299else
8300  lt_cv_prog_compiler_pic_works=no
8301   ac_outfile=conftest.$ac_objext
8302   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8303   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8304   # Insert the option either (1) after the last *FLAGS variable, or
8305   # (2) before a word containing "conftest.", or (3) at the end.
8306   # Note that $ac_compile itself does not contain backslashes and begins
8307   # with a dollar sign (not a hyphen), so the echo should work correctly.
8308   # The option is referenced via a variable to avoid confusing sed.
8309   lt_compile=`echo "$ac_compile" | $SED \
8310   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8311   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8312   -e 's:$: $lt_compiler_flag:'`
8313   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8314   (eval "$lt_compile" 2>conftest.err)
8315   ac_status=$?
8316   cat conftest.err >&5
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   if (exit $ac_status) && test -s "$ac_outfile"; then
8319     # The compiler can only warn and ignore the option if not recognized
8320     # So say no if there are warnings other than the usual output.
8321     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8322     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8323     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8324       lt_cv_prog_compiler_pic_works=yes
8325     fi
8326   fi
8327   $RM conftest*
8328
8329fi
8330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8331$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8332
8333if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8334    case $lt_prog_compiler_pic in
8335     "" | " "*) ;;
8336     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8337     esac
8338else
8339    lt_prog_compiler_pic=
8340     lt_prog_compiler_can_build_shared=no
8341fi
8342
8343fi
8344
8345
8346
8347
8348
8349
8350#
8351# Check to make sure the static flag actually works.
8352#
8353wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8355$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8356if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8357  $as_echo_n "(cached) " >&6
8358else
8359  lt_cv_prog_compiler_static_works=no
8360   save_LDFLAGS="$LDFLAGS"
8361   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8362   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8363   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8364     # The linker can only warn and ignore the option if not recognized
8365     # So say no if there are warnings
8366     if test -s conftest.err; then
8367       # Append any errors to the config.log.
8368       cat conftest.err 1>&5
8369       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8370       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8371       if diff conftest.exp conftest.er2 >/dev/null; then
8372         lt_cv_prog_compiler_static_works=yes
8373       fi
8374     else
8375       lt_cv_prog_compiler_static_works=yes
8376     fi
8377   fi
8378   $RM -r conftest*
8379   LDFLAGS="$save_LDFLAGS"
8380
8381fi
8382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8383$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8384
8385if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8386    :
8387else
8388    lt_prog_compiler_static=
8389fi
8390
8391
8392
8393
8394
8395
8396
8397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8398$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8399if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8400  $as_echo_n "(cached) " >&6
8401else
8402  lt_cv_prog_compiler_c_o=no
8403   $RM -r conftest 2>/dev/null
8404   mkdir conftest
8405   cd conftest
8406   mkdir out
8407   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8408
8409   lt_compiler_flag="-o out/conftest2.$ac_objext"
8410   # Insert the option either (1) after the last *FLAGS variable, or
8411   # (2) before a word containing "conftest.", or (3) at the end.
8412   # Note that $ac_compile itself does not contain backslashes and begins
8413   # with a dollar sign (not a hyphen), so the echo should work correctly.
8414   lt_compile=`echo "$ac_compile" | $SED \
8415   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8416   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8417   -e 's:$: $lt_compiler_flag:'`
8418   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8419   (eval "$lt_compile" 2>out/conftest.err)
8420   ac_status=$?
8421   cat out/conftest.err >&5
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8424   then
8425     # The compiler can only warn and ignore the option if not recognized
8426     # So say no if there are warnings
8427     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8428     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8429     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8430       lt_cv_prog_compiler_c_o=yes
8431     fi
8432   fi
8433   chmod u+w . 2>&5
8434   $RM conftest*
8435   # SGI C++ compiler will create directory out/ii_files/ for
8436   # template instantiation
8437   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8438   $RM out/* && rmdir out
8439   cd ..
8440   $RM -r conftest
8441   $RM conftest*
8442
8443fi
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8445$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8446
8447
8448
8449
8450
8451
8452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8453$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8454if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8455  $as_echo_n "(cached) " >&6
8456else
8457  lt_cv_prog_compiler_c_o=no
8458   $RM -r conftest 2>/dev/null
8459   mkdir conftest
8460   cd conftest
8461   mkdir out
8462   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8463
8464   lt_compiler_flag="-o out/conftest2.$ac_objext"
8465   # Insert the option either (1) after the last *FLAGS variable, or
8466   # (2) before a word containing "conftest.", or (3) at the end.
8467   # Note that $ac_compile itself does not contain backslashes and begins
8468   # with a dollar sign (not a hyphen), so the echo should work correctly.
8469   lt_compile=`echo "$ac_compile" | $SED \
8470   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8471   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8472   -e 's:$: $lt_compiler_flag:'`
8473   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8474   (eval "$lt_compile" 2>out/conftest.err)
8475   ac_status=$?
8476   cat out/conftest.err >&5
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8479   then
8480     # The compiler can only warn and ignore the option if not recognized
8481     # So say no if there are warnings
8482     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8483     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8484     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8485       lt_cv_prog_compiler_c_o=yes
8486     fi
8487   fi
8488   chmod u+w . 2>&5
8489   $RM conftest*
8490   # SGI C++ compiler will create directory out/ii_files/ for
8491   # template instantiation
8492   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8493   $RM out/* && rmdir out
8494   cd ..
8495   $RM -r conftest
8496   $RM conftest*
8497
8498fi
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8500$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8501
8502
8503
8504
8505hard_links="nottested"
8506if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8507  # do not overwrite the value of need_locks provided by the user
8508  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8509$as_echo_n "checking if we can lock with hard links... " >&6; }
8510  hard_links=yes
8511  $RM conftest*
8512  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8513  touch conftest.a
8514  ln conftest.a conftest.b 2>&5 || hard_links=no
8515  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8517$as_echo "$hard_links" >&6; }
8518  if test "$hard_links" = no; then
8519    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8520$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8521    need_locks=warn
8522  fi
8523else
8524  need_locks=no
8525fi
8526
8527
8528
8529
8530
8531
8532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8533$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8534
8535  runpath_var=
8536  allow_undefined_flag=
8537  always_export_symbols=no
8538  archive_cmds=
8539  archive_expsym_cmds=
8540  compiler_needs_object=no
8541  enable_shared_with_static_runtimes=no
8542  export_dynamic_flag_spec=
8543  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8544  hardcode_automatic=no
8545  hardcode_direct=no
8546  hardcode_direct_absolute=no
8547  hardcode_libdir_flag_spec=
8548  hardcode_libdir_flag_spec_ld=
8549  hardcode_libdir_separator=
8550  hardcode_minus_L=no
8551  hardcode_shlibpath_var=unsupported
8552  inherit_rpath=no
8553  link_all_deplibs=unknown
8554  module_cmds=
8555  module_expsym_cmds=
8556  old_archive_from_new_cmds=
8557  old_archive_from_expsyms_cmds=
8558  thread_safe_flag_spec=
8559  whole_archive_flag_spec=
8560  # include_expsyms should be a list of space-separated symbols to be *always*
8561  # included in the symbol list
8562  include_expsyms=
8563  # exclude_expsyms can be an extended regexp of symbols to exclude
8564  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8565  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8566  # as well as any symbol that contains `d'.
8567  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8568  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8569  # platforms (ab)use it in PIC code, but their linkers get confused if
8570  # the symbol is explicitly referenced.  Since portable code cannot
8571  # rely on this symbol name, it's probably fine to never include it in
8572  # preloaded symbol tables.
8573  # Exclude shared library initialization/finalization symbols.
8574  extract_expsyms_cmds=
8575
8576  case $host_os in
8577  cygwin* | mingw* | pw32* | cegcc*)
8578    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8579    # When not using gcc, we currently assume that we are using
8580    # Microsoft Visual C++.
8581    if test "$GCC" != yes; then
8582      with_gnu_ld=no
8583    fi
8584    ;;
8585  interix*)
8586    # we just hope/assume this is gcc and not c89 (= MSVC++)
8587    with_gnu_ld=yes
8588    ;;
8589  openbsd*)
8590    with_gnu_ld=no
8591    ;;
8592  esac
8593
8594  ld_shlibs=yes
8595
8596  # On some targets, GNU ld is compatible enough with the native linker
8597  # that we're better off using the native interface for both.
8598  lt_use_gnu_ld_interface=no
8599  if test "$with_gnu_ld" = yes; then
8600    case $host_os in
8601      aix*)
8602	# The AIX port of GNU ld has always aspired to compatibility
8603	# with the native linker.  However, as the warning in the GNU ld
8604	# block says, versions before 2.19.5* couldn't really create working
8605	# shared libraries, regardless of the interface used.
8606	case `$LD -v 2>&1` in
8607	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8608	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8609	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8610	  *)
8611	    lt_use_gnu_ld_interface=yes
8612	    ;;
8613	esac
8614	;;
8615      *)
8616	lt_use_gnu_ld_interface=yes
8617	;;
8618    esac
8619  fi
8620
8621  if test "$lt_use_gnu_ld_interface" = yes; then
8622    # If archive_cmds runs LD, not CC, wlarc should be empty
8623    wlarc='${wl}'
8624
8625    # Set some defaults for GNU ld with shared library support. These
8626    # are reset later if shared libraries are not supported. Putting them
8627    # here allows them to be overridden if necessary.
8628    runpath_var=LD_RUN_PATH
8629    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8630    export_dynamic_flag_spec='${wl}--export-dynamic'
8631    # ancient GNU ld didn't support --whole-archive et. al.
8632    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8633      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8634    else
8635      whole_archive_flag_spec=
8636    fi
8637    supports_anon_versioning=no
8638    case `$LD -v 2>&1` in
8639      *GNU\ gold*) supports_anon_versioning=yes ;;
8640      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8641      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8642      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8643      *\ 2.11.*) ;; # other 2.11 versions
8644      *) supports_anon_versioning=yes ;;
8645    esac
8646
8647    # See if GNU ld supports shared libraries.
8648    case $host_os in
8649    aix[3-9]*)
8650      # On AIX/PPC, the GNU linker is very broken
8651      if test "$host_cpu" != ia64; then
8652	ld_shlibs=no
8653	cat <<_LT_EOF 1>&2
8654
8655*** Warning: the GNU linker, at least up to release 2.19, is reported
8656*** to be unable to reliably create shared libraries on AIX.
8657*** Therefore, libtool is disabling shared libraries support.  If you
8658*** really care for shared libraries, you may want to install binutils
8659*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8660*** You will then need to restart the configuration process.
8661
8662_LT_EOF
8663      fi
8664      ;;
8665
8666    amigaos*)
8667      case $host_cpu in
8668      powerpc)
8669            # see comment about AmigaOS4 .so support
8670            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8671            archive_expsym_cmds=''
8672        ;;
8673      m68k)
8674            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)'
8675            hardcode_libdir_flag_spec='-L$libdir'
8676            hardcode_minus_L=yes
8677        ;;
8678      esac
8679      ;;
8680
8681    beos*)
8682      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8683	allow_undefined_flag=unsupported
8684	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8685	# support --undefined.  This deserves some investigation.  FIXME
8686	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8687      else
8688	ld_shlibs=no
8689      fi
8690      ;;
8691
8692    cygwin* | mingw* | pw32* | cegcc*)
8693      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8694      # as there is no search path for DLLs.
8695      hardcode_libdir_flag_spec='-L$libdir'
8696      export_dynamic_flag_spec='${wl}--export-all-symbols'
8697      allow_undefined_flag=unsupported
8698      always_export_symbols=no
8699      enable_shared_with_static_runtimes=yes
8700      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8701
8702      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8703        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8704	# If the export-symbols file already is a .def file (1st line
8705	# is EXPORTS), use it as is; otherwise, prepend...
8706	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8707	  cp $export_symbols $output_objdir/$soname.def;
8708	else
8709	  echo EXPORTS > $output_objdir/$soname.def;
8710	  cat $export_symbols >> $output_objdir/$soname.def;
8711	fi~
8712	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8713      else
8714	ld_shlibs=no
8715      fi
8716      ;;
8717
8718    haiku*)
8719      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8720      link_all_deplibs=yes
8721      ;;
8722
8723    interix[3-9]*)
8724      hardcode_direct=no
8725      hardcode_shlibpath_var=no
8726      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8727      export_dynamic_flag_spec='${wl}-E'
8728      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8729      # Instead, shared libraries are loaded at an image base (0x10000000 by
8730      # default) and relocated if they conflict, which is a slow very memory
8731      # consuming and fragmenting process.  To avoid this, we pick a random,
8732      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8733      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8734      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8735      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'
8736      ;;
8737
8738    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8739      tmp_diet=no
8740      if test "$host_os" = linux-dietlibc; then
8741	case $cc_basename in
8742	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8743	esac
8744      fi
8745      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8746	 && test "$tmp_diet" = no
8747      then
8748	tmp_addflag=
8749	tmp_sharedflag='-shared'
8750	case $cc_basename,$host_cpu in
8751        pgcc*)				# Portland Group C compiler
8752	  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'
8753	  tmp_addflag=' $pic_flag'
8754	  ;;
8755	pgf77* | pgf90* | pgf95* | pgfortran*)
8756					# Portland Group f77 and f90 compilers
8757	  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'
8758	  tmp_addflag=' $pic_flag -Mnomain' ;;
8759	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8760	  tmp_addflag=' -i_dynamic' ;;
8761	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8762	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8763	ifc* | ifort*)			# Intel Fortran compiler
8764	  tmp_addflag=' -nofor_main' ;;
8765	lf95*)				# Lahey Fortran 8.1
8766	  whole_archive_flag_spec=
8767	  tmp_sharedflag='--shared' ;;
8768	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8769	  tmp_sharedflag='-qmkshrobj'
8770	  tmp_addflag= ;;
8771	nvcc*)	# Cuda Compiler Driver 2.2
8772	  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'
8773	  compiler_needs_object=yes
8774	  ;;
8775	esac
8776	case `$CC -V 2>&1 | sed 5q` in
8777	*Sun\ C*)			# Sun C 5.9
8778	  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'
8779	  compiler_needs_object=yes
8780	  tmp_sharedflag='-G' ;;
8781	*Sun\ F*)			# Sun Fortran 8.3
8782	  tmp_sharedflag='-G' ;;
8783	esac
8784	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8785
8786        if test "x$supports_anon_versioning" = xyes; then
8787          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8788	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8789	    echo "local: *; };" >> $output_objdir/$libname.ver~
8790	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8791        fi
8792
8793	case $cc_basename in
8794	xlf* | bgf* | bgxlf* | mpixlf*)
8795	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8796	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8797	  hardcode_libdir_flag_spec=
8798	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8799	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8800	  if test "x$supports_anon_versioning" = xyes; then
8801	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8802	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8803	      echo "local: *; };" >> $output_objdir/$libname.ver~
8804	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8805	  fi
8806	  ;;
8807	esac
8808      else
8809        ld_shlibs=no
8810      fi
8811      ;;
8812
8813    netbsd*)
8814      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8815	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8816	wlarc=
8817      else
8818	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8819	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8820      fi
8821      ;;
8822
8823    solaris*)
8824      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8825	ld_shlibs=no
8826	cat <<_LT_EOF 1>&2
8827
8828*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8829*** create shared libraries on Solaris systems.  Therefore, libtool
8830*** is disabling shared libraries support.  We urge you to upgrade GNU
8831*** binutils to release 2.9.1 or newer.  Another option is to modify
8832*** your PATH or compiler configuration so that the native linker is
8833*** used, and then restart.
8834
8835_LT_EOF
8836      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8837	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8838	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8839      else
8840	ld_shlibs=no
8841      fi
8842      ;;
8843
8844    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8845      case `$LD -v 2>&1` in
8846        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8847	ld_shlibs=no
8848	cat <<_LT_EOF 1>&2
8849
8850*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8851*** reliably create shared libraries on SCO systems.  Therefore, libtool
8852*** is disabling shared libraries support.  We urge you to upgrade GNU
8853*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8854*** your PATH or compiler configuration so that the native linker is
8855*** used, and then restart.
8856
8857_LT_EOF
8858	;;
8859	*)
8860	  # For security reasons, it is highly recommended that you always
8861	  # use absolute paths for naming shared libraries, and exclude the
8862	  # DT_RUNPATH tag from executables and libraries.  But doing so
8863	  # requires that you compile everything twice, which is a pain.
8864	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8865	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8866	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8867	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8868	  else
8869	    ld_shlibs=no
8870	  fi
8871	;;
8872      esac
8873      ;;
8874
8875    sunos4*)
8876      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8877      wlarc=
8878      hardcode_direct=yes
8879      hardcode_shlibpath_var=no
8880      ;;
8881
8882    *)
8883      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8884	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8885	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8886      else
8887	ld_shlibs=no
8888      fi
8889      ;;
8890    esac
8891
8892    if test "$ld_shlibs" = no; then
8893      runpath_var=
8894      hardcode_libdir_flag_spec=
8895      export_dynamic_flag_spec=
8896      whole_archive_flag_spec=
8897    fi
8898  else
8899    # PORTME fill in a description of your system's linker (not GNU ld)
8900    case $host_os in
8901    aix3*)
8902      allow_undefined_flag=unsupported
8903      always_export_symbols=yes
8904      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'
8905      # Note: this linker hardcodes the directories in LIBPATH if there
8906      # are no directories specified by -L.
8907      hardcode_minus_L=yes
8908      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8909	# Neither direct hardcoding nor static linking is supported with a
8910	# broken collect2.
8911	hardcode_direct=unsupported
8912      fi
8913      ;;
8914
8915    aix[4-9]*)
8916      if test "$host_cpu" = ia64; then
8917	# On IA64, the linker does run time linking by default, so we don't
8918	# have to do anything special.
8919	aix_use_runtimelinking=no
8920	exp_sym_flag='-Bexport'
8921	no_entry_flag=""
8922      else
8923	# If we're using GNU nm, then we don't want the "-C" option.
8924	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8925	# Also, AIX nm treats weak defined symbols like other global
8926	# defined symbols, whereas GNU nm marks them as "W".
8927	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8928	  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'
8929	else
8930	  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'
8931	fi
8932	aix_use_runtimelinking=no
8933
8934	# Test if we are trying to use run time linking or normal
8935	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8936	# need to do runtime linking.
8937	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8938	  for ld_flag in $LDFLAGS; do
8939	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8940	    aix_use_runtimelinking=yes
8941	    break
8942	  fi
8943	  done
8944	  ;;
8945	esac
8946
8947	exp_sym_flag='-bexport'
8948	no_entry_flag='-bnoentry'
8949      fi
8950
8951      # When large executables or shared objects are built, AIX ld can
8952      # have problems creating the table of contents.  If linking a library
8953      # or program results in "error TOC overflow" add -mminimal-toc to
8954      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8955      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8956
8957      archive_cmds=''
8958      hardcode_direct=yes
8959      hardcode_direct_absolute=yes
8960      hardcode_libdir_separator=':'
8961      link_all_deplibs=yes
8962      file_list_spec='${wl}-f,'
8963
8964      if test "$GCC" = yes; then
8965	case $host_os in aix4.[012]|aix4.[012].*)
8966	# We only want to do this on AIX 4.2 and lower, the check
8967	# below for broken collect2 doesn't work under 4.3+
8968	  collect2name=`${CC} -print-prog-name=collect2`
8969	  if test -f "$collect2name" &&
8970	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8971	  then
8972	  # We have reworked collect2
8973	  :
8974	  else
8975	  # We have old collect2
8976	  hardcode_direct=unsupported
8977	  # It fails to find uninstalled libraries when the uninstalled
8978	  # path is not listed in the libpath.  Setting hardcode_minus_L
8979	  # to unsupported forces relinking
8980	  hardcode_minus_L=yes
8981	  hardcode_libdir_flag_spec='-L$libdir'
8982	  hardcode_libdir_separator=
8983	  fi
8984	  ;;
8985	esac
8986	shared_flag='-shared'
8987	if test "$aix_use_runtimelinking" = yes; then
8988	  shared_flag="$shared_flag "'${wl}-G'
8989	fi
8990      else
8991	# not using gcc
8992	if test "$host_cpu" = ia64; then
8993	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8994	# chokes on -Wl,-G. The following line is correct:
8995	  shared_flag='-G'
8996	else
8997	  if test "$aix_use_runtimelinking" = yes; then
8998	    shared_flag='${wl}-G'
8999	  else
9000	    shared_flag='${wl}-bM:SRE'
9001	  fi
9002	fi
9003      fi
9004
9005      export_dynamic_flag_spec='${wl}-bexpall'
9006      # It seems that -bexpall does not export symbols beginning with
9007      # underscore (_), so it is better to generate a list of symbols to export.
9008      always_export_symbols=yes
9009      if test "$aix_use_runtimelinking" = yes; then
9010	# Warning - without using the other runtime loading flags (-brtl),
9011	# -berok will link without error, but may produce a broken library.
9012	allow_undefined_flag='-berok'
9013        # Determine the default libpath from the value encoded in an
9014        # empty executable.
9015        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016/* end confdefs.h.  */
9017
9018int
9019main ()
9020{
9021
9022  ;
9023  return 0;
9024}
9025_ACEOF
9026if ac_fn_c_try_link "$LINENO"; then :
9027
9028lt_aix_libpath_sed='
9029    /Import File Strings/,/^$/ {
9030	/^0/ {
9031	    s/^0  *\(.*\)$/\1/
9032	    p
9033	}
9034    }'
9035aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9036# Check for a 64-bit object if we didn't find anything.
9037if test -z "$aix_libpath"; then
9038  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9039fi
9040fi
9041rm -f core conftest.err conftest.$ac_objext \
9042    conftest$ac_exeext conftest.$ac_ext
9043if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9044
9045        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9046        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"
9047      else
9048	if test "$host_cpu" = ia64; then
9049	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9050	  allow_undefined_flag="-z nodefs"
9051	  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"
9052	else
9053	 # Determine the default libpath from the value encoded in an
9054	 # empty executable.
9055	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056/* end confdefs.h.  */
9057
9058int
9059main ()
9060{
9061
9062  ;
9063  return 0;
9064}
9065_ACEOF
9066if ac_fn_c_try_link "$LINENO"; then :
9067
9068lt_aix_libpath_sed='
9069    /Import File Strings/,/^$/ {
9070	/^0/ {
9071	    s/^0  *\(.*\)$/\1/
9072	    p
9073	}
9074    }'
9075aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9076# Check for a 64-bit object if we didn't find anything.
9077if test -z "$aix_libpath"; then
9078  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9079fi
9080fi
9081rm -f core conftest.err conftest.$ac_objext \
9082    conftest$ac_exeext conftest.$ac_ext
9083if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9084
9085	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9086	  # Warning - without using the other run time loading flags,
9087	  # -berok will link without error, but may produce a broken library.
9088	  no_undefined_flag=' ${wl}-bernotok'
9089	  allow_undefined_flag=' ${wl}-berok'
9090	  if test "$with_gnu_ld" = yes; then
9091	    # We only use this code for GNU lds that support --whole-archive.
9092	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9093	  else
9094	    # Exported symbols can be pulled into shared objects from archives
9095	    whole_archive_flag_spec='$convenience'
9096	  fi
9097	  archive_cmds_need_lc=yes
9098	  # This is similar to how AIX traditionally builds its shared libraries.
9099	  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'
9100	fi
9101      fi
9102      ;;
9103
9104    amigaos*)
9105      case $host_cpu in
9106      powerpc)
9107            # see comment about AmigaOS4 .so support
9108            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9109            archive_expsym_cmds=''
9110        ;;
9111      m68k)
9112            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)'
9113            hardcode_libdir_flag_spec='-L$libdir'
9114            hardcode_minus_L=yes
9115        ;;
9116      esac
9117      ;;
9118
9119    bsdi[45]*)
9120      export_dynamic_flag_spec=-rdynamic
9121      ;;
9122
9123    cygwin* | mingw* | pw32* | cegcc*)
9124      # When not using gcc, we currently assume that we are using
9125      # Microsoft Visual C++.
9126      # hardcode_libdir_flag_spec is actually meaningless, as there is
9127      # no search path for DLLs.
9128      hardcode_libdir_flag_spec=' '
9129      allow_undefined_flag=unsupported
9130      # Tell ltmain to make .lib files, not .a files.
9131      libext=lib
9132      # Tell ltmain to make .dll files, not .so files.
9133      shrext_cmds=".dll"
9134      # FIXME: Setting linknames here is a bad hack.
9135      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9136      # The linker will automatically build a .lib file if we build a DLL.
9137      old_archive_from_new_cmds='true'
9138      # FIXME: Should let the user specify the lib program.
9139      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9140      fix_srcfile_path='`cygpath -w "$srcfile"`'
9141      enable_shared_with_static_runtimes=yes
9142      ;;
9143
9144    darwin* | rhapsody*)
9145
9146
9147  archive_cmds_need_lc=no
9148  hardcode_direct=no
9149  hardcode_automatic=yes
9150  hardcode_shlibpath_var=unsupported
9151  if test "$lt_cv_ld_force_load" = "yes"; then
9152    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\"`'
9153  else
9154    whole_archive_flag_spec=''
9155  fi
9156  link_all_deplibs=yes
9157  allow_undefined_flag="$_lt_dar_allow_undefined"
9158  case $cc_basename in
9159     ifort*) _lt_dar_can_shared=yes ;;
9160     *) _lt_dar_can_shared=$GCC ;;
9161  esac
9162  if test "$_lt_dar_can_shared" = "yes"; then
9163    output_verbose_link_cmd=func_echo_all
9164    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9165    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9166    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}"
9167    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}"
9168
9169  else
9170  ld_shlibs=no
9171  fi
9172
9173      ;;
9174
9175    dgux*)
9176      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9177      hardcode_libdir_flag_spec='-L$libdir'
9178      hardcode_shlibpath_var=no
9179      ;;
9180
9181    freebsd1*)
9182      ld_shlibs=no
9183      ;;
9184
9185    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9186    # support.  Future versions do this automatically, but an explicit c++rt0.o
9187    # does not break anything, and helps significantly (at the cost of a little
9188    # extra space).
9189    freebsd2.2*)
9190      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9191      hardcode_libdir_flag_spec='-R$libdir'
9192      hardcode_direct=yes
9193      hardcode_shlibpath_var=no
9194      ;;
9195
9196    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9197    freebsd2*)
9198      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9199      hardcode_direct=yes
9200      hardcode_minus_L=yes
9201      hardcode_shlibpath_var=no
9202      ;;
9203
9204    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9205    freebsd* | dragonfly*)
9206      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9207      hardcode_libdir_flag_spec='-R$libdir'
9208      hardcode_direct=yes
9209      hardcode_shlibpath_var=no
9210      ;;
9211
9212    hpux9*)
9213      if test "$GCC" = yes; then
9214	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'
9215      else
9216	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'
9217      fi
9218      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9219      hardcode_libdir_separator=:
9220      hardcode_direct=yes
9221
9222      # hardcode_minus_L: Not really in the search PATH,
9223      # but as the default location of the library.
9224      hardcode_minus_L=yes
9225      export_dynamic_flag_spec='${wl}-E'
9226      ;;
9227
9228    hpux10*)
9229      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9230	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9231      else
9232	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9233      fi
9234      if test "$with_gnu_ld" = no; then
9235	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9236	hardcode_libdir_flag_spec_ld='+b $libdir'
9237	hardcode_libdir_separator=:
9238	hardcode_direct=yes
9239	hardcode_direct_absolute=yes
9240	export_dynamic_flag_spec='${wl}-E'
9241	# hardcode_minus_L: Not really in the search PATH,
9242	# but as the default location of the library.
9243	hardcode_minus_L=yes
9244      fi
9245      ;;
9246
9247    hpux11*)
9248      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9249	case $host_cpu in
9250	hppa*64*)
9251	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9252	  ;;
9253	ia64*)
9254	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9255	  ;;
9256	*)
9257	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9258	  ;;
9259	esac
9260      else
9261	case $host_cpu in
9262	hppa*64*)
9263	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9264	  ;;
9265	ia64*)
9266	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9267	  ;;
9268	*)
9269
9270	  # Older versions of the 11.00 compiler do not understand -b yet
9271	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9272	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9273$as_echo_n "checking if $CC understands -b... " >&6; }
9274if test "${lt_cv_prog_compiler__b+set}" = set; then :
9275  $as_echo_n "(cached) " >&6
9276else
9277  lt_cv_prog_compiler__b=no
9278   save_LDFLAGS="$LDFLAGS"
9279   LDFLAGS="$LDFLAGS -b"
9280   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9281   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9282     # The linker can only warn and ignore the option if not recognized
9283     # So say no if there are warnings
9284     if test -s conftest.err; then
9285       # Append any errors to the config.log.
9286       cat conftest.err 1>&5
9287       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9288       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9289       if diff conftest.exp conftest.er2 >/dev/null; then
9290         lt_cv_prog_compiler__b=yes
9291       fi
9292     else
9293       lt_cv_prog_compiler__b=yes
9294     fi
9295   fi
9296   $RM -r conftest*
9297   LDFLAGS="$save_LDFLAGS"
9298
9299fi
9300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9301$as_echo "$lt_cv_prog_compiler__b" >&6; }
9302
9303if test x"$lt_cv_prog_compiler__b" = xyes; then
9304    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9305else
9306    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9307fi
9308
9309	  ;;
9310	esac
9311      fi
9312      if test "$with_gnu_ld" = no; then
9313	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9314	hardcode_libdir_separator=:
9315
9316	case $host_cpu in
9317	hppa*64*|ia64*)
9318	  hardcode_direct=no
9319	  hardcode_shlibpath_var=no
9320	  ;;
9321	*)
9322	  hardcode_direct=yes
9323	  hardcode_direct_absolute=yes
9324	  export_dynamic_flag_spec='${wl}-E'
9325
9326	  # hardcode_minus_L: Not really in the search PATH,
9327	  # but as the default location of the library.
9328	  hardcode_minus_L=yes
9329	  ;;
9330	esac
9331      fi
9332      ;;
9333
9334    irix5* | irix6* | nonstopux*)
9335      if test "$GCC" = yes; then
9336	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'
9337	# Try to use the -exported_symbol ld option, if it does not
9338	# work, assume that -exports_file does not work either and
9339	# implicitly export all symbols.
9340        save_LDFLAGS="$LDFLAGS"
9341        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9342        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343/* end confdefs.h.  */
9344int foo(void) {}
9345_ACEOF
9346if ac_fn_c_try_link "$LINENO"; then :
9347  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'
9348
9349fi
9350rm -f core conftest.err conftest.$ac_objext \
9351    conftest$ac_exeext conftest.$ac_ext
9352        LDFLAGS="$save_LDFLAGS"
9353      else
9354	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'
9355	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'
9356      fi
9357      archive_cmds_need_lc='no'
9358      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9359      hardcode_libdir_separator=:
9360      inherit_rpath=yes
9361      link_all_deplibs=yes
9362      ;;
9363
9364    netbsd*)
9365      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9366	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9367      else
9368	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9369      fi
9370      hardcode_libdir_flag_spec='-R$libdir'
9371      hardcode_direct=yes
9372      hardcode_shlibpath_var=no
9373      ;;
9374
9375    newsos6)
9376      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9377      hardcode_direct=yes
9378      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9379      hardcode_libdir_separator=:
9380      hardcode_shlibpath_var=no
9381      ;;
9382
9383    *nto* | *qnx*)
9384      ;;
9385
9386    openbsd*)
9387      if test -f /usr/libexec/ld.so; then
9388	hardcode_direct=yes
9389	hardcode_shlibpath_var=no
9390	hardcode_direct_absolute=yes
9391	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9392	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9393	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9394	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9395	  export_dynamic_flag_spec='${wl}-E'
9396	else
9397	  case $host_os in
9398	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9399	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9400	     hardcode_libdir_flag_spec='-R$libdir'
9401	     ;;
9402	   *)
9403	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9404	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9405	     ;;
9406	  esac
9407	fi
9408      else
9409	ld_shlibs=no
9410      fi
9411      ;;
9412
9413    os2*)
9414      hardcode_libdir_flag_spec='-L$libdir'
9415      hardcode_minus_L=yes
9416      allow_undefined_flag=unsupported
9417      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'
9418      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9419      ;;
9420
9421    osf3*)
9422      if test "$GCC" = yes; then
9423	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9424	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'
9425      else
9426	allow_undefined_flag=' -expect_unresolved \*'
9427	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'
9428      fi
9429      archive_cmds_need_lc='no'
9430      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9431      hardcode_libdir_separator=:
9432      ;;
9433
9434    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9435      if test "$GCC" = yes; then
9436	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9437	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'
9438	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9439      else
9440	allow_undefined_flag=' -expect_unresolved \*'
9441	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'
9442	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~
9443	$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'
9444
9445	# Both c and cxx compiler support -rpath directly
9446	hardcode_libdir_flag_spec='-rpath $libdir'
9447      fi
9448      archive_cmds_need_lc='no'
9449      hardcode_libdir_separator=:
9450      ;;
9451
9452    solaris*)
9453      no_undefined_flag=' -z defs'
9454      if test "$GCC" = yes; then
9455	wlarc='${wl}'
9456	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9457	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9458	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9459      else
9460	case `$CC -V 2>&1` in
9461	*"Compilers 5.0"*)
9462	  wlarc=''
9463	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9464	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9465	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9466	  ;;
9467	*)
9468	  wlarc='${wl}'
9469	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9470	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9471	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9472	  ;;
9473	esac
9474      fi
9475      hardcode_libdir_flag_spec='-R$libdir'
9476      hardcode_shlibpath_var=no
9477      case $host_os in
9478      solaris2.[0-5] | solaris2.[0-5].*) ;;
9479      *)
9480	# The compiler driver will combine and reorder linker options,
9481	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9482	# but is careful enough not to reorder.
9483	# Supported since Solaris 2.6 (maybe 2.5.1?)
9484	if test "$GCC" = yes; then
9485	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9486	else
9487	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9488	fi
9489	;;
9490      esac
9491      link_all_deplibs=yes
9492      ;;
9493
9494    sunos4*)
9495      if test "x$host_vendor" = xsequent; then
9496	# Use $CC to link under sequent, because it throws in some extra .o
9497	# files that make .init and .fini sections work.
9498	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9499      else
9500	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9501      fi
9502      hardcode_libdir_flag_spec='-L$libdir'
9503      hardcode_direct=yes
9504      hardcode_minus_L=yes
9505      hardcode_shlibpath_var=no
9506      ;;
9507
9508    sysv4)
9509      case $host_vendor in
9510	sni)
9511	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9512	  hardcode_direct=yes # is this really true???
9513	;;
9514	siemens)
9515	  ## LD is ld it makes a PLAMLIB
9516	  ## CC just makes a GrossModule.
9517	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9518	  reload_cmds='$CC -r -o $output$reload_objs'
9519	  hardcode_direct=no
9520        ;;
9521	motorola)
9522	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9523	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9524	;;
9525      esac
9526      runpath_var='LD_RUN_PATH'
9527      hardcode_shlibpath_var=no
9528      ;;
9529
9530    sysv4.3*)
9531      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9532      hardcode_shlibpath_var=no
9533      export_dynamic_flag_spec='-Bexport'
9534      ;;
9535
9536    sysv4*MP*)
9537      if test -d /usr/nec; then
9538	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9539	hardcode_shlibpath_var=no
9540	runpath_var=LD_RUN_PATH
9541	hardcode_runpath_var=yes
9542	ld_shlibs=yes
9543      fi
9544      ;;
9545
9546    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9547      no_undefined_flag='${wl}-z,text'
9548      archive_cmds_need_lc=no
9549      hardcode_shlibpath_var=no
9550      runpath_var='LD_RUN_PATH'
9551
9552      if test "$GCC" = yes; then
9553	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9554	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9555      else
9556	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9557	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9558      fi
9559      ;;
9560
9561    sysv5* | sco3.2v5* | sco5v6*)
9562      # Note: We can NOT use -z defs as we might desire, because we do not
9563      # link with -lc, and that would cause any symbols used from libc to
9564      # always be unresolved, which means just about no library would
9565      # ever link correctly.  If we're not using GNU ld we use -z text
9566      # though, which does catch some bad symbols but isn't as heavy-handed
9567      # as -z defs.
9568      no_undefined_flag='${wl}-z,text'
9569      allow_undefined_flag='${wl}-z,nodefs'
9570      archive_cmds_need_lc=no
9571      hardcode_shlibpath_var=no
9572      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9573      hardcode_libdir_separator=':'
9574      link_all_deplibs=yes
9575      export_dynamic_flag_spec='${wl}-Bexport'
9576      runpath_var='LD_RUN_PATH'
9577
9578      if test "$GCC" = yes; then
9579	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9580	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9581      else
9582	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9583	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9584      fi
9585      ;;
9586
9587    uts4*)
9588      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9589      hardcode_libdir_flag_spec='-L$libdir'
9590      hardcode_shlibpath_var=no
9591      ;;
9592
9593    *)
9594      ld_shlibs=no
9595      ;;
9596    esac
9597
9598    if test x$host_vendor = xsni; then
9599      case $host in
9600      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9601	export_dynamic_flag_spec='${wl}-Blargedynsym'
9602	;;
9603      esac
9604    fi
9605  fi
9606
9607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9608$as_echo "$ld_shlibs" >&6; }
9609test "$ld_shlibs" = no && can_build_shared=no
9610
9611with_gnu_ld=$with_gnu_ld
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627#
9628# Do we need to explicitly link libc?
9629#
9630case "x$archive_cmds_need_lc" in
9631x|xyes)
9632  # Assume -lc should be added
9633  archive_cmds_need_lc=yes
9634
9635  if test "$enable_shared" = yes && test "$GCC" = yes; then
9636    case $archive_cmds in
9637    *'~'*)
9638      # FIXME: we may have to deal with multi-command sequences.
9639      ;;
9640    '$CC '*)
9641      # Test whether the compiler implicitly links with -lc since on some
9642      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9643      # to ld, don't add -lc before -lgcc.
9644      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9645$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9646if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9647  $as_echo_n "(cached) " >&6
9648else
9649  $RM conftest*
9650	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9651
9652	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9653  (eval $ac_compile) 2>&5
9654  ac_status=$?
9655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9656  test $ac_status = 0; } 2>conftest.err; then
9657	  soname=conftest
9658	  lib=conftest
9659	  libobjs=conftest.$ac_objext
9660	  deplibs=
9661	  wl=$lt_prog_compiler_wl
9662	  pic_flag=$lt_prog_compiler_pic
9663	  compiler_flags=-v
9664	  linker_flags=-v
9665	  verstring=
9666	  output_objdir=.
9667	  libname=conftest
9668	  lt_save_allow_undefined_flag=$allow_undefined_flag
9669	  allow_undefined_flag=
9670	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9671  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9672  ac_status=$?
9673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9674  test $ac_status = 0; }
9675	  then
9676	    lt_cv_archive_cmds_need_lc=no
9677	  else
9678	    lt_cv_archive_cmds_need_lc=yes
9679	  fi
9680	  allow_undefined_flag=$lt_save_allow_undefined_flag
9681	else
9682	  cat conftest.err 1>&5
9683	fi
9684	$RM conftest*
9685
9686fi
9687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9688$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9689      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9690      ;;
9691    esac
9692  fi
9693  ;;
9694esac
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9853$as_echo_n "checking dynamic linker characteristics... " >&6; }
9854
9855if test "$GCC" = yes; then
9856  case $host_os in
9857    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9858    *) lt_awk_arg="/^libraries:/" ;;
9859  esac
9860  case $host_os in
9861    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9862    *) lt_sed_strip_eq="s,=/,/,g" ;;
9863  esac
9864  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9865  case $lt_search_path_spec in
9866  *\;*)
9867    # if the path contains ";" then we assume it to be the separator
9868    # otherwise default to the standard path separator (i.e. ":") - it is
9869    # assumed that no part of a normal pathname contains ";" but that should
9870    # okay in the real world where ";" in dirpaths is itself problematic.
9871    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9872    ;;
9873  *)
9874    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9875    ;;
9876  esac
9877  # Ok, now we have the path, separated by spaces, we can step through it
9878  # and add multilib dir if necessary.
9879  lt_tmp_lt_search_path_spec=
9880  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9881  for lt_sys_path in $lt_search_path_spec; do
9882    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9883      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9884    else
9885      test -d "$lt_sys_path" && \
9886	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9887    fi
9888  done
9889  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9890BEGIN {RS=" "; FS="/|\n";} {
9891  lt_foo="";
9892  lt_count=0;
9893  for (lt_i = NF; lt_i > 0; lt_i--) {
9894    if ($lt_i != "" && $lt_i != ".") {
9895      if ($lt_i == "..") {
9896        lt_count++;
9897      } else {
9898        if (lt_count == 0) {
9899          lt_foo="/" $lt_i lt_foo;
9900        } else {
9901          lt_count--;
9902        }
9903      }
9904    }
9905  }
9906  if (lt_foo != "") { lt_freq[lt_foo]++; }
9907  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9908}'`
9909  # AWK program above erroneously prepends '/' to C:/dos/paths
9910  # for these hosts.
9911  case $host_os in
9912    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9913      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9914  esac
9915  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9916else
9917  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9918fi
9919library_names_spec=
9920libname_spec='lib$name'
9921soname_spec=
9922shrext_cmds=".so"
9923postinstall_cmds=
9924postuninstall_cmds=
9925finish_cmds=
9926finish_eval=
9927shlibpath_var=
9928shlibpath_overrides_runpath=unknown
9929version_type=none
9930dynamic_linker="$host_os ld.so"
9931sys_lib_dlsearch_path_spec="/lib /usr/lib"
9932need_lib_prefix=unknown
9933hardcode_into_libs=no
9934
9935# when you set need_version to no, make sure it does not cause -set_version
9936# flags to be left without arguments
9937need_version=unknown
9938
9939case $host_os in
9940aix3*)
9941  version_type=linux
9942  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9943  shlibpath_var=LIBPATH
9944
9945  # AIX 3 has no versioning support, so we append a major version to the name.
9946  soname_spec='${libname}${release}${shared_ext}$major'
9947  ;;
9948
9949aix[4-9]*)
9950  version_type=linux
9951  need_lib_prefix=no
9952  need_version=no
9953  hardcode_into_libs=yes
9954  if test "$host_cpu" = ia64; then
9955    # AIX 5 supports IA64
9956    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9957    shlibpath_var=LD_LIBRARY_PATH
9958  else
9959    # With GCC up to 2.95.x, collect2 would create an import file
9960    # for dependence libraries.  The import file would start with
9961    # the line `#! .'.  This would cause the generated library to
9962    # depend on `.', always an invalid library.  This was fixed in
9963    # development snapshots of GCC prior to 3.0.
9964    case $host_os in
9965      aix4 | aix4.[01] | aix4.[01].*)
9966      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9967	   echo ' yes '
9968	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9969	:
9970      else
9971	can_build_shared=no
9972      fi
9973      ;;
9974    esac
9975    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9976    # soname into executable. Probably we can add versioning support to
9977    # collect2, so additional links can be useful in future.
9978    if test "$aix_use_runtimelinking" = yes; then
9979      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9980      # instead of lib<name>.a to let people know that these are not
9981      # typical AIX shared libraries.
9982      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983    else
9984      # We preserve .a as extension for shared libraries through AIX4.2
9985      # and later when we are not doing run time linking.
9986      library_names_spec='${libname}${release}.a $libname.a'
9987      soname_spec='${libname}${release}${shared_ext}$major'
9988    fi
9989    shlibpath_var=LIBPATH
9990  fi
9991  ;;
9992
9993amigaos*)
9994  case $host_cpu in
9995  powerpc)
9996    # Since July 2007 AmigaOS4 officially supports .so libraries.
9997    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9998    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999    ;;
10000  m68k)
10001    library_names_spec='$libname.ixlibrary $libname.a'
10002    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10003    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'
10004    ;;
10005  esac
10006  ;;
10007
10008beos*)
10009  library_names_spec='${libname}${shared_ext}'
10010  dynamic_linker="$host_os ld.so"
10011  shlibpath_var=LIBRARY_PATH
10012  ;;
10013
10014bsdi[45]*)
10015  version_type=linux
10016  need_version=no
10017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018  soname_spec='${libname}${release}${shared_ext}$major'
10019  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10020  shlibpath_var=LD_LIBRARY_PATH
10021  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10022  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10023  # the default ld.so.conf also contains /usr/contrib/lib and
10024  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10025  # libtool to hard-code these into programs
10026  ;;
10027
10028cygwin* | mingw* | pw32* | cegcc*)
10029  version_type=windows
10030  shrext_cmds=".dll"
10031  need_version=no
10032  need_lib_prefix=no
10033
10034  case $GCC,$host_os in
10035  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10036    library_names_spec='$libname.dll.a'
10037    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10038    postinstall_cmds='base_file=`basename \${file}`~
10039      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10040      dldir=$destdir/`dirname \$dlpath`~
10041      test -d \$dldir || mkdir -p \$dldir~
10042      $install_prog $dir/$dlname \$dldir/$dlname~
10043      chmod a+x \$dldir/$dlname~
10044      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10045        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10046      fi'
10047    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10048      dlpath=$dir/\$dldll~
10049       $RM \$dlpath'
10050    shlibpath_overrides_runpath=yes
10051
10052    case $host_os in
10053    cygwin*)
10054      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10055      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10056
10057      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10058      ;;
10059    mingw* | cegcc*)
10060      # MinGW DLLs use traditional 'lib' prefix
10061      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10062      ;;
10063    pw32*)
10064      # pw32 DLLs use 'pw' prefix rather than 'lib'
10065      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10066      ;;
10067    esac
10068    ;;
10069
10070  *)
10071    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10072    ;;
10073  esac
10074  dynamic_linker='Win32 ld.exe'
10075  # FIXME: first we should search . and the directory the executable is in
10076  shlibpath_var=PATH
10077  ;;
10078
10079darwin* | rhapsody*)
10080  dynamic_linker="$host_os dyld"
10081  version_type=darwin
10082  need_lib_prefix=no
10083  need_version=no
10084  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10085  soname_spec='${libname}${release}${major}$shared_ext'
10086  shlibpath_overrides_runpath=yes
10087  shlibpath_var=DYLD_LIBRARY_PATH
10088  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10089
10090  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10091  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10092  ;;
10093
10094dgux*)
10095  version_type=linux
10096  need_lib_prefix=no
10097  need_version=no
10098  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10099  soname_spec='${libname}${release}${shared_ext}$major'
10100  shlibpath_var=LD_LIBRARY_PATH
10101  ;;
10102
10103freebsd1*)
10104  dynamic_linker=no
10105  ;;
10106
10107freebsd* | dragonfly*)
10108  # DragonFly does not have aout.  When/if they implement a new
10109  # versioning mechanism, adjust this.
10110  if test -x /usr/bin/objformat; then
10111    objformat=`/usr/bin/objformat`
10112  else
10113    case $host_os in
10114    freebsd[123]*) objformat=aout ;;
10115    *) objformat=elf ;;
10116    esac
10117  fi
10118  version_type=freebsd-$objformat
10119  case $version_type in
10120    freebsd-elf*)
10121      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10122      need_version=no
10123      need_lib_prefix=no
10124      ;;
10125    freebsd-*)
10126      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10127      need_version=yes
10128      ;;
10129  esac
10130  shlibpath_var=LD_LIBRARY_PATH
10131  case $host_os in
10132  freebsd2*)
10133    shlibpath_overrides_runpath=yes
10134    ;;
10135  freebsd3.[01]* | freebsdelf3.[01]*)
10136    shlibpath_overrides_runpath=yes
10137    hardcode_into_libs=yes
10138    ;;
10139  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10140  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10141    shlibpath_overrides_runpath=no
10142    hardcode_into_libs=yes
10143    ;;
10144  *) # from 4.6 on, and DragonFly
10145    shlibpath_overrides_runpath=yes
10146    hardcode_into_libs=yes
10147    ;;
10148  esac
10149  ;;
10150
10151gnu*)
10152  version_type=linux
10153  need_lib_prefix=no
10154  need_version=no
10155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10156  soname_spec='${libname}${release}${shared_ext}$major'
10157  shlibpath_var=LD_LIBRARY_PATH
10158  hardcode_into_libs=yes
10159  ;;
10160
10161haiku*)
10162  version_type=linux
10163  need_lib_prefix=no
10164  need_version=no
10165  dynamic_linker="$host_os runtime_loader"
10166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10167  soname_spec='${libname}${release}${shared_ext}$major'
10168  shlibpath_var=LIBRARY_PATH
10169  shlibpath_overrides_runpath=yes
10170  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10171  hardcode_into_libs=yes
10172  ;;
10173
10174hpux9* | hpux10* | hpux11*)
10175  # Give a soname corresponding to the major version so that dld.sl refuses to
10176  # link against other versions.
10177  version_type=sunos
10178  need_lib_prefix=no
10179  need_version=no
10180  case $host_cpu in
10181  ia64*)
10182    shrext_cmds='.so'
10183    hardcode_into_libs=yes
10184    dynamic_linker="$host_os dld.so"
10185    shlibpath_var=LD_LIBRARY_PATH
10186    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10187    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188    soname_spec='${libname}${release}${shared_ext}$major'
10189    if test "X$HPUX_IA64_MODE" = X32; then
10190      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10191    else
10192      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10193    fi
10194    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10195    ;;
10196  hppa*64*)
10197    shrext_cmds='.sl'
10198    hardcode_into_libs=yes
10199    dynamic_linker="$host_os dld.sl"
10200    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10201    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10202    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203    soname_spec='${libname}${release}${shared_ext}$major'
10204    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10205    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10206    ;;
10207  *)
10208    shrext_cmds='.sl'
10209    dynamic_linker="$host_os dld.sl"
10210    shlibpath_var=SHLIB_PATH
10211    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10212    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10213    soname_spec='${libname}${release}${shared_ext}$major'
10214    ;;
10215  esac
10216  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10217  postinstall_cmds='chmod 555 $lib'
10218  # or fails outright, so override atomically:
10219  install_override_mode=555
10220  ;;
10221
10222interix[3-9]*)
10223  version_type=linux
10224  need_lib_prefix=no
10225  need_version=no
10226  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10227  soname_spec='${libname}${release}${shared_ext}$major'
10228  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10229  shlibpath_var=LD_LIBRARY_PATH
10230  shlibpath_overrides_runpath=no
10231  hardcode_into_libs=yes
10232  ;;
10233
10234irix5* | irix6* | nonstopux*)
10235  case $host_os in
10236    nonstopux*) version_type=nonstopux ;;
10237    *)
10238	if test "$lt_cv_prog_gnu_ld" = yes; then
10239		version_type=linux
10240	else
10241		version_type=irix
10242	fi ;;
10243  esac
10244  need_lib_prefix=no
10245  need_version=no
10246  soname_spec='${libname}${release}${shared_ext}$major'
10247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10248  case $host_os in
10249  irix5* | nonstopux*)
10250    libsuff= shlibsuff=
10251    ;;
10252  *)
10253    case $LD in # libtool.m4 will add one of these switches to LD
10254    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10255      libsuff= shlibsuff= libmagic=32-bit;;
10256    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10257      libsuff=32 shlibsuff=N32 libmagic=N32;;
10258    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10259      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10260    *) libsuff= shlibsuff= libmagic=never-match;;
10261    esac
10262    ;;
10263  esac
10264  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10265  shlibpath_overrides_runpath=no
10266  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10267  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10268  hardcode_into_libs=yes
10269  ;;
10270
10271# No shared lib support for Linux oldld, aout, or coff.
10272linux*oldld* | linux*aout* | linux*coff*)
10273  dynamic_linker=no
10274  ;;
10275
10276# This must be Linux ELF.
10277linux* | k*bsd*-gnu | kopensolaris*-gnu)
10278  version_type=linux
10279  need_lib_prefix=no
10280  need_version=no
10281  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10282  soname_spec='${libname}${release}${shared_ext}$major'
10283  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10284  shlibpath_var=LD_LIBRARY_PATH
10285  shlibpath_overrides_runpath=no
10286
10287  # Some binutils ld are patched to set DT_RUNPATH
10288  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10289  $as_echo_n "(cached) " >&6
10290else
10291  lt_cv_shlibpath_overrides_runpath=no
10292    save_LDFLAGS=$LDFLAGS
10293    save_libdir=$libdir
10294    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10295	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10296    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297/* end confdefs.h.  */
10298
10299int
10300main ()
10301{
10302
10303  ;
10304  return 0;
10305}
10306_ACEOF
10307if ac_fn_c_try_link "$LINENO"; then :
10308  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10309  lt_cv_shlibpath_overrides_runpath=yes
10310fi
10311fi
10312rm -f core conftest.err conftest.$ac_objext \
10313    conftest$ac_exeext conftest.$ac_ext
10314    LDFLAGS=$save_LDFLAGS
10315    libdir=$save_libdir
10316
10317fi
10318
10319  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10320
10321  # This implies no fast_install, which is unacceptable.
10322  # Some rework will be needed to allow for fast_install
10323  # before this can be enabled.
10324  hardcode_into_libs=yes
10325
10326  # Add ABI-specific directories to the system library path.
10327  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10328
10329  # Append ld.so.conf contents to the search path
10330  if test -f /etc/ld.so.conf; then
10331    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' ' '`
10332    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10333
10334  fi
10335
10336  # We used to test for /lib/ld.so.1 and disable shared libraries on
10337  # powerpc, because MkLinux only supported shared libraries with the
10338  # GNU dynamic linker.  Since this was broken with cross compilers,
10339  # most powerpc-linux boxes support dynamic linking these days and
10340  # people can always --disable-shared, the test was removed, and we
10341  # assume the GNU/Linux dynamic linker is in use.
10342  dynamic_linker='GNU/Linux ld.so'
10343  ;;
10344
10345netbsd*)
10346  version_type=sunos
10347  need_lib_prefix=no
10348  need_version=no
10349  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10350    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10351    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10352    dynamic_linker='NetBSD (a.out) ld.so'
10353  else
10354    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10355    soname_spec='${libname}${release}${shared_ext}$major'
10356    dynamic_linker='NetBSD ld.elf_so'
10357  fi
10358  shlibpath_var=LD_LIBRARY_PATH
10359  shlibpath_overrides_runpath=yes
10360  hardcode_into_libs=yes
10361  ;;
10362
10363newsos6)
10364  version_type=linux
10365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366  shlibpath_var=LD_LIBRARY_PATH
10367  shlibpath_overrides_runpath=yes
10368  ;;
10369
10370*nto* | *qnx*)
10371  version_type=qnx
10372  need_lib_prefix=no
10373  need_version=no
10374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10375  soname_spec='${libname}${release}${shared_ext}$major'
10376  shlibpath_var=LD_LIBRARY_PATH
10377  shlibpath_overrides_runpath=no
10378  hardcode_into_libs=yes
10379  dynamic_linker='ldqnx.so'
10380  ;;
10381
10382openbsd*)
10383  version_type=sunos
10384  sys_lib_dlsearch_path_spec="/usr/lib"
10385  need_lib_prefix=no
10386  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10387  case $host_os in
10388    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10389    *)				need_version=no  ;;
10390  esac
10391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10392  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10393  shlibpath_var=LD_LIBRARY_PATH
10394  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10395    case $host_os in
10396      openbsd2.[89] | openbsd2.[89].*)
10397	shlibpath_overrides_runpath=no
10398	;;
10399      *)
10400	shlibpath_overrides_runpath=yes
10401	;;
10402      esac
10403  else
10404    shlibpath_overrides_runpath=yes
10405  fi
10406  ;;
10407
10408os2*)
10409  libname_spec='$name'
10410  shrext_cmds=".dll"
10411  need_lib_prefix=no
10412  library_names_spec='$libname${shared_ext} $libname.a'
10413  dynamic_linker='OS/2 ld.exe'
10414  shlibpath_var=LIBPATH
10415  ;;
10416
10417osf3* | osf4* | osf5*)
10418  version_type=osf
10419  need_lib_prefix=no
10420  need_version=no
10421  soname_spec='${libname}${release}${shared_ext}$major'
10422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423  shlibpath_var=LD_LIBRARY_PATH
10424  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10425  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10426  ;;
10427
10428rdos*)
10429  dynamic_linker=no
10430  ;;
10431
10432solaris*)
10433  version_type=linux
10434  need_lib_prefix=no
10435  need_version=no
10436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437  soname_spec='${libname}${release}${shared_ext}$major'
10438  shlibpath_var=LD_LIBRARY_PATH
10439  shlibpath_overrides_runpath=yes
10440  hardcode_into_libs=yes
10441  # ldd complains unless libraries are executable
10442  postinstall_cmds='chmod +x $lib'
10443  ;;
10444
10445sunos4*)
10446  version_type=sunos
10447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10448  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10449  shlibpath_var=LD_LIBRARY_PATH
10450  shlibpath_overrides_runpath=yes
10451  if test "$with_gnu_ld" = yes; then
10452    need_lib_prefix=no
10453  fi
10454  need_version=yes
10455  ;;
10456
10457sysv4 | sysv4.3*)
10458  version_type=linux
10459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10460  soname_spec='${libname}${release}${shared_ext}$major'
10461  shlibpath_var=LD_LIBRARY_PATH
10462  case $host_vendor in
10463    sni)
10464      shlibpath_overrides_runpath=no
10465      need_lib_prefix=no
10466      runpath_var=LD_RUN_PATH
10467      ;;
10468    siemens)
10469      need_lib_prefix=no
10470      ;;
10471    motorola)
10472      need_lib_prefix=no
10473      need_version=no
10474      shlibpath_overrides_runpath=no
10475      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10476      ;;
10477  esac
10478  ;;
10479
10480sysv4*MP*)
10481  if test -d /usr/nec ;then
10482    version_type=linux
10483    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10484    soname_spec='$libname${shared_ext}.$major'
10485    shlibpath_var=LD_LIBRARY_PATH
10486  fi
10487  ;;
10488
10489sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10490  version_type=freebsd-elf
10491  need_lib_prefix=no
10492  need_version=no
10493  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10494  soname_spec='${libname}${release}${shared_ext}$major'
10495  shlibpath_var=LD_LIBRARY_PATH
10496  shlibpath_overrides_runpath=yes
10497  hardcode_into_libs=yes
10498  if test "$with_gnu_ld" = yes; then
10499    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10500  else
10501    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10502    case $host_os in
10503      sco3.2v5*)
10504        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10505	;;
10506    esac
10507  fi
10508  sys_lib_dlsearch_path_spec='/usr/lib'
10509  ;;
10510
10511tpf*)
10512  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10513  version_type=linux
10514  need_lib_prefix=no
10515  need_version=no
10516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10517  shlibpath_var=LD_LIBRARY_PATH
10518  shlibpath_overrides_runpath=no
10519  hardcode_into_libs=yes
10520  ;;
10521
10522uts4*)
10523  version_type=linux
10524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10525  soname_spec='${libname}${release}${shared_ext}$major'
10526  shlibpath_var=LD_LIBRARY_PATH
10527  ;;
10528
10529*)
10530  dynamic_linker=no
10531  ;;
10532esac
10533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10534$as_echo "$dynamic_linker" >&6; }
10535test "$dynamic_linker" = no && can_build_shared=no
10536
10537variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10538if test "$GCC" = yes; then
10539  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10540fi
10541
10542if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10543  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10544fi
10545if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10546  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10547fi
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10641$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10642hardcode_action=
10643if test -n "$hardcode_libdir_flag_spec" ||
10644   test -n "$runpath_var" ||
10645   test "X$hardcode_automatic" = "Xyes" ; then
10646
10647  # We can hardcode non-existent directories.
10648  if test "$hardcode_direct" != no &&
10649     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10650     # have to relink, otherwise we might link with an installed library
10651     # when we should be linking with a yet-to-be-installed one
10652     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10653     test "$hardcode_minus_L" != no; then
10654    # Linking always hardcodes the temporary library directory.
10655    hardcode_action=relink
10656  else
10657    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10658    hardcode_action=immediate
10659  fi
10660else
10661  # We cannot hardcode anything, or else we can only hardcode existing
10662  # directories.
10663  hardcode_action=unsupported
10664fi
10665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10666$as_echo "$hardcode_action" >&6; }
10667
10668if test "$hardcode_action" = relink ||
10669   test "$inherit_rpath" = yes; then
10670  # Fast installation is not supported
10671  enable_fast_install=no
10672elif test "$shlibpath_overrides_runpath" = yes ||
10673     test "$enable_shared" = no; then
10674  # Fast installation is not necessary
10675  enable_fast_install=needless
10676fi
10677
10678
10679
10680
10681
10682
10683  if test "x$enable_dlopen" != xyes; then
10684  enable_dlopen=unknown
10685  enable_dlopen_self=unknown
10686  enable_dlopen_self_static=unknown
10687else
10688  lt_cv_dlopen=no
10689  lt_cv_dlopen_libs=
10690
10691  case $host_os in
10692  beos*)
10693    lt_cv_dlopen="load_add_on"
10694    lt_cv_dlopen_libs=
10695    lt_cv_dlopen_self=yes
10696    ;;
10697
10698  mingw* | pw32* | cegcc*)
10699    lt_cv_dlopen="LoadLibrary"
10700    lt_cv_dlopen_libs=
10701    ;;
10702
10703  cygwin*)
10704    lt_cv_dlopen="dlopen"
10705    lt_cv_dlopen_libs=
10706    ;;
10707
10708  darwin*)
10709  # if libdl is installed we need to link against it
10710    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10711$as_echo_n "checking for dlopen in -ldl... " >&6; }
10712if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10713  $as_echo_n "(cached) " >&6
10714else
10715  ac_check_lib_save_LIBS=$LIBS
10716LIBS="-ldl  $LIBS"
10717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718/* end confdefs.h.  */
10719
10720/* Override any GCC internal prototype to avoid an error.
10721   Use char because int might match the return type of a GCC
10722   builtin and then its argument prototype would still apply.  */
10723#ifdef __cplusplus
10724extern "C"
10725#endif
10726char dlopen ();
10727int
10728main ()
10729{
10730return dlopen ();
10731  ;
10732  return 0;
10733}
10734_ACEOF
10735if ac_fn_c_try_link "$LINENO"; then :
10736  ac_cv_lib_dl_dlopen=yes
10737else
10738  ac_cv_lib_dl_dlopen=no
10739fi
10740rm -f core conftest.err conftest.$ac_objext \
10741    conftest$ac_exeext conftest.$ac_ext
10742LIBS=$ac_check_lib_save_LIBS
10743fi
10744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10745$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10746if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10747  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10748else
10749
10750    lt_cv_dlopen="dyld"
10751    lt_cv_dlopen_libs=
10752    lt_cv_dlopen_self=yes
10753
10754fi
10755
10756    ;;
10757
10758  *)
10759    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10760if test "x$ac_cv_func_shl_load" = x""yes; then :
10761  lt_cv_dlopen="shl_load"
10762else
10763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10764$as_echo_n "checking for shl_load in -ldld... " >&6; }
10765if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10766  $as_echo_n "(cached) " >&6
10767else
10768  ac_check_lib_save_LIBS=$LIBS
10769LIBS="-ldld  $LIBS"
10770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771/* end confdefs.h.  */
10772
10773/* Override any GCC internal prototype to avoid an error.
10774   Use char because int might match the return type of a GCC
10775   builtin and then its argument prototype would still apply.  */
10776#ifdef __cplusplus
10777extern "C"
10778#endif
10779char shl_load ();
10780int
10781main ()
10782{
10783return shl_load ();
10784  ;
10785  return 0;
10786}
10787_ACEOF
10788if ac_fn_c_try_link "$LINENO"; then :
10789  ac_cv_lib_dld_shl_load=yes
10790else
10791  ac_cv_lib_dld_shl_load=no
10792fi
10793rm -f core conftest.err conftest.$ac_objext \
10794    conftest$ac_exeext conftest.$ac_ext
10795LIBS=$ac_check_lib_save_LIBS
10796fi
10797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10798$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10799if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10800  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10801else
10802  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10803if test "x$ac_cv_func_dlopen" = x""yes; then :
10804  lt_cv_dlopen="dlopen"
10805else
10806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10807$as_echo_n "checking for dlopen in -ldl... " >&6; }
10808if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10809  $as_echo_n "(cached) " >&6
10810else
10811  ac_check_lib_save_LIBS=$LIBS
10812LIBS="-ldl  $LIBS"
10813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814/* end confdefs.h.  */
10815
10816/* Override any GCC internal prototype to avoid an error.
10817   Use char because int might match the return type of a GCC
10818   builtin and then its argument prototype would still apply.  */
10819#ifdef __cplusplus
10820extern "C"
10821#endif
10822char dlopen ();
10823int
10824main ()
10825{
10826return dlopen ();
10827  ;
10828  return 0;
10829}
10830_ACEOF
10831if ac_fn_c_try_link "$LINENO"; then :
10832  ac_cv_lib_dl_dlopen=yes
10833else
10834  ac_cv_lib_dl_dlopen=no
10835fi
10836rm -f core conftest.err conftest.$ac_objext \
10837    conftest$ac_exeext conftest.$ac_ext
10838LIBS=$ac_check_lib_save_LIBS
10839fi
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10841$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10842if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10843  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10844else
10845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10846$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10847if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10848  $as_echo_n "(cached) " >&6
10849else
10850  ac_check_lib_save_LIBS=$LIBS
10851LIBS="-lsvld  $LIBS"
10852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853/* end confdefs.h.  */
10854
10855/* Override any GCC internal prototype to avoid an error.
10856   Use char because int might match the return type of a GCC
10857   builtin and then its argument prototype would still apply.  */
10858#ifdef __cplusplus
10859extern "C"
10860#endif
10861char dlopen ();
10862int
10863main ()
10864{
10865return dlopen ();
10866  ;
10867  return 0;
10868}
10869_ACEOF
10870if ac_fn_c_try_link "$LINENO"; then :
10871  ac_cv_lib_svld_dlopen=yes
10872else
10873  ac_cv_lib_svld_dlopen=no
10874fi
10875rm -f core conftest.err conftest.$ac_objext \
10876    conftest$ac_exeext conftest.$ac_ext
10877LIBS=$ac_check_lib_save_LIBS
10878fi
10879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10880$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10881if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10882  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10883else
10884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10885$as_echo_n "checking for dld_link in -ldld... " >&6; }
10886if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10887  $as_echo_n "(cached) " >&6
10888else
10889  ac_check_lib_save_LIBS=$LIBS
10890LIBS="-ldld  $LIBS"
10891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892/* end confdefs.h.  */
10893
10894/* Override any GCC internal prototype to avoid an error.
10895   Use char because int might match the return type of a GCC
10896   builtin and then its argument prototype would still apply.  */
10897#ifdef __cplusplus
10898extern "C"
10899#endif
10900char dld_link ();
10901int
10902main ()
10903{
10904return dld_link ();
10905  ;
10906  return 0;
10907}
10908_ACEOF
10909if ac_fn_c_try_link "$LINENO"; then :
10910  ac_cv_lib_dld_dld_link=yes
10911else
10912  ac_cv_lib_dld_dld_link=no
10913fi
10914rm -f core conftest.err conftest.$ac_objext \
10915    conftest$ac_exeext conftest.$ac_ext
10916LIBS=$ac_check_lib_save_LIBS
10917fi
10918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10919$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10920if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10921  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10922fi
10923
10924
10925fi
10926
10927
10928fi
10929
10930
10931fi
10932
10933
10934fi
10935
10936
10937fi
10938
10939    ;;
10940  esac
10941
10942  if test "x$lt_cv_dlopen" != xno; then
10943    enable_dlopen=yes
10944  else
10945    enable_dlopen=no
10946  fi
10947
10948  case $lt_cv_dlopen in
10949  dlopen)
10950    save_CPPFLAGS="$CPPFLAGS"
10951    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10952
10953    save_LDFLAGS="$LDFLAGS"
10954    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10955
10956    save_LIBS="$LIBS"
10957    LIBS="$lt_cv_dlopen_libs $LIBS"
10958
10959    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10960$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10961if test "${lt_cv_dlopen_self+set}" = set; then :
10962  $as_echo_n "(cached) " >&6
10963else
10964  	  if test "$cross_compiling" = yes; then :
10965  lt_cv_dlopen_self=cross
10966else
10967  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10968  lt_status=$lt_dlunknown
10969  cat > conftest.$ac_ext <<_LT_EOF
10970#line $LINENO "configure"
10971#include "confdefs.h"
10972
10973#if HAVE_DLFCN_H
10974#include <dlfcn.h>
10975#endif
10976
10977#include <stdio.h>
10978
10979#ifdef RTLD_GLOBAL
10980#  define LT_DLGLOBAL		RTLD_GLOBAL
10981#else
10982#  ifdef DL_GLOBAL
10983#    define LT_DLGLOBAL		DL_GLOBAL
10984#  else
10985#    define LT_DLGLOBAL		0
10986#  endif
10987#endif
10988
10989/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10990   find out it does not work in some platform. */
10991#ifndef LT_DLLAZY_OR_NOW
10992#  ifdef RTLD_LAZY
10993#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10994#  else
10995#    ifdef DL_LAZY
10996#      define LT_DLLAZY_OR_NOW		DL_LAZY
10997#    else
10998#      ifdef RTLD_NOW
10999#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11000#      else
11001#        ifdef DL_NOW
11002#          define LT_DLLAZY_OR_NOW	DL_NOW
11003#        else
11004#          define LT_DLLAZY_OR_NOW	0
11005#        endif
11006#      endif
11007#    endif
11008#  endif
11009#endif
11010
11011/* When -fvisbility=hidden is used, assume the code has been annotated
11012   correspondingly for the symbols needed.  */
11013#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11014void fnord () __attribute__((visibility("default")));
11015#endif
11016
11017void fnord () { int i=42; }
11018int main ()
11019{
11020  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11021  int status = $lt_dlunknown;
11022
11023  if (self)
11024    {
11025      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11026      else
11027        {
11028	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11029          else puts (dlerror ());
11030	}
11031      /* dlclose (self); */
11032    }
11033  else
11034    puts (dlerror ());
11035
11036  return status;
11037}
11038_LT_EOF
11039  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11040  (eval $ac_link) 2>&5
11041  ac_status=$?
11042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11043  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11044    (./conftest; exit; ) >&5 2>/dev/null
11045    lt_status=$?
11046    case x$lt_status in
11047      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11048      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11049      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11050    esac
11051  else :
11052    # compilation failed
11053    lt_cv_dlopen_self=no
11054  fi
11055fi
11056rm -fr conftest*
11057
11058
11059fi
11060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11061$as_echo "$lt_cv_dlopen_self" >&6; }
11062
11063    if test "x$lt_cv_dlopen_self" = xyes; then
11064      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11065      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11066$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11067if test "${lt_cv_dlopen_self_static+set}" = set; then :
11068  $as_echo_n "(cached) " >&6
11069else
11070  	  if test "$cross_compiling" = yes; then :
11071  lt_cv_dlopen_self_static=cross
11072else
11073  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11074  lt_status=$lt_dlunknown
11075  cat > conftest.$ac_ext <<_LT_EOF
11076#line $LINENO "configure"
11077#include "confdefs.h"
11078
11079#if HAVE_DLFCN_H
11080#include <dlfcn.h>
11081#endif
11082
11083#include <stdio.h>
11084
11085#ifdef RTLD_GLOBAL
11086#  define LT_DLGLOBAL		RTLD_GLOBAL
11087#else
11088#  ifdef DL_GLOBAL
11089#    define LT_DLGLOBAL		DL_GLOBAL
11090#  else
11091#    define LT_DLGLOBAL		0
11092#  endif
11093#endif
11094
11095/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11096   find out it does not work in some platform. */
11097#ifndef LT_DLLAZY_OR_NOW
11098#  ifdef RTLD_LAZY
11099#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11100#  else
11101#    ifdef DL_LAZY
11102#      define LT_DLLAZY_OR_NOW		DL_LAZY
11103#    else
11104#      ifdef RTLD_NOW
11105#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11106#      else
11107#        ifdef DL_NOW
11108#          define LT_DLLAZY_OR_NOW	DL_NOW
11109#        else
11110#          define LT_DLLAZY_OR_NOW	0
11111#        endif
11112#      endif
11113#    endif
11114#  endif
11115#endif
11116
11117/* When -fvisbility=hidden is used, assume the code has been annotated
11118   correspondingly for the symbols needed.  */
11119#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11120void fnord () __attribute__((visibility("default")));
11121#endif
11122
11123void fnord () { int i=42; }
11124int main ()
11125{
11126  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11127  int status = $lt_dlunknown;
11128
11129  if (self)
11130    {
11131      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11132      else
11133        {
11134	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11135          else puts (dlerror ());
11136	}
11137      /* dlclose (self); */
11138    }
11139  else
11140    puts (dlerror ());
11141
11142  return status;
11143}
11144_LT_EOF
11145  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11146  (eval $ac_link) 2>&5
11147  ac_status=$?
11148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11149  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11150    (./conftest; exit; ) >&5 2>/dev/null
11151    lt_status=$?
11152    case x$lt_status in
11153      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11154      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11155      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11156    esac
11157  else :
11158    # compilation failed
11159    lt_cv_dlopen_self_static=no
11160  fi
11161fi
11162rm -fr conftest*
11163
11164
11165fi
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11167$as_echo "$lt_cv_dlopen_self_static" >&6; }
11168    fi
11169
11170    CPPFLAGS="$save_CPPFLAGS"
11171    LDFLAGS="$save_LDFLAGS"
11172    LIBS="$save_LIBS"
11173    ;;
11174  esac
11175
11176  case $lt_cv_dlopen_self in
11177  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11178  *) enable_dlopen_self=unknown ;;
11179  esac
11180
11181  case $lt_cv_dlopen_self_static in
11182  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11183  *) enable_dlopen_self_static=unknown ;;
11184  esac
11185fi
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203striplib=
11204old_striplib=
11205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11206$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11207if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11208  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11209  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11211$as_echo "yes" >&6; }
11212else
11213# FIXME - insert some real tests, host_os isn't really good enough
11214  case $host_os in
11215  darwin*)
11216    if test -n "$STRIP" ; then
11217      striplib="$STRIP -x"
11218      old_striplib="$STRIP -S"
11219      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11220$as_echo "yes" >&6; }
11221    else
11222      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223$as_echo "no" >&6; }
11224    fi
11225    ;;
11226  *)
11227    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228$as_echo "no" >&6; }
11229    ;;
11230  esac
11231fi
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244  # Report which library types will actually be built
11245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11246$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11248$as_echo "$can_build_shared" >&6; }
11249
11250  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11251$as_echo_n "checking whether to build shared libraries... " >&6; }
11252  test "$can_build_shared" = "no" && enable_shared=no
11253
11254  # On AIX, shared libraries and static libraries use the same namespace, and
11255  # are all built from PIC.
11256  case $host_os in
11257  aix3*)
11258    test "$enable_shared" = yes && enable_static=no
11259    if test -n "$RANLIB"; then
11260      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11261      postinstall_cmds='$RANLIB $lib'
11262    fi
11263    ;;
11264
11265  aix[4-9]*)
11266    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11267      test "$enable_shared" = yes && enable_static=no
11268    fi
11269    ;;
11270  esac
11271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11272$as_echo "$enable_shared" >&6; }
11273
11274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11275$as_echo_n "checking whether to build static libraries... " >&6; }
11276  # Make sure either enable_shared or enable_static is yes.
11277  test "$enable_shared" = yes || enable_static=yes
11278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11279$as_echo "$enable_static" >&6; }
11280
11281
11282
11283
11284fi
11285ac_ext=c
11286ac_cpp='$CPP $CPPFLAGS'
11287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11289ac_compiler_gnu=$ac_cv_c_compiler_gnu
11290
11291CC="$lt_save_CC"
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305        ac_config_commands="$ac_config_commands libtool"
11306
11307
11308
11309
11310# Only expand once:
11311
11312
11313
11314if test "$GCC" = yes ; then
11315        CXXFLAGS="$CXXFLAGS -Wall"
11316        CFLAGS="$CFLAGS -Wall"
11317fi
11318
11319
11320ac_header_dirent=no
11321for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11322  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11324$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11325if eval "test \"\${$as_ac_Header+set}\"" = set; then :
11326  $as_echo_n "(cached) " >&6
11327else
11328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329/* end confdefs.h.  */
11330#include <sys/types.h>
11331#include <$ac_hdr>
11332
11333int
11334main ()
11335{
11336if ((DIR *) 0)
11337return 0;
11338  ;
11339  return 0;
11340}
11341_ACEOF
11342if ac_fn_c_try_compile "$LINENO"; then :
11343  eval "$as_ac_Header=yes"
11344else
11345  eval "$as_ac_Header=no"
11346fi
11347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11348fi
11349eval ac_res=\$$as_ac_Header
11350	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11351$as_echo "$ac_res" >&6; }
11352if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11353  cat >>confdefs.h <<_ACEOF
11354#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11355_ACEOF
11356
11357ac_header_dirent=$ac_hdr; break
11358fi
11359
11360done
11361# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11362if test $ac_header_dirent = dirent.h; then
11363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11364$as_echo_n "checking for library containing opendir... " >&6; }
11365if test "${ac_cv_search_opendir+set}" = set; then :
11366  $as_echo_n "(cached) " >&6
11367else
11368  ac_func_search_save_LIBS=$LIBS
11369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370/* end confdefs.h.  */
11371
11372/* Override any GCC internal prototype to avoid an error.
11373   Use char because int might match the return type of a GCC
11374   builtin and then its argument prototype would still apply.  */
11375#ifdef __cplusplus
11376extern "C"
11377#endif
11378char opendir ();
11379int
11380main ()
11381{
11382return opendir ();
11383  ;
11384  return 0;
11385}
11386_ACEOF
11387for ac_lib in '' dir; do
11388  if test -z "$ac_lib"; then
11389    ac_res="none required"
11390  else
11391    ac_res=-l$ac_lib
11392    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11393  fi
11394  if ac_fn_c_try_link "$LINENO"; then :
11395  ac_cv_search_opendir=$ac_res
11396fi
11397rm -f core conftest.err conftest.$ac_objext \
11398    conftest$ac_exeext
11399  if test "${ac_cv_search_opendir+set}" = set; then :
11400  break
11401fi
11402done
11403if test "${ac_cv_search_opendir+set}" = set; then :
11404
11405else
11406  ac_cv_search_opendir=no
11407fi
11408rm conftest.$ac_ext
11409LIBS=$ac_func_search_save_LIBS
11410fi
11411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11412$as_echo "$ac_cv_search_opendir" >&6; }
11413ac_res=$ac_cv_search_opendir
11414if test "$ac_res" != no; then :
11415  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11416
11417fi
11418
11419else
11420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11421$as_echo_n "checking for library containing opendir... " >&6; }
11422if test "${ac_cv_search_opendir+set}" = set; then :
11423  $as_echo_n "(cached) " >&6
11424else
11425  ac_func_search_save_LIBS=$LIBS
11426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427/* end confdefs.h.  */
11428
11429/* Override any GCC internal prototype to avoid an error.
11430   Use char because int might match the return type of a GCC
11431   builtin and then its argument prototype would still apply.  */
11432#ifdef __cplusplus
11433extern "C"
11434#endif
11435char opendir ();
11436int
11437main ()
11438{
11439return opendir ();
11440  ;
11441  return 0;
11442}
11443_ACEOF
11444for ac_lib in '' x; do
11445  if test -z "$ac_lib"; then
11446    ac_res="none required"
11447  else
11448    ac_res=-l$ac_lib
11449    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11450  fi
11451  if ac_fn_c_try_link "$LINENO"; then :
11452  ac_cv_search_opendir=$ac_res
11453fi
11454rm -f core conftest.err conftest.$ac_objext \
11455    conftest$ac_exeext
11456  if test "${ac_cv_search_opendir+set}" = set; then :
11457  break
11458fi
11459done
11460if test "${ac_cv_search_opendir+set}" = set; then :
11461
11462else
11463  ac_cv_search_opendir=no
11464fi
11465rm conftest.$ac_ext
11466LIBS=$ac_func_search_save_LIBS
11467fi
11468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11469$as_echo "$ac_cv_search_opendir" >&6; }
11470ac_res=$ac_cv_search_opendir
11471if test "$ac_res" != no; then :
11472  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11473
11474fi
11475
11476fi
11477
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11479$as_echo_n "checking for ANSI C header files... " >&6; }
11480if test "${ac_cv_header_stdc+set}" = set; then :
11481  $as_echo_n "(cached) " >&6
11482else
11483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484/* end confdefs.h.  */
11485#include <stdlib.h>
11486#include <stdarg.h>
11487#include <string.h>
11488#include <float.h>
11489
11490int
11491main ()
11492{
11493
11494  ;
11495  return 0;
11496}
11497_ACEOF
11498if ac_fn_c_try_compile "$LINENO"; then :
11499  ac_cv_header_stdc=yes
11500else
11501  ac_cv_header_stdc=no
11502fi
11503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11504
11505if test $ac_cv_header_stdc = yes; then
11506  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508/* end confdefs.h.  */
11509#include <string.h>
11510
11511_ACEOF
11512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11513  $EGREP "memchr" >/dev/null 2>&1; then :
11514
11515else
11516  ac_cv_header_stdc=no
11517fi
11518rm -f conftest*
11519
11520fi
11521
11522if test $ac_cv_header_stdc = yes; then
11523  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525/* end confdefs.h.  */
11526#include <stdlib.h>
11527
11528_ACEOF
11529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11530  $EGREP "free" >/dev/null 2>&1; then :
11531
11532else
11533  ac_cv_header_stdc=no
11534fi
11535rm -f conftest*
11536
11537fi
11538
11539if test $ac_cv_header_stdc = yes; then
11540  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11541  if test "$cross_compiling" = yes; then :
11542  :
11543else
11544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545/* end confdefs.h.  */
11546#include <ctype.h>
11547#include <stdlib.h>
11548#if ((' ' & 0x0FF) == 0x020)
11549# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11550# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11551#else
11552# define ISLOWER(c) \
11553		   (('a' <= (c) && (c) <= 'i') \
11554		     || ('j' <= (c) && (c) <= 'r') \
11555		     || ('s' <= (c) && (c) <= 'z'))
11556# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11557#endif
11558
11559#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11560int
11561main ()
11562{
11563  int i;
11564  for (i = 0; i < 256; i++)
11565    if (XOR (islower (i), ISLOWER (i))
11566	|| toupper (i) != TOUPPER (i))
11567      return 2;
11568  return 0;
11569}
11570_ACEOF
11571if ac_fn_c_try_run "$LINENO"; then :
11572
11573else
11574  ac_cv_header_stdc=no
11575fi
11576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11577  conftest.$ac_objext conftest.beam conftest.$ac_ext
11578fi
11579
11580fi
11581fi
11582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11583$as_echo "$ac_cv_header_stdc" >&6; }
11584if test $ac_cv_header_stdc = yes; then
11585
11586$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11587
11588fi
11589
11590
11591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11592$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11593if test "${ac_cv_c_const+set}" = set; then :
11594  $as_echo_n "(cached) " >&6
11595else
11596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597/* end confdefs.h.  */
11598
11599int
11600main ()
11601{
11602/* FIXME: Include the comments suggested by Paul. */
11603#ifndef __cplusplus
11604  /* Ultrix mips cc rejects this.  */
11605  typedef int charset[2];
11606  const charset cs;
11607  /* SunOS 4.1.1 cc rejects this.  */
11608  char const *const *pcpcc;
11609  char **ppc;
11610  /* NEC SVR4.0.2 mips cc rejects this.  */
11611  struct point {int x, y;};
11612  static struct point const zero = {0,0};
11613  /* AIX XL C 1.02.0.0 rejects this.
11614     It does not let you subtract one const X* pointer from another in
11615     an arm of an if-expression whose if-part is not a constant
11616     expression */
11617  const char *g = "string";
11618  pcpcc = &g + (g ? g-g : 0);
11619  /* HPUX 7.0 cc rejects these. */
11620  ++pcpcc;
11621  ppc = (char**) pcpcc;
11622  pcpcc = (char const *const *) ppc;
11623  { /* SCO 3.2v4 cc rejects this.  */
11624    char *t;
11625    char const *s = 0 ? (char *) 0 : (char const *) 0;
11626
11627    *t++ = 0;
11628    if (s) return 0;
11629  }
11630  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11631    int x[] = {25, 17};
11632    const int *foo = &x[0];
11633    ++foo;
11634  }
11635  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11636    typedef const int *iptr;
11637    iptr p = 0;
11638    ++p;
11639  }
11640  { /* AIX XL C 1.02.0.0 rejects this saying
11641       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11642    struct s { int j; const int *ap[3]; };
11643    struct s *b; b->j = 5;
11644  }
11645  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11646    const int foo = 10;
11647    if (!foo) return 0;
11648  }
11649  return !cs[0] && !zero.x;
11650#endif
11651
11652  ;
11653  return 0;
11654}
11655_ACEOF
11656if ac_fn_c_try_compile "$LINENO"; then :
11657  ac_cv_c_const=yes
11658else
11659  ac_cv_c_const=no
11660fi
11661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11662fi
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11664$as_echo "$ac_cv_c_const" >&6; }
11665if test $ac_cv_c_const = no; then
11666
11667$as_echo "#define const /**/" >>confdefs.h
11668
11669fi
11670
11671ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11672if test "x$ac_cv_type_size_t" = x""yes; then :
11673
11674else
11675
11676cat >>confdefs.h <<_ACEOF
11677#define size_t unsigned int
11678_ACEOF
11679
11680fi
11681
11682
11683
11684
11685# Check whether --with-defaultlang was given.
11686if test "${with_defaultlang+set}" = set; then :
11687  withval=$with_defaultlang; DEFAULTLANG="$withval"
11688else
11689  DEFAULTLANG="en"
11690fi
11691
11692
11693
11694ac_config_files="$ac_config_files Makefile http11.h"
11695
11696cat >confcache <<\_ACEOF
11697# This file is a shell script that caches the results of configure
11698# tests run on this system so they can be shared between configure
11699# scripts and configure runs, see configure's option --config-cache.
11700# It is not useful on other systems.  If it contains results you don't
11701# want to keep, you may remove or edit it.
11702#
11703# config.status only pays attention to the cache file if you give it
11704# the --recheck option to rerun configure.
11705#
11706# `ac_cv_env_foo' variables (set or unset) will be overridden when
11707# loading this file, other *unset* `ac_cv_foo' will be assigned the
11708# following values.
11709
11710_ACEOF
11711
11712# The following way of writing the cache mishandles newlines in values,
11713# but we know of no workaround that is simple, portable, and efficient.
11714# So, we kill variables containing newlines.
11715# Ultrix sh set writes to stderr and can't be redirected directly,
11716# and sets the high bit in the cache file unless we assign to the vars.
11717(
11718  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11719    eval ac_val=\$$ac_var
11720    case $ac_val in #(
11721    *${as_nl}*)
11722      case $ac_var in #(
11723      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11724$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11725      esac
11726      case $ac_var in #(
11727      _ | IFS | as_nl) ;; #(
11728      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11729      *) { eval $ac_var=; unset $ac_var;} ;;
11730      esac ;;
11731    esac
11732  done
11733
11734  (set) 2>&1 |
11735    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11736    *${as_nl}ac_space=\ *)
11737      # `set' does not quote correctly, so add quotes: double-quote
11738      # substitution turns \\\\ into \\, and sed turns \\ into \.
11739      sed -n \
11740	"s/'/'\\\\''/g;
11741	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11742      ;; #(
11743    *)
11744      # `set' quotes correctly as required by POSIX, so do not add quotes.
11745      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11746      ;;
11747    esac |
11748    sort
11749) |
11750  sed '
11751     /^ac_cv_env_/b end
11752     t clear
11753     :clear
11754     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11755     t end
11756     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11757     :end' >>confcache
11758if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11759  if test -w "$cache_file"; then
11760    test "x$cache_file" != "x/dev/null" &&
11761      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11762$as_echo "$as_me: updating cache $cache_file" >&6;}
11763    cat confcache >$cache_file
11764  else
11765    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11766$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11767  fi
11768fi
11769rm -f confcache
11770
11771test "x$prefix" = xNONE && prefix=$ac_default_prefix
11772# Let make expand exec_prefix.
11773test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11774
11775# Transform confdefs.h into DEFS.
11776# Protect against shell expansion while executing Makefile rules.
11777# Protect against Makefile macro expansion.
11778#
11779# If the first sed substitution is executed (which looks for macros that
11780# take arguments), then branch to the quote section.  Otherwise,
11781# look for a macro that doesn't take arguments.
11782ac_script='
11783:mline
11784/\\$/{
11785 N
11786 s,\\\n,,
11787 b mline
11788}
11789t clear
11790:clear
11791s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
11792t quote
11793s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
11794t quote
11795b any
11796:quote
11797s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11798s/\[/\\&/g
11799s/\]/\\&/g
11800s/\$/$$/g
11801H
11802:any
11803${
11804	g
11805	s/^\n//
11806	s/\n/ /g
11807	p
11808}
11809'
11810DEFS=`sed -n "$ac_script" confdefs.h`
11811
11812
11813ac_libobjs=
11814ac_ltlibobjs=
11815U=
11816for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11817  # 1. Remove the extension, and $U if already installed.
11818  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11819  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11820  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11821  #    will be set to the directory where LIBOBJS objects are built.
11822  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11823  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11824done
11825LIBOBJS=$ac_libobjs
11826
11827LTLIBOBJS=$ac_ltlibobjs
11828
11829
11830 if test -n "$EXEEXT"; then
11831  am__EXEEXT_TRUE=
11832  am__EXEEXT_FALSE='#'
11833else
11834  am__EXEEXT_TRUE='#'
11835  am__EXEEXT_FALSE=
11836fi
11837
11838if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11839  as_fn_error $? "conditional \"AMDEP\" was never defined.
11840Usually this means the macro was only invoked conditionally." "$LINENO" 5
11841fi
11842if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11843  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11844Usually this means the macro was only invoked conditionally." "$LINENO" 5
11845fi
11846if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11847  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11848Usually this means the macro was only invoked conditionally." "$LINENO" 5
11849fi
11850
11851: ${CONFIG_STATUS=./config.status}
11852ac_write_fail=0
11853ac_clean_files_save=$ac_clean_files
11854ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11855{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11856$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11857as_write_fail=0
11858cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11859#! $SHELL
11860# Generated by $as_me.
11861# Run this file to recreate the current configuration.
11862# Compiler output produced by configure, useful for debugging
11863# configure, is in config.log if it exists.
11864
11865debug=false
11866ac_cs_recheck=false
11867ac_cs_silent=false
11868
11869SHELL=\${CONFIG_SHELL-$SHELL}
11870export SHELL
11871_ASEOF
11872cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11873## -------------------- ##
11874## M4sh Initialization. ##
11875## -------------------- ##
11876
11877# Be more Bourne compatible
11878DUALCASE=1; export DUALCASE # for MKS sh
11879if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11880  emulate sh
11881  NULLCMD=:
11882  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11883  # is contrary to our usage.  Disable this feature.
11884  alias -g '${1+"$@"}'='"$@"'
11885  setopt NO_GLOB_SUBST
11886else
11887  case `(set -o) 2>/dev/null` in #(
11888  *posix*) :
11889    set -o posix ;; #(
11890  *) :
11891     ;;
11892esac
11893fi
11894
11895
11896as_nl='
11897'
11898export as_nl
11899# Printing a long string crashes Solaris 7 /usr/bin/printf.
11900as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11901as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11902as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11903# Prefer a ksh shell builtin over an external printf program on Solaris,
11904# but without wasting forks for bash or zsh.
11905if test -z "$BASH_VERSION$ZSH_VERSION" \
11906    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11907  as_echo='print -r --'
11908  as_echo_n='print -rn --'
11909elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11910  as_echo='printf %s\n'
11911  as_echo_n='printf %s'
11912else
11913  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11914    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11915    as_echo_n='/usr/ucb/echo -n'
11916  else
11917    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11918    as_echo_n_body='eval
11919      arg=$1;
11920      case $arg in #(
11921      *"$as_nl"*)
11922	expr "X$arg" : "X\\(.*\\)$as_nl";
11923	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11924      esac;
11925      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11926    '
11927    export as_echo_n_body
11928    as_echo_n='sh -c $as_echo_n_body as_echo'
11929  fi
11930  export as_echo_body
11931  as_echo='sh -c $as_echo_body as_echo'
11932fi
11933
11934# The user is always right.
11935if test "${PATH_SEPARATOR+set}" != set; then
11936  PATH_SEPARATOR=:
11937  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11938    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11939      PATH_SEPARATOR=';'
11940  }
11941fi
11942
11943
11944# IFS
11945# We need space, tab and new line, in precisely that order.  Quoting is
11946# there to prevent editors from complaining about space-tab.
11947# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11948# splitting by setting IFS to empty value.)
11949IFS=" ""	$as_nl"
11950
11951# Find who we are.  Look in the path if we contain no directory separator.
11952case $0 in #((
11953  *[\\/]* ) as_myself=$0 ;;
11954  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955for as_dir in $PATH
11956do
11957  IFS=$as_save_IFS
11958  test -z "$as_dir" && as_dir=.
11959    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11960  done
11961IFS=$as_save_IFS
11962
11963     ;;
11964esac
11965# We did not find ourselves, most probably we were run as `sh COMMAND'
11966# in which case we are not to be found in the path.
11967if test "x$as_myself" = x; then
11968  as_myself=$0
11969fi
11970if test ! -f "$as_myself"; then
11971  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11972  exit 1
11973fi
11974
11975# Unset variables that we do not need and which cause bugs (e.g. in
11976# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11977# suppresses any "Segmentation fault" message there.  '((' could
11978# trigger a bug in pdksh 5.2.14.
11979for as_var in BASH_ENV ENV MAIL MAILPATH
11980do eval test x\${$as_var+set} = xset \
11981  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11982done
11983PS1='$ '
11984PS2='> '
11985PS4='+ '
11986
11987# NLS nuisances.
11988LC_ALL=C
11989export LC_ALL
11990LANGUAGE=C
11991export LANGUAGE
11992
11993# CDPATH.
11994(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11995
11996
11997# as_fn_error STATUS ERROR [LINENO LOG_FD]
11998# ----------------------------------------
11999# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12000# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12001# script with STATUS, using 1 if that was 0.
12002as_fn_error ()
12003{
12004  as_status=$1; test $as_status -eq 0 && as_status=1
12005  if test "$4"; then
12006    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12007    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12008  fi
12009  $as_echo "$as_me: error: $2" >&2
12010  as_fn_exit $as_status
12011} # as_fn_error
12012
12013
12014# as_fn_set_status STATUS
12015# -----------------------
12016# Set $? to STATUS, without forking.
12017as_fn_set_status ()
12018{
12019  return $1
12020} # as_fn_set_status
12021
12022# as_fn_exit STATUS
12023# -----------------
12024# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12025as_fn_exit ()
12026{
12027  set +e
12028  as_fn_set_status $1
12029  exit $1
12030} # as_fn_exit
12031
12032# as_fn_unset VAR
12033# ---------------
12034# Portably unset VAR.
12035as_fn_unset ()
12036{
12037  { eval $1=; unset $1;}
12038}
12039as_unset=as_fn_unset
12040# as_fn_append VAR VALUE
12041# ----------------------
12042# Append the text in VALUE to the end of the definition contained in VAR. Take
12043# advantage of any shell optimizations that allow amortized linear growth over
12044# repeated appends, instead of the typical quadratic growth present in naive
12045# implementations.
12046if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12047  eval 'as_fn_append ()
12048  {
12049    eval $1+=\$2
12050  }'
12051else
12052  as_fn_append ()
12053  {
12054    eval $1=\$$1\$2
12055  }
12056fi # as_fn_append
12057
12058# as_fn_arith ARG...
12059# ------------------
12060# Perform arithmetic evaluation on the ARGs, and store the result in the
12061# global $as_val. Take advantage of shells that can avoid forks. The arguments
12062# must be portable across $(()) and expr.
12063if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12064  eval 'as_fn_arith ()
12065  {
12066    as_val=$(( $* ))
12067  }'
12068else
12069  as_fn_arith ()
12070  {
12071    as_val=`expr "$@" || test $? -eq 1`
12072  }
12073fi # as_fn_arith
12074
12075
12076if expr a : '\(a\)' >/dev/null 2>&1 &&
12077   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12078  as_expr=expr
12079else
12080  as_expr=false
12081fi
12082
12083if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12084  as_basename=basename
12085else
12086  as_basename=false
12087fi
12088
12089if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12090  as_dirname=dirname
12091else
12092  as_dirname=false
12093fi
12094
12095as_me=`$as_basename -- "$0" ||
12096$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12097	 X"$0" : 'X\(//\)$' \| \
12098	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12099$as_echo X/"$0" |
12100    sed '/^.*\/\([^/][^/]*\)\/*$/{
12101	    s//\1/
12102	    q
12103	  }
12104	  /^X\/\(\/\/\)$/{
12105	    s//\1/
12106	    q
12107	  }
12108	  /^X\/\(\/\).*/{
12109	    s//\1/
12110	    q
12111	  }
12112	  s/.*/./; q'`
12113
12114# Avoid depending upon Character Ranges.
12115as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12116as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12117as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12118as_cr_digits='0123456789'
12119as_cr_alnum=$as_cr_Letters$as_cr_digits
12120
12121ECHO_C= ECHO_N= ECHO_T=
12122case `echo -n x` in #(((((
12123-n*)
12124  case `echo 'xy\c'` in
12125  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12126  xy)  ECHO_C='\c';;
12127  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12128       ECHO_T='	';;
12129  esac;;
12130*)
12131  ECHO_N='-n';;
12132esac
12133
12134rm -f conf$$ conf$$.exe conf$$.file
12135if test -d conf$$.dir; then
12136  rm -f conf$$.dir/conf$$.file
12137else
12138  rm -f conf$$.dir
12139  mkdir conf$$.dir 2>/dev/null
12140fi
12141if (echo >conf$$.file) 2>/dev/null; then
12142  if ln -s conf$$.file conf$$ 2>/dev/null; then
12143    as_ln_s='ln -s'
12144    # ... but there are two gotchas:
12145    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12146    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12147    # In both cases, we have to default to `cp -p'.
12148    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12149      as_ln_s='cp -p'
12150  elif ln conf$$.file conf$$ 2>/dev/null; then
12151    as_ln_s=ln
12152  else
12153    as_ln_s='cp -p'
12154  fi
12155else
12156  as_ln_s='cp -p'
12157fi
12158rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12159rmdir conf$$.dir 2>/dev/null
12160
12161
12162# as_fn_mkdir_p
12163# -------------
12164# Create "$as_dir" as a directory, including parents if necessary.
12165as_fn_mkdir_p ()
12166{
12167
12168  case $as_dir in #(
12169  -*) as_dir=./$as_dir;;
12170  esac
12171  test -d "$as_dir" || eval $as_mkdir_p || {
12172    as_dirs=
12173    while :; do
12174      case $as_dir in #(
12175      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12176      *) as_qdir=$as_dir;;
12177      esac
12178      as_dirs="'$as_qdir' $as_dirs"
12179      as_dir=`$as_dirname -- "$as_dir" ||
12180$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12181	 X"$as_dir" : 'X\(//\)[^/]' \| \
12182	 X"$as_dir" : 'X\(//\)$' \| \
12183	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12184$as_echo X"$as_dir" |
12185    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12186	    s//\1/
12187	    q
12188	  }
12189	  /^X\(\/\/\)[^/].*/{
12190	    s//\1/
12191	    q
12192	  }
12193	  /^X\(\/\/\)$/{
12194	    s//\1/
12195	    q
12196	  }
12197	  /^X\(\/\).*/{
12198	    s//\1/
12199	    q
12200	  }
12201	  s/.*/./; q'`
12202      test -d "$as_dir" && break
12203    done
12204    test -z "$as_dirs" || eval "mkdir $as_dirs"
12205  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12206
12207
12208} # as_fn_mkdir_p
12209if mkdir -p . 2>/dev/null; then
12210  as_mkdir_p='mkdir -p "$as_dir"'
12211else
12212  test -d ./-p && rmdir ./-p
12213  as_mkdir_p=false
12214fi
12215
12216if test -x / >/dev/null 2>&1; then
12217  as_test_x='test -x'
12218else
12219  if ls -dL / >/dev/null 2>&1; then
12220    as_ls_L_option=L
12221  else
12222    as_ls_L_option=
12223  fi
12224  as_test_x='
12225    eval sh -c '\''
12226      if test -d "$1"; then
12227	test -d "$1/.";
12228      else
12229	case $1 in #(
12230	-*)set "./$1";;
12231	esac;
12232	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12233	???[sx]*):;;*)false;;esac;fi
12234    '\'' sh
12235  '
12236fi
12237as_executable_p=$as_test_x
12238
12239# Sed expression to map a string onto a valid CPP name.
12240as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12241
12242# Sed expression to map a string onto a valid variable name.
12243as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12244
12245
12246exec 6>&1
12247## ----------------------------------- ##
12248## Main body of $CONFIG_STATUS script. ##
12249## ----------------------------------- ##
12250_ASEOF
12251test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12252
12253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12254# Save the log message, to keep $0 and so on meaningful, and to
12255# report actual input values of CONFIG_FILES etc. instead of their
12256# values after options handling.
12257ac_log="
12258This file was extended by http11 $as_me 0.10, which was
12259generated by GNU Autoconf 2.66.  Invocation command line was
12260
12261  CONFIG_FILES    = $CONFIG_FILES
12262  CONFIG_HEADERS  = $CONFIG_HEADERS
12263  CONFIG_LINKS    = $CONFIG_LINKS
12264  CONFIG_COMMANDS = $CONFIG_COMMANDS
12265  $ $0 $@
12266
12267on `(hostname || uname -n) 2>/dev/null | sed 1q`
12268"
12269
12270_ACEOF
12271
12272case $ac_config_files in *"
12273"*) set x $ac_config_files; shift; ac_config_files=$*;;
12274esac
12275
12276
12277
12278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12279# Files that config.status was made for.
12280config_files="$ac_config_files"
12281config_commands="$ac_config_commands"
12282
12283_ACEOF
12284
12285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12286ac_cs_usage="\
12287\`$as_me' instantiates files and other configuration actions
12288from templates according to the current configuration.  Unless the files
12289and actions are specified as TAGs, all are instantiated by default.
12290
12291Usage: $0 [OPTION]... [TAG]...
12292
12293  -h, --help       print this help, then exit
12294  -V, --version    print version number and configuration settings, then exit
12295      --config     print configuration, then exit
12296  -q, --quiet, --silent
12297                   do not print progress messages
12298  -d, --debug      don't remove temporary files
12299      --recheck    update $as_me by reconfiguring in the same conditions
12300      --file=FILE[:TEMPLATE]
12301                   instantiate the configuration file FILE
12302
12303Configuration files:
12304$config_files
12305
12306Configuration commands:
12307$config_commands
12308
12309Report bugs to <courier-users@lists.sourceforge.net>."
12310
12311_ACEOF
12312cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12313ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12314ac_cs_version="\\
12315http11 config.status 0.10
12316configured by $0, generated by GNU Autoconf 2.66,
12317  with options \\"\$ac_cs_config\\"
12318
12319Copyright (C) 2010 Free Software Foundation, Inc.
12320This config.status script is free software; the Free Software Foundation
12321gives unlimited permission to copy, distribute and modify it."
12322
12323ac_pwd='$ac_pwd'
12324srcdir='$srcdir'
12325INSTALL='$INSTALL'
12326MKDIR_P='$MKDIR_P'
12327AWK='$AWK'
12328test -n "\$AWK" || AWK=awk
12329_ACEOF
12330
12331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12332# The default lists apply if the user does not specify any file.
12333ac_need_defaults=:
12334while test $# != 0
12335do
12336  case $1 in
12337  --*=*)
12338    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12339    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12340    ac_shift=:
12341    ;;
12342  *)
12343    ac_option=$1
12344    ac_optarg=$2
12345    ac_shift=shift
12346    ;;
12347  esac
12348
12349  case $ac_option in
12350  # Handling of the options.
12351  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12352    ac_cs_recheck=: ;;
12353  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12354    $as_echo "$ac_cs_version"; exit ;;
12355  --config | --confi | --conf | --con | --co | --c )
12356    $as_echo "$ac_cs_config"; exit ;;
12357  --debug | --debu | --deb | --de | --d | -d )
12358    debug=: ;;
12359  --file | --fil | --fi | --f )
12360    $ac_shift
12361    case $ac_optarg in
12362    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12363    esac
12364    as_fn_append CONFIG_FILES " '$ac_optarg'"
12365    ac_need_defaults=false;;
12366  --he | --h |  --help | --hel | -h )
12367    $as_echo "$ac_cs_usage"; exit ;;
12368  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12369  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12370    ac_cs_silent=: ;;
12371
12372  # This is an error.
12373  -*) as_fn_error $? "unrecognized option: \`$1'
12374Try \`$0 --help' for more information." ;;
12375
12376  *) as_fn_append ac_config_targets " $1"
12377     ac_need_defaults=false ;;
12378
12379  esac
12380  shift
12381done
12382
12383ac_configure_extra_args=
12384
12385if $ac_cs_silent; then
12386  exec 6>/dev/null
12387  ac_configure_extra_args="$ac_configure_extra_args --silent"
12388fi
12389
12390_ACEOF
12391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12392if \$ac_cs_recheck; then
12393  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12394  shift
12395  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12396  CONFIG_SHELL='$SHELL'
12397  export CONFIG_SHELL
12398  exec "\$@"
12399fi
12400
12401_ACEOF
12402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12403exec 5>>config.log
12404{
12405  echo
12406  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12407## Running $as_me. ##
12408_ASBOX
12409  $as_echo "$ac_log"
12410} >&5
12411
12412_ACEOF
12413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12414#
12415# INIT-COMMANDS
12416#
12417AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12418
12419
12420# The HP-UX ksh and POSIX shell print the target directory to stdout
12421# if CDPATH is set.
12422(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12423
12424sed_quote_subst='$sed_quote_subst'
12425double_quote_subst='$double_quote_subst'
12426delay_variable_subst='$delay_variable_subst'
12427macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12428macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12429enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12430enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12431pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12432enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12433SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12434ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12435host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12436host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12437host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12438build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12439build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12440build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12441SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12442Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12443GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12444EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12445FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12446LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12447NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12448LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12449max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12450ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12451exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12452lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12453lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12454lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12455reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12456reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12457OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12458deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12459file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12460AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12461AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12462STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12463RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12464old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12465old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12466old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12467lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12468CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12469CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12470compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12471GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12472lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12473lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12474lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12475lt_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"`'
12476objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12477MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12478lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12479lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12480lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12481lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12482lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12483need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12484DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12485NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12486LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12487OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12488OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12489libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12490shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12491extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12492archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12493enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12494export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12495whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12496compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12497old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12498old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12499archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12500archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12501module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12502module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12503with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12504allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12505no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12506hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12507hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12508hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12509hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12510hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12511hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12512hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12513hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12514inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12515link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12516fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12517always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12518export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12519exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12520include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12521prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12522file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12523variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12524need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12525need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12526version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12527runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12528shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12529shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12530libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12531library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12532soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12533install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12534postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12535postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12536finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12537finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12538hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12539sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12540sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12541hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12542enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12543enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12544enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12545old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12546striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12547
12548LTCC='$LTCC'
12549LTCFLAGS='$LTCFLAGS'
12550compiler='$compiler_DEFAULT'
12551
12552# A function that is used when there is no print builtin or printf.
12553func_fallback_echo ()
12554{
12555  eval 'cat <<_LTECHO_EOF
12556\$1
12557_LTECHO_EOF'
12558}
12559
12560# Quote evaled strings.
12561for var in SHELL \
12562ECHO \
12563SED \
12564GREP \
12565EGREP \
12566FGREP \
12567LD \
12568NM \
12569LN_S \
12570lt_SP2NL \
12571lt_NL2SP \
12572reload_flag \
12573OBJDUMP \
12574deplibs_check_method \
12575file_magic_cmd \
12576AR \
12577AR_FLAGS \
12578STRIP \
12579RANLIB \
12580CC \
12581CFLAGS \
12582compiler \
12583lt_cv_sys_global_symbol_pipe \
12584lt_cv_sys_global_symbol_to_cdecl \
12585lt_cv_sys_global_symbol_to_c_name_address \
12586lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12587lt_prog_compiler_no_builtin_flag \
12588lt_prog_compiler_wl \
12589lt_prog_compiler_pic \
12590lt_prog_compiler_static \
12591lt_cv_prog_compiler_c_o \
12592need_locks \
12593DSYMUTIL \
12594NMEDIT \
12595LIPO \
12596OTOOL \
12597OTOOL64 \
12598shrext_cmds \
12599export_dynamic_flag_spec \
12600whole_archive_flag_spec \
12601compiler_needs_object \
12602with_gnu_ld \
12603allow_undefined_flag \
12604no_undefined_flag \
12605hardcode_libdir_flag_spec \
12606hardcode_libdir_flag_spec_ld \
12607hardcode_libdir_separator \
12608fix_srcfile_path \
12609exclude_expsyms \
12610include_expsyms \
12611file_list_spec \
12612variables_saved_for_relink \
12613libname_spec \
12614library_names_spec \
12615soname_spec \
12616install_override_mode \
12617finish_eval \
12618old_striplib \
12619striplib; do
12620    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12621    *[\\\\\\\`\\"\\\$]*)
12622      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12623      ;;
12624    *)
12625      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12626      ;;
12627    esac
12628done
12629
12630# Double-quote double-evaled strings.
12631for var in reload_cmds \
12632old_postinstall_cmds \
12633old_postuninstall_cmds \
12634old_archive_cmds \
12635extract_expsyms_cmds \
12636old_archive_from_new_cmds \
12637old_archive_from_expsyms_cmds \
12638archive_cmds \
12639archive_expsym_cmds \
12640module_cmds \
12641module_expsym_cmds \
12642export_symbols_cmds \
12643prelink_cmds \
12644postinstall_cmds \
12645postuninstall_cmds \
12646finish_cmds \
12647sys_lib_search_path_spec \
12648sys_lib_dlsearch_path_spec; do
12649    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12650    *[\\\\\\\`\\"\\\$]*)
12651      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12652      ;;
12653    *)
12654      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12655      ;;
12656    esac
12657done
12658
12659ac_aux_dir='$ac_aux_dir'
12660xsi_shell='$xsi_shell'
12661lt_shell_append='$lt_shell_append'
12662
12663# See if we are running on zsh, and set the options which allow our
12664# commands through without removal of \ escapes INIT.
12665if test -n "\${ZSH_VERSION+set}" ; then
12666   setopt NO_GLOB_SUBST
12667fi
12668
12669
12670    PACKAGE='$PACKAGE'
12671    VERSION='$VERSION'
12672    TIMESTAMP='$TIMESTAMP'
12673    RM='$RM'
12674    ofile='$ofile'
12675
12676
12677
12678
12679_ACEOF
12680
12681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12682
12683# Handling of arguments.
12684for ac_config_target in $ac_config_targets
12685do
12686  case $ac_config_target in
12687    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12688    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12689    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12690    "http11.h") CONFIG_FILES="$CONFIG_FILES http11.h" ;;
12691
12692  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12693  esac
12694done
12695
12696
12697# If the user did not use the arguments to specify the items to instantiate,
12698# then the envvar interface is used.  Set only those that are not.
12699# We use the long form for the default assignment because of an extremely
12700# bizarre bug on SunOS 4.1.3.
12701if $ac_need_defaults; then
12702  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12703  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12704fi
12705
12706# Have a temporary directory for convenience.  Make it in the build tree
12707# simply because there is no reason against having it here, and in addition,
12708# creating and moving files from /tmp can sometimes cause problems.
12709# Hook for its removal unless debugging.
12710# Note that there is a small window in which the directory will not be cleaned:
12711# after its creation but before its name has been assigned to `$tmp'.
12712$debug ||
12713{
12714  tmp=
12715  trap 'exit_status=$?
12716  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12717' 0
12718  trap 'as_fn_exit 1' 1 2 13 15
12719}
12720# Create a (secure) tmp directory for tmp files.
12721
12722{
12723  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12724  test -n "$tmp" && test -d "$tmp"
12725}  ||
12726{
12727  tmp=./conf$$-$RANDOM
12728  (umask 077 && mkdir "$tmp")
12729} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12730
12731# Set up the scripts for CONFIG_FILES section.
12732# No need to generate them if there are no CONFIG_FILES.
12733# This happens for instance with `./config.status config.h'.
12734if test -n "$CONFIG_FILES"; then
12735
12736
12737ac_cr=`echo X | tr X '\015'`
12738# On cygwin, bash can eat \r inside `` if the user requested igncr.
12739# But we know of no other shell where ac_cr would be empty at this
12740# point, so we can use a bashism as a fallback.
12741if test "x$ac_cr" = x; then
12742  eval ac_cr=\$\'\\r\'
12743fi
12744ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12745if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12746  ac_cs_awk_cr='\\r'
12747else
12748  ac_cs_awk_cr=$ac_cr
12749fi
12750
12751echo 'BEGIN {' >"$tmp/subs1.awk" &&
12752_ACEOF
12753
12754
12755{
12756  echo "cat >conf$$subs.awk <<_ACEOF" &&
12757  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12758  echo "_ACEOF"
12759} >conf$$subs.sh ||
12760  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12761ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12762ac_delim='%!_!# '
12763for ac_last_try in false false false false false :; do
12764  . ./conf$$subs.sh ||
12765    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12766
12767  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12768  if test $ac_delim_n = $ac_delim_num; then
12769    break
12770  elif $ac_last_try; then
12771    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12772  else
12773    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12774  fi
12775done
12776rm -f conf$$subs.sh
12777
12778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12779cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12780_ACEOF
12781sed -n '
12782h
12783s/^/S["/; s/!.*/"]=/
12784p
12785g
12786s/^[^!]*!//
12787:repl
12788t repl
12789s/'"$ac_delim"'$//
12790t delim
12791:nl
12792h
12793s/\(.\{148\}\)..*/\1/
12794t more1
12795s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12796p
12797n
12798b repl
12799:more1
12800s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12801p
12802g
12803s/.\{148\}//
12804t nl
12805:delim
12806h
12807s/\(.\{148\}\)..*/\1/
12808t more2
12809s/["\\]/\\&/g; s/^/"/; s/$/"/
12810p
12811b
12812:more2
12813s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12814p
12815g
12816s/.\{148\}//
12817t delim
12818' <conf$$subs.awk | sed '
12819/^[^""]/{
12820  N
12821  s/\n//
12822}
12823' >>$CONFIG_STATUS || ac_write_fail=1
12824rm -f conf$$subs.awk
12825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12826_ACAWK
12827cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12828  for (key in S) S_is_set[key] = 1
12829  FS = ""
12830
12831}
12832{
12833  line = $ 0
12834  nfields = split(line, field, "@")
12835  substed = 0
12836  len = length(field[1])
12837  for (i = 2; i < nfields; i++) {
12838    key = field[i]
12839    keylen = length(key)
12840    if (S_is_set[key]) {
12841      value = S[key]
12842      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12843      len += length(value) + length(field[++i])
12844      substed = 1
12845    } else
12846      len += 1 + keylen
12847  }
12848
12849  print line
12850}
12851
12852_ACAWK
12853_ACEOF
12854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12855if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12856  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12857else
12858  cat
12859fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12860  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12861_ACEOF
12862
12863# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12864# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12865# trailing colons and then remove the whole line if VPATH becomes empty
12866# (actually we leave an empty line to preserve line numbers).
12867if test "x$srcdir" = x.; then
12868  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12869h
12870s///
12871s/^/:/
12872s/[	 ]*$/:/
12873s/:\$(srcdir):/:/g
12874s/:\${srcdir}:/:/g
12875s/:@srcdir@:/:/g
12876s/^:*//
12877s/:*$//
12878x
12879s/\(=[	 ]*\).*/\1/
12880G
12881s/\n//
12882s/^[^=]*=[	 ]*$//
12883}'
12884fi
12885
12886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12887fi # test -n "$CONFIG_FILES"
12888
12889
12890eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
12891shift
12892for ac_tag
12893do
12894  case $ac_tag in
12895  :[FHLC]) ac_mode=$ac_tag; continue;;
12896  esac
12897  case $ac_mode$ac_tag in
12898  :[FHL]*:*);;
12899  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12900  :[FH]-) ac_tag=-:-;;
12901  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12902  esac
12903  ac_save_IFS=$IFS
12904  IFS=:
12905  set x $ac_tag
12906  IFS=$ac_save_IFS
12907  shift
12908  ac_file=$1
12909  shift
12910
12911  case $ac_mode in
12912  :L) ac_source=$1;;
12913  :[FH])
12914    ac_file_inputs=
12915    for ac_f
12916    do
12917      case $ac_f in
12918      -) ac_f="$tmp/stdin";;
12919      *) # Look for the file first in the build tree, then in the source tree
12920	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12921	 # because $ac_f cannot contain `:'.
12922	 test -f "$ac_f" ||
12923	   case $ac_f in
12924	   [\\/$]*) false;;
12925	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12926	   esac ||
12927	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12928      esac
12929      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12930      as_fn_append ac_file_inputs " '$ac_f'"
12931    done
12932
12933    # Let's still pretend it is `configure' which instantiates (i.e., don't
12934    # use $as_me), people would be surprised to read:
12935    #    /* config.h.  Generated by config.status.  */
12936    configure_input='Generated from '`
12937	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12938	`' by configure.'
12939    if test x"$ac_file" != x-; then
12940      configure_input="$ac_file.  $configure_input"
12941      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12942$as_echo "$as_me: creating $ac_file" >&6;}
12943    fi
12944    # Neutralize special characters interpreted by sed in replacement strings.
12945    case $configure_input in #(
12946    *\&* | *\|* | *\\* )
12947       ac_sed_conf_input=`$as_echo "$configure_input" |
12948       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12949    *) ac_sed_conf_input=$configure_input;;
12950    esac
12951
12952    case $ac_tag in
12953    *:-:* | *:-) cat >"$tmp/stdin" \
12954      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12955    esac
12956    ;;
12957  esac
12958
12959  ac_dir=`$as_dirname -- "$ac_file" ||
12960$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12961	 X"$ac_file" : 'X\(//\)[^/]' \| \
12962	 X"$ac_file" : 'X\(//\)$' \| \
12963	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12964$as_echo X"$ac_file" |
12965    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12966	    s//\1/
12967	    q
12968	  }
12969	  /^X\(\/\/\)[^/].*/{
12970	    s//\1/
12971	    q
12972	  }
12973	  /^X\(\/\/\)$/{
12974	    s//\1/
12975	    q
12976	  }
12977	  /^X\(\/\).*/{
12978	    s//\1/
12979	    q
12980	  }
12981	  s/.*/./; q'`
12982  as_dir="$ac_dir"; as_fn_mkdir_p
12983  ac_builddir=.
12984
12985case "$ac_dir" in
12986.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12987*)
12988  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12989  # A ".." for each directory in $ac_dir_suffix.
12990  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12991  case $ac_top_builddir_sub in
12992  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12993  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12994  esac ;;
12995esac
12996ac_abs_top_builddir=$ac_pwd
12997ac_abs_builddir=$ac_pwd$ac_dir_suffix
12998# for backward compatibility:
12999ac_top_builddir=$ac_top_build_prefix
13000
13001case $srcdir in
13002  .)  # We are building in place.
13003    ac_srcdir=.
13004    ac_top_srcdir=$ac_top_builddir_sub
13005    ac_abs_top_srcdir=$ac_pwd ;;
13006  [\\/]* | ?:[\\/]* )  # Absolute name.
13007    ac_srcdir=$srcdir$ac_dir_suffix;
13008    ac_top_srcdir=$srcdir
13009    ac_abs_top_srcdir=$srcdir ;;
13010  *) # Relative name.
13011    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13012    ac_top_srcdir=$ac_top_build_prefix$srcdir
13013    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13014esac
13015ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13016
13017
13018  case $ac_mode in
13019  :F)
13020  #
13021  # CONFIG_FILE
13022  #
13023
13024  case $INSTALL in
13025  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13026  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13027  esac
13028  ac_MKDIR_P=$MKDIR_P
13029  case $MKDIR_P in
13030  [\\/$]* | ?:[\\/]* ) ;;
13031  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13032  esac
13033_ACEOF
13034
13035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13036# If the template does not know about datarootdir, expand it.
13037# FIXME: This hack should be removed a few years after 2.60.
13038ac_datarootdir_hack=; ac_datarootdir_seen=
13039ac_sed_dataroot='
13040/datarootdir/ {
13041  p
13042  q
13043}
13044/@datadir@/p
13045/@docdir@/p
13046/@infodir@/p
13047/@localedir@/p
13048/@mandir@/p'
13049case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13050*datarootdir*) ac_datarootdir_seen=yes;;
13051*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13052  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13053$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13054_ACEOF
13055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13056  ac_datarootdir_hack='
13057  s&@datadir@&$datadir&g
13058  s&@docdir@&$docdir&g
13059  s&@infodir@&$infodir&g
13060  s&@localedir@&$localedir&g
13061  s&@mandir@&$mandir&g
13062  s&\\\${datarootdir}&$datarootdir&g' ;;
13063esac
13064_ACEOF
13065
13066# Neutralize VPATH when `$srcdir' = `.'.
13067# Shell code in configure.ac might set extrasub.
13068# FIXME: do we really want to maintain this feature?
13069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13070ac_sed_extra="$ac_vpsub
13071$extrasub
13072_ACEOF
13073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13074:t
13075/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13076s|@configure_input@|$ac_sed_conf_input|;t t
13077s&@top_builddir@&$ac_top_builddir_sub&;t t
13078s&@top_build_prefix@&$ac_top_build_prefix&;t t
13079s&@srcdir@&$ac_srcdir&;t t
13080s&@abs_srcdir@&$ac_abs_srcdir&;t t
13081s&@top_srcdir@&$ac_top_srcdir&;t t
13082s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13083s&@builddir@&$ac_builddir&;t t
13084s&@abs_builddir@&$ac_abs_builddir&;t t
13085s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13086s&@INSTALL@&$ac_INSTALL&;t t
13087s&@MKDIR_P@&$ac_MKDIR_P&;t t
13088$ac_datarootdir_hack
13089"
13090eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13091  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13092
13093test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13094  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13095  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13096  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13097which seems to be undefined.  Please make sure it is defined" >&5
13098$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13099which seems to be undefined.  Please make sure it is defined" >&2;}
13100
13101  rm -f "$tmp/stdin"
13102  case $ac_file in
13103  -) cat "$tmp/out" && rm -f "$tmp/out";;
13104  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13105  esac \
13106  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13107 ;;
13108
13109
13110  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13111$as_echo "$as_me: executing $ac_file commands" >&6;}
13112 ;;
13113  esac
13114
13115
13116  case $ac_file$ac_mode in
13117    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13118  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13119  # are listed without --file.  Let's play safe and only enable the eval
13120  # if we detect the quoting.
13121  case $CONFIG_FILES in
13122  *\'*) eval set x "$CONFIG_FILES" ;;
13123  *)   set x $CONFIG_FILES ;;
13124  esac
13125  shift
13126  for mf
13127  do
13128    # Strip MF so we end up with the name of the file.
13129    mf=`echo "$mf" | sed -e 's/:.*$//'`
13130    # Check whether this is an Automake generated Makefile or not.
13131    # We used to match only the files named `Makefile.in', but
13132    # some people rename them; so instead we look at the file content.
13133    # Grep'ing the first line is not enough: some people post-process
13134    # each Makefile.in and add a new line on top of each file to say so.
13135    # Grep'ing the whole file is not good either: AIX grep has a line
13136    # limit of 2048, but all sed's we know have understand at least 4000.
13137    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13138      dirpart=`$as_dirname -- "$mf" ||
13139$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13140	 X"$mf" : 'X\(//\)[^/]' \| \
13141	 X"$mf" : 'X\(//\)$' \| \
13142	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13143$as_echo X"$mf" |
13144    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13145	    s//\1/
13146	    q
13147	  }
13148	  /^X\(\/\/\)[^/].*/{
13149	    s//\1/
13150	    q
13151	  }
13152	  /^X\(\/\/\)$/{
13153	    s//\1/
13154	    q
13155	  }
13156	  /^X\(\/\).*/{
13157	    s//\1/
13158	    q
13159	  }
13160	  s/.*/./; q'`
13161    else
13162      continue
13163    fi
13164    # Extract the definition of DEPDIR, am__include, and am__quote
13165    # from the Makefile without running `make'.
13166    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13167    test -z "$DEPDIR" && continue
13168    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13169    test -z "am__include" && continue
13170    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13171    # When using ansi2knr, U may be empty or an underscore; expand it
13172    U=`sed -n 's/^U = //p' < "$mf"`
13173    # Find all dependency output files, they are included files with
13174    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13175    # simplest approach to changing $(DEPDIR) to its actual value in the
13176    # expansion.
13177    for file in `sed -n "
13178      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13179	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13180      # Make sure the directory exists.
13181      test -f "$dirpart/$file" && continue
13182      fdir=`$as_dirname -- "$file" ||
13183$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13184	 X"$file" : 'X\(//\)[^/]' \| \
13185	 X"$file" : 'X\(//\)$' \| \
13186	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13187$as_echo X"$file" |
13188    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13189	    s//\1/
13190	    q
13191	  }
13192	  /^X\(\/\/\)[^/].*/{
13193	    s//\1/
13194	    q
13195	  }
13196	  /^X\(\/\/\)$/{
13197	    s//\1/
13198	    q
13199	  }
13200	  /^X\(\/\).*/{
13201	    s//\1/
13202	    q
13203	  }
13204	  s/.*/./; q'`
13205      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13206      # echo "creating $dirpart/$file"
13207      echo '# dummy' > "$dirpart/$file"
13208    done
13209  done
13210}
13211 ;;
13212    "libtool":C)
13213
13214    # See if we are running on zsh, and set the options which allow our
13215    # commands through without removal of \ escapes.
13216    if test -n "${ZSH_VERSION+set}" ; then
13217      setopt NO_GLOB_SUBST
13218    fi
13219
13220    cfgfile="${ofile}T"
13221    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13222    $RM "$cfgfile"
13223
13224    cat <<_LT_EOF >> "$cfgfile"
13225#! $SHELL
13226
13227# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13228# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13229# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13230# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13231#
13232#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13233#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13234#                 Inc.
13235#   Written by Gordon Matzigkeit, 1996
13236#
13237#   This file is part of GNU Libtool.
13238#
13239# GNU Libtool is free software; you can redistribute it and/or
13240# modify it under the terms of the GNU General Public License as
13241# published by the Free Software Foundation; either version 2 of
13242# the License, or (at your option) any later version.
13243#
13244# As a special exception to the GNU General Public License,
13245# if you distribute this file as part of a program or library that
13246# is built using GNU Libtool, you may include this file under the
13247# same distribution terms that you use for the rest of that program.
13248#
13249# GNU Libtool is distributed in the hope that it will be useful,
13250# but WITHOUT ANY WARRANTY; without even the implied warranty of
13251# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13252# GNU General Public License for more details.
13253#
13254# You should have received a copy of the GNU General Public License
13255# along with GNU Libtool; see the file COPYING.  If not, a copy
13256# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13257# obtained by writing to the Free Software Foundation, Inc.,
13258# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13259
13260
13261# The names of the tagged configurations supported by this script.
13262available_tags=""
13263
13264# ### BEGIN LIBTOOL CONFIG
13265
13266# Which release of libtool.m4 was used?
13267macro_version=$macro_version
13268macro_revision=$macro_revision
13269
13270# Whether or not to build shared libraries.
13271build_libtool_libs=$enable_shared
13272
13273# Whether or not to build static libraries.
13274build_old_libs=$enable_static
13275
13276# What type of objects to build.
13277pic_mode=$pic_mode
13278
13279# Whether or not to optimize for fast installation.
13280fast_install=$enable_fast_install
13281
13282# Shell to use when invoking shell scripts.
13283SHELL=$lt_SHELL
13284
13285# An echo program that protects backslashes.
13286ECHO=$lt_ECHO
13287
13288# The host system.
13289host_alias=$host_alias
13290host=$host
13291host_os=$host_os
13292
13293# The build system.
13294build_alias=$build_alias
13295build=$build
13296build_os=$build_os
13297
13298# A sed program that does not truncate output.
13299SED=$lt_SED
13300
13301# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13302Xsed="\$SED -e 1s/^X//"
13303
13304# A grep program that handles long lines.
13305GREP=$lt_GREP
13306
13307# An ERE matcher.
13308EGREP=$lt_EGREP
13309
13310# A literal string matcher.
13311FGREP=$lt_FGREP
13312
13313# A BSD- or MS-compatible name lister.
13314NM=$lt_NM
13315
13316# Whether we need soft or hard links.
13317LN_S=$lt_LN_S
13318
13319# What is the maximum length of a command?
13320max_cmd_len=$max_cmd_len
13321
13322# Object file suffix (normally "o").
13323objext=$ac_objext
13324
13325# Executable file suffix (normally "").
13326exeext=$exeext
13327
13328# whether the shell understands "unset".
13329lt_unset=$lt_unset
13330
13331# turn spaces into newlines.
13332SP2NL=$lt_lt_SP2NL
13333
13334# turn newlines into spaces.
13335NL2SP=$lt_lt_NL2SP
13336
13337# An object symbol dumper.
13338OBJDUMP=$lt_OBJDUMP
13339
13340# Method to check whether dependent libraries are shared objects.
13341deplibs_check_method=$lt_deplibs_check_method
13342
13343# Command to use when deplibs_check_method == "file_magic".
13344file_magic_cmd=$lt_file_magic_cmd
13345
13346# The archiver.
13347AR=$lt_AR
13348AR_FLAGS=$lt_AR_FLAGS
13349
13350# A symbol stripping program.
13351STRIP=$lt_STRIP
13352
13353# Commands used to install an old-style archive.
13354RANLIB=$lt_RANLIB
13355old_postinstall_cmds=$lt_old_postinstall_cmds
13356old_postuninstall_cmds=$lt_old_postuninstall_cmds
13357
13358# Whether to use a lock for old archive extraction.
13359lock_old_archive_extraction=$lock_old_archive_extraction
13360
13361# A C compiler.
13362LTCC=$lt_CC
13363
13364# LTCC compiler flags.
13365LTCFLAGS=$lt_CFLAGS
13366
13367# Take the output of nm and produce a listing of raw symbols and C names.
13368global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13369
13370# Transform the output of nm in a proper C declaration.
13371global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13372
13373# Transform the output of nm in a C name address pair.
13374global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13375
13376# Transform the output of nm in a C name address pair when lib prefix is needed.
13377global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13378
13379# The name of the directory that contains temporary libtool files.
13380objdir=$objdir
13381
13382# Used to examine libraries when file_magic_cmd begins with "file".
13383MAGIC_CMD=$MAGIC_CMD
13384
13385# Must we lock files when doing compilation?
13386need_locks=$lt_need_locks
13387
13388# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13389DSYMUTIL=$lt_DSYMUTIL
13390
13391# Tool to change global to local symbols on Mac OS X.
13392NMEDIT=$lt_NMEDIT
13393
13394# Tool to manipulate fat objects and archives on Mac OS X.
13395LIPO=$lt_LIPO
13396
13397# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13398OTOOL=$lt_OTOOL
13399
13400# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13401OTOOL64=$lt_OTOOL64
13402
13403# Old archive suffix (normally "a").
13404libext=$libext
13405
13406# Shared library suffix (normally ".so").
13407shrext_cmds=$lt_shrext_cmds
13408
13409# The commands to extract the exported symbol list from a shared archive.
13410extract_expsyms_cmds=$lt_extract_expsyms_cmds
13411
13412# Variables whose values should be saved in libtool wrapper scripts and
13413# restored at link time.
13414variables_saved_for_relink=$lt_variables_saved_for_relink
13415
13416# Do we need the "lib" prefix for modules?
13417need_lib_prefix=$need_lib_prefix
13418
13419# Do we need a version for libraries?
13420need_version=$need_version
13421
13422# Library versioning type.
13423version_type=$version_type
13424
13425# Shared library runtime path variable.
13426runpath_var=$runpath_var
13427
13428# Shared library path variable.
13429shlibpath_var=$shlibpath_var
13430
13431# Is shlibpath searched before the hard-coded library search path?
13432shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13433
13434# Format of library name prefix.
13435libname_spec=$lt_libname_spec
13436
13437# List of archive names.  First name is the real one, the rest are links.
13438# The last name is the one that the linker finds with -lNAME
13439library_names_spec=$lt_library_names_spec
13440
13441# The coded name of the library, if different from the real name.
13442soname_spec=$lt_soname_spec
13443
13444# Permission mode override for installation of shared libraries.
13445install_override_mode=$lt_install_override_mode
13446
13447# Command to use after installation of a shared archive.
13448postinstall_cmds=$lt_postinstall_cmds
13449
13450# Command to use after uninstallation of a shared archive.
13451postuninstall_cmds=$lt_postuninstall_cmds
13452
13453# Commands used to finish a libtool library installation in a directory.
13454finish_cmds=$lt_finish_cmds
13455
13456# As "finish_cmds", except a single script fragment to be evaled but
13457# not shown.
13458finish_eval=$lt_finish_eval
13459
13460# Whether we should hardcode library paths into libraries.
13461hardcode_into_libs=$hardcode_into_libs
13462
13463# Compile-time system search path for libraries.
13464sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13465
13466# Run-time system search path for libraries.
13467sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13468
13469# Whether dlopen is supported.
13470dlopen_support=$enable_dlopen
13471
13472# Whether dlopen of programs is supported.
13473dlopen_self=$enable_dlopen_self
13474
13475# Whether dlopen of statically linked programs is supported.
13476dlopen_self_static=$enable_dlopen_self_static
13477
13478# Commands to strip libraries.
13479old_striplib=$lt_old_striplib
13480striplib=$lt_striplib
13481
13482
13483# The linker used to build libraries.
13484LD=$lt_LD
13485
13486# How to create reloadable object files.
13487reload_flag=$lt_reload_flag
13488reload_cmds=$lt_reload_cmds
13489
13490# Commands used to build an old-style archive.
13491old_archive_cmds=$lt_old_archive_cmds
13492
13493# A language specific compiler.
13494CC=$lt_compiler
13495
13496# Is the compiler the GNU compiler?
13497with_gcc=$GCC
13498
13499# Compiler flag to turn off builtin functions.
13500no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13501
13502# How to pass a linker flag through the compiler.
13503wl=$lt_lt_prog_compiler_wl
13504
13505# Additional compiler flags for building library objects.
13506pic_flag=$lt_lt_prog_compiler_pic
13507
13508# Compiler flag to prevent dynamic linking.
13509link_static_flag=$lt_lt_prog_compiler_static
13510
13511# Does compiler simultaneously support -c and -o options?
13512compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13513
13514# Whether or not to add -lc for building shared libraries.
13515build_libtool_need_lc=$archive_cmds_need_lc
13516
13517# Whether or not to disallow shared libs when runtime libs are static.
13518allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13519
13520# Compiler flag to allow reflexive dlopens.
13521export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13522
13523# Compiler flag to generate shared objects directly from archives.
13524whole_archive_flag_spec=$lt_whole_archive_flag_spec
13525
13526# Whether the compiler copes with passing no objects directly.
13527compiler_needs_object=$lt_compiler_needs_object
13528
13529# Create an old-style archive from a shared archive.
13530old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13531
13532# Create a temporary old-style archive to link instead of a shared archive.
13533old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13534
13535# Commands used to build a shared archive.
13536archive_cmds=$lt_archive_cmds
13537archive_expsym_cmds=$lt_archive_expsym_cmds
13538
13539# Commands used to build a loadable module if different from building
13540# a shared archive.
13541module_cmds=$lt_module_cmds
13542module_expsym_cmds=$lt_module_expsym_cmds
13543
13544# Whether we are building with GNU ld or not.
13545with_gnu_ld=$lt_with_gnu_ld
13546
13547# Flag that allows shared libraries with undefined symbols to be built.
13548allow_undefined_flag=$lt_allow_undefined_flag
13549
13550# Flag that enforces no undefined symbols.
13551no_undefined_flag=$lt_no_undefined_flag
13552
13553# Flag to hardcode \$libdir into a binary during linking.
13554# This must work even if \$libdir does not exist
13555hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13556
13557# If ld is used when linking, flag to hardcode \$libdir into a binary
13558# during linking.  This must work even if \$libdir does not exist.
13559hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13560
13561# Whether we need a single "-rpath" flag with a separated argument.
13562hardcode_libdir_separator=$lt_hardcode_libdir_separator
13563
13564# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13565# DIR into the resulting binary.
13566hardcode_direct=$hardcode_direct
13567
13568# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13569# DIR into the resulting binary and the resulting library dependency is
13570# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13571# library is relocated.
13572hardcode_direct_absolute=$hardcode_direct_absolute
13573
13574# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13575# into the resulting binary.
13576hardcode_minus_L=$hardcode_minus_L
13577
13578# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13579# into the resulting binary.
13580hardcode_shlibpath_var=$hardcode_shlibpath_var
13581
13582# Set to "yes" if building a shared library automatically hardcodes DIR
13583# into the library and all subsequent libraries and executables linked
13584# against it.
13585hardcode_automatic=$hardcode_automatic
13586
13587# Set to yes if linker adds runtime paths of dependent libraries
13588# to runtime path list.
13589inherit_rpath=$inherit_rpath
13590
13591# Whether libtool must link a program against all its dependency libraries.
13592link_all_deplibs=$link_all_deplibs
13593
13594# Fix the shell variable \$srcfile for the compiler.
13595fix_srcfile_path=$lt_fix_srcfile_path
13596
13597# Set to "yes" if exported symbols are required.
13598always_export_symbols=$always_export_symbols
13599
13600# The commands to list exported symbols.
13601export_symbols_cmds=$lt_export_symbols_cmds
13602
13603# Symbols that should not be listed in the preloaded symbols.
13604exclude_expsyms=$lt_exclude_expsyms
13605
13606# Symbols that must always be exported.
13607include_expsyms=$lt_include_expsyms
13608
13609# Commands necessary for linking programs (against libraries) with templates.
13610prelink_cmds=$lt_prelink_cmds
13611
13612# Specify filename containing input files.
13613file_list_spec=$lt_file_list_spec
13614
13615# How to hardcode a shared library path into an executable.
13616hardcode_action=$hardcode_action
13617
13618# ### END LIBTOOL CONFIG
13619
13620_LT_EOF
13621
13622  case $host_os in
13623  aix3*)
13624    cat <<\_LT_EOF >> "$cfgfile"
13625# AIX sometimes has problems with the GCC collect2 program.  For some
13626# reason, if we set the COLLECT_NAMES environment variable, the problems
13627# vanish in a puff of smoke.
13628if test "X${COLLECT_NAMES+set}" != Xset; then
13629  COLLECT_NAMES=
13630  export COLLECT_NAMES
13631fi
13632_LT_EOF
13633    ;;
13634  esac
13635
13636
13637ltmain="$ac_aux_dir/ltmain.sh"
13638
13639
13640  # We use sed instead of cat because bash on DJGPP gets confused if
13641  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13642  # text mode, it properly converts lines to CR/LF.  This bash problem
13643  # is reportedly fixed, but why not run on old versions too?
13644  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13645    || (rm -f "$cfgfile"; exit 1)
13646
13647  case $xsi_shell in
13648  yes)
13649    cat << \_LT_EOF >> "$cfgfile"
13650
13651# func_dirname file append nondir_replacement
13652# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13653# otherwise set result to NONDIR_REPLACEMENT.
13654func_dirname ()
13655{
13656  case ${1} in
13657    */*) func_dirname_result="${1%/*}${2}" ;;
13658    *  ) func_dirname_result="${3}" ;;
13659  esac
13660}
13661
13662# func_basename file
13663func_basename ()
13664{
13665  func_basename_result="${1##*/}"
13666}
13667
13668# func_dirname_and_basename file append nondir_replacement
13669# perform func_basename and func_dirname in a single function
13670# call:
13671#   dirname:  Compute the dirname of FILE.  If nonempty,
13672#             add APPEND to the result, otherwise set result
13673#             to NONDIR_REPLACEMENT.
13674#             value returned in "$func_dirname_result"
13675#   basename: Compute filename of FILE.
13676#             value retuned in "$func_basename_result"
13677# Implementation must be kept synchronized with func_dirname
13678# and func_basename. For efficiency, we do not delegate to
13679# those functions but instead duplicate the functionality here.
13680func_dirname_and_basename ()
13681{
13682  case ${1} in
13683    */*) func_dirname_result="${1%/*}${2}" ;;
13684    *  ) func_dirname_result="${3}" ;;
13685  esac
13686  func_basename_result="${1##*/}"
13687}
13688
13689# func_stripname prefix suffix name
13690# strip PREFIX and SUFFIX off of NAME.
13691# PREFIX and SUFFIX must not contain globbing or regex special
13692# characters, hashes, percent signs, but SUFFIX may contain a leading
13693# dot (in which case that matches only a dot).
13694func_stripname ()
13695{
13696  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13697  # positional parameters, so assign one to ordinary parameter first.
13698  func_stripname_result=${3}
13699  func_stripname_result=${func_stripname_result#"${1}"}
13700  func_stripname_result=${func_stripname_result%"${2}"}
13701}
13702
13703# func_opt_split
13704func_opt_split ()
13705{
13706  func_opt_split_opt=${1%%=*}
13707  func_opt_split_arg=${1#*=}
13708}
13709
13710# func_lo2o object
13711func_lo2o ()
13712{
13713  case ${1} in
13714    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13715    *)    func_lo2o_result=${1} ;;
13716  esac
13717}
13718
13719# func_xform libobj-or-source
13720func_xform ()
13721{
13722  func_xform_result=${1%.*}.lo
13723}
13724
13725# func_arith arithmetic-term...
13726func_arith ()
13727{
13728  func_arith_result=$(( $* ))
13729}
13730
13731# func_len string
13732# STRING may not start with a hyphen.
13733func_len ()
13734{
13735  func_len_result=${#1}
13736}
13737
13738_LT_EOF
13739    ;;
13740  *) # Bourne compatible functions.
13741    cat << \_LT_EOF >> "$cfgfile"
13742
13743# func_dirname file append nondir_replacement
13744# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13745# otherwise set result to NONDIR_REPLACEMENT.
13746func_dirname ()
13747{
13748  # Extract subdirectory from the argument.
13749  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13750  if test "X$func_dirname_result" = "X${1}"; then
13751    func_dirname_result="${3}"
13752  else
13753    func_dirname_result="$func_dirname_result${2}"
13754  fi
13755}
13756
13757# func_basename file
13758func_basename ()
13759{
13760  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13761}
13762
13763
13764# func_stripname prefix suffix name
13765# strip PREFIX and SUFFIX off of NAME.
13766# PREFIX and SUFFIX must not contain globbing or regex special
13767# characters, hashes, percent signs, but SUFFIX may contain a leading
13768# dot (in which case that matches only a dot).
13769# func_strip_suffix prefix name
13770func_stripname ()
13771{
13772  case ${2} in
13773    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13774    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13775  esac
13776}
13777
13778# sed scripts:
13779my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13780my_sed_long_arg='1s/^-[^=]*=//'
13781
13782# func_opt_split
13783func_opt_split ()
13784{
13785  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13786  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13787}
13788
13789# func_lo2o object
13790func_lo2o ()
13791{
13792  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13793}
13794
13795# func_xform libobj-or-source
13796func_xform ()
13797{
13798  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13799}
13800
13801# func_arith arithmetic-term...
13802func_arith ()
13803{
13804  func_arith_result=`expr "$@"`
13805}
13806
13807# func_len string
13808# STRING may not start with a hyphen.
13809func_len ()
13810{
13811  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13812}
13813
13814_LT_EOF
13815esac
13816
13817case $lt_shell_append in
13818  yes)
13819    cat << \_LT_EOF >> "$cfgfile"
13820
13821# func_append var value
13822# Append VALUE to the end of shell variable VAR.
13823func_append ()
13824{
13825  eval "$1+=\$2"
13826}
13827_LT_EOF
13828    ;;
13829  *)
13830    cat << \_LT_EOF >> "$cfgfile"
13831
13832# func_append var value
13833# Append VALUE to the end of shell variable VAR.
13834func_append ()
13835{
13836  eval "$1=\$$1\$2"
13837}
13838
13839_LT_EOF
13840    ;;
13841  esac
13842
13843
13844  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13845    || (rm -f "$cfgfile"; exit 1)
13846
13847  mv -f "$cfgfile" "$ofile" ||
13848    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13849  chmod +x "$ofile"
13850
13851 ;;
13852
13853  esac
13854done # for ac_tag
13855
13856
13857as_fn_exit 0
13858_ACEOF
13859ac_clean_files=$ac_clean_files_save
13860
13861test $ac_write_fail = 0 ||
13862  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13863
13864
13865# configure is writing to config.log, and then calls config.status.
13866# config.status does its own redirection, appending to config.log.
13867# Unfortunately, on DOS this fails, as config.log is still kept open
13868# by configure, so config.status won't be able to write to it; its
13869# output is simply discarded.  So we exec the FD to /dev/null,
13870# effectively closing config.log, so it can be properly (re)opened and
13871# appended to by config.status.  When coming back to configure, we
13872# need to make the FD available again.
13873if test "$no_create" != yes; then
13874  ac_cs_success=:
13875  ac_config_status_args=
13876  test "$silent" = yes &&
13877    ac_config_status_args="$ac_config_status_args --quiet"
13878  exec 5>/dev/null
13879  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13880  exec 5>>config.log
13881  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13882  # would make configure fail if this is the last instruction.
13883  $ac_cs_success || as_fn_exit 1
13884fi
13885if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13886  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13887$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13888fi
13889
13890