1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139  emulate sh
140  NULLCMD=:
141  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142  # is contrary to our usage.  Disable this feature.
143  alias -g '\${1+\"\$@\"}'='\"\$@\"'
144  setopt NO_GLOB_SUBST
145else
146  case \`(set -o) 2>/dev/null\` in #(
147  *posix*) :
148    set -o posix ;; #(
149  *) :
150     ;;
151esac
152fi
153"
154  as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168  exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1"
176  if (eval "$as_required") 2>/dev/null; then :
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183else
184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185as_found=false
186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187do
188  IFS=$as_save_IFS
189  test -z "$as_dir" && as_dir=.
190  as_found=:
191  case $as_dir in #(
192	 /*)
193	   for as_base in sh bash ksh sh5; do
194	     # Try only shells that exist, to save several forks.
195	     as_shell=$as_dir/$as_base
196	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198  CONFIG_SHELL=$as_shell as_have_required=yes
199		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  break 2
201fi
202fi
203	   done;;
204       esac
205  as_found=false
206done
207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209  CONFIG_SHELL=$SHELL as_have_required=yes
210fi; }
211IFS=$as_save_IFS
212
213
214      if test "x$CONFIG_SHELL" != x; then :
215  # We cannot yet assume a decent shell, so we have to provide a
216	# neutralization value for shells without unset; and this also
217	# works around shells that cannot unset nonexistent variables.
218	# Preserve -v and -x to the replacement shell.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	case $- in # ((((
224	  *v*x* | *x*v* ) as_opts=-vx ;;
225	  *v* ) as_opts=-v ;;
226	  *x* ) as_opts=-x ;;
227	  * ) as_opts= ;;
228	esac
229	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230fi
231
232    if test x$as_have_required = xno; then :
233  $as_echo "$0: This script requires a shell more modern than all"
234  $as_echo "$0: the shells that I found on your system."
235  if test x${ZSH_VERSION+set} = xset ; then
236    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238  else
239    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240$0: including any error possibly output before this
241$0: message. Then install a modern shell, or manually run
242$0: the script under such a shell if you do have one."
243  fi
244  exit 1
245fi
246fi
247fi
248SHELL=${CONFIG_SHELL-/bin/sh}
249export SHELL
250# Unset more variables known to interfere with behavior of common tools.
251CLICOLOR_FORCE= GREP_OPTIONS=
252unset CLICOLOR_FORCE GREP_OPTIONS
253
254## --------------------- ##
255## M4sh Shell Functions. ##
256## --------------------- ##
257# as_fn_unset VAR
258# ---------------
259# Portably unset VAR.
260as_fn_unset ()
261{
262  { eval $1=; unset $1;}
263}
264as_unset=as_fn_unset
265
266# as_fn_set_status STATUS
267# -----------------------
268# Set $? to STATUS, without forking.
269as_fn_set_status ()
270{
271  return $1
272} # as_fn_set_status
273
274# as_fn_exit STATUS
275# -----------------
276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277as_fn_exit ()
278{
279  set +e
280  as_fn_set_status $1
281  exit $1
282} # as_fn_exit
283
284# as_fn_mkdir_p
285# -------------
286# Create "$as_dir" as a directory, including parents if necessary.
287as_fn_mkdir_p ()
288{
289
290  case $as_dir in #(
291  -*) as_dir=./$as_dir;;
292  esac
293  test -d "$as_dir" || eval $as_mkdir_p || {
294    as_dirs=
295    while :; do
296      case $as_dir in #(
297      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298      *) as_qdir=$as_dir;;
299      esac
300      as_dirs="'$as_qdir' $as_dirs"
301      as_dir=`$as_dirname -- "$as_dir" ||
302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303	 X"$as_dir" : 'X\(//\)[^/]' \| \
304	 X"$as_dir" : 'X\(//\)$' \| \
305	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306$as_echo X"$as_dir" |
307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\/\)[^/].*/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)$/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\).*/{
320	    s//\1/
321	    q
322	  }
323	  s/.*/./; q'`
324      test -d "$as_dir" && break
325    done
326    test -z "$as_dirs" || eval "mkdir $as_dirs"
327  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330} # as_fn_mkdir_p
331# as_fn_append VAR VALUE
332# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive
336# implementations.
337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338  eval 'as_fn_append ()
339  {
340    eval $1+=\$2
341  }'
342else
343  as_fn_append ()
344  {
345    eval $1=\$$1\$2
346  }
347fi # as_fn_append
348
349# as_fn_arith ARG...
350# ------------------
351# Perform arithmetic evaluation on the ARGs, and store the result in the
352# global $as_val. Take advantage of shells that can avoid forks. The arguments
353# must be portable across $(()) and expr.
354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355  eval 'as_fn_arith ()
356  {
357    as_val=$(( $* ))
358  }'
359else
360  as_fn_arith ()
361  {
362    as_val=`expr "$@" || test $? -eq 1`
363  }
364fi # as_fn_arith
365
366
367# as_fn_error STATUS ERROR [LINENO LOG_FD]
368# ----------------------------------------
369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371# script with STATUS, using 1 if that was 0.
372as_fn_error ()
373{
374  as_status=$1; test $as_status -eq 0 && as_status=1
375  if test "$4"; then
376    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378  fi
379  $as_echo "$as_me: error: $2" >&2
380  as_fn_exit $as_status
381} # as_fn_error
382
383if expr a : '\(a\)' >/dev/null 2>&1 &&
384   test "X`expr 00001 : '.*\(...\)'`" = X001; then
385  as_expr=expr
386else
387  as_expr=false
388fi
389
390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391  as_basename=basename
392else
393  as_basename=false
394fi
395
396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397  as_dirname=dirname
398else
399  as_dirname=false
400fi
401
402as_me=`$as_basename -- "$0" ||
403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404	 X"$0" : 'X\(//\)$' \| \
405	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406$as_echo X/"$0" |
407    sed '/^.*\/\([^/][^/]*\)\/*$/{
408	    s//\1/
409	    q
410	  }
411	  /^X\/\(\/\/\)$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\).*/{
416	    s//\1/
417	    q
418	  }
419	  s/.*/./; q'`
420
421# Avoid depending upon Character Ranges.
422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425as_cr_digits='0123456789'
426as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429  as_lineno_1=$LINENO as_lineno_1a=$LINENO
430  as_lineno_2=$LINENO as_lineno_2a=$LINENO
431  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434  sed -n '
435    p
436    /[$]LINENO/=
437  ' <$as_myself |
438    sed '
439      s/[$]LINENO.*/&-/
440      t lineno
441      b
442      :lineno
443      N
444      :loop
445      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446      t loop
447      s/-\n.*//
448    ' >$as_me.lineno &&
449  chmod +x "$as_me.lineno" ||
450    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452  # Don't try to exec as it changes $[0], causing all sort of problems
453  # (the dirname of $[0] is not the place where we might find the
454  # original and so on.  Autoconf is especially sensitive to this).
455  . "./$as_me.lineno"
456  # Exit status is that of the last command.
457  exit
458}
459
460ECHO_C= ECHO_N= ECHO_T=
461case `echo -n x` in #(((((
462-n*)
463  case `echo 'xy\c'` in
464  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
465  xy)  ECHO_C='\c';;
466  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467       ECHO_T='	';;
468  esac;;
469*)
470  ECHO_N='-n';;
471esac
472
473rm -f conf$$ conf$$.exe conf$$.file
474if test -d conf$$.dir; then
475  rm -f conf$$.dir/conf$$.file
476else
477  rm -f conf$$.dir
478  mkdir conf$$.dir 2>/dev/null
479fi
480if (echo >conf$$.file) 2>/dev/null; then
481  if ln -s conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s='ln -s'
483    # ... but there are two gotchas:
484    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486    # In both cases, we have to default to `cp -p'.
487    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488      as_ln_s='cp -p'
489  elif ln conf$$.file conf$$ 2>/dev/null; then
490    as_ln_s=ln
491  else
492    as_ln_s='cp -p'
493  fi
494else
495  as_ln_s='cp -p'
496fi
497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498rmdir conf$$.dir 2>/dev/null
499
500if mkdir -p . 2>/dev/null; then
501  as_mkdir_p='mkdir -p "$as_dir"'
502else
503  test -d ./-p && rmdir ./-p
504  as_mkdir_p=false
505fi
506
507if test -x / >/dev/null 2>&1; then
508  as_test_x='test -x'
509else
510  if ls -dL / >/dev/null 2>&1; then
511    as_ls_L_option=L
512  else
513    as_ls_L_option=
514  fi
515  as_test_x='
516    eval sh -c '\''
517      if test -d "$1"; then
518	test -d "$1/.";
519      else
520	case $1 in #(
521	-*)set "./$1";;
522	esac;
523	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524	???[sx]*):;;*)false;;esac;fi
525    '\'' sh
526  '
527fi
528as_executable_p=$as_test_x
529
530# Sed expression to map a string onto a valid CPP name.
531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533# Sed expression to map a string onto a valid variable name.
534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537
538# Check that we are running under the correct shell.
539SHELL=${CONFIG_SHELL-/bin/sh}
540
541case X$lt_ECHO in
542X*--fallback-echo)
543  # Remove one level of quotation (which was required for Make).
544  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
545  ;;
546esac
547
548ECHO=${lt_ECHO-echo}
549if test "X$1" = X--no-reexec; then
550  # Discard the --no-reexec flag, and continue.
551  shift
552elif test "X$1" = X--fallback-echo; then
553  # Avoid inline document here, it may be left over
554  :
555elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
556  # Yippee, $ECHO works!
557  :
558else
559  # Restart under the correct shell.
560  exec $SHELL "$0" --no-reexec ${1+"$@"}
561fi
562
563if test "X$1" = X--fallback-echo; then
564  # used as fallback echo
565  shift
566  cat <<_LT_EOF
567$*
568_LT_EOF
569  exit 0
570fi
571
572# The HP-UX ksh and POSIX shell print the target directory to stdout
573# if CDPATH is set.
574(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
576if test -z "$lt_ECHO"; then
577  if test "X${echo_test_string+set}" != Xset; then
578    # find a string as large as possible, as long as the shell can cope with it
579    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
582	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
583      then
584        break
585      fi
586    done
587  fi
588
589  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
590     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
591     test "X$echo_testing_string" = "X$echo_test_string"; then
592    :
593  else
594    # The Solaris, AIX, and Digital Unix default echo programs unquote
595    # backslashes.  This makes it impossible to quote backslashes using
596    #   echo "$something" | sed 's/\\/\\\\/g'
597    #
598    # So, first we look for a working echo in the user's PATH.
599
600    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601    for dir in $PATH /usr/ucb; do
602      IFS="$lt_save_ifs"
603      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606         test "X$echo_testing_string" = "X$echo_test_string"; then
607        ECHO="$dir/echo"
608        break
609      fi
610    done
611    IFS="$lt_save_ifs"
612
613    if test "X$ECHO" = Xecho; then
614      # We didn't find a better echo, so look for alternatives.
615      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
616         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
617         test "X$echo_testing_string" = "X$echo_test_string"; then
618        # This shell has a builtin print -r that does the trick.
619        ECHO='print -r'
620      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
621	   test "X$CONFIG_SHELL" != X/bin/ksh; then
622        # If we have ksh, try running configure again with it.
623        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624        export ORIGINAL_CONFIG_SHELL
625        CONFIG_SHELL=/bin/ksh
626        export CONFIG_SHELL
627        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
628      else
629        # Try using printf.
630        ECHO='printf %s\n'
631        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
632	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
633	   test "X$echo_testing_string" = "X$echo_test_string"; then
634	  # Cool, printf works
635	  :
636        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637	     test "X$echo_testing_string" = 'X\t' &&
638	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639	     test "X$echo_testing_string" = "X$echo_test_string"; then
640	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
641	  export CONFIG_SHELL
642	  SHELL="$CONFIG_SHELL"
643	  export SHELL
644	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
645        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646	     test "X$echo_testing_string" = 'X\t' &&
647	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648	     test "X$echo_testing_string" = "X$echo_test_string"; then
649	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
650        else
651	  # maybe with a smaller string...
652	  prev=:
653
654	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
656	    then
657	      break
658	    fi
659	    prev="$cmd"
660	  done
661
662	  if test "$prev" != 'sed 50q "$0"'; then
663	    echo_test_string=`eval $prev`
664	    export echo_test_string
665	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
666	  else
667	    # Oops.  We lost completely, so just stick with echo.
668	    ECHO=echo
669	  fi
670        fi
671      fi
672    fi
673  fi
674fi
675
676# Copy echo and quote the copy suitably for passing to libtool from
677# the Makefile, instead of quoting the original, which is used later.
678lt_ECHO=$ECHO
679if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681fi
682
683
684
685
686test -n "$DJDIR" || exec 7<&0 </dev/null
687exec 6>&1
688
689# Name of the host.
690# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
691# so uname gets run too.
692ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
693
694#
695# Initializations.
696#
697ac_default_prefix=/usr/local
698ac_clean_files=
699ac_config_libobj_dir=.
700LIBOBJS=
701cross_compiling=no
702subdirs=
703MFLAGS=
704MAKEFLAGS=
705
706# Identity of this package.
707PACKAGE_NAME=
708PACKAGE_TARNAME=
709PACKAGE_VERSION=
710PACKAGE_STRING=
711PACKAGE_BUGREPORT=
712PACKAGE_URL=
713
714ac_unique_file="entities.c"
715# Factoring default headers for most tests.
716ac_includes_default="\
717#include <stdio.h>
718#ifdef HAVE_SYS_TYPES_H
719# include <sys/types.h>
720#endif
721#ifdef HAVE_SYS_STAT_H
722# include <sys/stat.h>
723#endif
724#ifdef STDC_HEADERS
725# include <stdlib.h>
726# include <stddef.h>
727#else
728# ifdef HAVE_STDLIB_H
729#  include <stdlib.h>
730# endif
731#endif
732#ifdef HAVE_STRING_H
733# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734#  include <memory.h>
735# endif
736# include <string.h>
737#endif
738#ifdef HAVE_STRINGS_H
739# include <strings.h>
740#endif
741#ifdef HAVE_INTTYPES_H
742# include <inttypes.h>
743#endif
744#ifdef HAVE_STDINT_H
745# include <stdint.h>
746#endif
747#ifdef HAVE_UNISTD_H
748# include <unistd.h>
749#endif"
750
751ac_subst_vars='am__EXEEXT_FALSE
752am__EXEEXT_TRUE
753LTLIBOBJS
754LIBOBJS
755PYTHON_TESTS
756RELDATE
757RDL_LIBS
758M_LIBS
759PYTHON_SITE_PACKAGES
760PYTHON_INCLUDES
761PYTHON_VERSION
762HAVE_ISINF
763HAVE_ISNAN
764XML_INCLUDEDIR
765ICONV_LIBS
766XML_LIBTOOLLIBS
767XML_LIBS
768XML_LIBDIR
769XML_CFLAGS
770CYGWIN_EXTRA_PYTHON_LIBADD
771CYGWIN_EXTRA_LDFLAGS
772WIN32_EXTRA_LDFLAGS
773WIN32_EXTRA_LIBADD
774WITH_RUN_DEBUG
775WITH_MEM_DEBUG
776TEST_DEBUG
777DEBUG_OBJ
778WITH_DEBUG
779TEST_REGEXPS
780WITH_REGEXPS
781TEST_SCHEMAS
782WITH_SCHEMAS
783TEST_SCHEMATRON
784WITH_SCHEMATRON
785WITH_ISO8859X
786WITH_ICONV
787WITH_OUTPUT
788TEST_XPATH
789XPATH_OBJ
790WITH_XPATH
791TEST_XINCLUDE
792XINCLUDE_OBJ
793WITH_XINCLUDE
794TEST_C14N
795C14N_OBJ
796WITH_C14N
797TEST_XPTR
798XPTR_OBJ
799WITH_XPTR
800DOCB_OBJ
801WITH_DOCB
802TEST_CATALOG
803CATALOG_OBJ
804WITH_CATALOG
805TEST_VTIME
806TEST_VALID
807WITH_VALID
808TEST_PHTML
809TEST_HTML
810HTML_OBJ
811WITH_HTML
812TEST_PUSH
813WITH_PUSH
814TEST_SAX
815WITH_SAX1
816TEST_PATTERN
817WITH_PATTERN
818WITH_WRITER
819READER_TEST
820WITH_READER
821WITH_LEGACY
822HTTP_OBJ
823WITH_HTTP
824FTP_OBJ
825WITH_FTP
826WITH_TREE
827THREADS_W32
828TEST_THREADS
829THREAD_CFLAGS
830WITH_THREADS
831BASE_THREAD_LIBS
832THREAD_LIBS
833WITH_TRIO
834WITH_TRIO_SOURCES_FALSE
835WITH_TRIO_SOURCES_TRUE
836STATIC_BINARIES
837TEST_MODULES
838MODULE_EXTENSION
839MODULE_PLATFORM_LIBS
840WITH_MODULES
841PYTHON_LIBS
842PYTHON_SUBDIR
843pythondir
844WITH_PYTHON_FALSE
845WITH_PYTHON_TRUE
846PYTHON
847WITH_ZLIB
848Z_LIBS
849Z_CFLAGS
850REBUILD_DOCS_FALSE
851REBUILD_DOCS_TRUE
852HTML_DIR
853USE_VERSION_SCRIPT_FALSE
854USE_VERSION_SCRIPT_TRUE
855VERSION_SCRIPT_FLAGS
856OTOOL64
857OTOOL
858LIPO
859NMEDIT
860DSYMUTIL
861lt_ECHO
862RANLIB
863AR
864LN_S
865NM
866ac_ct_DUMPBIN
867DUMPBIN
868LD
869FGREP
870SED
871LIBTOOL
872OBJDUMP
873DLLTOOL
874AS
875ANSI2KNR
876U
877EGREP
878GREP
879XSLTPROC
880XMLLINT
881WGET
882PERL
883TAR
884MV
885RM
886CPP
887am__fastdepCC_FALSE
888am__fastdepCC_TRUE
889CCDEPMODE
890AMDEPBACKSLASH
891AMDEP_FALSE
892AMDEP_TRUE
893am__quote
894am__include
895DEPDIR
896OBJEXT
897EXEEXT
898ac_ct_CC
899CPPFLAGS
900LDFLAGS
901CFLAGS
902CC
903am__untar
904am__tar
905AMTAR
906am__leading_dot
907SET_MAKE
908AWK
909mkdir_p
910MKDIR_P
911INSTALL_STRIP_PROGRAM
912STRIP
913install_sh
914MAKEINFO
915AUTOHEADER
916AUTOMAKE
917AUTOCONF
918ACLOCAL
919VERSION
920PACKAGE
921CYGPATH_W
922am__isrc
923INSTALL_DATA
924INSTALL_SCRIPT
925INSTALL_PROGRAM
926LIBXML_VERSION_EXTRA
927LIBXML_VERSION_NUMBER
928LIBXML_VERSION_INFO
929LIBXML_VERSION
930LIBXML_MICRO_VERSION
931LIBXML_MINOR_VERSION
932LIBXML_MAJOR_VERSION
933host_os
934host_vendor
935host_cpu
936host
937build_os
938build_vendor
939build_cpu
940build
941target_alias
942host_alias
943build_alias
944LIBS
945ECHO_T
946ECHO_N
947ECHO_C
948DEFS
949mandir
950localedir
951libdir
952psdir
953pdfdir
954dvidir
955htmldir
956infodir
957docdir
958oldincludedir
959includedir
960localstatedir
961sharedstatedir
962sysconfdir
963datadir
964datarootdir
965libexecdir
966sbindir
967bindir
968program_transform_name
969prefix
970exec_prefix
971PACKAGE_URL
972PACKAGE_BUGREPORT
973PACKAGE_STRING
974PACKAGE_VERSION
975PACKAGE_TARNAME
976PACKAGE_NAME
977PATH_SEPARATOR
978SHELL'
979ac_subst_files=''
980ac_user_opts='
981enable_option_checking
982enable_dependency_tracking
983enable_shared
984enable_static
985with_pic
986enable_fast_install
987with_gnu_ld
988enable_libtool_lock
989with_c14n
990with_catalog
991with_debug
992with_docbook
993with_fexceptions
994with_ftp
995with_history
996with_html
997with_html_dir
998with_html_subdir
999with_http
1000with_iconv
1001with_iso8859x
1002with_legacy
1003with_mem_debug
1004with_minimum
1005with_output
1006with_pattern
1007with_push
1008with_python
1009with_reader
1010with_readline
1011with_regexps
1012with_run_debug
1013with_sax1
1014with_schemas
1015with_schematron
1016with_threads
1017with_thread_alloc
1018with_tree
1019with_valid
1020with_writer
1021with_xinclude
1022with_xpath
1023with_xptr
1024with_modules
1025with_zlib
1026with_coverage
1027enable_rebuild_docs
1028enable_ipv6
1029'
1030      ac_precious_vars='build_alias
1031host_alias
1032target_alias
1033CC
1034CFLAGS
1035LDFLAGS
1036LIBS
1037CPPFLAGS
1038CPP'
1039
1040
1041# Initialize some variables set by options.
1042ac_init_help=
1043ac_init_version=false
1044ac_unrecognized_opts=
1045ac_unrecognized_sep=
1046# The variables have the same names as the options, with
1047# dashes changed to underlines.
1048cache_file=/dev/null
1049exec_prefix=NONE
1050no_create=
1051no_recursion=
1052prefix=NONE
1053program_prefix=NONE
1054program_suffix=NONE
1055program_transform_name=s,x,x,
1056silent=
1057site=
1058srcdir=
1059verbose=
1060x_includes=NONE
1061x_libraries=NONE
1062
1063# Installation directory options.
1064# These are left unexpanded so users can "make install exec_prefix=/foo"
1065# and all the variables that are supposed to be based on exec_prefix
1066# by default will actually change.
1067# Use braces instead of parens because sh, perl, etc. also accept them.
1068# (The list follows the same order as the GNU Coding Standards.)
1069bindir='${exec_prefix}/bin'
1070sbindir='${exec_prefix}/sbin'
1071libexecdir='${exec_prefix}/libexec'
1072datarootdir='${prefix}/share'
1073datadir='${datarootdir}'
1074sysconfdir='${prefix}/etc'
1075sharedstatedir='${prefix}/com'
1076localstatedir='${prefix}/var'
1077includedir='${prefix}/include'
1078oldincludedir='/usr/include'
1079docdir='${datarootdir}/doc/${PACKAGE}'
1080infodir='${datarootdir}/info'
1081htmldir='${docdir}'
1082dvidir='${docdir}'
1083pdfdir='${docdir}'
1084psdir='${docdir}'
1085libdir='${exec_prefix}/lib'
1086localedir='${datarootdir}/locale'
1087mandir='${datarootdir}/man'
1088
1089ac_prev=
1090ac_dashdash=
1091for ac_option
1092do
1093  # If the previous option needs an argument, assign it.
1094  if test -n "$ac_prev"; then
1095    eval $ac_prev=\$ac_option
1096    ac_prev=
1097    continue
1098  fi
1099
1100  case $ac_option in
1101  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1102  *=)   ac_optarg= ;;
1103  *)    ac_optarg=yes ;;
1104  esac
1105
1106  # Accept the important Cygnus configure options, so we can diagnose typos.
1107
1108  case $ac_dashdash$ac_option in
1109  --)
1110    ac_dashdash=yes ;;
1111
1112  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1113    ac_prev=bindir ;;
1114  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1115    bindir=$ac_optarg ;;
1116
1117  -build | --build | --buil | --bui | --bu)
1118    ac_prev=build_alias ;;
1119  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1120    build_alias=$ac_optarg ;;
1121
1122  -cache-file | --cache-file | --cache-fil | --cache-fi \
1123  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1124    ac_prev=cache_file ;;
1125  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1126  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1127    cache_file=$ac_optarg ;;
1128
1129  --config-cache | -C)
1130    cache_file=config.cache ;;
1131
1132  -datadir | --datadir | --datadi | --datad)
1133    ac_prev=datadir ;;
1134  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1135    datadir=$ac_optarg ;;
1136
1137  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1138  | --dataroo | --dataro | --datar)
1139    ac_prev=datarootdir ;;
1140  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1141  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1142    datarootdir=$ac_optarg ;;
1143
1144  -disable-* | --disable-*)
1145    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1146    # Reject names that are not valid shell variable names.
1147    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148      as_fn_error $? "invalid feature name: $ac_useropt"
1149    ac_useropt_orig=$ac_useropt
1150    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151    case $ac_user_opts in
1152      *"
1153"enable_$ac_useropt"
1154"*) ;;
1155      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1156	 ac_unrecognized_sep=', ';;
1157    esac
1158    eval enable_$ac_useropt=no ;;
1159
1160  -docdir | --docdir | --docdi | --doc | --do)
1161    ac_prev=docdir ;;
1162  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1163    docdir=$ac_optarg ;;
1164
1165  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1166    ac_prev=dvidir ;;
1167  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1168    dvidir=$ac_optarg ;;
1169
1170  -enable-* | --enable-*)
1171    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1172    # Reject names that are not valid shell variable names.
1173    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174      as_fn_error $? "invalid feature name: $ac_useropt"
1175    ac_useropt_orig=$ac_useropt
1176    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177    case $ac_user_opts in
1178      *"
1179"enable_$ac_useropt"
1180"*) ;;
1181      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1182	 ac_unrecognized_sep=', ';;
1183    esac
1184    eval enable_$ac_useropt=\$ac_optarg ;;
1185
1186  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1187  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1188  | --exec | --exe | --ex)
1189    ac_prev=exec_prefix ;;
1190  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1191  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1192  | --exec=* | --exe=* | --ex=*)
1193    exec_prefix=$ac_optarg ;;
1194
1195  -gas | --gas | --ga | --g)
1196    # Obsolete; use --with-gas.
1197    with_gas=yes ;;
1198
1199  -help | --help | --hel | --he | -h)
1200    ac_init_help=long ;;
1201  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1202    ac_init_help=recursive ;;
1203  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1204    ac_init_help=short ;;
1205
1206  -host | --host | --hos | --ho)
1207    ac_prev=host_alias ;;
1208  -host=* | --host=* | --hos=* | --ho=*)
1209    host_alias=$ac_optarg ;;
1210
1211  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1212    ac_prev=htmldir ;;
1213  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1214  | --ht=*)
1215    htmldir=$ac_optarg ;;
1216
1217  -includedir | --includedir | --includedi | --included | --include \
1218  | --includ | --inclu | --incl | --inc)
1219    ac_prev=includedir ;;
1220  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1221  | --includ=* | --inclu=* | --incl=* | --inc=*)
1222    includedir=$ac_optarg ;;
1223
1224  -infodir | --infodir | --infodi | --infod | --info | --inf)
1225    ac_prev=infodir ;;
1226  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1227    infodir=$ac_optarg ;;
1228
1229  -libdir | --libdir | --libdi | --libd)
1230    ac_prev=libdir ;;
1231  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1232    libdir=$ac_optarg ;;
1233
1234  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1235  | --libexe | --libex | --libe)
1236    ac_prev=libexecdir ;;
1237  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1238  | --libexe=* | --libex=* | --libe=*)
1239    libexecdir=$ac_optarg ;;
1240
1241  -localedir | --localedir | --localedi | --localed | --locale)
1242    ac_prev=localedir ;;
1243  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1244    localedir=$ac_optarg ;;
1245
1246  -localstatedir | --localstatedir | --localstatedi | --localstated \
1247  | --localstate | --localstat | --localsta | --localst | --locals)
1248    ac_prev=localstatedir ;;
1249  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1250  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1251    localstatedir=$ac_optarg ;;
1252
1253  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1254    ac_prev=mandir ;;
1255  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1256    mandir=$ac_optarg ;;
1257
1258  -nfp | --nfp | --nf)
1259    # Obsolete; use --without-fp.
1260    with_fp=no ;;
1261
1262  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1263  | --no-cr | --no-c | -n)
1264    no_create=yes ;;
1265
1266  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1267  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1268    no_recursion=yes ;;
1269
1270  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1271  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1272  | --oldin | --oldi | --old | --ol | --o)
1273    ac_prev=oldincludedir ;;
1274  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1275  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1276  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1277    oldincludedir=$ac_optarg ;;
1278
1279  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1280    ac_prev=prefix ;;
1281  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1282    prefix=$ac_optarg ;;
1283
1284  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1285  | --program-pre | --program-pr | --program-p)
1286    ac_prev=program_prefix ;;
1287  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1288  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1289    program_prefix=$ac_optarg ;;
1290
1291  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1292  | --program-suf | --program-su | --program-s)
1293    ac_prev=program_suffix ;;
1294  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1295  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1296    program_suffix=$ac_optarg ;;
1297
1298  -program-transform-name | --program-transform-name \
1299  | --program-transform-nam | --program-transform-na \
1300  | --program-transform-n | --program-transform- \
1301  | --program-transform | --program-transfor \
1302  | --program-transfo | --program-transf \
1303  | --program-trans | --program-tran \
1304  | --progr-tra | --program-tr | --program-t)
1305    ac_prev=program_transform_name ;;
1306  -program-transform-name=* | --program-transform-name=* \
1307  | --program-transform-nam=* | --program-transform-na=* \
1308  | --program-transform-n=* | --program-transform-=* \
1309  | --program-transform=* | --program-transfor=* \
1310  | --program-transfo=* | --program-transf=* \
1311  | --program-trans=* | --program-tran=* \
1312  | --progr-tra=* | --program-tr=* | --program-t=*)
1313    program_transform_name=$ac_optarg ;;
1314
1315  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1316    ac_prev=pdfdir ;;
1317  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1318    pdfdir=$ac_optarg ;;
1319
1320  -psdir | --psdir | --psdi | --psd | --ps)
1321    ac_prev=psdir ;;
1322  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1323    psdir=$ac_optarg ;;
1324
1325  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1326  | -silent | --silent | --silen | --sile | --sil)
1327    silent=yes ;;
1328
1329  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1330    ac_prev=sbindir ;;
1331  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1332  | --sbi=* | --sb=*)
1333    sbindir=$ac_optarg ;;
1334
1335  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1336  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1337  | --sharedst | --shareds | --shared | --share | --shar \
1338  | --sha | --sh)
1339    ac_prev=sharedstatedir ;;
1340  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1341  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1342  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1343  | --sha=* | --sh=*)
1344    sharedstatedir=$ac_optarg ;;
1345
1346  -site | --site | --sit)
1347    ac_prev=site ;;
1348  -site=* | --site=* | --sit=*)
1349    site=$ac_optarg ;;
1350
1351  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1352    ac_prev=srcdir ;;
1353  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1354    srcdir=$ac_optarg ;;
1355
1356  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1357  | --syscon | --sysco | --sysc | --sys | --sy)
1358    ac_prev=sysconfdir ;;
1359  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1360  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1361    sysconfdir=$ac_optarg ;;
1362
1363  -target | --target | --targe | --targ | --tar | --ta | --t)
1364    ac_prev=target_alias ;;
1365  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1366    target_alias=$ac_optarg ;;
1367
1368  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1369    verbose=yes ;;
1370
1371  -version | --version | --versio | --versi | --vers | -V)
1372    ac_init_version=: ;;
1373
1374  -with-* | --with-*)
1375    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1376    # Reject names that are not valid shell variable names.
1377    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1378      as_fn_error $? "invalid package name: $ac_useropt"
1379    ac_useropt_orig=$ac_useropt
1380    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1381    case $ac_user_opts in
1382      *"
1383"with_$ac_useropt"
1384"*) ;;
1385      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1386	 ac_unrecognized_sep=', ';;
1387    esac
1388    eval with_$ac_useropt=\$ac_optarg ;;
1389
1390  -without-* | --without-*)
1391    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1392    # Reject names that are not valid shell variable names.
1393    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1394      as_fn_error $? "invalid package name: $ac_useropt"
1395    ac_useropt_orig=$ac_useropt
1396    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1397    case $ac_user_opts in
1398      *"
1399"with_$ac_useropt"
1400"*) ;;
1401      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1402	 ac_unrecognized_sep=', ';;
1403    esac
1404    eval with_$ac_useropt=no ;;
1405
1406  --x)
1407    # Obsolete; use --with-x.
1408    with_x=yes ;;
1409
1410  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1411  | --x-incl | --x-inc | --x-in | --x-i)
1412    ac_prev=x_includes ;;
1413  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1414  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1415    x_includes=$ac_optarg ;;
1416
1417  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1418  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1419    ac_prev=x_libraries ;;
1420  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1421  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1422    x_libraries=$ac_optarg ;;
1423
1424  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1425Try \`$0 --help' for more information"
1426    ;;
1427
1428  *=*)
1429    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1430    # Reject names that are not valid shell variable names.
1431    case $ac_envvar in #(
1432      '' | [0-9]* | *[!_$as_cr_alnum]* )
1433      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1434    esac
1435    eval $ac_envvar=\$ac_optarg
1436    export $ac_envvar ;;
1437
1438  *)
1439    # FIXME: should be removed in autoconf 3.0.
1440    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1441    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1442      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1443    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1444    ;;
1445
1446  esac
1447done
1448
1449if test -n "$ac_prev"; then
1450  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1451  as_fn_error $? "missing argument to $ac_option"
1452fi
1453
1454if test -n "$ac_unrecognized_opts"; then
1455  case $enable_option_checking in
1456    no) ;;
1457    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1458    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1459  esac
1460fi
1461
1462# Check all directory arguments for consistency.
1463for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1464		datadir sysconfdir sharedstatedir localstatedir includedir \
1465		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1466		libdir localedir mandir
1467do
1468  eval ac_val=\$$ac_var
1469  # Remove trailing slashes.
1470  case $ac_val in
1471    */ )
1472      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1473      eval $ac_var=\$ac_val;;
1474  esac
1475  # Be sure to have absolute directory names.
1476  case $ac_val in
1477    [\\/$]* | ?:[\\/]* )  continue;;
1478    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1479  esac
1480  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1481done
1482
1483# There might be people who depend on the old broken behavior: `$host'
1484# used to hold the argument of --host etc.
1485# FIXME: To remove some day.
1486build=$build_alias
1487host=$host_alias
1488target=$target_alias
1489
1490# FIXME: To remove some day.
1491if test "x$host_alias" != x; then
1492  if test "x$build_alias" = x; then
1493    cross_compiling=maybe
1494    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1495    If a cross compiler is detected then cross compile mode will be used" >&2
1496  elif test "x$build_alias" != "x$host_alias"; then
1497    cross_compiling=yes
1498  fi
1499fi
1500
1501ac_tool_prefix=
1502test -n "$host_alias" && ac_tool_prefix=$host_alias-
1503
1504test "$silent" = yes && exec 6>/dev/null
1505
1506
1507ac_pwd=`pwd` && test -n "$ac_pwd" &&
1508ac_ls_di=`ls -di .` &&
1509ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1510  as_fn_error $? "working directory cannot be determined"
1511test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1512  as_fn_error $? "pwd does not report name of working directory"
1513
1514
1515# Find the source files, if location was not specified.
1516if test -z "$srcdir"; then
1517  ac_srcdir_defaulted=yes
1518  # Try the directory containing this script, then the parent directory.
1519  ac_confdir=`$as_dirname -- "$as_myself" ||
1520$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1521	 X"$as_myself" : 'X\(//\)[^/]' \| \
1522	 X"$as_myself" : 'X\(//\)$' \| \
1523	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1524$as_echo X"$as_myself" |
1525    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1526	    s//\1/
1527	    q
1528	  }
1529	  /^X\(\/\/\)[^/].*/{
1530	    s//\1/
1531	    q
1532	  }
1533	  /^X\(\/\/\)$/{
1534	    s//\1/
1535	    q
1536	  }
1537	  /^X\(\/\).*/{
1538	    s//\1/
1539	    q
1540	  }
1541	  s/.*/./; q'`
1542  srcdir=$ac_confdir
1543  if test ! -r "$srcdir/$ac_unique_file"; then
1544    srcdir=..
1545  fi
1546else
1547  ac_srcdir_defaulted=no
1548fi
1549if test ! -r "$srcdir/$ac_unique_file"; then
1550  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1551  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1552fi
1553ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1554ac_abs_confdir=`(
1555	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1556	pwd)`
1557# When building in place, set srcdir=.
1558if test "$ac_abs_confdir" = "$ac_pwd"; then
1559  srcdir=.
1560fi
1561# Remove unnecessary trailing slashes from srcdir.
1562# Double slashes in file names in object file debugging info
1563# mess up M-x gdb in Emacs.
1564case $srcdir in
1565*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1566esac
1567for ac_var in $ac_precious_vars; do
1568  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1569  eval ac_env_${ac_var}_value=\$${ac_var}
1570  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1571  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1572done
1573
1574#
1575# Report the --help message.
1576#
1577if test "$ac_init_help" = "long"; then
1578  # Omit some internal or obsolete options to make the list less imposing.
1579  # This message is too long to be a string in the A/UX 3.1 sh.
1580  cat <<_ACEOF
1581\`configure' configures this package to adapt to many kinds of systems.
1582
1583Usage: $0 [OPTION]... [VAR=VALUE]...
1584
1585To assign environment variables (e.g., CC, CFLAGS...), specify them as
1586VAR=VALUE.  See below for descriptions of some of the useful variables.
1587
1588Defaults for the options are specified in brackets.
1589
1590Configuration:
1591  -h, --help              display this help and exit
1592      --help=short        display options specific to this package
1593      --help=recursive    display the short help of all the included packages
1594  -V, --version           display version information and exit
1595  -q, --quiet, --silent   do not print \`checking ...' messages
1596      --cache-file=FILE   cache test results in FILE [disabled]
1597  -C, --config-cache      alias for \`--cache-file=config.cache'
1598  -n, --no-create         do not create output files
1599      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1600
1601Installation directories:
1602  --prefix=PREFIX         install architecture-independent files in PREFIX
1603                          [$ac_default_prefix]
1604  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1605                          [PREFIX]
1606
1607By default, \`make install' will install all the files in
1608\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1609an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1610for instance \`--prefix=\$HOME'.
1611
1612For better control, use the options below.
1613
1614Fine tuning of the installation directories:
1615  --bindir=DIR            user executables [EPREFIX/bin]
1616  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1617  --libexecdir=DIR        program executables [EPREFIX/libexec]
1618  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1619  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1620  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1621  --libdir=DIR            object code libraries [EPREFIX/lib]
1622  --includedir=DIR        C header files [PREFIX/include]
1623  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1624  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1625  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1626  --infodir=DIR           info documentation [DATAROOTDIR/info]
1627  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1628  --mandir=DIR            man documentation [DATAROOTDIR/man]
1629  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1630  --htmldir=DIR           html documentation [DOCDIR]
1631  --dvidir=DIR            dvi documentation [DOCDIR]
1632  --pdfdir=DIR            pdf documentation [DOCDIR]
1633  --psdir=DIR             ps documentation [DOCDIR]
1634_ACEOF
1635
1636  cat <<\_ACEOF
1637
1638Program names:
1639  --program-prefix=PREFIX            prepend PREFIX to installed program names
1640  --program-suffix=SUFFIX            append SUFFIX to installed program names
1641  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1642
1643System types:
1644  --build=BUILD     configure for building on BUILD [guessed]
1645  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1646_ACEOF
1647fi
1648
1649if test -n "$ac_init_help"; then
1650
1651  cat <<\_ACEOF
1652
1653Optional Features:
1654  --disable-option-checking  ignore unrecognized --enable/--with options
1655  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1656  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1657  --disable-dependency-tracking  speeds up one-time build
1658  --enable-dependency-tracking   do not reject slow dependency extractors
1659  --enable-shared[=PKGS]  build shared libraries [default=yes]
1660  --enable-static[=PKGS]  build static libraries [default=yes]
1661  --enable-fast-install[=PKGS]
1662                          optimize for fast installation [default=yes]
1663  --disable-libtool-lock  avoid locking (might break parallel builds)
1664  --enable-rebuild-docs[=yes/no]  rebuild some generated docs [default=yes]
1665  --enable-ipv6[=yes/no]  enables compilation of IPv6 code [default=yes]
1666
1667Optional Packages:
1668  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1669  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1670  --with-pic              try to use only PIC/non-PIC objects [default=use
1671                          both]
1672  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1673  --with-c14n             add the Canonicalization support (on)
1674  --with-catalog          add the Catalog support (on)
1675  --with-debug            add the debugging module (on)
1676  --with-docbook          add Docbook SGML support (on)
1677  --with-fexceptions      add GCC flag -fexceptions for C++ exceptions (off)
1678  --with-ftp              add the FTP support (on)
1679  --with-history          add history support to xmllint shell(off)
1680  --with-html             add the HTML support (on)
1681  --with-html-dir=path    path to base html directory, default
1682                          $datadir/doc/html
1683  --with-html-subdir=path directory used under html-dir, default
1684                          $PACKAGE-$VERSION/html
1685  --with-http             add the HTTP support (on)
1686  --with-iconv[=DIR]      add ICONV support (on)
1687  --with-iso8859x         add ISO8859X support if no iconv (on)
1688  --with-legacy           add deprecated APIs for compatibility (on)
1689  --with-mem-debug        add the memory debugging module (off)
1690  --with-minimum          build a minimally sized library (off)
1691  --with-output           add the serialization support (on)
1692  --with-pattern          add the xmlPattern selection interface (on)
1693  --with-push             add the PUSH parser interfaces (on)
1694  --with-python[=DIR]     build Python bindings if found
1695  --with-reader           add the xmlReader parsing interface (on)
1696  --with-readline=DIR     use readline in DIR
1697  --with-regexps          add Regular Expressions support (on)
1698  --with-run-debug        add the runtime debugging module (off)
1699  --with-sax1             add the older SAX1 interface (on)
1700  --with-schemas          add Relax-NG and Schemas support (on)
1701  --with-schematron       add Schematron support (on)
1702  --with-threads          add multithread support(on)
1703  --with-thread-alloc     add per-thread memory(off)
1704  --with-tree             add the DOM like tree manipulation APIs (on)
1705  --with-valid            add the DTD validation support (on)
1706  --with-writer           add the xmlWriter saving interface (on)
1707  --with-xinclude         add the XInclude support (on)
1708  --with-xpath            add the XPATH support (on)
1709  --with-xptr             add the XPointer support (on)
1710  --with-modules          add the dynamic modules support (on)
1711  --with-zlib[=DIR]       use libz in DIR
1712  --with-coverage         build for code coverage with GCC (off)
1713
1714Some influential environment variables:
1715  CC          C compiler command
1716  CFLAGS      C compiler flags
1717  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1718              nonstandard directory <lib dir>
1719  LIBS        libraries to pass to the linker, e.g. -l<library>
1720  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1721              you have headers in a nonstandard directory <include dir>
1722  CPP         C preprocessor
1723
1724Use these variables to override the choices made by `configure' or to help
1725it to find libraries and programs with nonstandard names/locations.
1726
1727Report bugs to the package provider.
1728_ACEOF
1729ac_status=$?
1730fi
1731
1732if test "$ac_init_help" = "recursive"; then
1733  # If there are subdirs, report their specific --help.
1734  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1735    test -d "$ac_dir" ||
1736      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1737      continue
1738    ac_builddir=.
1739
1740case "$ac_dir" in
1741.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1742*)
1743  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1744  # A ".." for each directory in $ac_dir_suffix.
1745  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1746  case $ac_top_builddir_sub in
1747  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1748  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1749  esac ;;
1750esac
1751ac_abs_top_builddir=$ac_pwd
1752ac_abs_builddir=$ac_pwd$ac_dir_suffix
1753# for backward compatibility:
1754ac_top_builddir=$ac_top_build_prefix
1755
1756case $srcdir in
1757  .)  # We are building in place.
1758    ac_srcdir=.
1759    ac_top_srcdir=$ac_top_builddir_sub
1760    ac_abs_top_srcdir=$ac_pwd ;;
1761  [\\/]* | ?:[\\/]* )  # Absolute name.
1762    ac_srcdir=$srcdir$ac_dir_suffix;
1763    ac_top_srcdir=$srcdir
1764    ac_abs_top_srcdir=$srcdir ;;
1765  *) # Relative name.
1766    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1767    ac_top_srcdir=$ac_top_build_prefix$srcdir
1768    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1769esac
1770ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1771
1772    cd "$ac_dir" || { ac_status=$?; continue; }
1773    # Check for guested configure.
1774    if test -f "$ac_srcdir/configure.gnu"; then
1775      echo &&
1776      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1777    elif test -f "$ac_srcdir/configure"; then
1778      echo &&
1779      $SHELL "$ac_srcdir/configure" --help=recursive
1780    else
1781      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1782    fi || ac_status=$?
1783    cd "$ac_pwd" || { ac_status=$?; break; }
1784  done
1785fi
1786
1787test -n "$ac_init_help" && exit $ac_status
1788if $ac_init_version; then
1789  cat <<\_ACEOF
1790configure
1791generated by GNU Autoconf 2.68
1792
1793Copyright (C) 2010 Free Software Foundation, Inc.
1794This configure script is free software; the Free Software Foundation
1795gives unlimited permission to copy, distribute and modify it.
1796_ACEOF
1797  exit
1798fi
1799
1800## ------------------------ ##
1801## Autoconf initialization. ##
1802## ------------------------ ##
1803
1804# ac_fn_c_try_compile LINENO
1805# --------------------------
1806# Try to compile conftest.$ac_ext, and return whether this succeeded.
1807ac_fn_c_try_compile ()
1808{
1809  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810  rm -f conftest.$ac_objext
1811  if { { ac_try="$ac_compile"
1812case "(($ac_try" in
1813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814  *) ac_try_echo=$ac_try;;
1815esac
1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817$as_echo "$ac_try_echo"; } >&5
1818  (eval "$ac_compile") 2>conftest.err
1819  ac_status=$?
1820  if test -s conftest.err; then
1821    grep -v '^ *+' conftest.err >conftest.er1
1822    cat conftest.er1 >&5
1823    mv -f conftest.er1 conftest.err
1824  fi
1825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826  test $ac_status = 0; } && {
1827	 test -z "$ac_c_werror_flag" ||
1828	 test ! -s conftest.err
1829       } && test -s conftest.$ac_objext; then :
1830  ac_retval=0
1831else
1832  $as_echo "$as_me: failed program was:" >&5
1833sed 's/^/| /' conftest.$ac_ext >&5
1834
1835	ac_retval=1
1836fi
1837  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838  as_fn_set_status $ac_retval
1839
1840} # ac_fn_c_try_compile
1841
1842# ac_fn_c_try_cpp LINENO
1843# ----------------------
1844# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1845ac_fn_c_try_cpp ()
1846{
1847  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848  if { { ac_try="$ac_cpp conftest.$ac_ext"
1849case "(($ac_try" in
1850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851  *) ac_try_echo=$ac_try;;
1852esac
1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854$as_echo "$ac_try_echo"; } >&5
1855  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1856  ac_status=$?
1857  if test -s conftest.err; then
1858    grep -v '^ *+' conftest.err >conftest.er1
1859    cat conftest.er1 >&5
1860    mv -f conftest.er1 conftest.err
1861  fi
1862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863  test $ac_status = 0; } > conftest.i && {
1864	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1865	 test ! -s conftest.err
1866       }; then :
1867  ac_retval=0
1868else
1869  $as_echo "$as_me: failed program was:" >&5
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
1872    ac_retval=1
1873fi
1874  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875  as_fn_set_status $ac_retval
1876
1877} # ac_fn_c_try_cpp
1878
1879# ac_fn_c_try_run LINENO
1880# ----------------------
1881# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1882# that executables *can* be run.
1883ac_fn_c_try_run ()
1884{
1885  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886  if { { ac_try="$ac_link"
1887case "(($ac_try" in
1888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889  *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893  (eval "$ac_link") 2>&5
1894  ac_status=$?
1895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1897  { { case "(($ac_try" in
1898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899  *) ac_try_echo=$ac_try;;
1900esac
1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902$as_echo "$ac_try_echo"; } >&5
1903  (eval "$ac_try") 2>&5
1904  ac_status=$?
1905  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906  test $ac_status = 0; }; }; then :
1907  ac_retval=0
1908else
1909  $as_echo "$as_me: program exited with status $ac_status" >&5
1910       $as_echo "$as_me: failed program was:" >&5
1911sed 's/^/| /' conftest.$ac_ext >&5
1912
1913       ac_retval=$ac_status
1914fi
1915  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917  as_fn_set_status $ac_retval
1918
1919} # ac_fn_c_try_run
1920
1921# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1922# -------------------------------------------------------
1923# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1924# the include files in INCLUDES and setting the cache variable VAR
1925# accordingly.
1926ac_fn_c_check_header_mongrel ()
1927{
1928  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929  if eval \${$3+:} false; then :
1930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931$as_echo_n "checking for $2... " >&6; }
1932if eval \${$3+:} false; then :
1933  $as_echo_n "(cached) " >&6
1934fi
1935eval ac_res=\$$3
1936	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938else
1939  # Is the header compilable?
1940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1941$as_echo_n "checking $2 usability... " >&6; }
1942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h.  */
1944$4
1945#include <$2>
1946_ACEOF
1947if ac_fn_c_try_compile "$LINENO"; then :
1948  ac_header_compiler=yes
1949else
1950  ac_header_compiler=no
1951fi
1952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1954$as_echo "$ac_header_compiler" >&6; }
1955
1956# Is the header present?
1957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1958$as_echo_n "checking $2 presence... " >&6; }
1959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h.  */
1961#include <$2>
1962_ACEOF
1963if ac_fn_c_try_cpp "$LINENO"; then :
1964  ac_header_preproc=yes
1965else
1966  ac_header_preproc=no
1967fi
1968rm -f conftest.err conftest.i conftest.$ac_ext
1969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1970$as_echo "$ac_header_preproc" >&6; }
1971
1972# So?  What about this header?
1973case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1974  yes:no: )
1975    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1976$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1977    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1978$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979    ;;
1980  no:yes:* )
1981    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1982$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1983    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1984$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1985    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1986$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1987    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1988$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1989    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1990$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991    ;;
1992esac
1993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994$as_echo_n "checking for $2... " >&6; }
1995if eval \${$3+:} false; then :
1996  $as_echo_n "(cached) " >&6
1997else
1998  eval "$3=\$ac_header_compiler"
1999fi
2000eval ac_res=\$$3
2001	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002$as_echo "$ac_res" >&6; }
2003fi
2004  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005
2006} # ac_fn_c_check_header_mongrel
2007
2008# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2009# -------------------------------------------------------
2010# Tests whether HEADER exists and can be compiled using the include files in
2011# INCLUDES, setting the cache variable VAR accordingly.
2012ac_fn_c_check_header_compile ()
2013{
2014  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016$as_echo_n "checking for $2... " >&6; }
2017if eval \${$3+:} false; then :
2018  $as_echo_n "(cached) " >&6
2019else
2020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021/* end confdefs.h.  */
2022$4
2023#include <$2>
2024_ACEOF
2025if ac_fn_c_try_compile "$LINENO"; then :
2026  eval "$3=yes"
2027else
2028  eval "$3=no"
2029fi
2030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031fi
2032eval ac_res=\$$3
2033	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034$as_echo "$ac_res" >&6; }
2035  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036
2037} # ac_fn_c_check_header_compile
2038
2039# ac_fn_c_try_link LINENO
2040# -----------------------
2041# Try to link conftest.$ac_ext, and return whether this succeeded.
2042ac_fn_c_try_link ()
2043{
2044  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045  rm -f conftest.$ac_objext conftest$ac_exeext
2046  if { { ac_try="$ac_link"
2047case "(($ac_try" in
2048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049  *) ac_try_echo=$ac_try;;
2050esac
2051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052$as_echo "$ac_try_echo"; } >&5
2053  (eval "$ac_link") 2>conftest.err
2054  ac_status=$?
2055  if test -s conftest.err; then
2056    grep -v '^ *+' conftest.err >conftest.er1
2057    cat conftest.er1 >&5
2058    mv -f conftest.er1 conftest.err
2059  fi
2060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061  test $ac_status = 0; } && {
2062	 test -z "$ac_c_werror_flag" ||
2063	 test ! -s conftest.err
2064       } && test -s conftest$ac_exeext && {
2065	 test "$cross_compiling" = yes ||
2066	 $as_test_x conftest$ac_exeext
2067       }; then :
2068  ac_retval=0
2069else
2070  $as_echo "$as_me: failed program was:" >&5
2071sed 's/^/| /' conftest.$ac_ext >&5
2072
2073	ac_retval=1
2074fi
2075  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2076  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2077  # interfere with the next link command; also delete a directory that is
2078  # left behind by Apple's compiler.  We do this before executing the actions.
2079  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2080  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081  as_fn_set_status $ac_retval
2082
2083} # ac_fn_c_try_link
2084
2085# ac_fn_c_check_func LINENO FUNC VAR
2086# ----------------------------------
2087# Tests whether FUNC exists, setting the cache variable VAR accordingly
2088ac_fn_c_check_func ()
2089{
2090  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092$as_echo_n "checking for $2... " >&6; }
2093if eval \${$3+:} false; then :
2094  $as_echo_n "(cached) " >&6
2095else
2096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h.  */
2098/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2099   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2100#define $2 innocuous_$2
2101
2102/* System header to define __stub macros and hopefully few prototypes,
2103    which can conflict with char $2 (); below.
2104    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2105    <limits.h> exists even on freestanding compilers.  */
2106
2107#ifdef __STDC__
2108# include <limits.h>
2109#else
2110# include <assert.h>
2111#endif
2112
2113#undef $2
2114
2115/* Override any GCC internal prototype to avoid an error.
2116   Use char because int might match the return type of a GCC
2117   builtin and then its argument prototype would still apply.  */
2118#ifdef __cplusplus
2119extern "C"
2120#endif
2121char $2 ();
2122/* The GNU C library defines this for functions which it implements
2123    to always fail with ENOSYS.  Some functions are actually named
2124    something starting with __ and the normal name is an alias.  */
2125#if defined __stub_$2 || defined __stub___$2
2126choke me
2127#endif
2128
2129int
2130main ()
2131{
2132return $2 ();
2133  ;
2134  return 0;
2135}
2136_ACEOF
2137if ac_fn_c_try_link "$LINENO"; then :
2138  eval "$3=yes"
2139else
2140  eval "$3=no"
2141fi
2142rm -f core conftest.err conftest.$ac_objext \
2143    conftest$ac_exeext conftest.$ac_ext
2144fi
2145eval ac_res=\$$3
2146	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147$as_echo "$ac_res" >&6; }
2148  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149
2150} # ac_fn_c_check_func
2151cat >config.log <<_ACEOF
2152This file contains any messages produced by compilers while
2153running configure, to aid debugging if configure makes a mistake.
2154
2155It was created by $as_me, which was
2156generated by GNU Autoconf 2.68.  Invocation command line was
2157
2158  $ $0 $@
2159
2160_ACEOF
2161exec 5>>config.log
2162{
2163cat <<_ASUNAME
2164## --------- ##
2165## Platform. ##
2166## --------- ##
2167
2168hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2169uname -m = `(uname -m) 2>/dev/null || echo unknown`
2170uname -r = `(uname -r) 2>/dev/null || echo unknown`
2171uname -s = `(uname -s) 2>/dev/null || echo unknown`
2172uname -v = `(uname -v) 2>/dev/null || echo unknown`
2173
2174/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2175/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2176
2177/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2178/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2179/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2180/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2181/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2182/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2183/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2184
2185_ASUNAME
2186
2187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188for as_dir in $PATH
2189do
2190  IFS=$as_save_IFS
2191  test -z "$as_dir" && as_dir=.
2192    $as_echo "PATH: $as_dir"
2193  done
2194IFS=$as_save_IFS
2195
2196} >&5
2197
2198cat >&5 <<_ACEOF
2199
2200
2201## ----------- ##
2202## Core tests. ##
2203## ----------- ##
2204
2205_ACEOF
2206
2207
2208# Keep a trace of the command line.
2209# Strip out --no-create and --no-recursion so they do not pile up.
2210# Strip out --silent because we don't want to record it for future runs.
2211# Also quote any args containing shell meta-characters.
2212# Make two passes to allow for proper duplicate-argument suppression.
2213ac_configure_args=
2214ac_configure_args0=
2215ac_configure_args1=
2216ac_must_keep_next=false
2217for ac_pass in 1 2
2218do
2219  for ac_arg
2220  do
2221    case $ac_arg in
2222    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2223    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2224    | -silent | --silent | --silen | --sile | --sil)
2225      continue ;;
2226    *\'*)
2227      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2228    esac
2229    case $ac_pass in
2230    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2231    2)
2232      as_fn_append ac_configure_args1 " '$ac_arg'"
2233      if test $ac_must_keep_next = true; then
2234	ac_must_keep_next=false # Got value, back to normal.
2235      else
2236	case $ac_arg in
2237	  *=* | --config-cache | -C | -disable-* | --disable-* \
2238	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2239	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2240	  | -with-* | --with-* | -without-* | --without-* | --x)
2241	    case "$ac_configure_args0 " in
2242	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2243	    esac
2244	    ;;
2245	  -* ) ac_must_keep_next=true ;;
2246	esac
2247      fi
2248      as_fn_append ac_configure_args " '$ac_arg'"
2249      ;;
2250    esac
2251  done
2252done
2253{ ac_configure_args0=; unset ac_configure_args0;}
2254{ ac_configure_args1=; unset ac_configure_args1;}
2255
2256# When interrupted or exit'd, cleanup temporary files, and complete
2257# config.log.  We remove comments because anyway the quotes in there
2258# would cause problems or look ugly.
2259# WARNING: Use '\'' to represent an apostrophe within the trap.
2260# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2261trap 'exit_status=$?
2262  # Save into config.log some information that might help in debugging.
2263  {
2264    echo
2265
2266    $as_echo "## ---------------- ##
2267## Cache variables. ##
2268## ---------------- ##"
2269    echo
2270    # The following way of writing the cache mishandles newlines in values,
2271(
2272  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2273    eval ac_val=\$$ac_var
2274    case $ac_val in #(
2275    *${as_nl}*)
2276      case $ac_var in #(
2277      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2278$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2279      esac
2280      case $ac_var in #(
2281      _ | IFS | as_nl) ;; #(
2282      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2283      *) { eval $ac_var=; unset $ac_var;} ;;
2284      esac ;;
2285    esac
2286  done
2287  (set) 2>&1 |
2288    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2289    *${as_nl}ac_space=\ *)
2290      sed -n \
2291	"s/'\''/'\''\\\\'\'''\''/g;
2292	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2293      ;; #(
2294    *)
2295      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2296      ;;
2297    esac |
2298    sort
2299)
2300    echo
2301
2302    $as_echo "## ----------------- ##
2303## Output variables. ##
2304## ----------------- ##"
2305    echo
2306    for ac_var in $ac_subst_vars
2307    do
2308      eval ac_val=\$$ac_var
2309      case $ac_val in
2310      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2311      esac
2312      $as_echo "$ac_var='\''$ac_val'\''"
2313    done | sort
2314    echo
2315
2316    if test -n "$ac_subst_files"; then
2317      $as_echo "## ------------------- ##
2318## File substitutions. ##
2319## ------------------- ##"
2320      echo
2321      for ac_var in $ac_subst_files
2322      do
2323	eval ac_val=\$$ac_var
2324	case $ac_val in
2325	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2326	esac
2327	$as_echo "$ac_var='\''$ac_val'\''"
2328      done | sort
2329      echo
2330    fi
2331
2332    if test -s confdefs.h; then
2333      $as_echo "## ----------- ##
2334## confdefs.h. ##
2335## ----------- ##"
2336      echo
2337      cat confdefs.h
2338      echo
2339    fi
2340    test "$ac_signal" != 0 &&
2341      $as_echo "$as_me: caught signal $ac_signal"
2342    $as_echo "$as_me: exit $exit_status"
2343  } >&5
2344  rm -f core *.core core.conftest.* &&
2345    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2346    exit $exit_status
2347' 0
2348for ac_signal in 1 2 13 15; do
2349  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2350done
2351ac_signal=0
2352
2353# confdefs.h avoids OS command line length limits that DEFS can exceed.
2354rm -f -r conftest* confdefs.h
2355
2356$as_echo "/* confdefs.h */" > confdefs.h
2357
2358# Predefined preprocessor variables.
2359
2360cat >>confdefs.h <<_ACEOF
2361#define PACKAGE_NAME "$PACKAGE_NAME"
2362_ACEOF
2363
2364cat >>confdefs.h <<_ACEOF
2365#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2366_ACEOF
2367
2368cat >>confdefs.h <<_ACEOF
2369#define PACKAGE_VERSION "$PACKAGE_VERSION"
2370_ACEOF
2371
2372cat >>confdefs.h <<_ACEOF
2373#define PACKAGE_STRING "$PACKAGE_STRING"
2374_ACEOF
2375
2376cat >>confdefs.h <<_ACEOF
2377#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2378_ACEOF
2379
2380cat >>confdefs.h <<_ACEOF
2381#define PACKAGE_URL "$PACKAGE_URL"
2382_ACEOF
2383
2384
2385# Let the site file select an alternate cache file if it wants to.
2386# Prefer an explicitly selected file to automatically selected ones.
2387ac_site_file1=NONE
2388ac_site_file2=NONE
2389if test -n "$CONFIG_SITE"; then
2390  # We do not want a PATH search for config.site.
2391  case $CONFIG_SITE in #((
2392    -*)  ac_site_file1=./$CONFIG_SITE;;
2393    */*) ac_site_file1=$CONFIG_SITE;;
2394    *)   ac_site_file1=./$CONFIG_SITE;;
2395  esac
2396elif test "x$prefix" != xNONE; then
2397  ac_site_file1=$prefix/share/config.site
2398  ac_site_file2=$prefix/etc/config.site
2399else
2400  ac_site_file1=$ac_default_prefix/share/config.site
2401  ac_site_file2=$ac_default_prefix/etc/config.site
2402fi
2403for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2404do
2405  test "x$ac_site_file" = xNONE && continue
2406  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2407    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2408$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2409    sed 's/^/| /' "$ac_site_file" >&5
2410    . "$ac_site_file" \
2411      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2413as_fn_error $? "failed to load site script $ac_site_file
2414See \`config.log' for more details" "$LINENO" 5; }
2415  fi
2416done
2417
2418if test -r "$cache_file"; then
2419  # Some versions of bash will fail to source /dev/null (special files
2420  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2421  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2422    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2423$as_echo "$as_me: loading cache $cache_file" >&6;}
2424    case $cache_file in
2425      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2426      *)                      . "./$cache_file";;
2427    esac
2428  fi
2429else
2430  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2431$as_echo "$as_me: creating cache $cache_file" >&6;}
2432  >$cache_file
2433fi
2434
2435# Check that the precious variables saved in the cache have kept the same
2436# value.
2437ac_cache_corrupted=false
2438for ac_var in $ac_precious_vars; do
2439  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2440  eval ac_new_set=\$ac_env_${ac_var}_set
2441  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2442  eval ac_new_val=\$ac_env_${ac_var}_value
2443  case $ac_old_set,$ac_new_set in
2444    set,)
2445      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2446$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2447      ac_cache_corrupted=: ;;
2448    ,set)
2449      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2450$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2451      ac_cache_corrupted=: ;;
2452    ,);;
2453    *)
2454      if test "x$ac_old_val" != "x$ac_new_val"; then
2455	# differences in whitespace do not lead to failure.
2456	ac_old_val_w=`echo x $ac_old_val`
2457	ac_new_val_w=`echo x $ac_new_val`
2458	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2459	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2460$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2461	  ac_cache_corrupted=:
2462	else
2463	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2464$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2465	  eval $ac_var=\$ac_old_val
2466	fi
2467	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2468$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2469	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2470$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2471      fi;;
2472  esac
2473  # Pass precious variables to config.status.
2474  if test "$ac_new_set" = set; then
2475    case $ac_new_val in
2476    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2477    *) ac_arg=$ac_var=$ac_new_val ;;
2478    esac
2479    case " $ac_configure_args " in
2480      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2481      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2482    esac
2483  fi
2484done
2485if $ac_cache_corrupted; then
2486  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2488  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2489$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2490  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2491fi
2492## -------------------- ##
2493## Main body of script. ##
2494## -------------------- ##
2495
2496ac_ext=c
2497ac_cpp='$CPP $CPPFLAGS'
2498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500ac_compiler_gnu=$ac_cv_c_compiler_gnu
2501
2502
2503ac_config_headers="$ac_config_headers config.h"
2504
2505
2506ac_aux_dir=
2507for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2508  if test -f "$ac_dir/install-sh"; then
2509    ac_aux_dir=$ac_dir
2510    ac_install_sh="$ac_aux_dir/install-sh -c"
2511    break
2512  elif test -f "$ac_dir/install.sh"; then
2513    ac_aux_dir=$ac_dir
2514    ac_install_sh="$ac_aux_dir/install.sh -c"
2515    break
2516  elif test -f "$ac_dir/shtool"; then
2517    ac_aux_dir=$ac_dir
2518    ac_install_sh="$ac_aux_dir/shtool install -c"
2519    break
2520  fi
2521done
2522if test -z "$ac_aux_dir"; then
2523  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2524fi
2525
2526# These three variables are undocumented and unsupported,
2527# and are intended to be withdrawn in a future Autoconf release.
2528# They can cause serious problems if a builder's source tree is in a directory
2529# whose full name contains unusual characters.
2530ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2531ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2532ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2533
2534
2535# Make sure we can run config.sub.
2536$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2537  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2538
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2540$as_echo_n "checking build system type... " >&6; }
2541if ${ac_cv_build+:} false; then :
2542  $as_echo_n "(cached) " >&6
2543else
2544  ac_build_alias=$build_alias
2545test "x$ac_build_alias" = x &&
2546  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2547test "x$ac_build_alias" = x &&
2548  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2549ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2550  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2551
2552fi
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2554$as_echo "$ac_cv_build" >&6; }
2555case $ac_cv_build in
2556*-*-*) ;;
2557*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2558esac
2559build=$ac_cv_build
2560ac_save_IFS=$IFS; IFS='-'
2561set x $ac_cv_build
2562shift
2563build_cpu=$1
2564build_vendor=$2
2565shift; shift
2566# Remember, the first character of IFS is used to create $*,
2567# except with old shells:
2568build_os=$*
2569IFS=$ac_save_IFS
2570case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2571
2572
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2574$as_echo_n "checking host system type... " >&6; }
2575if ${ac_cv_host+:} false; then :
2576  $as_echo_n "(cached) " >&6
2577else
2578  if test "x$host_alias" = x; then
2579  ac_cv_host=$ac_cv_build
2580else
2581  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2582    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2583fi
2584
2585fi
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2587$as_echo "$ac_cv_host" >&6; }
2588case $ac_cv_host in
2589*-*-*) ;;
2590*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2591esac
2592host=$ac_cv_host
2593ac_save_IFS=$IFS; IFS='-'
2594set x $ac_cv_host
2595shift
2596host_cpu=$1
2597host_vendor=$2
2598shift; shift
2599# Remember, the first character of IFS is used to create $*,
2600# except with old shells:
2601host_os=$*
2602IFS=$ac_save_IFS
2603case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2604
2605
2606
2607LIBXML_MAJOR_VERSION=2
2608LIBXML_MINOR_VERSION=7
2609LIBXML_MICRO_VERSION=7
2610LIBXML_MICRO_VERSION_SUFFIX=
2611LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION$LIBXML_MICRO_VERSION_SUFFIX
2612LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION
2613
2614LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION`
2615
2616if test -f CVS/Entries ; then
2617  extra=`grep ChangeLog CVS/Entries | grep -v LIBXML | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%`
2618  echo extra=$extra
2619  if test "$extra" != ""
2620  then
2621      LIBXML_VERSION_EXTRA="-CVS$extra"
2622  fi
2623else if test -d .svn ; then
2624  extra=`svn info | grep Revision | sed 's+Revision: ++'`
2625  echo extra=$extra
2626  if test "$extra" != ""
2627  then
2628      LIBXML_VERSION_EXTRA="-SVN$extra"
2629  fi
2630else if test -d .git ; then
2631  extra=`git describe | sed 's+LIBXML[0-9.]*-++'`
2632  echo extra=$extra
2633  if test "$extra" != ""
2634  then
2635      LIBXML_VERSION_EXTRA="-GIT$extra"
2636  fi
2637fi
2638fi
2639fi
2640
2641
2642
2643
2644
2645
2646
2647
2648VERSION=${LIBXML_VERSION}
2649
2650am__api_version='1.11'
2651
2652# Find a good install program.  We prefer a C program (faster),
2653# so one script is as good as another.  But avoid the broken or
2654# incompatible versions:
2655# SysV /etc/install, /usr/sbin/install
2656# SunOS /usr/etc/install
2657# IRIX /sbin/install
2658# AIX /bin/install
2659# AmigaOS /C/install, which installs bootblocks on floppy discs
2660# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2661# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2662# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2663# OS/2's system install, which has a completely different semantic
2664# ./install, which can be erroneously created by make from ./install.sh.
2665# Reject install programs that cannot install multiple files.
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2667$as_echo_n "checking for a BSD-compatible install... " >&6; }
2668if test -z "$INSTALL"; then
2669if ${ac_cv_path_install+:} false; then :
2670  $as_echo_n "(cached) " >&6
2671else
2672  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH
2674do
2675  IFS=$as_save_IFS
2676  test -z "$as_dir" && as_dir=.
2677    # Account for people who put trailing slashes in PATH elements.
2678case $as_dir/ in #((
2679  ./ | .// | /[cC]/* | \
2680  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2681  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2682  /usr/ucb/* ) ;;
2683  *)
2684    # OSF1 and SCO ODT 3.0 have their own names for install.
2685    # Don't use installbsd from OSF since it installs stuff as root
2686    # by default.
2687    for ac_prog in ginstall scoinst install; do
2688      for ac_exec_ext in '' $ac_executable_extensions; do
2689	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2690	  if test $ac_prog = install &&
2691	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2692	    # AIX install.  It has an incompatible calling convention.
2693	    :
2694	  elif test $ac_prog = install &&
2695	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2696	    # program-specific install script used by HP pwplus--don't use.
2697	    :
2698	  else
2699	    rm -rf conftest.one conftest.two conftest.dir
2700	    echo one > conftest.one
2701	    echo two > conftest.two
2702	    mkdir conftest.dir
2703	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2704	      test -s conftest.one && test -s conftest.two &&
2705	      test -s conftest.dir/conftest.one &&
2706	      test -s conftest.dir/conftest.two
2707	    then
2708	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2709	      break 3
2710	    fi
2711	  fi
2712	fi
2713      done
2714    done
2715    ;;
2716esac
2717
2718  done
2719IFS=$as_save_IFS
2720
2721rm -rf conftest.one conftest.two conftest.dir
2722
2723fi
2724  if test "${ac_cv_path_install+set}" = set; then
2725    INSTALL=$ac_cv_path_install
2726  else
2727    # As a last resort, use the slow shell script.  Don't cache a
2728    # value for INSTALL within a source directory, because that will
2729    # break other packages using the cache if that directory is
2730    # removed, or if the value is a relative name.
2731    INSTALL=$ac_install_sh
2732  fi
2733fi
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2735$as_echo "$INSTALL" >&6; }
2736
2737# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2738# It thinks the first close brace ends the variable substitution.
2739test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2740
2741test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2742
2743test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2744
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2746$as_echo_n "checking whether build environment is sane... " >&6; }
2747# Just in case
2748sleep 1
2749echo timestamp > conftest.file
2750# Reject unsafe characters in $srcdir or the absolute working directory
2751# name.  Accept space and tab only in the latter.
2752am_lf='
2753'
2754case `pwd` in
2755  *[\\\"\#\$\&\'\`$am_lf]*)
2756    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2757esac
2758case $srcdir in
2759  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2760    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2761esac
2762
2763# Do `set' in a subshell so we don't clobber the current shell's
2764# arguments.  Must try -L first in case configure is actually a
2765# symlink; some systems play weird games with the mod time of symlinks
2766# (eg FreeBSD returns the mod time of the symlink's containing
2767# directory).
2768if (
2769   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2770   if test "$*" = "X"; then
2771      # -L didn't work.
2772      set X `ls -t "$srcdir/configure" conftest.file`
2773   fi
2774   rm -f conftest.file
2775   if test "$*" != "X $srcdir/configure conftest.file" \
2776      && test "$*" != "X conftest.file $srcdir/configure"; then
2777
2778      # If neither matched, then we have a broken ls.  This can happen
2779      # if, for instance, CONFIG_SHELL is bash and it inherits a
2780      # broken ls alias from the environment.  This has actually
2781      # happened.  Such a system could not be considered "sane".
2782      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2783alias in your environment" "$LINENO" 5
2784   fi
2785
2786   test "$2" = conftest.file
2787   )
2788then
2789   # Ok.
2790   :
2791else
2792   as_fn_error $? "newly created file is older than distributed files!
2793Check your system clock" "$LINENO" 5
2794fi
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2796$as_echo "yes" >&6; }
2797test "$program_prefix" != NONE &&
2798  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2799# Use a double $ so make ignores it.
2800test "$program_suffix" != NONE &&
2801  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2802# Double any \ or $.
2803# By default was `s,x,x', remove it if useless.
2804ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2805program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2806
2807# expand $ac_aux_dir to an absolute path
2808am_aux_dir=`cd $ac_aux_dir && pwd`
2809
2810if test x"${MISSING+set}" != xset; then
2811  case $am_aux_dir in
2812  *\ * | *\	*)
2813    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2814  *)
2815    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2816  esac
2817fi
2818# Use eval to expand $SHELL
2819if eval "$MISSING --run true"; then
2820  am_missing_run="$MISSING --run "
2821else
2822  am_missing_run=
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2824$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2825fi
2826
2827if test x"${install_sh}" != xset; then
2828  case $am_aux_dir in
2829  *\ * | *\	*)
2830    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2831  *)
2832    install_sh="\${SHELL} $am_aux_dir/install-sh"
2833  esac
2834fi
2835
2836# Installed binaries are usually stripped using `strip' when the user
2837# run `make install-strip'.  However `strip' might not be the right
2838# tool to use in cross-compilation environments, therefore Automake
2839# will honor the `STRIP' environment variable to overrule this program.
2840if test "$cross_compiling" != no; then
2841  if test -n "$ac_tool_prefix"; then
2842  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2843set dummy ${ac_tool_prefix}strip; ac_word=$2
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845$as_echo_n "checking for $ac_word... " >&6; }
2846if ${ac_cv_prog_STRIP+:} false; then :
2847  $as_echo_n "(cached) " >&6
2848else
2849  if test -n "$STRIP"; then
2850  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855  IFS=$as_save_IFS
2856  test -z "$as_dir" && as_dir=.
2857    for ac_exec_ext in '' $ac_executable_extensions; do
2858  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861    break 2
2862  fi
2863done
2864  done
2865IFS=$as_save_IFS
2866
2867fi
2868fi
2869STRIP=$ac_cv_prog_STRIP
2870if test -n "$STRIP"; then
2871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2872$as_echo "$STRIP" >&6; }
2873else
2874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875$as_echo "no" >&6; }
2876fi
2877
2878
2879fi
2880if test -z "$ac_cv_prog_STRIP"; then
2881  ac_ct_STRIP=$STRIP
2882  # Extract the first word of "strip", so it can be a program name with args.
2883set dummy strip; ac_word=$2
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885$as_echo_n "checking for $ac_word... " >&6; }
2886if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2887  $as_echo_n "(cached) " >&6
2888else
2889  if test -n "$ac_ct_STRIP"; then
2890  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2891else
2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895  IFS=$as_save_IFS
2896  test -z "$as_dir" && as_dir=.
2897    for ac_exec_ext in '' $ac_executable_extensions; do
2898  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899    ac_cv_prog_ac_ct_STRIP="strip"
2900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901    break 2
2902  fi
2903done
2904  done
2905IFS=$as_save_IFS
2906
2907fi
2908fi
2909ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2910if test -n "$ac_ct_STRIP"; then
2911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2912$as_echo "$ac_ct_STRIP" >&6; }
2913else
2914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915$as_echo "no" >&6; }
2916fi
2917
2918  if test "x$ac_ct_STRIP" = x; then
2919    STRIP=":"
2920  else
2921    case $cross_compiling:$ac_tool_warned in
2922yes:)
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2925ac_tool_warned=yes ;;
2926esac
2927    STRIP=$ac_ct_STRIP
2928  fi
2929else
2930  STRIP="$ac_cv_prog_STRIP"
2931fi
2932
2933fi
2934INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2935
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2937$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2938if test -z "$MKDIR_P"; then
2939  if ${ac_cv_path_mkdir+:} false; then :
2940  $as_echo_n "(cached) " >&6
2941else
2942  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2944do
2945  IFS=$as_save_IFS
2946  test -z "$as_dir" && as_dir=.
2947    for ac_prog in mkdir gmkdir; do
2948	 for ac_exec_ext in '' $ac_executable_extensions; do
2949	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2950	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2951	     'mkdir (GNU coreutils) '* | \
2952	     'mkdir (coreutils) '* | \
2953	     'mkdir (fileutils) '4.1*)
2954	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2955	       break 3;;
2956	   esac
2957	 done
2958       done
2959  done
2960IFS=$as_save_IFS
2961
2962fi
2963
2964  test -d ./--version && rmdir ./--version
2965  if test "${ac_cv_path_mkdir+set}" = set; then
2966    MKDIR_P="$ac_cv_path_mkdir -p"
2967  else
2968    # As a last resort, use the slow shell script.  Don't cache a
2969    # value for MKDIR_P within a source directory, because that will
2970    # break other packages using the cache if that directory is
2971    # removed, or if the value is a relative name.
2972    MKDIR_P="$ac_install_sh -d"
2973  fi
2974fi
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2976$as_echo "$MKDIR_P" >&6; }
2977
2978mkdir_p="$MKDIR_P"
2979case $mkdir_p in
2980  [\\/$]* | ?:[\\/]*) ;;
2981  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2982esac
2983
2984for ac_prog in gawk mawk nawk awk
2985do
2986  # Extract the first word of "$ac_prog", so it can be a program name with args.
2987set dummy $ac_prog; ac_word=$2
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989$as_echo_n "checking for $ac_word... " >&6; }
2990if ${ac_cv_prog_AWK+:} false; then :
2991  $as_echo_n "(cached) " >&6
2992else
2993  if test -n "$AWK"; then
2994  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2995else
2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH
2998do
2999  IFS=$as_save_IFS
3000  test -z "$as_dir" && as_dir=.
3001    for ac_exec_ext in '' $ac_executable_extensions; do
3002  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003    ac_cv_prog_AWK="$ac_prog"
3004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005    break 2
3006  fi
3007done
3008  done
3009IFS=$as_save_IFS
3010
3011fi
3012fi
3013AWK=$ac_cv_prog_AWK
3014if test -n "$AWK"; then
3015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3016$as_echo "$AWK" >&6; }
3017else
3018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019$as_echo "no" >&6; }
3020fi
3021
3022
3023  test -n "$AWK" && break
3024done
3025
3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3027$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3028set x ${MAKE-make}
3029ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3030if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3031  $as_echo_n "(cached) " >&6
3032else
3033  cat >conftest.make <<\_ACEOF
3034SHELL = /bin/sh
3035all:
3036	@echo '@@@%%%=$(MAKE)=@@@%%%'
3037_ACEOF
3038# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3039case `${MAKE-make} -f conftest.make 2>/dev/null` in
3040  *@@@%%%=?*=@@@%%%*)
3041    eval ac_cv_prog_make_${ac_make}_set=yes;;
3042  *)
3043    eval ac_cv_prog_make_${ac_make}_set=no;;
3044esac
3045rm -f conftest.make
3046fi
3047if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3049$as_echo "yes" >&6; }
3050  SET_MAKE=
3051else
3052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053$as_echo "no" >&6; }
3054  SET_MAKE="MAKE=${MAKE-make}"
3055fi
3056
3057rm -rf .tst 2>/dev/null
3058mkdir .tst 2>/dev/null
3059if test -d .tst; then
3060  am__leading_dot=.
3061else
3062  am__leading_dot=_
3063fi
3064rmdir .tst 2>/dev/null
3065
3066if test "`cd $srcdir && pwd`" != "`pwd`"; then
3067  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3068  # is not polluted with repeated "-I."
3069  am__isrc=' -I$(srcdir)'
3070  # test to see if srcdir already configured
3071  if test -f $srcdir/config.status; then
3072    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3073  fi
3074fi
3075
3076# test whether we have cygpath
3077if test -z "$CYGPATH_W"; then
3078  if (cygpath --version) >/dev/null 2>/dev/null; then
3079    CYGPATH_W='cygpath -w'
3080  else
3081    CYGPATH_W=echo
3082  fi
3083fi
3084
3085
3086# Define the identity of the package.
3087 PACKAGE=libxml2
3088 VERSION=$VERSION
3089
3090
3091cat >>confdefs.h <<_ACEOF
3092#define PACKAGE "$PACKAGE"
3093_ACEOF
3094
3095
3096cat >>confdefs.h <<_ACEOF
3097#define VERSION "$VERSION"
3098_ACEOF
3099
3100# Some tools Automake needs.
3101
3102ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3103
3104
3105AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3106
3107
3108AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3109
3110
3111AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3112
3113
3114MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3115
3116# We need awk for the "check" target.  The system "awk" is bad on
3117# some platforms.
3118# Always define AMTAR for backward compatibility.
3119
3120AMTAR=${AMTAR-"${am_missing_run}tar"}
3121
3122am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3123
3124
3125
3126
3127
3128
3129ac_ext=c
3130ac_cpp='$CPP $CPPFLAGS'
3131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134if test -n "$ac_tool_prefix"; then
3135  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3136set dummy ${ac_tool_prefix}gcc; ac_word=$2
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138$as_echo_n "checking for $ac_word... " >&6; }
3139if ${ac_cv_prog_CC+:} false; then :
3140  $as_echo_n "(cached) " >&6
3141else
3142  if test -n "$CC"; then
3143  ac_cv_prog_CC="$CC" # Let the user override the test.
3144else
3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146for as_dir in $PATH
3147do
3148  IFS=$as_save_IFS
3149  test -z "$as_dir" && as_dir=.
3150    for ac_exec_ext in '' $ac_executable_extensions; do
3151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154    break 2
3155  fi
3156done
3157  done
3158IFS=$as_save_IFS
3159
3160fi
3161fi
3162CC=$ac_cv_prog_CC
3163if test -n "$CC"; then
3164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3165$as_echo "$CC" >&6; }
3166else
3167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168$as_echo "no" >&6; }
3169fi
3170
3171
3172fi
3173if test -z "$ac_cv_prog_CC"; then
3174  ac_ct_CC=$CC
3175  # Extract the first word of "gcc", so it can be a program name with args.
3176set dummy gcc; ac_word=$2
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178$as_echo_n "checking for $ac_word... " >&6; }
3179if ${ac_cv_prog_ac_ct_CC+:} false; then :
3180  $as_echo_n "(cached) " >&6
3181else
3182  if test -n "$ac_ct_CC"; then
3183  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184else
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188  IFS=$as_save_IFS
3189  test -z "$as_dir" && as_dir=.
3190    for ac_exec_ext in '' $ac_executable_extensions; do
3191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192    ac_cv_prog_ac_ct_CC="gcc"
3193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194    break 2
3195  fi
3196done
3197  done
3198IFS=$as_save_IFS
3199
3200fi
3201fi
3202ac_ct_CC=$ac_cv_prog_ac_ct_CC
3203if test -n "$ac_ct_CC"; then
3204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3205$as_echo "$ac_ct_CC" >&6; }
3206else
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208$as_echo "no" >&6; }
3209fi
3210
3211  if test "x$ac_ct_CC" = x; then
3212    CC=""
3213  else
3214    case $cross_compiling:$ac_tool_warned in
3215yes:)
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3218ac_tool_warned=yes ;;
3219esac
3220    CC=$ac_ct_CC
3221  fi
3222else
3223  CC="$ac_cv_prog_CC"
3224fi
3225
3226if test -z "$CC"; then
3227          if test -n "$ac_tool_prefix"; then
3228    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3229set dummy ${ac_tool_prefix}cc; ac_word=$2
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231$as_echo_n "checking for $ac_word... " >&6; }
3232if ${ac_cv_prog_CC+:} false; then :
3233  $as_echo_n "(cached) " >&6
3234else
3235  if test -n "$CC"; then
3236  ac_cv_prog_CC="$CC" # Let the user override the test.
3237else
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241  IFS=$as_save_IFS
3242  test -z "$as_dir" && as_dir=.
3243    for ac_exec_ext in '' $ac_executable_extensions; do
3244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245    ac_cv_prog_CC="${ac_tool_prefix}cc"
3246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247    break 2
3248  fi
3249done
3250  done
3251IFS=$as_save_IFS
3252
3253fi
3254fi
3255CC=$ac_cv_prog_CC
3256if test -n "$CC"; then
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258$as_echo "$CC" >&6; }
3259else
3260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262fi
3263
3264
3265  fi
3266fi
3267if test -z "$CC"; then
3268  # Extract the first word of "cc", so it can be a program name with args.
3269set dummy cc; ac_word=$2
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271$as_echo_n "checking for $ac_word... " >&6; }
3272if ${ac_cv_prog_CC+:} false; then :
3273  $as_echo_n "(cached) " >&6
3274else
3275  if test -n "$CC"; then
3276  ac_cv_prog_CC="$CC" # Let the user override the test.
3277else
3278  ac_prog_rejected=no
3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280for as_dir in $PATH
3281do
3282  IFS=$as_save_IFS
3283  test -z "$as_dir" && as_dir=.
3284    for ac_exec_ext in '' $ac_executable_extensions; do
3285  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3287       ac_prog_rejected=yes
3288       continue
3289     fi
3290    ac_cv_prog_CC="cc"
3291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292    break 2
3293  fi
3294done
3295  done
3296IFS=$as_save_IFS
3297
3298if test $ac_prog_rejected = yes; then
3299  # We found a bogon in the path, so make sure we never use it.
3300  set dummy $ac_cv_prog_CC
3301  shift
3302  if test $# != 0; then
3303    # We chose a different compiler from the bogus one.
3304    # However, it has the same basename, so the bogon will be chosen
3305    # first if we set CC to just the basename; use the full file name.
3306    shift
3307    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3308  fi
3309fi
3310fi
3311fi
3312CC=$ac_cv_prog_CC
3313if test -n "$CC"; then
3314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315$as_echo "$CC" >&6; }
3316else
3317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318$as_echo "no" >&6; }
3319fi
3320
3321
3322fi
3323if test -z "$CC"; then
3324  if test -n "$ac_tool_prefix"; then
3325  for ac_prog in cl.exe
3326  do
3327    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3328set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330$as_echo_n "checking for $ac_word... " >&6; }
3331if ${ac_cv_prog_CC+:} false; then :
3332  $as_echo_n "(cached) " >&6
3333else
3334  if test -n "$CC"; then
3335  ac_cv_prog_CC="$CC" # Let the user override the test.
3336else
3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338for as_dir in $PATH
3339do
3340  IFS=$as_save_IFS
3341  test -z "$as_dir" && as_dir=.
3342    for ac_exec_ext in '' $ac_executable_extensions; do
3343  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346    break 2
3347  fi
3348done
3349  done
3350IFS=$as_save_IFS
3351
3352fi
3353fi
3354CC=$ac_cv_prog_CC
3355if test -n "$CC"; then
3356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357$as_echo "$CC" >&6; }
3358else
3359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360$as_echo "no" >&6; }
3361fi
3362
3363
3364    test -n "$CC" && break
3365  done
3366fi
3367if test -z "$CC"; then
3368  ac_ct_CC=$CC
3369  for ac_prog in cl.exe
3370do
3371  # Extract the first word of "$ac_prog", so it can be a program name with args.
3372set dummy $ac_prog; ac_word=$2
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374$as_echo_n "checking for $ac_word... " >&6; }
3375if ${ac_cv_prog_ac_ct_CC+:} false; then :
3376  $as_echo_n "(cached) " >&6
3377else
3378  if test -n "$ac_ct_CC"; then
3379  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3380else
3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382for as_dir in $PATH
3383do
3384  IFS=$as_save_IFS
3385  test -z "$as_dir" && as_dir=.
3386    for ac_exec_ext in '' $ac_executable_extensions; do
3387  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3388    ac_cv_prog_ac_ct_CC="$ac_prog"
3389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390    break 2
3391  fi
3392done
3393  done
3394IFS=$as_save_IFS
3395
3396fi
3397fi
3398ac_ct_CC=$ac_cv_prog_ac_ct_CC
3399if test -n "$ac_ct_CC"; then
3400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3401$as_echo "$ac_ct_CC" >&6; }
3402else
3403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404$as_echo "no" >&6; }
3405fi
3406
3407
3408  test -n "$ac_ct_CC" && break
3409done
3410
3411  if test "x$ac_ct_CC" = x; then
3412    CC=""
3413  else
3414    case $cross_compiling:$ac_tool_warned in
3415yes:)
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3418ac_tool_warned=yes ;;
3419esac
3420    CC=$ac_ct_CC
3421  fi
3422fi
3423
3424fi
3425
3426
3427test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429as_fn_error $? "no acceptable C compiler found in \$PATH
3430See \`config.log' for more details" "$LINENO" 5; }
3431
3432# Provide some information about the compiler.
3433$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3434set X $ac_compile
3435ac_compiler=$2
3436for ac_option in --version -v -V -qversion; do
3437  { { ac_try="$ac_compiler $ac_option >&5"
3438case "(($ac_try" in
3439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440  *) ac_try_echo=$ac_try;;
3441esac
3442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443$as_echo "$ac_try_echo"; } >&5
3444  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3445  ac_status=$?
3446  if test -s conftest.err; then
3447    sed '10a\
3448... rest of stderr output deleted ...
3449         10q' conftest.err >conftest.er1
3450    cat conftest.er1 >&5
3451  fi
3452  rm -f conftest.er1 conftest.err
3453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454  test $ac_status = 0; }
3455done
3456
3457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458/* end confdefs.h.  */
3459
3460int
3461main ()
3462{
3463
3464  ;
3465  return 0;
3466}
3467_ACEOF
3468ac_clean_files_save=$ac_clean_files
3469ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3470# Try to create an executable without -o first, disregard a.out.
3471# It will help us diagnose broken compilers, and finding out an intuition
3472# of exeext.
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3474$as_echo_n "checking whether the C compiler works... " >&6; }
3475ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3476
3477# The possible output files:
3478ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3479
3480ac_rmfiles=
3481for ac_file in $ac_files
3482do
3483  case $ac_file in
3484    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3485    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3486  esac
3487done
3488rm -f $ac_rmfiles
3489
3490if { { ac_try="$ac_link_default"
3491case "(($ac_try" in
3492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493  *) ac_try_echo=$ac_try;;
3494esac
3495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496$as_echo "$ac_try_echo"; } >&5
3497  (eval "$ac_link_default") 2>&5
3498  ac_status=$?
3499  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500  test $ac_status = 0; }; then :
3501  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3502# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3503# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3504# so that the user can short-circuit this test for compilers unknown to
3505# Autoconf.
3506for ac_file in $ac_files ''
3507do
3508  test -f "$ac_file" || continue
3509  case $ac_file in
3510    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3511	;;
3512    [ab].out )
3513	# We found the default executable, but exeext='' is most
3514	# certainly right.
3515	break;;
3516    *.* )
3517	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3518	then :; else
3519	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3520	fi
3521	# We set ac_cv_exeext here because the later test for it is not
3522	# safe: cross compilers may not add the suffix if given an `-o'
3523	# argument, so we may need to know it at that point already.
3524	# Even if this section looks crufty: it has the advantage of
3525	# actually working.
3526	break;;
3527    * )
3528	break;;
3529  esac
3530done
3531test "$ac_cv_exeext" = no && ac_cv_exeext=
3532
3533else
3534  ac_file=''
3535fi
3536if test -z "$ac_file"; then :
3537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538$as_echo "no" >&6; }
3539$as_echo "$as_me: failed program was:" >&5
3540sed 's/^/| /' conftest.$ac_ext >&5
3541
3542{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3544as_fn_error 77 "C compiler cannot create executables
3545See \`config.log' for more details" "$LINENO" 5; }
3546else
3547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3548$as_echo "yes" >&6; }
3549fi
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3551$as_echo_n "checking for C compiler default output file name... " >&6; }
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3553$as_echo "$ac_file" >&6; }
3554ac_exeext=$ac_cv_exeext
3555
3556rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3557ac_clean_files=$ac_clean_files_save
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3559$as_echo_n "checking for suffix of executables... " >&6; }
3560if { { ac_try="$ac_link"
3561case "(($ac_try" in
3562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563  *) ac_try_echo=$ac_try;;
3564esac
3565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566$as_echo "$ac_try_echo"; } >&5
3567  (eval "$ac_link") 2>&5
3568  ac_status=$?
3569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3570  test $ac_status = 0; }; then :
3571  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3572# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3573# work properly (i.e., refer to `conftest.exe'), while it won't with
3574# `rm'.
3575for ac_file in conftest.exe conftest conftest.*; do
3576  test -f "$ac_file" || continue
3577  case $ac_file in
3578    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3579    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3580	  break;;
3581    * ) break;;
3582  esac
3583done
3584else
3585  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3588See \`config.log' for more details" "$LINENO" 5; }
3589fi
3590rm -f conftest conftest$ac_cv_exeext
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3592$as_echo "$ac_cv_exeext" >&6; }
3593
3594rm -f conftest.$ac_ext
3595EXEEXT=$ac_cv_exeext
3596ac_exeext=$EXEEXT
3597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598/* end confdefs.h.  */
3599#include <stdio.h>
3600int
3601main ()
3602{
3603FILE *f = fopen ("conftest.out", "w");
3604 return ferror (f) || fclose (f) != 0;
3605
3606  ;
3607  return 0;
3608}
3609_ACEOF
3610ac_clean_files="$ac_clean_files conftest.out"
3611# Check that the compiler produces executables we can run.  If not, either
3612# the compiler is broken, or we cross compile.
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3614$as_echo_n "checking whether we are cross compiling... " >&6; }
3615if test "$cross_compiling" != yes; then
3616  { { ac_try="$ac_link"
3617case "(($ac_try" in
3618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619  *) ac_try_echo=$ac_try;;
3620esac
3621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622$as_echo "$ac_try_echo"; } >&5
3623  (eval "$ac_link") 2>&5
3624  ac_status=$?
3625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626  test $ac_status = 0; }
3627  if { ac_try='./conftest$ac_cv_exeext'
3628  { { case "(($ac_try" in
3629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630  *) ac_try_echo=$ac_try;;
3631esac
3632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633$as_echo "$ac_try_echo"; } >&5
3634  (eval "$ac_try") 2>&5
3635  ac_status=$?
3636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637  test $ac_status = 0; }; }; then
3638    cross_compiling=no
3639  else
3640    if test "$cross_compiling" = maybe; then
3641	cross_compiling=yes
3642    else
3643	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3645as_fn_error $? "cannot run C compiled programs.
3646If you meant to cross compile, use \`--host'.
3647See \`config.log' for more details" "$LINENO" 5; }
3648    fi
3649  fi
3650fi
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3652$as_echo "$cross_compiling" >&6; }
3653
3654rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3655ac_clean_files=$ac_clean_files_save
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3657$as_echo_n "checking for suffix of object files... " >&6; }
3658if ${ac_cv_objext+:} false; then :
3659  $as_echo_n "(cached) " >&6
3660else
3661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662/* end confdefs.h.  */
3663
3664int
3665main ()
3666{
3667
3668  ;
3669  return 0;
3670}
3671_ACEOF
3672rm -f conftest.o conftest.obj
3673if { { ac_try="$ac_compile"
3674case "(($ac_try" in
3675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676  *) ac_try_echo=$ac_try;;
3677esac
3678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679$as_echo "$ac_try_echo"; } >&5
3680  (eval "$ac_compile") 2>&5
3681  ac_status=$?
3682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683  test $ac_status = 0; }; then :
3684  for ac_file in conftest.o conftest.obj conftest.*; do
3685  test -f "$ac_file" || continue;
3686  case $ac_file in
3687    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3688    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3689       break;;
3690  esac
3691done
3692else
3693  $as_echo "$as_me: failed program was:" >&5
3694sed 's/^/| /' conftest.$ac_ext >&5
3695
3696{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3698as_fn_error $? "cannot compute suffix of object files: cannot compile
3699See \`config.log' for more details" "$LINENO" 5; }
3700fi
3701rm -f conftest.$ac_cv_objext conftest.$ac_ext
3702fi
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3704$as_echo "$ac_cv_objext" >&6; }
3705OBJEXT=$ac_cv_objext
3706ac_objext=$OBJEXT
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3708$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3709if ${ac_cv_c_compiler_gnu+:} false; then :
3710  $as_echo_n "(cached) " >&6
3711else
3712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713/* end confdefs.h.  */
3714
3715int
3716main ()
3717{
3718#ifndef __GNUC__
3719       choke me
3720#endif
3721
3722  ;
3723  return 0;
3724}
3725_ACEOF
3726if ac_fn_c_try_compile "$LINENO"; then :
3727  ac_compiler_gnu=yes
3728else
3729  ac_compiler_gnu=no
3730fi
3731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732ac_cv_c_compiler_gnu=$ac_compiler_gnu
3733
3734fi
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3736$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3737if test $ac_compiler_gnu = yes; then
3738  GCC=yes
3739else
3740  GCC=
3741fi
3742ac_test_CFLAGS=${CFLAGS+set}
3743ac_save_CFLAGS=$CFLAGS
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3745$as_echo_n "checking whether $CC accepts -g... " >&6; }
3746if ${ac_cv_prog_cc_g+:} false; then :
3747  $as_echo_n "(cached) " >&6
3748else
3749  ac_save_c_werror_flag=$ac_c_werror_flag
3750   ac_c_werror_flag=yes
3751   ac_cv_prog_cc_g=no
3752   CFLAGS="-g"
3753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754/* end confdefs.h.  */
3755
3756int
3757main ()
3758{
3759
3760  ;
3761  return 0;
3762}
3763_ACEOF
3764if ac_fn_c_try_compile "$LINENO"; then :
3765  ac_cv_prog_cc_g=yes
3766else
3767  CFLAGS=""
3768      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769/* end confdefs.h.  */
3770
3771int
3772main ()
3773{
3774
3775  ;
3776  return 0;
3777}
3778_ACEOF
3779if ac_fn_c_try_compile "$LINENO"; then :
3780
3781else
3782  ac_c_werror_flag=$ac_save_c_werror_flag
3783	 CFLAGS="-g"
3784	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785/* end confdefs.h.  */
3786
3787int
3788main ()
3789{
3790
3791  ;
3792  return 0;
3793}
3794_ACEOF
3795if ac_fn_c_try_compile "$LINENO"; then :
3796  ac_cv_prog_cc_g=yes
3797fi
3798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799fi
3800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801fi
3802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803   ac_c_werror_flag=$ac_save_c_werror_flag
3804fi
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3806$as_echo "$ac_cv_prog_cc_g" >&6; }
3807if test "$ac_test_CFLAGS" = set; then
3808  CFLAGS=$ac_save_CFLAGS
3809elif test $ac_cv_prog_cc_g = yes; then
3810  if test "$GCC" = yes; then
3811    CFLAGS="-g -O2"
3812  else
3813    CFLAGS="-g"
3814  fi
3815else
3816  if test "$GCC" = yes; then
3817    CFLAGS="-O2"
3818  else
3819    CFLAGS=
3820  fi
3821fi
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3823$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3824if ${ac_cv_prog_cc_c89+:} false; then :
3825  $as_echo_n "(cached) " >&6
3826else
3827  ac_cv_prog_cc_c89=no
3828ac_save_CC=$CC
3829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830/* end confdefs.h.  */
3831#include <stdarg.h>
3832#include <stdio.h>
3833#include <sys/types.h>
3834#include <sys/stat.h>
3835/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3836struct buf { int x; };
3837FILE * (*rcsopen) (struct buf *, struct stat *, int);
3838static char *e (p, i)
3839     char **p;
3840     int i;
3841{
3842  return p[i];
3843}
3844static char *f (char * (*g) (char **, int), char **p, ...)
3845{
3846  char *s;
3847  va_list v;
3848  va_start (v,p);
3849  s = g (p, va_arg (v,int));
3850  va_end (v);
3851  return s;
3852}
3853
3854/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3855   function prototypes and stuff, but not '\xHH' hex character constants.
3856   These don't provoke an error unfortunately, instead are silently treated
3857   as 'x'.  The following induces an error, until -std is added to get
3858   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3859   array size at least.  It's necessary to write '\x00'==0 to get something
3860   that's true only with -std.  */
3861int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3862
3863/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3864   inside strings and character constants.  */
3865#define FOO(x) 'x'
3866int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3867
3868int test (int i, double x);
3869struct s1 {int (*f) (int a);};
3870struct s2 {int (*f) (double a);};
3871int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3872int argc;
3873char **argv;
3874int
3875main ()
3876{
3877return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3878  ;
3879  return 0;
3880}
3881_ACEOF
3882for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3883	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3884do
3885  CC="$ac_save_CC $ac_arg"
3886  if ac_fn_c_try_compile "$LINENO"; then :
3887  ac_cv_prog_cc_c89=$ac_arg
3888fi
3889rm -f core conftest.err conftest.$ac_objext
3890  test "x$ac_cv_prog_cc_c89" != "xno" && break
3891done
3892rm -f conftest.$ac_ext
3893CC=$ac_save_CC
3894
3895fi
3896# AC_CACHE_VAL
3897case "x$ac_cv_prog_cc_c89" in
3898  x)
3899    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3900$as_echo "none needed" >&6; } ;;
3901  xno)
3902    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3903$as_echo "unsupported" >&6; } ;;
3904  *)
3905    CC="$CC $ac_cv_prog_cc_c89"
3906    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3907$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3908esac
3909if test "x$ac_cv_prog_cc_c89" != xno; then :
3910
3911fi
3912
3913ac_ext=c
3914ac_cpp='$CPP $CPPFLAGS'
3915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917ac_compiler_gnu=$ac_cv_c_compiler_gnu
3918DEPDIR="${am__leading_dot}deps"
3919
3920ac_config_commands="$ac_config_commands depfiles"
3921
3922
3923am_make=${MAKE-make}
3924cat > confinc << 'END'
3925am__doit:
3926	@echo this is the am__doit target
3927.PHONY: am__doit
3928END
3929# If we don't find an include directive, just comment out the code.
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3931$as_echo_n "checking for style of include used by $am_make... " >&6; }
3932am__include="#"
3933am__quote=
3934_am_result=none
3935# First try GNU make style include.
3936echo "include confinc" > confmf
3937# Ignore all kinds of additional output from `make'.
3938case `$am_make -s -f confmf 2> /dev/null` in #(
3939*the\ am__doit\ target*)
3940  am__include=include
3941  am__quote=
3942  _am_result=GNU
3943  ;;
3944esac
3945# Now try BSD make style include.
3946if test "$am__include" = "#"; then
3947   echo '.include "confinc"' > confmf
3948   case `$am_make -s -f confmf 2> /dev/null` in #(
3949   *the\ am__doit\ target*)
3950     am__include=.include
3951     am__quote="\""
3952     _am_result=BSD
3953     ;;
3954   esac
3955fi
3956
3957
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3959$as_echo "$_am_result" >&6; }
3960rm -f confinc confmf
3961
3962# Check whether --enable-dependency-tracking was given.
3963if test "${enable_dependency_tracking+set}" = set; then :
3964  enableval=$enable_dependency_tracking;
3965fi
3966
3967if test "x$enable_dependency_tracking" != xno; then
3968  am_depcomp="$ac_aux_dir/depcomp"
3969  AMDEPBACKSLASH='\'
3970fi
3971 if test "x$enable_dependency_tracking" != xno; then
3972  AMDEP_TRUE=
3973  AMDEP_FALSE='#'
3974else
3975  AMDEP_TRUE='#'
3976  AMDEP_FALSE=
3977fi
3978
3979
3980
3981depcc="$CC"   am_compiler_list=
3982
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3984$as_echo_n "checking dependency style of $depcc... " >&6; }
3985if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3986  $as_echo_n "(cached) " >&6
3987else
3988  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3989  # We make a subdir and do the tests there.  Otherwise we can end up
3990  # making bogus files that we don't know about and never remove.  For
3991  # instance it was reported that on HP-UX the gcc test will end up
3992  # making a dummy file named `D' -- because `-MD' means `put the output
3993  # in D'.
3994  mkdir conftest.dir
3995  # Copy depcomp to subdir because otherwise we won't find it if we're
3996  # using a relative directory.
3997  cp "$am_depcomp" conftest.dir
3998  cd conftest.dir
3999  # We will build objects and dependencies in a subdirectory because
4000  # it helps to detect inapplicable dependency modes.  For instance
4001  # both Tru64's cc and ICC support -MD to output dependencies as a
4002  # side effect of compilation, but ICC will put the dependencies in
4003  # the current directory while Tru64 will put them in the object
4004  # directory.
4005  mkdir sub
4006
4007  am_cv_CC_dependencies_compiler_type=none
4008  if test "$am_compiler_list" = ""; then
4009     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4010  fi
4011  am__universal=false
4012  case " $depcc " in #(
4013     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4014     esac
4015
4016  for depmode in $am_compiler_list; do
4017    # Setup a source with many dependencies, because some compilers
4018    # like to wrap large dependency lists on column 80 (with \), and
4019    # we should not choose a depcomp mode which is confused by this.
4020    #
4021    # We need to recreate these files for each test, as the compiler may
4022    # overwrite some of them when testing with obscure command lines.
4023    # This happens at least with the AIX C compiler.
4024    : > sub/conftest.c
4025    for i in 1 2 3 4 5 6; do
4026      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4027      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4028      # Solaris 8's {/usr,}/bin/sh.
4029      touch sub/conftst$i.h
4030    done
4031    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4032
4033    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4034    # mode.  It turns out that the SunPro C++ compiler does not properly
4035    # handle `-M -o', and we need to detect this.  Also, some Intel
4036    # versions had trouble with output in subdirs
4037    am__obj=sub/conftest.${OBJEXT-o}
4038    am__minus_obj="-o $am__obj"
4039    case $depmode in
4040    gcc)
4041      # This depmode causes a compiler race in universal mode.
4042      test "$am__universal" = false || continue
4043      ;;
4044    nosideeffect)
4045      # after this tag, mechanisms are not by side-effect, so they'll
4046      # only be used when explicitly requested
4047      if test "x$enable_dependency_tracking" = xyes; then
4048	continue
4049      else
4050	break
4051      fi
4052      ;;
4053    msvisualcpp | msvcmsys)
4054      # This compiler won't grok `-c -o', but also, the minuso test has
4055      # not run yet.  These depmodes are late enough in the game, and
4056      # so weak that their functioning should not be impacted.
4057      am__obj=conftest.${OBJEXT-o}
4058      am__minus_obj=
4059      ;;
4060    none) break ;;
4061    esac
4062    if depmode=$depmode \
4063       source=sub/conftest.c object=$am__obj \
4064       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4065       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4066         >/dev/null 2>conftest.err &&
4067       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4068       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4069       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4070       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4071      # icc doesn't choke on unknown options, it will just issue warnings
4072      # or remarks (even with -Werror).  So we grep stderr for any message
4073      # that says an option was ignored or not supported.
4074      # When given -MP, icc 7.0 and 7.1 complain thusly:
4075      #   icc: Command line warning: ignoring option '-M'; no argument required
4076      # The diagnosis changed in icc 8.0:
4077      #   icc: Command line remark: option '-MP' not supported
4078      if (grep 'ignoring option' conftest.err ||
4079          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4080        am_cv_CC_dependencies_compiler_type=$depmode
4081        break
4082      fi
4083    fi
4084  done
4085
4086  cd ..
4087  rm -rf conftest.dir
4088else
4089  am_cv_CC_dependencies_compiler_type=none
4090fi
4091
4092fi
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4094$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4095CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4096
4097 if
4098  test "x$enable_dependency_tracking" != xno \
4099  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4100  am__fastdepCC_TRUE=
4101  am__fastdepCC_FALSE='#'
4102else
4103  am__fastdepCC_TRUE='#'
4104  am__fastdepCC_FALSE=
4105fi
4106
4107
4108
4109ac_ext=c
4110ac_cpp='$CPP $CPPFLAGS'
4111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113ac_compiler_gnu=$ac_cv_c_compiler_gnu
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4115$as_echo_n "checking how to run the C preprocessor... " >&6; }
4116# On Suns, sometimes $CPP names a directory.
4117if test -n "$CPP" && test -d "$CPP"; then
4118  CPP=
4119fi
4120if test -z "$CPP"; then
4121  if ${ac_cv_prog_CPP+:} false; then :
4122  $as_echo_n "(cached) " >&6
4123else
4124      # Double quotes because CPP needs to be expanded
4125    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4126    do
4127      ac_preproc_ok=false
4128for ac_c_preproc_warn_flag in '' yes
4129do
4130  # Use a header file that comes with gcc, so configuring glibc
4131  # with a fresh cross-compiler works.
4132  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4133  # <limits.h> exists even on freestanding compilers.
4134  # On the NeXT, cc -E runs the code through the compiler's parser,
4135  # not just through cpp. "Syntax error" is here to catch this case.
4136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137/* end confdefs.h.  */
4138#ifdef __STDC__
4139# include <limits.h>
4140#else
4141# include <assert.h>
4142#endif
4143		     Syntax error
4144_ACEOF
4145if ac_fn_c_try_cpp "$LINENO"; then :
4146
4147else
4148  # Broken: fails on valid input.
4149continue
4150fi
4151rm -f conftest.err conftest.i conftest.$ac_ext
4152
4153  # OK, works on sane cases.  Now check whether nonexistent headers
4154  # can be detected and how.
4155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156/* end confdefs.h.  */
4157#include <ac_nonexistent.h>
4158_ACEOF
4159if ac_fn_c_try_cpp "$LINENO"; then :
4160  # Broken: success on invalid input.
4161continue
4162else
4163  # Passes both tests.
4164ac_preproc_ok=:
4165break
4166fi
4167rm -f conftest.err conftest.i conftest.$ac_ext
4168
4169done
4170# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4171rm -f conftest.i conftest.err conftest.$ac_ext
4172if $ac_preproc_ok; then :
4173  break
4174fi
4175
4176    done
4177    ac_cv_prog_CPP=$CPP
4178
4179fi
4180  CPP=$ac_cv_prog_CPP
4181else
4182  ac_cv_prog_CPP=$CPP
4183fi
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4185$as_echo "$CPP" >&6; }
4186ac_preproc_ok=false
4187for ac_c_preproc_warn_flag in '' yes
4188do
4189  # Use a header file that comes with gcc, so configuring glibc
4190  # with a fresh cross-compiler works.
4191  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4192  # <limits.h> exists even on freestanding compilers.
4193  # On the NeXT, cc -E runs the code through the compiler's parser,
4194  # not just through cpp. "Syntax error" is here to catch this case.
4195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196/* end confdefs.h.  */
4197#ifdef __STDC__
4198# include <limits.h>
4199#else
4200# include <assert.h>
4201#endif
4202		     Syntax error
4203_ACEOF
4204if ac_fn_c_try_cpp "$LINENO"; then :
4205
4206else
4207  # Broken: fails on valid input.
4208continue
4209fi
4210rm -f conftest.err conftest.i conftest.$ac_ext
4211
4212  # OK, works on sane cases.  Now check whether nonexistent headers
4213  # can be detected and how.
4214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215/* end confdefs.h.  */
4216#include <ac_nonexistent.h>
4217_ACEOF
4218if ac_fn_c_try_cpp "$LINENO"; then :
4219  # Broken: success on invalid input.
4220continue
4221else
4222  # Passes both tests.
4223ac_preproc_ok=:
4224break
4225fi
4226rm -f conftest.err conftest.i conftest.$ac_ext
4227
4228done
4229# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4230rm -f conftest.i conftest.err conftest.$ac_ext
4231if $ac_preproc_ok; then :
4232
4233else
4234  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4236as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4237See \`config.log' for more details" "$LINENO" 5; }
4238fi
4239
4240ac_ext=c
4241ac_cpp='$CPP $CPPFLAGS'
4242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245
4246# Extract the first word of "rm", so it can be a program name with args.
4247set dummy rm; ac_word=$2
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4249$as_echo_n "checking for $ac_word... " >&6; }
4250if ${ac_cv_path_RM+:} false; then :
4251  $as_echo_n "(cached) " >&6
4252else
4253  case $RM in
4254  [\\/]* | ?:[\\/]*)
4255  ac_cv_path_RM="$RM" # Let the user override the test with a path.
4256  ;;
4257  *)
4258  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259for as_dir in $PATH
4260do
4261  IFS=$as_save_IFS
4262  test -z "$as_dir" && as_dir=.
4263    for ac_exec_ext in '' $ac_executable_extensions; do
4264  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4265    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4267    break 2
4268  fi
4269done
4270  done
4271IFS=$as_save_IFS
4272
4273  test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
4274  ;;
4275esac
4276fi
4277RM=$ac_cv_path_RM
4278if test -n "$RM"; then
4279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4280$as_echo "$RM" >&6; }
4281else
4282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283$as_echo "no" >&6; }
4284fi
4285
4286
4287# Extract the first word of "mv", so it can be a program name with args.
4288set dummy mv; ac_word=$2
4289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4290$as_echo_n "checking for $ac_word... " >&6; }
4291if ${ac_cv_path_MV+:} false; then :
4292  $as_echo_n "(cached) " >&6
4293else
4294  case $MV in
4295  [\\/]* | ?:[\\/]*)
4296  ac_cv_path_MV="$MV" # Let the user override the test with a path.
4297  ;;
4298  *)
4299  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300for as_dir in $PATH
4301do
4302  IFS=$as_save_IFS
4303  test -z "$as_dir" && as_dir=.
4304    for ac_exec_ext in '' $ac_executable_extensions; do
4305  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308    break 2
4309  fi
4310done
4311  done
4312IFS=$as_save_IFS
4313
4314  test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
4315  ;;
4316esac
4317fi
4318MV=$ac_cv_path_MV
4319if test -n "$MV"; then
4320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4321$as_echo "$MV" >&6; }
4322else
4323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324$as_echo "no" >&6; }
4325fi
4326
4327
4328# Extract the first word of "tar", so it can be a program name with args.
4329set dummy tar; ac_word=$2
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331$as_echo_n "checking for $ac_word... " >&6; }
4332if ${ac_cv_path_TAR+:} false; then :
4333  $as_echo_n "(cached) " >&6
4334else
4335  case $TAR in
4336  [\\/]* | ?:[\\/]*)
4337  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4338  ;;
4339  *)
4340  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341for as_dir in $PATH
4342do
4343  IFS=$as_save_IFS
4344  test -z "$as_dir" && as_dir=.
4345    for ac_exec_ext in '' $ac_executable_extensions; do
4346  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349    break 2
4350  fi
4351done
4352  done
4353IFS=$as_save_IFS
4354
4355  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
4356  ;;
4357esac
4358fi
4359TAR=$ac_cv_path_TAR
4360if test -n "$TAR"; then
4361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
4362$as_echo "$TAR" >&6; }
4363else
4364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365$as_echo "no" >&6; }
4366fi
4367
4368
4369# Extract the first word of "perl", so it can be a program name with args.
4370set dummy perl; ac_word=$2
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372$as_echo_n "checking for $ac_word... " >&6; }
4373if ${ac_cv_path_PERL+:} false; then :
4374  $as_echo_n "(cached) " >&6
4375else
4376  case $PERL in
4377  [\\/]* | ?:[\\/]*)
4378  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4379  ;;
4380  *)
4381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382for as_dir in $PATH
4383do
4384  IFS=$as_save_IFS
4385  test -z "$as_dir" && as_dir=.
4386    for ac_exec_ext in '' $ac_executable_extensions; do
4387  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4388    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4390    break 2
4391  fi
4392done
4393  done
4394IFS=$as_save_IFS
4395
4396  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
4397  ;;
4398esac
4399fi
4400PERL=$ac_cv_path_PERL
4401if test -n "$PERL"; then
4402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4403$as_echo "$PERL" >&6; }
4404else
4405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406$as_echo "no" >&6; }
4407fi
4408
4409
4410# Extract the first word of "wget", so it can be a program name with args.
4411set dummy wget; ac_word=$2
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4413$as_echo_n "checking for $ac_word... " >&6; }
4414if ${ac_cv_path_WGET+:} false; then :
4415  $as_echo_n "(cached) " >&6
4416else
4417  case $WGET in
4418  [\\/]* | ?:[\\/]*)
4419  ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
4420  ;;
4421  *)
4422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423for as_dir in $PATH
4424do
4425  IFS=$as_save_IFS
4426  test -z "$as_dir" && as_dir=.
4427    for ac_exec_ext in '' $ac_executable_extensions; do
4428  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429    ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
4430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431    break 2
4432  fi
4433done
4434  done
4435IFS=$as_save_IFS
4436
4437  test -z "$ac_cv_path_WGET" && ac_cv_path_WGET="/usr/bin/wget"
4438  ;;
4439esac
4440fi
4441WGET=$ac_cv_path_WGET
4442if test -n "$WGET"; then
4443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
4444$as_echo "$WGET" >&6; }
4445else
4446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447$as_echo "no" >&6; }
4448fi
4449
4450
4451# Extract the first word of "xmllint", so it can be a program name with args.
4452set dummy xmllint; ac_word=$2
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454$as_echo_n "checking for $ac_word... " >&6; }
4455if ${ac_cv_path_XMLLINT+:} false; then :
4456  $as_echo_n "(cached) " >&6
4457else
4458  case $XMLLINT in
4459  [\\/]* | ?:[\\/]*)
4460  ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
4461  ;;
4462  *)
4463  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464for as_dir in $PATH
4465do
4466  IFS=$as_save_IFS
4467  test -z "$as_dir" && as_dir=.
4468    for ac_exec_ext in '' $ac_executable_extensions; do
4469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4470    ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
4471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4472    break 2
4473  fi
4474done
4475  done
4476IFS=$as_save_IFS
4477
4478  test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="/usr/bin/xmllint"
4479  ;;
4480esac
4481fi
4482XMLLINT=$ac_cv_path_XMLLINT
4483if test -n "$XMLLINT"; then
4484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
4485$as_echo "$XMLLINT" >&6; }
4486else
4487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488$as_echo "no" >&6; }
4489fi
4490
4491
4492# Extract the first word of "xsltproc", so it can be a program name with args.
4493set dummy xsltproc; ac_word=$2
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495$as_echo_n "checking for $ac_word... " >&6; }
4496if ${ac_cv_path_XSLTPROC+:} false; then :
4497  $as_echo_n "(cached) " >&6
4498else
4499  case $XSLTPROC in
4500  [\\/]* | ?:[\\/]*)
4501  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
4502  ;;
4503  *)
4504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507  IFS=$as_save_IFS
4508  test -z "$as_dir" && as_dir=.
4509    for ac_exec_ext in '' $ac_executable_extensions; do
4510  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
4512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513    break 2
4514  fi
4515done
4516  done
4517IFS=$as_save_IFS
4518
4519  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="/usr/bin/xsltproc"
4520  ;;
4521esac
4522fi
4523XSLTPROC=$ac_cv_path_XSLTPROC
4524if test -n "$XSLTPROC"; then
4525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
4526$as_echo "$XSLTPROC" >&6; }
4527else
4528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529$as_echo "no" >&6; }
4530fi
4531
4532
4533
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
4535$as_echo_n "checking for function prototypes... " >&6; }
4536if test "$ac_cv_prog_cc_c89" != no; then
4537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4538$as_echo "yes" >&6; }
4539
4540$as_echo "#define PROTOTYPES 1" >>confdefs.h
4541
4542
4543$as_echo "#define __PROTOTYPES 1" >>confdefs.h
4544
4545else
4546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547$as_echo "no" >&6; }
4548fi
4549
4550
4551
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4553$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4554if ${ac_cv_path_GREP+:} false; then :
4555  $as_echo_n "(cached) " >&6
4556else
4557  if test -z "$GREP"; then
4558  ac_path_GREP_found=false
4559  # Loop through the user's path and test for each of PROGNAME-LIST
4560  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4562do
4563  IFS=$as_save_IFS
4564  test -z "$as_dir" && as_dir=.
4565    for ac_prog in grep ggrep; do
4566    for ac_exec_ext in '' $ac_executable_extensions; do
4567      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4568      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4569# Check for GNU ac_path_GREP and select it if it is found.
4570  # Check for GNU $ac_path_GREP
4571case `"$ac_path_GREP" --version 2>&1` in
4572*GNU*)
4573  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4574*)
4575  ac_count=0
4576  $as_echo_n 0123456789 >"conftest.in"
4577  while :
4578  do
4579    cat "conftest.in" "conftest.in" >"conftest.tmp"
4580    mv "conftest.tmp" "conftest.in"
4581    cp "conftest.in" "conftest.nl"
4582    $as_echo 'GREP' >> "conftest.nl"
4583    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4584    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4585    as_fn_arith $ac_count + 1 && ac_count=$as_val
4586    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4587      # Best one so far, save it but keep looking for a better one
4588      ac_cv_path_GREP="$ac_path_GREP"
4589      ac_path_GREP_max=$ac_count
4590    fi
4591    # 10*(2^10) chars as input seems more than enough
4592    test $ac_count -gt 10 && break
4593  done
4594  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4595esac
4596
4597      $ac_path_GREP_found && break 3
4598    done
4599  done
4600  done
4601IFS=$as_save_IFS
4602  if test -z "$ac_cv_path_GREP"; then
4603    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4604  fi
4605else
4606  ac_cv_path_GREP=$GREP
4607fi
4608
4609fi
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4611$as_echo "$ac_cv_path_GREP" >&6; }
4612 GREP="$ac_cv_path_GREP"
4613
4614
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4616$as_echo_n "checking for egrep... " >&6; }
4617if ${ac_cv_path_EGREP+:} false; then :
4618  $as_echo_n "(cached) " >&6
4619else
4620  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4621   then ac_cv_path_EGREP="$GREP -E"
4622   else
4623     if test -z "$EGREP"; then
4624  ac_path_EGREP_found=false
4625  # Loop through the user's path and test for each of PROGNAME-LIST
4626  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4628do
4629  IFS=$as_save_IFS
4630  test -z "$as_dir" && as_dir=.
4631    for ac_prog in egrep; do
4632    for ac_exec_ext in '' $ac_executable_extensions; do
4633      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4634      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4635# Check for GNU ac_path_EGREP and select it if it is found.
4636  # Check for GNU $ac_path_EGREP
4637case `"$ac_path_EGREP" --version 2>&1` in
4638*GNU*)
4639  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4640*)
4641  ac_count=0
4642  $as_echo_n 0123456789 >"conftest.in"
4643  while :
4644  do
4645    cat "conftest.in" "conftest.in" >"conftest.tmp"
4646    mv "conftest.tmp" "conftest.in"
4647    cp "conftest.in" "conftest.nl"
4648    $as_echo 'EGREP' >> "conftest.nl"
4649    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4650    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4651    as_fn_arith $ac_count + 1 && ac_count=$as_val
4652    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4653      # Best one so far, save it but keep looking for a better one
4654      ac_cv_path_EGREP="$ac_path_EGREP"
4655      ac_path_EGREP_max=$ac_count
4656    fi
4657    # 10*(2^10) chars as input seems more than enough
4658    test $ac_count -gt 10 && break
4659  done
4660  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4661esac
4662
4663      $ac_path_EGREP_found && break 3
4664    done
4665  done
4666  done
4667IFS=$as_save_IFS
4668  if test -z "$ac_cv_path_EGREP"; then
4669    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4670  fi
4671else
4672  ac_cv_path_EGREP=$EGREP
4673fi
4674
4675   fi
4676fi
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4678$as_echo "$ac_cv_path_EGREP" >&6; }
4679 EGREP="$ac_cv_path_EGREP"
4680
4681
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4683$as_echo_n "checking for ANSI C header files... " >&6; }
4684if ${ac_cv_header_stdc+:} false; then :
4685  $as_echo_n "(cached) " >&6
4686else
4687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688/* end confdefs.h.  */
4689#include <stdlib.h>
4690#include <stdarg.h>
4691#include <string.h>
4692#include <float.h>
4693
4694int
4695main ()
4696{
4697
4698  ;
4699  return 0;
4700}
4701_ACEOF
4702if ac_fn_c_try_compile "$LINENO"; then :
4703  ac_cv_header_stdc=yes
4704else
4705  ac_cv_header_stdc=no
4706fi
4707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708
4709if test $ac_cv_header_stdc = yes; then
4710  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712/* end confdefs.h.  */
4713#include <string.h>
4714
4715_ACEOF
4716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4717  $EGREP "memchr" >/dev/null 2>&1; then :
4718
4719else
4720  ac_cv_header_stdc=no
4721fi
4722rm -f conftest*
4723
4724fi
4725
4726if test $ac_cv_header_stdc = yes; then
4727  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729/* end confdefs.h.  */
4730#include <stdlib.h>
4731
4732_ACEOF
4733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4734  $EGREP "free" >/dev/null 2>&1; then :
4735
4736else
4737  ac_cv_header_stdc=no
4738fi
4739rm -f conftest*
4740
4741fi
4742
4743if test $ac_cv_header_stdc = yes; then
4744  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4745  if test "$cross_compiling" = yes; then :
4746  :
4747else
4748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749/* end confdefs.h.  */
4750#include <ctype.h>
4751#include <stdlib.h>
4752#if ((' ' & 0x0FF) == 0x020)
4753# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4754# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4755#else
4756# define ISLOWER(c) \
4757		   (('a' <= (c) && (c) <= 'i') \
4758		     || ('j' <= (c) && (c) <= 'r') \
4759		     || ('s' <= (c) && (c) <= 'z'))
4760# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4761#endif
4762
4763#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4764int
4765main ()
4766{
4767  int i;
4768  for (i = 0; i < 256; i++)
4769    if (XOR (islower (i), ISLOWER (i))
4770	|| toupper (i) != TOUPPER (i))
4771      return 2;
4772  return 0;
4773}
4774_ACEOF
4775if ac_fn_c_try_run "$LINENO"; then :
4776
4777else
4778  ac_cv_header_stdc=no
4779fi
4780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4781  conftest.$ac_objext conftest.beam conftest.$ac_ext
4782fi
4783
4784fi
4785fi
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4787$as_echo "$ac_cv_header_stdc" >&6; }
4788if test $ac_cv_header_stdc = yes; then
4789
4790$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4791
4792fi
4793
4794# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4795for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4796		  inttypes.h stdint.h unistd.h
4797do :
4798  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4799ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4800"
4801if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4802  cat >>confdefs.h <<_ACEOF
4803#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4804_ACEOF
4805
4806fi
4807
4808done
4809
4810
4811
4812if test "$ac_cv_prog_cc_stdc" != no; then
4813  U= ANSI2KNR=
4814else
4815  U=_ ANSI2KNR=./ansi2knr
4816fi
4817# Ensure some checks needed by ansi2knr itself.
4818
4819for ac_header in string.h
4820do :
4821  ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4822if test "x$ac_cv_header_string_h" = xyes; then :
4823  cat >>confdefs.h <<_ACEOF
4824#define HAVE_STRING_H 1
4825_ACEOF
4826
4827fi
4828
4829done
4830
4831
4832test "x$U" != "x" && as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
4833
4834enable_win32_dll=yes
4835
4836case $host in
4837*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4838  if test -n "$ac_tool_prefix"; then
4839  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4840set dummy ${ac_tool_prefix}as; ac_word=$2
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842$as_echo_n "checking for $ac_word... " >&6; }
4843if ${ac_cv_prog_AS+:} false; then :
4844  $as_echo_n "(cached) " >&6
4845else
4846  if test -n "$AS"; then
4847  ac_cv_prog_AS="$AS" # Let the user override the test.
4848else
4849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850for as_dir in $PATH
4851do
4852  IFS=$as_save_IFS
4853  test -z "$as_dir" && as_dir=.
4854    for ac_exec_ext in '' $ac_executable_extensions; do
4855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856    ac_cv_prog_AS="${ac_tool_prefix}as"
4857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4858    break 2
4859  fi
4860done
4861  done
4862IFS=$as_save_IFS
4863
4864fi
4865fi
4866AS=$ac_cv_prog_AS
4867if test -n "$AS"; then
4868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4869$as_echo "$AS" >&6; }
4870else
4871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872$as_echo "no" >&6; }
4873fi
4874
4875
4876fi
4877if test -z "$ac_cv_prog_AS"; then
4878  ac_ct_AS=$AS
4879  # Extract the first word of "as", so it can be a program name with args.
4880set dummy as; ac_word=$2
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882$as_echo_n "checking for $ac_word... " >&6; }
4883if ${ac_cv_prog_ac_ct_AS+:} false; then :
4884  $as_echo_n "(cached) " >&6
4885else
4886  if test -n "$ac_ct_AS"; then
4887  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4888else
4889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890for as_dir in $PATH
4891do
4892  IFS=$as_save_IFS
4893  test -z "$as_dir" && as_dir=.
4894    for ac_exec_ext in '' $ac_executable_extensions; do
4895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896    ac_cv_prog_ac_ct_AS="as"
4897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898    break 2
4899  fi
4900done
4901  done
4902IFS=$as_save_IFS
4903
4904fi
4905fi
4906ac_ct_AS=$ac_cv_prog_ac_ct_AS
4907if test -n "$ac_ct_AS"; then
4908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4909$as_echo "$ac_ct_AS" >&6; }
4910else
4911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912$as_echo "no" >&6; }
4913fi
4914
4915  if test "x$ac_ct_AS" = x; then
4916    AS="false"
4917  else
4918    case $cross_compiling:$ac_tool_warned in
4919yes:)
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4922ac_tool_warned=yes ;;
4923esac
4924    AS=$ac_ct_AS
4925  fi
4926else
4927  AS="$ac_cv_prog_AS"
4928fi
4929
4930  if test -n "$ac_tool_prefix"; then
4931  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4932set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934$as_echo_n "checking for $ac_word... " >&6; }
4935if ${ac_cv_prog_DLLTOOL+:} false; then :
4936  $as_echo_n "(cached) " >&6
4937else
4938  if test -n "$DLLTOOL"; then
4939  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4940else
4941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942for as_dir in $PATH
4943do
4944  IFS=$as_save_IFS
4945  test -z "$as_dir" && as_dir=.
4946    for ac_exec_ext in '' $ac_executable_extensions; do
4947  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4948    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4950    break 2
4951  fi
4952done
4953  done
4954IFS=$as_save_IFS
4955
4956fi
4957fi
4958DLLTOOL=$ac_cv_prog_DLLTOOL
4959if test -n "$DLLTOOL"; then
4960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4961$as_echo "$DLLTOOL" >&6; }
4962else
4963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964$as_echo "no" >&6; }
4965fi
4966
4967
4968fi
4969if test -z "$ac_cv_prog_DLLTOOL"; then
4970  ac_ct_DLLTOOL=$DLLTOOL
4971  # Extract the first word of "dlltool", so it can be a program name with args.
4972set dummy dlltool; ac_word=$2
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974$as_echo_n "checking for $ac_word... " >&6; }
4975if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4976  $as_echo_n "(cached) " >&6
4977else
4978  if test -n "$ac_ct_DLLTOOL"; then
4979  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4980else
4981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982for as_dir in $PATH
4983do
4984  IFS=$as_save_IFS
4985  test -z "$as_dir" && as_dir=.
4986    for ac_exec_ext in '' $ac_executable_extensions; do
4987  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4988    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990    break 2
4991  fi
4992done
4993  done
4994IFS=$as_save_IFS
4995
4996fi
4997fi
4998ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4999if test -n "$ac_ct_DLLTOOL"; then
5000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5001$as_echo "$ac_ct_DLLTOOL" >&6; }
5002else
5003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004$as_echo "no" >&6; }
5005fi
5006
5007  if test "x$ac_ct_DLLTOOL" = x; then
5008    DLLTOOL="false"
5009  else
5010    case $cross_compiling:$ac_tool_warned in
5011yes:)
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5014ac_tool_warned=yes ;;
5015esac
5016    DLLTOOL=$ac_ct_DLLTOOL
5017  fi
5018else
5019  DLLTOOL="$ac_cv_prog_DLLTOOL"
5020fi
5021
5022  if test -n "$ac_tool_prefix"; then
5023  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5024set dummy ${ac_tool_prefix}objdump; ac_word=$2
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026$as_echo_n "checking for $ac_word... " >&6; }
5027if ${ac_cv_prog_OBJDUMP+:} false; then :
5028  $as_echo_n "(cached) " >&6
5029else
5030  if test -n "$OBJDUMP"; then
5031  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5032else
5033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036  IFS=$as_save_IFS
5037  test -z "$as_dir" && as_dir=.
5038    for ac_exec_ext in '' $ac_executable_extensions; do
5039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042    break 2
5043  fi
5044done
5045  done
5046IFS=$as_save_IFS
5047
5048fi
5049fi
5050OBJDUMP=$ac_cv_prog_OBJDUMP
5051if test -n "$OBJDUMP"; then
5052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5053$as_echo "$OBJDUMP" >&6; }
5054else
5055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056$as_echo "no" >&6; }
5057fi
5058
5059
5060fi
5061if test -z "$ac_cv_prog_OBJDUMP"; then
5062  ac_ct_OBJDUMP=$OBJDUMP
5063  # Extract the first word of "objdump", so it can be a program name with args.
5064set dummy objdump; ac_word=$2
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066$as_echo_n "checking for $ac_word... " >&6; }
5067if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5068  $as_echo_n "(cached) " >&6
5069else
5070  if test -n "$ac_ct_OBJDUMP"; then
5071  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5072else
5073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074for as_dir in $PATH
5075do
5076  IFS=$as_save_IFS
5077  test -z "$as_dir" && as_dir=.
5078    for ac_exec_ext in '' $ac_executable_extensions; do
5079  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5080    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082    break 2
5083  fi
5084done
5085  done
5086IFS=$as_save_IFS
5087
5088fi
5089fi
5090ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5091if test -n "$ac_ct_OBJDUMP"; then
5092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5093$as_echo "$ac_ct_OBJDUMP" >&6; }
5094else
5095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096$as_echo "no" >&6; }
5097fi
5098
5099  if test "x$ac_ct_OBJDUMP" = x; then
5100    OBJDUMP="false"
5101  else
5102    case $cross_compiling:$ac_tool_warned in
5103yes:)
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5106ac_tool_warned=yes ;;
5107esac
5108    OBJDUMP=$ac_ct_OBJDUMP
5109  fi
5110else
5111  OBJDUMP="$ac_cv_prog_OBJDUMP"
5112fi
5113
5114  ;;
5115esac
5116
5117test -z "$AS" && AS=as
5118
5119
5120
5121
5122
5123test -z "$DLLTOOL" && DLLTOOL=dlltool
5124
5125
5126
5127
5128
5129test -z "$OBJDUMP" && OBJDUMP=objdump
5130
5131
5132
5133
5134
5135
5136
5137case `pwd` in
5138  *\ * | *\	*)
5139    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5140$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5141esac
5142
5143
5144
5145macro_version='2.2.6b'
5146macro_revision='1.3017'
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160ltmain="$ac_aux_dir/ltmain.sh"
5161
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5163$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5164if ${ac_cv_path_SED+:} false; then :
5165  $as_echo_n "(cached) " >&6
5166else
5167            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5168     for ac_i in 1 2 3 4 5 6 7; do
5169       ac_script="$ac_script$as_nl$ac_script"
5170     done
5171     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5172     { ac_script=; unset ac_script;}
5173     if test -z "$SED"; then
5174  ac_path_SED_found=false
5175  # Loop through the user's path and test for each of PROGNAME-LIST
5176  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177for as_dir in $PATH
5178do
5179  IFS=$as_save_IFS
5180  test -z "$as_dir" && as_dir=.
5181    for ac_prog in sed gsed; do
5182    for ac_exec_ext in '' $ac_executable_extensions; do
5183      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5184      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5185# Check for GNU ac_path_SED and select it if it is found.
5186  # Check for GNU $ac_path_SED
5187case `"$ac_path_SED" --version 2>&1` in
5188*GNU*)
5189  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5190*)
5191  ac_count=0
5192  $as_echo_n 0123456789 >"conftest.in"
5193  while :
5194  do
5195    cat "conftest.in" "conftest.in" >"conftest.tmp"
5196    mv "conftest.tmp" "conftest.in"
5197    cp "conftest.in" "conftest.nl"
5198    $as_echo '' >> "conftest.nl"
5199    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5200    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5201    as_fn_arith $ac_count + 1 && ac_count=$as_val
5202    if test $ac_count -gt ${ac_path_SED_max-0}; then
5203      # Best one so far, save it but keep looking for a better one
5204      ac_cv_path_SED="$ac_path_SED"
5205      ac_path_SED_max=$ac_count
5206    fi
5207    # 10*(2^10) chars as input seems more than enough
5208    test $ac_count -gt 10 && break
5209  done
5210  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5211esac
5212
5213      $ac_path_SED_found && break 3
5214    done
5215  done
5216  done
5217IFS=$as_save_IFS
5218  if test -z "$ac_cv_path_SED"; then
5219    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5220  fi
5221else
5222  ac_cv_path_SED=$SED
5223fi
5224
5225fi
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5227$as_echo "$ac_cv_path_SED" >&6; }
5228 SED="$ac_cv_path_SED"
5229  rm -f conftest.sed
5230
5231test -z "$SED" && SED=sed
5232Xsed="$SED -e 1s/^X//"
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5245$as_echo_n "checking for fgrep... " >&6; }
5246if ${ac_cv_path_FGREP+:} false; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5250   then ac_cv_path_FGREP="$GREP -F"
5251   else
5252     if test -z "$FGREP"; then
5253  ac_path_FGREP_found=false
5254  # Loop through the user's path and test for each of PROGNAME-LIST
5255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5257do
5258  IFS=$as_save_IFS
5259  test -z "$as_dir" && as_dir=.
5260    for ac_prog in fgrep; do
5261    for ac_exec_ext in '' $ac_executable_extensions; do
5262      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5263      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5264# Check for GNU ac_path_FGREP and select it if it is found.
5265  # Check for GNU $ac_path_FGREP
5266case `"$ac_path_FGREP" --version 2>&1` in
5267*GNU*)
5268  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5269*)
5270  ac_count=0
5271  $as_echo_n 0123456789 >"conftest.in"
5272  while :
5273  do
5274    cat "conftest.in" "conftest.in" >"conftest.tmp"
5275    mv "conftest.tmp" "conftest.in"
5276    cp "conftest.in" "conftest.nl"
5277    $as_echo 'FGREP' >> "conftest.nl"
5278    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5279    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5280    as_fn_arith $ac_count + 1 && ac_count=$as_val
5281    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5282      # Best one so far, save it but keep looking for a better one
5283      ac_cv_path_FGREP="$ac_path_FGREP"
5284      ac_path_FGREP_max=$ac_count
5285    fi
5286    # 10*(2^10) chars as input seems more than enough
5287    test $ac_count -gt 10 && break
5288  done
5289  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5290esac
5291
5292      $ac_path_FGREP_found && break 3
5293    done
5294  done
5295  done
5296IFS=$as_save_IFS
5297  if test -z "$ac_cv_path_FGREP"; then
5298    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5299  fi
5300else
5301  ac_cv_path_FGREP=$FGREP
5302fi
5303
5304   fi
5305fi
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5307$as_echo "$ac_cv_path_FGREP" >&6; }
5308 FGREP="$ac_cv_path_FGREP"
5309
5310
5311test -z "$GREP" && GREP=grep
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331# Check whether --with-gnu-ld was given.
5332if test "${with_gnu_ld+set}" = set; then :
5333  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5334else
5335  with_gnu_ld=no
5336fi
5337
5338ac_prog=ld
5339if test "$GCC" = yes; then
5340  # Check if gcc -print-prog-name=ld gives a path.
5341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5342$as_echo_n "checking for ld used by $CC... " >&6; }
5343  case $host in
5344  *-*-mingw*)
5345    # gcc leaves a trailing carriage return which upsets mingw
5346    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5347  *)
5348    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5349  esac
5350  case $ac_prog in
5351    # Accept absolute paths.
5352    [\\/]* | ?:[\\/]*)
5353      re_direlt='/[^/][^/]*/\.\./'
5354      # Canonicalize the pathname of ld
5355      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5356      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5357	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5358      done
5359      test -z "$LD" && LD="$ac_prog"
5360      ;;
5361  "")
5362    # If it fails, then pretend we aren't using GCC.
5363    ac_prog=ld
5364    ;;
5365  *)
5366    # If it is relative, then search for the first ld in PATH.
5367    with_gnu_ld=unknown
5368    ;;
5369  esac
5370elif test "$with_gnu_ld" = yes; then
5371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5372$as_echo_n "checking for GNU ld... " >&6; }
5373else
5374  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5375$as_echo_n "checking for non-GNU ld... " >&6; }
5376fi
5377if ${lt_cv_path_LD+:} false; then :
5378  $as_echo_n "(cached) " >&6
5379else
5380  if test -z "$LD"; then
5381  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5382  for ac_dir in $PATH; do
5383    IFS="$lt_save_ifs"
5384    test -z "$ac_dir" && ac_dir=.
5385    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5386      lt_cv_path_LD="$ac_dir/$ac_prog"
5387      # Check to see if the program is GNU ld.  I'd rather use --version,
5388      # but apparently some variants of GNU ld only accept -v.
5389      # Break only if it was the GNU/non-GNU ld that we prefer.
5390      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5391      *GNU* | *'with BFD'*)
5392	test "$with_gnu_ld" != no && break
5393	;;
5394      *)
5395	test "$with_gnu_ld" != yes && break
5396	;;
5397      esac
5398    fi
5399  done
5400  IFS="$lt_save_ifs"
5401else
5402  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5403fi
5404fi
5405
5406LD="$lt_cv_path_LD"
5407if test -n "$LD"; then
5408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5409$as_echo "$LD" >&6; }
5410else
5411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412$as_echo "no" >&6; }
5413fi
5414test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5416$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5417if ${lt_cv_prog_gnu_ld+:} false; then :
5418  $as_echo_n "(cached) " >&6
5419else
5420  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5421case `$LD -v 2>&1 </dev/null` in
5422*GNU* | *'with BFD'*)
5423  lt_cv_prog_gnu_ld=yes
5424  ;;
5425*)
5426  lt_cv_prog_gnu_ld=no
5427  ;;
5428esac
5429fi
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5431$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5432with_gnu_ld=$lt_cv_prog_gnu_ld
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5443$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5444if ${lt_cv_path_NM+:} false; then :
5445  $as_echo_n "(cached) " >&6
5446else
5447  if test -n "$NM"; then
5448  # Let the user override the test.
5449  lt_cv_path_NM="$NM"
5450else
5451  lt_nm_to_check="${ac_tool_prefix}nm"
5452  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5453    lt_nm_to_check="$lt_nm_to_check nm"
5454  fi
5455  for lt_tmp_nm in $lt_nm_to_check; do
5456    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5457    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5458      IFS="$lt_save_ifs"
5459      test -z "$ac_dir" && ac_dir=.
5460      tmp_nm="$ac_dir/$lt_tmp_nm"
5461      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5462	# Check to see if the nm accepts a BSD-compat flag.
5463	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5464	#   nm: unknown option "B" ignored
5465	# Tru64's nm complains that /dev/null is an invalid object file
5466	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5467	*/dev/null* | *'Invalid file or object type'*)
5468	  lt_cv_path_NM="$tmp_nm -B"
5469	  break
5470	  ;;
5471	*)
5472	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5473	  */dev/null*)
5474	    lt_cv_path_NM="$tmp_nm -p"
5475	    break
5476	    ;;
5477	  *)
5478	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5479	    continue # so that we can try to find one that supports BSD flags
5480	    ;;
5481	  esac
5482	  ;;
5483	esac
5484      fi
5485    done
5486    IFS="$lt_save_ifs"
5487  done
5488  : ${lt_cv_path_NM=no}
5489fi
5490fi
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5492$as_echo "$lt_cv_path_NM" >&6; }
5493if test "$lt_cv_path_NM" != "no"; then
5494  NM="$lt_cv_path_NM"
5495else
5496  # Didn't find any BSD compatible name lister, look for dumpbin.
5497  if test -n "$ac_tool_prefix"; then
5498  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5499  do
5500    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5501set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503$as_echo_n "checking for $ac_word... " >&6; }
5504if ${ac_cv_prog_DUMPBIN+:} false; then :
5505  $as_echo_n "(cached) " >&6
5506else
5507  if test -n "$DUMPBIN"; then
5508  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5509else
5510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511for as_dir in $PATH
5512do
5513  IFS=$as_save_IFS
5514  test -z "$as_dir" && as_dir=.
5515    for ac_exec_ext in '' $ac_executable_extensions; do
5516  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519    break 2
5520  fi
5521done
5522  done
5523IFS=$as_save_IFS
5524
5525fi
5526fi
5527DUMPBIN=$ac_cv_prog_DUMPBIN
5528if test -n "$DUMPBIN"; then
5529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5530$as_echo "$DUMPBIN" >&6; }
5531else
5532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533$as_echo "no" >&6; }
5534fi
5535
5536
5537    test -n "$DUMPBIN" && break
5538  done
5539fi
5540if test -z "$DUMPBIN"; then
5541  ac_ct_DUMPBIN=$DUMPBIN
5542  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5543do
5544  # Extract the first word of "$ac_prog", so it can be a program name with args.
5545set dummy $ac_prog; ac_word=$2
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547$as_echo_n "checking for $ac_word... " >&6; }
5548if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5549  $as_echo_n "(cached) " >&6
5550else
5551  if test -n "$ac_ct_DUMPBIN"; then
5552  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5553else
5554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH
5556do
5557  IFS=$as_save_IFS
5558  test -z "$as_dir" && as_dir=.
5559    for ac_exec_ext in '' $ac_executable_extensions; do
5560  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5561    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563    break 2
5564  fi
5565done
5566  done
5567IFS=$as_save_IFS
5568
5569fi
5570fi
5571ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5572if test -n "$ac_ct_DUMPBIN"; then
5573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5574$as_echo "$ac_ct_DUMPBIN" >&6; }
5575else
5576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577$as_echo "no" >&6; }
5578fi
5579
5580
5581  test -n "$ac_ct_DUMPBIN" && break
5582done
5583
5584  if test "x$ac_ct_DUMPBIN" = x; then
5585    DUMPBIN=":"
5586  else
5587    case $cross_compiling:$ac_tool_warned in
5588yes:)
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5591ac_tool_warned=yes ;;
5592esac
5593    DUMPBIN=$ac_ct_DUMPBIN
5594  fi
5595fi
5596
5597
5598  if test "$DUMPBIN" != ":"; then
5599    NM="$DUMPBIN"
5600  fi
5601fi
5602test -z "$NM" && NM=nm
5603
5604
5605
5606
5607
5608
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5610$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5611if ${lt_cv_nm_interface+:} false; then :
5612  $as_echo_n "(cached) " >&6
5613else
5614  lt_cv_nm_interface="BSD nm"
5615  echo "int some_variable = 0;" > conftest.$ac_ext
5616  (eval echo "\"\$as_me:5616: $ac_compile\"" >&5)
5617  (eval "$ac_compile" 2>conftest.err)
5618  cat conftest.err >&5
5619  (eval echo "\"\$as_me:5619: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5620  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5621  cat conftest.err >&5
5622  (eval echo "\"\$as_me:5622: output\"" >&5)
5623  cat conftest.out >&5
5624  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5625    lt_cv_nm_interface="MS dumpbin"
5626  fi
5627  rm -f conftest*
5628fi
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5630$as_echo "$lt_cv_nm_interface" >&6; }
5631
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5633$as_echo_n "checking whether ln -s works... " >&6; }
5634LN_S=$as_ln_s
5635if test "$LN_S" = "ln -s"; then
5636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5637$as_echo "yes" >&6; }
5638else
5639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5640$as_echo "no, using $LN_S" >&6; }
5641fi
5642
5643# find the maximum length of command line arguments
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5645$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5646if ${lt_cv_sys_max_cmd_len+:} false; then :
5647  $as_echo_n "(cached) " >&6
5648else
5649    i=0
5650  teststring="ABCD"
5651
5652  case $build_os in
5653  msdosdjgpp*)
5654    # On DJGPP, this test can blow up pretty badly due to problems in libc
5655    # (any single argument exceeding 2000 bytes causes a buffer overrun
5656    # during glob expansion).  Even if it were fixed, the result of this
5657    # check would be larger than it should be.
5658    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5659    ;;
5660
5661  gnu*)
5662    # Under GNU Hurd, this test is not required because there is
5663    # no limit to the length of command line arguments.
5664    # Libtool will interpret -1 as no limit whatsoever
5665    lt_cv_sys_max_cmd_len=-1;
5666    ;;
5667
5668  cygwin* | mingw* | cegcc*)
5669    # On Win9x/ME, this test blows up -- it succeeds, but takes
5670    # about 5 minutes as the teststring grows exponentially.
5671    # Worse, since 9x/ME are not pre-emptively multitasking,
5672    # you end up with a "frozen" computer, even though with patience
5673    # the test eventually succeeds (with a max line length of 256k).
5674    # Instead, let's just punt: use the minimum linelength reported by
5675    # all of the supported platforms: 8192 (on NT/2K/XP).
5676    lt_cv_sys_max_cmd_len=8192;
5677    ;;
5678
5679  amigaos*)
5680    # On AmigaOS with pdksh, this test takes hours, literally.
5681    # So we just punt and use a minimum line length of 8192.
5682    lt_cv_sys_max_cmd_len=8192;
5683    ;;
5684
5685  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5686    # This has been around since 386BSD, at least.  Likely further.
5687    if test -x /sbin/sysctl; then
5688      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5689    elif test -x /usr/sbin/sysctl; then
5690      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5691    else
5692      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5693    fi
5694    # And add a safety zone
5695    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5696    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5697    ;;
5698
5699  interix*)
5700    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5701    lt_cv_sys_max_cmd_len=196608
5702    ;;
5703
5704  osf*)
5705    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5706    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5707    # nice to cause kernel panics so lets avoid the loop below.
5708    # First set a reasonable default.
5709    lt_cv_sys_max_cmd_len=16384
5710    #
5711    if test -x /sbin/sysconfig; then
5712      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5713        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5714      esac
5715    fi
5716    ;;
5717  sco3.2v5*)
5718    lt_cv_sys_max_cmd_len=102400
5719    ;;
5720  sysv5* | sco5v6* | sysv4.2uw2*)
5721    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5722    if test -n "$kargmax"; then
5723      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5724    else
5725      lt_cv_sys_max_cmd_len=32768
5726    fi
5727    ;;
5728  *)
5729    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5730    if test -n "$lt_cv_sys_max_cmd_len"; then
5731      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5732      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5733    else
5734      # Make teststring a little bigger before we do anything with it.
5735      # a 1K string should be a reasonable start.
5736      for i in 1 2 3 4 5 6 7 8 ; do
5737        teststring=$teststring$teststring
5738      done
5739      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5740      # If test is not a shell built-in, we'll probably end up computing a
5741      # maximum length that is only half of the actual maximum length, but
5742      # we can't tell.
5743      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5744	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5745	      test $i != 17 # 1/2 MB should be enough
5746      do
5747        i=`expr $i + 1`
5748        teststring=$teststring$teststring
5749      done
5750      # Only check the string length outside the loop.
5751      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5752      teststring=
5753      # Add a significant safety factor because C++ compilers can tack on
5754      # massive amounts of additional arguments before passing them to the
5755      # linker.  It appears as though 1/2 is a usable value.
5756      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5757    fi
5758    ;;
5759  esac
5760
5761fi
5762
5763if test -n $lt_cv_sys_max_cmd_len ; then
5764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5765$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5766else
5767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5768$as_echo "none" >&6; }
5769fi
5770max_cmd_len=$lt_cv_sys_max_cmd_len
5771
5772
5773
5774
5775
5776
5777: ${CP="cp -f"}
5778: ${MV="mv -f"}
5779: ${RM="rm -f"}
5780
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5782$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5783# Try some XSI features
5784xsi_shell=no
5785( _lt_dummy="a/b/c"
5786  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5787      = c,a/b,, \
5788    && eval 'test $(( 1 + 1 )) -eq 2 \
5789    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5790  && xsi_shell=yes
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5792$as_echo "$xsi_shell" >&6; }
5793
5794
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5796$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5797lt_shell_append=no
5798( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5799    >/dev/null 2>&1 \
5800  && lt_shell_append=yes
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5802$as_echo "$lt_shell_append" >&6; }
5803
5804
5805if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5806  lt_unset=unset
5807else
5808  lt_unset=false
5809fi
5810
5811
5812
5813
5814
5815# test EBCDIC or ASCII
5816case `echo X|tr X '\101'` in
5817 A) # ASCII based system
5818    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5819  lt_SP2NL='tr \040 \012'
5820  lt_NL2SP='tr \015\012 \040\040'
5821  ;;
5822 *) # EBCDIC based system
5823  lt_SP2NL='tr \100 \n'
5824  lt_NL2SP='tr \r\n \100\100'
5825  ;;
5826esac
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5837$as_echo_n "checking for $LD option to reload object files... " >&6; }
5838if ${lt_cv_ld_reload_flag+:} false; then :
5839  $as_echo_n "(cached) " >&6
5840else
5841  lt_cv_ld_reload_flag='-r'
5842fi
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5844$as_echo "$lt_cv_ld_reload_flag" >&6; }
5845reload_flag=$lt_cv_ld_reload_flag
5846case $reload_flag in
5847"" | " "*) ;;
5848*) reload_flag=" $reload_flag" ;;
5849esac
5850reload_cmds='$LD$reload_flag -o $output$reload_objs'
5851case $host_os in
5852  darwin*)
5853    if test "$GCC" = yes; then
5854      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5855    else
5856      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5857    fi
5858    ;;
5859esac
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869if test -n "$ac_tool_prefix"; then
5870  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5871set dummy ${ac_tool_prefix}objdump; ac_word=$2
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5873$as_echo_n "checking for $ac_word... " >&6; }
5874if ${ac_cv_prog_OBJDUMP+:} false; then :
5875  $as_echo_n "(cached) " >&6
5876else
5877  if test -n "$OBJDUMP"; then
5878  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5879else
5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH
5882do
5883  IFS=$as_save_IFS
5884  test -z "$as_dir" && as_dir=.
5885    for ac_exec_ext in '' $ac_executable_extensions; do
5886  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5887    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5889    break 2
5890  fi
5891done
5892  done
5893IFS=$as_save_IFS
5894
5895fi
5896fi
5897OBJDUMP=$ac_cv_prog_OBJDUMP
5898if test -n "$OBJDUMP"; then
5899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5900$as_echo "$OBJDUMP" >&6; }
5901else
5902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5903$as_echo "no" >&6; }
5904fi
5905
5906
5907fi
5908if test -z "$ac_cv_prog_OBJDUMP"; then
5909  ac_ct_OBJDUMP=$OBJDUMP
5910  # Extract the first word of "objdump", so it can be a program name with args.
5911set dummy objdump; ac_word=$2
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913$as_echo_n "checking for $ac_word... " >&6; }
5914if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5915  $as_echo_n "(cached) " >&6
5916else
5917  if test -n "$ac_ct_OBJDUMP"; then
5918  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5919else
5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923  IFS=$as_save_IFS
5924  test -z "$as_dir" && as_dir=.
5925    for ac_exec_ext in '' $ac_executable_extensions; do
5926  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929    break 2
5930  fi
5931done
5932  done
5933IFS=$as_save_IFS
5934
5935fi
5936fi
5937ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5938if test -n "$ac_ct_OBJDUMP"; then
5939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5940$as_echo "$ac_ct_OBJDUMP" >&6; }
5941else
5942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943$as_echo "no" >&6; }
5944fi
5945
5946  if test "x$ac_ct_OBJDUMP" = x; then
5947    OBJDUMP="false"
5948  else
5949    case $cross_compiling:$ac_tool_warned in
5950yes:)
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5953ac_tool_warned=yes ;;
5954esac
5955    OBJDUMP=$ac_ct_OBJDUMP
5956  fi
5957else
5958  OBJDUMP="$ac_cv_prog_OBJDUMP"
5959fi
5960
5961test -z "$OBJDUMP" && OBJDUMP=objdump
5962
5963
5964
5965
5966
5967
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5969$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5970if ${lt_cv_deplibs_check_method+:} false; then :
5971  $as_echo_n "(cached) " >&6
5972else
5973  lt_cv_file_magic_cmd='$MAGIC_CMD'
5974lt_cv_file_magic_test_file=
5975lt_cv_deplibs_check_method='unknown'
5976# Need to set the preceding variable on all platforms that support
5977# interlibrary dependencies.
5978# 'none' -- dependencies not supported.
5979# `unknown' -- same as none, but documents that we really don't know.
5980# 'pass_all' -- all dependencies passed with no checks.
5981# 'test_compile' -- check by making test program.
5982# 'file_magic [[regex]]' -- check by looking for files in library path
5983# which responds to the $file_magic_cmd with a given extended regex.
5984# If you have `file' or equivalent on your system and you're not sure
5985# whether `pass_all' will *always* work, you probably want this one.
5986
5987case $host_os in
5988aix[4-9]*)
5989  lt_cv_deplibs_check_method=pass_all
5990  ;;
5991
5992beos*)
5993  lt_cv_deplibs_check_method=pass_all
5994  ;;
5995
5996bsdi[45]*)
5997  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5998  lt_cv_file_magic_cmd='/usr/bin/file -L'
5999  lt_cv_file_magic_test_file=/shlib/libc.so
6000  ;;
6001
6002cygwin*)
6003  # func_win32_libid is a shell function defined in ltmain.sh
6004  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6005  lt_cv_file_magic_cmd='func_win32_libid'
6006  ;;
6007
6008mingw* | pw32*)
6009  # Base MSYS/MinGW do not provide the 'file' command needed by
6010  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6011  # unless we find 'file', for example because we are cross-compiling.
6012  if ( file / ) >/dev/null 2>&1; then
6013    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6014    lt_cv_file_magic_cmd='func_win32_libid'
6015  else
6016    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6017    lt_cv_file_magic_cmd='$OBJDUMP -f'
6018  fi
6019  ;;
6020
6021cegcc)
6022  # use the weaker test based on 'objdump'. See mingw*.
6023  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6024  lt_cv_file_magic_cmd='$OBJDUMP -f'
6025  ;;
6026
6027darwin* | rhapsody*)
6028  lt_cv_deplibs_check_method=pass_all
6029  ;;
6030
6031freebsd* | dragonfly*)
6032  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6033    case $host_cpu in
6034    i*86 )
6035      # Not sure whether the presence of OpenBSD here was a mistake.
6036      # Let's accept both of them until this is cleared up.
6037      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6038      lt_cv_file_magic_cmd=/usr/bin/file
6039      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6040      ;;
6041    esac
6042  else
6043    lt_cv_deplibs_check_method=pass_all
6044  fi
6045  ;;
6046
6047gnu*)
6048  lt_cv_deplibs_check_method=pass_all
6049  ;;
6050
6051hpux10.20* | hpux11*)
6052  lt_cv_file_magic_cmd=/usr/bin/file
6053  case $host_cpu in
6054  ia64*)
6055    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6056    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6057    ;;
6058  hppa*64*)
6059    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6060    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6061    ;;
6062  *)
6063    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6064    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6065    ;;
6066  esac
6067  ;;
6068
6069interix[3-9]*)
6070  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6071  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6072  ;;
6073
6074irix5* | irix6* | nonstopux*)
6075  case $LD in
6076  *-32|*"-32 ") libmagic=32-bit;;
6077  *-n32|*"-n32 ") libmagic=N32;;
6078  *-64|*"-64 ") libmagic=64-bit;;
6079  *) libmagic=never-match;;
6080  esac
6081  lt_cv_deplibs_check_method=pass_all
6082  ;;
6083
6084# This must be Linux ELF.
6085linux* | k*bsd*-gnu)
6086  lt_cv_deplibs_check_method=pass_all
6087  ;;
6088
6089netbsd*)
6090  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6091    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6092  else
6093    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6094  fi
6095  ;;
6096
6097newos6*)
6098  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6099  lt_cv_file_magic_cmd=/usr/bin/file
6100  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6101  ;;
6102
6103*nto* | *qnx*)
6104  lt_cv_deplibs_check_method=pass_all
6105  ;;
6106
6107openbsd*)
6108  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6109    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6110  else
6111    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6112  fi
6113  ;;
6114
6115osf3* | osf4* | osf5*)
6116  lt_cv_deplibs_check_method=pass_all
6117  ;;
6118
6119rdos*)
6120  lt_cv_deplibs_check_method=pass_all
6121  ;;
6122
6123solaris*)
6124  lt_cv_deplibs_check_method=pass_all
6125  ;;
6126
6127sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6128  lt_cv_deplibs_check_method=pass_all
6129  ;;
6130
6131sysv4 | sysv4.3*)
6132  case $host_vendor in
6133  motorola)
6134    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]'
6135    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6136    ;;
6137  ncr)
6138    lt_cv_deplibs_check_method=pass_all
6139    ;;
6140  sequent)
6141    lt_cv_file_magic_cmd='/bin/file'
6142    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6143    ;;
6144  sni)
6145    lt_cv_file_magic_cmd='/bin/file'
6146    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6147    lt_cv_file_magic_test_file=/lib/libc.so
6148    ;;
6149  siemens)
6150    lt_cv_deplibs_check_method=pass_all
6151    ;;
6152  pc)
6153    lt_cv_deplibs_check_method=pass_all
6154    ;;
6155  esac
6156  ;;
6157
6158tpf*)
6159  lt_cv_deplibs_check_method=pass_all
6160  ;;
6161esac
6162
6163fi
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6165$as_echo "$lt_cv_deplibs_check_method" >&6; }
6166file_magic_cmd=$lt_cv_file_magic_cmd
6167deplibs_check_method=$lt_cv_deplibs_check_method
6168test -z "$deplibs_check_method" && deplibs_check_method=unknown
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181if test -n "$ac_tool_prefix"; then
6182  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6183set dummy ${ac_tool_prefix}ar; ac_word=$2
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185$as_echo_n "checking for $ac_word... " >&6; }
6186if ${ac_cv_prog_AR+:} false; then :
6187  $as_echo_n "(cached) " >&6
6188else
6189  if test -n "$AR"; then
6190  ac_cv_prog_AR="$AR" # Let the user override the test.
6191else
6192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193for as_dir in $PATH
6194do
6195  IFS=$as_save_IFS
6196  test -z "$as_dir" && as_dir=.
6197    for ac_exec_ext in '' $ac_executable_extensions; do
6198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199    ac_cv_prog_AR="${ac_tool_prefix}ar"
6200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201    break 2
6202  fi
6203done
6204  done
6205IFS=$as_save_IFS
6206
6207fi
6208fi
6209AR=$ac_cv_prog_AR
6210if test -n "$AR"; then
6211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6212$as_echo "$AR" >&6; }
6213else
6214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215$as_echo "no" >&6; }
6216fi
6217
6218
6219fi
6220if test -z "$ac_cv_prog_AR"; then
6221  ac_ct_AR=$AR
6222  # Extract the first word of "ar", so it can be a program name with args.
6223set dummy ar; ac_word=$2
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225$as_echo_n "checking for $ac_word... " >&6; }
6226if ${ac_cv_prog_ac_ct_AR+:} false; then :
6227  $as_echo_n "(cached) " >&6
6228else
6229  if test -n "$ac_ct_AR"; then
6230  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6231else
6232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235  IFS=$as_save_IFS
6236  test -z "$as_dir" && as_dir=.
6237    for ac_exec_ext in '' $ac_executable_extensions; do
6238  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239    ac_cv_prog_ac_ct_AR="ar"
6240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241    break 2
6242  fi
6243done
6244  done
6245IFS=$as_save_IFS
6246
6247fi
6248fi
6249ac_ct_AR=$ac_cv_prog_ac_ct_AR
6250if test -n "$ac_ct_AR"; then
6251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6252$as_echo "$ac_ct_AR" >&6; }
6253else
6254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255$as_echo "no" >&6; }
6256fi
6257
6258  if test "x$ac_ct_AR" = x; then
6259    AR="false"
6260  else
6261    case $cross_compiling:$ac_tool_warned in
6262yes:)
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265ac_tool_warned=yes ;;
6266esac
6267    AR=$ac_ct_AR
6268  fi
6269else
6270  AR="$ac_cv_prog_AR"
6271fi
6272
6273test -z "$AR" && AR=ar
6274test -z "$AR_FLAGS" && AR_FLAGS=cru
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286if test -n "$ac_tool_prefix"; then
6287  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6288set dummy ${ac_tool_prefix}strip; ac_word=$2
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290$as_echo_n "checking for $ac_word... " >&6; }
6291if ${ac_cv_prog_STRIP+:} false; then :
6292  $as_echo_n "(cached) " >&6
6293else
6294  if test -n "$STRIP"; then
6295  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6296else
6297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298for as_dir in $PATH
6299do
6300  IFS=$as_save_IFS
6301  test -z "$as_dir" && as_dir=.
6302    for ac_exec_ext in '' $ac_executable_extensions; do
6303  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306    break 2
6307  fi
6308done
6309  done
6310IFS=$as_save_IFS
6311
6312fi
6313fi
6314STRIP=$ac_cv_prog_STRIP
6315if test -n "$STRIP"; then
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6317$as_echo "$STRIP" >&6; }
6318else
6319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320$as_echo "no" >&6; }
6321fi
6322
6323
6324fi
6325if test -z "$ac_cv_prog_STRIP"; then
6326  ac_ct_STRIP=$STRIP
6327  # Extract the first word of "strip", so it can be a program name with args.
6328set dummy strip; ac_word=$2
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330$as_echo_n "checking for $ac_word... " >&6; }
6331if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6332  $as_echo_n "(cached) " >&6
6333else
6334  if test -n "$ac_ct_STRIP"; then
6335  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6336else
6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338for as_dir in $PATH
6339do
6340  IFS=$as_save_IFS
6341  test -z "$as_dir" && as_dir=.
6342    for ac_exec_ext in '' $ac_executable_extensions; do
6343  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344    ac_cv_prog_ac_ct_STRIP="strip"
6345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346    break 2
6347  fi
6348done
6349  done
6350IFS=$as_save_IFS
6351
6352fi
6353fi
6354ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6355if test -n "$ac_ct_STRIP"; then
6356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6357$as_echo "$ac_ct_STRIP" >&6; }
6358else
6359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360$as_echo "no" >&6; }
6361fi
6362
6363  if test "x$ac_ct_STRIP" = x; then
6364    STRIP=":"
6365  else
6366    case $cross_compiling:$ac_tool_warned in
6367yes:)
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370ac_tool_warned=yes ;;
6371esac
6372    STRIP=$ac_ct_STRIP
6373  fi
6374else
6375  STRIP="$ac_cv_prog_STRIP"
6376fi
6377
6378test -z "$STRIP" && STRIP=:
6379
6380
6381
6382
6383
6384
6385if test -n "$ac_tool_prefix"; then
6386  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6387set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389$as_echo_n "checking for $ac_word... " >&6; }
6390if ${ac_cv_prog_RANLIB+:} false; then :
6391  $as_echo_n "(cached) " >&6
6392else
6393  if test -n "$RANLIB"; then
6394  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6395else
6396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397for as_dir in $PATH
6398do
6399  IFS=$as_save_IFS
6400  test -z "$as_dir" && as_dir=.
6401    for ac_exec_ext in '' $ac_executable_extensions; do
6402  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405    break 2
6406  fi
6407done
6408  done
6409IFS=$as_save_IFS
6410
6411fi
6412fi
6413RANLIB=$ac_cv_prog_RANLIB
6414if test -n "$RANLIB"; then
6415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6416$as_echo "$RANLIB" >&6; }
6417else
6418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419$as_echo "no" >&6; }
6420fi
6421
6422
6423fi
6424if test -z "$ac_cv_prog_RANLIB"; then
6425  ac_ct_RANLIB=$RANLIB
6426  # Extract the first word of "ranlib", so it can be a program name with args.
6427set dummy ranlib; ac_word=$2
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429$as_echo_n "checking for $ac_word... " >&6; }
6430if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6431  $as_echo_n "(cached) " >&6
6432else
6433  if test -n "$ac_ct_RANLIB"; then
6434  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6435else
6436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437for as_dir in $PATH
6438do
6439  IFS=$as_save_IFS
6440  test -z "$as_dir" && as_dir=.
6441    for ac_exec_ext in '' $ac_executable_extensions; do
6442  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6443    ac_cv_prog_ac_ct_RANLIB="ranlib"
6444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445    break 2
6446  fi
6447done
6448  done
6449IFS=$as_save_IFS
6450
6451fi
6452fi
6453ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6454if test -n "$ac_ct_RANLIB"; then
6455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6456$as_echo "$ac_ct_RANLIB" >&6; }
6457else
6458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459$as_echo "no" >&6; }
6460fi
6461
6462  if test "x$ac_ct_RANLIB" = x; then
6463    RANLIB=":"
6464  else
6465    case $cross_compiling:$ac_tool_warned in
6466yes:)
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6469ac_tool_warned=yes ;;
6470esac
6471    RANLIB=$ac_ct_RANLIB
6472  fi
6473else
6474  RANLIB="$ac_cv_prog_RANLIB"
6475fi
6476
6477test -z "$RANLIB" && RANLIB=:
6478
6479
6480
6481
6482
6483
6484# Determine commands to create old-style static archives.
6485old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6486old_postinstall_cmds='chmod 644 $oldlib'
6487old_postuninstall_cmds=
6488
6489if test -n "$RANLIB"; then
6490  case $host_os in
6491  openbsd*)
6492    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6493    ;;
6494  *)
6495    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6496    ;;
6497  esac
6498  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6499fi
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534# If no C compiler was specified, use CC.
6535LTCC=${LTCC-"$CC"}
6536
6537# If no C compiler flags were specified, use CFLAGS.
6538LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6539
6540# Allow CC to be a program name with arguments.
6541compiler=$CC
6542
6543
6544# Check for command to grab the raw symbol name followed by C symbol from nm.
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6546$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6547if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6548  $as_echo_n "(cached) " >&6
6549else
6550
6551# These are sane defaults that work on at least a few old systems.
6552# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6553
6554# Character class describing NM global symbol codes.
6555symcode='[BCDEGRST]'
6556
6557# Regexp to match symbols that can be accessed directly from C.
6558sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6559
6560# Define system-specific variables.
6561case $host_os in
6562aix*)
6563  symcode='[BCDT]'
6564  ;;
6565cygwin* | mingw* | pw32* | cegcc*)
6566  symcode='[ABCDGISTW]'
6567  ;;
6568hpux*)
6569  if test "$host_cpu" = ia64; then
6570    symcode='[ABCDEGRST]'
6571  fi
6572  ;;
6573irix* | nonstopux*)
6574  symcode='[BCDEGRST]'
6575  ;;
6576osf*)
6577  symcode='[BCDEGQRST]'
6578  ;;
6579solaris*)
6580  symcode='[BDRT]'
6581  ;;
6582sco3.2v5*)
6583  symcode='[DT]'
6584  ;;
6585sysv4.2uw2*)
6586  symcode='[DT]'
6587  ;;
6588sysv5* | sco5v6* | unixware* | OpenUNIX*)
6589  symcode='[ABDT]'
6590  ;;
6591sysv4)
6592  symcode='[DFNSTU]'
6593  ;;
6594esac
6595
6596# If we're using GNU nm, then use its standard symbol codes.
6597case `$NM -V 2>&1` in
6598*GNU* | *'with BFD'*)
6599  symcode='[ABCDGIRSTW]' ;;
6600esac
6601
6602# Transform an extracted symbol line into a proper C declaration.
6603# Some systems (esp. on ia64) link data and code symbols differently,
6604# so use this general approach.
6605lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6606
6607# Transform an extracted symbol line into symbol name and symbol address
6608lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6609lt_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'"
6610
6611# Handle CRLF in mingw tool chain
6612opt_cr=
6613case $build_os in
6614mingw*)
6615  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6616  ;;
6617esac
6618
6619# Try without a prefix underscore, then with it.
6620for ac_symprfx in "" "_"; do
6621
6622  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6623  symxfrm="\\1 $ac_symprfx\\2 \\2"
6624
6625  # Write the raw and C identifiers.
6626  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6627    # Fake it for dumpbin and say T for any non-static function
6628    # and D for any global variable.
6629    # Also find C++ and __fastcall symbols from MSVC++,
6630    # which start with @ or ?.
6631    lt_cv_sys_global_symbol_pipe="$AWK '"\
6632"     {last_section=section; section=\$ 3};"\
6633"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6634"     \$ 0!~/External *\|/{next};"\
6635"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6636"     {if(hide[section]) next};"\
6637"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6638"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6639"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6640"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6641"     ' prfx=^$ac_symprfx"
6642  else
6643    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6644  fi
6645
6646  # Check to see that the pipe works correctly.
6647  pipe_works=no
6648
6649  rm -f conftest*
6650  cat > conftest.$ac_ext <<_LT_EOF
6651#ifdef __cplusplus
6652extern "C" {
6653#endif
6654char nm_test_var;
6655void nm_test_func(void);
6656void nm_test_func(void){}
6657#ifdef __cplusplus
6658}
6659#endif
6660int main(){nm_test_var='a';nm_test_func();return(0);}
6661_LT_EOF
6662
6663  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6664  (eval $ac_compile) 2>&5
6665  ac_status=$?
6666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667  test $ac_status = 0; }; then
6668    # Now try to grab the symbols.
6669    nlist=conftest.nm
6670    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6671  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6672  ac_status=$?
6673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6674  test $ac_status = 0; } && test -s "$nlist"; then
6675      # Try sorting and uniquifying the output.
6676      if sort "$nlist" | uniq > "$nlist"T; then
6677	mv -f "$nlist"T "$nlist"
6678      else
6679	rm -f "$nlist"T
6680      fi
6681
6682      # Make sure that we snagged all the symbols we need.
6683      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6684	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6685	  cat <<_LT_EOF > conftest.$ac_ext
6686#ifdef __cplusplus
6687extern "C" {
6688#endif
6689
6690_LT_EOF
6691	  # Now generate the symbol file.
6692	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6693
6694	  cat <<_LT_EOF >> conftest.$ac_ext
6695
6696/* The mapping between symbol names and symbols.  */
6697const struct {
6698  const char *name;
6699  void       *address;
6700}
6701lt__PROGRAM__LTX_preloaded_symbols[] =
6702{
6703  { "@PROGRAM@", (void *) 0 },
6704_LT_EOF
6705	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6706	  cat <<\_LT_EOF >> conftest.$ac_ext
6707  {0, (void *) 0}
6708};
6709
6710/* This works around a problem in FreeBSD linker */
6711#ifdef FREEBSD_WORKAROUND
6712static const void *lt_preloaded_setup() {
6713  return lt__PROGRAM__LTX_preloaded_symbols;
6714}
6715#endif
6716
6717#ifdef __cplusplus
6718}
6719#endif
6720_LT_EOF
6721	  # Now try linking the two files.
6722	  mv conftest.$ac_objext conftstm.$ac_objext
6723	  lt_save_LIBS="$LIBS"
6724	  lt_save_CFLAGS="$CFLAGS"
6725	  LIBS="conftstm.$ac_objext"
6726	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6727	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6728  (eval $ac_link) 2>&5
6729  ac_status=$?
6730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6731  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6732	    pipe_works=yes
6733	  fi
6734	  LIBS="$lt_save_LIBS"
6735	  CFLAGS="$lt_save_CFLAGS"
6736	else
6737	  echo "cannot find nm_test_func in $nlist" >&5
6738	fi
6739      else
6740	echo "cannot find nm_test_var in $nlist" >&5
6741      fi
6742    else
6743      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6744    fi
6745  else
6746    echo "$progname: failed program was:" >&5
6747    cat conftest.$ac_ext >&5
6748  fi
6749  rm -rf conftest* conftst*
6750
6751  # Do not use the global_symbol_pipe unless it works.
6752  if test "$pipe_works" = yes; then
6753    break
6754  else
6755    lt_cv_sys_global_symbol_pipe=
6756  fi
6757done
6758
6759fi
6760
6761if test -z "$lt_cv_sys_global_symbol_pipe"; then
6762  lt_cv_sys_global_symbol_to_cdecl=
6763fi
6764if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6766$as_echo "failed" >&6; }
6767else
6768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6769$as_echo "ok" >&6; }
6770fi
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793# Check whether --enable-libtool-lock was given.
6794if test "${enable_libtool_lock+set}" = set; then :
6795  enableval=$enable_libtool_lock;
6796fi
6797
6798test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6799
6800# Some flags need to be propagated to the compiler or linker for good
6801# libtool support.
6802case $host in
6803ia64-*-hpux*)
6804  # Find out which ABI we are using.
6805  echo 'int i;' > conftest.$ac_ext
6806  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6807  (eval $ac_compile) 2>&5
6808  ac_status=$?
6809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810  test $ac_status = 0; }; then
6811    case `/usr/bin/file conftest.$ac_objext` in
6812      *ELF-32*)
6813	HPUX_IA64_MODE="32"
6814	;;
6815      *ELF-64*)
6816	HPUX_IA64_MODE="64"
6817	;;
6818    esac
6819  fi
6820  rm -rf conftest*
6821  ;;
6822*-*-irix6*)
6823  # Find out which ABI we are using.
6824  echo '#line 6824 "configure"' > conftest.$ac_ext
6825  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6826  (eval $ac_compile) 2>&5
6827  ac_status=$?
6828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829  test $ac_status = 0; }; then
6830    if test "$lt_cv_prog_gnu_ld" = yes; then
6831      case `/usr/bin/file conftest.$ac_objext` in
6832	*32-bit*)
6833	  LD="${LD-ld} -melf32bsmip"
6834	  ;;
6835	*N32*)
6836	  LD="${LD-ld} -melf32bmipn32"
6837	  ;;
6838	*64-bit*)
6839	  LD="${LD-ld} -melf64bmip"
6840	;;
6841      esac
6842    else
6843      case `/usr/bin/file conftest.$ac_objext` in
6844	*32-bit*)
6845	  LD="${LD-ld} -32"
6846	  ;;
6847	*N32*)
6848	  LD="${LD-ld} -n32"
6849	  ;;
6850	*64-bit*)
6851	  LD="${LD-ld} -64"
6852	  ;;
6853      esac
6854    fi
6855  fi
6856  rm -rf conftest*
6857  ;;
6858
6859x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6860s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6861  # Find out which ABI we are using.
6862  echo 'int i;' > conftest.$ac_ext
6863  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6864  (eval $ac_compile) 2>&5
6865  ac_status=$?
6866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6867  test $ac_status = 0; }; then
6868    case `/usr/bin/file conftest.o` in
6869      *32-bit*)
6870	case $host in
6871	  x86_64-*kfreebsd*-gnu)
6872	    LD="${LD-ld} -m elf_i386_fbsd"
6873	    ;;
6874	  x86_64-*linux*)
6875	    LD="${LD-ld} -m elf_i386"
6876	    ;;
6877	  ppc64-*linux*|powerpc64-*linux*)
6878	    LD="${LD-ld} -m elf32ppclinux"
6879	    ;;
6880	  s390x-*linux*)
6881	    LD="${LD-ld} -m elf_s390"
6882	    ;;
6883	  sparc64-*linux*)
6884	    LD="${LD-ld} -m elf32_sparc"
6885	    ;;
6886	esac
6887	;;
6888      *64-bit*)
6889	case $host in
6890	  x86_64-*kfreebsd*-gnu)
6891	    LD="${LD-ld} -m elf_x86_64_fbsd"
6892	    ;;
6893	  x86_64-*linux*)
6894	    LD="${LD-ld} -m elf_x86_64"
6895	    ;;
6896	  ppc*-*linux*|powerpc*-*linux*)
6897	    LD="${LD-ld} -m elf64ppc"
6898	    ;;
6899	  s390*-*linux*|s390*-*tpf*)
6900	    LD="${LD-ld} -m elf64_s390"
6901	    ;;
6902	  sparc*-*linux*)
6903	    LD="${LD-ld} -m elf64_sparc"
6904	    ;;
6905	esac
6906	;;
6907    esac
6908  fi
6909  rm -rf conftest*
6910  ;;
6911
6912*-*-sco3.2v5*)
6913  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6914  SAVE_CFLAGS="$CFLAGS"
6915  CFLAGS="$CFLAGS -belf"
6916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6917$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6918if ${lt_cv_cc_needs_belf+:} false; then :
6919  $as_echo_n "(cached) " >&6
6920else
6921  ac_ext=c
6922ac_cpp='$CPP $CPPFLAGS'
6923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925ac_compiler_gnu=$ac_cv_c_compiler_gnu
6926
6927     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928/* end confdefs.h.  */
6929
6930int
6931main ()
6932{
6933
6934  ;
6935  return 0;
6936}
6937_ACEOF
6938if ac_fn_c_try_link "$LINENO"; then :
6939  lt_cv_cc_needs_belf=yes
6940else
6941  lt_cv_cc_needs_belf=no
6942fi
6943rm -f core conftest.err conftest.$ac_objext \
6944    conftest$ac_exeext conftest.$ac_ext
6945     ac_ext=c
6946ac_cpp='$CPP $CPPFLAGS'
6947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6949ac_compiler_gnu=$ac_cv_c_compiler_gnu
6950
6951fi
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6953$as_echo "$lt_cv_cc_needs_belf" >&6; }
6954  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6955    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6956    CFLAGS="$SAVE_CFLAGS"
6957  fi
6958  ;;
6959sparc*-*solaris*)
6960  # Find out which ABI we are using.
6961  echo 'int i;' > conftest.$ac_ext
6962  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6963  (eval $ac_compile) 2>&5
6964  ac_status=$?
6965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6966  test $ac_status = 0; }; then
6967    case `/usr/bin/file conftest.o` in
6968    *64-bit*)
6969      case $lt_cv_prog_gnu_ld in
6970      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6971      *)
6972	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6973	  LD="${LD-ld} -64"
6974	fi
6975	;;
6976      esac
6977      ;;
6978    esac
6979  fi
6980  rm -rf conftest*
6981  ;;
6982esac
6983
6984need_locks="$enable_libtool_lock"
6985
6986
6987  case $host_os in
6988    rhapsody* | darwin*)
6989    if test -n "$ac_tool_prefix"; then
6990  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6991set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993$as_echo_n "checking for $ac_word... " >&6; }
6994if ${ac_cv_prog_DSYMUTIL+:} false; then :
6995  $as_echo_n "(cached) " >&6
6996else
6997  if test -n "$DSYMUTIL"; then
6998  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6999else
7000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001for as_dir in $PATH
7002do
7003  IFS=$as_save_IFS
7004  test -z "$as_dir" && as_dir=.
7005    for ac_exec_ext in '' $ac_executable_extensions; do
7006  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7007    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009    break 2
7010  fi
7011done
7012  done
7013IFS=$as_save_IFS
7014
7015fi
7016fi
7017DSYMUTIL=$ac_cv_prog_DSYMUTIL
7018if test -n "$DSYMUTIL"; then
7019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7020$as_echo "$DSYMUTIL" >&6; }
7021else
7022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023$as_echo "no" >&6; }
7024fi
7025
7026
7027fi
7028if test -z "$ac_cv_prog_DSYMUTIL"; then
7029  ac_ct_DSYMUTIL=$DSYMUTIL
7030  # Extract the first word of "dsymutil", so it can be a program name with args.
7031set dummy dsymutil; ac_word=$2
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033$as_echo_n "checking for $ac_word... " >&6; }
7034if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7035  $as_echo_n "(cached) " >&6
7036else
7037  if test -n "$ac_ct_DSYMUTIL"; then
7038  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7039else
7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043  IFS=$as_save_IFS
7044  test -z "$as_dir" && as_dir=.
7045    for ac_exec_ext in '' $ac_executable_extensions; do
7046  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7047    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049    break 2
7050  fi
7051done
7052  done
7053IFS=$as_save_IFS
7054
7055fi
7056fi
7057ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7058if test -n "$ac_ct_DSYMUTIL"; then
7059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7060$as_echo "$ac_ct_DSYMUTIL" >&6; }
7061else
7062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063$as_echo "no" >&6; }
7064fi
7065
7066  if test "x$ac_ct_DSYMUTIL" = x; then
7067    DSYMUTIL=":"
7068  else
7069    case $cross_compiling:$ac_tool_warned in
7070yes:)
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073ac_tool_warned=yes ;;
7074esac
7075    DSYMUTIL=$ac_ct_DSYMUTIL
7076  fi
7077else
7078  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7079fi
7080
7081    if test -n "$ac_tool_prefix"; then
7082  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7083set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085$as_echo_n "checking for $ac_word... " >&6; }
7086if ${ac_cv_prog_NMEDIT+:} false; then :
7087  $as_echo_n "(cached) " >&6
7088else
7089  if test -n "$NMEDIT"; then
7090  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7091else
7092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093for as_dir in $PATH
7094do
7095  IFS=$as_save_IFS
7096  test -z "$as_dir" && as_dir=.
7097    for ac_exec_ext in '' $ac_executable_extensions; do
7098  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7099    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101    break 2
7102  fi
7103done
7104  done
7105IFS=$as_save_IFS
7106
7107fi
7108fi
7109NMEDIT=$ac_cv_prog_NMEDIT
7110if test -n "$NMEDIT"; then
7111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7112$as_echo "$NMEDIT" >&6; }
7113else
7114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115$as_echo "no" >&6; }
7116fi
7117
7118
7119fi
7120if test -z "$ac_cv_prog_NMEDIT"; then
7121  ac_ct_NMEDIT=$NMEDIT
7122  # Extract the first word of "nmedit", so it can be a program name with args.
7123set dummy nmedit; ac_word=$2
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125$as_echo_n "checking for $ac_word... " >&6; }
7126if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7127  $as_echo_n "(cached) " >&6
7128else
7129  if test -n "$ac_ct_NMEDIT"; then
7130  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7131else
7132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135  IFS=$as_save_IFS
7136  test -z "$as_dir" && as_dir=.
7137    for ac_exec_ext in '' $ac_executable_extensions; do
7138  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141    break 2
7142  fi
7143done
7144  done
7145IFS=$as_save_IFS
7146
7147fi
7148fi
7149ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7150if test -n "$ac_ct_NMEDIT"; then
7151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7152$as_echo "$ac_ct_NMEDIT" >&6; }
7153else
7154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155$as_echo "no" >&6; }
7156fi
7157
7158  if test "x$ac_ct_NMEDIT" = x; then
7159    NMEDIT=":"
7160  else
7161    case $cross_compiling:$ac_tool_warned in
7162yes:)
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7165ac_tool_warned=yes ;;
7166esac
7167    NMEDIT=$ac_ct_NMEDIT
7168  fi
7169else
7170  NMEDIT="$ac_cv_prog_NMEDIT"
7171fi
7172
7173    if test -n "$ac_tool_prefix"; then
7174  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7175set dummy ${ac_tool_prefix}lipo; ac_word=$2
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177$as_echo_n "checking for $ac_word... " >&6; }
7178if ${ac_cv_prog_LIPO+:} false; then :
7179  $as_echo_n "(cached) " >&6
7180else
7181  if test -n "$LIPO"; then
7182  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7183else
7184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185for as_dir in $PATH
7186do
7187  IFS=$as_save_IFS
7188  test -z "$as_dir" && as_dir=.
7189    for ac_exec_ext in '' $ac_executable_extensions; do
7190  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7191    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193    break 2
7194  fi
7195done
7196  done
7197IFS=$as_save_IFS
7198
7199fi
7200fi
7201LIPO=$ac_cv_prog_LIPO
7202if test -n "$LIPO"; then
7203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7204$as_echo "$LIPO" >&6; }
7205else
7206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207$as_echo "no" >&6; }
7208fi
7209
7210
7211fi
7212if test -z "$ac_cv_prog_LIPO"; then
7213  ac_ct_LIPO=$LIPO
7214  # Extract the first word of "lipo", so it can be a program name with args.
7215set dummy lipo; ac_word=$2
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217$as_echo_n "checking for $ac_word... " >&6; }
7218if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7219  $as_echo_n "(cached) " >&6
7220else
7221  if test -n "$ac_ct_LIPO"; then
7222  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7223else
7224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225for as_dir in $PATH
7226do
7227  IFS=$as_save_IFS
7228  test -z "$as_dir" && as_dir=.
7229    for ac_exec_ext in '' $ac_executable_extensions; do
7230  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7231    ac_cv_prog_ac_ct_LIPO="lipo"
7232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233    break 2
7234  fi
7235done
7236  done
7237IFS=$as_save_IFS
7238
7239fi
7240fi
7241ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7242if test -n "$ac_ct_LIPO"; then
7243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7244$as_echo "$ac_ct_LIPO" >&6; }
7245else
7246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247$as_echo "no" >&6; }
7248fi
7249
7250  if test "x$ac_ct_LIPO" = x; then
7251    LIPO=":"
7252  else
7253    case $cross_compiling:$ac_tool_warned in
7254yes:)
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7257ac_tool_warned=yes ;;
7258esac
7259    LIPO=$ac_ct_LIPO
7260  fi
7261else
7262  LIPO="$ac_cv_prog_LIPO"
7263fi
7264
7265    if test -n "$ac_tool_prefix"; then
7266  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7267set dummy ${ac_tool_prefix}otool; ac_word=$2
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269$as_echo_n "checking for $ac_word... " >&6; }
7270if ${ac_cv_prog_OTOOL+:} false; then :
7271  $as_echo_n "(cached) " >&6
7272else
7273  if test -n "$OTOOL"; then
7274  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7275else
7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277for as_dir in $PATH
7278do
7279  IFS=$as_save_IFS
7280  test -z "$as_dir" && as_dir=.
7281    for ac_exec_ext in '' $ac_executable_extensions; do
7282  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7283    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285    break 2
7286  fi
7287done
7288  done
7289IFS=$as_save_IFS
7290
7291fi
7292fi
7293OTOOL=$ac_cv_prog_OTOOL
7294if test -n "$OTOOL"; then
7295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7296$as_echo "$OTOOL" >&6; }
7297else
7298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299$as_echo "no" >&6; }
7300fi
7301
7302
7303fi
7304if test -z "$ac_cv_prog_OTOOL"; then
7305  ac_ct_OTOOL=$OTOOL
7306  # Extract the first word of "otool", so it can be a program name with args.
7307set dummy otool; ac_word=$2
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309$as_echo_n "checking for $ac_word... " >&6; }
7310if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7311  $as_echo_n "(cached) " >&6
7312else
7313  if test -n "$ac_ct_OTOOL"; then
7314  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7315else
7316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in $PATH
7318do
7319  IFS=$as_save_IFS
7320  test -z "$as_dir" && as_dir=.
7321    for ac_exec_ext in '' $ac_executable_extensions; do
7322  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7323    ac_cv_prog_ac_ct_OTOOL="otool"
7324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325    break 2
7326  fi
7327done
7328  done
7329IFS=$as_save_IFS
7330
7331fi
7332fi
7333ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7334if test -n "$ac_ct_OTOOL"; then
7335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7336$as_echo "$ac_ct_OTOOL" >&6; }
7337else
7338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339$as_echo "no" >&6; }
7340fi
7341
7342  if test "x$ac_ct_OTOOL" = x; then
7343    OTOOL=":"
7344  else
7345    case $cross_compiling:$ac_tool_warned in
7346yes:)
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7349ac_tool_warned=yes ;;
7350esac
7351    OTOOL=$ac_ct_OTOOL
7352  fi
7353else
7354  OTOOL="$ac_cv_prog_OTOOL"
7355fi
7356
7357    if test -n "$ac_tool_prefix"; then
7358  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7359set dummy ${ac_tool_prefix}otool64; ac_word=$2
7360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361$as_echo_n "checking for $ac_word... " >&6; }
7362if ${ac_cv_prog_OTOOL64+:} false; then :
7363  $as_echo_n "(cached) " >&6
7364else
7365  if test -n "$OTOOL64"; then
7366  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7367else
7368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369for as_dir in $PATH
7370do
7371  IFS=$as_save_IFS
7372  test -z "$as_dir" && as_dir=.
7373    for ac_exec_ext in '' $ac_executable_extensions; do
7374  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7375    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377    break 2
7378  fi
7379done
7380  done
7381IFS=$as_save_IFS
7382
7383fi
7384fi
7385OTOOL64=$ac_cv_prog_OTOOL64
7386if test -n "$OTOOL64"; then
7387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7388$as_echo "$OTOOL64" >&6; }
7389else
7390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391$as_echo "no" >&6; }
7392fi
7393
7394
7395fi
7396if test -z "$ac_cv_prog_OTOOL64"; then
7397  ac_ct_OTOOL64=$OTOOL64
7398  # Extract the first word of "otool64", so it can be a program name with args.
7399set dummy otool64; ac_word=$2
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7401$as_echo_n "checking for $ac_word... " >&6; }
7402if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7403  $as_echo_n "(cached) " >&6
7404else
7405  if test -n "$ac_ct_OTOOL64"; then
7406  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7407else
7408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409for as_dir in $PATH
7410do
7411  IFS=$as_save_IFS
7412  test -z "$as_dir" && as_dir=.
7413    for ac_exec_ext in '' $ac_executable_extensions; do
7414  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7415    ac_cv_prog_ac_ct_OTOOL64="otool64"
7416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417    break 2
7418  fi
7419done
7420  done
7421IFS=$as_save_IFS
7422
7423fi
7424fi
7425ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7426if test -n "$ac_ct_OTOOL64"; then
7427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7428$as_echo "$ac_ct_OTOOL64" >&6; }
7429else
7430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431$as_echo "no" >&6; }
7432fi
7433
7434  if test "x$ac_ct_OTOOL64" = x; then
7435    OTOOL64=":"
7436  else
7437    case $cross_compiling:$ac_tool_warned in
7438yes:)
7439{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7441ac_tool_warned=yes ;;
7442esac
7443    OTOOL64=$ac_ct_OTOOL64
7444  fi
7445else
7446  OTOOL64="$ac_cv_prog_OTOOL64"
7447fi
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7476$as_echo_n "checking for -single_module linker flag... " >&6; }
7477if ${lt_cv_apple_cc_single_mod+:} false; then :
7478  $as_echo_n "(cached) " >&6
7479else
7480  lt_cv_apple_cc_single_mod=no
7481      if test -z "${LT_MULTI_MODULE}"; then
7482	# By default we will add the -single_module flag. You can override
7483	# by either setting the environment variable LT_MULTI_MODULE
7484	# non-empty at configure time, or by adding -multi_module to the
7485	# link flags.
7486	rm -rf libconftest.dylib*
7487	echo "int foo(void){return 1;}" > conftest.c
7488	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7489-dynamiclib -Wl,-single_module conftest.c" >&5
7490	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7491	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7492        _lt_result=$?
7493	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7494	  lt_cv_apple_cc_single_mod=yes
7495	else
7496	  cat conftest.err >&5
7497	fi
7498	rm -rf libconftest.dylib*
7499	rm -f conftest.*
7500      fi
7501fi
7502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7503$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7504    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7505$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7506if ${lt_cv_ld_exported_symbols_list+:} false; then :
7507  $as_echo_n "(cached) " >&6
7508else
7509  lt_cv_ld_exported_symbols_list=no
7510      save_LDFLAGS=$LDFLAGS
7511      echo "_main" > conftest.sym
7512      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7513      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514/* end confdefs.h.  */
7515
7516int
7517main ()
7518{
7519
7520  ;
7521  return 0;
7522}
7523_ACEOF
7524if ac_fn_c_try_link "$LINENO"; then :
7525  lt_cv_ld_exported_symbols_list=yes
7526else
7527  lt_cv_ld_exported_symbols_list=no
7528fi
7529rm -f core conftest.err conftest.$ac_objext \
7530    conftest$ac_exeext conftest.$ac_ext
7531	LDFLAGS="$save_LDFLAGS"
7532
7533fi
7534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7535$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7536    case $host_os in
7537    rhapsody* | darwin1.[012])
7538      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7539    darwin1.*)
7540      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7541    darwin*) # darwin 5.x on
7542      # if running on 10.5 or later, the deployment target defaults
7543      # to the OS version, if on x86, and 10.4, the deployment
7544      # target defaults to 10.4. Don't you love it?
7545      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7546	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7547	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7548	10.[012]*)
7549	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7550	10.*)
7551	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7552      esac
7553    ;;
7554  esac
7555    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7556      _lt_dar_single_mod='$single_module'
7557    fi
7558    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7559      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7560    else
7561      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7562    fi
7563    if test "$DSYMUTIL" != ":"; then
7564      _lt_dsymutil='~$DSYMUTIL $lib || :'
7565    else
7566      _lt_dsymutil=
7567    fi
7568    ;;
7569  esac
7570
7571for ac_header in dlfcn.h
7572do :
7573  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7574"
7575if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7576  cat >>confdefs.h <<_ACEOF
7577#define HAVE_DLFCN_H 1
7578_ACEOF
7579
7580fi
7581
7582done
7583
7584
7585
7586# Set options
7587
7588
7589
7590        enable_dlopen=no
7591
7592
7593
7594            # Check whether --enable-shared was given.
7595if test "${enable_shared+set}" = set; then :
7596  enableval=$enable_shared; p=${PACKAGE-default}
7597    case $enableval in
7598    yes) enable_shared=yes ;;
7599    no) enable_shared=no ;;
7600    *)
7601      enable_shared=no
7602      # Look at the argument we got.  We use all the common list separators.
7603      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7604      for pkg in $enableval; do
7605	IFS="$lt_save_ifs"
7606	if test "X$pkg" = "X$p"; then
7607	  enable_shared=yes
7608	fi
7609      done
7610      IFS="$lt_save_ifs"
7611      ;;
7612    esac
7613else
7614  enable_shared=yes
7615fi
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625  # Check whether --enable-static was given.
7626if test "${enable_static+set}" = set; then :
7627  enableval=$enable_static; p=${PACKAGE-default}
7628    case $enableval in
7629    yes) enable_static=yes ;;
7630    no) enable_static=no ;;
7631    *)
7632     enable_static=no
7633      # Look at the argument we got.  We use all the common list separators.
7634      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7635      for pkg in $enableval; do
7636	IFS="$lt_save_ifs"
7637	if test "X$pkg" = "X$p"; then
7638	  enable_static=yes
7639	fi
7640      done
7641      IFS="$lt_save_ifs"
7642      ;;
7643    esac
7644else
7645  enable_static=yes
7646fi
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657# Check whether --with-pic was given.
7658if test "${with_pic+set}" = set; then :
7659  withval=$with_pic; pic_mode="$withval"
7660else
7661  pic_mode=default
7662fi
7663
7664
7665test -z "$pic_mode" && pic_mode=default
7666
7667
7668
7669
7670
7671
7672
7673  # Check whether --enable-fast-install was given.
7674if test "${enable_fast_install+set}" = set; then :
7675  enableval=$enable_fast_install; p=${PACKAGE-default}
7676    case $enableval in
7677    yes) enable_fast_install=yes ;;
7678    no) enable_fast_install=no ;;
7679    *)
7680      enable_fast_install=no
7681      # Look at the argument we got.  We use all the common list separators.
7682      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7683      for pkg in $enableval; do
7684	IFS="$lt_save_ifs"
7685	if test "X$pkg" = "X$p"; then
7686	  enable_fast_install=yes
7687	fi
7688      done
7689      IFS="$lt_save_ifs"
7690      ;;
7691    esac
7692else
7693  enable_fast_install=yes
7694fi
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706# This can be used to rebuild libtool when needed
7707LIBTOOL_DEPS="$ltmain"
7708
7709# Always use our own libtool.
7710LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736test -z "$LN_S" && LN_S="ln -s"
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751if test -n "${ZSH_VERSION+set}" ; then
7752   setopt NO_GLOB_SUBST
7753fi
7754
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7756$as_echo_n "checking for objdir... " >&6; }
7757if ${lt_cv_objdir+:} false; then :
7758  $as_echo_n "(cached) " >&6
7759else
7760  rm -f .libs 2>/dev/null
7761mkdir .libs 2>/dev/null
7762if test -d .libs; then
7763  lt_cv_objdir=.libs
7764else
7765  # MS-DOS does not allow filenames that begin with a dot.
7766  lt_cv_objdir=_libs
7767fi
7768rmdir .libs 2>/dev/null
7769fi
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7771$as_echo "$lt_cv_objdir" >&6; }
7772objdir=$lt_cv_objdir
7773
7774
7775
7776
7777
7778cat >>confdefs.h <<_ACEOF
7779#define LT_OBJDIR "$lt_cv_objdir/"
7780_ACEOF
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798case $host_os in
7799aix3*)
7800  # AIX sometimes has problems with the GCC collect2 program.  For some
7801  # reason, if we set the COLLECT_NAMES environment variable, the problems
7802  # vanish in a puff of smoke.
7803  if test "X${COLLECT_NAMES+set}" != Xset; then
7804    COLLECT_NAMES=
7805    export COLLECT_NAMES
7806  fi
7807  ;;
7808esac
7809
7810# Sed substitution that helps us do robust quoting.  It backslashifies
7811# metacharacters that are still active within double-quoted strings.
7812sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7813
7814# Same as above, but do not quote variable references.
7815double_quote_subst='s/\(["`\\]\)/\\\1/g'
7816
7817# Sed substitution to delay expansion of an escaped shell variable in a
7818# double_quote_subst'ed string.
7819delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7820
7821# Sed substitution to delay expansion of an escaped single quote.
7822delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7823
7824# Sed substitution to avoid accidental globbing in evaled expressions
7825no_glob_subst='s/\*/\\\*/g'
7826
7827# Global variables:
7828ofile=libtool
7829can_build_shared=yes
7830
7831# All known linkers require a `.a' archive for static linking (except MSVC,
7832# which needs '.lib').
7833libext=a
7834
7835with_gnu_ld="$lt_cv_prog_gnu_ld"
7836
7837old_CC="$CC"
7838old_CFLAGS="$CFLAGS"
7839
7840# Set sane defaults for various variables
7841test -z "$CC" && CC=cc
7842test -z "$LTCC" && LTCC=$CC
7843test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7844test -z "$LD" && LD=ld
7845test -z "$ac_objext" && ac_objext=o
7846
7847for cc_temp in $compiler""; do
7848  case $cc_temp in
7849    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7850    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7851    \-*) ;;
7852    *) break;;
7853  esac
7854done
7855cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7856
7857
7858# Only perform the check for file, if the check method requires it
7859test -z "$MAGIC_CMD" && MAGIC_CMD=file
7860case $deplibs_check_method in
7861file_magic*)
7862  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7863    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7864$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7865if ${lt_cv_path_MAGIC_CMD+:} false; then :
7866  $as_echo_n "(cached) " >&6
7867else
7868  case $MAGIC_CMD in
7869[\\/*] |  ?:[\\/]*)
7870  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7871  ;;
7872*)
7873  lt_save_MAGIC_CMD="$MAGIC_CMD"
7874  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7875  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7876  for ac_dir in $ac_dummy; do
7877    IFS="$lt_save_ifs"
7878    test -z "$ac_dir" && ac_dir=.
7879    if test -f $ac_dir/${ac_tool_prefix}file; then
7880      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7881      if test -n "$file_magic_test_file"; then
7882	case $deplibs_check_method in
7883	"file_magic "*)
7884	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7885	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7886	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7887	    $EGREP "$file_magic_regex" > /dev/null; then
7888	    :
7889	  else
7890	    cat <<_LT_EOF 1>&2
7891
7892*** Warning: the command libtool uses to detect shared libraries,
7893*** $file_magic_cmd, produces output that libtool cannot recognize.
7894*** The result is that libtool may fail to recognize shared libraries
7895*** as such.  This will affect the creation of libtool libraries that
7896*** depend on shared libraries, but programs linked with such libtool
7897*** libraries will work regardless of this problem.  Nevertheless, you
7898*** may want to report the problem to your system manager and/or to
7899*** bug-libtool@gnu.org
7900
7901_LT_EOF
7902	  fi ;;
7903	esac
7904      fi
7905      break
7906    fi
7907  done
7908  IFS="$lt_save_ifs"
7909  MAGIC_CMD="$lt_save_MAGIC_CMD"
7910  ;;
7911esac
7912fi
7913
7914MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7915if test -n "$MAGIC_CMD"; then
7916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7917$as_echo "$MAGIC_CMD" >&6; }
7918else
7919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920$as_echo "no" >&6; }
7921fi
7922
7923
7924
7925
7926
7927if test -z "$lt_cv_path_MAGIC_CMD"; then
7928  if test -n "$ac_tool_prefix"; then
7929    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7930$as_echo_n "checking for file... " >&6; }
7931if ${lt_cv_path_MAGIC_CMD+:} false; then :
7932  $as_echo_n "(cached) " >&6
7933else
7934  case $MAGIC_CMD in
7935[\\/*] |  ?:[\\/]*)
7936  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7937  ;;
7938*)
7939  lt_save_MAGIC_CMD="$MAGIC_CMD"
7940  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7941  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7942  for ac_dir in $ac_dummy; do
7943    IFS="$lt_save_ifs"
7944    test -z "$ac_dir" && ac_dir=.
7945    if test -f $ac_dir/file; then
7946      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7947      if test -n "$file_magic_test_file"; then
7948	case $deplibs_check_method in
7949	"file_magic "*)
7950	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7951	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7952	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7953	    $EGREP "$file_magic_regex" > /dev/null; then
7954	    :
7955	  else
7956	    cat <<_LT_EOF 1>&2
7957
7958*** Warning: the command libtool uses to detect shared libraries,
7959*** $file_magic_cmd, produces output that libtool cannot recognize.
7960*** The result is that libtool may fail to recognize shared libraries
7961*** as such.  This will affect the creation of libtool libraries that
7962*** depend on shared libraries, but programs linked with such libtool
7963*** libraries will work regardless of this problem.  Nevertheless, you
7964*** may want to report the problem to your system manager and/or to
7965*** bug-libtool@gnu.org
7966
7967_LT_EOF
7968	  fi ;;
7969	esac
7970      fi
7971      break
7972    fi
7973  done
7974  IFS="$lt_save_ifs"
7975  MAGIC_CMD="$lt_save_MAGIC_CMD"
7976  ;;
7977esac
7978fi
7979
7980MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7981if test -n "$MAGIC_CMD"; then
7982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7983$as_echo "$MAGIC_CMD" >&6; }
7984else
7985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986$as_echo "no" >&6; }
7987fi
7988
7989
7990  else
7991    MAGIC_CMD=:
7992  fi
7993fi
7994
7995  fi
7996  ;;
7997esac
7998
7999# Use C for the default configuration in the libtool script
8000
8001lt_save_CC="$CC"
8002ac_ext=c
8003ac_cpp='$CPP $CPPFLAGS'
8004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8006ac_compiler_gnu=$ac_cv_c_compiler_gnu
8007
8008
8009# Source file extension for C test sources.
8010ac_ext=c
8011
8012# Object file extension for compiled C test sources.
8013objext=o
8014objext=$objext
8015
8016# Code to be used in simple compile tests
8017lt_simple_compile_test_code="int some_variable = 0;"
8018
8019# Code to be used in simple link tests
8020lt_simple_link_test_code='int main(){return(0);}'
8021
8022
8023
8024
8025
8026
8027
8028# If no C compiler was specified, use CC.
8029LTCC=${LTCC-"$CC"}
8030
8031# If no C compiler flags were specified, use CFLAGS.
8032LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8033
8034# Allow CC to be a program name with arguments.
8035compiler=$CC
8036
8037# Save the default compiler, since it gets overwritten when the other
8038# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8039compiler_DEFAULT=$CC
8040
8041# save warnings/boilerplate of simple test code
8042ac_outfile=conftest.$ac_objext
8043echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8044eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8045_lt_compiler_boilerplate=`cat conftest.err`
8046$RM conftest*
8047
8048ac_outfile=conftest.$ac_objext
8049echo "$lt_simple_link_test_code" >conftest.$ac_ext
8050eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8051_lt_linker_boilerplate=`cat conftest.err`
8052$RM -r conftest*
8053
8054
8055## CAVEAT EMPTOR:
8056## There is no encapsulation within the following macros, do not change
8057## the running order or otherwise move them around unless you know exactly
8058## what you are doing...
8059if test -n "$compiler"; then
8060
8061lt_prog_compiler_no_builtin_flag=
8062
8063if test "$GCC" = yes; then
8064  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8065
8066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8067$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8068if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8069  $as_echo_n "(cached) " >&6
8070else
8071  lt_cv_prog_compiler_rtti_exceptions=no
8072   ac_outfile=conftest.$ac_objext
8073   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8074   lt_compiler_flag="-fno-rtti -fno-exceptions"
8075   # Insert the option either (1) after the last *FLAGS variable, or
8076   # (2) before a word containing "conftest.", or (3) at the end.
8077   # Note that $ac_compile itself does not contain backslashes and begins
8078   # with a dollar sign (not a hyphen), so the echo should work correctly.
8079   # The option is referenced via a variable to avoid confusing sed.
8080   lt_compile=`echo "$ac_compile" | $SED \
8081   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8082   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8083   -e 's:$: $lt_compiler_flag:'`
8084   (eval echo "\"\$as_me:8084: $lt_compile\"" >&5)
8085   (eval "$lt_compile" 2>conftest.err)
8086   ac_status=$?
8087   cat conftest.err >&5
8088   echo "$as_me:8088: \$? = $ac_status" >&5
8089   if (exit $ac_status) && test -s "$ac_outfile"; then
8090     # The compiler can only warn and ignore the option if not recognized
8091     # So say no if there are warnings other than the usual output.
8092     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8093     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8094     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8095       lt_cv_prog_compiler_rtti_exceptions=yes
8096     fi
8097   fi
8098   $RM conftest*
8099
8100fi
8101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8102$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8103
8104if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8105    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8106else
8107    :
8108fi
8109
8110fi
8111
8112
8113
8114
8115
8116
8117  lt_prog_compiler_wl=
8118lt_prog_compiler_pic=
8119lt_prog_compiler_static=
8120
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8122$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8123
8124  if test "$GCC" = yes; then
8125    lt_prog_compiler_wl='-Wl,'
8126    lt_prog_compiler_static='-static'
8127
8128    case $host_os in
8129      aix*)
8130      # All AIX code is PIC.
8131      if test "$host_cpu" = ia64; then
8132	# AIX 5 now supports IA64 processor
8133	lt_prog_compiler_static='-Bstatic'
8134      fi
8135      ;;
8136
8137    amigaos*)
8138      case $host_cpu in
8139      powerpc)
8140            # see comment about AmigaOS4 .so support
8141            lt_prog_compiler_pic='-fPIC'
8142        ;;
8143      m68k)
8144            # FIXME: we need at least 68020 code to build shared libraries, but
8145            # adding the `-m68020' flag to GCC prevents building anything better,
8146            # like `-m68040'.
8147            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8148        ;;
8149      esac
8150      ;;
8151
8152    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8153      # PIC is the default for these OSes.
8154      ;;
8155
8156    mingw* | cygwin* | pw32* | os2* | cegcc*)
8157      # This hack is so that the source file can tell whether it is being
8158      # built for inclusion in a dll (and should export symbols for example).
8159      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8160      # (--disable-auto-import) libraries
8161      lt_prog_compiler_pic='-DDLL_EXPORT'
8162      ;;
8163
8164    darwin* | rhapsody*)
8165      # PIC is the default on this platform
8166      # Common symbols not allowed in MH_DYLIB files
8167      lt_prog_compiler_pic='-fno-common'
8168      ;;
8169
8170    hpux*)
8171      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8172      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8173      # sets the default TLS model and affects inlining.
8174      case $host_cpu in
8175      hppa*64*)
8176	# +Z the default
8177	;;
8178      *)
8179	lt_prog_compiler_pic='-fPIC'
8180	;;
8181      esac
8182      ;;
8183
8184    interix[3-9]*)
8185      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8186      # Instead, we relocate shared libraries at runtime.
8187      ;;
8188
8189    msdosdjgpp*)
8190      # Just because we use GCC doesn't mean we suddenly get shared libraries
8191      # on systems that don't support them.
8192      lt_prog_compiler_can_build_shared=no
8193      enable_shared=no
8194      ;;
8195
8196    *nto* | *qnx*)
8197      # QNX uses GNU C++, but need to define -shared option too, otherwise
8198      # it will coredump.
8199      lt_prog_compiler_pic='-fPIC -shared'
8200      ;;
8201
8202    sysv4*MP*)
8203      if test -d /usr/nec; then
8204	lt_prog_compiler_pic=-Kconform_pic
8205      fi
8206      ;;
8207
8208    *)
8209      lt_prog_compiler_pic='-fPIC'
8210      ;;
8211    esac
8212  else
8213    # PORTME Check for flag to pass linker flags through the system compiler.
8214    case $host_os in
8215    aix*)
8216      lt_prog_compiler_wl='-Wl,'
8217      if test "$host_cpu" = ia64; then
8218	# AIX 5 now supports IA64 processor
8219	lt_prog_compiler_static='-Bstatic'
8220      else
8221	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8222      fi
8223      ;;
8224
8225    mingw* | cygwin* | pw32* | os2* | cegcc*)
8226      # This hack is so that the source file can tell whether it is being
8227      # built for inclusion in a dll (and should export symbols for example).
8228      lt_prog_compiler_pic='-DDLL_EXPORT'
8229      ;;
8230
8231    hpux9* | hpux10* | hpux11*)
8232      lt_prog_compiler_wl='-Wl,'
8233      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8234      # not for PA HP-UX.
8235      case $host_cpu in
8236      hppa*64*|ia64*)
8237	# +Z the default
8238	;;
8239      *)
8240	lt_prog_compiler_pic='+Z'
8241	;;
8242      esac
8243      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8244      lt_prog_compiler_static='${wl}-a ${wl}archive'
8245      ;;
8246
8247    irix5* | irix6* | nonstopux*)
8248      lt_prog_compiler_wl='-Wl,'
8249      # PIC (with -KPIC) is the default.
8250      lt_prog_compiler_static='-non_shared'
8251      ;;
8252
8253    linux* | k*bsd*-gnu)
8254      case $cc_basename in
8255      # old Intel for x86_64 which still supported -KPIC.
8256      ecc*)
8257	lt_prog_compiler_wl='-Wl,'
8258	lt_prog_compiler_pic='-KPIC'
8259	lt_prog_compiler_static='-static'
8260        ;;
8261      # icc used to be incompatible with GCC.
8262      # ICC 10 doesn't accept -KPIC any more.
8263      icc* | ifort*)
8264	lt_prog_compiler_wl='-Wl,'
8265	lt_prog_compiler_pic='-fPIC'
8266	lt_prog_compiler_static='-static'
8267        ;;
8268      # Lahey Fortran 8.1.
8269      lf95*)
8270	lt_prog_compiler_wl='-Wl,'
8271	lt_prog_compiler_pic='--shared'
8272	lt_prog_compiler_static='--static'
8273	;;
8274      pgcc* | pgf77* | pgf90* | pgf95*)
8275        # Portland Group compilers (*not* the Pentium gcc compiler,
8276	# which looks to be a dead project)
8277	lt_prog_compiler_wl='-Wl,'
8278	lt_prog_compiler_pic='-fpic'
8279	lt_prog_compiler_static='-Bstatic'
8280        ;;
8281      ccc*)
8282        lt_prog_compiler_wl='-Wl,'
8283        # All Alpha code is PIC.
8284        lt_prog_compiler_static='-non_shared'
8285        ;;
8286      xl*)
8287	# IBM XL C 8.0/Fortran 10.1 on PPC
8288	lt_prog_compiler_wl='-Wl,'
8289	lt_prog_compiler_pic='-qpic'
8290	lt_prog_compiler_static='-qstaticlink'
8291	;;
8292      *)
8293	case `$CC -V 2>&1 | sed 5q` in
8294	*Sun\ C*)
8295	  # Sun C 5.9
8296	  lt_prog_compiler_pic='-KPIC'
8297	  lt_prog_compiler_static='-Bstatic'
8298	  lt_prog_compiler_wl='-Wl,'
8299	  ;;
8300	*Sun\ F*)
8301	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8302	  lt_prog_compiler_pic='-KPIC'
8303	  lt_prog_compiler_static='-Bstatic'
8304	  lt_prog_compiler_wl=''
8305	  ;;
8306	esac
8307	;;
8308      esac
8309      ;;
8310
8311    newsos6)
8312      lt_prog_compiler_pic='-KPIC'
8313      lt_prog_compiler_static='-Bstatic'
8314      ;;
8315
8316    *nto* | *qnx*)
8317      # QNX uses GNU C++, but need to define -shared option too, otherwise
8318      # it will coredump.
8319      lt_prog_compiler_pic='-fPIC -shared'
8320      ;;
8321
8322    osf3* | osf4* | osf5*)
8323      lt_prog_compiler_wl='-Wl,'
8324      # All OSF/1 code is PIC.
8325      lt_prog_compiler_static='-non_shared'
8326      ;;
8327
8328    rdos*)
8329      lt_prog_compiler_static='-non_shared'
8330      ;;
8331
8332    solaris*)
8333      lt_prog_compiler_pic='-KPIC'
8334      lt_prog_compiler_static='-Bstatic'
8335      case $cc_basename in
8336      f77* | f90* | f95*)
8337	lt_prog_compiler_wl='-Qoption ld ';;
8338      *)
8339	lt_prog_compiler_wl='-Wl,';;
8340      esac
8341      ;;
8342
8343    sunos4*)
8344      lt_prog_compiler_wl='-Qoption ld '
8345      lt_prog_compiler_pic='-PIC'
8346      lt_prog_compiler_static='-Bstatic'
8347      ;;
8348
8349    sysv4 | sysv4.2uw2* | sysv4.3*)
8350      lt_prog_compiler_wl='-Wl,'
8351      lt_prog_compiler_pic='-KPIC'
8352      lt_prog_compiler_static='-Bstatic'
8353      ;;
8354
8355    sysv4*MP*)
8356      if test -d /usr/nec ;then
8357	lt_prog_compiler_pic='-Kconform_pic'
8358	lt_prog_compiler_static='-Bstatic'
8359      fi
8360      ;;
8361
8362    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8363      lt_prog_compiler_wl='-Wl,'
8364      lt_prog_compiler_pic='-KPIC'
8365      lt_prog_compiler_static='-Bstatic'
8366      ;;
8367
8368    unicos*)
8369      lt_prog_compiler_wl='-Wl,'
8370      lt_prog_compiler_can_build_shared=no
8371      ;;
8372
8373    uts4*)
8374      lt_prog_compiler_pic='-pic'
8375      lt_prog_compiler_static='-Bstatic'
8376      ;;
8377
8378    *)
8379      lt_prog_compiler_can_build_shared=no
8380      ;;
8381    esac
8382  fi
8383
8384case $host_os in
8385  # For platforms which do not support PIC, -DPIC is meaningless:
8386  *djgpp*)
8387    lt_prog_compiler_pic=
8388    ;;
8389  *)
8390    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8391    ;;
8392esac
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8394$as_echo "$lt_prog_compiler_pic" >&6; }
8395
8396
8397
8398
8399
8400
8401#
8402# Check to make sure the PIC flag actually works.
8403#
8404if test -n "$lt_prog_compiler_pic"; then
8405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8406$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8407if ${lt_cv_prog_compiler_pic_works+:} false; then :
8408  $as_echo_n "(cached) " >&6
8409else
8410  lt_cv_prog_compiler_pic_works=no
8411   ac_outfile=conftest.$ac_objext
8412   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8413   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8414   # Insert the option either (1) after the last *FLAGS variable, or
8415   # (2) before a word containing "conftest.", or (3) at the end.
8416   # Note that $ac_compile itself does not contain backslashes and begins
8417   # with a dollar sign (not a hyphen), so the echo should work correctly.
8418   # The option is referenced via a variable to avoid confusing sed.
8419   lt_compile=`echo "$ac_compile" | $SED \
8420   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8421   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8422   -e 's:$: $lt_compiler_flag:'`
8423   (eval echo "\"\$as_me:8423: $lt_compile\"" >&5)
8424   (eval "$lt_compile" 2>conftest.err)
8425   ac_status=$?
8426   cat conftest.err >&5
8427   echo "$as_me:8427: \$? = $ac_status" >&5
8428   if (exit $ac_status) && test -s "$ac_outfile"; then
8429     # The compiler can only warn and ignore the option if not recognized
8430     # So say no if there are warnings other than the usual output.
8431     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8432     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8433     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8434       lt_cv_prog_compiler_pic_works=yes
8435     fi
8436   fi
8437   $RM conftest*
8438
8439fi
8440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8441$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8442
8443if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8444    case $lt_prog_compiler_pic in
8445     "" | " "*) ;;
8446     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8447     esac
8448else
8449    lt_prog_compiler_pic=
8450     lt_prog_compiler_can_build_shared=no
8451fi
8452
8453fi
8454
8455
8456
8457
8458
8459
8460#
8461# Check to make sure the static flag actually works.
8462#
8463wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8465$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8466if ${lt_cv_prog_compiler_static_works+:} false; then :
8467  $as_echo_n "(cached) " >&6
8468else
8469  lt_cv_prog_compiler_static_works=no
8470   save_LDFLAGS="$LDFLAGS"
8471   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8472   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8473   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8474     # The linker can only warn and ignore the option if not recognized
8475     # So say no if there are warnings
8476     if test -s conftest.err; then
8477       # Append any errors to the config.log.
8478       cat conftest.err 1>&5
8479       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8480       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8481       if diff conftest.exp conftest.er2 >/dev/null; then
8482         lt_cv_prog_compiler_static_works=yes
8483       fi
8484     else
8485       lt_cv_prog_compiler_static_works=yes
8486     fi
8487   fi
8488   $RM -r conftest*
8489   LDFLAGS="$save_LDFLAGS"
8490
8491fi
8492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8493$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8494
8495if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8496    :
8497else
8498    lt_prog_compiler_static=
8499fi
8500
8501
8502
8503
8504
8505
8506
8507  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8508$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8509if ${lt_cv_prog_compiler_c_o+:} false; then :
8510  $as_echo_n "(cached) " >&6
8511else
8512  lt_cv_prog_compiler_c_o=no
8513   $RM -r conftest 2>/dev/null
8514   mkdir conftest
8515   cd conftest
8516   mkdir out
8517   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8518
8519   lt_compiler_flag="-o out/conftest2.$ac_objext"
8520   # Insert the option either (1) after the last *FLAGS variable, or
8521   # (2) before a word containing "conftest.", or (3) at the end.
8522   # Note that $ac_compile itself does not contain backslashes and begins
8523   # with a dollar sign (not a hyphen), so the echo should work correctly.
8524   lt_compile=`echo "$ac_compile" | $SED \
8525   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8526   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8527   -e 's:$: $lt_compiler_flag:'`
8528   (eval echo "\"\$as_me:8528: $lt_compile\"" >&5)
8529   (eval "$lt_compile" 2>out/conftest.err)
8530   ac_status=$?
8531   cat out/conftest.err >&5
8532   echo "$as_me:8532: \$? = $ac_status" >&5
8533   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8534   then
8535     # The compiler can only warn and ignore the option if not recognized
8536     # So say no if there are warnings
8537     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8538     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8539     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8540       lt_cv_prog_compiler_c_o=yes
8541     fi
8542   fi
8543   chmod u+w . 2>&5
8544   $RM conftest*
8545   # SGI C++ compiler will create directory out/ii_files/ for
8546   # template instantiation
8547   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8548   $RM out/* && rmdir out
8549   cd ..
8550   $RM -r conftest
8551   $RM conftest*
8552
8553fi
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8555$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8556
8557
8558
8559
8560
8561
8562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8563$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8564if ${lt_cv_prog_compiler_c_o+:} false; then :
8565  $as_echo_n "(cached) " >&6
8566else
8567  lt_cv_prog_compiler_c_o=no
8568   $RM -r conftest 2>/dev/null
8569   mkdir conftest
8570   cd conftest
8571   mkdir out
8572   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8573
8574   lt_compiler_flag="-o out/conftest2.$ac_objext"
8575   # Insert the option either (1) after the last *FLAGS variable, or
8576   # (2) before a word containing "conftest.", or (3) at the end.
8577   # Note that $ac_compile itself does not contain backslashes and begins
8578   # with a dollar sign (not a hyphen), so the echo should work correctly.
8579   lt_compile=`echo "$ac_compile" | $SED \
8580   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8581   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8582   -e 's:$: $lt_compiler_flag:'`
8583   (eval echo "\"\$as_me:8583: $lt_compile\"" >&5)
8584   (eval "$lt_compile" 2>out/conftest.err)
8585   ac_status=$?
8586   cat out/conftest.err >&5
8587   echo "$as_me:8587: \$? = $ac_status" >&5
8588   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8589   then
8590     # The compiler can only warn and ignore the option if not recognized
8591     # So say no if there are warnings
8592     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8593     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8594     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8595       lt_cv_prog_compiler_c_o=yes
8596     fi
8597   fi
8598   chmod u+w . 2>&5
8599   $RM conftest*
8600   # SGI C++ compiler will create directory out/ii_files/ for
8601   # template instantiation
8602   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8603   $RM out/* && rmdir out
8604   cd ..
8605   $RM -r conftest
8606   $RM conftest*
8607
8608fi
8609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8610$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8611
8612
8613
8614
8615hard_links="nottested"
8616if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8617  # do not overwrite the value of need_locks provided by the user
8618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8619$as_echo_n "checking if we can lock with hard links... " >&6; }
8620  hard_links=yes
8621  $RM conftest*
8622  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8623  touch conftest.a
8624  ln conftest.a conftest.b 2>&5 || hard_links=no
8625  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8627$as_echo "$hard_links" >&6; }
8628  if test "$hard_links" = no; then
8629    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8630$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8631    need_locks=warn
8632  fi
8633else
8634  need_locks=no
8635fi
8636
8637
8638
8639
8640
8641
8642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8643$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8644
8645  runpath_var=
8646  allow_undefined_flag=
8647  always_export_symbols=no
8648  archive_cmds=
8649  archive_expsym_cmds=
8650  compiler_needs_object=no
8651  enable_shared_with_static_runtimes=no
8652  export_dynamic_flag_spec=
8653  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8654  hardcode_automatic=no
8655  hardcode_direct=no
8656  hardcode_direct_absolute=no
8657  hardcode_libdir_flag_spec=
8658  hardcode_libdir_flag_spec_ld=
8659  hardcode_libdir_separator=
8660  hardcode_minus_L=no
8661  hardcode_shlibpath_var=unsupported
8662  inherit_rpath=no
8663  link_all_deplibs=unknown
8664  module_cmds=
8665  module_expsym_cmds=
8666  old_archive_from_new_cmds=
8667  old_archive_from_expsyms_cmds=
8668  thread_safe_flag_spec=
8669  whole_archive_flag_spec=
8670  # include_expsyms should be a list of space-separated symbols to be *always*
8671  # included in the symbol list
8672  include_expsyms=
8673  # exclude_expsyms can be an extended regexp of symbols to exclude
8674  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8675  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8676  # as well as any symbol that contains `d'.
8677  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8678  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8679  # platforms (ab)use it in PIC code, but their linkers get confused if
8680  # the symbol is explicitly referenced.  Since portable code cannot
8681  # rely on this symbol name, it's probably fine to never include it in
8682  # preloaded symbol tables.
8683  # Exclude shared library initialization/finalization symbols.
8684  extract_expsyms_cmds=
8685
8686  case $host_os in
8687  cygwin* | mingw* | pw32* | cegcc*)
8688    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8689    # When not using gcc, we currently assume that we are using
8690    # Microsoft Visual C++.
8691    if test "$GCC" != yes; then
8692      with_gnu_ld=no
8693    fi
8694    ;;
8695  interix*)
8696    # we just hope/assume this is gcc and not c89 (= MSVC++)
8697    with_gnu_ld=yes
8698    ;;
8699  openbsd*)
8700    with_gnu_ld=no
8701    ;;
8702  esac
8703
8704  ld_shlibs=yes
8705  if test "$with_gnu_ld" = yes; then
8706    # If archive_cmds runs LD, not CC, wlarc should be empty
8707    wlarc='${wl}'
8708
8709    # Set some defaults for GNU ld with shared library support. These
8710    # are reset later if shared libraries are not supported. Putting them
8711    # here allows them to be overridden if necessary.
8712    runpath_var=LD_RUN_PATH
8713    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8714    export_dynamic_flag_spec='${wl}--export-dynamic'
8715    # ancient GNU ld didn't support --whole-archive et. al.
8716    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8717      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8718    else
8719      whole_archive_flag_spec=
8720    fi
8721    supports_anon_versioning=no
8722    case `$LD -v 2>&1` in
8723      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8724      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8725      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8726      *\ 2.11.*) ;; # other 2.11 versions
8727      *) supports_anon_versioning=yes ;;
8728    esac
8729
8730    # See if GNU ld supports shared libraries.
8731    case $host_os in
8732    aix[3-9]*)
8733      # On AIX/PPC, the GNU linker is very broken
8734      if test "$host_cpu" != ia64; then
8735	ld_shlibs=no
8736	cat <<_LT_EOF 1>&2
8737
8738*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8739*** to be unable to reliably create shared libraries on AIX.
8740*** Therefore, libtool is disabling shared libraries support.  If you
8741*** really care for shared libraries, you may want to modify your PATH
8742*** so that a non-GNU linker is found, and then restart.
8743
8744_LT_EOF
8745      fi
8746      ;;
8747
8748    amigaos*)
8749      case $host_cpu in
8750      powerpc)
8751            # see comment about AmigaOS4 .so support
8752            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8753            archive_expsym_cmds=''
8754        ;;
8755      m68k)
8756            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)'
8757            hardcode_libdir_flag_spec='-L$libdir'
8758            hardcode_minus_L=yes
8759        ;;
8760      esac
8761      ;;
8762
8763    beos*)
8764      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8765	allow_undefined_flag=unsupported
8766	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8767	# support --undefined.  This deserves some investigation.  FIXME
8768	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8769      else
8770	ld_shlibs=no
8771      fi
8772      ;;
8773
8774    cygwin* | mingw* | pw32* | cegcc*)
8775      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8776      # as there is no search path for DLLs.
8777      hardcode_libdir_flag_spec='-L$libdir'
8778      allow_undefined_flag=unsupported
8779      always_export_symbols=no
8780      enable_shared_with_static_runtimes=yes
8781      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8782
8783      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8784        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8785	# If the export-symbols file already is a .def file (1st line
8786	# is EXPORTS), use it as is; otherwise, prepend...
8787	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8788	  cp $export_symbols $output_objdir/$soname.def;
8789	else
8790	  echo EXPORTS > $output_objdir/$soname.def;
8791	  cat $export_symbols >> $output_objdir/$soname.def;
8792	fi~
8793	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8794      else
8795	ld_shlibs=no
8796      fi
8797      ;;
8798
8799    interix[3-9]*)
8800      hardcode_direct=no
8801      hardcode_shlibpath_var=no
8802      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8803      export_dynamic_flag_spec='${wl}-E'
8804      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8805      # Instead, shared libraries are loaded at an image base (0x10000000 by
8806      # default) and relocated if they conflict, which is a slow very memory
8807      # consuming and fragmenting process.  To avoid this, we pick a random,
8808      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8809      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8810      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8811      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'
8812      ;;
8813
8814    gnu* | linux* | tpf* | k*bsd*-gnu)
8815      tmp_diet=no
8816      if test "$host_os" = linux-dietlibc; then
8817	case $cc_basename in
8818	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8819	esac
8820      fi
8821      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8822	 && test "$tmp_diet" = no
8823      then
8824	tmp_addflag=
8825	tmp_sharedflag='-shared'
8826	case $cc_basename,$host_cpu in
8827        pgcc*)				# Portland Group C compiler
8828	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8829	  tmp_addflag=' $pic_flag'
8830	  ;;
8831	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8832	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8833	  tmp_addflag=' $pic_flag -Mnomain' ;;
8834	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8835	  tmp_addflag=' -i_dynamic' ;;
8836	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8837	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8838	ifc* | ifort*)			# Intel Fortran compiler
8839	  tmp_addflag=' -nofor_main' ;;
8840	lf95*)				# Lahey Fortran 8.1
8841	  whole_archive_flag_spec=
8842	  tmp_sharedflag='--shared' ;;
8843	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8844	  tmp_sharedflag='-qmkshrobj'
8845	  tmp_addflag= ;;
8846	esac
8847	case `$CC -V 2>&1 | sed 5q` in
8848	*Sun\ C*)			# Sun C 5.9
8849	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8850	  compiler_needs_object=yes
8851	  tmp_sharedflag='-G' ;;
8852	*Sun\ F*)			# Sun Fortran 8.3
8853	  tmp_sharedflag='-G' ;;
8854	esac
8855	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8856
8857        if test "x$supports_anon_versioning" = xyes; then
8858          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8859	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8860	    echo "local: *; };" >> $output_objdir/$libname.ver~
8861	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8862        fi
8863
8864	case $cc_basename in
8865	xlf*)
8866	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8867	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8868	  hardcode_libdir_flag_spec=
8869	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8870	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8871	  if test "x$supports_anon_versioning" = xyes; then
8872	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8873	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8874	      echo "local: *; };" >> $output_objdir/$libname.ver~
8875	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8876	  fi
8877	  ;;
8878	esac
8879      else
8880        ld_shlibs=no
8881      fi
8882      ;;
8883
8884    netbsd*)
8885      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8886	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8887	wlarc=
8888      else
8889	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8890	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8891      fi
8892      ;;
8893
8894    solaris*)
8895      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8896	ld_shlibs=no
8897	cat <<_LT_EOF 1>&2
8898
8899*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8900*** create shared libraries on Solaris systems.  Therefore, libtool
8901*** is disabling shared libraries support.  We urge you to upgrade GNU
8902*** binutils to release 2.9.1 or newer.  Another option is to modify
8903*** your PATH or compiler configuration so that the native linker is
8904*** used, and then restart.
8905
8906_LT_EOF
8907      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8908	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8909	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8910      else
8911	ld_shlibs=no
8912      fi
8913      ;;
8914
8915    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8916      case `$LD -v 2>&1` in
8917        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8918	ld_shlibs=no
8919	cat <<_LT_EOF 1>&2
8920
8921*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8922*** reliably create shared libraries on SCO systems.  Therefore, libtool
8923*** is disabling shared libraries support.  We urge you to upgrade GNU
8924*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8925*** your PATH or compiler configuration so that the native linker is
8926*** used, and then restart.
8927
8928_LT_EOF
8929	;;
8930	*)
8931	  # For security reasons, it is highly recommended that you always
8932	  # use absolute paths for naming shared libraries, and exclude the
8933	  # DT_RUNPATH tag from executables and libraries.  But doing so
8934	  # requires that you compile everything twice, which is a pain.
8935	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8936	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8937	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8938	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8939	  else
8940	    ld_shlibs=no
8941	  fi
8942	;;
8943      esac
8944      ;;
8945
8946    sunos4*)
8947      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8948      wlarc=
8949      hardcode_direct=yes
8950      hardcode_shlibpath_var=no
8951      ;;
8952
8953    *)
8954      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8955	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8956	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8957      else
8958	ld_shlibs=no
8959      fi
8960      ;;
8961    esac
8962
8963    if test "$ld_shlibs" = no; then
8964      runpath_var=
8965      hardcode_libdir_flag_spec=
8966      export_dynamic_flag_spec=
8967      whole_archive_flag_spec=
8968    fi
8969  else
8970    # PORTME fill in a description of your system's linker (not GNU ld)
8971    case $host_os in
8972    aix3*)
8973      allow_undefined_flag=unsupported
8974      always_export_symbols=yes
8975      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'
8976      # Note: this linker hardcodes the directories in LIBPATH if there
8977      # are no directories specified by -L.
8978      hardcode_minus_L=yes
8979      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8980	# Neither direct hardcoding nor static linking is supported with a
8981	# broken collect2.
8982	hardcode_direct=unsupported
8983      fi
8984      ;;
8985
8986    aix[4-9]*)
8987      if test "$host_cpu" = ia64; then
8988	# On IA64, the linker does run time linking by default, so we don't
8989	# have to do anything special.
8990	aix_use_runtimelinking=no
8991	exp_sym_flag='-Bexport'
8992	no_entry_flag=""
8993      else
8994	# If we're using GNU nm, then we don't want the "-C" option.
8995	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8996	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8997	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8998	else
8999	  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'
9000	fi
9001	aix_use_runtimelinking=no
9002
9003	# Test if we are trying to use run time linking or normal
9004	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9005	# need to do runtime linking.
9006	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9007	  for ld_flag in $LDFLAGS; do
9008	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9009	    aix_use_runtimelinking=yes
9010	    break
9011	  fi
9012	  done
9013	  ;;
9014	esac
9015
9016	exp_sym_flag='-bexport'
9017	no_entry_flag='-bnoentry'
9018      fi
9019
9020      # When large executables or shared objects are built, AIX ld can
9021      # have problems creating the table of contents.  If linking a library
9022      # or program results in "error TOC overflow" add -mminimal-toc to
9023      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9024      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9025
9026      archive_cmds=''
9027      hardcode_direct=yes
9028      hardcode_direct_absolute=yes
9029      hardcode_libdir_separator=':'
9030      link_all_deplibs=yes
9031      file_list_spec='${wl}-f,'
9032
9033      if test "$GCC" = yes; then
9034	case $host_os in aix4.[012]|aix4.[012].*)
9035	# We only want to do this on AIX 4.2 and lower, the check
9036	# below for broken collect2 doesn't work under 4.3+
9037	  collect2name=`${CC} -print-prog-name=collect2`
9038	  if test -f "$collect2name" &&
9039	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9040	  then
9041	  # We have reworked collect2
9042	  :
9043	  else
9044	  # We have old collect2
9045	  hardcode_direct=unsupported
9046	  # It fails to find uninstalled libraries when the uninstalled
9047	  # path is not listed in the libpath.  Setting hardcode_minus_L
9048	  # to unsupported forces relinking
9049	  hardcode_minus_L=yes
9050	  hardcode_libdir_flag_spec='-L$libdir'
9051	  hardcode_libdir_separator=
9052	  fi
9053	  ;;
9054	esac
9055	shared_flag='-shared'
9056	if test "$aix_use_runtimelinking" = yes; then
9057	  shared_flag="$shared_flag "'${wl}-G'
9058	fi
9059      else
9060	# not using gcc
9061	if test "$host_cpu" = ia64; then
9062	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9063	# chokes on -Wl,-G. The following line is correct:
9064	  shared_flag='-G'
9065	else
9066	  if test "$aix_use_runtimelinking" = yes; then
9067	    shared_flag='${wl}-G'
9068	  else
9069	    shared_flag='${wl}-bM:SRE'
9070	  fi
9071	fi
9072      fi
9073
9074      export_dynamic_flag_spec='${wl}-bexpall'
9075      # It seems that -bexpall does not export symbols beginning with
9076      # underscore (_), so it is better to generate a list of symbols to export.
9077      always_export_symbols=yes
9078      if test "$aix_use_runtimelinking" = yes; then
9079	# Warning - without using the other runtime loading flags (-brtl),
9080	# -berok will link without error, but may produce a broken library.
9081	allow_undefined_flag='-berok'
9082        # Determine the default libpath from the value encoded in an
9083        # empty executable.
9084        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085/* end confdefs.h.  */
9086
9087int
9088main ()
9089{
9090
9091  ;
9092  return 0;
9093}
9094_ACEOF
9095if ac_fn_c_try_link "$LINENO"; then :
9096
9097lt_aix_libpath_sed='
9098    /Import File Strings/,/^$/ {
9099	/^0/ {
9100	    s/^0  *\(.*\)$/\1/
9101	    p
9102	}
9103    }'
9104aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9105# Check for a 64-bit object if we didn't find anything.
9106if test -z "$aix_libpath"; then
9107  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9108fi
9109fi
9110rm -f core conftest.err conftest.$ac_objext \
9111    conftest$ac_exeext conftest.$ac_ext
9112if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9113
9114        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9115        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9116      else
9117	if test "$host_cpu" = ia64; then
9118	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9119	  allow_undefined_flag="-z nodefs"
9120	  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"
9121	else
9122	 # Determine the default libpath from the value encoded in an
9123	 # empty executable.
9124	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125/* end confdefs.h.  */
9126
9127int
9128main ()
9129{
9130
9131  ;
9132  return 0;
9133}
9134_ACEOF
9135if ac_fn_c_try_link "$LINENO"; then :
9136
9137lt_aix_libpath_sed='
9138    /Import File Strings/,/^$/ {
9139	/^0/ {
9140	    s/^0  *\(.*\)$/\1/
9141	    p
9142	}
9143    }'
9144aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9145# Check for a 64-bit object if we didn't find anything.
9146if test -z "$aix_libpath"; then
9147  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9148fi
9149fi
9150rm -f core conftest.err conftest.$ac_objext \
9151    conftest$ac_exeext conftest.$ac_ext
9152if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9153
9154	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9155	  # Warning - without using the other run time loading flags,
9156	  # -berok will link without error, but may produce a broken library.
9157	  no_undefined_flag=' ${wl}-bernotok'
9158	  allow_undefined_flag=' ${wl}-berok'
9159	  # Exported symbols can be pulled into shared objects from archives
9160	  whole_archive_flag_spec='$convenience'
9161	  archive_cmds_need_lc=yes
9162	  # This is similar to how AIX traditionally builds its shared libraries.
9163	  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'
9164	fi
9165      fi
9166      ;;
9167
9168    amigaos*)
9169      case $host_cpu in
9170      powerpc)
9171            # see comment about AmigaOS4 .so support
9172            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9173            archive_expsym_cmds=''
9174        ;;
9175      m68k)
9176            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)'
9177            hardcode_libdir_flag_spec='-L$libdir'
9178            hardcode_minus_L=yes
9179        ;;
9180      esac
9181      ;;
9182
9183    bsdi[45]*)
9184      export_dynamic_flag_spec=-rdynamic
9185      ;;
9186
9187    cygwin* | mingw* | pw32* | cegcc*)
9188      # When not using gcc, we currently assume that we are using
9189      # Microsoft Visual C++.
9190      # hardcode_libdir_flag_spec is actually meaningless, as there is
9191      # no search path for DLLs.
9192      hardcode_libdir_flag_spec=' '
9193      allow_undefined_flag=unsupported
9194      # Tell ltmain to make .lib files, not .a files.
9195      libext=lib
9196      # Tell ltmain to make .dll files, not .so files.
9197      shrext_cmds=".dll"
9198      # FIXME: Setting linknames here is a bad hack.
9199      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9200      # The linker will automatically build a .lib file if we build a DLL.
9201      old_archive_from_new_cmds='true'
9202      # FIXME: Should let the user specify the lib program.
9203      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9204      fix_srcfile_path='`cygpath -w "$srcfile"`'
9205      enable_shared_with_static_runtimes=yes
9206      ;;
9207
9208    darwin* | rhapsody*)
9209
9210
9211  archive_cmds_need_lc=no
9212  hardcode_direct=no
9213  hardcode_automatic=yes
9214  hardcode_shlibpath_var=unsupported
9215  whole_archive_flag_spec=''
9216  link_all_deplibs=yes
9217  allow_undefined_flag="$_lt_dar_allow_undefined"
9218  case $cc_basename in
9219     ifort*) _lt_dar_can_shared=yes ;;
9220     *) _lt_dar_can_shared=$GCC ;;
9221  esac
9222  if test "$_lt_dar_can_shared" = "yes"; then
9223    output_verbose_link_cmd=echo
9224    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9225    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9226    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}"
9227    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}"
9228
9229  else
9230  ld_shlibs=no
9231  fi
9232
9233      ;;
9234
9235    dgux*)
9236      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237      hardcode_libdir_flag_spec='-L$libdir'
9238      hardcode_shlibpath_var=no
9239      ;;
9240
9241    freebsd1*)
9242      ld_shlibs=no
9243      ;;
9244
9245    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9246    # support.  Future versions do this automatically, but an explicit c++rt0.o
9247    # does not break anything, and helps significantly (at the cost of a little
9248    # extra space).
9249    freebsd2.2*)
9250      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9251      hardcode_libdir_flag_spec='-R$libdir'
9252      hardcode_direct=yes
9253      hardcode_shlibpath_var=no
9254      ;;
9255
9256    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9257    freebsd2*)
9258      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9259      hardcode_direct=yes
9260      hardcode_minus_L=yes
9261      hardcode_shlibpath_var=no
9262      ;;
9263
9264    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9265    freebsd* | dragonfly*)
9266      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9267      hardcode_libdir_flag_spec='-R$libdir'
9268      hardcode_direct=yes
9269      hardcode_shlibpath_var=no
9270      ;;
9271
9272    hpux9*)
9273      if test "$GCC" = yes; then
9274	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'
9275      else
9276	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'
9277      fi
9278      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9279      hardcode_libdir_separator=:
9280      hardcode_direct=yes
9281
9282      # hardcode_minus_L: Not really in the search PATH,
9283      # but as the default location of the library.
9284      hardcode_minus_L=yes
9285      export_dynamic_flag_spec='${wl}-E'
9286      ;;
9287
9288    hpux10*)
9289      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9290	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9291      else
9292	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9293      fi
9294      if test "$with_gnu_ld" = no; then
9295	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9296	hardcode_libdir_flag_spec_ld='+b $libdir'
9297	hardcode_libdir_separator=:
9298	hardcode_direct=yes
9299	hardcode_direct_absolute=yes
9300	export_dynamic_flag_spec='${wl}-E'
9301	# hardcode_minus_L: Not really in the search PATH,
9302	# but as the default location of the library.
9303	hardcode_minus_L=yes
9304      fi
9305      ;;
9306
9307    hpux11*)
9308      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9309	case $host_cpu in
9310	hppa*64*)
9311	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9312	  ;;
9313	ia64*)
9314	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9315	  ;;
9316	*)
9317	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9318	  ;;
9319	esac
9320      else
9321	case $host_cpu in
9322	hppa*64*)
9323	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9324	  ;;
9325	ia64*)
9326	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9327	  ;;
9328	*)
9329	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9330	  ;;
9331	esac
9332      fi
9333      if test "$with_gnu_ld" = no; then
9334	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9335	hardcode_libdir_separator=:
9336
9337	case $host_cpu in
9338	hppa*64*|ia64*)
9339	  hardcode_direct=no
9340	  hardcode_shlibpath_var=no
9341	  ;;
9342	*)
9343	  hardcode_direct=yes
9344	  hardcode_direct_absolute=yes
9345	  export_dynamic_flag_spec='${wl}-E'
9346
9347	  # hardcode_minus_L: Not really in the search PATH,
9348	  # but as the default location of the library.
9349	  hardcode_minus_L=yes
9350	  ;;
9351	esac
9352      fi
9353      ;;
9354
9355    irix5* | irix6* | nonstopux*)
9356      if test "$GCC" = yes; then
9357	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9358	# Try to use the -exported_symbol ld option, if it does not
9359	# work, assume that -exports_file does not work either and
9360	# implicitly export all symbols.
9361        save_LDFLAGS="$LDFLAGS"
9362        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9363        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364/* end confdefs.h.  */
9365int foo(void) {}
9366_ACEOF
9367if ac_fn_c_try_link "$LINENO"; then :
9368  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9369
9370fi
9371rm -f core conftest.err conftest.$ac_objext \
9372    conftest$ac_exeext conftest.$ac_ext
9373        LDFLAGS="$save_LDFLAGS"
9374      else
9375	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9376	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9377      fi
9378      archive_cmds_need_lc='no'
9379      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9380      hardcode_libdir_separator=:
9381      inherit_rpath=yes
9382      link_all_deplibs=yes
9383      ;;
9384
9385    netbsd*)
9386      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9387	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9388      else
9389	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9390      fi
9391      hardcode_libdir_flag_spec='-R$libdir'
9392      hardcode_direct=yes
9393      hardcode_shlibpath_var=no
9394      ;;
9395
9396    newsos6)
9397      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9398      hardcode_direct=yes
9399      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9400      hardcode_libdir_separator=:
9401      hardcode_shlibpath_var=no
9402      ;;
9403
9404    *nto* | *qnx*)
9405      ;;
9406
9407    openbsd*)
9408      if test -f /usr/libexec/ld.so; then
9409	hardcode_direct=yes
9410	hardcode_shlibpath_var=no
9411	hardcode_direct_absolute=yes
9412	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9413	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9414	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9415	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9416	  export_dynamic_flag_spec='${wl}-E'
9417	else
9418	  case $host_os in
9419	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9420	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9421	     hardcode_libdir_flag_spec='-R$libdir'
9422	     ;;
9423	   *)
9424	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9425	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9426	     ;;
9427	  esac
9428	fi
9429      else
9430	ld_shlibs=no
9431      fi
9432      ;;
9433
9434    os2*)
9435      hardcode_libdir_flag_spec='-L$libdir'
9436      hardcode_minus_L=yes
9437      allow_undefined_flag=unsupported
9438      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'
9439      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9440      ;;
9441
9442    osf3*)
9443      if test "$GCC" = yes; then
9444	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9445	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9446      else
9447	allow_undefined_flag=' -expect_unresolved \*'
9448	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9449      fi
9450      archive_cmds_need_lc='no'
9451      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9452      hardcode_libdir_separator=:
9453      ;;
9454
9455    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9456      if test "$GCC" = yes; then
9457	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9458	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9459	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9460      else
9461	allow_undefined_flag=' -expect_unresolved \*'
9462	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9463	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~
9464	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9465
9466	# Both c and cxx compiler support -rpath directly
9467	hardcode_libdir_flag_spec='-rpath $libdir'
9468      fi
9469      archive_cmds_need_lc='no'
9470      hardcode_libdir_separator=:
9471      ;;
9472
9473    solaris*)
9474      no_undefined_flag=' -z defs'
9475      if test "$GCC" = yes; then
9476	wlarc='${wl}'
9477	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9478	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9479	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9480      else
9481	case `$CC -V 2>&1` in
9482	*"Compilers 5.0"*)
9483	  wlarc=''
9484	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9485	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9486	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9487	  ;;
9488	*)
9489	  wlarc='${wl}'
9490	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9491	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9492	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9493	  ;;
9494	esac
9495      fi
9496      hardcode_libdir_flag_spec='-R$libdir'
9497      hardcode_shlibpath_var=no
9498      case $host_os in
9499      solaris2.[0-5] | solaris2.[0-5].*) ;;
9500      *)
9501	# The compiler driver will combine and reorder linker options,
9502	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9503	# but is careful enough not to reorder.
9504	# Supported since Solaris 2.6 (maybe 2.5.1?)
9505	if test "$GCC" = yes; then
9506	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9507	else
9508	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9509	fi
9510	;;
9511      esac
9512      link_all_deplibs=yes
9513      ;;
9514
9515    sunos4*)
9516      if test "x$host_vendor" = xsequent; then
9517	# Use $CC to link under sequent, because it throws in some extra .o
9518	# files that make .init and .fini sections work.
9519	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9520      else
9521	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9522      fi
9523      hardcode_libdir_flag_spec='-L$libdir'
9524      hardcode_direct=yes
9525      hardcode_minus_L=yes
9526      hardcode_shlibpath_var=no
9527      ;;
9528
9529    sysv4)
9530      case $host_vendor in
9531	sni)
9532	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9533	  hardcode_direct=yes # is this really true???
9534	;;
9535	siemens)
9536	  ## LD is ld it makes a PLAMLIB
9537	  ## CC just makes a GrossModule.
9538	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9539	  reload_cmds='$CC -r -o $output$reload_objs'
9540	  hardcode_direct=no
9541        ;;
9542	motorola)
9543	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9544	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9545	;;
9546      esac
9547      runpath_var='LD_RUN_PATH'
9548      hardcode_shlibpath_var=no
9549      ;;
9550
9551    sysv4.3*)
9552      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9553      hardcode_shlibpath_var=no
9554      export_dynamic_flag_spec='-Bexport'
9555      ;;
9556
9557    sysv4*MP*)
9558      if test -d /usr/nec; then
9559	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9560	hardcode_shlibpath_var=no
9561	runpath_var=LD_RUN_PATH
9562	hardcode_runpath_var=yes
9563	ld_shlibs=yes
9564      fi
9565      ;;
9566
9567    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9568      no_undefined_flag='${wl}-z,text'
9569      archive_cmds_need_lc=no
9570      hardcode_shlibpath_var=no
9571      runpath_var='LD_RUN_PATH'
9572
9573      if test "$GCC" = yes; then
9574	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9575	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9576      else
9577	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9578	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9579      fi
9580      ;;
9581
9582    sysv5* | sco3.2v5* | sco5v6*)
9583      # Note: We can NOT use -z defs as we might desire, because we do not
9584      # link with -lc, and that would cause any symbols used from libc to
9585      # always be unresolved, which means just about no library would
9586      # ever link correctly.  If we're not using GNU ld we use -z text
9587      # though, which does catch some bad symbols but isn't as heavy-handed
9588      # as -z defs.
9589      no_undefined_flag='${wl}-z,text'
9590      allow_undefined_flag='${wl}-z,nodefs'
9591      archive_cmds_need_lc=no
9592      hardcode_shlibpath_var=no
9593      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9594      hardcode_libdir_separator=':'
9595      link_all_deplibs=yes
9596      export_dynamic_flag_spec='${wl}-Bexport'
9597      runpath_var='LD_RUN_PATH'
9598
9599      if test "$GCC" = yes; then
9600	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9601	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9602      else
9603	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9604	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9605      fi
9606      ;;
9607
9608    uts4*)
9609      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9610      hardcode_libdir_flag_spec='-L$libdir'
9611      hardcode_shlibpath_var=no
9612      ;;
9613
9614    *)
9615      ld_shlibs=no
9616      ;;
9617    esac
9618
9619    if test x$host_vendor = xsni; then
9620      case $host in
9621      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9622	export_dynamic_flag_spec='${wl}-Blargedynsym'
9623	;;
9624      esac
9625    fi
9626  fi
9627
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9629$as_echo "$ld_shlibs" >&6; }
9630test "$ld_shlibs" = no && can_build_shared=no
9631
9632with_gnu_ld=$with_gnu_ld
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648#
9649# Do we need to explicitly link libc?
9650#
9651case "x$archive_cmds_need_lc" in
9652x|xyes)
9653  # Assume -lc should be added
9654  archive_cmds_need_lc=yes
9655
9656  if test "$enable_shared" = yes && test "$GCC" = yes; then
9657    case $archive_cmds in
9658    *'~'*)
9659      # FIXME: we may have to deal with multi-command sequences.
9660      ;;
9661    '$CC '*)
9662      # Test whether the compiler implicitly links with -lc since on some
9663      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9664      # to ld, don't add -lc before -lgcc.
9665      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9666$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9667      $RM conftest*
9668      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9669
9670      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9671  (eval $ac_compile) 2>&5
9672  ac_status=$?
9673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9674  test $ac_status = 0; } 2>conftest.err; then
9675        soname=conftest
9676        lib=conftest
9677        libobjs=conftest.$ac_objext
9678        deplibs=
9679        wl=$lt_prog_compiler_wl
9680	pic_flag=$lt_prog_compiler_pic
9681        compiler_flags=-v
9682        linker_flags=-v
9683        verstring=
9684        output_objdir=.
9685        libname=conftest
9686        lt_save_allow_undefined_flag=$allow_undefined_flag
9687        allow_undefined_flag=
9688        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9689  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9690  ac_status=$?
9691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9692  test $ac_status = 0; }
9693        then
9694	  archive_cmds_need_lc=no
9695        else
9696	  archive_cmds_need_lc=yes
9697        fi
9698        allow_undefined_flag=$lt_save_allow_undefined_flag
9699      else
9700        cat conftest.err 1>&5
9701      fi
9702      $RM conftest*
9703      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9704$as_echo "$archive_cmds_need_lc" >&6; }
9705      ;;
9706    esac
9707  fi
9708  ;;
9709esac
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
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9868$as_echo_n "checking dynamic linker characteristics... " >&6; }
9869
9870if test "$GCC" = yes; then
9871  case $host_os in
9872    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9873    *) lt_awk_arg="/^libraries:/" ;;
9874  esac
9875  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9876  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9877    # if the path contains ";" then we assume it to be the separator
9878    # otherwise default to the standard path separator (i.e. ":") - it is
9879    # assumed that no part of a normal pathname contains ";" but that should
9880    # okay in the real world where ";" in dirpaths is itself problematic.
9881    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9882  else
9883    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9884  fi
9885  # Ok, now we have the path, separated by spaces, we can step through it
9886  # and add multilib dir if necessary.
9887  lt_tmp_lt_search_path_spec=
9888  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9889  for lt_sys_path in $lt_search_path_spec; do
9890    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9891      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9892    else
9893      test -d "$lt_sys_path" && \
9894	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9895    fi
9896  done
9897  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9898BEGIN {RS=" "; FS="/|\n";} {
9899  lt_foo="";
9900  lt_count=0;
9901  for (lt_i = NF; lt_i > 0; lt_i--) {
9902    if ($lt_i != "" && $lt_i != ".") {
9903      if ($lt_i == "..") {
9904        lt_count++;
9905      } else {
9906        if (lt_count == 0) {
9907          lt_foo="/" $lt_i lt_foo;
9908        } else {
9909          lt_count--;
9910        }
9911      }
9912    }
9913  }
9914  if (lt_foo != "") { lt_freq[lt_foo]++; }
9915  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9916}'`
9917  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9918else
9919  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9920fi
9921library_names_spec=
9922libname_spec='lib$name'
9923soname_spec=
9924shrext_cmds=".so"
9925postinstall_cmds=
9926postuninstall_cmds=
9927finish_cmds=
9928finish_eval=
9929shlibpath_var=
9930shlibpath_overrides_runpath=unknown
9931version_type=none
9932dynamic_linker="$host_os ld.so"
9933sys_lib_dlsearch_path_spec="/lib /usr/lib"
9934need_lib_prefix=unknown
9935hardcode_into_libs=no
9936
9937# when you set need_version to no, make sure it does not cause -set_version
9938# flags to be left without arguments
9939need_version=unknown
9940
9941case $host_os in
9942aix3*)
9943  version_type=linux
9944  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9945  shlibpath_var=LIBPATH
9946
9947  # AIX 3 has no versioning support, so we append a major version to the name.
9948  soname_spec='${libname}${release}${shared_ext}$major'
9949  ;;
9950
9951aix[4-9]*)
9952  version_type=linux
9953  need_lib_prefix=no
9954  need_version=no
9955  hardcode_into_libs=yes
9956  if test "$host_cpu" = ia64; then
9957    # AIX 5 supports IA64
9958    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9959    shlibpath_var=LD_LIBRARY_PATH
9960  else
9961    # With GCC up to 2.95.x, collect2 would create an import file
9962    # for dependence libraries.  The import file would start with
9963    # the line `#! .'.  This would cause the generated library to
9964    # depend on `.', always an invalid library.  This was fixed in
9965    # development snapshots of GCC prior to 3.0.
9966    case $host_os in
9967      aix4 | aix4.[01] | aix4.[01].*)
9968      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9969	   echo ' yes '
9970	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9971	:
9972      else
9973	can_build_shared=no
9974      fi
9975      ;;
9976    esac
9977    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9978    # soname into executable. Probably we can add versioning support to
9979    # collect2, so additional links can be useful in future.
9980    if test "$aix_use_runtimelinking" = yes; then
9981      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9982      # instead of lib<name>.a to let people know that these are not
9983      # typical AIX shared libraries.
9984      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9985    else
9986      # We preserve .a as extension for shared libraries through AIX4.2
9987      # and later when we are not doing run time linking.
9988      library_names_spec='${libname}${release}.a $libname.a'
9989      soname_spec='${libname}${release}${shared_ext}$major'
9990    fi
9991    shlibpath_var=LIBPATH
9992  fi
9993  ;;
9994
9995amigaos*)
9996  case $host_cpu in
9997  powerpc)
9998    # Since July 2007 AmigaOS4 officially supports .so libraries.
9999    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10000    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001    ;;
10002  m68k)
10003    library_names_spec='$libname.ixlibrary $libname.a'
10004    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10005    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10006    ;;
10007  esac
10008  ;;
10009
10010beos*)
10011  library_names_spec='${libname}${shared_ext}'
10012  dynamic_linker="$host_os ld.so"
10013  shlibpath_var=LIBRARY_PATH
10014  ;;
10015
10016bsdi[45]*)
10017  version_type=linux
10018  need_version=no
10019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020  soname_spec='${libname}${release}${shared_ext}$major'
10021  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10022  shlibpath_var=LD_LIBRARY_PATH
10023  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10024  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10025  # the default ld.so.conf also contains /usr/contrib/lib and
10026  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10027  # libtool to hard-code these into programs
10028  ;;
10029
10030cygwin* | mingw* | pw32* | cegcc*)
10031  version_type=windows
10032  shrext_cmds=".dll"
10033  need_version=no
10034  need_lib_prefix=no
10035
10036  case $GCC,$host_os in
10037  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10038    library_names_spec='$libname.dll.a'
10039    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10040    postinstall_cmds='base_file=`basename \${file}`~
10041      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10042      dldir=$destdir/`dirname \$dlpath`~
10043      test -d \$dldir || mkdir -p \$dldir~
10044      $install_prog $dir/$dlname \$dldir/$dlname~
10045      chmod a+x \$dldir/$dlname~
10046      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10047        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10048      fi'
10049    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10050      dlpath=$dir/\$dldll~
10051       $RM \$dlpath'
10052    shlibpath_overrides_runpath=yes
10053
10054    case $host_os in
10055    cygwin*)
10056      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10057      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10058      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10059      ;;
10060    mingw* | cegcc*)
10061      # MinGW DLLs use traditional 'lib' prefix
10062      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10063      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10064      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10065        # It is most probably a Windows format PATH printed by
10066        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10067        # path with ; separators, and with drive letters. We can handle the
10068        # drive letters (cygwin fileutils understands them), so leave them,
10069        # especially as we might pass files found there to a mingw objdump,
10070        # which wouldn't understand a cygwinified path. Ahh.
10071        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10072      else
10073        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10074      fi
10075      ;;
10076    pw32*)
10077      # pw32 DLLs use 'pw' prefix rather than 'lib'
10078      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10079      ;;
10080    esac
10081    ;;
10082
10083  *)
10084    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10085    ;;
10086  esac
10087  dynamic_linker='Win32 ld.exe'
10088  # FIXME: first we should search . and the directory the executable is in
10089  shlibpath_var=PATH
10090  ;;
10091
10092darwin* | rhapsody*)
10093  dynamic_linker="$host_os dyld"
10094  version_type=darwin
10095  need_lib_prefix=no
10096  need_version=no
10097  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10098  soname_spec='${libname}${release}${major}$shared_ext'
10099  shlibpath_overrides_runpath=yes
10100  shlibpath_var=DYLD_LIBRARY_PATH
10101  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10102
10103  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10104  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10105  ;;
10106
10107dgux*)
10108  version_type=linux
10109  need_lib_prefix=no
10110  need_version=no
10111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10112  soname_spec='${libname}${release}${shared_ext}$major'
10113  shlibpath_var=LD_LIBRARY_PATH
10114  ;;
10115
10116freebsd1*)
10117  dynamic_linker=no
10118  ;;
10119
10120freebsd* | dragonfly*)
10121  # DragonFly does not have aout.  When/if they implement a new
10122  # versioning mechanism, adjust this.
10123  if test -x /usr/bin/objformat; then
10124    objformat=`/usr/bin/objformat`
10125  else
10126    case $host_os in
10127    freebsd[123]*) objformat=aout ;;
10128    *) objformat=elf ;;
10129    esac
10130  fi
10131  version_type=freebsd-$objformat
10132  case $version_type in
10133    freebsd-elf*)
10134      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10135      need_version=no
10136      need_lib_prefix=no
10137      ;;
10138    freebsd-*)
10139      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10140      need_version=yes
10141      ;;
10142  esac
10143  shlibpath_var=LD_LIBRARY_PATH
10144  case $host_os in
10145  freebsd2*)
10146    shlibpath_overrides_runpath=yes
10147    ;;
10148  freebsd3.[01]* | freebsdelf3.[01]*)
10149    shlibpath_overrides_runpath=yes
10150    hardcode_into_libs=yes
10151    ;;
10152  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10153  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10154    shlibpath_overrides_runpath=no
10155    hardcode_into_libs=yes
10156    ;;
10157  *) # from 4.6 on, and DragonFly
10158    shlibpath_overrides_runpath=yes
10159    hardcode_into_libs=yes
10160    ;;
10161  esac
10162  ;;
10163
10164gnu*)
10165  version_type=linux
10166  need_lib_prefix=no
10167  need_version=no
10168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10169  soname_spec='${libname}${release}${shared_ext}$major'
10170  shlibpath_var=LD_LIBRARY_PATH
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  ;;
10219
10220interix[3-9]*)
10221  version_type=linux
10222  need_lib_prefix=no
10223  need_version=no
10224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10225  soname_spec='${libname}${release}${shared_ext}$major'
10226  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10227  shlibpath_var=LD_LIBRARY_PATH
10228  shlibpath_overrides_runpath=no
10229  hardcode_into_libs=yes
10230  ;;
10231
10232irix5* | irix6* | nonstopux*)
10233  case $host_os in
10234    nonstopux*) version_type=nonstopux ;;
10235    *)
10236	if test "$lt_cv_prog_gnu_ld" = yes; then
10237		version_type=linux
10238	else
10239		version_type=irix
10240	fi ;;
10241  esac
10242  need_lib_prefix=no
10243  need_version=no
10244  soname_spec='${libname}${release}${shared_ext}$major'
10245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10246  case $host_os in
10247  irix5* | nonstopux*)
10248    libsuff= shlibsuff=
10249    ;;
10250  *)
10251    case $LD in # libtool.m4 will add one of these switches to LD
10252    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10253      libsuff= shlibsuff= libmagic=32-bit;;
10254    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10255      libsuff=32 shlibsuff=N32 libmagic=N32;;
10256    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10257      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10258    *) libsuff= shlibsuff= libmagic=never-match;;
10259    esac
10260    ;;
10261  esac
10262  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10263  shlibpath_overrides_runpath=no
10264  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10265  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10266  hardcode_into_libs=yes
10267  ;;
10268
10269# No shared lib support for Linux oldld, aout, or coff.
10270linux*oldld* | linux*aout* | linux*coff*)
10271  dynamic_linker=no
10272  ;;
10273
10274# This must be Linux ELF.
10275linux* | k*bsd*-gnu)
10276  version_type=linux
10277  need_lib_prefix=no
10278  need_version=no
10279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280  soname_spec='${libname}${release}${shared_ext}$major'
10281  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10282  shlibpath_var=LD_LIBRARY_PATH
10283  shlibpath_overrides_runpath=no
10284  # Some binutils ld are patched to set DT_RUNPATH
10285  save_LDFLAGS=$LDFLAGS
10286  save_libdir=$libdir
10287  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10288       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290/* end confdefs.h.  */
10291
10292int
10293main ()
10294{
10295
10296  ;
10297  return 0;
10298}
10299_ACEOF
10300if ac_fn_c_try_link "$LINENO"; then :
10301  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10302  shlibpath_overrides_runpath=yes
10303fi
10304fi
10305rm -f core conftest.err conftest.$ac_objext \
10306    conftest$ac_exeext conftest.$ac_ext
10307  LDFLAGS=$save_LDFLAGS
10308  libdir=$save_libdir
10309
10310  # This implies no fast_install, which is unacceptable.
10311  # Some rework will be needed to allow for fast_install
10312  # before this can be enabled.
10313  hardcode_into_libs=yes
10314
10315  # Add ABI-specific directories to the system library path.
10316  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10317
10318  # Append ld.so.conf contents to the search path
10319  if test -f /etc/ld.so.conf; then
10320    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;/^$/d' | tr '\n' ' '`
10321    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10322  fi
10323
10324  # We used to test for /lib/ld.so.1 and disable shared libraries on
10325  # powerpc, because MkLinux only supported shared libraries with the
10326  # GNU dynamic linker.  Since this was broken with cross compilers,
10327  # most powerpc-linux boxes support dynamic linking these days and
10328  # people can always --disable-shared, the test was removed, and we
10329  # assume the GNU/Linux dynamic linker is in use.
10330  dynamic_linker='GNU/Linux ld.so'
10331  ;;
10332
10333netbsd*)
10334  version_type=sunos
10335  need_lib_prefix=no
10336  need_version=no
10337  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10338    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10339    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10340    dynamic_linker='NetBSD (a.out) ld.so'
10341  else
10342    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10343    soname_spec='${libname}${release}${shared_ext}$major'
10344    dynamic_linker='NetBSD ld.elf_so'
10345  fi
10346  shlibpath_var=LD_LIBRARY_PATH
10347  shlibpath_overrides_runpath=yes
10348  hardcode_into_libs=yes
10349  ;;
10350
10351newsos6)
10352  version_type=linux
10353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354  shlibpath_var=LD_LIBRARY_PATH
10355  shlibpath_overrides_runpath=yes
10356  ;;
10357
10358*nto* | *qnx*)
10359  version_type=qnx
10360  need_lib_prefix=no
10361  need_version=no
10362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363  soname_spec='${libname}${release}${shared_ext}$major'
10364  shlibpath_var=LD_LIBRARY_PATH
10365  shlibpath_overrides_runpath=no
10366  hardcode_into_libs=yes
10367  dynamic_linker='ldqnx.so'
10368  ;;
10369
10370openbsd*)
10371  version_type=sunos
10372  sys_lib_dlsearch_path_spec="/usr/lib"
10373  need_lib_prefix=no
10374  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10375  case $host_os in
10376    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10377    *)				need_version=no  ;;
10378  esac
10379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10380  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10381  shlibpath_var=LD_LIBRARY_PATH
10382  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10383    case $host_os in
10384      openbsd2.[89] | openbsd2.[89].*)
10385	shlibpath_overrides_runpath=no
10386	;;
10387      *)
10388	shlibpath_overrides_runpath=yes
10389	;;
10390      esac
10391  else
10392    shlibpath_overrides_runpath=yes
10393  fi
10394  ;;
10395
10396os2*)
10397  libname_spec='$name'
10398  shrext_cmds=".dll"
10399  need_lib_prefix=no
10400  library_names_spec='$libname${shared_ext} $libname.a'
10401  dynamic_linker='OS/2 ld.exe'
10402  shlibpath_var=LIBPATH
10403  ;;
10404
10405osf3* | osf4* | osf5*)
10406  version_type=osf
10407  need_lib_prefix=no
10408  need_version=no
10409  soname_spec='${libname}${release}${shared_ext}$major'
10410  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10411  shlibpath_var=LD_LIBRARY_PATH
10412  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10413  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10414  ;;
10415
10416rdos*)
10417  dynamic_linker=no
10418  ;;
10419
10420solaris*)
10421  version_type=linux
10422  need_lib_prefix=no
10423  need_version=no
10424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425  soname_spec='${libname}${release}${shared_ext}$major'
10426  shlibpath_var=LD_LIBRARY_PATH
10427  shlibpath_overrides_runpath=yes
10428  hardcode_into_libs=yes
10429  # ldd complains unless libraries are executable
10430  postinstall_cmds='chmod +x $lib'
10431  ;;
10432
10433sunos4*)
10434  version_type=sunos
10435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10436  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10437  shlibpath_var=LD_LIBRARY_PATH
10438  shlibpath_overrides_runpath=yes
10439  if test "$with_gnu_ld" = yes; then
10440    need_lib_prefix=no
10441  fi
10442  need_version=yes
10443  ;;
10444
10445sysv4 | sysv4.3*)
10446  version_type=linux
10447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448  soname_spec='${libname}${release}${shared_ext}$major'
10449  shlibpath_var=LD_LIBRARY_PATH
10450  case $host_vendor in
10451    sni)
10452      shlibpath_overrides_runpath=no
10453      need_lib_prefix=no
10454      runpath_var=LD_RUN_PATH
10455      ;;
10456    siemens)
10457      need_lib_prefix=no
10458      ;;
10459    motorola)
10460      need_lib_prefix=no
10461      need_version=no
10462      shlibpath_overrides_runpath=no
10463      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10464      ;;
10465  esac
10466  ;;
10467
10468sysv4*MP*)
10469  if test -d /usr/nec ;then
10470    version_type=linux
10471    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10472    soname_spec='$libname${shared_ext}.$major'
10473    shlibpath_var=LD_LIBRARY_PATH
10474  fi
10475  ;;
10476
10477sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10478  version_type=freebsd-elf
10479  need_lib_prefix=no
10480  need_version=no
10481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10482  soname_spec='${libname}${release}${shared_ext}$major'
10483  shlibpath_var=LD_LIBRARY_PATH
10484  shlibpath_overrides_runpath=yes
10485  hardcode_into_libs=yes
10486  if test "$with_gnu_ld" = yes; then
10487    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10488  else
10489    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10490    case $host_os in
10491      sco3.2v5*)
10492        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10493	;;
10494    esac
10495  fi
10496  sys_lib_dlsearch_path_spec='/usr/lib'
10497  ;;
10498
10499tpf*)
10500  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10501  version_type=linux
10502  need_lib_prefix=no
10503  need_version=no
10504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10505  shlibpath_var=LD_LIBRARY_PATH
10506  shlibpath_overrides_runpath=no
10507  hardcode_into_libs=yes
10508  ;;
10509
10510uts4*)
10511  version_type=linux
10512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513  soname_spec='${libname}${release}${shared_ext}$major'
10514  shlibpath_var=LD_LIBRARY_PATH
10515  ;;
10516
10517*)
10518  dynamic_linker=no
10519  ;;
10520esac
10521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10522$as_echo "$dynamic_linker" >&6; }
10523test "$dynamic_linker" = no && can_build_shared=no
10524
10525variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10526if test "$GCC" = yes; then
10527  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10528fi
10529
10530if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10531  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10532fi
10533if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10534  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10535fi
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10624$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10625hardcode_action=
10626if test -n "$hardcode_libdir_flag_spec" ||
10627   test -n "$runpath_var" ||
10628   test "X$hardcode_automatic" = "Xyes" ; then
10629
10630  # We can hardcode non-existent directories.
10631  if test "$hardcode_direct" != no &&
10632     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10633     # have to relink, otherwise we might link with an installed library
10634     # when we should be linking with a yet-to-be-installed one
10635     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10636     test "$hardcode_minus_L" != no; then
10637    # Linking always hardcodes the temporary library directory.
10638    hardcode_action=relink
10639  else
10640    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10641    hardcode_action=immediate
10642  fi
10643else
10644  # We cannot hardcode anything, or else we can only hardcode existing
10645  # directories.
10646  hardcode_action=unsupported
10647fi
10648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10649$as_echo "$hardcode_action" >&6; }
10650
10651if test "$hardcode_action" = relink ||
10652   test "$inherit_rpath" = yes; then
10653  # Fast installation is not supported
10654  enable_fast_install=no
10655elif test "$shlibpath_overrides_runpath" = yes ||
10656     test "$enable_shared" = no; then
10657  # Fast installation is not necessary
10658  enable_fast_install=needless
10659fi
10660
10661
10662
10663
10664
10665
10666  if test "x$enable_dlopen" != xyes; then
10667  enable_dlopen=unknown
10668  enable_dlopen_self=unknown
10669  enable_dlopen_self_static=unknown
10670else
10671  lt_cv_dlopen=no
10672  lt_cv_dlopen_libs=
10673
10674  case $host_os in
10675  beos*)
10676    lt_cv_dlopen="load_add_on"
10677    lt_cv_dlopen_libs=
10678    lt_cv_dlopen_self=yes
10679    ;;
10680
10681  mingw* | pw32* | cegcc*)
10682    lt_cv_dlopen="LoadLibrary"
10683    lt_cv_dlopen_libs=
10684    ;;
10685
10686  cygwin*)
10687    lt_cv_dlopen="dlopen"
10688    lt_cv_dlopen_libs=
10689    ;;
10690
10691  darwin*)
10692  # if libdl is installed we need to link against it
10693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10694$as_echo_n "checking for dlopen in -ldl... " >&6; }
10695if ${ac_cv_lib_dl_dlopen+:} false; then :
10696  $as_echo_n "(cached) " >&6
10697else
10698  ac_check_lib_save_LIBS=$LIBS
10699LIBS="-ldl  $LIBS"
10700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701/* end confdefs.h.  */
10702
10703/* Override any GCC internal prototype to avoid an error.
10704   Use char because int might match the return type of a GCC
10705   builtin and then its argument prototype would still apply.  */
10706#ifdef __cplusplus
10707extern "C"
10708#endif
10709char dlopen ();
10710int
10711main ()
10712{
10713return dlopen ();
10714  ;
10715  return 0;
10716}
10717_ACEOF
10718if ac_fn_c_try_link "$LINENO"; then :
10719  ac_cv_lib_dl_dlopen=yes
10720else
10721  ac_cv_lib_dl_dlopen=no
10722fi
10723rm -f core conftest.err conftest.$ac_objext \
10724    conftest$ac_exeext conftest.$ac_ext
10725LIBS=$ac_check_lib_save_LIBS
10726fi
10727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10728$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10729if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10730  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10731else
10732
10733    lt_cv_dlopen="dyld"
10734    lt_cv_dlopen_libs=
10735    lt_cv_dlopen_self=yes
10736
10737fi
10738
10739    ;;
10740
10741  *)
10742    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10743if test "x$ac_cv_func_shl_load" = xyes; then :
10744  lt_cv_dlopen="shl_load"
10745else
10746  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10747$as_echo_n "checking for shl_load in -ldld... " >&6; }
10748if ${ac_cv_lib_dld_shl_load+:} false; then :
10749  $as_echo_n "(cached) " >&6
10750else
10751  ac_check_lib_save_LIBS=$LIBS
10752LIBS="-ldld  $LIBS"
10753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754/* end confdefs.h.  */
10755
10756/* Override any GCC internal prototype to avoid an error.
10757   Use char because int might match the return type of a GCC
10758   builtin and then its argument prototype would still apply.  */
10759#ifdef __cplusplus
10760extern "C"
10761#endif
10762char shl_load ();
10763int
10764main ()
10765{
10766return shl_load ();
10767  ;
10768  return 0;
10769}
10770_ACEOF
10771if ac_fn_c_try_link "$LINENO"; then :
10772  ac_cv_lib_dld_shl_load=yes
10773else
10774  ac_cv_lib_dld_shl_load=no
10775fi
10776rm -f core conftest.err conftest.$ac_objext \
10777    conftest$ac_exeext conftest.$ac_ext
10778LIBS=$ac_check_lib_save_LIBS
10779fi
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10781$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10782if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10783  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10784else
10785  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10786if test "x$ac_cv_func_dlopen" = xyes; then :
10787  lt_cv_dlopen="dlopen"
10788else
10789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10790$as_echo_n "checking for dlopen in -ldl... " >&6; }
10791if ${ac_cv_lib_dl_dlopen+:} false; then :
10792  $as_echo_n "(cached) " >&6
10793else
10794  ac_check_lib_save_LIBS=$LIBS
10795LIBS="-ldl  $LIBS"
10796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797/* end confdefs.h.  */
10798
10799/* Override any GCC internal prototype to avoid an error.
10800   Use char because int might match the return type of a GCC
10801   builtin and then its argument prototype would still apply.  */
10802#ifdef __cplusplus
10803extern "C"
10804#endif
10805char dlopen ();
10806int
10807main ()
10808{
10809return dlopen ();
10810  ;
10811  return 0;
10812}
10813_ACEOF
10814if ac_fn_c_try_link "$LINENO"; then :
10815  ac_cv_lib_dl_dlopen=yes
10816else
10817  ac_cv_lib_dl_dlopen=no
10818fi
10819rm -f core conftest.err conftest.$ac_objext \
10820    conftest$ac_exeext conftest.$ac_ext
10821LIBS=$ac_check_lib_save_LIBS
10822fi
10823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10824$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10825if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10826  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10827else
10828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10829$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10830if ${ac_cv_lib_svld_dlopen+:} false; then :
10831  $as_echo_n "(cached) " >&6
10832else
10833  ac_check_lib_save_LIBS=$LIBS
10834LIBS="-lsvld  $LIBS"
10835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836/* end confdefs.h.  */
10837
10838/* Override any GCC internal prototype to avoid an error.
10839   Use char because int might match the return type of a GCC
10840   builtin and then its argument prototype would still apply.  */
10841#ifdef __cplusplus
10842extern "C"
10843#endif
10844char dlopen ();
10845int
10846main ()
10847{
10848return dlopen ();
10849  ;
10850  return 0;
10851}
10852_ACEOF
10853if ac_fn_c_try_link "$LINENO"; then :
10854  ac_cv_lib_svld_dlopen=yes
10855else
10856  ac_cv_lib_svld_dlopen=no
10857fi
10858rm -f core conftest.err conftest.$ac_objext \
10859    conftest$ac_exeext conftest.$ac_ext
10860LIBS=$ac_check_lib_save_LIBS
10861fi
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10863$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10864if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10865  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10866else
10867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10868$as_echo_n "checking for dld_link in -ldld... " >&6; }
10869if ${ac_cv_lib_dld_dld_link+:} false; then :
10870  $as_echo_n "(cached) " >&6
10871else
10872  ac_check_lib_save_LIBS=$LIBS
10873LIBS="-ldld  $LIBS"
10874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875/* end confdefs.h.  */
10876
10877/* Override any GCC internal prototype to avoid an error.
10878   Use char because int might match the return type of a GCC
10879   builtin and then its argument prototype would still apply.  */
10880#ifdef __cplusplus
10881extern "C"
10882#endif
10883char dld_link ();
10884int
10885main ()
10886{
10887return dld_link ();
10888  ;
10889  return 0;
10890}
10891_ACEOF
10892if ac_fn_c_try_link "$LINENO"; then :
10893  ac_cv_lib_dld_dld_link=yes
10894else
10895  ac_cv_lib_dld_dld_link=no
10896fi
10897rm -f core conftest.err conftest.$ac_objext \
10898    conftest$ac_exeext conftest.$ac_ext
10899LIBS=$ac_check_lib_save_LIBS
10900fi
10901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10902$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10903if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10904  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10905fi
10906
10907
10908fi
10909
10910
10911fi
10912
10913
10914fi
10915
10916
10917fi
10918
10919
10920fi
10921
10922    ;;
10923  esac
10924
10925  if test "x$lt_cv_dlopen" != xno; then
10926    enable_dlopen=yes
10927  else
10928    enable_dlopen=no
10929  fi
10930
10931  case $lt_cv_dlopen in
10932  dlopen)
10933    save_CPPFLAGS="$CPPFLAGS"
10934    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10935
10936    save_LDFLAGS="$LDFLAGS"
10937    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10938
10939    save_LIBS="$LIBS"
10940    LIBS="$lt_cv_dlopen_libs $LIBS"
10941
10942    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10943$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10944if ${lt_cv_dlopen_self+:} false; then :
10945  $as_echo_n "(cached) " >&6
10946else
10947  	  if test "$cross_compiling" = yes; then :
10948  lt_cv_dlopen_self=cross
10949else
10950  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10951  lt_status=$lt_dlunknown
10952  cat > conftest.$ac_ext <<_LT_EOF
10953#line 10953 "configure"
10954#include "confdefs.h"
10955
10956#if HAVE_DLFCN_H
10957#include <dlfcn.h>
10958#endif
10959
10960#include <stdio.h>
10961
10962#ifdef RTLD_GLOBAL
10963#  define LT_DLGLOBAL		RTLD_GLOBAL
10964#else
10965#  ifdef DL_GLOBAL
10966#    define LT_DLGLOBAL		DL_GLOBAL
10967#  else
10968#    define LT_DLGLOBAL		0
10969#  endif
10970#endif
10971
10972/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10973   find out it does not work in some platform. */
10974#ifndef LT_DLLAZY_OR_NOW
10975#  ifdef RTLD_LAZY
10976#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10977#  else
10978#    ifdef DL_LAZY
10979#      define LT_DLLAZY_OR_NOW		DL_LAZY
10980#    else
10981#      ifdef RTLD_NOW
10982#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10983#      else
10984#        ifdef DL_NOW
10985#          define LT_DLLAZY_OR_NOW	DL_NOW
10986#        else
10987#          define LT_DLLAZY_OR_NOW	0
10988#        endif
10989#      endif
10990#    endif
10991#  endif
10992#endif
10993
10994void fnord() { int i=42;}
10995int main ()
10996{
10997  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10998  int status = $lt_dlunknown;
10999
11000  if (self)
11001    {
11002      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11003      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11004      /* dlclose (self); */
11005    }
11006  else
11007    puts (dlerror ());
11008
11009  return status;
11010}
11011_LT_EOF
11012  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11013  (eval $ac_link) 2>&5
11014  ac_status=$?
11015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11016  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11017    (./conftest; exit; ) >&5 2>/dev/null
11018    lt_status=$?
11019    case x$lt_status in
11020      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11021      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11022      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11023    esac
11024  else :
11025    # compilation failed
11026    lt_cv_dlopen_self=no
11027  fi
11028fi
11029rm -fr conftest*
11030
11031
11032fi
11033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11034$as_echo "$lt_cv_dlopen_self" >&6; }
11035
11036    if test "x$lt_cv_dlopen_self" = xyes; then
11037      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11038      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11039$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11040if ${lt_cv_dlopen_self_static+:} false; then :
11041  $as_echo_n "(cached) " >&6
11042else
11043  	  if test "$cross_compiling" = yes; then :
11044  lt_cv_dlopen_self_static=cross
11045else
11046  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11047  lt_status=$lt_dlunknown
11048  cat > conftest.$ac_ext <<_LT_EOF
11049#line 11049 "configure"
11050#include "confdefs.h"
11051
11052#if HAVE_DLFCN_H
11053#include <dlfcn.h>
11054#endif
11055
11056#include <stdio.h>
11057
11058#ifdef RTLD_GLOBAL
11059#  define LT_DLGLOBAL		RTLD_GLOBAL
11060#else
11061#  ifdef DL_GLOBAL
11062#    define LT_DLGLOBAL		DL_GLOBAL
11063#  else
11064#    define LT_DLGLOBAL		0
11065#  endif
11066#endif
11067
11068/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11069   find out it does not work in some platform. */
11070#ifndef LT_DLLAZY_OR_NOW
11071#  ifdef RTLD_LAZY
11072#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11073#  else
11074#    ifdef DL_LAZY
11075#      define LT_DLLAZY_OR_NOW		DL_LAZY
11076#    else
11077#      ifdef RTLD_NOW
11078#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11079#      else
11080#        ifdef DL_NOW
11081#          define LT_DLLAZY_OR_NOW	DL_NOW
11082#        else
11083#          define LT_DLLAZY_OR_NOW	0
11084#        endif
11085#      endif
11086#    endif
11087#  endif
11088#endif
11089
11090void fnord() { int i=42;}
11091int main ()
11092{
11093  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11094  int status = $lt_dlunknown;
11095
11096  if (self)
11097    {
11098      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11099      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11100      /* dlclose (self); */
11101    }
11102  else
11103    puts (dlerror ());
11104
11105  return status;
11106}
11107_LT_EOF
11108  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11109  (eval $ac_link) 2>&5
11110  ac_status=$?
11111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11112  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11113    (./conftest; exit; ) >&5 2>/dev/null
11114    lt_status=$?
11115    case x$lt_status in
11116      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11117      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11118      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11119    esac
11120  else :
11121    # compilation failed
11122    lt_cv_dlopen_self_static=no
11123  fi
11124fi
11125rm -fr conftest*
11126
11127
11128fi
11129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11130$as_echo "$lt_cv_dlopen_self_static" >&6; }
11131    fi
11132
11133    CPPFLAGS="$save_CPPFLAGS"
11134    LDFLAGS="$save_LDFLAGS"
11135    LIBS="$save_LIBS"
11136    ;;
11137  esac
11138
11139  case $lt_cv_dlopen_self in
11140  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11141  *) enable_dlopen_self=unknown ;;
11142  esac
11143
11144  case $lt_cv_dlopen_self_static in
11145  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11146  *) enable_dlopen_self_static=unknown ;;
11147  esac
11148fi
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166striplib=
11167old_striplib=
11168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11169$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11170if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11171  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11172  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11174$as_echo "yes" >&6; }
11175else
11176# FIXME - insert some real tests, host_os isn't really good enough
11177  case $host_os in
11178  darwin*)
11179    if test -n "$STRIP" ; then
11180      striplib="$STRIP -x"
11181      old_striplib="$STRIP -S"
11182      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11183$as_echo "yes" >&6; }
11184    else
11185      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186$as_echo "no" >&6; }
11187    fi
11188    ;;
11189  *)
11190    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191$as_echo "no" >&6; }
11192    ;;
11193  esac
11194fi
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207  # Report which library types will actually be built
11208  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11209$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11211$as_echo "$can_build_shared" >&6; }
11212
11213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11214$as_echo_n "checking whether to build shared libraries... " >&6; }
11215  test "$can_build_shared" = "no" && enable_shared=no
11216
11217  # On AIX, shared libraries and static libraries use the same namespace, and
11218  # are all built from PIC.
11219  case $host_os in
11220  aix3*)
11221    test "$enable_shared" = yes && enable_static=no
11222    if test -n "$RANLIB"; then
11223      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11224      postinstall_cmds='$RANLIB $lib'
11225    fi
11226    ;;
11227
11228  aix[4-9]*)
11229    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11230      test "$enable_shared" = yes && enable_static=no
11231    fi
11232    ;;
11233  esac
11234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11235$as_echo "$enable_shared" >&6; }
11236
11237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11238$as_echo_n "checking whether to build static libraries... " >&6; }
11239  # Make sure either enable_shared or enable_static is yes.
11240  test "$enable_shared" = yes || enable_static=yes
11241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11242$as_echo "$enable_static" >&6; }
11243
11244
11245
11246
11247fi
11248ac_ext=c
11249ac_cpp='$CPP $CPPFLAGS'
11250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11252ac_compiler_gnu=$ac_cv_c_compiler_gnu
11253
11254CC="$lt_save_CC"
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268        ac_config_commands="$ac_config_commands libtool"
11269
11270
11271
11272
11273# Only expand once:
11274
11275
11276
11277VERSION_SCRIPT_FLAGS=
11278# lt_cv_prog_gnu_ld is from libtool 2.+
11279if test "$lt_cv_prog_gnu_ld" = yes; then
11280  VERSION_SCRIPT_FLAGS=-Wl,--version-script=
11281else
11282  case $host in
11283  *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";;
11284  esac
11285fi
11286
11287 if test -n "$VERSION_SCRIPT_FLAGS"; then
11288  USE_VERSION_SCRIPT_TRUE=
11289  USE_VERSION_SCRIPT_FALSE='#'
11290else
11291  USE_VERSION_SCRIPT_TRUE='#'
11292  USE_VERSION_SCRIPT_FALSE=
11293fi
11294
11295
11296
11297_cppflags="${CPPFLAGS}"
11298_ldflags="${LDFLAGS}"
11299
11300
11301# Check whether --with-c14n was given.
11302if test "${with_c14n+set}" = set; then :
11303  withval=$with_c14n;
11304fi
11305
11306
11307# Check whether --with-catalog was given.
11308if test "${with_catalog+set}" = set; then :
11309  withval=$with_catalog;
11310fi
11311
11312
11313# Check whether --with-debug was given.
11314if test "${with_debug+set}" = set; then :
11315  withval=$with_debug;
11316fi
11317
11318
11319# Check whether --with-docbook was given.
11320if test "${with_docbook+set}" = set; then :
11321  withval=$with_docbook;
11322fi
11323
11324
11325# Check whether --with-fexceptions was given.
11326if test "${with_fexceptions+set}" = set; then :
11327  withval=$with_fexceptions;
11328fi
11329
11330
11331# Check whether --with-ftp was given.
11332if test "${with_ftp+set}" = set; then :
11333  withval=$with_ftp;
11334fi
11335
11336
11337# Check whether --with-history was given.
11338if test "${with_history+set}" = set; then :
11339  withval=$with_history;
11340fi
11341
11342
11343# Check whether --with-html was given.
11344if test "${with_html+set}" = set; then :
11345  withval=$with_html;
11346fi
11347
11348
11349# Check whether --with-html-dir was given.
11350if test "${with_html_dir+set}" = set; then :
11351  withval=$with_html_dir; HTML_DIR=$withval
11352else
11353  HTML_DIR='$(datadir)/doc'
11354fi
11355
11356
11357
11358# Check whether --with-html-subdir was given.
11359if test "${with_html_subdir+set}" = set; then :
11360  withval=$with_html_subdir; test "x$withval" != "x" && HTML_DIR="$HTML_DIR/$withval"
11361else
11362  HTML_DIR="$HTML_DIR/\$(PACKAGE)-\$(VERSION)/html"
11363fi
11364
11365
11366
11367# Check whether --with-http was given.
11368if test "${with_http+set}" = set; then :
11369  withval=$with_http;
11370fi
11371
11372
11373# Check whether --with-iconv was given.
11374if test "${with_iconv+set}" = set; then :
11375  withval=$with_iconv;
11376fi
11377
11378
11379# Check whether --with-iso8859x was given.
11380if test "${with_iso8859x+set}" = set; then :
11381  withval=$with_iso8859x;
11382fi
11383
11384
11385# Check whether --with-legacy was given.
11386if test "${with_legacy+set}" = set; then :
11387  withval=$with_legacy;
11388fi
11389
11390
11391# Check whether --with-mem_debug was given.
11392if test "${with_mem_debug+set}" = set; then :
11393  withval=$with_mem_debug;
11394fi
11395
11396
11397# Check whether --with-minimum was given.
11398if test "${with_minimum+set}" = set; then :
11399  withval=$with_minimum;
11400fi
11401
11402
11403# Check whether --with-output was given.
11404if test "${with_output+set}" = set; then :
11405  withval=$with_output;
11406fi
11407
11408
11409# Check whether --with-pattern was given.
11410if test "${with_pattern+set}" = set; then :
11411  withval=$with_pattern;
11412fi
11413
11414
11415# Check whether --with-push was given.
11416if test "${with_push+set}" = set; then :
11417  withval=$with_push;
11418fi
11419
11420
11421# Check whether --with-python was given.
11422if test "${with_python+set}" = set; then :
11423  withval=$with_python;
11424fi
11425
11426
11427# Check whether --with-reader was given.
11428if test "${with_reader+set}" = set; then :
11429  withval=$with_reader;
11430fi
11431
11432
11433# Check whether --with-readline was given.
11434if test "${with_readline+set}" = set; then :
11435  withval=$with_readline;
11436  if test "$withval" != "no" -a "$withval" != "yes"; then
11437    RDL_DIR=$withval
11438    CPPFLAGS="${CPPFLAGS} -I$withval/include"
11439    LDFLAGS="${LDFLAGS} -L$withval/lib"
11440  fi
11441
11442fi
11443
11444
11445# Check whether --with-regexps was given.
11446if test "${with_regexps+set}" = set; then :
11447  withval=$with_regexps;
11448fi
11449
11450
11451# Check whether --with-run_debug was given.
11452if test "${with_run_debug+set}" = set; then :
11453  withval=$with_run_debug;
11454fi
11455
11456
11457# Check whether --with-sax1 was given.
11458if test "${with_sax1+set}" = set; then :
11459  withval=$with_sax1;
11460fi
11461
11462
11463# Check whether --with-schemas was given.
11464if test "${with_schemas+set}" = set; then :
11465  withval=$with_schemas;
11466fi
11467
11468
11469# Check whether --with-schematron was given.
11470if test "${with_schematron+set}" = set; then :
11471  withval=$with_schematron;
11472fi
11473
11474
11475# Check whether --with-threads was given.
11476if test "${with_threads+set}" = set; then :
11477  withval=$with_threads;
11478fi
11479
11480
11481# Check whether --with-thread-alloc was given.
11482if test "${with_thread_alloc+set}" = set; then :
11483  withval=$with_thread_alloc;
11484fi
11485
11486
11487# Check whether --with-tree was given.
11488if test "${with_tree+set}" = set; then :
11489  withval=$with_tree;
11490fi
11491
11492
11493# Check whether --with-valid was given.
11494if test "${with_valid+set}" = set; then :
11495  withval=$with_valid;
11496fi
11497
11498
11499# Check whether --with-writer was given.
11500if test "${with_writer+set}" = set; then :
11501  withval=$with_writer;
11502fi
11503
11504
11505# Check whether --with-xinclude was given.
11506if test "${with_xinclude+set}" = set; then :
11507  withval=$with_xinclude;
11508fi
11509
11510
11511# Check whether --with-xpath was given.
11512if test "${with_xpath+set}" = set; then :
11513  withval=$with_xpath;
11514fi
11515
11516
11517# Check whether --with-xptr was given.
11518if test "${with_xptr+set}" = set; then :
11519  withval=$with_xptr;
11520fi
11521
11522
11523# Check whether --with-modules was given.
11524if test "${with_modules+set}" = set; then :
11525  withval=$with_modules;
11526fi
11527
11528
11529# Check whether --with-zlib was given.
11530if test "${with_zlib+set}" = set; then :
11531  withval=$with_zlib;
11532  if test "$withval" != "no" -a "$withval" != "yes"; then
11533    Z_DIR=$withval
11534    CPPFLAGS="${CPPFLAGS} -I$withval/include"
11535    LDFLAGS="${LDFLAGS} -L$withval/lib"
11536  fi
11537
11538fi
11539
11540
11541# Check whether --with-coverage was given.
11542if test "${with_coverage+set}" = set; then :
11543  withval=$with_coverage;
11544fi
11545
11546
11547# Check whether --enable-rebuild-docs was given.
11548if test "${enable_rebuild_docs+set}" = set; then :
11549  enableval=$enable_rebuild_docs;
11550fi
11551
11552 if test "$enable_rebuild_docs" = "no"; then
11553  REBUILD_DOCS_TRUE=
11554  REBUILD_DOCS_FALSE='#'
11555else
11556  REBUILD_DOCS_TRUE='#'
11557  REBUILD_DOCS_FALSE=
11558fi
11559
11560
11561if test "$with_schemas" = "yes"
11562then
11563    with_pattern=yes
11564    with_regexps=yes
11565fi
11566if test "$with_schematron" = "yes"
11567then
11568    with_pattern=yes
11569    with_xpath=yes
11570fi
11571if test "$with_reader" = "yes"
11572then
11573    with_push=yes
11574fi
11575if test "$with_xptr" = "yes"
11576then
11577    with_xpath=yes
11578fi
11579if test "$with_minimum" = "yes"
11580then
11581    echo "Configuring for a minimal library"
11582    if test "$with_c14n" = ""
11583    then
11584      with_c14n=no
11585    fi
11586    if test "$with_catalog" = ""
11587    then
11588      with_catalog=no
11589    fi
11590    echo So far so good!
11591    if test "$with_debug" = ""
11592    then
11593      with_debug=no
11594    fi
11595    if test "$with_docbook" = ""
11596    then
11597      with_docbook=no
11598    fi
11599    if test "$with_fexceptions" = ""
11600    then
11601      with_fexceptions=no
11602    fi
11603    if test "$with_ftp" = ""
11604    then
11605      with_ftp=no
11606    fi
11607    if test "$with_history" = ""
11608    then
11609      with_history=no
11610    fi
11611    if test "$with_html" = ""
11612    then
11613      with_html=no
11614    fi
11615    if test "$with_http" = ""
11616    then
11617      with_http=no
11618    fi
11619    if test "$with_iconv" = ""
11620    then
11621      with_iconv=no
11622    fi
11623    if test "$with_iso8859x" = ""
11624    then
11625      with_iso8859x=no
11626    fi
11627    if test "$with_legacy" = ""
11628    then
11629      with_legacy=no
11630    fi
11631    if test "$with_mem_debug" = ""
11632    then
11633      with_mem_debug=no
11634    fi
11635    if test "$with_output" = ""
11636    then
11637      with_output=no
11638    fi
11639    if test "$with_pattern" = ""
11640    then
11641      with_pattern=no
11642    fi
11643    if test "$with_push" = ""
11644    then
11645      with_push=no
11646    fi
11647    if test "$with_python" = ""
11648    then
11649      with_python=no
11650    fi
11651    if test "$with_reader" = ""
11652    then
11653      with_reader=no
11654    fi
11655    if test "$with_readline" = ""
11656    then
11657      with_readline=no
11658    fi
11659    if test "$with_regexps" = ""
11660    then
11661      with_regexps=no
11662    fi
11663    if test "$with_run_debug" = ""
11664    then
11665      with_run_debug=no
11666    fi
11667    if test "$with_sax1" = ""
11668    then
11669      with_sax1=no
11670    fi
11671    if test "$with_schemas" = ""
11672    then
11673      with_schemas=no
11674    fi
11675    if test "$with_schematron" = ""
11676    then
11677      with_schematron=no
11678    fi
11679    if test "$with_threads" = ""
11680    then
11681      with_threads=no
11682    fi
11683    if test "$with_thread_alloc" = ""
11684    then
11685      with_thread_alloc=no
11686   fi
11687    if test "$with_tree" = ""
11688    then
11689      with_tree=no
11690    fi
11691    if test "$with_valid" = ""
11692    then
11693      with_valid=no
11694    fi
11695    if test "$with_writer" = ""
11696    then
11697      with_writer=no
11698    fi
11699    if test "$with_xinclude" = ""
11700    then
11701      with_xinclude=no
11702    fi
11703    if test "$with_xpath" = ""
11704    then
11705      with_xpath=no
11706    fi
11707    if test "$with_xptr" = ""
11708    then
11709      with_xptr=no
11710    fi
11711    if test "$with_zlib" = ""
11712    then
11713      with_zlib=no
11714    fi
11715    if test "$with_modules" = ""
11716    then
11717      with_modules=no
11718    fi
11719fi
11720
11721echo Checking zlib
11722
11723
11724WITH_ZLIB=0
11725if test "$with_zlib" = "no"; then
11726    echo "Disabling compression support"
11727else
11728    for ac_header in zlib.h
11729do :
11730  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11731if test "x$ac_cv_header_zlib_h" = xyes; then :
11732  cat >>confdefs.h <<_ACEOF
11733#define HAVE_ZLIB_H 1
11734_ACEOF
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
11736$as_echo_n "checking for gzread in -lz... " >&6; }
11737if ${ac_cv_lib_z_gzread+:} false; then :
11738  $as_echo_n "(cached) " >&6
11739else
11740  ac_check_lib_save_LIBS=$LIBS
11741LIBS="-lz  $LIBS"
11742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743/* end confdefs.h.  */
11744
11745/* Override any GCC internal prototype to avoid an error.
11746   Use char because int might match the return type of a GCC
11747   builtin and then its argument prototype would still apply.  */
11748#ifdef __cplusplus
11749extern "C"
11750#endif
11751char gzread ();
11752int
11753main ()
11754{
11755return gzread ();
11756  ;
11757  return 0;
11758}
11759_ACEOF
11760if ac_fn_c_try_link "$LINENO"; then :
11761  ac_cv_lib_z_gzread=yes
11762else
11763  ac_cv_lib_z_gzread=no
11764fi
11765rm -f core conftest.err conftest.$ac_objext \
11766    conftest$ac_exeext conftest.$ac_ext
11767LIBS=$ac_check_lib_save_LIBS
11768fi
11769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
11770$as_echo "$ac_cv_lib_z_gzread" >&6; }
11771if test "x$ac_cv_lib_z_gzread" = xyes; then :
11772
11773
11774$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
11775
11776	    WITH_ZLIB=1
11777	    if test "x${Z_DIR}" != "x"; then
11778		Z_CFLAGS="-I${Z_DIR}/include"
11779		Z_LIBS="-L${Z_DIR}/lib -lz"
11780		case ${host} in
11781		    *-*-solaris*)
11782			Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
11783			;;
11784		esac
11785	    else
11786		Z_LIBS="-lz"
11787	    fi
11788fi
11789
11790fi
11791
11792done
11793
11794fi
11795
11796
11797
11798
11799
11800CPPFLAGS=${_cppflags}
11801LDFLAGS=${_ldflags}
11802
11803echo Checking headers
11804
11805ac_header_dirent=no
11806for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11807  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11809$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11810if eval \${$as_ac_Header+:} false; then :
11811  $as_echo_n "(cached) " >&6
11812else
11813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814/* end confdefs.h.  */
11815#include <sys/types.h>
11816#include <$ac_hdr>
11817
11818int
11819main ()
11820{
11821if ((DIR *) 0)
11822return 0;
11823  ;
11824  return 0;
11825}
11826_ACEOF
11827if ac_fn_c_try_compile "$LINENO"; then :
11828  eval "$as_ac_Header=yes"
11829else
11830  eval "$as_ac_Header=no"
11831fi
11832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11833fi
11834eval ac_res=\$$as_ac_Header
11835	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11836$as_echo "$ac_res" >&6; }
11837if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11838  cat >>confdefs.h <<_ACEOF
11839#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11840_ACEOF
11841
11842ac_header_dirent=$ac_hdr; break
11843fi
11844
11845done
11846# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11847if test $ac_header_dirent = dirent.h; then
11848  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11849$as_echo_n "checking for library containing opendir... " >&6; }
11850if ${ac_cv_search_opendir+:} false; then :
11851  $as_echo_n "(cached) " >&6
11852else
11853  ac_func_search_save_LIBS=$LIBS
11854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855/* end confdefs.h.  */
11856
11857/* Override any GCC internal prototype to avoid an error.
11858   Use char because int might match the return type of a GCC
11859   builtin and then its argument prototype would still apply.  */
11860#ifdef __cplusplus
11861extern "C"
11862#endif
11863char opendir ();
11864int
11865main ()
11866{
11867return opendir ();
11868  ;
11869  return 0;
11870}
11871_ACEOF
11872for ac_lib in '' dir; do
11873  if test -z "$ac_lib"; then
11874    ac_res="none required"
11875  else
11876    ac_res=-l$ac_lib
11877    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11878  fi
11879  if ac_fn_c_try_link "$LINENO"; then :
11880  ac_cv_search_opendir=$ac_res
11881fi
11882rm -f core conftest.err conftest.$ac_objext \
11883    conftest$ac_exeext
11884  if ${ac_cv_search_opendir+:} false; then :
11885  break
11886fi
11887done
11888if ${ac_cv_search_opendir+:} false; then :
11889
11890else
11891  ac_cv_search_opendir=no
11892fi
11893rm conftest.$ac_ext
11894LIBS=$ac_func_search_save_LIBS
11895fi
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11897$as_echo "$ac_cv_search_opendir" >&6; }
11898ac_res=$ac_cv_search_opendir
11899if test "$ac_res" != no; then :
11900  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11901
11902fi
11903
11904else
11905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11906$as_echo_n "checking for library containing opendir... " >&6; }
11907if ${ac_cv_search_opendir+:} false; then :
11908  $as_echo_n "(cached) " >&6
11909else
11910  ac_func_search_save_LIBS=$LIBS
11911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11912/* end confdefs.h.  */
11913
11914/* Override any GCC internal prototype to avoid an error.
11915   Use char because int might match the return type of a GCC
11916   builtin and then its argument prototype would still apply.  */
11917#ifdef __cplusplus
11918extern "C"
11919#endif
11920char opendir ();
11921int
11922main ()
11923{
11924return opendir ();
11925  ;
11926  return 0;
11927}
11928_ACEOF
11929for ac_lib in '' x; do
11930  if test -z "$ac_lib"; then
11931    ac_res="none required"
11932  else
11933    ac_res=-l$ac_lib
11934    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11935  fi
11936  if ac_fn_c_try_link "$LINENO"; then :
11937  ac_cv_search_opendir=$ac_res
11938fi
11939rm -f core conftest.err conftest.$ac_objext \
11940    conftest$ac_exeext
11941  if ${ac_cv_search_opendir+:} false; then :
11942  break
11943fi
11944done
11945if ${ac_cv_search_opendir+:} false; then :
11946
11947else
11948  ac_cv_search_opendir=no
11949fi
11950rm conftest.$ac_ext
11951LIBS=$ac_func_search_save_LIBS
11952fi
11953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11954$as_echo "$ac_cv_search_opendir" >&6; }
11955ac_res=$ac_cv_search_opendir
11956if test "$ac_res" != no; then :
11957  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11958
11959fi
11960
11961fi
11962
11963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11964$as_echo_n "checking for ANSI C header files... " >&6; }
11965if ${ac_cv_header_stdc+:} false; then :
11966  $as_echo_n "(cached) " >&6
11967else
11968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11969/* end confdefs.h.  */
11970#include <stdlib.h>
11971#include <stdarg.h>
11972#include <string.h>
11973#include <float.h>
11974
11975int
11976main ()
11977{
11978
11979  ;
11980  return 0;
11981}
11982_ACEOF
11983if ac_fn_c_try_compile "$LINENO"; then :
11984  ac_cv_header_stdc=yes
11985else
11986  ac_cv_header_stdc=no
11987fi
11988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11989
11990if test $ac_cv_header_stdc = yes; then
11991  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993/* end confdefs.h.  */
11994#include <string.h>
11995
11996_ACEOF
11997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11998  $EGREP "memchr" >/dev/null 2>&1; then :
11999
12000else
12001  ac_cv_header_stdc=no
12002fi
12003rm -f conftest*
12004
12005fi
12006
12007if test $ac_cv_header_stdc = yes; then
12008  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010/* end confdefs.h.  */
12011#include <stdlib.h>
12012
12013_ACEOF
12014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12015  $EGREP "free" >/dev/null 2>&1; then :
12016
12017else
12018  ac_cv_header_stdc=no
12019fi
12020rm -f conftest*
12021
12022fi
12023
12024if test $ac_cv_header_stdc = yes; then
12025  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12026  if test "$cross_compiling" = yes; then :
12027  :
12028else
12029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030/* end confdefs.h.  */
12031#include <ctype.h>
12032#include <stdlib.h>
12033#if ((' ' & 0x0FF) == 0x020)
12034# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12035# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12036#else
12037# define ISLOWER(c) \
12038		   (('a' <= (c) && (c) <= 'i') \
12039		     || ('j' <= (c) && (c) <= 'r') \
12040		     || ('s' <= (c) && (c) <= 'z'))
12041# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12042#endif
12043
12044#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12045int
12046main ()
12047{
12048  int i;
12049  for (i = 0; i < 256; i++)
12050    if (XOR (islower (i), ISLOWER (i))
12051	|| toupper (i) != TOUPPER (i))
12052      return 2;
12053  return 0;
12054}
12055_ACEOF
12056if ac_fn_c_try_run "$LINENO"; then :
12057
12058else
12059  ac_cv_header_stdc=no
12060fi
12061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12062  conftest.$ac_objext conftest.beam conftest.$ac_ext
12063fi
12064
12065fi
12066fi
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12068$as_echo "$ac_cv_header_stdc" >&6; }
12069if test $ac_cv_header_stdc = yes; then
12070
12071$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12072
12073fi
12074
12075for ac_header in fcntl.h
12076do :
12077  ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
12078if test "x$ac_cv_header_fcntl_h" = xyes; then :
12079  cat >>confdefs.h <<_ACEOF
12080#define HAVE_FCNTL_H 1
12081_ACEOF
12082
12083fi
12084
12085done
12086
12087for ac_header in unistd.h
12088do :
12089  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
12090if test "x$ac_cv_header_unistd_h" = xyes; then :
12091  cat >>confdefs.h <<_ACEOF
12092#define HAVE_UNISTD_H 1
12093_ACEOF
12094
12095fi
12096
12097done
12098
12099for ac_header in ctype.h
12100do :
12101  ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
12102if test "x$ac_cv_header_ctype_h" = xyes; then :
12103  cat >>confdefs.h <<_ACEOF
12104#define HAVE_CTYPE_H 1
12105_ACEOF
12106
12107fi
12108
12109done
12110
12111for ac_header in dirent.h
12112do :
12113  ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
12114if test "x$ac_cv_header_dirent_h" = xyes; then :
12115  cat >>confdefs.h <<_ACEOF
12116#define HAVE_DIRENT_H 1
12117_ACEOF
12118
12119fi
12120
12121done
12122
12123for ac_header in errno.h
12124do :
12125  ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
12126if test "x$ac_cv_header_errno_h" = xyes; then :
12127  cat >>confdefs.h <<_ACEOF
12128#define HAVE_ERRNO_H 1
12129_ACEOF
12130
12131fi
12132
12133done
12134
12135for ac_header in malloc.h
12136do :
12137  ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
12138if test "x$ac_cv_header_malloc_h" = xyes; then :
12139  cat >>confdefs.h <<_ACEOF
12140#define HAVE_MALLOC_H 1
12141_ACEOF
12142
12143fi
12144
12145done
12146
12147for ac_header in stdarg.h
12148do :
12149  ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
12150if test "x$ac_cv_header_stdarg_h" = xyes; then :
12151  cat >>confdefs.h <<_ACEOF
12152#define HAVE_STDARG_H 1
12153_ACEOF
12154
12155fi
12156
12157done
12158
12159for ac_header in sys/stat.h
12160do :
12161  ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12162if test "x$ac_cv_header_sys_stat_h" = xyes; then :
12163  cat >>confdefs.h <<_ACEOF
12164#define HAVE_SYS_STAT_H 1
12165_ACEOF
12166
12167fi
12168
12169done
12170
12171for ac_header in sys/types.h
12172do :
12173  ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12174if test "x$ac_cv_header_sys_types_h" = xyes; then :
12175  cat >>confdefs.h <<_ACEOF
12176#define HAVE_SYS_TYPES_H 1
12177_ACEOF
12178
12179fi
12180
12181done
12182
12183for ac_header in stdint.h
12184do :
12185  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
12186if test "x$ac_cv_header_stdint_h" = xyes; then :
12187  cat >>confdefs.h <<_ACEOF
12188#define HAVE_STDINT_H 1
12189_ACEOF
12190
12191fi
12192
12193done
12194
12195for ac_header in inttypes.h.h
12196do :
12197  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h.h" "ac_cv_header_inttypes_h_h" "$ac_includes_default"
12198if test "x$ac_cv_header_inttypes_h_h" = xyes; then :
12199  cat >>confdefs.h <<_ACEOF
12200#define HAVE_INTTYPES_H_H 1
12201_ACEOF
12202
12203fi
12204
12205done
12206
12207for ac_header in time.h
12208do :
12209  ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
12210if test "x$ac_cv_header_time_h" = xyes; then :
12211  cat >>confdefs.h <<_ACEOF
12212#define HAVE_TIME_H 1
12213_ACEOF
12214
12215fi
12216
12217done
12218
12219for ac_header in ansidecl.h
12220do :
12221  ac_fn_c_check_header_mongrel "$LINENO" "ansidecl.h" "ac_cv_header_ansidecl_h" "$ac_includes_default"
12222if test "x$ac_cv_header_ansidecl_h" = xyes; then :
12223  cat >>confdefs.h <<_ACEOF
12224#define HAVE_ANSIDECL_H 1
12225_ACEOF
12226
12227fi
12228
12229done
12230
12231for ac_header in ieeefp.h
12232do :
12233  ac_fn_c_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default"
12234if test "x$ac_cv_header_ieeefp_h" = xyes; then :
12235  cat >>confdefs.h <<_ACEOF
12236#define HAVE_IEEEFP_H 1
12237_ACEOF
12238
12239fi
12240
12241done
12242
12243for ac_header in nan.h
12244do :
12245  ac_fn_c_check_header_mongrel "$LINENO" "nan.h" "ac_cv_header_nan_h" "$ac_includes_default"
12246if test "x$ac_cv_header_nan_h" = xyes; then :
12247  cat >>confdefs.h <<_ACEOF
12248#define HAVE_NAN_H 1
12249_ACEOF
12250
12251fi
12252
12253done
12254
12255for ac_header in math.h
12256do :
12257  ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
12258if test "x$ac_cv_header_math_h" = xyes; then :
12259  cat >>confdefs.h <<_ACEOF
12260#define HAVE_MATH_H 1
12261_ACEOF
12262
12263fi
12264
12265done
12266
12267for ac_header in limits.h
12268do :
12269  ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
12270if test "x$ac_cv_header_limits_h" = xyes; then :
12271  cat >>confdefs.h <<_ACEOF
12272#define HAVE_LIMITS_H 1
12273_ACEOF
12274
12275fi
12276
12277done
12278
12279for ac_header in fp_class.h
12280do :
12281  ac_fn_c_check_header_mongrel "$LINENO" "fp_class.h" "ac_cv_header_fp_class_h" "$ac_includes_default"
12282if test "x$ac_cv_header_fp_class_h" = xyes; then :
12283  cat >>confdefs.h <<_ACEOF
12284#define HAVE_FP_CLASS_H 1
12285_ACEOF
12286
12287fi
12288
12289done
12290
12291for ac_header in float.h
12292do :
12293  ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
12294if test "x$ac_cv_header_float_h" = xyes; then :
12295  cat >>confdefs.h <<_ACEOF
12296#define HAVE_FLOAT_H 1
12297_ACEOF
12298
12299fi
12300
12301done
12302
12303for ac_header in stdlib.h
12304do :
12305  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12306if test "x$ac_cv_header_stdlib_h" = xyes; then :
12307  cat >>confdefs.h <<_ACEOF
12308#define HAVE_STDLIB_H 1
12309_ACEOF
12310
12311fi
12312
12313done
12314
12315for ac_header in sys/socket.h
12316do :
12317  ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "#if HAVE_SYS_TYPES_H
12318# include <sys/types.h>
12319# endif
12320
12321"
12322if test "x$ac_cv_header_sys_socket_h" = xyes; then :
12323  cat >>confdefs.h <<_ACEOF
12324#define HAVE_SYS_SOCKET_H 1
12325_ACEOF
12326
12327fi
12328
12329done
12330
12331for ac_header in netinet/in.h
12332do :
12333  ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "#if HAVE_SYS_TYPES_H
12334# include <sys/types.h>
12335# endif
12336
12337"
12338if test "x$ac_cv_header_netinet_in_h" = xyes; then :
12339  cat >>confdefs.h <<_ACEOF
12340#define HAVE_NETINET_IN_H 1
12341_ACEOF
12342
12343fi
12344
12345done
12346
12347for ac_header in arpa/inet.h
12348do :
12349  ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "#if HAVE_SYS_TYPES_H
12350# include <sys/types.h>
12351# endif
12352#if HAVE_ARPA_INET_H
12353# include <arpa/inet.h>
12354# endif
12355
12356"
12357if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
12358  cat >>confdefs.h <<_ACEOF
12359#define HAVE_ARPA_INET_H 1
12360_ACEOF
12361
12362fi
12363
12364done
12365
12366for ac_header in netdb.h
12367do :
12368  ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
12369if test "x$ac_cv_header_netdb_h" = xyes; then :
12370  cat >>confdefs.h <<_ACEOF
12371#define HAVE_NETDB_H 1
12372_ACEOF
12373
12374fi
12375
12376done
12377
12378for ac_header in sys/time.h
12379do :
12380  ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12381if test "x$ac_cv_header_sys_time_h" = xyes; then :
12382  cat >>confdefs.h <<_ACEOF
12383#define HAVE_SYS_TIME_H 1
12384_ACEOF
12385
12386fi
12387
12388done
12389
12390for ac_header in sys/select.h
12391do :
12392  ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12393if test "x$ac_cv_header_sys_select_h" = xyes; then :
12394  cat >>confdefs.h <<_ACEOF
12395#define HAVE_SYS_SELECT_H 1
12396_ACEOF
12397
12398fi
12399
12400done
12401
12402for ac_header in poll.h
12403do :
12404  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
12405if test "x$ac_cv_header_poll_h" = xyes; then :
12406  cat >>confdefs.h <<_ACEOF
12407#define HAVE_POLL_H 1
12408_ACEOF
12409
12410fi
12411
12412done
12413
12414for ac_header in sys/mman.h
12415do :
12416  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12417if test "x$ac_cv_header_sys_mman_h" = xyes; then :
12418  cat >>confdefs.h <<_ACEOF
12419#define HAVE_SYS_MMAN_H 1
12420_ACEOF
12421
12422fi
12423
12424done
12425
12426for ac_header in sys/timeb.h
12427do :
12428  ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
12429if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
12430  cat >>confdefs.h <<_ACEOF
12431#define HAVE_SYS_TIMEB_H 1
12432_ACEOF
12433
12434fi
12435
12436done
12437
12438for ac_header in signal.h
12439do :
12440  ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
12441if test "x$ac_cv_header_signal_h" = xyes; then :
12442  cat >>confdefs.h <<_ACEOF
12443#define HAVE_SIGNAL_H 1
12444_ACEOF
12445
12446fi
12447
12448done
12449
12450for ac_header in arpa/nameser.h
12451do :
12452  ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "#if HAVE_SYS_TYPES_H
12453# include <sys/types.h>
12454# endif
12455
12456"
12457if test "x$ac_cv_header_arpa_nameser_h" = xyes; then :
12458  cat >>confdefs.h <<_ACEOF
12459#define HAVE_ARPA_NAMESER_H 1
12460_ACEOF
12461
12462fi
12463
12464done
12465
12466for ac_header in resolv.h
12467do :
12468  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H
12469# include <sys/types.h>
12470# endif
12471#if HAVE_NETINET_IN_H
12472# include <netinet/in.h>
12473# endif
12474#if HAVE_ARPA_NAMESER_H
12475# include <arpa/nameser.h>
12476# endif
12477
12478"
12479if test "x$ac_cv_header_resolv_h" = xyes; then :
12480  cat >>confdefs.h <<_ACEOF
12481#define HAVE_RESOLV_H 1
12482_ACEOF
12483
12484fi
12485
12486done
12487
12488for ac_header in dl.h
12489do :
12490  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
12491if test "x$ac_cv_header_dl_h" = xyes; then :
12492  cat >>confdefs.h <<_ACEOF
12493#define HAVE_DL_H 1
12494_ACEOF
12495
12496fi
12497
12498done
12499
12500for ac_header in dlfcn.h
12501do :
12502  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
12503if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12504  cat >>confdefs.h <<_ACEOF
12505#define HAVE_DLFCN_H 1
12506_ACEOF
12507
12508fi
12509
12510done
12511
12512
12513
12514echo Checking libraries
12515
12516for ac_func in strftime
12517do :
12518  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12519if test "x$ac_cv_func_strftime" = xyes; then :
12520  cat >>confdefs.h <<_ACEOF
12521#define HAVE_STRFTIME 1
12522_ACEOF
12523
12524else
12525  # strftime is in -lintl on SCO UNIX.
12526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12527$as_echo_n "checking for strftime in -lintl... " >&6; }
12528if ${ac_cv_lib_intl_strftime+:} false; then :
12529  $as_echo_n "(cached) " >&6
12530else
12531  ac_check_lib_save_LIBS=$LIBS
12532LIBS="-lintl  $LIBS"
12533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534/* end confdefs.h.  */
12535
12536/* Override any GCC internal prototype to avoid an error.
12537   Use char because int might match the return type of a GCC
12538   builtin and then its argument prototype would still apply.  */
12539#ifdef __cplusplus
12540extern "C"
12541#endif
12542char strftime ();
12543int
12544main ()
12545{
12546return strftime ();
12547  ;
12548  return 0;
12549}
12550_ACEOF
12551if ac_fn_c_try_link "$LINENO"; then :
12552  ac_cv_lib_intl_strftime=yes
12553else
12554  ac_cv_lib_intl_strftime=no
12555fi
12556rm -f core conftest.err conftest.$ac_objext \
12557    conftest$ac_exeext conftest.$ac_ext
12558LIBS=$ac_check_lib_save_LIBS
12559fi
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12561$as_echo "$ac_cv_lib_intl_strftime" >&6; }
12562if test "x$ac_cv_lib_intl_strftime" = xyes; then :
12563  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12564
12565LIBS="-lintl $LIBS"
12566fi
12567
12568fi
12569done
12570
12571for ac_func in strdup strndup strerror
12572do :
12573  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12574ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12575if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12576  cat >>confdefs.h <<_ACEOF
12577#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12578_ACEOF
12579
12580fi
12581done
12582
12583for ac_func in finite isnand fp_class class fpclass
12584do :
12585  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12586ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12587if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12588  cat >>confdefs.h <<_ACEOF
12589#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12590_ACEOF
12591
12592fi
12593done
12594
12595for ac_func in strftime localtime gettimeofday ftime
12596do :
12597  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12598ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12599if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12600  cat >>confdefs.h <<_ACEOF
12601#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12602_ACEOF
12603
12604fi
12605done
12606
12607for ac_func in stat _stat signal
12608do :
12609  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12610ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12611if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12612  cat >>confdefs.h <<_ACEOF
12613#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12614_ACEOF
12615
12616fi
12617done
12618
12619
12620for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf
12621do :
12622  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12623ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12624if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12625  cat >>confdefs.h <<_ACEOF
12626#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12627_ACEOF
12628
12629else
12630  NEED_TRIO=1
12631fi
12632done
12633
12634
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
12636$as_echo_n "checking for va_copy... " >&6; }
12637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638/* end confdefs.h.  */
12639#include <stdarg.h>
12640va_list ap1,ap2;
12641int
12642main ()
12643{
12644va_copy(ap1,ap2);
12645  ;
12646  return 0;
12647}
12648_ACEOF
12649if ac_fn_c_try_link "$LINENO"; then :
12650  have_va_copy=yes
12651else
12652  have_va_copy=no
12653fi
12654rm -f core conftest.err conftest.$ac_objext \
12655    conftest$ac_exeext conftest.$ac_ext
12656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_va_copy" >&5
12657$as_echo "$have_va_copy" >&6; }
12658if test x"$have_va_copy" = x"yes"; then
12659
12660$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
12661
12662else
12663    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
12664$as_echo_n "checking for __va_copy... " >&6; }
12665    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666/* end confdefs.h.  */
12667#include <stdarg.h>
12668    va_list ap1,ap2;
12669int
12670main ()
12671{
12672__va_copy(ap1,ap2);
12673  ;
12674  return 0;
12675}
12676_ACEOF
12677if ac_fn_c_try_link "$LINENO"; then :
12678  have___va_copy=yes
12679else
12680  have___va_copy=no
12681fi
12682rm -f core conftest.err conftest.$ac_objext \
12683    conftest$ac_exeext conftest.$ac_ext
12684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have___va_copy" >&5
12685$as_echo "$have___va_copy" >&6; }
12686    if test x"$have___va_copy" = x"yes"; then
12687
12688$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
12689
12690    fi
12691fi
12692
12693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
12694$as_echo_n "checking for library containing gethostent... " >&6; }
12695if ${ac_cv_search_gethostent+:} false; then :
12696  $as_echo_n "(cached) " >&6
12697else
12698  ac_func_search_save_LIBS=$LIBS
12699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700/* end confdefs.h.  */
12701
12702/* Override any GCC internal prototype to avoid an error.
12703   Use char because int might match the return type of a GCC
12704   builtin and then its argument prototype would still apply.  */
12705#ifdef __cplusplus
12706extern "C"
12707#endif
12708char gethostent ();
12709int
12710main ()
12711{
12712return gethostent ();
12713  ;
12714  return 0;
12715}
12716_ACEOF
12717for ac_lib in '' nsl; do
12718  if test -z "$ac_lib"; then
12719    ac_res="none required"
12720  else
12721    ac_res=-l$ac_lib
12722    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12723  fi
12724  if ac_fn_c_try_link "$LINENO"; then :
12725  ac_cv_search_gethostent=$ac_res
12726fi
12727rm -f core conftest.err conftest.$ac_objext \
12728    conftest$ac_exeext
12729  if ${ac_cv_search_gethostent+:} false; then :
12730  break
12731fi
12732done
12733if ${ac_cv_search_gethostent+:} false; then :
12734
12735else
12736  ac_cv_search_gethostent=no
12737fi
12738rm conftest.$ac_ext
12739LIBS=$ac_func_search_save_LIBS
12740fi
12741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
12742$as_echo "$ac_cv_search_gethostent" >&6; }
12743ac_res=$ac_cv_search_gethostent
12744if test "$ac_res" != no; then :
12745  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12746
12747fi
12748
12749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
12750$as_echo_n "checking for library containing setsockopt... " >&6; }
12751if ${ac_cv_search_setsockopt+:} false; then :
12752  $as_echo_n "(cached) " >&6
12753else
12754  ac_func_search_save_LIBS=$LIBS
12755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756/* end confdefs.h.  */
12757
12758/* Override any GCC internal prototype to avoid an error.
12759   Use char because int might match the return type of a GCC
12760   builtin and then its argument prototype would still apply.  */
12761#ifdef __cplusplus
12762extern "C"
12763#endif
12764char setsockopt ();
12765int
12766main ()
12767{
12768return setsockopt ();
12769  ;
12770  return 0;
12771}
12772_ACEOF
12773for ac_lib in '' socket net network; do
12774  if test -z "$ac_lib"; then
12775    ac_res="none required"
12776  else
12777    ac_res=-l$ac_lib
12778    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12779  fi
12780  if ac_fn_c_try_link "$LINENO"; then :
12781  ac_cv_search_setsockopt=$ac_res
12782fi
12783rm -f core conftest.err conftest.$ac_objext \
12784    conftest$ac_exeext
12785  if ${ac_cv_search_setsockopt+:} false; then :
12786  break
12787fi
12788done
12789if ${ac_cv_search_setsockopt+:} false; then :
12790
12791else
12792  ac_cv_search_setsockopt=no
12793fi
12794rm conftest.$ac_ext
12795LIBS=$ac_func_search_save_LIBS
12796fi
12797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
12798$as_echo "$ac_cv_search_setsockopt" >&6; }
12799ac_res=$ac_cv_search_setsockopt
12800if test "$ac_res" != no; then :
12801  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12802
12803fi
12804
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12806$as_echo_n "checking for library containing connect... " >&6; }
12807if ${ac_cv_search_connect+:} false; then :
12808  $as_echo_n "(cached) " >&6
12809else
12810  ac_func_search_save_LIBS=$LIBS
12811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812/* end confdefs.h.  */
12813
12814/* Override any GCC internal prototype to avoid an error.
12815   Use char because int might match the return type of a GCC
12816   builtin and then its argument prototype would still apply.  */
12817#ifdef __cplusplus
12818extern "C"
12819#endif
12820char connect ();
12821int
12822main ()
12823{
12824return connect ();
12825  ;
12826  return 0;
12827}
12828_ACEOF
12829for ac_lib in '' inet; do
12830  if test -z "$ac_lib"; then
12831    ac_res="none required"
12832  else
12833    ac_res=-l$ac_lib
12834    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12835  fi
12836  if ac_fn_c_try_link "$LINENO"; then :
12837  ac_cv_search_connect=$ac_res
12838fi
12839rm -f core conftest.err conftest.$ac_objext \
12840    conftest$ac_exeext
12841  if ${ac_cv_search_connect+:} false; then :
12842  break
12843fi
12844done
12845if ${ac_cv_search_connect+:} false; then :
12846
12847else
12848  ac_cv_search_connect=no
12849fi
12850rm conftest.$ac_ext
12851LIBS=$ac_func_search_save_LIBS
12852fi
12853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12854$as_echo "$ac_cv_search_connect" >&6; }
12855ac_res=$ac_cv_search_connect
12856if test "$ac_res" != no; then :
12857  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12858
12859fi
12860
12861
12862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of socket length (socklen_t)" >&5
12863$as_echo_n "checking for type of socket length (socklen_t)... " >&6; }
12864cat > conftest.$ac_ext <<EOF
12865#line 12865 "configure"
12866#include "confdefs.h"
12867
12868#include <stddef.h>
12869#include <sys/types.h>
12870#include <sys/socket.h>
12871int main(void) {
12872
12873(void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)
12874; return 0; }
12875EOF
12876if { (eval echo configure:12876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
12877  rm -rf conftest*
12878
12879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t *" >&5
12880$as_echo "socklen_t *" >&6; }
12881  XML_SOCKLEN_T=socklen_t
12882else
12883  echo "configure: failed program was:" >&5
12884  cat conftest.$ac_ext >&5
12885  rm -rf conftest*
12886
12887  cat > conftest.$ac_ext <<EOF
12888#line 12888 "configure"
12889#include "confdefs.h"
12890
12891#include <stddef.h>
12892#include <sys/types.h>
12893#include <sys/socket.h>
12894int main(void) {
12895
12896(void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)
12897; return 0; }
12898EOF
12899if { (eval echo configure:12899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
12900  rm -rf conftest*
12901
12902    { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t *" >&5
12903$as_echo "size_t *" >&6; }
12904    XML_SOCKLEN_T=size_t
12905else
12906  echo "configure: failed program was:" >&5
12907  cat conftest.$ac_ext >&5
12908  rm -rf conftest*
12909
12910    cat > conftest.$ac_ext <<EOF
12911#line 12911 "configure"
12912#include "confdefs.h"
12913
12914#include <stddef.h>
12915#include <sys/types.h>
12916#include <sys/socket.h>
12917int main(void) {
12918
12919(void)getsockopt (1, 1, 1, NULL, (int *)NULL)
12920; return 0; }
12921EOF
12922if { (eval echo configure:12922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
12923  rm -rf conftest*
12924
12925      { $as_echo "$as_me:${as_lineno-$LINENO}: result: int *" >&5
12926$as_echo "int *" >&6; }
12927      XML_SOCKLEN_T=int
12928else
12929  echo "configure: failed program was:" >&5
12930  cat conftest.$ac_ext >&5
12931  rm -rf conftest*
12932
12933      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine" >&5
12934$as_echo "$as_me: WARNING: could not determine" >&2;}
12935      XML_SOCKLEN_T="int"
12936fi
12937rm -f conftest*
12938fi
12939rm -f conftest*
12940fi
12941rm -f conftest*
12942
12943cat >>confdefs.h <<_ACEOF
12944#define XML_SOCKLEN_T $XML_SOCKLEN_T
12945_ACEOF
12946
12947
12948
12949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
12950$as_echo_n "checking whether to enable IPv6... " >&6; }
12951# Check whether --enable-ipv6 was given.
12952if test "${enable_ipv6+set}" = set; then :
12953  enableval=$enable_ipv6;
12954else
12955  enable_ipv6=yes
12956fi
12957
12958if test "$with_minimum" = "yes"
12959then
12960    enable_ipv6=no
12961fi
12962if test $enable_ipv6 = yes; then
12963  have_ipv6=no
12964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965/* end confdefs.h.  */
12966
12967    #include <sys/types.h>
12968    #include <sys/socket.h>
12969
12970int
12971main ()
12972{
12973
12974    struct sockaddr_storage ss;
12975    socket(AF_INET6, SOCK_STREAM, 0)
12976
12977  ;
12978  return 0;
12979}
12980_ACEOF
12981if ac_fn_c_try_compile "$LINENO"; then :
12982  have_ipv6=yes
12983else
12984  have_ipv6=no
12985
12986fi
12987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipv6" >&5
12989$as_echo "$have_ipv6" >&6; }
12990
12991  if test $have_ipv6 = yes; then
12992
12993$as_echo "#define SUPPORT_IP6 /**/" >>confdefs.h
12994
12995    have_broken_ss_family=no
12996
12997                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr::ss_family" >&5
12998$as_echo_n "checking struct sockaddr::ss_family... " >&6; }
12999    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000/* end confdefs.h.  */
13001
13002      #include <sys/types.h>
13003      #include <sys/socket.h>
13004
13005int
13006main ()
13007{
13008
13009      struct sockaddr_storage ss ;
13010      ss.ss_family = 0 ;
13011
13012  ;
13013  return 0;
13014}
13015_ACEOF
13016if ac_fn_c_try_compile "$LINENO"; then :
13017  have_ss_family=yes
13018else
13019  have_ss_family=no
13020
13021fi
13022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13023    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ss_family" >&5
13024$as_echo "$have_ss_family" >&6; }
13025    if test x$have_ss_family = xno ; then
13026      { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken struct sockaddr::ss_family" >&5
13027$as_echo_n "checking broken struct sockaddr::ss_family... " >&6; }
13028      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029/* end confdefs.h.  */
13030
13031        #include <sys/types.h>
13032        #include <sys/socket.h>
13033
13034int
13035main ()
13036{
13037
13038        struct sockaddr_storage ss ;
13039        ss.__ss_family = 0 ;
13040
13041  ;
13042  return 0;
13043}
13044_ACEOF
13045if ac_fn_c_try_compile "$LINENO"; then :
13046  have_broken_ss_family=yes
13047else
13048  have_broken_ss_family=no
13049
13050fi
13051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13052      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_broken_ss_family" >&5
13053$as_echo "$have_broken_ss_family" >&6; }
13054      if test x$have_broken_ss_family = xyes ; then
13055
13056$as_echo "#define HAVE_BROKEN_SS_FAMILY /**/" >>confdefs.h
13057
13058
13059$as_echo "#define ss_family __ss_family" >>confdefs.h
13060
13061      else
13062        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ss_family and __ss_family not found" >&5
13063$as_echo "$as_me: WARNING: ss_family and __ss_family not found" >&2;}
13064      fi
13065    fi
13066
13067    have_getaddrinfo=no
13068    ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13069if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13070  have_getaddrinfo=yes
13071fi
13072
13073    if test $have_getaddrinfo != yes; then
13074      for lib in bsd socket inet; do
13075        as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_getaddrinfo" | $as_tr_sh`
13076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib" >&5
13077$as_echo_n "checking for getaddrinfo in -l$lib... " >&6; }
13078if eval \${$as_ac_Lib+:} false; then :
13079  $as_echo_n "(cached) " >&6
13080else
13081  ac_check_lib_save_LIBS=$LIBS
13082LIBS="-l$lib  $LIBS"
13083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084/* end confdefs.h.  */
13085
13086/* Override any GCC internal prototype to avoid an error.
13087   Use char because int might match the return type of a GCC
13088   builtin and then its argument prototype would still apply.  */
13089#ifdef __cplusplus
13090extern "C"
13091#endif
13092char getaddrinfo ();
13093int
13094main ()
13095{
13096return getaddrinfo ();
13097  ;
13098  return 0;
13099}
13100_ACEOF
13101if ac_fn_c_try_link "$LINENO"; then :
13102  eval "$as_ac_Lib=yes"
13103else
13104  eval "$as_ac_Lib=no"
13105fi
13106rm -f core conftest.err conftest.$ac_objext \
13107    conftest$ac_exeext conftest.$ac_ext
13108LIBS=$ac_check_lib_save_LIBS
13109fi
13110eval ac_res=\$$as_ac_Lib
13111	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13112$as_echo "$ac_res" >&6; }
13113if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
13114  LIBS="$LIBS -l$lib";have_getaddrinfo=yes;break
13115fi
13116
13117      done
13118    fi
13119
13120    if test $have_getaddrinfo = yes; then
13121
13122$as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
13123
13124    fi
13125  fi
13126fi
13127
13128
13129ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
13130if test "x$ac_cv_func_isnan" = xyes; then :
13131
13132$as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
13133
13134else
13135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
13136$as_echo_n "checking for isnan in -lm... " >&6; }
13137if ${ac_cv_lib_m_isnan+:} false; then :
13138  $as_echo_n "(cached) " >&6
13139else
13140  ac_check_lib_save_LIBS=$LIBS
13141LIBS="-lm  $LIBS"
13142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143/* end confdefs.h.  */
13144
13145/* Override any GCC internal prototype to avoid an error.
13146   Use char because int might match the return type of a GCC
13147   builtin and then its argument prototype would still apply.  */
13148#ifdef __cplusplus
13149extern "C"
13150#endif
13151char isnan ();
13152int
13153main ()
13154{
13155return isnan ();
13156  ;
13157  return 0;
13158}
13159_ACEOF
13160if ac_fn_c_try_link "$LINENO"; then :
13161  ac_cv_lib_m_isnan=yes
13162else
13163  ac_cv_lib_m_isnan=no
13164fi
13165rm -f core conftest.err conftest.$ac_objext \
13166    conftest$ac_exeext conftest.$ac_ext
13167LIBS=$ac_check_lib_save_LIBS
13168fi
13169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
13170$as_echo "$ac_cv_lib_m_isnan" >&6; }
13171if test "x$ac_cv_lib_m_isnan" = xyes; then :
13172
13173$as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
13174
13175fi
13176
13177fi
13178
13179
13180ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
13181if test "x$ac_cv_func_isinf" = xyes; then :
13182
13183$as_echo "#define HAVE_ISINF /**/" >>confdefs.h
13184
13185else
13186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in -lm" >&5
13187$as_echo_n "checking for isinf in -lm... " >&6; }
13188if ${ac_cv_lib_m_isinf+:} false; then :
13189  $as_echo_n "(cached) " >&6
13190else
13191  ac_check_lib_save_LIBS=$LIBS
13192LIBS="-lm  $LIBS"
13193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194/* end confdefs.h.  */
13195
13196/* Override any GCC internal prototype to avoid an error.
13197   Use char because int might match the return type of a GCC
13198   builtin and then its argument prototype would still apply.  */
13199#ifdef __cplusplus
13200extern "C"
13201#endif
13202char isinf ();
13203int
13204main ()
13205{
13206return isinf ();
13207  ;
13208  return 0;
13209}
13210_ACEOF
13211if ac_fn_c_try_link "$LINENO"; then :
13212  ac_cv_lib_m_isinf=yes
13213else
13214  ac_cv_lib_m_isinf=no
13215fi
13216rm -f core conftest.err conftest.$ac_objext \
13217    conftest$ac_exeext conftest.$ac_ext
13218LIBS=$ac_check_lib_save_LIBS
13219fi
13220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isinf" >&5
13221$as_echo "$ac_cv_lib_m_isinf" >&6; }
13222if test "x$ac_cv_lib_m_isinf" = xyes; then :
13223
13224$as_echo "#define HAVE_ISINF /**/" >>confdefs.h
13225
13226fi
13227
13228fi
13229
13230
13231XML_LIBDIR='-L${libdir}'
13232XML_INCLUDEDIR='-I${includedir}/libxml2'
13233
13234XML_CFLAGS=""
13235RDL_LIBS=""
13236
13237if test "${GCC}" != "yes" ; then
13238    case "${host}" in
13239          hppa*-*-hpux* )
13240	       CFLAGS="${CFLAGS} -Wp,-H30000"
13241	       ;;
13242          *-dec-osf* )
13243               CFLAGS="${CFLAGS} -ieee"
13244               ;;
13245	  alpha*-*-linux* )
13246	       CFLAGS="${CFLAGS} -ieee"
13247	       ;;
13248    esac
13249else
13250    if test "$with_fexceptions" = "yes"
13251    then
13252        #
13253	# Not activated by default because this inflates the code size
13254	# Used to allow propagation of C++ exceptions through the library
13255	#
13256	CFLAGS="${CFLAGS} -fexceptions"
13257    fi
13258
13259    CFLAGS="${CFLAGS} -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls"
13260    case "${host}" in
13261          alpha*-*-linux* )
13262	       CFLAGS="${CFLAGS} -mieee"
13263	       ;;
13264	  alpha*-*-osf* )
13265	       CFLAGS="${CFLAGS} -mieee"
13266	       ;;
13267    esac
13268fi
13269case ${host} in
13270    *-*-solaris*)
13271        XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
13272        ;;
13273    hppa*-hp-mpeix)
13274        NEED_TRIO=1
13275	;;
13276    *-*-mingw* | *-*-cygwin* | *-*-msvc* )
13277        # If the host is Windows, and shared libraries are disabled, we
13278        # need to add -DLIBXML_STATIC to CFLAGS in order for linking to
13279        # work properly (without it, xmlexports.h would force the use of
13280        # DLL imports, which obviously aren't present in a static
13281        # library).
13282        if test "x$enable_shared" = "xno"; then
13283            XML_CFLAGS="$XML_CFLAGS -DLIBXML_STATIC"
13284            CFLAGS="$CFLAGS -DLIBXML_STATIC"
13285        fi
13286        ;;
13287esac
13288
13289
13290
13291PYTHON_VERSION=
13292PYTHON_INCLUDES=
13293PYTHON_SITE_PACKAGES=
13294PYTHON_TESTS=
13295pythondir=
13296if test "$with_python" != "no" ; then
13297    if test -x "$with_python/bin/python"
13298    then
13299        echo Found python in $with_python/bin/python
13300        PYTHON="$with_python/bin/python"
13301    else
13302	if test -x "$with_python"
13303	then
13304	    echo Found python in $with_python
13305	    PYTHON="$with_python"
13306	else
13307	    if test -x "$PYTHON"
13308	    then
13309	        echo Found python in environment PYTHON=$PYTHON
13310		with_python=`$PYTHON -c "import sys; print sys.exec_prefix"`
13311	    else
13312		# Extract the first word of "python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
13313set dummy python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13315$as_echo_n "checking for $ac_word... " >&6; }
13316if ${ac_cv_path_PYTHON+:} false; then :
13317  $as_echo_n "(cached) " >&6
13318else
13319  case $PYTHON in
13320  [\\/]* | ?:[\\/]*)
13321  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13322  ;;
13323  *)
13324  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325for as_dir in $PATH
13326do
13327  IFS=$as_save_IFS
13328  test -z "$as_dir" && as_dir=.
13329    for ac_exec_ext in '' $ac_executable_extensions; do
13330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13331    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333    break 2
13334  fi
13335done
13336  done
13337IFS=$as_save_IFS
13338
13339  ;;
13340esac
13341fi
13342PYTHON=$ac_cv_path_PYTHON
13343if test -n "$PYTHON"; then
13344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13345$as_echo "$PYTHON" >&6; }
13346else
13347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348$as_echo "no" >&6; }
13349fi
13350
13351
13352	    fi
13353	fi
13354    fi
13355    if test "$PYTHON" != ""
13356    then
13357        PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"`
13358	echo Found Python version $PYTHON_VERSION
13359    fi
13360    if test "$PYTHON_VERSION" != ""
13361    then
13362	if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
13363	   -d $with_python/lib/python$PYTHON_VERSION/site-packages
13364	then
13365	    PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
13366	    PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
13367	else
13368	    if test -r $prefix/include/python$PYTHON_VERSION/Python.h
13369	    then
13370	        PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
13371	        PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
13372	    else
13373		if test -r /usr/include/python$PYTHON_VERSION/Python.h
13374		then
13375		    PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
13376	            PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
13377		else
13378		    echo could not find python$PYTHON_VERSION/Python.h
13379		fi
13380	    fi
13381	    if test ! -d "$PYTHON_SITE_PACKAGES"
13382	    then
13383		    PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
13384	    fi
13385	fi
13386	PYTHON_LIBS=`python$PYTHON_VERSION-config --ldflags`
13387    fi
13388    if test "$with_python" != ""
13389    then
13390        pythondir='$(PYTHON_SITE_PACKAGES)'
13391    else
13392        pythondir='$(libdir)/python$(PYTHON_VERSION)/site-packages'
13393    fi
13394else
13395    PYTHON=
13396fi
13397 if test "$PYTHON_INCLUDES" != ""; then
13398  WITH_PYTHON_TRUE=
13399  WITH_PYTHON_FALSE='#'
13400else
13401  WITH_PYTHON_TRUE='#'
13402  WITH_PYTHON_FALSE=
13403fi
13404
13405if test "$PYTHON_INCLUDES" != ""
13406then
13407    PYTHON_SUBDIR=python
13408else
13409    PYTHON_SUBDIR=
13410fi
13411
13412
13413
13414
13415WITH_MODULES=0
13416TEST_MODULES=
13417
13418if test "$with_modules" != "no" ; then
13419 case "$host" in
13420  *-*-cygwin*)
13421  MODULE_EXTENSION=".dll"
13422  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lcygwin" >&5
13423$as_echo_n "checking for dlopen in -lcygwin... " >&6; }
13424if ${ac_cv_lib_cygwin_dlopen+:} false; then :
13425  $as_echo_n "(cached) " >&6
13426else
13427  ac_check_lib_save_LIBS=$LIBS
13428LIBS="-lcygwin  $LIBS"
13429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430/* end confdefs.h.  */
13431
13432/* Override any GCC internal prototype to avoid an error.
13433   Use char because int might match the return type of a GCC
13434   builtin and then its argument prototype would still apply.  */
13435#ifdef __cplusplus
13436extern "C"
13437#endif
13438char dlopen ();
13439int
13440main ()
13441{
13442return dlopen ();
13443  ;
13444  return 0;
13445}
13446_ACEOF
13447if ac_fn_c_try_link "$LINENO"; then :
13448  ac_cv_lib_cygwin_dlopen=yes
13449else
13450  ac_cv_lib_cygwin_dlopen=no
13451fi
13452rm -f core conftest.err conftest.$ac_objext \
13453    conftest$ac_exeext conftest.$ac_ext
13454LIBS=$ac_check_lib_save_LIBS
13455fi
13456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cygwin_dlopen" >&5
13457$as_echo "$ac_cv_lib_cygwin_dlopen" >&6; }
13458if test "x$ac_cv_lib_cygwin_dlopen" = xyes; then :
13459
13460    WITH_MODULES=1
13461    MODULE_PLATFORM_LIBS=
13462
13463$as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
13464
13465
13466fi
13467
13468  ;;
13469  *-*-mingw*)
13470  MODULE_EXTENSION=".dll"
13471  WITH_MODULES=1
13472  ;;
13473  *)
13474  ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13475if test "x$ac_cv_func_shl_load" = xyes; then :
13476  libxml_have_shl_load=yes
13477else
13478
13479    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13480$as_echo_n "checking for shl_load in -ldld... " >&6; }
13481if ${ac_cv_lib_dld_shl_load+:} false; then :
13482  $as_echo_n "(cached) " >&6
13483else
13484  ac_check_lib_save_LIBS=$LIBS
13485LIBS="-ldld  $LIBS"
13486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487/* end confdefs.h.  */
13488
13489/* Override any GCC internal prototype to avoid an error.
13490   Use char because int might match the return type of a GCC
13491   builtin and then its argument prototype would still apply.  */
13492#ifdef __cplusplus
13493extern "C"
13494#endif
13495char shl_load ();
13496int
13497main ()
13498{
13499return shl_load ();
13500  ;
13501  return 0;
13502}
13503_ACEOF
13504if ac_fn_c_try_link "$LINENO"; then :
13505  ac_cv_lib_dld_shl_load=yes
13506else
13507  ac_cv_lib_dld_shl_load=no
13508fi
13509rm -f core conftest.err conftest.$ac_objext \
13510    conftest$ac_exeext conftest.$ac_ext
13511LIBS=$ac_check_lib_save_LIBS
13512fi
13513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13514$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13515if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13516
13517      MODULE_PLATFORM_LIBS="-ldld"
13518      libxml_have_shl_load=yes
13519else
13520
13521      ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13522if test "x$ac_cv_func_dlopen" = xyes; then :
13523  libxml_have_dlopen=yes
13524else
13525
13526        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13527$as_echo_n "checking for dlopen in -ldl... " >&6; }
13528if ${ac_cv_lib_dl_dlopen+:} false; then :
13529  $as_echo_n "(cached) " >&6
13530else
13531  ac_check_lib_save_LIBS=$LIBS
13532LIBS="-ldl  $LIBS"
13533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534/* end confdefs.h.  */
13535
13536/* Override any GCC internal prototype to avoid an error.
13537   Use char because int might match the return type of a GCC
13538   builtin and then its argument prototype would still apply.  */
13539#ifdef __cplusplus
13540extern "C"
13541#endif
13542char dlopen ();
13543int
13544main ()
13545{
13546return dlopen ();
13547  ;
13548  return 0;
13549}
13550_ACEOF
13551if ac_fn_c_try_link "$LINENO"; then :
13552  ac_cv_lib_dl_dlopen=yes
13553else
13554  ac_cv_lib_dl_dlopen=no
13555fi
13556rm -f core conftest.err conftest.$ac_objext \
13557    conftest$ac_exeext conftest.$ac_ext
13558LIBS=$ac_check_lib_save_LIBS
13559fi
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13561$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13562if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13563
13564          MODULE_PLATFORM_LIBS="-ldl"
13565          libxml_have_dlopen=yes
13566fi
13567
13568fi
13569
13570fi
13571
13572fi
13573
13574
13575  if test "${libxml_have_shl_load}" = "yes"; then
13576    MODULE_EXTENSION=".sl"
13577    WITH_MODULES=1
13578
13579$as_echo "#define HAVE_SHLLOAD /**/" >>confdefs.h
13580
13581  fi
13582
13583  if test "${libxml_have_dlopen}" = "yes"; then
13584    case "${host}" in
13585      *-*-hpux* )
13586	MODULE_EXTENSION=".sl"
13587	;;
13588      * )
13589	MODULE_EXTENSION=".so"
13590	;;
13591    esac
13592
13593    WITH_MODULES=1
13594
13595$as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
13596
13597  fi
13598 ;;
13599 esac
13600fi
13601
13602if test "${WITH_MODULES}" = "1"; then
13603  TEST_MODULES="ModuleTests"
13604fi
13605
13606
13607
13608
13609
13610
13611
13612if [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ] || \
13613   [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/home/veillard/libxml2" ] || \
13614   [ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxml2" ]
13615   then
13616    if test "$with_minimum" != "yes"
13617    then
13618	if test "${with_mem_debug}" = "" ; then
13619	    echo Activating memory debugging
13620	    with_mem_debug="yes"
13621	    with_run_debug="yes"
13622	fi
13623	if test "${with_docbook}" = "" ; then
13624	    with_docbook="yes"
13625	fi
13626    fi
13627    if test "${GCC}" = "yes" ; then
13628    CFLAGS="-g -O -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wall"
13629    fi
13630    STATIC_BINARIES="-static"
13631else
13632    STATIC_BINARIES=
13633fi
13634
13635
13636
13637if test "${NEED_TRIO}" = "1" ; then
13638    echo Adding trio library for string functions
13639    WITH_TRIO=1
13640else
13641    WITH_TRIO=0
13642fi
13643 if test "${NEED_TRIO}" = "1"; then
13644  WITH_TRIO_SOURCES_TRUE=
13645  WITH_TRIO_SOURCES_FALSE='#'
13646else
13647  WITH_TRIO_SOURCES_TRUE='#'
13648  WITH_TRIO_SOURCES_FALSE=
13649fi
13650
13651
13652
13653echo Checking configuration requirements
13654
13655THREAD_LIBS=""
13656BASE_THREAD_LIBS=""
13657WITH_THREADS=0
13658THREAD_CFLAGS=""
13659TEST_THREADS=""
13660THREADS_W32=""
13661
13662if test "$with_threads" = "no" ; then
13663    echo Disabling multithreaded support
13664else
13665    echo Enabling multithreaded support
13666        if test "$with_threads" = "pthread" || test "$with_threads" = "" || test "$with_threads" = "yes" ; then
13667        ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
13668if test "x$ac_cv_header_pthread_h" = xyes; then :
13669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
13670$as_echo_n "checking for pthread_join in -lpthread... " >&6; }
13671if ${ac_cv_lib_pthread_pthread_join+:} false; then :
13672  $as_echo_n "(cached) " >&6
13673else
13674  ac_check_lib_save_LIBS=$LIBS
13675LIBS="-lpthread  $LIBS"
13676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677/* end confdefs.h.  */
13678
13679/* Override any GCC internal prototype to avoid an error.
13680   Use char because int might match the return type of a GCC
13681   builtin and then its argument prototype would still apply.  */
13682#ifdef __cplusplus
13683extern "C"
13684#endif
13685char pthread_join ();
13686int
13687main ()
13688{
13689return pthread_join ();
13690  ;
13691  return 0;
13692}
13693_ACEOF
13694if ac_fn_c_try_link "$LINENO"; then :
13695  ac_cv_lib_pthread_pthread_join=yes
13696else
13697  ac_cv_lib_pthread_pthread_join=no
13698fi
13699rm -f core conftest.err conftest.$ac_objext \
13700    conftest$ac_exeext conftest.$ac_ext
13701LIBS=$ac_check_lib_save_LIBS
13702fi
13703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
13704$as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
13705if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
13706
13707	       THREAD_LIBS="-lpthread"
13708
13709$as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
13710
13711
13712$as_echo "#define HAVE_PTHREAD_H /**/" >>confdefs.h
13713
13714	       WITH_THREADS="1"
13715fi
13716
13717fi
13718
13719
13720    fi
13721    case $host_os in
13722       *mingw32*) if test "$THREAD_LIBS" != "-lpthread"; then
13723               WITH_THREADS="1"
13724               THREADS_W32="Win32"
13725	       THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS"
13726           fi
13727       ;;
13728       *cygwin*) THREAD_LIBS=""
13729       ;;
13730       *beos*) WITH_THREADS="1"
13731	   THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_BEOS_THREADS"
13732       ;;
13733       *linux*)
13734           if test "${GCC}" = "yes" ; then
13735	       GCC_VERSION=`${CC} --version | head -1 | awk '{print $3}'`
13736	       GCC_MAJOR=`echo ${GCC_VERSION} | sed 's+\..*++'`
13737	       GCC_MEDIUM=`echo ${GCC_VERSION} | sed 's+[0-9]*\.++' | sed 's+\..*++'`
13738	       if test "${THREAD_LIBS}" = "-lpthread" ; then
13739	           if expr ${GCC_MEDIUM} \> 2 \& ${GCC_MAJOR} = 3 > /dev/null
13740		   then
13741		       THREAD_LIBS=""
13742		       BASE_THREAD_LIBS="-lpthread"
13743		   else
13744		   if expr ${GCC_MAJOR} \> 3 > /dev/null
13745		   then
13746		       THREAD_LIBS=""
13747		       BASE_THREAD_LIBS="-lpthread"
13748		   else
13749		       echo old GCC disabling weak symbols for pthread
13750		   fi
13751		   fi
13752	       fi
13753	   fi
13754       ;;
13755    esac
13756    if test "$WITH_THREADS" = "1" ; then
13757	THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
13758	TEST_THREADS="Threadtests"
13759    fi
13760fi
13761if test "$with_thread_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then
13762    THREAD_CFLAGS="$THREAD_CFLAGS -DLIBXML_THREAD_ALLOC_ENABLED"
13763fi
13764
13765
13766
13767
13768
13769
13770
13771
13772if test "$with_history" = "yes" ; then
13773    echo Enabling xmllint shell history
13774            unset tcap
13775    for termlib in ncurses curses termcap terminfo termlib; do
13776	as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
13777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -l${termlib}" >&5
13778$as_echo_n "checking for tputs in -l${termlib}... " >&6; }
13779if eval \${$as_ac_Lib+:} false; then :
13780  $as_echo_n "(cached) " >&6
13781else
13782  ac_check_lib_save_LIBS=$LIBS
13783LIBS="-l${termlib}  $LIBS"
13784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785/* end confdefs.h.  */
13786
13787/* Override any GCC internal prototype to avoid an error.
13788   Use char because int might match the return type of a GCC
13789   builtin and then its argument prototype would still apply.  */
13790#ifdef __cplusplus
13791extern "C"
13792#endif
13793char tputs ();
13794int
13795main ()
13796{
13797return tputs ();
13798  ;
13799  return 0;
13800}
13801_ACEOF
13802if ac_fn_c_try_link "$LINENO"; then :
13803  eval "$as_ac_Lib=yes"
13804else
13805  eval "$as_ac_Lib=no"
13806fi
13807rm -f core conftest.err conftest.$ac_objext \
13808    conftest$ac_exeext conftest.$ac_ext
13809LIBS=$ac_check_lib_save_LIBS
13810fi
13811eval ac_res=\$$as_ac_Lib
13812	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13813$as_echo "$ac_res" >&6; }
13814if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
13815  tcap="-l$termlib"
13816fi
13817
13818	test -n "$tcap" && break
13819    done
13820
13821    ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13822if test "x$ac_cv_header_readline_history_h" = xyes; then :
13823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lhistory" >&5
13824$as_echo_n "checking for append_history in -lhistory... " >&6; }
13825if ${ac_cv_lib_history_append_history+:} false; then :
13826  $as_echo_n "(cached) " >&6
13827else
13828  ac_check_lib_save_LIBS=$LIBS
13829LIBS="-lhistory  $LIBS"
13830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831/* end confdefs.h.  */
13832
13833/* Override any GCC internal prototype to avoid an error.
13834   Use char because int might match the return type of a GCC
13835   builtin and then its argument prototype would still apply.  */
13836#ifdef __cplusplus
13837extern "C"
13838#endif
13839char append_history ();
13840int
13841main ()
13842{
13843return append_history ();
13844  ;
13845  return 0;
13846}
13847_ACEOF
13848if ac_fn_c_try_link "$LINENO"; then :
13849  ac_cv_lib_history_append_history=yes
13850else
13851  ac_cv_lib_history_append_history=no
13852fi
13853rm -f core conftest.err conftest.$ac_objext \
13854    conftest$ac_exeext conftest.$ac_ext
13855LIBS=$ac_check_lib_save_LIBS
13856fi
13857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_history_append_history" >&5
13858$as_echo "$ac_cv_lib_history_append_history" >&6; }
13859if test "x$ac_cv_lib_history_append_history" = xyes; then :
13860
13861	   RDL_LIBS="-lhistory"
13862
13863$as_echo "#define HAVE_LIBHISTORY /**/" >>confdefs.h
13864
13865fi
13866
13867fi
13868
13869
13870    ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13871if test "x$ac_cv_header_readline_readline_h" = xyes; then :
13872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13873$as_echo_n "checking for readline in -lreadline... " >&6; }
13874if ${ac_cv_lib_readline_readline+:} false; then :
13875  $as_echo_n "(cached) " >&6
13876else
13877  ac_check_lib_save_LIBS=$LIBS
13878LIBS="-lreadline $tcap $LIBS"
13879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880/* end confdefs.h.  */
13881
13882/* Override any GCC internal prototype to avoid an error.
13883   Use char because int might match the return type of a GCC
13884   builtin and then its argument prototype would still apply.  */
13885#ifdef __cplusplus
13886extern "C"
13887#endif
13888char readline ();
13889int
13890main ()
13891{
13892return readline ();
13893  ;
13894  return 0;
13895}
13896_ACEOF
13897if ac_fn_c_try_link "$LINENO"; then :
13898  ac_cv_lib_readline_readline=yes
13899else
13900  ac_cv_lib_readline_readline=no
13901fi
13902rm -f core conftest.err conftest.$ac_objext \
13903    conftest$ac_exeext conftest.$ac_ext
13904LIBS=$ac_check_lib_save_LIBS
13905fi
13906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13907$as_echo "$ac_cv_lib_readline_readline" >&6; }
13908if test "x$ac_cv_lib_readline_readline" = xyes; then :
13909
13910	   RDL_LIBS="-lreadline $RDL_LIBS $tcap"
13911
13912$as_echo "#define HAVE_LIBREADLINE /**/" >>confdefs.h
13913
13914fi
13915
13916fi
13917
13918
13919    if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then
13920	CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include"
13921	RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS"
13922    fi
13923fi
13924
13925if test "$with_tree" = "no" ; then
13926    echo Disabling DOM like tree manipulation APIs
13927    WITH_TREE=0
13928else
13929    WITH_TREE=1
13930fi
13931
13932
13933if test "$with_ftp" = "no" ; then
13934    echo Disabling FTP support
13935    WITH_FTP=0
13936    FTP_OBJ=
13937else
13938    WITH_FTP=1
13939    FTP_OBJ=nanoftp.o
13940fi
13941
13942
13943
13944if test "$with_http" = "no" ; then
13945    echo Disabling HTTP support
13946    WITH_HTTP=0
13947    HTTP_OBJ=
13948else
13949    WITH_HTTP=1
13950    HTTP_OBJ=nanohttp.o
13951fi
13952
13953
13954
13955if test "$with_legacy" = "no" ; then
13956    echo Disabling deprecated APIs
13957    WITH_LEGACY=0
13958else
13959    WITH_LEGACY=1
13960fi
13961
13962
13963if test "$with_reader" = "no" ; then
13964    echo Disabling the xmlReader parsing interface
13965    WITH_READER=0
13966    READER_TEST=
13967else
13968    WITH_READER=1
13969    READER_TEST=Readertests
13970    if test "$with_push" = "no" ; then
13971        echo xmlReader requires Push interface - enabling it
13972	with_push=yes
13973    fi
13974fi
13975
13976
13977
13978if test "$with_writer" = "no" ; then
13979    echo Disabling the xmlWriter saving interface
13980    WITH_WRITER=0
13981#    WRITER_TEST=
13982else
13983    WITH_WRITER=1
13984#    WRITER_TEST=Writertests
13985    if test "$with_push" = "no" ; then
13986        echo xmlWriter requires Push interface - enabling it
13987	with_push=yes
13988    fi
13989    if test "$with_output" = "no" ; then
13990        echo xmlWriter requires Output interface - enabling it
13991	with_output=yes
13992    fi
13993fi
13994
13995#AC_SUBST(WRITER_TEST)
13996
13997if test "$with_pattern" = "no" ; then
13998    echo Disabling the xmlPattern parsing interface
13999    WITH_PATTERN=0
14000    TEST_PATTERN=
14001else
14002    WITH_PATTERN=1
14003    TEST_PATTERN=Patterntests
14004fi
14005
14006
14007
14008if test "$with_sax1" = "no" ; then
14009    echo Disabling the older SAX1 interface
14010    WITH_SAX1=0
14011    TEST_SAX=
14012else
14013    WITH_SAX1=1
14014    TEST_SAX=SAXtests
14015fi
14016
14017
14018
14019if test "$with_push" = "no" ; then
14020    echo Disabling the PUSH parser interfaces
14021    WITH_PUSH=0
14022    TEST_PUSH=
14023else
14024    WITH_PUSH=1
14025    TEST_PUSH="XMLPushtests"
14026fi
14027
14028
14029
14030if test "$with_html" = "no" ; then
14031    echo Disabling HTML support
14032    WITH_HTML=0
14033    HTML_OBJ=
14034    TEST_HTML=
14035else
14036    WITH_HTML=1
14037    HTML_OBJ="HTMLparser.o HTMLtree.o"
14038    TEST_HTML=HTMLtests
14039    if test "$with_push" != "no" ; then
14040        TEST_PHTML=HTMLPushtests
14041    else
14042        TEST_PHTML=
14043    fi
14044fi
14045
14046
14047
14048
14049
14050if test "$with_valid" = "no" ; then
14051    echo Disabling DTD validation support
14052    WITH_VALID=0
14053    TEST_VALID=
14054    TEST_VTIME=
14055else
14056    WITH_VALID=1
14057    TEST_VALID=Validtests
14058    TEST_VTIME=VTimingtests
14059fi
14060
14061
14062
14063
14064if test "$with_catalog" = "no" ; then
14065    echo Disabling Catalog support
14066    WITH_CATALOG=0
14067    CATALOG_OBJ=
14068    TEST_CATALOG=
14069else
14070    WITH_CATALOG=1
14071    CATALOG_OBJ="catalog.o"
14072    TEST_CATALOG=Catatests
14073fi
14074
14075
14076
14077
14078if test "$with_docbook" = "no" ; then
14079    echo Disabling Docbook support
14080    WITH_DOCB=0
14081    DOCB_OBJ=
14082else
14083    WITH_DOCB=1
14084    DOCB_OBJ="DOCBparser.o"
14085fi
14086
14087
14088
14089
14090if test "$with_xptr" = "no" ; then
14091    echo Disabling XPointer support
14092    WITH_XPTR=0
14093    XPTR_OBJ=
14094    TEST_XPTR=
14095else
14096    WITH_XPTR=1
14097    XPTR_OBJ=xpointer.o
14098    TEST_XPTR=XPtrtests
14099    if test "$with_xpath" = "no" ; then
14100        echo XPointer requires XPath support - enabling it
14101	with_xpath=yes
14102    fi
14103fi
14104
14105
14106
14107
14108if test "$with_c14n" = "no" ; then
14109    echo Disabling C14N support
14110    WITH_C14N=0
14111    C14N_OBJ=
14112    TEST_C14N=
14113else
14114    WITH_C14N=1
14115    C14N_OBJ="c14n.c"
14116    TEST_C14N=C14Ntests
14117    if test "$with_xpath" = "no" ; then
14118        echo C14N requires XPath support - enabling it
14119	with_xpath=yes
14120    fi
14121fi
14122
14123
14124
14125
14126if test "$with_xinclude" = "no" ; then
14127    echo Disabling XInclude support
14128    WITH_XINCLUDE=0
14129    XINCLUDE_OBJ=
14130    with_xinclude="no"
14131    TEST_XINCLUDE=
14132else
14133    WITH_XINCLUDE=1
14134    XINCLUDE_OBJ=xinclude.o
14135    TEST_XINCLUDE=XIncludetests
14136    if test "$with_xpath" = "no" ; then
14137        echo XInclude requires XPath support - enabling it
14138	with_xpath=yes
14139    fi
14140fi
14141
14142
14143
14144
14145if test "$with_xpath" = "no" ; then
14146    echo Disabling XPATH support
14147    WITH_XPATH=0
14148    XPATH_OBJ=
14149    TEST_XPATH=
14150else
14151    WITH_XPATH=1
14152    XPATH_OBJ=xpath.o
14153    TEST_XPATH=XPathtests
14154fi
14155
14156
14157
14158
14159if test "$with_output" = "no" ; then
14160    echo Disabling serialization/saving support
14161    WITH_OUTPUT=0
14162else
14163    WITH_OUTPUT=1
14164fi
14165
14166
14167WITH_ICONV=0
14168if test "$with_iconv" = "no" ; then
14169    echo Disabling ICONV support
14170else
14171    if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
14172	CPPFLAGS="${CPPFLAGS} -I$with_iconv/include"
14173	# Export this since our headers include iconv.h
14174	XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include"
14175	ICONV_LIBS="-L$with_iconv/lib"
14176    fi
14177
14178    ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
14179if test "x$ac_cv_header_iconv_h" = xyes; then :
14180  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14181$as_echo_n "checking for iconv... " >&6; }
14182	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183/* end confdefs.h.  */
14184#include <stdlib.h>
14185#include <iconv.h>
14186int
14187main ()
14188{
14189
14190iconv_t cd = iconv_open ("","");
14191iconv (cd, NULL, NULL, NULL, NULL);
14192  ;
14193  return 0;
14194}
14195_ACEOF
14196if ac_fn_c_try_link "$LINENO"; then :
14197
14198	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14199$as_echo "yes" >&6; }
14200	    WITH_ICONV=1
14201else
14202
14203	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14204$as_echo "no" >&6; }
14205	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
14206$as_echo_n "checking for iconv in -liconv... " >&6; }
14207
14208	    _ldflags="${LDFLAGS}"
14209	    _libs="${LIBS}"
14210	    LDFLAGS="${LDFLAGS} ${ICONV_LIBS}"
14211	    LIBS="${LIBS} -liconv"
14212
14213	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214/* end confdefs.h.  */
14215#include <stdlib.h>
14216#include <iconv.h>
14217int
14218main ()
14219{
14220
14221iconv_t cd = iconv_open ("","");
14222iconv (cd, NULL, NULL, NULL, NULL);
14223  ;
14224  return 0;
14225}
14226_ACEOF
14227if ac_fn_c_try_link "$LINENO"; then :
14228
14229		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14230$as_echo "yes" >&6; }
14231		WITH_ICONV=1
14232		ICONV_LIBS="${ICONV_LIBS} -liconv"
14233		LIBS="${_libs}"
14234		LDFLAGS="${_ldflags}"
14235else
14236
14237		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14238$as_echo "no" >&6; }
14239		LIBS="${_libs}"
14240		LDFLAGS="${_ldflags}"
14241fi
14242rm -f core conftest.err conftest.$ac_objext \
14243    conftest$ac_exeext conftest.$ac_ext
14244fi
14245rm -f core conftest.err conftest.$ac_objext \
14246    conftest$ac_exeext conftest.$ac_ext
14247fi
14248
14249
14250
14251	if test "$WITH_ICONV" = "1" ; then
14252		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14253$as_echo_n "checking for iconv declaration... " >&6; }
14254		if ${xml_cv_iconv_arg2+:} false; then :
14255  $as_echo_n "(cached) " >&6
14256else
14257
14258			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259/* end confdefs.h.  */
14260#include <stdlib.h>
14261#include <iconv.h>
14262extern
14263#ifdef __cplusplus
14264"C"
14265#endif
14266#if defined(__STDC__) || defined(__cplusplus)
14267size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14268#else
14269size_t iconv();
14270#endif
14271
14272int
14273main ()
14274{
14275
14276  ;
14277  return 0;
14278}
14279_ACEOF
14280if ac_fn_c_try_compile "$LINENO"; then :
14281  xml_cv_iconv_arg2=""
14282else
14283  xml_cv_iconv_arg2="const"
14284fi
14285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14286fi
14287
14288
14289		xml_cv_iconv_decl="extern size_t iconv (iconv_t cd, $xml_cv_iconv_arg2 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14290		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${xml_xxx:-
14291	}$xml_cv_iconv_decl" >&5
14292$as_echo "${xml_xxx:-
14293	}$xml_cv_iconv_decl" >&6; }
14294
14295cat >>confdefs.h <<_ACEOF
14296#define ICONV_CONST $xml_cv_iconv_arg2
14297_ACEOF
14298
14299	fi
14300fi
14301case "$host" in
14302	*mingw*) M_LIBS=""
14303	;;
14304	*beos*) M_LIBS=""
14305	;;
14306        *haiku*) M_LIBS=""
14307        ;;
14308	*) M_LIBS="-lm"
14309	;;
14310esac
14311XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS"
14312XML_LIBTOOLLIBS="libxml2.la"
14313
14314
14315WITH_ISO8859X=1
14316if test "$WITH_ICONV" != "1" ; then
14317if test "$with_iso8859x" = "no" ; then
14318    echo Disabling ISO8859X support
14319    WITH_ISO8859X=0
14320fi
14321fi
14322
14323
14324if test "$with_schematron" = "no" ; then
14325    echo "Disabling Schematron support"
14326    WITH_SCHEMATRON=0
14327    TEST_SCHEMATRON=
14328else
14329    echo "Enabled Schematron support"
14330    WITH_SCHEMATRON=1
14331    TEST_SCHEMATRON="Schematrontests"
14332    with_xpath=yes
14333    with_pattern=yes
14334fi
14335
14336
14337
14338if test "$with_schemas" = "no" ; then
14339    echo "Disabling Schemas/Relax-NG support"
14340    WITH_SCHEMAS=0
14341    TEST_SCHEMAS=
14342else
14343    echo "Enabled Schemas/Relax-NG support"
14344    WITH_SCHEMAS=1
14345    TEST_SCHEMAS="Schemastests Relaxtests"
14346    if test "$PYTHON_INCLUDES" != "" ; then
14347        PYTHON_TESTS="$PYTHON_TESTS RelaxNGPythonTests SchemasPythonTests"
14348    fi
14349    with_regexps=yes
14350fi
14351
14352
14353
14354if test "$with_regexps" = "no" ; then
14355    echo Disabling Regexps support
14356    WITH_REGEXPS=0
14357    TEST_REGEXPS=
14358else
14359    WITH_REGEXPS=1
14360    TEST_REGEXPS="Regexptests Automatatests"
14361fi
14362
14363
14364
14365if test "$with_debug" = "no" ; then
14366    echo Disabling DEBUG support
14367    WITH_DEBUG=0
14368    DEBUG_OBJ=
14369    TEST_DEBUG=
14370else
14371    WITH_DEBUG=1
14372    DEBUG_OBJ=debugXML.o
14373    TEST_DEBUG=Scripttests
14374fi
14375
14376
14377
14378
14379if test "$with_mem_debug" = "yes" ; then
14380    if test "$with_thread_alloc" = "yes" ; then
14381        echo Disabling memory debug - cannot use mem-debug with thread-alloc!
14382	WITH_MEM_DEBUG=0
14383    else
14384        echo Enabling memory debug support
14385        WITH_MEM_DEBUG=1
14386    fi
14387else
14388    WITH_MEM_DEBUG=0
14389fi
14390
14391
14392if test "$with_run_debug" = "yes" ; then
14393    echo Enabling runtime debug support
14394    WITH_RUN_DEBUG=1
14395else
14396    WITH_RUN_DEBUG=0
14397fi
14398
14399
14400WIN32_EXTRA_LIBADD=
14401WIN32_EXTRA_LDFLAGS=
14402CYGWIN_EXTRA_LDFLAGS=
14403CYGWIN_EXTRA_PYTHON_LIBADD=
14404case "$host" in
14405 *-*-mingw*)
14406 CPPFLAGS="$CPPFLAGS -DWIN32"
14407 WIN32_EXTRA_LIBADD="-lws2_32"
14408 WIN32_EXTRA_LDFLAGS="-no-undefined"
14409
14410$as_echo "#define _WINSOCKAPI_ 1" >>confdefs.h
14411
14412
14413$as_echo "#define snprintf _snprintf" >>confdefs.h
14414
14415
14416$as_echo "#define vsnprintf _vsnprintf" >>confdefs.h
14417
14418 ;;
14419 *-*-cygwin*)
14420 CYGWIN_EXTRA_LDFLAGS="-no-undefined"
14421 if test "${PYTHON}" != ""
14422 then
14423   CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
14424 fi
14425 ;;
14426esac
14427
14428
14429
14430
14431
14432if test "$with_coverage" = "yes" -a "${GCC}" = "yes"
14433then
14434    echo Enabling code coverage for GCC
14435    CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
14436    LDFLAGS="$LDFLAGS -fprofile-arcs -ftest-coverage"
14437else
14438    echo Disabling code coverage for GCC
14439fi
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462RELDATE=`date +'%a %b %e %Y'`
14463
14464
14465
14466rm -f COPYING.LIB COPYING
14467ln -s Copyright COPYING
14468
14469# keep on one line for cygwin c.f. #130896
14470ac_config_files="$ac_config_files libxml2.spec:libxml.spec.in Makefile include/Makefile include/libxml/Makefile doc/Makefile doc/examples/Makefile doc/devhelp/Makefile example/Makefile python/Makefile python/tests/Makefile xstc/Makefile include/libxml/xmlversion.h xml2-config libxml-2.0.pc libxml-2.0-uninstalled.pc python/setup.py"
14471
14472cat >confcache <<\_ACEOF
14473# This file is a shell script that caches the results of configure
14474# tests run on this system so they can be shared between configure
14475# scripts and configure runs, see configure's option --config-cache.
14476# It is not useful on other systems.  If it contains results you don't
14477# want to keep, you may remove or edit it.
14478#
14479# config.status only pays attention to the cache file if you give it
14480# the --recheck option to rerun configure.
14481#
14482# `ac_cv_env_foo' variables (set or unset) will be overridden when
14483# loading this file, other *unset* `ac_cv_foo' will be assigned the
14484# following values.
14485
14486_ACEOF
14487
14488# The following way of writing the cache mishandles newlines in values,
14489# but we know of no workaround that is simple, portable, and efficient.
14490# So, we kill variables containing newlines.
14491# Ultrix sh set writes to stderr and can't be redirected directly,
14492# and sets the high bit in the cache file unless we assign to the vars.
14493(
14494  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14495    eval ac_val=\$$ac_var
14496    case $ac_val in #(
14497    *${as_nl}*)
14498      case $ac_var in #(
14499      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14500$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14501      esac
14502      case $ac_var in #(
14503      _ | IFS | as_nl) ;; #(
14504      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14505      *) { eval $ac_var=; unset $ac_var;} ;;
14506      esac ;;
14507    esac
14508  done
14509
14510  (set) 2>&1 |
14511    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14512    *${as_nl}ac_space=\ *)
14513      # `set' does not quote correctly, so add quotes: double-quote
14514      # substitution turns \\\\ into \\, and sed turns \\ into \.
14515      sed -n \
14516	"s/'/'\\\\''/g;
14517	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14518      ;; #(
14519    *)
14520      # `set' quotes correctly as required by POSIX, so do not add quotes.
14521      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14522      ;;
14523    esac |
14524    sort
14525) |
14526  sed '
14527     /^ac_cv_env_/b end
14528     t clear
14529     :clear
14530     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14531     t end
14532     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14533     :end' >>confcache
14534if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14535  if test -w "$cache_file"; then
14536    if test "x$cache_file" != "x/dev/null"; then
14537      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14538$as_echo "$as_me: updating cache $cache_file" >&6;}
14539      if test ! -f "$cache_file" || test -h "$cache_file"; then
14540	cat confcache >"$cache_file"
14541      else
14542        case $cache_file in #(
14543        */* | ?:*)
14544	  mv -f confcache "$cache_file"$$ &&
14545	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14546        *)
14547	  mv -f confcache "$cache_file" ;;
14548	esac
14549      fi
14550    fi
14551  else
14552    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14553$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14554  fi
14555fi
14556rm -f confcache
14557
14558test "x$prefix" = xNONE && prefix=$ac_default_prefix
14559# Let make expand exec_prefix.
14560test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14561
14562DEFS=-DHAVE_CONFIG_H
14563
14564ac_libobjs=
14565ac_ltlibobjs=
14566for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14567  # 1. Remove the extension, and $U if already installed.
14568  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14569  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14570  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14571  #    will be set to the directory where LIBOBJS objects are built.
14572  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14573  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14574done
14575LIBOBJS=$ac_libobjs
14576
14577LTLIBOBJS=$ac_ltlibobjs
14578
14579
14580 if test -n "$EXEEXT"; then
14581  am__EXEEXT_TRUE=
14582  am__EXEEXT_FALSE='#'
14583else
14584  am__EXEEXT_TRUE='#'
14585  am__EXEEXT_FALSE=
14586fi
14587
14588if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14589  as_fn_error $? "conditional \"AMDEP\" was never defined.
14590Usually this means the macro was only invoked conditionally." "$LINENO" 5
14591fi
14592if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14593  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14594Usually this means the macro was only invoked conditionally." "$LINENO" 5
14595fi
14596if test -z "${USE_VERSION_SCRIPT_TRUE}" && test -z "${USE_VERSION_SCRIPT_FALSE}"; then
14597  as_fn_error $? "conditional \"USE_VERSION_SCRIPT\" was never defined.
14598Usually this means the macro was only invoked conditionally." "$LINENO" 5
14599fi
14600if test -z "${REBUILD_DOCS_TRUE}" && test -z "${REBUILD_DOCS_FALSE}"; then
14601  as_fn_error $? "conditional \"REBUILD_DOCS\" was never defined.
14602Usually this means the macro was only invoked conditionally." "$LINENO" 5
14603fi
14604if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
14605  as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
14606Usually this means the macro was only invoked conditionally." "$LINENO" 5
14607fi
14608if test -z "${WITH_TRIO_SOURCES_TRUE}" && test -z "${WITH_TRIO_SOURCES_FALSE}"; then
14609  as_fn_error $? "conditional \"WITH_TRIO_SOURCES\" was never defined.
14610Usually this means the macro was only invoked conditionally." "$LINENO" 5
14611fi
14612
14613: "${CONFIG_STATUS=./config.status}"
14614ac_write_fail=0
14615ac_clean_files_save=$ac_clean_files
14616ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14617{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14618$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14619as_write_fail=0
14620cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14621#! $SHELL
14622# Generated by $as_me.
14623# Run this file to recreate the current configuration.
14624# Compiler output produced by configure, useful for debugging
14625# configure, is in config.log if it exists.
14626
14627debug=false
14628ac_cs_recheck=false
14629ac_cs_silent=false
14630
14631SHELL=\${CONFIG_SHELL-$SHELL}
14632export SHELL
14633_ASEOF
14634cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14635## -------------------- ##
14636## M4sh Initialization. ##
14637## -------------------- ##
14638
14639# Be more Bourne compatible
14640DUALCASE=1; export DUALCASE # for MKS sh
14641if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14642  emulate sh
14643  NULLCMD=:
14644  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14645  # is contrary to our usage.  Disable this feature.
14646  alias -g '${1+"$@"}'='"$@"'
14647  setopt NO_GLOB_SUBST
14648else
14649  case `(set -o) 2>/dev/null` in #(
14650  *posix*) :
14651    set -o posix ;; #(
14652  *) :
14653     ;;
14654esac
14655fi
14656
14657
14658as_nl='
14659'
14660export as_nl
14661# Printing a long string crashes Solaris 7 /usr/bin/printf.
14662as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14663as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14664as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14665# Prefer a ksh shell builtin over an external printf program on Solaris,
14666# but without wasting forks for bash or zsh.
14667if test -z "$BASH_VERSION$ZSH_VERSION" \
14668    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14669  as_echo='print -r --'
14670  as_echo_n='print -rn --'
14671elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14672  as_echo='printf %s\n'
14673  as_echo_n='printf %s'
14674else
14675  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14676    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14677    as_echo_n='/usr/ucb/echo -n'
14678  else
14679    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14680    as_echo_n_body='eval
14681      arg=$1;
14682      case $arg in #(
14683      *"$as_nl"*)
14684	expr "X$arg" : "X\\(.*\\)$as_nl";
14685	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14686      esac;
14687      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14688    '
14689    export as_echo_n_body
14690    as_echo_n='sh -c $as_echo_n_body as_echo'
14691  fi
14692  export as_echo_body
14693  as_echo='sh -c $as_echo_body as_echo'
14694fi
14695
14696# The user is always right.
14697if test "${PATH_SEPARATOR+set}" != set; then
14698  PATH_SEPARATOR=:
14699  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14700    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14701      PATH_SEPARATOR=';'
14702  }
14703fi
14704
14705
14706# IFS
14707# We need space, tab and new line, in precisely that order.  Quoting is
14708# there to prevent editors from complaining about space-tab.
14709# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14710# splitting by setting IFS to empty value.)
14711IFS=" ""	$as_nl"
14712
14713# Find who we are.  Look in the path if we contain no directory separator.
14714as_myself=
14715case $0 in #((
14716  *[\\/]* ) as_myself=$0 ;;
14717  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14718for as_dir in $PATH
14719do
14720  IFS=$as_save_IFS
14721  test -z "$as_dir" && as_dir=.
14722    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14723  done
14724IFS=$as_save_IFS
14725
14726     ;;
14727esac
14728# We did not find ourselves, most probably we were run as `sh COMMAND'
14729# in which case we are not to be found in the path.
14730if test "x$as_myself" = x; then
14731  as_myself=$0
14732fi
14733if test ! -f "$as_myself"; then
14734  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14735  exit 1
14736fi
14737
14738# Unset variables that we do not need and which cause bugs (e.g. in
14739# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14740# suppresses any "Segmentation fault" message there.  '((' could
14741# trigger a bug in pdksh 5.2.14.
14742for as_var in BASH_ENV ENV MAIL MAILPATH
14743do eval test x\${$as_var+set} = xset \
14744  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14745done
14746PS1='$ '
14747PS2='> '
14748PS4='+ '
14749
14750# NLS nuisances.
14751LC_ALL=C
14752export LC_ALL
14753LANGUAGE=C
14754export LANGUAGE
14755
14756# CDPATH.
14757(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14758
14759
14760# as_fn_error STATUS ERROR [LINENO LOG_FD]
14761# ----------------------------------------
14762# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14763# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14764# script with STATUS, using 1 if that was 0.
14765as_fn_error ()
14766{
14767  as_status=$1; test $as_status -eq 0 && as_status=1
14768  if test "$4"; then
14769    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14770    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14771  fi
14772  $as_echo "$as_me: error: $2" >&2
14773  as_fn_exit $as_status
14774} # as_fn_error
14775
14776
14777# as_fn_set_status STATUS
14778# -----------------------
14779# Set $? to STATUS, without forking.
14780as_fn_set_status ()
14781{
14782  return $1
14783} # as_fn_set_status
14784
14785# as_fn_exit STATUS
14786# -----------------
14787# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14788as_fn_exit ()
14789{
14790  set +e
14791  as_fn_set_status $1
14792  exit $1
14793} # as_fn_exit
14794
14795# as_fn_unset VAR
14796# ---------------
14797# Portably unset VAR.
14798as_fn_unset ()
14799{
14800  { eval $1=; unset $1;}
14801}
14802as_unset=as_fn_unset
14803# as_fn_append VAR VALUE
14804# ----------------------
14805# Append the text in VALUE to the end of the definition contained in VAR. Take
14806# advantage of any shell optimizations that allow amortized linear growth over
14807# repeated appends, instead of the typical quadratic growth present in naive
14808# implementations.
14809if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14810  eval 'as_fn_append ()
14811  {
14812    eval $1+=\$2
14813  }'
14814else
14815  as_fn_append ()
14816  {
14817    eval $1=\$$1\$2
14818  }
14819fi # as_fn_append
14820
14821# as_fn_arith ARG...
14822# ------------------
14823# Perform arithmetic evaluation on the ARGs, and store the result in the
14824# global $as_val. Take advantage of shells that can avoid forks. The arguments
14825# must be portable across $(()) and expr.
14826if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14827  eval 'as_fn_arith ()
14828  {
14829    as_val=$(( $* ))
14830  }'
14831else
14832  as_fn_arith ()
14833  {
14834    as_val=`expr "$@" || test $? -eq 1`
14835  }
14836fi # as_fn_arith
14837
14838
14839if expr a : '\(a\)' >/dev/null 2>&1 &&
14840   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14841  as_expr=expr
14842else
14843  as_expr=false
14844fi
14845
14846if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14847  as_basename=basename
14848else
14849  as_basename=false
14850fi
14851
14852if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14853  as_dirname=dirname
14854else
14855  as_dirname=false
14856fi
14857
14858as_me=`$as_basename -- "$0" ||
14859$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14860	 X"$0" : 'X\(//\)$' \| \
14861	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14862$as_echo X/"$0" |
14863    sed '/^.*\/\([^/][^/]*\)\/*$/{
14864	    s//\1/
14865	    q
14866	  }
14867	  /^X\/\(\/\/\)$/{
14868	    s//\1/
14869	    q
14870	  }
14871	  /^X\/\(\/\).*/{
14872	    s//\1/
14873	    q
14874	  }
14875	  s/.*/./; q'`
14876
14877# Avoid depending upon Character Ranges.
14878as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14879as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14880as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14881as_cr_digits='0123456789'
14882as_cr_alnum=$as_cr_Letters$as_cr_digits
14883
14884ECHO_C= ECHO_N= ECHO_T=
14885case `echo -n x` in #(((((
14886-n*)
14887  case `echo 'xy\c'` in
14888  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14889  xy)  ECHO_C='\c';;
14890  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14891       ECHO_T='	';;
14892  esac;;
14893*)
14894  ECHO_N='-n';;
14895esac
14896
14897rm -f conf$$ conf$$.exe conf$$.file
14898if test -d conf$$.dir; then
14899  rm -f conf$$.dir/conf$$.file
14900else
14901  rm -f conf$$.dir
14902  mkdir conf$$.dir 2>/dev/null
14903fi
14904if (echo >conf$$.file) 2>/dev/null; then
14905  if ln -s conf$$.file conf$$ 2>/dev/null; then
14906    as_ln_s='ln -s'
14907    # ... but there are two gotchas:
14908    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14909    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14910    # In both cases, we have to default to `cp -p'.
14911    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14912      as_ln_s='cp -p'
14913  elif ln conf$$.file conf$$ 2>/dev/null; then
14914    as_ln_s=ln
14915  else
14916    as_ln_s='cp -p'
14917  fi
14918else
14919  as_ln_s='cp -p'
14920fi
14921rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14922rmdir conf$$.dir 2>/dev/null
14923
14924
14925# as_fn_mkdir_p
14926# -------------
14927# Create "$as_dir" as a directory, including parents if necessary.
14928as_fn_mkdir_p ()
14929{
14930
14931  case $as_dir in #(
14932  -*) as_dir=./$as_dir;;
14933  esac
14934  test -d "$as_dir" || eval $as_mkdir_p || {
14935    as_dirs=
14936    while :; do
14937      case $as_dir in #(
14938      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14939      *) as_qdir=$as_dir;;
14940      esac
14941      as_dirs="'$as_qdir' $as_dirs"
14942      as_dir=`$as_dirname -- "$as_dir" ||
14943$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14944	 X"$as_dir" : 'X\(//\)[^/]' \| \
14945	 X"$as_dir" : 'X\(//\)$' \| \
14946	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14947$as_echo X"$as_dir" |
14948    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14949	    s//\1/
14950	    q
14951	  }
14952	  /^X\(\/\/\)[^/].*/{
14953	    s//\1/
14954	    q
14955	  }
14956	  /^X\(\/\/\)$/{
14957	    s//\1/
14958	    q
14959	  }
14960	  /^X\(\/\).*/{
14961	    s//\1/
14962	    q
14963	  }
14964	  s/.*/./; q'`
14965      test -d "$as_dir" && break
14966    done
14967    test -z "$as_dirs" || eval "mkdir $as_dirs"
14968  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14969
14970
14971} # as_fn_mkdir_p
14972if mkdir -p . 2>/dev/null; then
14973  as_mkdir_p='mkdir -p "$as_dir"'
14974else
14975  test -d ./-p && rmdir ./-p
14976  as_mkdir_p=false
14977fi
14978
14979if test -x / >/dev/null 2>&1; then
14980  as_test_x='test -x'
14981else
14982  if ls -dL / >/dev/null 2>&1; then
14983    as_ls_L_option=L
14984  else
14985    as_ls_L_option=
14986  fi
14987  as_test_x='
14988    eval sh -c '\''
14989      if test -d "$1"; then
14990	test -d "$1/.";
14991      else
14992	case $1 in #(
14993	-*)set "./$1";;
14994	esac;
14995	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14996	???[sx]*):;;*)false;;esac;fi
14997    '\'' sh
14998  '
14999fi
15000as_executable_p=$as_test_x
15001
15002# Sed expression to map a string onto a valid CPP name.
15003as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15004
15005# Sed expression to map a string onto a valid variable name.
15006as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15007
15008
15009exec 6>&1
15010## ----------------------------------- ##
15011## Main body of $CONFIG_STATUS script. ##
15012## ----------------------------------- ##
15013_ASEOF
15014test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15015
15016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15017# Save the log message, to keep $0 and so on meaningful, and to
15018# report actual input values of CONFIG_FILES etc. instead of their
15019# values after options handling.
15020ac_log="
15021This file was extended by $as_me, which was
15022generated by GNU Autoconf 2.68.  Invocation command line was
15023
15024  CONFIG_FILES    = $CONFIG_FILES
15025  CONFIG_HEADERS  = $CONFIG_HEADERS
15026  CONFIG_LINKS    = $CONFIG_LINKS
15027  CONFIG_COMMANDS = $CONFIG_COMMANDS
15028  $ $0 $@
15029
15030on `(hostname || uname -n) 2>/dev/null | sed 1q`
15031"
15032
15033_ACEOF
15034
15035case $ac_config_files in *"
15036"*) set x $ac_config_files; shift; ac_config_files=$*;;
15037esac
15038
15039case $ac_config_headers in *"
15040"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15041esac
15042
15043
15044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15045# Files that config.status was made for.
15046config_files="$ac_config_files"
15047config_headers="$ac_config_headers"
15048config_commands="$ac_config_commands"
15049
15050_ACEOF
15051
15052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15053ac_cs_usage="\
15054\`$as_me' instantiates files and other configuration actions
15055from templates according to the current configuration.  Unless the files
15056and actions are specified as TAGs, all are instantiated by default.
15057
15058Usage: $0 [OPTION]... [TAG]...
15059
15060  -h, --help       print this help, then exit
15061  -V, --version    print version number and configuration settings, then exit
15062      --config     print configuration, then exit
15063  -q, --quiet, --silent
15064                   do not print progress messages
15065  -d, --debug      don't remove temporary files
15066      --recheck    update $as_me by reconfiguring in the same conditions
15067      --file=FILE[:TEMPLATE]
15068                   instantiate the configuration file FILE
15069      --header=FILE[:TEMPLATE]
15070                   instantiate the configuration header FILE
15071
15072Configuration files:
15073$config_files
15074
15075Configuration headers:
15076$config_headers
15077
15078Configuration commands:
15079$config_commands
15080
15081Report bugs to the package provider."
15082
15083_ACEOF
15084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15085ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15086ac_cs_version="\\
15087config.status
15088configured by $0, generated by GNU Autoconf 2.68,
15089  with options \\"\$ac_cs_config\\"
15090
15091Copyright (C) 2010 Free Software Foundation, Inc.
15092This config.status script is free software; the Free Software Foundation
15093gives unlimited permission to copy, distribute and modify it."
15094
15095ac_pwd='$ac_pwd'
15096srcdir='$srcdir'
15097INSTALL='$INSTALL'
15098MKDIR_P='$MKDIR_P'
15099AWK='$AWK'
15100test -n "\$AWK" || AWK=awk
15101_ACEOF
15102
15103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15104# The default lists apply if the user does not specify any file.
15105ac_need_defaults=:
15106while test $# != 0
15107do
15108  case $1 in
15109  --*=?*)
15110    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15111    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15112    ac_shift=:
15113    ;;
15114  --*=)
15115    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15116    ac_optarg=
15117    ac_shift=:
15118    ;;
15119  *)
15120    ac_option=$1
15121    ac_optarg=$2
15122    ac_shift=shift
15123    ;;
15124  esac
15125
15126  case $ac_option in
15127  # Handling of the options.
15128  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15129    ac_cs_recheck=: ;;
15130  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15131    $as_echo "$ac_cs_version"; exit ;;
15132  --config | --confi | --conf | --con | --co | --c )
15133    $as_echo "$ac_cs_config"; exit ;;
15134  --debug | --debu | --deb | --de | --d | -d )
15135    debug=: ;;
15136  --file | --fil | --fi | --f )
15137    $ac_shift
15138    case $ac_optarg in
15139    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15140    '') as_fn_error $? "missing file argument" ;;
15141    esac
15142    as_fn_append CONFIG_FILES " '$ac_optarg'"
15143    ac_need_defaults=false;;
15144  --header | --heade | --head | --hea )
15145    $ac_shift
15146    case $ac_optarg in
15147    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15148    esac
15149    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15150    ac_need_defaults=false;;
15151  --he | --h)
15152    # Conflict between --help and --header
15153    as_fn_error $? "ambiguous option: \`$1'
15154Try \`$0 --help' for more information.";;
15155  --help | --hel | -h )
15156    $as_echo "$ac_cs_usage"; exit ;;
15157  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15158  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15159    ac_cs_silent=: ;;
15160
15161  # This is an error.
15162  -*) as_fn_error $? "unrecognized option: \`$1'
15163Try \`$0 --help' for more information." ;;
15164
15165  *) as_fn_append ac_config_targets " $1"
15166     ac_need_defaults=false ;;
15167
15168  esac
15169  shift
15170done
15171
15172ac_configure_extra_args=
15173
15174if $ac_cs_silent; then
15175  exec 6>/dev/null
15176  ac_configure_extra_args="$ac_configure_extra_args --silent"
15177fi
15178
15179_ACEOF
15180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15181if \$ac_cs_recheck; then
15182  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15183  shift
15184  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15185  CONFIG_SHELL='$SHELL'
15186  export CONFIG_SHELL
15187  exec "\$@"
15188fi
15189
15190_ACEOF
15191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15192exec 5>>config.log
15193{
15194  echo
15195  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15196## Running $as_me. ##
15197_ASBOX
15198  $as_echo "$ac_log"
15199} >&5
15200
15201_ACEOF
15202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15203#
15204# INIT-COMMANDS
15205#
15206AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15207
15208
15209# The HP-UX ksh and POSIX shell print the target directory to stdout
15210# if CDPATH is set.
15211(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15212
15213sed_quote_subst='$sed_quote_subst'
15214double_quote_subst='$double_quote_subst'
15215delay_variable_subst='$delay_variable_subst'
15216AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
15217DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15218OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15219macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15220macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15221enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15222enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15223pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15224enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15225host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15226host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15227host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15228build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15229build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15230build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15231SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15232Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15233GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15234EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15235FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15236LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15237NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15238LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15239max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15240ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15241exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15242lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15243lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15244lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15245reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15246reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15247deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15248file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15249AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15250AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15251STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15252RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15253old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15254old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15255old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15256CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15257CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15258compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15259GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15260lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15261lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15262lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15263lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15264objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15265SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15266ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15267MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15268lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15269lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15270lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15271lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15272lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15273need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15274DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15275NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15276LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15277OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15278OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15279libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15280shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15281extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15282archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15283enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15284export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15285whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15286compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15287old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15288old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15289archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15290archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15291module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15292module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15293with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15294allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15295no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15296hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15297hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15298hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15299hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15300hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15301hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15302hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15303hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15304inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15305link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15306fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15307always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15308export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15309exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15310include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15311prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15312file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15313variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15314need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15315need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15316version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15317runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15318shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15319shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15320libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15321library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15322soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15323postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15324postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15325finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15326finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15327hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15328sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15329sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15330hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15331enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15332enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15333enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15334old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15335striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15336
15337LTCC='$LTCC'
15338LTCFLAGS='$LTCFLAGS'
15339compiler='$compiler_DEFAULT'
15340
15341# Quote evaled strings.
15342for var in SED \
15343GREP \
15344EGREP \
15345FGREP \
15346LD \
15347NM \
15348LN_S \
15349lt_SP2NL \
15350lt_NL2SP \
15351reload_flag \
15352deplibs_check_method \
15353file_magic_cmd \
15354AR \
15355AR_FLAGS \
15356STRIP \
15357RANLIB \
15358CC \
15359CFLAGS \
15360compiler \
15361lt_cv_sys_global_symbol_pipe \
15362lt_cv_sys_global_symbol_to_cdecl \
15363lt_cv_sys_global_symbol_to_c_name_address \
15364lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15365SHELL \
15366ECHO \
15367lt_prog_compiler_no_builtin_flag \
15368lt_prog_compiler_wl \
15369lt_prog_compiler_pic \
15370lt_prog_compiler_static \
15371lt_cv_prog_compiler_c_o \
15372need_locks \
15373DSYMUTIL \
15374NMEDIT \
15375LIPO \
15376OTOOL \
15377OTOOL64 \
15378shrext_cmds \
15379export_dynamic_flag_spec \
15380whole_archive_flag_spec \
15381compiler_needs_object \
15382with_gnu_ld \
15383allow_undefined_flag \
15384no_undefined_flag \
15385hardcode_libdir_flag_spec \
15386hardcode_libdir_flag_spec_ld \
15387hardcode_libdir_separator \
15388fix_srcfile_path \
15389exclude_expsyms \
15390include_expsyms \
15391file_list_spec \
15392variables_saved_for_relink \
15393libname_spec \
15394library_names_spec \
15395soname_spec \
15396finish_eval \
15397old_striplib \
15398striplib; do
15399    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15400    *[\\\\\\\`\\"\\\$]*)
15401      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15402      ;;
15403    *)
15404      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15405      ;;
15406    esac
15407done
15408
15409# Double-quote double-evaled strings.
15410for var in reload_cmds \
15411old_postinstall_cmds \
15412old_postuninstall_cmds \
15413old_archive_cmds \
15414extract_expsyms_cmds \
15415old_archive_from_new_cmds \
15416old_archive_from_expsyms_cmds \
15417archive_cmds \
15418archive_expsym_cmds \
15419module_cmds \
15420module_expsym_cmds \
15421export_symbols_cmds \
15422prelink_cmds \
15423postinstall_cmds \
15424postuninstall_cmds \
15425finish_cmds \
15426sys_lib_search_path_spec \
15427sys_lib_dlsearch_path_spec; do
15428    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15429    *[\\\\\\\`\\"\\\$]*)
15430      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15431      ;;
15432    *)
15433      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15434      ;;
15435    esac
15436done
15437
15438# Fix-up fallback echo if it was mangled by the above quoting rules.
15439case \$lt_ECHO in
15440*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15441  ;;
15442esac
15443
15444ac_aux_dir='$ac_aux_dir'
15445xsi_shell='$xsi_shell'
15446lt_shell_append='$lt_shell_append'
15447
15448# See if we are running on zsh, and set the options which allow our
15449# commands through without removal of \ escapes INIT.
15450if test -n "\${ZSH_VERSION+set}" ; then
15451   setopt NO_GLOB_SUBST
15452fi
15453
15454
15455    PACKAGE='$PACKAGE'
15456    VERSION='$VERSION'
15457    TIMESTAMP='$TIMESTAMP'
15458    RM='$RM'
15459    ofile='$ofile'
15460
15461
15462
15463
15464_ACEOF
15465
15466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15467
15468# Handling of arguments.
15469for ac_config_target in $ac_config_targets
15470do
15471  case $ac_config_target in
15472    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15473    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15474    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15475    "libxml2.spec") CONFIG_FILES="$CONFIG_FILES libxml2.spec:libxml.spec.in" ;;
15476    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15477    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15478    "include/libxml/Makefile") CONFIG_FILES="$CONFIG_FILES include/libxml/Makefile" ;;
15479    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15480    "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
15481    "doc/devhelp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/devhelp/Makefile" ;;
15482    "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
15483    "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
15484    "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
15485    "xstc/Makefile") CONFIG_FILES="$CONFIG_FILES xstc/Makefile" ;;
15486    "include/libxml/xmlversion.h") CONFIG_FILES="$CONFIG_FILES include/libxml/xmlversion.h" ;;
15487    "xml2-config") CONFIG_FILES="$CONFIG_FILES xml2-config" ;;
15488    "libxml-2.0.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0.pc" ;;
15489    "libxml-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0-uninstalled.pc" ;;
15490    "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
15491
15492  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15493  esac
15494done
15495
15496
15497# If the user did not use the arguments to specify the items to instantiate,
15498# then the envvar interface is used.  Set only those that are not.
15499# We use the long form for the default assignment because of an extremely
15500# bizarre bug on SunOS 4.1.3.
15501if $ac_need_defaults; then
15502  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15503  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15504  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15505fi
15506
15507# Have a temporary directory for convenience.  Make it in the build tree
15508# simply because there is no reason against having it here, and in addition,
15509# creating and moving files from /tmp can sometimes cause problems.
15510# Hook for its removal unless debugging.
15511# Note that there is a small window in which the directory will not be cleaned:
15512# after its creation but before its name has been assigned to `$tmp'.
15513$debug ||
15514{
15515  tmp= ac_tmp=
15516  trap 'exit_status=$?
15517  : "${ac_tmp:=$tmp}"
15518  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15519' 0
15520  trap 'as_fn_exit 1' 1 2 13 15
15521}
15522# Create a (secure) tmp directory for tmp files.
15523
15524{
15525  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15526  test -d "$tmp"
15527}  ||
15528{
15529  tmp=./conf$$-$RANDOM
15530  (umask 077 && mkdir "$tmp")
15531} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15532ac_tmp=$tmp
15533
15534# Set up the scripts for CONFIG_FILES section.
15535# No need to generate them if there are no CONFIG_FILES.
15536# This happens for instance with `./config.status config.h'.
15537if test -n "$CONFIG_FILES"; then
15538
15539
15540ac_cr=`echo X | tr X '\015'`
15541# On cygwin, bash can eat \r inside `` if the user requested igncr.
15542# But we know of no other shell where ac_cr would be empty at this
15543# point, so we can use a bashism as a fallback.
15544if test "x$ac_cr" = x; then
15545  eval ac_cr=\$\'\\r\'
15546fi
15547ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15548if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15549  ac_cs_awk_cr='\\r'
15550else
15551  ac_cs_awk_cr=$ac_cr
15552fi
15553
15554echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15555_ACEOF
15556
15557
15558{
15559  echo "cat >conf$$subs.awk <<_ACEOF" &&
15560  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15561  echo "_ACEOF"
15562} >conf$$subs.sh ||
15563  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15564ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15565ac_delim='%!_!# '
15566for ac_last_try in false false false false false :; do
15567  . ./conf$$subs.sh ||
15568    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15569
15570  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15571  if test $ac_delim_n = $ac_delim_num; then
15572    break
15573  elif $ac_last_try; then
15574    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15575  else
15576    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15577  fi
15578done
15579rm -f conf$$subs.sh
15580
15581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15582cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15583_ACEOF
15584sed -n '
15585h
15586s/^/S["/; s/!.*/"]=/
15587p
15588g
15589s/^[^!]*!//
15590:repl
15591t repl
15592s/'"$ac_delim"'$//
15593t delim
15594:nl
15595h
15596s/\(.\{148\}\)..*/\1/
15597t more1
15598s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15599p
15600n
15601b repl
15602:more1
15603s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15604p
15605g
15606s/.\{148\}//
15607t nl
15608:delim
15609h
15610s/\(.\{148\}\)..*/\1/
15611t more2
15612s/["\\]/\\&/g; s/^/"/; s/$/"/
15613p
15614b
15615:more2
15616s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15617p
15618g
15619s/.\{148\}//
15620t delim
15621' <conf$$subs.awk | sed '
15622/^[^""]/{
15623  N
15624  s/\n//
15625}
15626' >>$CONFIG_STATUS || ac_write_fail=1
15627rm -f conf$$subs.awk
15628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15629_ACAWK
15630cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15631  for (key in S) S_is_set[key] = 1
15632  FS = ""
15633
15634}
15635{
15636  line = $ 0
15637  nfields = split(line, field, "@")
15638  substed = 0
15639  len = length(field[1])
15640  for (i = 2; i < nfields; i++) {
15641    key = field[i]
15642    keylen = length(key)
15643    if (S_is_set[key]) {
15644      value = S[key]
15645      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15646      len += length(value) + length(field[++i])
15647      substed = 1
15648    } else
15649      len += 1 + keylen
15650  }
15651
15652  print line
15653}
15654
15655_ACAWK
15656_ACEOF
15657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15658if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15659  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15660else
15661  cat
15662fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15663  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15664_ACEOF
15665
15666# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15667# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15668# trailing colons and then remove the whole line if VPATH becomes empty
15669# (actually we leave an empty line to preserve line numbers).
15670if test "x$srcdir" = x.; then
15671  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15672h
15673s///
15674s/^/:/
15675s/[	 ]*$/:/
15676s/:\$(srcdir):/:/g
15677s/:\${srcdir}:/:/g
15678s/:@srcdir@:/:/g
15679s/^:*//
15680s/:*$//
15681x
15682s/\(=[	 ]*\).*/\1/
15683G
15684s/\n//
15685s/^[^=]*=[	 ]*$//
15686}'
15687fi
15688
15689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15690fi # test -n "$CONFIG_FILES"
15691
15692# Set up the scripts for CONFIG_HEADERS section.
15693# No need to generate them if there are no CONFIG_HEADERS.
15694# This happens for instance with `./config.status Makefile'.
15695if test -n "$CONFIG_HEADERS"; then
15696cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15697BEGIN {
15698_ACEOF
15699
15700# Transform confdefs.h into an awk script `defines.awk', embedded as
15701# here-document in config.status, that substitutes the proper values into
15702# config.h.in to produce config.h.
15703
15704# Create a delimiter string that does not exist in confdefs.h, to ease
15705# handling of long lines.
15706ac_delim='%!_!# '
15707for ac_last_try in false false :; do
15708  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15709  if test -z "$ac_tt"; then
15710    break
15711  elif $ac_last_try; then
15712    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15713  else
15714    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15715  fi
15716done
15717
15718# For the awk script, D is an array of macro values keyed by name,
15719# likewise P contains macro parameters if any.  Preserve backslash
15720# newline sequences.
15721
15722ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15723sed -n '
15724s/.\{148\}/&'"$ac_delim"'/g
15725t rset
15726:rset
15727s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15728t def
15729d
15730:def
15731s/\\$//
15732t bsnl
15733s/["\\]/\\&/g
15734s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15735D["\1"]=" \3"/p
15736s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15737d
15738:bsnl
15739s/["\\]/\\&/g
15740s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15741D["\1"]=" \3\\\\\\n"\\/p
15742t cont
15743s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15744t cont
15745d
15746:cont
15747n
15748s/.\{148\}/&'"$ac_delim"'/g
15749t clear
15750:clear
15751s/\\$//
15752t bsnlc
15753s/["\\]/\\&/g; s/^/"/; s/$/"/p
15754d
15755:bsnlc
15756s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15757b cont
15758' <confdefs.h | sed '
15759s/'"$ac_delim"'/"\\\
15760"/g' >>$CONFIG_STATUS || ac_write_fail=1
15761
15762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15763  for (key in D) D_is_set[key] = 1
15764  FS = ""
15765}
15766/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15767  line = \$ 0
15768  split(line, arg, " ")
15769  if (arg[1] == "#") {
15770    defundef = arg[2]
15771    mac1 = arg[3]
15772  } else {
15773    defundef = substr(arg[1], 2)
15774    mac1 = arg[2]
15775  }
15776  split(mac1, mac2, "(") #)
15777  macro = mac2[1]
15778  prefix = substr(line, 1, index(line, defundef) - 1)
15779  if (D_is_set[macro]) {
15780    # Preserve the white space surrounding the "#".
15781    print prefix "define", macro P[macro] D[macro]
15782    next
15783  } else {
15784    # Replace #undef with comments.  This is necessary, for example,
15785    # in the case of _POSIX_SOURCE, which is predefined and required
15786    # on some systems where configure will not decide to define it.
15787    if (defundef == "undef") {
15788      print "/*", prefix defundef, macro, "*/"
15789      next
15790    }
15791  }
15792}
15793{ print }
15794_ACAWK
15795_ACEOF
15796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15797  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15798fi # test -n "$CONFIG_HEADERS"
15799
15800
15801eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15802shift
15803for ac_tag
15804do
15805  case $ac_tag in
15806  :[FHLC]) ac_mode=$ac_tag; continue;;
15807  esac
15808  case $ac_mode$ac_tag in
15809  :[FHL]*:*);;
15810  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15811  :[FH]-) ac_tag=-:-;;
15812  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15813  esac
15814  ac_save_IFS=$IFS
15815  IFS=:
15816  set x $ac_tag
15817  IFS=$ac_save_IFS
15818  shift
15819  ac_file=$1
15820  shift
15821
15822  case $ac_mode in
15823  :L) ac_source=$1;;
15824  :[FH])
15825    ac_file_inputs=
15826    for ac_f
15827    do
15828      case $ac_f in
15829      -) ac_f="$ac_tmp/stdin";;
15830      *) # Look for the file first in the build tree, then in the source tree
15831	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15832	 # because $ac_f cannot contain `:'.
15833	 test -f "$ac_f" ||
15834	   case $ac_f in
15835	   [\\/$]*) false;;
15836	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15837	   esac ||
15838	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15839      esac
15840      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15841      as_fn_append ac_file_inputs " '$ac_f'"
15842    done
15843
15844    # Let's still pretend it is `configure' which instantiates (i.e., don't
15845    # use $as_me), people would be surprised to read:
15846    #    /* config.h.  Generated by config.status.  */
15847    configure_input='Generated from '`
15848	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15849	`' by configure.'
15850    if test x"$ac_file" != x-; then
15851      configure_input="$ac_file.  $configure_input"
15852      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15853$as_echo "$as_me: creating $ac_file" >&6;}
15854    fi
15855    # Neutralize special characters interpreted by sed in replacement strings.
15856    case $configure_input in #(
15857    *\&* | *\|* | *\\* )
15858       ac_sed_conf_input=`$as_echo "$configure_input" |
15859       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15860    *) ac_sed_conf_input=$configure_input;;
15861    esac
15862
15863    case $ac_tag in
15864    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15865      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15866    esac
15867    ;;
15868  esac
15869
15870  ac_dir=`$as_dirname -- "$ac_file" ||
15871$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15872	 X"$ac_file" : 'X\(//\)[^/]' \| \
15873	 X"$ac_file" : 'X\(//\)$' \| \
15874	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15875$as_echo X"$ac_file" |
15876    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15877	    s//\1/
15878	    q
15879	  }
15880	  /^X\(\/\/\)[^/].*/{
15881	    s//\1/
15882	    q
15883	  }
15884	  /^X\(\/\/\)$/{
15885	    s//\1/
15886	    q
15887	  }
15888	  /^X\(\/\).*/{
15889	    s//\1/
15890	    q
15891	  }
15892	  s/.*/./; q'`
15893  as_dir="$ac_dir"; as_fn_mkdir_p
15894  ac_builddir=.
15895
15896case "$ac_dir" in
15897.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15898*)
15899  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15900  # A ".." for each directory in $ac_dir_suffix.
15901  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15902  case $ac_top_builddir_sub in
15903  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15904  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15905  esac ;;
15906esac
15907ac_abs_top_builddir=$ac_pwd
15908ac_abs_builddir=$ac_pwd$ac_dir_suffix
15909# for backward compatibility:
15910ac_top_builddir=$ac_top_build_prefix
15911
15912case $srcdir in
15913  .)  # We are building in place.
15914    ac_srcdir=.
15915    ac_top_srcdir=$ac_top_builddir_sub
15916    ac_abs_top_srcdir=$ac_pwd ;;
15917  [\\/]* | ?:[\\/]* )  # Absolute name.
15918    ac_srcdir=$srcdir$ac_dir_suffix;
15919    ac_top_srcdir=$srcdir
15920    ac_abs_top_srcdir=$srcdir ;;
15921  *) # Relative name.
15922    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15923    ac_top_srcdir=$ac_top_build_prefix$srcdir
15924    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15925esac
15926ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15927
15928
15929  case $ac_mode in
15930  :F)
15931  #
15932  # CONFIG_FILE
15933  #
15934
15935  case $INSTALL in
15936  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15937  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15938  esac
15939  ac_MKDIR_P=$MKDIR_P
15940  case $MKDIR_P in
15941  [\\/$]* | ?:[\\/]* ) ;;
15942  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15943  esac
15944_ACEOF
15945
15946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15947# If the template does not know about datarootdir, expand it.
15948# FIXME: This hack should be removed a few years after 2.60.
15949ac_datarootdir_hack=; ac_datarootdir_seen=
15950ac_sed_dataroot='
15951/datarootdir/ {
15952  p
15953  q
15954}
15955/@datadir@/p
15956/@docdir@/p
15957/@infodir@/p
15958/@localedir@/p
15959/@mandir@/p'
15960case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15961*datarootdir*) ac_datarootdir_seen=yes;;
15962*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15963  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15964$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15965_ACEOF
15966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15967  ac_datarootdir_hack='
15968  s&@datadir@&$datadir&g
15969  s&@docdir@&$docdir&g
15970  s&@infodir@&$infodir&g
15971  s&@localedir@&$localedir&g
15972  s&@mandir@&$mandir&g
15973  s&\\\${datarootdir}&$datarootdir&g' ;;
15974esac
15975_ACEOF
15976
15977# Neutralize VPATH when `$srcdir' = `.'.
15978# Shell code in configure.ac might set extrasub.
15979# FIXME: do we really want to maintain this feature?
15980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15981ac_sed_extra="$ac_vpsub
15982$extrasub
15983_ACEOF
15984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15985:t
15986/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15987s|@configure_input@|$ac_sed_conf_input|;t t
15988s&@top_builddir@&$ac_top_builddir_sub&;t t
15989s&@top_build_prefix@&$ac_top_build_prefix&;t t
15990s&@srcdir@&$ac_srcdir&;t t
15991s&@abs_srcdir@&$ac_abs_srcdir&;t t
15992s&@top_srcdir@&$ac_top_srcdir&;t t
15993s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15994s&@builddir@&$ac_builddir&;t t
15995s&@abs_builddir@&$ac_abs_builddir&;t t
15996s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15997s&@INSTALL@&$ac_INSTALL&;t t
15998s&@MKDIR_P@&$ac_MKDIR_P&;t t
15999$ac_datarootdir_hack
16000"
16001eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16002  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16003
16004test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16005  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16006  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16007      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16008  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16009which seems to be undefined.  Please make sure it is defined" >&5
16010$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16011which seems to be undefined.  Please make sure it is defined" >&2;}
16012
16013  rm -f "$ac_tmp/stdin"
16014  case $ac_file in
16015  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16016  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16017  esac \
16018  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16019 ;;
16020  :H)
16021  #
16022  # CONFIG_HEADER
16023  #
16024  if test x"$ac_file" != x-; then
16025    {
16026      $as_echo "/* $configure_input  */" \
16027      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16028    } >"$ac_tmp/config.h" \
16029      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16030    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16031      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16032$as_echo "$as_me: $ac_file is unchanged" >&6;}
16033    else
16034      rm -f "$ac_file"
16035      mv "$ac_tmp/config.h" "$ac_file" \
16036	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16037    fi
16038  else
16039    $as_echo "/* $configure_input  */" \
16040      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16041      || as_fn_error $? "could not create -" "$LINENO" 5
16042  fi
16043# Compute "$ac_file"'s index in $config_headers.
16044_am_arg="$ac_file"
16045_am_stamp_count=1
16046for _am_header in $config_headers :; do
16047  case $_am_header in
16048    $_am_arg | $_am_arg:* )
16049      break ;;
16050    * )
16051      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16052  esac
16053done
16054echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16055$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16056	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16057	 X"$_am_arg" : 'X\(//\)$' \| \
16058	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16059$as_echo X"$_am_arg" |
16060    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16061	    s//\1/
16062	    q
16063	  }
16064	  /^X\(\/\/\)[^/].*/{
16065	    s//\1/
16066	    q
16067	  }
16068	  /^X\(\/\/\)$/{
16069	    s//\1/
16070	    q
16071	  }
16072	  /^X\(\/\).*/{
16073	    s//\1/
16074	    q
16075	  }
16076	  s/.*/./; q'`/stamp-h$_am_stamp_count
16077 ;;
16078
16079  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16080$as_echo "$as_me: executing $ac_file commands" >&6;}
16081 ;;
16082  esac
16083
16084
16085  case $ac_file$ac_mode in
16086    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16087  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16088  # are listed without --file.  Let's play safe and only enable the eval
16089  # if we detect the quoting.
16090  case $CONFIG_FILES in
16091  *\'*) eval set x "$CONFIG_FILES" ;;
16092  *)   set x $CONFIG_FILES ;;
16093  esac
16094  shift
16095  for mf
16096  do
16097    # Strip MF so we end up with the name of the file.
16098    mf=`echo "$mf" | sed -e 's/:.*$//'`
16099    # Check whether this is an Automake generated Makefile or not.
16100    # We used to match only the files named `Makefile.in', but
16101    # some people rename them; so instead we look at the file content.
16102    # Grep'ing the first line is not enough: some people post-process
16103    # each Makefile.in and add a new line on top of each file to say so.
16104    # Grep'ing the whole file is not good either: AIX grep has a line
16105    # limit of 2048, but all sed's we know have understand at least 4000.
16106    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16107      dirpart=`$as_dirname -- "$mf" ||
16108$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16109	 X"$mf" : 'X\(//\)[^/]' \| \
16110	 X"$mf" : 'X\(//\)$' \| \
16111	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16112$as_echo X"$mf" |
16113    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16114	    s//\1/
16115	    q
16116	  }
16117	  /^X\(\/\/\)[^/].*/{
16118	    s//\1/
16119	    q
16120	  }
16121	  /^X\(\/\/\)$/{
16122	    s//\1/
16123	    q
16124	  }
16125	  /^X\(\/\).*/{
16126	    s//\1/
16127	    q
16128	  }
16129	  s/.*/./; q'`
16130    else
16131      continue
16132    fi
16133    # Extract the definition of DEPDIR, am__include, and am__quote
16134    # from the Makefile without running `make'.
16135    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16136    test -z "$DEPDIR" && continue
16137    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16138    test -z "am__include" && continue
16139    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16140    # When using ansi2knr, U may be empty or an underscore; expand it
16141    U=`sed -n 's/^U = //p' < "$mf"`
16142    # Find all dependency output files, they are included files with
16143    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16144    # simplest approach to changing $(DEPDIR) to its actual value in the
16145    # expansion.
16146    for file in `sed -n "
16147      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16148	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16149      # Make sure the directory exists.
16150      test -f "$dirpart/$file" && continue
16151      fdir=`$as_dirname -- "$file" ||
16152$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16153	 X"$file" : 'X\(//\)[^/]' \| \
16154	 X"$file" : 'X\(//\)$' \| \
16155	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16156$as_echo X"$file" |
16157    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16158	    s//\1/
16159	    q
16160	  }
16161	  /^X\(\/\/\)[^/].*/{
16162	    s//\1/
16163	    q
16164	  }
16165	  /^X\(\/\/\)$/{
16166	    s//\1/
16167	    q
16168	  }
16169	  /^X\(\/\).*/{
16170	    s//\1/
16171	    q
16172	  }
16173	  s/.*/./; q'`
16174      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16175      # echo "creating $dirpart/$file"
16176      echo '# dummy' > "$dirpart/$file"
16177    done
16178  done
16179}
16180 ;;
16181    "libtool":C)
16182
16183    # See if we are running on zsh, and set the options which allow our
16184    # commands through without removal of \ escapes.
16185    if test -n "${ZSH_VERSION+set}" ; then
16186      setopt NO_GLOB_SUBST
16187    fi
16188
16189    cfgfile="${ofile}T"
16190    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16191    $RM "$cfgfile"
16192
16193    cat <<_LT_EOF >> "$cfgfile"
16194#! $SHELL
16195
16196# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16197# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16198# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16199# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16200#
16201#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16202#                 2006, 2007, 2008 Free Software Foundation, Inc.
16203#   Written by Gordon Matzigkeit, 1996
16204#
16205#   This file is part of GNU Libtool.
16206#
16207# GNU Libtool is free software; you can redistribute it and/or
16208# modify it under the terms of the GNU General Public License as
16209# published by the Free Software Foundation; either version 2 of
16210# the License, or (at your option) any later version.
16211#
16212# As a special exception to the GNU General Public License,
16213# if you distribute this file as part of a program or library that
16214# is built using GNU Libtool, you may include this file under the
16215# same distribution terms that you use for the rest of that program.
16216#
16217# GNU Libtool is distributed in the hope that it will be useful,
16218# but WITHOUT ANY WARRANTY; without even the implied warranty of
16219# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16220# GNU General Public License for more details.
16221#
16222# You should have received a copy of the GNU General Public License
16223# along with GNU Libtool; see the file COPYING.  If not, a copy
16224# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16225# obtained by writing to the Free Software Foundation, Inc.,
16226# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16227
16228
16229# The names of the tagged configurations supported by this script.
16230available_tags=""
16231
16232# ### BEGIN LIBTOOL CONFIG
16233
16234# Assembler program.
16235AS=$AS
16236
16237# DLL creation program.
16238DLLTOOL=$DLLTOOL
16239
16240# Object dumper program.
16241OBJDUMP=$OBJDUMP
16242
16243# Which release of libtool.m4 was used?
16244macro_version=$macro_version
16245macro_revision=$macro_revision
16246
16247# Whether or not to build shared libraries.
16248build_libtool_libs=$enable_shared
16249
16250# Whether or not to build static libraries.
16251build_old_libs=$enable_static
16252
16253# What type of objects to build.
16254pic_mode=$pic_mode
16255
16256# Whether or not to optimize for fast installation.
16257fast_install=$enable_fast_install
16258
16259# The host system.
16260host_alias=$host_alias
16261host=$host
16262host_os=$host_os
16263
16264# The build system.
16265build_alias=$build_alias
16266build=$build
16267build_os=$build_os
16268
16269# A sed program that does not truncate output.
16270SED=$lt_SED
16271
16272# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16273Xsed="\$SED -e 1s/^X//"
16274
16275# A grep program that handles long lines.
16276GREP=$lt_GREP
16277
16278# An ERE matcher.
16279EGREP=$lt_EGREP
16280
16281# A literal string matcher.
16282FGREP=$lt_FGREP
16283
16284# A BSD- or MS-compatible name lister.
16285NM=$lt_NM
16286
16287# Whether we need soft or hard links.
16288LN_S=$lt_LN_S
16289
16290# What is the maximum length of a command?
16291max_cmd_len=$max_cmd_len
16292
16293# Object file suffix (normally "o").
16294objext=$ac_objext
16295
16296# Executable file suffix (normally "").
16297exeext=$exeext
16298
16299# whether the shell understands "unset".
16300lt_unset=$lt_unset
16301
16302# turn spaces into newlines.
16303SP2NL=$lt_lt_SP2NL
16304
16305# turn newlines into spaces.
16306NL2SP=$lt_lt_NL2SP
16307
16308# How to create reloadable object files.
16309reload_flag=$lt_reload_flag
16310reload_cmds=$lt_reload_cmds
16311
16312# Method to check whether dependent libraries are shared objects.
16313deplibs_check_method=$lt_deplibs_check_method
16314
16315# Command to use when deplibs_check_method == "file_magic".
16316file_magic_cmd=$lt_file_magic_cmd
16317
16318# The archiver.
16319AR=$lt_AR
16320AR_FLAGS=$lt_AR_FLAGS
16321
16322# A symbol stripping program.
16323STRIP=$lt_STRIP
16324
16325# Commands used to install an old-style archive.
16326RANLIB=$lt_RANLIB
16327old_postinstall_cmds=$lt_old_postinstall_cmds
16328old_postuninstall_cmds=$lt_old_postuninstall_cmds
16329
16330# A C compiler.
16331LTCC=$lt_CC
16332
16333# LTCC compiler flags.
16334LTCFLAGS=$lt_CFLAGS
16335
16336# Take the output of nm and produce a listing of raw symbols and C names.
16337global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16338
16339# Transform the output of nm in a proper C declaration.
16340global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16341
16342# Transform the output of nm in a C name address pair.
16343global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16344
16345# Transform the output of nm in a C name address pair when lib prefix is needed.
16346global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16347
16348# The name of the directory that contains temporary libtool files.
16349objdir=$objdir
16350
16351# Shell to use when invoking shell scripts.
16352SHELL=$lt_SHELL
16353
16354# An echo program that does not interpret backslashes.
16355ECHO=$lt_ECHO
16356
16357# Used to examine libraries when file_magic_cmd begins with "file".
16358MAGIC_CMD=$MAGIC_CMD
16359
16360# Must we lock files when doing compilation?
16361need_locks=$lt_need_locks
16362
16363# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16364DSYMUTIL=$lt_DSYMUTIL
16365
16366# Tool to change global to local symbols on Mac OS X.
16367NMEDIT=$lt_NMEDIT
16368
16369# Tool to manipulate fat objects and archives on Mac OS X.
16370LIPO=$lt_LIPO
16371
16372# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16373OTOOL=$lt_OTOOL
16374
16375# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16376OTOOL64=$lt_OTOOL64
16377
16378# Old archive suffix (normally "a").
16379libext=$libext
16380
16381# Shared library suffix (normally ".so").
16382shrext_cmds=$lt_shrext_cmds
16383
16384# The commands to extract the exported symbol list from a shared archive.
16385extract_expsyms_cmds=$lt_extract_expsyms_cmds
16386
16387# Variables whose values should be saved in libtool wrapper scripts and
16388# restored at link time.
16389variables_saved_for_relink=$lt_variables_saved_for_relink
16390
16391# Do we need the "lib" prefix for modules?
16392need_lib_prefix=$need_lib_prefix
16393
16394# Do we need a version for libraries?
16395need_version=$need_version
16396
16397# Library versioning type.
16398version_type=$version_type
16399
16400# Shared library runtime path variable.
16401runpath_var=$runpath_var
16402
16403# Shared library path variable.
16404shlibpath_var=$shlibpath_var
16405
16406# Is shlibpath searched before the hard-coded library search path?
16407shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16408
16409# Format of library name prefix.
16410libname_spec=$lt_libname_spec
16411
16412# List of archive names.  First name is the real one, the rest are links.
16413# The last name is the one that the linker finds with -lNAME
16414library_names_spec=$lt_library_names_spec
16415
16416# The coded name of the library, if different from the real name.
16417soname_spec=$lt_soname_spec
16418
16419# Command to use after installation of a shared archive.
16420postinstall_cmds=$lt_postinstall_cmds
16421
16422# Command to use after uninstallation of a shared archive.
16423postuninstall_cmds=$lt_postuninstall_cmds
16424
16425# Commands used to finish a libtool library installation in a directory.
16426finish_cmds=$lt_finish_cmds
16427
16428# As "finish_cmds", except a single script fragment to be evaled but
16429# not shown.
16430finish_eval=$lt_finish_eval
16431
16432# Whether we should hardcode library paths into libraries.
16433hardcode_into_libs=$hardcode_into_libs
16434
16435# Compile-time system search path for libraries.
16436sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16437
16438# Run-time system search path for libraries.
16439sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16440
16441# Whether dlopen is supported.
16442dlopen_support=$enable_dlopen
16443
16444# Whether dlopen of programs is supported.
16445dlopen_self=$enable_dlopen_self
16446
16447# Whether dlopen of statically linked programs is supported.
16448dlopen_self_static=$enable_dlopen_self_static
16449
16450# Commands to strip libraries.
16451old_striplib=$lt_old_striplib
16452striplib=$lt_striplib
16453
16454
16455# The linker used to build libraries.
16456LD=$lt_LD
16457
16458# Commands used to build an old-style archive.
16459old_archive_cmds=$lt_old_archive_cmds
16460
16461# A language specific compiler.
16462CC=$lt_compiler
16463
16464# Is the compiler the GNU compiler?
16465with_gcc=$GCC
16466
16467# Compiler flag to turn off builtin functions.
16468no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16469
16470# How to pass a linker flag through the compiler.
16471wl=$lt_lt_prog_compiler_wl
16472
16473# Additional compiler flags for building library objects.
16474pic_flag=$lt_lt_prog_compiler_pic
16475
16476# Compiler flag to prevent dynamic linking.
16477link_static_flag=$lt_lt_prog_compiler_static
16478
16479# Does compiler simultaneously support -c and -o options?
16480compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16481
16482# Whether or not to add -lc for building shared libraries.
16483build_libtool_need_lc=$archive_cmds_need_lc
16484
16485# Whether or not to disallow shared libs when runtime libs are static.
16486allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16487
16488# Compiler flag to allow reflexive dlopens.
16489export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16490
16491# Compiler flag to generate shared objects directly from archives.
16492whole_archive_flag_spec=$lt_whole_archive_flag_spec
16493
16494# Whether the compiler copes with passing no objects directly.
16495compiler_needs_object=$lt_compiler_needs_object
16496
16497# Create an old-style archive from a shared archive.
16498old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16499
16500# Create a temporary old-style archive to link instead of a shared archive.
16501old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16502
16503# Commands used to build a shared archive.
16504archive_cmds=$lt_archive_cmds
16505archive_expsym_cmds=$lt_archive_expsym_cmds
16506
16507# Commands used to build a loadable module if different from building
16508# a shared archive.
16509module_cmds=$lt_module_cmds
16510module_expsym_cmds=$lt_module_expsym_cmds
16511
16512# Whether we are building with GNU ld or not.
16513with_gnu_ld=$lt_with_gnu_ld
16514
16515# Flag that allows shared libraries with undefined symbols to be built.
16516allow_undefined_flag=$lt_allow_undefined_flag
16517
16518# Flag that enforces no undefined symbols.
16519no_undefined_flag=$lt_no_undefined_flag
16520
16521# Flag to hardcode \$libdir into a binary during linking.
16522# This must work even if \$libdir does not exist
16523hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16524
16525# If ld is used when linking, flag to hardcode \$libdir into a binary
16526# during linking.  This must work even if \$libdir does not exist.
16527hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16528
16529# Whether we need a single "-rpath" flag with a separated argument.
16530hardcode_libdir_separator=$lt_hardcode_libdir_separator
16531
16532# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16533# DIR into the resulting binary.
16534hardcode_direct=$hardcode_direct
16535
16536# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16537# DIR into the resulting binary and the resulting library dependency is
16538# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16539# library is relocated.
16540hardcode_direct_absolute=$hardcode_direct_absolute
16541
16542# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16543# into the resulting binary.
16544hardcode_minus_L=$hardcode_minus_L
16545
16546# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16547# into the resulting binary.
16548hardcode_shlibpath_var=$hardcode_shlibpath_var
16549
16550# Set to "yes" if building a shared library automatically hardcodes DIR
16551# into the library and all subsequent libraries and executables linked
16552# against it.
16553hardcode_automatic=$hardcode_automatic
16554
16555# Set to yes if linker adds runtime paths of dependent libraries
16556# to runtime path list.
16557inherit_rpath=$inherit_rpath
16558
16559# Whether libtool must link a program against all its dependency libraries.
16560link_all_deplibs=$link_all_deplibs
16561
16562# Fix the shell variable \$srcfile for the compiler.
16563fix_srcfile_path=$lt_fix_srcfile_path
16564
16565# Set to "yes" if exported symbols are required.
16566always_export_symbols=$always_export_symbols
16567
16568# The commands to list exported symbols.
16569export_symbols_cmds=$lt_export_symbols_cmds
16570
16571# Symbols that should not be listed in the preloaded symbols.
16572exclude_expsyms=$lt_exclude_expsyms
16573
16574# Symbols that must always be exported.
16575include_expsyms=$lt_include_expsyms
16576
16577# Commands necessary for linking programs (against libraries) with templates.
16578prelink_cmds=$lt_prelink_cmds
16579
16580# Specify filename containing input files.
16581file_list_spec=$lt_file_list_spec
16582
16583# How to hardcode a shared library path into an executable.
16584hardcode_action=$hardcode_action
16585
16586# ### END LIBTOOL CONFIG
16587
16588_LT_EOF
16589
16590  case $host_os in
16591  aix3*)
16592    cat <<\_LT_EOF >> "$cfgfile"
16593# AIX sometimes has problems with the GCC collect2 program.  For some
16594# reason, if we set the COLLECT_NAMES environment variable, the problems
16595# vanish in a puff of smoke.
16596if test "X${COLLECT_NAMES+set}" != Xset; then
16597  COLLECT_NAMES=
16598  export COLLECT_NAMES
16599fi
16600_LT_EOF
16601    ;;
16602  esac
16603
16604
16605ltmain="$ac_aux_dir/ltmain.sh"
16606
16607
16608  # We use sed instead of cat because bash on DJGPP gets confused if
16609  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16610  # text mode, it properly converts lines to CR/LF.  This bash problem
16611  # is reportedly fixed, but why not run on old versions too?
16612  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16613    || (rm -f "$cfgfile"; exit 1)
16614
16615  case $xsi_shell in
16616  yes)
16617    cat << \_LT_EOF >> "$cfgfile"
16618
16619# func_dirname file append nondir_replacement
16620# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16621# otherwise set result to NONDIR_REPLACEMENT.
16622func_dirname ()
16623{
16624  case ${1} in
16625    */*) func_dirname_result="${1%/*}${2}" ;;
16626    *  ) func_dirname_result="${3}" ;;
16627  esac
16628}
16629
16630# func_basename file
16631func_basename ()
16632{
16633  func_basename_result="${1##*/}"
16634}
16635
16636# func_dirname_and_basename file append nondir_replacement
16637# perform func_basename and func_dirname in a single function
16638# call:
16639#   dirname:  Compute the dirname of FILE.  If nonempty,
16640#             add APPEND to the result, otherwise set result
16641#             to NONDIR_REPLACEMENT.
16642#             value returned in "$func_dirname_result"
16643#   basename: Compute filename of FILE.
16644#             value retuned in "$func_basename_result"
16645# Implementation must be kept synchronized with func_dirname
16646# and func_basename. For efficiency, we do not delegate to
16647# those functions but instead duplicate the functionality here.
16648func_dirname_and_basename ()
16649{
16650  case ${1} in
16651    */*) func_dirname_result="${1%/*}${2}" ;;
16652    *  ) func_dirname_result="${3}" ;;
16653  esac
16654  func_basename_result="${1##*/}"
16655}
16656
16657# func_stripname prefix suffix name
16658# strip PREFIX and SUFFIX off of NAME.
16659# PREFIX and SUFFIX must not contain globbing or regex special
16660# characters, hashes, percent signs, but SUFFIX may contain a leading
16661# dot (in which case that matches only a dot).
16662func_stripname ()
16663{
16664  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16665  # positional parameters, so assign one to ordinary parameter first.
16666  func_stripname_result=${3}
16667  func_stripname_result=${func_stripname_result#"${1}"}
16668  func_stripname_result=${func_stripname_result%"${2}"}
16669}
16670
16671# func_opt_split
16672func_opt_split ()
16673{
16674  func_opt_split_opt=${1%%=*}
16675  func_opt_split_arg=${1#*=}
16676}
16677
16678# func_lo2o object
16679func_lo2o ()
16680{
16681  case ${1} in
16682    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16683    *)    func_lo2o_result=${1} ;;
16684  esac
16685}
16686
16687# func_xform libobj-or-source
16688func_xform ()
16689{
16690  func_xform_result=${1%.*}.lo
16691}
16692
16693# func_arith arithmetic-term...
16694func_arith ()
16695{
16696  func_arith_result=$(( $* ))
16697}
16698
16699# func_len string
16700# STRING may not start with a hyphen.
16701func_len ()
16702{
16703  func_len_result=${#1}
16704}
16705
16706_LT_EOF
16707    ;;
16708  *) # Bourne compatible functions.
16709    cat << \_LT_EOF >> "$cfgfile"
16710
16711# func_dirname file append nondir_replacement
16712# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16713# otherwise set result to NONDIR_REPLACEMENT.
16714func_dirname ()
16715{
16716  # Extract subdirectory from the argument.
16717  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16718  if test "X$func_dirname_result" = "X${1}"; then
16719    func_dirname_result="${3}"
16720  else
16721    func_dirname_result="$func_dirname_result${2}"
16722  fi
16723}
16724
16725# func_basename file
16726func_basename ()
16727{
16728  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16729}
16730
16731
16732# func_stripname prefix suffix name
16733# strip PREFIX and SUFFIX off of NAME.
16734# PREFIX and SUFFIX must not contain globbing or regex special
16735# characters, hashes, percent signs, but SUFFIX may contain a leading
16736# dot (in which case that matches only a dot).
16737# func_strip_suffix prefix name
16738func_stripname ()
16739{
16740  case ${2} in
16741    .*) func_stripname_result=`$ECHO "X${3}" \
16742           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16743    *)  func_stripname_result=`$ECHO "X${3}" \
16744           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16745  esac
16746}
16747
16748# sed scripts:
16749my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16750my_sed_long_arg='1s/^-[^=]*=//'
16751
16752# func_opt_split
16753func_opt_split ()
16754{
16755  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16756  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16757}
16758
16759# func_lo2o object
16760func_lo2o ()
16761{
16762  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16763}
16764
16765# func_xform libobj-or-source
16766func_xform ()
16767{
16768  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16769}
16770
16771# func_arith arithmetic-term...
16772func_arith ()
16773{
16774  func_arith_result=`expr "$@"`
16775}
16776
16777# func_len string
16778# STRING may not start with a hyphen.
16779func_len ()
16780{
16781  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16782}
16783
16784_LT_EOF
16785esac
16786
16787case $lt_shell_append in
16788  yes)
16789    cat << \_LT_EOF >> "$cfgfile"
16790
16791# func_append var value
16792# Append VALUE to the end of shell variable VAR.
16793func_append ()
16794{
16795  eval "$1+=\$2"
16796}
16797_LT_EOF
16798    ;;
16799  *)
16800    cat << \_LT_EOF >> "$cfgfile"
16801
16802# func_append var value
16803# Append VALUE to the end of shell variable VAR.
16804func_append ()
16805{
16806  eval "$1=\$$1\$2"
16807}
16808
16809_LT_EOF
16810    ;;
16811  esac
16812
16813
16814  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16815    || (rm -f "$cfgfile"; exit 1)
16816
16817  mv -f "$cfgfile" "$ofile" ||
16818    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16819  chmod +x "$ofile"
16820
16821 ;;
16822
16823  esac
16824done # for ac_tag
16825
16826
16827as_fn_exit 0
16828_ACEOF
16829ac_clean_files=$ac_clean_files_save
16830
16831test $ac_write_fail = 0 ||
16832  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16833
16834
16835# configure is writing to config.log, and then calls config.status.
16836# config.status does its own redirection, appending to config.log.
16837# Unfortunately, on DOS this fails, as config.log is still kept open
16838# by configure, so config.status won't be able to write to it; its
16839# output is simply discarded.  So we exec the FD to /dev/null,
16840# effectively closing config.log, so it can be properly (re)opened and
16841# appended to by config.status.  When coming back to configure, we
16842# need to make the FD available again.
16843if test "$no_create" != yes; then
16844  ac_cs_success=:
16845  ac_config_status_args=
16846  test "$silent" = yes &&
16847    ac_config_status_args="$ac_config_status_args --quiet"
16848  exec 5>/dev/null
16849  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16850  exec 5>>config.log
16851  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16852  # would make configure fail if this is the last instruction.
16853  $ac_cs_success || as_fn_exit 1
16854fi
16855if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16856  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16857$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16858fi
16859
16860
16861chmod +x xml2-config python/setup.py
16862echo Done configuring
16863