1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for sphinxbase 0.8.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# 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.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235  fi
236  exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254  { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263  return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271  set +e
272  as_fn_set_status $1
273  exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282  case $as_dir in #(
283  -*) as_dir=./$as_dir;;
284  esac
285  test -d "$as_dir" || eval $as_mkdir_p || {
286    as_dirs=
287    while :; do
288      case $as_dir in #(
289      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290      *) as_qdir=$as_dir;;
291      esac
292      as_dirs="'$as_qdir' $as_dirs"
293      as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295	 X"$as_dir" : 'X\(//\)[^/]' \| \
296	 X"$as_dir" : 'X\(//\)$' \| \
297	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300	    s//\1/
301	    q
302	  }
303	  /^X\(\/\/\)[^/].*/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\).*/{
312	    s//\1/
313	    q
314	  }
315	  s/.*/./; q'`
316      test -d "$as_dir" && break
317    done
318    test -z "$as_dirs" || eval "mkdir $as_dirs"
319  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330  eval 'as_fn_append ()
331  {
332    eval $1+=\$2
333  }'
334else
335  as_fn_append ()
336  {
337    eval $1=\$$1\$2
338  }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347  eval 'as_fn_arith ()
348  {
349    as_val=$(( $* ))
350  }'
351else
352  as_fn_arith ()
353  {
354    as_val=`expr "$@" || test $? -eq 1`
355  }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366  as_status=$?; test $as_status -eq 0 && as_status=1
367  if test "$3"; then
368    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370  fi
371  $as_echo "$as_me: error: $1" >&2
372  as_fn_exit $as_status
373} # as_fn_error
374
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376   test "X`expr 00001 : '.*\(...\)'`" = X001; then
377  as_expr=expr
378else
379  as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383  as_basename=basename
384else
385  as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389  as_dirname=dirname
390else
391  as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396	 X"$0" : 'X\(//\)$' \| \
397	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399    sed '/^.*\/\([^/][^/]*\)\/*$/{
400	    s//\1/
401	    q
402	  }
403	  /^X\/\(\/\/\)$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\).*/{
408	    s//\1/
409	    q
410	  }
411	  s/.*/./; q'`
412
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421  as_lineno_1=$LINENO as_lineno_1a=$LINENO
422  as_lineno_2=$LINENO as_lineno_2a=$LINENO
423  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426  sed -n '
427    p
428    /[$]LINENO/=
429  ' <$as_myself |
430    sed '
431      s/[$]LINENO.*/&-/
432      t lineno
433      b
434      :lineno
435      N
436      :loop
437      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438      t loop
439      s/-\n.*//
440    ' >$as_me.lineno &&
441  chmod +x "$as_me.lineno" ||
442    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444  # Don't try to exec as it changes $[0], causing all sort of problems
445  # (the dirname of $[0] is not the place where we might find the
446  # original and so on.  Autoconf is especially sensitive to this).
447  . "./$as_me.lineno"
448  # Exit status is that of the last command.
449  exit
450}
451
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455  case `echo 'xy\c'` in
456  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
457  xy)  ECHO_C='\c';;
458  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459       ECHO_T='	';;
460  esac;;
461*)
462  ECHO_N='-n';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467  rm -f conf$$.dir/conf$$.file
468else
469  rm -f conf$$.dir
470  mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473  if ln -s conf$$.file conf$$ 2>/dev/null; then
474    as_ln_s='ln -s'
475    # ... but there are two gotchas:
476    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478    # In both cases, we have to default to `cp -p'.
479    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480      as_ln_s='cp -p'
481  elif ln conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s=ln
483  else
484    as_ln_s='cp -p'
485  fi
486else
487  as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493  as_mkdir_p='mkdir -p "$as_dir"'
494else
495  test -d ./-p && rmdir ./-p
496  as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500  as_test_x='test -x'
501else
502  if ls -dL / >/dev/null 2>&1; then
503    as_ls_L_option=L
504  else
505    as_ls_L_option=
506  fi
507  as_test_x='
508    eval sh -c '\''
509      if test -d "$1"; then
510	test -d "$1/.";
511      else
512	case $1 in #(
513	-*)set "./$1";;
514	esac;
515	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516	???[sx]*):;;*)false;;esac;fi
517    '\'' sh
518  '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530# Check that we are running under the correct shell.
531SHELL=${CONFIG_SHELL-/bin/sh}
532
533case X$lt_ECHO in
534X*--fallback-echo)
535  # Remove one level of quotation (which was required for Make).
536  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537  ;;
538esac
539
540ECHO=${lt_ECHO-echo}
541if test "X$1" = X--no-reexec; then
542  # Discard the --no-reexec flag, and continue.
543  shift
544elif test "X$1" = X--fallback-echo; then
545  # Avoid inline document here, it may be left over
546  :
547elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548  # Yippee, $ECHO works!
549  :
550else
551  # Restart under the correct shell.
552  exec $SHELL "$0" --no-reexec ${1+"$@"}
553fi
554
555if test "X$1" = X--fallback-echo; then
556  # used as fallback echo
557  shift
558  cat <<_LT_EOF
559$*
560_LT_EOF
561  exit 0
562fi
563
564# The HP-UX ksh and POSIX shell print the target directory to stdout
565# if CDPATH is set.
566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568if test -z "$lt_ECHO"; then
569  if test "X${echo_test_string+set}" != Xset; then
570    # find a string as large as possible, as long as the shell can cope with it
571    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575      then
576        break
577      fi
578    done
579  fi
580
581  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583     test "X$echo_testing_string" = "X$echo_test_string"; then
584    :
585  else
586    # The Solaris, AIX, and Digital Unix default echo programs unquote
587    # backslashes.  This makes it impossible to quote backslashes using
588    #   echo "$something" | sed 's/\\/\\\\/g'
589    #
590    # So, first we look for a working echo in the user's PATH.
591
592    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593    for dir in $PATH /usr/ucb; do
594      IFS="$lt_save_ifs"
595      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598         test "X$echo_testing_string" = "X$echo_test_string"; then
599        ECHO="$dir/echo"
600        break
601      fi
602    done
603    IFS="$lt_save_ifs"
604
605    if test "X$ECHO" = Xecho; then
606      # We didn't find a better echo, so look for alternatives.
607      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609         test "X$echo_testing_string" = "X$echo_test_string"; then
610        # This shell has a builtin print -r that does the trick.
611        ECHO='print -r'
612      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613	   test "X$CONFIG_SHELL" != X/bin/ksh; then
614        # If we have ksh, try running configure again with it.
615        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616        export ORIGINAL_CONFIG_SHELL
617        CONFIG_SHELL=/bin/ksh
618        export CONFIG_SHELL
619        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620      else
621        # Try using printf.
622        ECHO='printf %s\n'
623        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625	   test "X$echo_testing_string" = "X$echo_test_string"; then
626	  # Cool, printf works
627	  :
628        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629	     test "X$echo_testing_string" = 'X\t' &&
630	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631	     test "X$echo_testing_string" = "X$echo_test_string"; then
632	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633	  export CONFIG_SHELL
634	  SHELL="$CONFIG_SHELL"
635	  export SHELL
636	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
637        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638	     test "X$echo_testing_string" = 'X\t' &&
639	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640	     test "X$echo_testing_string" = "X$echo_test_string"; then
641	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
642        else
643	  # maybe with a smaller string...
644	  prev=:
645
646	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648	    then
649	      break
650	    fi
651	    prev="$cmd"
652	  done
653
654	  if test "$prev" != 'sed 50q "$0"'; then
655	    echo_test_string=`eval $prev`
656	    export echo_test_string
657	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658	  else
659	    # Oops.  We lost completely, so just stick with echo.
660	    ECHO=echo
661	  fi
662        fi
663      fi
664    fi
665  fi
666fi
667
668# Copy echo and quote the copy suitably for passing to libtool from
669# the Makefile, instead of quoting the original, which is used later.
670lt_ECHO=$ECHO
671if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673fi
674
675
676
677
678test -n "$DJDIR" || exec 7<&0 </dev/null
679exec 6>&1
680
681# Name of the host.
682# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683# so uname gets run too.
684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686#
687# Initializations.
688#
689ac_default_prefix=/usr/local
690ac_clean_files=
691ac_config_libobj_dir=.
692LIBOBJS=
693cross_compiling=no
694subdirs=
695MFLAGS=
696MAKEFLAGS=
697
698# Identity of this package.
699PACKAGE_NAME='sphinxbase'
700PACKAGE_TARNAME='sphinxbase'
701PACKAGE_VERSION='0.8'
702PACKAGE_STRING='sphinxbase 0.8'
703PACKAGE_BUGREPORT=''
704PACKAGE_URL=''
705
706# Factoring default headers for most tests.
707ac_includes_default="\
708#include <stdio.h>
709#ifdef HAVE_SYS_TYPES_H
710# include <sys/types.h>
711#endif
712#ifdef HAVE_SYS_STAT_H
713# include <sys/stat.h>
714#endif
715#ifdef STDC_HEADERS
716# include <stdlib.h>
717# include <stddef.h>
718#else
719# ifdef HAVE_STDLIB_H
720#  include <stdlib.h>
721# endif
722#endif
723#ifdef HAVE_STRING_H
724# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725#  include <memory.h>
726# endif
727# include <string.h>
728#endif
729#ifdef HAVE_STRINGS_H
730# include <strings.h>
731#endif
732#ifdef HAVE_INTTYPES_H
733# include <inttypes.h>
734#endif
735#ifdef HAVE_STDINT_H
736# include <stdint.h>
737#endif
738#ifdef HAVE_UNISTD_H
739# include <unistd.h>
740#endif"
741
742ac_subst_vars='am__EXEEXT_FALSE
743am__EXEEXT_TRUE
744LTLIBOBJS
745LIBOBJS
746SAMPLERATE_LIBS
747SAMPLERATE_CFLAGS
748SNDFILE_LIBS
749SNDFILE_CFLAGS
750PKG_CONFIG
751HAVE_PKGCONFIG
752BUILD_CYTHON_FALSE
753BUILD_CYTHON_TRUE
754HAVE_CYTHON
755BUILD_PYTHON_FALSE
756BUILD_PYTHON_TRUE
757PYTHON_CONFIG
758PYTHON
759BUILD_DOXYGEN_FALSE
760BUILD_DOXYGEN_TRUE
761HAVE_DOXYGEN
762OTOOL64
763OTOOL
764LIPO
765NMEDIT
766DSYMUTIL
767lt_ECHO
768RANLIB
769AR
770OBJDUMP
771LN_S
772NM
773ac_ct_DUMPBIN
774DUMPBIN
775LD
776FGREP
777SED
778LIBTOOL
779ad_backend
780ad_libs
781ad_files
782FIXED_POINT_FALSE
783FIXED_POINT_TRUE
784USE_THREADS_FALSE
785USE_THREADS_TRUE
786USE_LAPACK_FALSE
787USE_LAPACK_TRUE
788LAPACK_LITE_FALSE
789LAPACK_LITE_TRUE
790LTLIBICONV
791LIBICONV
792EGREP
793GREP
794CPP
795YACC
796am__fastdepCC_FALSE
797am__fastdepCC_TRUE
798CCDEPMODE
799AMDEPBACKSLASH
800AMDEP_FALSE
801AMDEP_TRUE
802am__quote
803am__include
804DEPDIR
805OBJEXT
806EXEEXT
807ac_ct_CC
808CPPFLAGS
809LDFLAGS
810CFLAGS
811CC
812host_os
813host_vendor
814host_cpu
815host
816build_os
817build_vendor
818build_cpu
819build
820am__untar
821am__tar
822AMTAR
823am__leading_dot
824SET_MAKE
825AWK
826mkdir_p
827MKDIR_P
828INSTALL_STRIP_PROGRAM
829STRIP
830install_sh
831MAKEINFO
832AUTOHEADER
833AUTOMAKE
834AUTOCONF
835ACLOCAL
836VERSION
837PACKAGE
838CYGPATH_W
839am__isrc
840INSTALL_DATA
841INSTALL_SCRIPT
842INSTALL_PROGRAM
843target_alias
844host_alias
845build_alias
846LIBS
847ECHO_T
848ECHO_N
849ECHO_C
850DEFS
851mandir
852localedir
853libdir
854psdir
855pdfdir
856dvidir
857htmldir
858infodir
859docdir
860oldincludedir
861includedir
862localstatedir
863sharedstatedir
864sysconfdir
865datadir
866datarootdir
867libexecdir
868sbindir
869bindir
870program_transform_name
871prefix
872exec_prefix
873PACKAGE_URL
874PACKAGE_BUGREPORT
875PACKAGE_STRING
876PACKAGE_VERSION
877PACKAGE_TARNAME
878PACKAGE_NAME
879PATH_SEPARATOR
880SHELL'
881ac_subst_files=''
882ac_user_opts='
883enable_option_checking
884enable_dependency_tracking
885with_gnu_ld
886enable_rpath
887with_libiconv_prefix
888with_lapack
889enable_threads
890enable_fixed
891enable_fixed16
892enable_debug
893enable_shared
894enable_static
895with_pic
896enable_fast_install
897enable_libtool_lock
898with_python
899'
900      ac_precious_vars='build_alias
901host_alias
902target_alias
903CC
904CFLAGS
905LDFLAGS
906LIBS
907CPPFLAGS
908YACC
909CPP
910PKG_CONFIG
911SNDFILE_CFLAGS
912SNDFILE_LIBS
913SAMPLERATE_CFLAGS
914SAMPLERATE_LIBS'
915
916
917# Initialize some variables set by options.
918ac_init_help=
919ac_init_version=false
920ac_unrecognized_opts=
921ac_unrecognized_sep=
922# The variables have the same names as the options, with
923# dashes changed to underlines.
924cache_file=/dev/null
925exec_prefix=NONE
926no_create=
927no_recursion=
928prefix=NONE
929program_prefix=NONE
930program_suffix=NONE
931program_transform_name=s,x,x,
932silent=
933site=
934srcdir=
935verbose=
936x_includes=NONE
937x_libraries=NONE
938
939# Installation directory options.
940# These are left unexpanded so users can "make install exec_prefix=/foo"
941# and all the variables that are supposed to be based on exec_prefix
942# by default will actually change.
943# Use braces instead of parens because sh, perl, etc. also accept them.
944# (The list follows the same order as the GNU Coding Standards.)
945bindir='${exec_prefix}/bin'
946sbindir='${exec_prefix}/sbin'
947libexecdir='${exec_prefix}/libexec'
948datarootdir='${prefix}/share'
949datadir='${datarootdir}'
950sysconfdir='${prefix}/etc'
951sharedstatedir='${prefix}/com'
952localstatedir='${prefix}/var'
953includedir='${prefix}/include'
954oldincludedir='/usr/include'
955docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956infodir='${datarootdir}/info'
957htmldir='${docdir}'
958dvidir='${docdir}'
959pdfdir='${docdir}'
960psdir='${docdir}'
961libdir='${exec_prefix}/lib'
962localedir='${datarootdir}/locale'
963mandir='${datarootdir}/man'
964
965ac_prev=
966ac_dashdash=
967for ac_option
968do
969  # If the previous option needs an argument, assign it.
970  if test -n "$ac_prev"; then
971    eval $ac_prev=\$ac_option
972    ac_prev=
973    continue
974  fi
975
976  case $ac_option in
977  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978  *)	ac_optarg=yes ;;
979  esac
980
981  # Accept the important Cygnus configure options, so we can diagnose typos.
982
983  case $ac_dashdash$ac_option in
984  --)
985    ac_dashdash=yes ;;
986
987  -bindir | --bindir | --bindi | --bind | --bin | --bi)
988    ac_prev=bindir ;;
989  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
990    bindir=$ac_optarg ;;
991
992  -build | --build | --buil | --bui | --bu)
993    ac_prev=build_alias ;;
994  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
995    build_alias=$ac_optarg ;;
996
997  -cache-file | --cache-file | --cache-fil | --cache-fi \
998  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999    ac_prev=cache_file ;;
1000  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1002    cache_file=$ac_optarg ;;
1003
1004  --config-cache | -C)
1005    cache_file=config.cache ;;
1006
1007  -datadir | --datadir | --datadi | --datad)
1008    ac_prev=datadir ;;
1009  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1010    datadir=$ac_optarg ;;
1011
1012  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013  | --dataroo | --dataro | --datar)
1014    ac_prev=datarootdir ;;
1015  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017    datarootdir=$ac_optarg ;;
1018
1019  -disable-* | --disable-*)
1020    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1021    # Reject names that are not valid shell variable names.
1022    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023      as_fn_error "invalid feature name: $ac_useropt"
1024    ac_useropt_orig=$ac_useropt
1025    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026    case $ac_user_opts in
1027      *"
1028"enable_$ac_useropt"
1029"*) ;;
1030      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031	 ac_unrecognized_sep=', ';;
1032    esac
1033    eval enable_$ac_useropt=no ;;
1034
1035  -docdir | --docdir | --docdi | --doc | --do)
1036    ac_prev=docdir ;;
1037  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038    docdir=$ac_optarg ;;
1039
1040  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041    ac_prev=dvidir ;;
1042  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043    dvidir=$ac_optarg ;;
1044
1045  -enable-* | --enable-*)
1046    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047    # Reject names that are not valid shell variable names.
1048    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049      as_fn_error "invalid feature name: $ac_useropt"
1050    ac_useropt_orig=$ac_useropt
1051    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052    case $ac_user_opts in
1053      *"
1054"enable_$ac_useropt"
1055"*) ;;
1056      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057	 ac_unrecognized_sep=', ';;
1058    esac
1059    eval enable_$ac_useropt=\$ac_optarg ;;
1060
1061  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063  | --exec | --exe | --ex)
1064    ac_prev=exec_prefix ;;
1065  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067  | --exec=* | --exe=* | --ex=*)
1068    exec_prefix=$ac_optarg ;;
1069
1070  -gas | --gas | --ga | --g)
1071    # Obsolete; use --with-gas.
1072    with_gas=yes ;;
1073
1074  -help | --help | --hel | --he | -h)
1075    ac_init_help=long ;;
1076  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077    ac_init_help=recursive ;;
1078  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079    ac_init_help=short ;;
1080
1081  -host | --host | --hos | --ho)
1082    ac_prev=host_alias ;;
1083  -host=* | --host=* | --hos=* | --ho=*)
1084    host_alias=$ac_optarg ;;
1085
1086  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087    ac_prev=htmldir ;;
1088  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089  | --ht=*)
1090    htmldir=$ac_optarg ;;
1091
1092  -includedir | --includedir | --includedi | --included | --include \
1093  | --includ | --inclu | --incl | --inc)
1094    ac_prev=includedir ;;
1095  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096  | --includ=* | --inclu=* | --incl=* | --inc=*)
1097    includedir=$ac_optarg ;;
1098
1099  -infodir | --infodir | --infodi | --infod | --info | --inf)
1100    ac_prev=infodir ;;
1101  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102    infodir=$ac_optarg ;;
1103
1104  -libdir | --libdir | --libdi | --libd)
1105    ac_prev=libdir ;;
1106  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107    libdir=$ac_optarg ;;
1108
1109  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110  | --libexe | --libex | --libe)
1111    ac_prev=libexecdir ;;
1112  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113  | --libexe=* | --libex=* | --libe=*)
1114    libexecdir=$ac_optarg ;;
1115
1116  -localedir | --localedir | --localedi | --localed | --locale)
1117    ac_prev=localedir ;;
1118  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119    localedir=$ac_optarg ;;
1120
1121  -localstatedir | --localstatedir | --localstatedi | --localstated \
1122  | --localstate | --localstat | --localsta | --localst | --locals)
1123    ac_prev=localstatedir ;;
1124  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126    localstatedir=$ac_optarg ;;
1127
1128  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129    ac_prev=mandir ;;
1130  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131    mandir=$ac_optarg ;;
1132
1133  -nfp | --nfp | --nf)
1134    # Obsolete; use --without-fp.
1135    with_fp=no ;;
1136
1137  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138  | --no-cr | --no-c | -n)
1139    no_create=yes ;;
1140
1141  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143    no_recursion=yes ;;
1144
1145  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147  | --oldin | --oldi | --old | --ol | --o)
1148    ac_prev=oldincludedir ;;
1149  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152    oldincludedir=$ac_optarg ;;
1153
1154  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155    ac_prev=prefix ;;
1156  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157    prefix=$ac_optarg ;;
1158
1159  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160  | --program-pre | --program-pr | --program-p)
1161    ac_prev=program_prefix ;;
1162  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164    program_prefix=$ac_optarg ;;
1165
1166  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167  | --program-suf | --program-su | --program-s)
1168    ac_prev=program_suffix ;;
1169  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171    program_suffix=$ac_optarg ;;
1172
1173  -program-transform-name | --program-transform-name \
1174  | --program-transform-nam | --program-transform-na \
1175  | --program-transform-n | --program-transform- \
1176  | --program-transform | --program-transfor \
1177  | --program-transfo | --program-transf \
1178  | --program-trans | --program-tran \
1179  | --progr-tra | --program-tr | --program-t)
1180    ac_prev=program_transform_name ;;
1181  -program-transform-name=* | --program-transform-name=* \
1182  | --program-transform-nam=* | --program-transform-na=* \
1183  | --program-transform-n=* | --program-transform-=* \
1184  | --program-transform=* | --program-transfor=* \
1185  | --program-transfo=* | --program-transf=* \
1186  | --program-trans=* | --program-tran=* \
1187  | --progr-tra=* | --program-tr=* | --program-t=*)
1188    program_transform_name=$ac_optarg ;;
1189
1190  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191    ac_prev=pdfdir ;;
1192  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193    pdfdir=$ac_optarg ;;
1194
1195  -psdir | --psdir | --psdi | --psd | --ps)
1196    ac_prev=psdir ;;
1197  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198    psdir=$ac_optarg ;;
1199
1200  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201  | -silent | --silent | --silen | --sile | --sil)
1202    silent=yes ;;
1203
1204  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205    ac_prev=sbindir ;;
1206  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207  | --sbi=* | --sb=*)
1208    sbindir=$ac_optarg ;;
1209
1210  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212  | --sharedst | --shareds | --shared | --share | --shar \
1213  | --sha | --sh)
1214    ac_prev=sharedstatedir ;;
1215  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218  | --sha=* | --sh=*)
1219    sharedstatedir=$ac_optarg ;;
1220
1221  -site | --site | --sit)
1222    ac_prev=site ;;
1223  -site=* | --site=* | --sit=*)
1224    site=$ac_optarg ;;
1225
1226  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227    ac_prev=srcdir ;;
1228  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229    srcdir=$ac_optarg ;;
1230
1231  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232  | --syscon | --sysco | --sysc | --sys | --sy)
1233    ac_prev=sysconfdir ;;
1234  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236    sysconfdir=$ac_optarg ;;
1237
1238  -target | --target | --targe | --targ | --tar | --ta | --t)
1239    ac_prev=target_alias ;;
1240  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241    target_alias=$ac_optarg ;;
1242
1243  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244    verbose=yes ;;
1245
1246  -version | --version | --versio | --versi | --vers | -V)
1247    ac_init_version=: ;;
1248
1249  -with-* | --with-*)
1250    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251    # Reject names that are not valid shell variable names.
1252    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253      as_fn_error "invalid package name: $ac_useropt"
1254    ac_useropt_orig=$ac_useropt
1255    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256    case $ac_user_opts in
1257      *"
1258"with_$ac_useropt"
1259"*) ;;
1260      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261	 ac_unrecognized_sep=', ';;
1262    esac
1263    eval with_$ac_useropt=\$ac_optarg ;;
1264
1265  -without-* | --without-*)
1266    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1267    # Reject names that are not valid shell variable names.
1268    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269      as_fn_error "invalid package name: $ac_useropt"
1270    ac_useropt_orig=$ac_useropt
1271    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272    case $ac_user_opts in
1273      *"
1274"with_$ac_useropt"
1275"*) ;;
1276      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277	 ac_unrecognized_sep=', ';;
1278    esac
1279    eval with_$ac_useropt=no ;;
1280
1281  --x)
1282    # Obsolete; use --with-x.
1283    with_x=yes ;;
1284
1285  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286  | --x-incl | --x-inc | --x-in | --x-i)
1287    ac_prev=x_includes ;;
1288  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290    x_includes=$ac_optarg ;;
1291
1292  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294    ac_prev=x_libraries ;;
1295  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297    x_libraries=$ac_optarg ;;
1298
1299  -*) as_fn_error "unrecognized option: \`$ac_option'
1300Try \`$0 --help' for more information."
1301    ;;
1302
1303  *=*)
1304    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305    # Reject names that are not valid shell variable names.
1306    case $ac_envvar in #(
1307      '' | [0-9]* | *[!_$as_cr_alnum]* )
1308      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1309    esac
1310    eval $ac_envvar=\$ac_optarg
1311    export $ac_envvar ;;
1312
1313  *)
1314    # FIXME: should be removed in autoconf 3.0.
1315    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1319    ;;
1320
1321  esac
1322done
1323
1324if test -n "$ac_prev"; then
1325  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326  as_fn_error "missing argument to $ac_option"
1327fi
1328
1329if test -n "$ac_unrecognized_opts"; then
1330  case $enable_option_checking in
1331    no) ;;
1332    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1333    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1334  esac
1335fi
1336
1337# Check all directory arguments for consistency.
1338for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339		datadir sysconfdir sharedstatedir localstatedir includedir \
1340		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341		libdir localedir mandir
1342do
1343  eval ac_val=\$$ac_var
1344  # Remove trailing slashes.
1345  case $ac_val in
1346    */ )
1347      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348      eval $ac_var=\$ac_val;;
1349  esac
1350  # Be sure to have absolute directory names.
1351  case $ac_val in
1352    [\\/$]* | ?:[\\/]* )  continue;;
1353    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354  esac
1355  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1356done
1357
1358# There might be people who depend on the old broken behavior: `$host'
1359# used to hold the argument of --host etc.
1360# FIXME: To remove some day.
1361build=$build_alias
1362host=$host_alias
1363target=$target_alias
1364
1365# FIXME: To remove some day.
1366if test "x$host_alias" != x; then
1367  if test "x$build_alias" = x; then
1368    cross_compiling=maybe
1369    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1370    If a cross compiler is detected then cross compile mode will be used." >&2
1371  elif test "x$build_alias" != "x$host_alias"; then
1372    cross_compiling=yes
1373  fi
1374fi
1375
1376ac_tool_prefix=
1377test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378
1379test "$silent" = yes && exec 6>/dev/null
1380
1381
1382ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383ac_ls_di=`ls -di .` &&
1384ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385  as_fn_error "working directory cannot be determined"
1386test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387  as_fn_error "pwd does not report name of working directory"
1388
1389
1390# Find the source files, if location was not specified.
1391if test -z "$srcdir"; then
1392  ac_srcdir_defaulted=yes
1393  # Try the directory containing this script, then the parent directory.
1394  ac_confdir=`$as_dirname -- "$as_myself" ||
1395$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396	 X"$as_myself" : 'X\(//\)[^/]' \| \
1397	 X"$as_myself" : 'X\(//\)$' \| \
1398	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399$as_echo X"$as_myself" |
1400    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401	    s//\1/
1402	    q
1403	  }
1404	  /^X\(\/\/\)[^/].*/{
1405	    s//\1/
1406	    q
1407	  }
1408	  /^X\(\/\/\)$/{
1409	    s//\1/
1410	    q
1411	  }
1412	  /^X\(\/\).*/{
1413	    s//\1/
1414	    q
1415	  }
1416	  s/.*/./; q'`
1417  srcdir=$ac_confdir
1418  if test ! -r "$srcdir/$ac_unique_file"; then
1419    srcdir=..
1420  fi
1421else
1422  ac_srcdir_defaulted=no
1423fi
1424if test ! -r "$srcdir/$ac_unique_file"; then
1425  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1427fi
1428ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429ac_abs_confdir=`(
1430	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1431	pwd)`
1432# When building in place, set srcdir=.
1433if test "$ac_abs_confdir" = "$ac_pwd"; then
1434  srcdir=.
1435fi
1436# Remove unnecessary trailing slashes from srcdir.
1437# Double slashes in file names in object file debugging info
1438# mess up M-x gdb in Emacs.
1439case $srcdir in
1440*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441esac
1442for ac_var in $ac_precious_vars; do
1443  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444  eval ac_env_${ac_var}_value=\$${ac_var}
1445  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447done
1448
1449#
1450# Report the --help message.
1451#
1452if test "$ac_init_help" = "long"; then
1453  # Omit some internal or obsolete options to make the list less imposing.
1454  # This message is too long to be a string in the A/UX 3.1 sh.
1455  cat <<_ACEOF
1456\`configure' configures sphinxbase 0.8 to adapt to many kinds of systems.
1457
1458Usage: $0 [OPTION]... [VAR=VALUE]...
1459
1460To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461VAR=VALUE.  See below for descriptions of some of the useful variables.
1462
1463Defaults for the options are specified in brackets.
1464
1465Configuration:
1466  -h, --help              display this help and exit
1467      --help=short        display options specific to this package
1468      --help=recursive    display the short help of all the included packages
1469  -V, --version           display version information and exit
1470  -q, --quiet, --silent   do not print \`checking...' messages
1471      --cache-file=FILE   cache test results in FILE [disabled]
1472  -C, --config-cache      alias for \`--cache-file=config.cache'
1473  -n, --no-create         do not create output files
1474      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1475
1476Installation directories:
1477  --prefix=PREFIX         install architecture-independent files in PREFIX
1478                          [$ac_default_prefix]
1479  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1480                          [PREFIX]
1481
1482By default, \`make install' will install all the files in
1483\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1484an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485for instance \`--prefix=\$HOME'.
1486
1487For better control, use the options below.
1488
1489Fine tuning of the installation directories:
1490  --bindir=DIR            user executables [EPREFIX/bin]
1491  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1492  --libexecdir=DIR        program executables [EPREFIX/libexec]
1493  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1494  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1495  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1496  --libdir=DIR            object code libraries [EPREFIX/lib]
1497  --includedir=DIR        C header files [PREFIX/include]
1498  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1499  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1500  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1501  --infodir=DIR           info documentation [DATAROOTDIR/info]
1502  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1503  --mandir=DIR            man documentation [DATAROOTDIR/man]
1504  --docdir=DIR            documentation root [DATAROOTDIR/doc/sphinxbase]
1505  --htmldir=DIR           html documentation [DOCDIR]
1506  --dvidir=DIR            dvi documentation [DOCDIR]
1507  --pdfdir=DIR            pdf documentation [DOCDIR]
1508  --psdir=DIR             ps documentation [DOCDIR]
1509_ACEOF
1510
1511  cat <<\_ACEOF
1512
1513Program names:
1514  --program-prefix=PREFIX            prepend PREFIX to installed program names
1515  --program-suffix=SUFFIX            append SUFFIX to installed program names
1516  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1517
1518System types:
1519  --build=BUILD     configure for building on BUILD [guessed]
1520  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1521_ACEOF
1522fi
1523
1524if test -n "$ac_init_help"; then
1525  case $ac_init_help in
1526     short | recursive ) echo "Configuration of sphinxbase 0.8:";;
1527   esac
1528  cat <<\_ACEOF
1529
1530Optional Features:
1531  --disable-option-checking  ignore unrecognized --enable/--with options
1532  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1533  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1534  --disable-dependency-tracking  speeds up one-time build
1535  --enable-dependency-tracking   do not reject slow dependency extractors
1536  --disable-rpath         do not hardcode runtime library paths
1537  --disable-threads       Disable thread-safe versions of memory allocation
1538                          functions (default: check)
1539  --enable-fixed=RADIX    Use 32-bit fixed-point for MFCC and GMM computation,
1540                          optionally specifying a radix point
1541  --enable-fixed16        Use 16-bit fixed-point for MFCC computation
1542  --enable-debug          Enable debugging output
1543  --enable-shared[=PKGS]  build shared libraries [default=yes]
1544  --enable-static[=PKGS]  build static libraries [default=yes]
1545  --enable-fast-install[=PKGS]
1546                          optimize for fast installation [default=yes]
1547  --disable-libtool-lock  avoid locking (might break parallel builds)
1548
1549Optional Packages:
1550  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1551  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1552  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1553  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1554  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1555  --without-lapack        Disable matrix algebra support (depends on LAPACK)
1556  --with-pic              try to use only PIC/non-PIC objects [default=use
1557                          both]
1558  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1559  --without-python        Disable Python extension
1560
1561Some influential environment variables:
1562  CC          C compiler command
1563  CFLAGS      C compiler flags
1564  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1565              nonstandard directory <lib dir>
1566  LIBS        libraries to pass to the linker, e.g. -l<library>
1567  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1568              you have headers in a nonstandard directory <include dir>
1569  YACC        Bison command
1570  CPP         C preprocessor
1571  PKG_CONFIG  path to pkg-config utility
1572  SNDFILE_CFLAGS
1573              C compiler flags for SNDFILE, overriding pkg-config
1574  SNDFILE_LIBS
1575              linker flags for SNDFILE, overriding pkg-config
1576  SAMPLERATE_CFLAGS
1577              C compiler flags for SAMPLERATE, overriding pkg-config
1578  SAMPLERATE_LIBS
1579              linker flags for SAMPLERATE, overriding pkg-config
1580
1581Use these variables to override the choices made by `configure' or to help
1582it to find libraries and programs with nonstandard names/locations.
1583
1584Report bugs to the package provider.
1585_ACEOF
1586ac_status=$?
1587fi
1588
1589if test "$ac_init_help" = "recursive"; then
1590  # If there are subdirs, report their specific --help.
1591  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1592    test -d "$ac_dir" ||
1593      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1594      continue
1595    ac_builddir=.
1596
1597case "$ac_dir" in
1598.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599*)
1600  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1601  # A ".." for each directory in $ac_dir_suffix.
1602  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1603  case $ac_top_builddir_sub in
1604  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606  esac ;;
1607esac
1608ac_abs_top_builddir=$ac_pwd
1609ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610# for backward compatibility:
1611ac_top_builddir=$ac_top_build_prefix
1612
1613case $srcdir in
1614  .)  # We are building in place.
1615    ac_srcdir=.
1616    ac_top_srcdir=$ac_top_builddir_sub
1617    ac_abs_top_srcdir=$ac_pwd ;;
1618  [\\/]* | ?:[\\/]* )  # Absolute name.
1619    ac_srcdir=$srcdir$ac_dir_suffix;
1620    ac_top_srcdir=$srcdir
1621    ac_abs_top_srcdir=$srcdir ;;
1622  *) # Relative name.
1623    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624    ac_top_srcdir=$ac_top_build_prefix$srcdir
1625    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1626esac
1627ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1628
1629    cd "$ac_dir" || { ac_status=$?; continue; }
1630    # Check for guested configure.
1631    if test -f "$ac_srcdir/configure.gnu"; then
1632      echo &&
1633      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634    elif test -f "$ac_srcdir/configure"; then
1635      echo &&
1636      $SHELL "$ac_srcdir/configure" --help=recursive
1637    else
1638      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639    fi || ac_status=$?
1640    cd "$ac_pwd" || { ac_status=$?; break; }
1641  done
1642fi
1643
1644test -n "$ac_init_help" && exit $ac_status
1645if $ac_init_version; then
1646  cat <<\_ACEOF
1647sphinxbase configure 0.8
1648generated by GNU Autoconf 2.65
1649
1650Copyright (C) 2009 Free Software Foundation, Inc.
1651This configure script is free software; the Free Software Foundation
1652gives unlimited permission to copy, distribute and modify it.
1653_ACEOF
1654  exit
1655fi
1656
1657## ------------------------ ##
1658## Autoconf initialization. ##
1659## ------------------------ ##
1660
1661# ac_fn_c_try_compile LINENO
1662# --------------------------
1663# Try to compile conftest.$ac_ext, and return whether this succeeded.
1664ac_fn_c_try_compile ()
1665{
1666  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667  rm -f conftest.$ac_objext
1668  if { { ac_try="$ac_compile"
1669case "(($ac_try" in
1670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671  *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675  (eval "$ac_compile") 2>conftest.err
1676  ac_status=$?
1677  if test -s conftest.err; then
1678    grep -v '^ *+' conftest.err >conftest.er1
1679    cat conftest.er1 >&5
1680    mv -f conftest.er1 conftest.err
1681  fi
1682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683  test $ac_status = 0; } && {
1684	 test -z "$ac_c_werror_flag" ||
1685	 test ! -s conftest.err
1686       } && test -s conftest.$ac_objext; then :
1687  ac_retval=0
1688else
1689  $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
1691
1692	ac_retval=1
1693fi
1694  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695  as_fn_set_status $ac_retval
1696
1697} # ac_fn_c_try_compile
1698
1699# ac_fn_c_try_link LINENO
1700# -----------------------
1701# Try to link conftest.$ac_ext, and return whether this succeeded.
1702ac_fn_c_try_link ()
1703{
1704  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705  rm -f conftest.$ac_objext conftest$ac_exeext
1706  if { { ac_try="$ac_link"
1707case "(($ac_try" in
1708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709  *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713  (eval "$ac_link") 2>conftest.err
1714  ac_status=$?
1715  if test -s conftest.err; then
1716    grep -v '^ *+' conftest.err >conftest.er1
1717    cat conftest.er1 >&5
1718    mv -f conftest.er1 conftest.err
1719  fi
1720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721  test $ac_status = 0; } && {
1722	 test -z "$ac_c_werror_flag" ||
1723	 test ! -s conftest.err
1724       } && test -s conftest$ac_exeext && {
1725	 test "$cross_compiling" = yes ||
1726	 $as_test_x conftest$ac_exeext
1727       }; then :
1728  ac_retval=0
1729else
1730  $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733	ac_retval=1
1734fi
1735  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737  # interfere with the next link command; also delete a directory that is
1738  # left behind by Apple's compiler.  We do this before executing the actions.
1739  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741  as_fn_set_status $ac_retval
1742
1743} # ac_fn_c_try_link
1744
1745# ac_fn_c_try_cpp LINENO
1746# ----------------------
1747# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1748ac_fn_c_try_cpp ()
1749{
1750  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751  if { { ac_try="$ac_cpp conftest.$ac_ext"
1752case "(($ac_try" in
1753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754  *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1759  ac_status=$?
1760  if test -s conftest.err; then
1761    grep -v '^ *+' conftest.err >conftest.er1
1762    cat conftest.er1 >&5
1763    mv -f conftest.er1 conftest.err
1764  fi
1765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766  test $ac_status = 0; } >/dev/null && {
1767	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1768	 test ! -s conftest.err
1769       }; then :
1770  ac_retval=0
1771else
1772  $as_echo "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775    ac_retval=1
1776fi
1777  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778  as_fn_set_status $ac_retval
1779
1780} # ac_fn_c_try_cpp
1781
1782# ac_fn_c_try_run LINENO
1783# ----------------------
1784# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1785# that executables *can* be run.
1786ac_fn_c_try_run ()
1787{
1788  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789  if { { ac_try="$ac_link"
1790case "(($ac_try" in
1791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792  *) ac_try_echo=$ac_try;;
1793esac
1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795$as_echo "$ac_try_echo"; } >&5
1796  (eval "$ac_link") 2>&5
1797  ac_status=$?
1798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800  { { case "(($ac_try" in
1801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802  *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806  (eval "$ac_try") 2>&5
1807  ac_status=$?
1808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809  test $ac_status = 0; }; }; then :
1810  ac_retval=0
1811else
1812  $as_echo "$as_me: program exited with status $ac_status" >&5
1813       $as_echo "$as_me: failed program was:" >&5
1814sed 's/^/| /' conftest.$ac_ext >&5
1815
1816       ac_retval=$ac_status
1817fi
1818  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820  as_fn_set_status $ac_retval
1821
1822} # ac_fn_c_try_run
1823
1824# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1825# -------------------------------------------------------
1826# Tests whether HEADER exists and can be compiled using the include files in
1827# INCLUDES, setting the cache variable VAR accordingly.
1828ac_fn_c_check_header_compile ()
1829{
1830  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832$as_echo_n "checking for $2... " >&6; }
1833if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1834  $as_echo_n "(cached) " >&6
1835else
1836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837/* end confdefs.h.  */
1838$4
1839#include <$2>
1840_ACEOF
1841if ac_fn_c_try_compile "$LINENO"; then :
1842  eval "$3=yes"
1843else
1844  eval "$3=no"
1845fi
1846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847fi
1848eval ac_res=\$$3
1849	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850$as_echo "$ac_res" >&6; }
1851  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852
1853} # ac_fn_c_check_header_compile
1854
1855# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1856# -------------------------------------------
1857# Tests whether TYPE exists after having included INCLUDES, setting cache
1858# variable VAR accordingly.
1859ac_fn_c_check_type ()
1860{
1861  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863$as_echo_n "checking for $2... " >&6; }
1864if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1865  $as_echo_n "(cached) " >&6
1866else
1867  eval "$3=no"
1868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869/* end confdefs.h.  */
1870$4
1871int
1872main ()
1873{
1874if (sizeof ($2))
1875	 return 0;
1876  ;
1877  return 0;
1878}
1879_ACEOF
1880if ac_fn_c_try_compile "$LINENO"; then :
1881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882/* end confdefs.h.  */
1883$4
1884int
1885main ()
1886{
1887if (sizeof (($2)))
1888	    return 0;
1889  ;
1890  return 0;
1891}
1892_ACEOF
1893if ac_fn_c_try_compile "$LINENO"; then :
1894
1895else
1896  eval "$3=yes"
1897fi
1898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899fi
1900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901fi
1902eval ac_res=\$$3
1903	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904$as_echo "$ac_res" >&6; }
1905  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906
1907} # ac_fn_c_check_type
1908
1909# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1910# --------------------------------------------
1911# Tries to find the compile-time value of EXPR in a program that includes
1912# INCLUDES, setting VAR accordingly. Returns whether the value could be
1913# computed
1914ac_fn_c_compute_int ()
1915{
1916  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917  if test "$cross_compiling" = yes; then
1918    # Depending upon the size, compute the lo and hi bounds.
1919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920/* end confdefs.h.  */
1921$4
1922int
1923main ()
1924{
1925static int test_array [1 - 2 * !(($2) >= 0)];
1926test_array [0] = 0
1927
1928  ;
1929  return 0;
1930}
1931_ACEOF
1932if ac_fn_c_try_compile "$LINENO"; then :
1933  ac_lo=0 ac_mid=0
1934  while :; do
1935    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936/* end confdefs.h.  */
1937$4
1938int
1939main ()
1940{
1941static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1942test_array [0] = 0
1943
1944  ;
1945  return 0;
1946}
1947_ACEOF
1948if ac_fn_c_try_compile "$LINENO"; then :
1949  ac_hi=$ac_mid; break
1950else
1951  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1952			if test $ac_lo -le $ac_mid; then
1953			  ac_lo= ac_hi=
1954			  break
1955			fi
1956			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1957fi
1958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959  done
1960else
1961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h.  */
1963$4
1964int
1965main ()
1966{
1967static int test_array [1 - 2 * !(($2) < 0)];
1968test_array [0] = 0
1969
1970  ;
1971  return 0;
1972}
1973_ACEOF
1974if ac_fn_c_try_compile "$LINENO"; then :
1975  ac_hi=-1 ac_mid=-1
1976  while :; do
1977    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978/* end confdefs.h.  */
1979$4
1980int
1981main ()
1982{
1983static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1984test_array [0] = 0
1985
1986  ;
1987  return 0;
1988}
1989_ACEOF
1990if ac_fn_c_try_compile "$LINENO"; then :
1991  ac_lo=$ac_mid; break
1992else
1993  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1994			if test $ac_mid -le $ac_hi; then
1995			  ac_lo= ac_hi=
1996			  break
1997			fi
1998			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1999fi
2000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001  done
2002else
2003  ac_lo= ac_hi=
2004fi
2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006fi
2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008# Binary search between lo and hi bounds.
2009while test "x$ac_lo" != "x$ac_hi"; do
2010  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h.  */
2013$4
2014int
2015main ()
2016{
2017static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2018test_array [0] = 0
2019
2020  ;
2021  return 0;
2022}
2023_ACEOF
2024if ac_fn_c_try_compile "$LINENO"; then :
2025  ac_hi=$ac_mid
2026else
2027  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2028fi
2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030done
2031case $ac_lo in #((
2032?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2033'') ac_retval=1 ;;
2034esac
2035  else
2036    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037/* end confdefs.h.  */
2038$4
2039static long int longval () { return $2; }
2040static unsigned long int ulongval () { return $2; }
2041#include <stdio.h>
2042#include <stdlib.h>
2043int
2044main ()
2045{
2046
2047  FILE *f = fopen ("conftest.val", "w");
2048  if (! f)
2049    return 1;
2050  if (($2) < 0)
2051    {
2052      long int i = longval ();
2053      if (i != ($2))
2054	return 1;
2055      fprintf (f, "%ld", i);
2056    }
2057  else
2058    {
2059      unsigned long int i = ulongval ();
2060      if (i != ($2))
2061	return 1;
2062      fprintf (f, "%lu", i);
2063    }
2064  /* Do not output a trailing newline, as this causes \r\n confusion
2065     on some platforms.  */
2066  return ferror (f) || fclose (f) != 0;
2067
2068  ;
2069  return 0;
2070}
2071_ACEOF
2072if ac_fn_c_try_run "$LINENO"; then :
2073  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2074else
2075  ac_retval=1
2076fi
2077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2078  conftest.$ac_objext conftest.beam conftest.$ac_ext
2079rm -f conftest.val
2080
2081  fi
2082  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2083  as_fn_set_status $ac_retval
2084
2085} # ac_fn_c_compute_int
2086
2087# ac_fn_c_check_func LINENO FUNC VAR
2088# ----------------------------------
2089# Tests whether FUNC exists, setting the cache variable VAR accordingly
2090ac_fn_c_check_func ()
2091{
2092  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094$as_echo_n "checking for $2... " >&6; }
2095if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2096  $as_echo_n "(cached) " >&6
2097else
2098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099/* end confdefs.h.  */
2100/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2101   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2102#define $2 innocuous_$2
2103
2104/* System header to define __stub macros and hopefully few prototypes,
2105    which can conflict with char $2 (); below.
2106    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2107    <limits.h> exists even on freestanding compilers.  */
2108
2109#ifdef __STDC__
2110# include <limits.h>
2111#else
2112# include <assert.h>
2113#endif
2114
2115#undef $2
2116
2117/* Override any GCC internal prototype to avoid an error.
2118   Use char because int might match the return type of a GCC
2119   builtin and then its argument prototype would still apply.  */
2120#ifdef __cplusplus
2121extern "C"
2122#endif
2123char $2 ();
2124/* The GNU C library defines this for functions which it implements
2125    to always fail with ENOSYS.  Some functions are actually named
2126    something starting with __ and the normal name is an alias.  */
2127#if defined __stub_$2 || defined __stub___$2
2128choke me
2129#endif
2130
2131int
2132main ()
2133{
2134return $2 ();
2135  ;
2136  return 0;
2137}
2138_ACEOF
2139if ac_fn_c_try_link "$LINENO"; then :
2140  eval "$3=yes"
2141else
2142  eval "$3=no"
2143fi
2144rm -f core conftest.err conftest.$ac_objext \
2145    conftest$ac_exeext conftest.$ac_ext
2146fi
2147eval ac_res=\$$3
2148	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149$as_echo "$ac_res" >&6; }
2150  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2151
2152} # ac_fn_c_check_func
2153
2154# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2155# -------------------------------------------------------
2156# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2157# the include files in INCLUDES and setting the cache variable VAR
2158# accordingly.
2159ac_fn_c_check_header_mongrel ()
2160{
2161  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164$as_echo_n "checking for $2... " >&6; }
2165if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2166  $as_echo_n "(cached) " >&6
2167fi
2168eval ac_res=\$$3
2169	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170$as_echo "$ac_res" >&6; }
2171else
2172  # Is the header compilable?
2173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2174$as_echo_n "checking $2 usability... " >&6; }
2175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176/* end confdefs.h.  */
2177$4
2178#include <$2>
2179_ACEOF
2180if ac_fn_c_try_compile "$LINENO"; then :
2181  ac_header_compiler=yes
2182else
2183  ac_header_compiler=no
2184fi
2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2187$as_echo "$ac_header_compiler" >&6; }
2188
2189# Is the header present?
2190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2191$as_echo_n "checking $2 presence... " >&6; }
2192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193/* end confdefs.h.  */
2194#include <$2>
2195_ACEOF
2196if ac_fn_c_try_cpp "$LINENO"; then :
2197  ac_header_preproc=yes
2198else
2199  ac_header_preproc=no
2200fi
2201rm -f conftest.err conftest.$ac_ext
2202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2203$as_echo "$ac_header_preproc" >&6; }
2204
2205# So?  What about this header?
2206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2207  yes:no: )
2208    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2209$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2210    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2211$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2212    ;;
2213  no:yes:* )
2214    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2215$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2216    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2217$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2218    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2219$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2220    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2221$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2222    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2223$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2224    ;;
2225esac
2226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227$as_echo_n "checking for $2... " >&6; }
2228if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2229  $as_echo_n "(cached) " >&6
2230else
2231  eval "$3=\$ac_header_compiler"
2232fi
2233eval ac_res=\$$3
2234	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235$as_echo "$ac_res" >&6; }
2236fi
2237  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2238
2239} # ac_fn_c_check_header_mongrel
2240cat >config.log <<_ACEOF
2241This file contains any messages produced by compilers while
2242running configure, to aid debugging if configure makes a mistake.
2243
2244It was created by sphinxbase $as_me 0.8, which was
2245generated by GNU Autoconf 2.65.  Invocation command line was
2246
2247  $ $0 $@
2248
2249_ACEOF
2250exec 5>>config.log
2251{
2252cat <<_ASUNAME
2253## --------- ##
2254## Platform. ##
2255## --------- ##
2256
2257hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2258uname -m = `(uname -m) 2>/dev/null || echo unknown`
2259uname -r = `(uname -r) 2>/dev/null || echo unknown`
2260uname -s = `(uname -s) 2>/dev/null || echo unknown`
2261uname -v = `(uname -v) 2>/dev/null || echo unknown`
2262
2263/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2264/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2265
2266/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2267/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2268/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2269/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2270/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2271/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2272/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2273
2274_ASUNAME
2275
2276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277for as_dir in $PATH
2278do
2279  IFS=$as_save_IFS
2280  test -z "$as_dir" && as_dir=.
2281    $as_echo "PATH: $as_dir"
2282  done
2283IFS=$as_save_IFS
2284
2285} >&5
2286
2287cat >&5 <<_ACEOF
2288
2289
2290## ----------- ##
2291## Core tests. ##
2292## ----------- ##
2293
2294_ACEOF
2295
2296
2297# Keep a trace of the command line.
2298# Strip out --no-create and --no-recursion so they do not pile up.
2299# Strip out --silent because we don't want to record it for future runs.
2300# Also quote any args containing shell meta-characters.
2301# Make two passes to allow for proper duplicate-argument suppression.
2302ac_configure_args=
2303ac_configure_args0=
2304ac_configure_args1=
2305ac_must_keep_next=false
2306for ac_pass in 1 2
2307do
2308  for ac_arg
2309  do
2310    case $ac_arg in
2311    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2312    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2313    | -silent | --silent | --silen | --sile | --sil)
2314      continue ;;
2315    *\'*)
2316      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2317    esac
2318    case $ac_pass in
2319    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2320    2)
2321      as_fn_append ac_configure_args1 " '$ac_arg'"
2322      if test $ac_must_keep_next = true; then
2323	ac_must_keep_next=false # Got value, back to normal.
2324      else
2325	case $ac_arg in
2326	  *=* | --config-cache | -C | -disable-* | --disable-* \
2327	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2328	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2329	  | -with-* | --with-* | -without-* | --without-* | --x)
2330	    case "$ac_configure_args0 " in
2331	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2332	    esac
2333	    ;;
2334	  -* ) ac_must_keep_next=true ;;
2335	esac
2336      fi
2337      as_fn_append ac_configure_args " '$ac_arg'"
2338      ;;
2339    esac
2340  done
2341done
2342{ ac_configure_args0=; unset ac_configure_args0;}
2343{ ac_configure_args1=; unset ac_configure_args1;}
2344
2345# When interrupted or exit'd, cleanup temporary files, and complete
2346# config.log.  We remove comments because anyway the quotes in there
2347# would cause problems or look ugly.
2348# WARNING: Use '\'' to represent an apostrophe within the trap.
2349# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2350trap 'exit_status=$?
2351  # Save into config.log some information that might help in debugging.
2352  {
2353    echo
2354
2355    cat <<\_ASBOX
2356## ---------------- ##
2357## Cache variables. ##
2358## ---------------- ##
2359_ASBOX
2360    echo
2361    # The following way of writing the cache mishandles newlines in values,
2362(
2363  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2364    eval ac_val=\$$ac_var
2365    case $ac_val in #(
2366    *${as_nl}*)
2367      case $ac_var in #(
2368      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2369$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2370      esac
2371      case $ac_var in #(
2372      _ | IFS | as_nl) ;; #(
2373      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2374      *) { eval $ac_var=; unset $ac_var;} ;;
2375      esac ;;
2376    esac
2377  done
2378  (set) 2>&1 |
2379    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2380    *${as_nl}ac_space=\ *)
2381      sed -n \
2382	"s/'\''/'\''\\\\'\'''\''/g;
2383	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2384      ;; #(
2385    *)
2386      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2387      ;;
2388    esac |
2389    sort
2390)
2391    echo
2392
2393    cat <<\_ASBOX
2394## ----------------- ##
2395## Output variables. ##
2396## ----------------- ##
2397_ASBOX
2398    echo
2399    for ac_var in $ac_subst_vars
2400    do
2401      eval ac_val=\$$ac_var
2402      case $ac_val in
2403      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2404      esac
2405      $as_echo "$ac_var='\''$ac_val'\''"
2406    done | sort
2407    echo
2408
2409    if test -n "$ac_subst_files"; then
2410      cat <<\_ASBOX
2411## ------------------- ##
2412## File substitutions. ##
2413## ------------------- ##
2414_ASBOX
2415      echo
2416      for ac_var in $ac_subst_files
2417      do
2418	eval ac_val=\$$ac_var
2419	case $ac_val in
2420	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2421	esac
2422	$as_echo "$ac_var='\''$ac_val'\''"
2423      done | sort
2424      echo
2425    fi
2426
2427    if test -s confdefs.h; then
2428      cat <<\_ASBOX
2429## ----------- ##
2430## confdefs.h. ##
2431## ----------- ##
2432_ASBOX
2433      echo
2434      cat confdefs.h
2435      echo
2436    fi
2437    test "$ac_signal" != 0 &&
2438      $as_echo "$as_me: caught signal $ac_signal"
2439    $as_echo "$as_me: exit $exit_status"
2440  } >&5
2441  rm -f core *.core core.conftest.* &&
2442    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2443    exit $exit_status
2444' 0
2445for ac_signal in 1 2 13 15; do
2446  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2447done
2448ac_signal=0
2449
2450# confdefs.h avoids OS command line length limits that DEFS can exceed.
2451rm -f -r conftest* confdefs.h
2452
2453$as_echo "/* confdefs.h */" > confdefs.h
2454
2455# Predefined preprocessor variables.
2456
2457cat >>confdefs.h <<_ACEOF
2458#define PACKAGE_NAME "$PACKAGE_NAME"
2459_ACEOF
2460
2461cat >>confdefs.h <<_ACEOF
2462#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2463_ACEOF
2464
2465cat >>confdefs.h <<_ACEOF
2466#define PACKAGE_VERSION "$PACKAGE_VERSION"
2467_ACEOF
2468
2469cat >>confdefs.h <<_ACEOF
2470#define PACKAGE_STRING "$PACKAGE_STRING"
2471_ACEOF
2472
2473cat >>confdefs.h <<_ACEOF
2474#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2475_ACEOF
2476
2477cat >>confdefs.h <<_ACEOF
2478#define PACKAGE_URL "$PACKAGE_URL"
2479_ACEOF
2480
2481
2482# Let the site file select an alternate cache file if it wants to.
2483# Prefer an explicitly selected file to automatically selected ones.
2484ac_site_file1=NONE
2485ac_site_file2=NONE
2486if test -n "$CONFIG_SITE"; then
2487  ac_site_file1=$CONFIG_SITE
2488elif test "x$prefix" != xNONE; then
2489  ac_site_file1=$prefix/share/config.site
2490  ac_site_file2=$prefix/etc/config.site
2491else
2492  ac_site_file1=$ac_default_prefix/share/config.site
2493  ac_site_file2=$ac_default_prefix/etc/config.site
2494fi
2495for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2496do
2497  test "x$ac_site_file" = xNONE && continue
2498  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2499    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2500$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2501    sed 's/^/| /' "$ac_site_file" >&5
2502    . "$ac_site_file"
2503  fi
2504done
2505
2506if test -r "$cache_file"; then
2507  # Some versions of bash will fail to source /dev/null (special files
2508  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2509  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2510    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2511$as_echo "$as_me: loading cache $cache_file" >&6;}
2512    case $cache_file in
2513      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2514      *)                      . "./$cache_file";;
2515    esac
2516  fi
2517else
2518  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2519$as_echo "$as_me: creating cache $cache_file" >&6;}
2520  >$cache_file
2521fi
2522
2523# Check that the precious variables saved in the cache have kept the same
2524# value.
2525ac_cache_corrupted=false
2526for ac_var in $ac_precious_vars; do
2527  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2528  eval ac_new_set=\$ac_env_${ac_var}_set
2529  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2530  eval ac_new_val=\$ac_env_${ac_var}_value
2531  case $ac_old_set,$ac_new_set in
2532    set,)
2533      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2534$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2535      ac_cache_corrupted=: ;;
2536    ,set)
2537      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2538$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2539      ac_cache_corrupted=: ;;
2540    ,);;
2541    *)
2542      if test "x$ac_old_val" != "x$ac_new_val"; then
2543	# differences in whitespace do not lead to failure.
2544	ac_old_val_w=`echo x $ac_old_val`
2545	ac_new_val_w=`echo x $ac_new_val`
2546	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2547	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2548$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2549	  ac_cache_corrupted=:
2550	else
2551	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2552$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2553	  eval $ac_var=\$ac_old_val
2554	fi
2555	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2556$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2557	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2558$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2559      fi;;
2560  esac
2561  # Pass precious variables to config.status.
2562  if test "$ac_new_set" = set; then
2563    case $ac_new_val in
2564    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2565    *) ac_arg=$ac_var=$ac_new_val ;;
2566    esac
2567    case " $ac_configure_args " in
2568      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2569      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2570    esac
2571  fi
2572done
2573if $ac_cache_corrupted; then
2574  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2576  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2577$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2578  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2579fi
2580## -------------------- ##
2581## Main body of script. ##
2582## -------------------- ##
2583
2584ac_ext=c
2585ac_cpp='$CPP $CPPFLAGS'
2586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2588ac_compiler_gnu=$ac_cv_c_compiler_gnu
2589
2590
2591ac_config_headers="$ac_config_headers include/config.h include/sphinx_config.h"
2592
2593am__api_version='1.11'
2594
2595ac_aux_dir=
2596for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2597  for ac_t in install-sh install.sh shtool; do
2598    if test -f "$ac_dir/$ac_t"; then
2599      ac_aux_dir=$ac_dir
2600      ac_install_sh="$ac_aux_dir/$ac_t -c"
2601      break 2
2602    fi
2603  done
2604done
2605if test -z "$ac_aux_dir"; then
2606  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2607fi
2608
2609# These three variables are undocumented and unsupported,
2610# and are intended to be withdrawn in a future Autoconf release.
2611# They can cause serious problems if a builder's source tree is in a directory
2612# whose full name contains unusual characters.
2613ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2614ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2615ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2616
2617
2618# Find a good install program.  We prefer a C program (faster),
2619# so one script is as good as another.  But avoid the broken or
2620# incompatible versions:
2621# SysV /etc/install, /usr/sbin/install
2622# SunOS /usr/etc/install
2623# IRIX /sbin/install
2624# AIX /bin/install
2625# AmigaOS /C/install, which installs bootblocks on floppy discs
2626# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2627# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2628# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2629# OS/2's system install, which has a completely different semantic
2630# ./install, which can be erroneously created by make from ./install.sh.
2631# Reject install programs that cannot install multiple files.
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2633$as_echo_n "checking for a BSD-compatible install... " >&6; }
2634if test -z "$INSTALL"; then
2635if test "${ac_cv_path_install+set}" = set; then :
2636  $as_echo_n "(cached) " >&6
2637else
2638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639for as_dir in $PATH
2640do
2641  IFS=$as_save_IFS
2642  test -z "$as_dir" && as_dir=.
2643    # Account for people who put trailing slashes in PATH elements.
2644case $as_dir/ in #((
2645  ./ | .// | /[cC]/* | \
2646  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2647  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2648  /usr/ucb/* ) ;;
2649  *)
2650    # OSF1 and SCO ODT 3.0 have their own names for install.
2651    # Don't use installbsd from OSF since it installs stuff as root
2652    # by default.
2653    for ac_prog in ginstall scoinst install; do
2654      for ac_exec_ext in '' $ac_executable_extensions; do
2655	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2656	  if test $ac_prog = install &&
2657	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2658	    # AIX install.  It has an incompatible calling convention.
2659	    :
2660	  elif test $ac_prog = install &&
2661	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2662	    # program-specific install script used by HP pwplus--don't use.
2663	    :
2664	  else
2665	    rm -rf conftest.one conftest.two conftest.dir
2666	    echo one > conftest.one
2667	    echo two > conftest.two
2668	    mkdir conftest.dir
2669	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2670	      test -s conftest.one && test -s conftest.two &&
2671	      test -s conftest.dir/conftest.one &&
2672	      test -s conftest.dir/conftest.two
2673	    then
2674	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2675	      break 3
2676	    fi
2677	  fi
2678	fi
2679      done
2680    done
2681    ;;
2682esac
2683
2684  done
2685IFS=$as_save_IFS
2686
2687rm -rf conftest.one conftest.two conftest.dir
2688
2689fi
2690  if test "${ac_cv_path_install+set}" = set; then
2691    INSTALL=$ac_cv_path_install
2692  else
2693    # As a last resort, use the slow shell script.  Don't cache a
2694    # value for INSTALL within a source directory, because that will
2695    # break other packages using the cache if that directory is
2696    # removed, or if the value is a relative name.
2697    INSTALL=$ac_install_sh
2698  fi
2699fi
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2701$as_echo "$INSTALL" >&6; }
2702
2703# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2704# It thinks the first close brace ends the variable substitution.
2705test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2706
2707test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2708
2709test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2710
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2712$as_echo_n "checking whether build environment is sane... " >&6; }
2713# Just in case
2714sleep 1
2715echo timestamp > conftest.file
2716# Reject unsafe characters in $srcdir or the absolute working directory
2717# name.  Accept space and tab only in the latter.
2718am_lf='
2719'
2720case `pwd` in
2721  *[\\\"\#\$\&\'\`$am_lf]*)
2722    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2723esac
2724case $srcdir in
2725  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2726    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2727esac
2728
2729# Do `set' in a subshell so we don't clobber the current shell's
2730# arguments.  Must try -L first in case configure is actually a
2731# symlink; some systems play weird games with the mod time of symlinks
2732# (eg FreeBSD returns the mod time of the symlink's containing
2733# directory).
2734if (
2735   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2736   if test "$*" = "X"; then
2737      # -L didn't work.
2738      set X `ls -t "$srcdir/configure" conftest.file`
2739   fi
2740   rm -f conftest.file
2741   if test "$*" != "X $srcdir/configure conftest.file" \
2742      && test "$*" != "X conftest.file $srcdir/configure"; then
2743
2744      # If neither matched, then we have a broken ls.  This can happen
2745      # if, for instance, CONFIG_SHELL is bash and it inherits a
2746      # broken ls alias from the environment.  This has actually
2747      # happened.  Such a system could not be considered "sane".
2748      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2749alias in your environment" "$LINENO" 5
2750   fi
2751
2752   test "$2" = conftest.file
2753   )
2754then
2755   # Ok.
2756   :
2757else
2758   as_fn_error "newly created file is older than distributed files!
2759Check your system clock" "$LINENO" 5
2760fi
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2762$as_echo "yes" >&6; }
2763test "$program_prefix" != NONE &&
2764  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2765# Use a double $ so make ignores it.
2766test "$program_suffix" != NONE &&
2767  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2768# Double any \ or $.
2769# By default was `s,x,x', remove it if useless.
2770ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2771program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2772
2773# expand $ac_aux_dir to an absolute path
2774am_aux_dir=`cd $ac_aux_dir && pwd`
2775
2776if test x"${MISSING+set}" != xset; then
2777  case $am_aux_dir in
2778  *\ * | *\	*)
2779    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2780  *)
2781    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2782  esac
2783fi
2784# Use eval to expand $SHELL
2785if eval "$MISSING --run true"; then
2786  am_missing_run="$MISSING --run "
2787else
2788  am_missing_run=
2789  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2790$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2791fi
2792
2793if test x"${install_sh}" != xset; then
2794  case $am_aux_dir in
2795  *\ * | *\	*)
2796    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2797  *)
2798    install_sh="\${SHELL} $am_aux_dir/install-sh"
2799  esac
2800fi
2801
2802# Installed binaries are usually stripped using `strip' when the user
2803# run `make install-strip'.  However `strip' might not be the right
2804# tool to use in cross-compilation environments, therefore Automake
2805# will honor the `STRIP' environment variable to overrule this program.
2806if test "$cross_compiling" != no; then
2807  if test -n "$ac_tool_prefix"; then
2808  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2809set dummy ${ac_tool_prefix}strip; ac_word=$2
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811$as_echo_n "checking for $ac_word... " >&6; }
2812if test "${ac_cv_prog_STRIP+set}" = set; then :
2813  $as_echo_n "(cached) " >&6
2814else
2815  if test -n "$STRIP"; then
2816  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2817else
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821  IFS=$as_save_IFS
2822  test -z "$as_dir" && as_dir=.
2823    for ac_exec_ext in '' $ac_executable_extensions; do
2824  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827    break 2
2828  fi
2829done
2830  done
2831IFS=$as_save_IFS
2832
2833fi
2834fi
2835STRIP=$ac_cv_prog_STRIP
2836if test -n "$STRIP"; then
2837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2838$as_echo "$STRIP" >&6; }
2839else
2840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841$as_echo "no" >&6; }
2842fi
2843
2844
2845fi
2846if test -z "$ac_cv_prog_STRIP"; then
2847  ac_ct_STRIP=$STRIP
2848  # Extract the first word of "strip", so it can be a program name with args.
2849set dummy strip; ac_word=$2
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851$as_echo_n "checking for $ac_word... " >&6; }
2852if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2853  $as_echo_n "(cached) " >&6
2854else
2855  if test -n "$ac_ct_STRIP"; then
2856  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2857else
2858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859for as_dir in $PATH
2860do
2861  IFS=$as_save_IFS
2862  test -z "$as_dir" && as_dir=.
2863    for ac_exec_ext in '' $ac_executable_extensions; do
2864  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865    ac_cv_prog_ac_ct_STRIP="strip"
2866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867    break 2
2868  fi
2869done
2870  done
2871IFS=$as_save_IFS
2872
2873fi
2874fi
2875ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2876if test -n "$ac_ct_STRIP"; then
2877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2878$as_echo "$ac_ct_STRIP" >&6; }
2879else
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881$as_echo "no" >&6; }
2882fi
2883
2884  if test "x$ac_ct_STRIP" = x; then
2885    STRIP=":"
2886  else
2887    case $cross_compiling:$ac_tool_warned in
2888yes:)
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2891ac_tool_warned=yes ;;
2892esac
2893    STRIP=$ac_ct_STRIP
2894  fi
2895else
2896  STRIP="$ac_cv_prog_STRIP"
2897fi
2898
2899fi
2900INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2901
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2903$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2904if test -z "$MKDIR_P"; then
2905  if test "${ac_cv_path_mkdir+set}" = set; then :
2906  $as_echo_n "(cached) " >&6
2907else
2908  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2910do
2911  IFS=$as_save_IFS
2912  test -z "$as_dir" && as_dir=.
2913    for ac_prog in mkdir gmkdir; do
2914	 for ac_exec_ext in '' $ac_executable_extensions; do
2915	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2916	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2917	     'mkdir (GNU coreutils) '* | \
2918	     'mkdir (coreutils) '* | \
2919	     'mkdir (fileutils) '4.1*)
2920	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2921	       break 3;;
2922	   esac
2923	 done
2924       done
2925  done
2926IFS=$as_save_IFS
2927
2928fi
2929
2930  test -d ./--version && rmdir ./--version
2931  if test "${ac_cv_path_mkdir+set}" = set; then
2932    MKDIR_P="$ac_cv_path_mkdir -p"
2933  else
2934    # As a last resort, use the slow shell script.  Don't cache a
2935    # value for MKDIR_P within a source directory, because that will
2936    # break other packages using the cache if that directory is
2937    # removed, or if the value is a relative name.
2938    MKDIR_P="$ac_install_sh -d"
2939  fi
2940fi
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2942$as_echo "$MKDIR_P" >&6; }
2943
2944mkdir_p="$MKDIR_P"
2945case $mkdir_p in
2946  [\\/$]* | ?:[\\/]*) ;;
2947  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2948esac
2949
2950for ac_prog in gawk mawk nawk awk
2951do
2952  # Extract the first word of "$ac_prog", so it can be a program name with args.
2953set dummy $ac_prog; ac_word=$2
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955$as_echo_n "checking for $ac_word... " >&6; }
2956if test "${ac_cv_prog_AWK+set}" = set; then :
2957  $as_echo_n "(cached) " >&6
2958else
2959  if test -n "$AWK"; then
2960  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2961else
2962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963for as_dir in $PATH
2964do
2965  IFS=$as_save_IFS
2966  test -z "$as_dir" && as_dir=.
2967    for ac_exec_ext in '' $ac_executable_extensions; do
2968  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969    ac_cv_prog_AWK="$ac_prog"
2970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971    break 2
2972  fi
2973done
2974  done
2975IFS=$as_save_IFS
2976
2977fi
2978fi
2979AWK=$ac_cv_prog_AWK
2980if test -n "$AWK"; then
2981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2982$as_echo "$AWK" >&6; }
2983else
2984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985$as_echo "no" >&6; }
2986fi
2987
2988
2989  test -n "$AWK" && break
2990done
2991
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2993$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2994set x ${MAKE-make}
2995ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2996if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2997  $as_echo_n "(cached) " >&6
2998else
2999  cat >conftest.make <<\_ACEOF
3000SHELL = /bin/sh
3001all:
3002	@echo '@@@%%%=$(MAKE)=@@@%%%'
3003_ACEOF
3004# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3005case `${MAKE-make} -f conftest.make 2>/dev/null` in
3006  *@@@%%%=?*=@@@%%%*)
3007    eval ac_cv_prog_make_${ac_make}_set=yes;;
3008  *)
3009    eval ac_cv_prog_make_${ac_make}_set=no;;
3010esac
3011rm -f conftest.make
3012fi
3013if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3015$as_echo "yes" >&6; }
3016  SET_MAKE=
3017else
3018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019$as_echo "no" >&6; }
3020  SET_MAKE="MAKE=${MAKE-make}"
3021fi
3022
3023rm -rf .tst 2>/dev/null
3024mkdir .tst 2>/dev/null
3025if test -d .tst; then
3026  am__leading_dot=.
3027else
3028  am__leading_dot=_
3029fi
3030rmdir .tst 2>/dev/null
3031
3032if test "`cd $srcdir && pwd`" != "`pwd`"; then
3033  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3034  # is not polluted with repeated "-I."
3035  am__isrc=' -I$(srcdir)'
3036  # test to see if srcdir already configured
3037  if test -f $srcdir/config.status; then
3038    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3039  fi
3040fi
3041
3042# test whether we have cygpath
3043if test -z "$CYGPATH_W"; then
3044  if (cygpath --version) >/dev/null 2>/dev/null; then
3045    CYGPATH_W='cygpath -w'
3046  else
3047    CYGPATH_W=echo
3048  fi
3049fi
3050
3051
3052# Define the identity of the package.
3053 PACKAGE='sphinxbase'
3054 VERSION='0.8'
3055
3056
3057# Some tools Automake needs.
3058
3059ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3060
3061
3062AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3063
3064
3065AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3066
3067
3068AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3069
3070
3071MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3072
3073# We need awk for the "check" target.  The system "awk" is bad on
3074# some platforms.
3075# Always define AMTAR for backward compatibility.
3076
3077AMTAR=${AMTAR-"${am_missing_run}tar"}
3078
3079am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3080
3081
3082
3083
3084
3085
3086
3087CFLAGS=${CFLAGS:--g -O2 -Wall}
3088
3089# Make sure we can run config.sub.
3090$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3091  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3092
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3094$as_echo_n "checking build system type... " >&6; }
3095if test "${ac_cv_build+set}" = set; then :
3096  $as_echo_n "(cached) " >&6
3097else
3098  ac_build_alias=$build_alias
3099test "x$ac_build_alias" = x &&
3100  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3101test "x$ac_build_alias" = x &&
3102  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3103ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3104  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3105
3106fi
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3108$as_echo "$ac_cv_build" >&6; }
3109case $ac_cv_build in
3110*-*-*) ;;
3111*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3112esac
3113build=$ac_cv_build
3114ac_save_IFS=$IFS; IFS='-'
3115set x $ac_cv_build
3116shift
3117build_cpu=$1
3118build_vendor=$2
3119shift; shift
3120# Remember, the first character of IFS is used to create $*,
3121# except with old shells:
3122build_os=$*
3123IFS=$ac_save_IFS
3124case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3125
3126
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3128$as_echo_n "checking host system type... " >&6; }
3129if test "${ac_cv_host+set}" = set; then :
3130  $as_echo_n "(cached) " >&6
3131else
3132  if test "x$host_alias" = x; then
3133  ac_cv_host=$ac_cv_build
3134else
3135  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3136    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3137fi
3138
3139fi
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3141$as_echo "$ac_cv_host" >&6; }
3142case $ac_cv_host in
3143*-*-*) ;;
3144*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3145esac
3146host=$ac_cv_host
3147ac_save_IFS=$IFS; IFS='-'
3148set x $ac_cv_host
3149shift
3150host_cpu=$1
3151host_vendor=$2
3152shift; shift
3153# Remember, the first character of IFS is used to create $*,
3154# except with old shells:
3155host_os=$*
3156IFS=$ac_save_IFS
3157case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3158
3159
3160
3161case $host in
3162     arm-wince-pe*)
3163	CFLAGS=${CFLAGS:--march=armv4 -mapcs-32 -malignment-traps}
3164	LIBS='-lc -lgcc -lwinsock -lcoredll'
3165	CFLAGS="$CFLAGS -DNEWLIB -DSARM -DWIN32 -DGNUWINCE"
3166	;;
3167     *uclinux*)
3168	# uClinux needs special "flat" binaries
3169	LDFLAGS="$LDFLAGS -Wl,-elf2flt"
3170	;;
3171     *)
3172     ;;
3173esac
3174
3175DEPDIR="${am__leading_dot}deps"
3176
3177ac_config_commands="$ac_config_commands depfiles"
3178
3179
3180am_make=${MAKE-make}
3181cat > confinc << 'END'
3182am__doit:
3183	@echo this is the am__doit target
3184.PHONY: am__doit
3185END
3186# If we don't find an include directive, just comment out the code.
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3188$as_echo_n "checking for style of include used by $am_make... " >&6; }
3189am__include="#"
3190am__quote=
3191_am_result=none
3192# First try GNU make style include.
3193echo "include confinc" > confmf
3194# Ignore all kinds of additional output from `make'.
3195case `$am_make -s -f confmf 2> /dev/null` in #(
3196*the\ am__doit\ target*)
3197  am__include=include
3198  am__quote=
3199  _am_result=GNU
3200  ;;
3201esac
3202# Now try BSD make style include.
3203if test "$am__include" = "#"; then
3204   echo '.include "confinc"' > confmf
3205   case `$am_make -s -f confmf 2> /dev/null` in #(
3206   *the\ am__doit\ target*)
3207     am__include=.include
3208     am__quote="\""
3209     _am_result=BSD
3210     ;;
3211   esac
3212fi
3213
3214
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3216$as_echo "$_am_result" >&6; }
3217rm -f confinc confmf
3218
3219# Check whether --enable-dependency-tracking was given.
3220if test "${enable_dependency_tracking+set}" = set; then :
3221  enableval=$enable_dependency_tracking;
3222fi
3223
3224if test "x$enable_dependency_tracking" != xno; then
3225  am_depcomp="$ac_aux_dir/depcomp"
3226  AMDEPBACKSLASH='\'
3227fi
3228 if test "x$enable_dependency_tracking" != xno; then
3229  AMDEP_TRUE=
3230  AMDEP_FALSE='#'
3231else
3232  AMDEP_TRUE='#'
3233  AMDEP_FALSE=
3234fi
3235
3236
3237ac_ext=c
3238ac_cpp='$CPP $CPPFLAGS'
3239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242if test -n "$ac_tool_prefix"; then
3243  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3244set dummy ${ac_tool_prefix}gcc; ac_word=$2
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246$as_echo_n "checking for $ac_word... " >&6; }
3247if test "${ac_cv_prog_CC+set}" = set; then :
3248  $as_echo_n "(cached) " >&6
3249else
3250  if test -n "$CC"; then
3251  ac_cv_prog_CC="$CC" # Let the user override the test.
3252else
3253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254for as_dir in $PATH
3255do
3256  IFS=$as_save_IFS
3257  test -z "$as_dir" && as_dir=.
3258    for ac_exec_ext in '' $ac_executable_extensions; do
3259  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262    break 2
3263  fi
3264done
3265  done
3266IFS=$as_save_IFS
3267
3268fi
3269fi
3270CC=$ac_cv_prog_CC
3271if test -n "$CC"; then
3272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273$as_echo "$CC" >&6; }
3274else
3275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276$as_echo "no" >&6; }
3277fi
3278
3279
3280fi
3281if test -z "$ac_cv_prog_CC"; then
3282  ac_ct_CC=$CC
3283  # Extract the first word of "gcc", so it can be a program name with args.
3284set dummy gcc; ac_word=$2
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286$as_echo_n "checking for $ac_word... " >&6; }
3287if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3288  $as_echo_n "(cached) " >&6
3289else
3290  if test -n "$ac_ct_CC"; then
3291  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3292else
3293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294for as_dir in $PATH
3295do
3296  IFS=$as_save_IFS
3297  test -z "$as_dir" && as_dir=.
3298    for ac_exec_ext in '' $ac_executable_extensions; do
3299  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300    ac_cv_prog_ac_ct_CC="gcc"
3301    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302    break 2
3303  fi
3304done
3305  done
3306IFS=$as_save_IFS
3307
3308fi
3309fi
3310ac_ct_CC=$ac_cv_prog_ac_ct_CC
3311if test -n "$ac_ct_CC"; then
3312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3313$as_echo "$ac_ct_CC" >&6; }
3314else
3315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316$as_echo "no" >&6; }
3317fi
3318
3319  if test "x$ac_ct_CC" = x; then
3320    CC=""
3321  else
3322    case $cross_compiling:$ac_tool_warned in
3323yes:)
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3326ac_tool_warned=yes ;;
3327esac
3328    CC=$ac_ct_CC
3329  fi
3330else
3331  CC="$ac_cv_prog_CC"
3332fi
3333
3334if test -z "$CC"; then
3335          if test -n "$ac_tool_prefix"; then
3336    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3337set dummy ${ac_tool_prefix}cc; ac_word=$2
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339$as_echo_n "checking for $ac_word... " >&6; }
3340if test "${ac_cv_prog_CC+set}" = set; then :
3341  $as_echo_n "(cached) " >&6
3342else
3343  if test -n "$CC"; then
3344  ac_cv_prog_CC="$CC" # Let the user override the test.
3345else
3346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347for as_dir in $PATH
3348do
3349  IFS=$as_save_IFS
3350  test -z "$as_dir" && as_dir=.
3351    for ac_exec_ext in '' $ac_executable_extensions; do
3352  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3353    ac_cv_prog_CC="${ac_tool_prefix}cc"
3354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355    break 2
3356  fi
3357done
3358  done
3359IFS=$as_save_IFS
3360
3361fi
3362fi
3363CC=$ac_cv_prog_CC
3364if test -n "$CC"; then
3365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3366$as_echo "$CC" >&6; }
3367else
3368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369$as_echo "no" >&6; }
3370fi
3371
3372
3373  fi
3374fi
3375if test -z "$CC"; then
3376  # Extract the first word of "cc", so it can be a program name with args.
3377set dummy cc; ac_word=$2
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379$as_echo_n "checking for $ac_word... " >&6; }
3380if test "${ac_cv_prog_CC+set}" = set; then :
3381  $as_echo_n "(cached) " >&6
3382else
3383  if test -n "$CC"; then
3384  ac_cv_prog_CC="$CC" # Let the user override the test.
3385else
3386  ac_prog_rejected=no
3387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388for as_dir in $PATH
3389do
3390  IFS=$as_save_IFS
3391  test -z "$as_dir" && as_dir=.
3392    for ac_exec_ext in '' $ac_executable_extensions; do
3393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3395       ac_prog_rejected=yes
3396       continue
3397     fi
3398    ac_cv_prog_CC="cc"
3399    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400    break 2
3401  fi
3402done
3403  done
3404IFS=$as_save_IFS
3405
3406if test $ac_prog_rejected = yes; then
3407  # We found a bogon in the path, so make sure we never use it.
3408  set dummy $ac_cv_prog_CC
3409  shift
3410  if test $# != 0; then
3411    # We chose a different compiler from the bogus one.
3412    # However, it has the same basename, so the bogon will be chosen
3413    # first if we set CC to just the basename; use the full file name.
3414    shift
3415    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3416  fi
3417fi
3418fi
3419fi
3420CC=$ac_cv_prog_CC
3421if test -n "$CC"; then
3422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423$as_echo "$CC" >&6; }
3424else
3425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426$as_echo "no" >&6; }
3427fi
3428
3429
3430fi
3431if test -z "$CC"; then
3432  if test -n "$ac_tool_prefix"; then
3433  for ac_prog in cl.exe
3434  do
3435    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3436set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438$as_echo_n "checking for $ac_word... " >&6; }
3439if test "${ac_cv_prog_CC+set}" = set; then :
3440  $as_echo_n "(cached) " >&6
3441else
3442  if test -n "$CC"; then
3443  ac_cv_prog_CC="$CC" # Let the user override the test.
3444else
3445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446for as_dir in $PATH
3447do
3448  IFS=$as_save_IFS
3449  test -z "$as_dir" && as_dir=.
3450    for ac_exec_ext in '' $ac_executable_extensions; do
3451  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3452    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454    break 2
3455  fi
3456done
3457  done
3458IFS=$as_save_IFS
3459
3460fi
3461fi
3462CC=$ac_cv_prog_CC
3463if test -n "$CC"; then
3464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465$as_echo "$CC" >&6; }
3466else
3467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468$as_echo "no" >&6; }
3469fi
3470
3471
3472    test -n "$CC" && break
3473  done
3474fi
3475if test -z "$CC"; then
3476  ac_ct_CC=$CC
3477  for ac_prog in cl.exe
3478do
3479  # Extract the first word of "$ac_prog", so it can be a program name with args.
3480set dummy $ac_prog; ac_word=$2
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482$as_echo_n "checking for $ac_word... " >&6; }
3483if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3484  $as_echo_n "(cached) " >&6
3485else
3486  if test -n "$ac_ct_CC"; then
3487  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3488else
3489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490for as_dir in $PATH
3491do
3492  IFS=$as_save_IFS
3493  test -z "$as_dir" && as_dir=.
3494    for ac_exec_ext in '' $ac_executable_extensions; do
3495  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496    ac_cv_prog_ac_ct_CC="$ac_prog"
3497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498    break 2
3499  fi
3500done
3501  done
3502IFS=$as_save_IFS
3503
3504fi
3505fi
3506ac_ct_CC=$ac_cv_prog_ac_ct_CC
3507if test -n "$ac_ct_CC"; then
3508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3509$as_echo "$ac_ct_CC" >&6; }
3510else
3511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512$as_echo "no" >&6; }
3513fi
3514
3515
3516  test -n "$ac_ct_CC" && break
3517done
3518
3519  if test "x$ac_ct_CC" = x; then
3520    CC=""
3521  else
3522    case $cross_compiling:$ac_tool_warned in
3523yes:)
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3526ac_tool_warned=yes ;;
3527esac
3528    CC=$ac_ct_CC
3529  fi
3530fi
3531
3532fi
3533
3534
3535test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537as_fn_error "no acceptable C compiler found in \$PATH
3538See \`config.log' for more details." "$LINENO" 5; }
3539
3540# Provide some information about the compiler.
3541$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3542set X $ac_compile
3543ac_compiler=$2
3544for ac_option in --version -v -V -qversion; do
3545  { { ac_try="$ac_compiler $ac_option >&5"
3546case "(($ac_try" in
3547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548  *) ac_try_echo=$ac_try;;
3549esac
3550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551$as_echo "$ac_try_echo"; } >&5
3552  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3553  ac_status=$?
3554  if test -s conftest.err; then
3555    sed '10a\
3556... rest of stderr output deleted ...
3557         10q' conftest.err >conftest.er1
3558    cat conftest.er1 >&5
3559  fi
3560  rm -f conftest.er1 conftest.err
3561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562  test $ac_status = 0; }
3563done
3564
3565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566/* end confdefs.h.  */
3567
3568int
3569main ()
3570{
3571
3572  ;
3573  return 0;
3574}
3575_ACEOF
3576ac_clean_files_save=$ac_clean_files
3577ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3578# Try to create an executable without -o first, disregard a.out.
3579# It will help us diagnose broken compilers, and finding out an intuition
3580# of exeext.
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3582$as_echo_n "checking whether the C compiler works... " >&6; }
3583ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3584
3585# The possible output files:
3586ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3587
3588ac_rmfiles=
3589for ac_file in $ac_files
3590do
3591  case $ac_file in
3592    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3593    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3594  esac
3595done
3596rm -f $ac_rmfiles
3597
3598if { { ac_try="$ac_link_default"
3599case "(($ac_try" in
3600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601  *) ac_try_echo=$ac_try;;
3602esac
3603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604$as_echo "$ac_try_echo"; } >&5
3605  (eval "$ac_link_default") 2>&5
3606  ac_status=$?
3607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3608  test $ac_status = 0; }; then :
3609  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3610# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3611# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3612# so that the user can short-circuit this test for compilers unknown to
3613# Autoconf.
3614for ac_file in $ac_files ''
3615do
3616  test -f "$ac_file" || continue
3617  case $ac_file in
3618    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3619	;;
3620    [ab].out )
3621	# We found the default executable, but exeext='' is most
3622	# certainly right.
3623	break;;
3624    *.* )
3625	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3626	then :; else
3627	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3628	fi
3629	# We set ac_cv_exeext here because the later test for it is not
3630	# safe: cross compilers may not add the suffix if given an `-o'
3631	# argument, so we may need to know it at that point already.
3632	# Even if this section looks crufty: it has the advantage of
3633	# actually working.
3634	break;;
3635    * )
3636	break;;
3637  esac
3638done
3639test "$ac_cv_exeext" = no && ac_cv_exeext=
3640
3641else
3642  ac_file=''
3643fi
3644if test -z "$ac_file"; then :
3645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646$as_echo "no" >&6; }
3647$as_echo "$as_me: failed program was:" >&5
3648sed 's/^/| /' conftest.$ac_ext >&5
3649
3650{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3652{ as_fn_set_status 77
3653as_fn_error "C compiler cannot create executables
3654See \`config.log' for more details." "$LINENO" 5; }; }
3655else
3656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3657$as_echo "yes" >&6; }
3658fi
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3660$as_echo_n "checking for C compiler default output file name... " >&6; }
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3662$as_echo "$ac_file" >&6; }
3663ac_exeext=$ac_cv_exeext
3664
3665rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3666ac_clean_files=$ac_clean_files_save
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3668$as_echo_n "checking for suffix of executables... " >&6; }
3669if { { ac_try="$ac_link"
3670case "(($ac_try" in
3671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672  *) ac_try_echo=$ac_try;;
3673esac
3674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3675$as_echo "$ac_try_echo"; } >&5
3676  (eval "$ac_link") 2>&5
3677  ac_status=$?
3678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3679  test $ac_status = 0; }; then :
3680  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3681# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3682# work properly (i.e., refer to `conftest.exe'), while it won't with
3683# `rm'.
3684for ac_file in conftest.exe conftest 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 | *.o | *.obj ) ;;
3688    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3689	  break;;
3690    * ) break;;
3691  esac
3692done
3693else
3694  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3696as_fn_error "cannot compute suffix of executables: cannot compile and link
3697See \`config.log' for more details." "$LINENO" 5; }
3698fi
3699rm -f conftest conftest$ac_cv_exeext
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3701$as_echo "$ac_cv_exeext" >&6; }
3702
3703rm -f conftest.$ac_ext
3704EXEEXT=$ac_cv_exeext
3705ac_exeext=$EXEEXT
3706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707/* end confdefs.h.  */
3708#include <stdio.h>
3709int
3710main ()
3711{
3712FILE *f = fopen ("conftest.out", "w");
3713 return ferror (f) || fclose (f) != 0;
3714
3715  ;
3716  return 0;
3717}
3718_ACEOF
3719ac_clean_files="$ac_clean_files conftest.out"
3720# Check that the compiler produces executables we can run.  If not, either
3721# the compiler is broken, or we cross compile.
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3723$as_echo_n "checking whether we are cross compiling... " >&6; }
3724if test "$cross_compiling" != yes; then
3725  { { ac_try="$ac_link"
3726case "(($ac_try" in
3727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728  *) ac_try_echo=$ac_try;;
3729esac
3730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731$as_echo "$ac_try_echo"; } >&5
3732  (eval "$ac_link") 2>&5
3733  ac_status=$?
3734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735  test $ac_status = 0; }
3736  if { ac_try='./conftest$ac_cv_exeext'
3737  { { case "(($ac_try" in
3738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739  *) ac_try_echo=$ac_try;;
3740esac
3741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3742$as_echo "$ac_try_echo"; } >&5
3743  (eval "$ac_try") 2>&5
3744  ac_status=$?
3745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3746  test $ac_status = 0; }; }; then
3747    cross_compiling=no
3748  else
3749    if test "$cross_compiling" = maybe; then
3750	cross_compiling=yes
3751    else
3752	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3754as_fn_error "cannot run C compiled programs.
3755If you meant to cross compile, use \`--host'.
3756See \`config.log' for more details." "$LINENO" 5; }
3757    fi
3758  fi
3759fi
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3761$as_echo "$cross_compiling" >&6; }
3762
3763rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3764ac_clean_files=$ac_clean_files_save
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3766$as_echo_n "checking for suffix of object files... " >&6; }
3767if test "${ac_cv_objext+set}" = set; then :
3768  $as_echo_n "(cached) " >&6
3769else
3770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771/* end confdefs.h.  */
3772
3773int
3774main ()
3775{
3776
3777  ;
3778  return 0;
3779}
3780_ACEOF
3781rm -f conftest.o conftest.obj
3782if { { ac_try="$ac_compile"
3783case "(($ac_try" in
3784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785  *) ac_try_echo=$ac_try;;
3786esac
3787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788$as_echo "$ac_try_echo"; } >&5
3789  (eval "$ac_compile") 2>&5
3790  ac_status=$?
3791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792  test $ac_status = 0; }; then :
3793  for ac_file in conftest.o conftest.obj conftest.*; do
3794  test -f "$ac_file" || continue;
3795  case $ac_file in
3796    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3797    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3798       break;;
3799  esac
3800done
3801else
3802  $as_echo "$as_me: failed program was:" >&5
3803sed 's/^/| /' conftest.$ac_ext >&5
3804
3805{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807as_fn_error "cannot compute suffix of object files: cannot compile
3808See \`config.log' for more details." "$LINENO" 5; }
3809fi
3810rm -f conftest.$ac_cv_objext conftest.$ac_ext
3811fi
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3813$as_echo "$ac_cv_objext" >&6; }
3814OBJEXT=$ac_cv_objext
3815ac_objext=$OBJEXT
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3817$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3818if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3819  $as_echo_n "(cached) " >&6
3820else
3821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822/* end confdefs.h.  */
3823
3824int
3825main ()
3826{
3827#ifndef __GNUC__
3828       choke me
3829#endif
3830
3831  ;
3832  return 0;
3833}
3834_ACEOF
3835if ac_fn_c_try_compile "$LINENO"; then :
3836  ac_compiler_gnu=yes
3837else
3838  ac_compiler_gnu=no
3839fi
3840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841ac_cv_c_compiler_gnu=$ac_compiler_gnu
3842
3843fi
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3845$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3846if test $ac_compiler_gnu = yes; then
3847  GCC=yes
3848else
3849  GCC=
3850fi
3851ac_test_CFLAGS=${CFLAGS+set}
3852ac_save_CFLAGS=$CFLAGS
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3854$as_echo_n "checking whether $CC accepts -g... " >&6; }
3855if test "${ac_cv_prog_cc_g+set}" = set; then :
3856  $as_echo_n "(cached) " >&6
3857else
3858  ac_save_c_werror_flag=$ac_c_werror_flag
3859   ac_c_werror_flag=yes
3860   ac_cv_prog_cc_g=no
3861   CFLAGS="-g"
3862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863/* end confdefs.h.  */
3864
3865int
3866main ()
3867{
3868
3869  ;
3870  return 0;
3871}
3872_ACEOF
3873if ac_fn_c_try_compile "$LINENO"; then :
3874  ac_cv_prog_cc_g=yes
3875else
3876  CFLAGS=""
3877      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878/* end confdefs.h.  */
3879
3880int
3881main ()
3882{
3883
3884  ;
3885  return 0;
3886}
3887_ACEOF
3888if ac_fn_c_try_compile "$LINENO"; then :
3889
3890else
3891  ac_c_werror_flag=$ac_save_c_werror_flag
3892	 CFLAGS="-g"
3893	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894/* end confdefs.h.  */
3895
3896int
3897main ()
3898{
3899
3900  ;
3901  return 0;
3902}
3903_ACEOF
3904if ac_fn_c_try_compile "$LINENO"; then :
3905  ac_cv_prog_cc_g=yes
3906fi
3907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908fi
3909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910fi
3911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912   ac_c_werror_flag=$ac_save_c_werror_flag
3913fi
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3915$as_echo "$ac_cv_prog_cc_g" >&6; }
3916if test "$ac_test_CFLAGS" = set; then
3917  CFLAGS=$ac_save_CFLAGS
3918elif test $ac_cv_prog_cc_g = yes; then
3919  if test "$GCC" = yes; then
3920    CFLAGS="-g -O2"
3921  else
3922    CFLAGS="-g"
3923  fi
3924else
3925  if test "$GCC" = yes; then
3926    CFLAGS="-O2"
3927  else
3928    CFLAGS=
3929  fi
3930fi
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3932$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3933if test "${ac_cv_prog_cc_c89+set}" = set; then :
3934  $as_echo_n "(cached) " >&6
3935else
3936  ac_cv_prog_cc_c89=no
3937ac_save_CC=$CC
3938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939/* end confdefs.h.  */
3940#include <stdarg.h>
3941#include <stdio.h>
3942#include <sys/types.h>
3943#include <sys/stat.h>
3944/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3945struct buf { int x; };
3946FILE * (*rcsopen) (struct buf *, struct stat *, int);
3947static char *e (p, i)
3948     char **p;
3949     int i;
3950{
3951  return p[i];
3952}
3953static char *f (char * (*g) (char **, int), char **p, ...)
3954{
3955  char *s;
3956  va_list v;
3957  va_start (v,p);
3958  s = g (p, va_arg (v,int));
3959  va_end (v);
3960  return s;
3961}
3962
3963/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3964   function prototypes and stuff, but not '\xHH' hex character constants.
3965   These don't provoke an error unfortunately, instead are silently treated
3966   as 'x'.  The following induces an error, until -std is added to get
3967   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3968   array size at least.  It's necessary to write '\x00'==0 to get something
3969   that's true only with -std.  */
3970int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3971
3972/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3973   inside strings and character constants.  */
3974#define FOO(x) 'x'
3975int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3976
3977int test (int i, double x);
3978struct s1 {int (*f) (int a);};
3979struct s2 {int (*f) (double a);};
3980int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3981int argc;
3982char **argv;
3983int
3984main ()
3985{
3986return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3987  ;
3988  return 0;
3989}
3990_ACEOF
3991for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3992	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3993do
3994  CC="$ac_save_CC $ac_arg"
3995  if ac_fn_c_try_compile "$LINENO"; then :
3996  ac_cv_prog_cc_c89=$ac_arg
3997fi
3998rm -f core conftest.err conftest.$ac_objext
3999  test "x$ac_cv_prog_cc_c89" != "xno" && break
4000done
4001rm -f conftest.$ac_ext
4002CC=$ac_save_CC
4003
4004fi
4005# AC_CACHE_VAL
4006case "x$ac_cv_prog_cc_c89" in
4007  x)
4008    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4009$as_echo "none needed" >&6; } ;;
4010  xno)
4011    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4012$as_echo "unsupported" >&6; } ;;
4013  *)
4014    CC="$CC $ac_cv_prog_cc_c89"
4015    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4016$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4017esac
4018if test "x$ac_cv_prog_cc_c89" != xno; then :
4019
4020fi
4021
4022ac_ext=c
4023ac_cpp='$CPP $CPPFLAGS'
4024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027
4028depcc="$CC"   am_compiler_list=
4029
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4031$as_echo_n "checking dependency style of $depcc... " >&6; }
4032if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4033  $as_echo_n "(cached) " >&6
4034else
4035  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4036  # We make a subdir and do the tests there.  Otherwise we can end up
4037  # making bogus files that we don't know about and never remove.  For
4038  # instance it was reported that on HP-UX the gcc test will end up
4039  # making a dummy file named `D' -- because `-MD' means `put the output
4040  # in D'.
4041  mkdir conftest.dir
4042  # Copy depcomp to subdir because otherwise we won't find it if we're
4043  # using a relative directory.
4044  cp "$am_depcomp" conftest.dir
4045  cd conftest.dir
4046  # We will build objects and dependencies in a subdirectory because
4047  # it helps to detect inapplicable dependency modes.  For instance
4048  # both Tru64's cc and ICC support -MD to output dependencies as a
4049  # side effect of compilation, but ICC will put the dependencies in
4050  # the current directory while Tru64 will put them in the object
4051  # directory.
4052  mkdir sub
4053
4054  am_cv_CC_dependencies_compiler_type=none
4055  if test "$am_compiler_list" = ""; then
4056     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4057  fi
4058  am__universal=false
4059  case " $depcc " in #(
4060     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4061     esac
4062
4063  for depmode in $am_compiler_list; do
4064    # Setup a source with many dependencies, because some compilers
4065    # like to wrap large dependency lists on column 80 (with \), and
4066    # we should not choose a depcomp mode which is confused by this.
4067    #
4068    # We need to recreate these files for each test, as the compiler may
4069    # overwrite some of them when testing with obscure command lines.
4070    # This happens at least with the AIX C compiler.
4071    : > sub/conftest.c
4072    for i in 1 2 3 4 5 6; do
4073      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4074      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4075      # Solaris 8's {/usr,}/bin/sh.
4076      touch sub/conftst$i.h
4077    done
4078    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4079
4080    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4081    # mode.  It turns out that the SunPro C++ compiler does not properly
4082    # handle `-M -o', and we need to detect this.  Also, some Intel
4083    # versions had trouble with output in subdirs
4084    am__obj=sub/conftest.${OBJEXT-o}
4085    am__minus_obj="-o $am__obj"
4086    case $depmode in
4087    gcc)
4088      # This depmode causes a compiler race in universal mode.
4089      test "$am__universal" = false || continue
4090      ;;
4091    nosideeffect)
4092      # after this tag, mechanisms are not by side-effect, so they'll
4093      # only be used when explicitly requested
4094      if test "x$enable_dependency_tracking" = xyes; then
4095	continue
4096      else
4097	break
4098      fi
4099      ;;
4100    msvisualcpp | msvcmsys)
4101      # This compiler won't grok `-c -o', but also, the minuso test has
4102      # not run yet.  These depmodes are late enough in the game, and
4103      # so weak that their functioning should not be impacted.
4104      am__obj=conftest.${OBJEXT-o}
4105      am__minus_obj=
4106      ;;
4107    none) break ;;
4108    esac
4109    if depmode=$depmode \
4110       source=sub/conftest.c object=$am__obj \
4111       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4112       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4113         >/dev/null 2>conftest.err &&
4114       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4115       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4116       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4117       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4118      # icc doesn't choke on unknown options, it will just issue warnings
4119      # or remarks (even with -Werror).  So we grep stderr for any message
4120      # that says an option was ignored or not supported.
4121      # When given -MP, icc 7.0 and 7.1 complain thusly:
4122      #   icc: Command line warning: ignoring option '-M'; no argument required
4123      # The diagnosis changed in icc 8.0:
4124      #   icc: Command line remark: option '-MP' not supported
4125      if (grep 'ignoring option' conftest.err ||
4126          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4127        am_cv_CC_dependencies_compiler_type=$depmode
4128        break
4129      fi
4130    fi
4131  done
4132
4133  cd ..
4134  rm -rf conftest.dir
4135else
4136  am_cv_CC_dependencies_compiler_type=none
4137fi
4138
4139fi
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4141$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4142CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4143
4144 if
4145  test "x$enable_dependency_tracking" != xno \
4146  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4147  am__fastdepCC_TRUE=
4148  am__fastdepCC_FALSE='#'
4149else
4150  am__fastdepCC_TRUE='#'
4151  am__fastdepCC_FALSE=
4152fi
4153
4154
4155
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4157$as_echo_n "checking for library containing strerror... " >&6; }
4158if test "${ac_cv_search_strerror+set}" = set; then :
4159  $as_echo_n "(cached) " >&6
4160else
4161  ac_func_search_save_LIBS=$LIBS
4162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163/* end confdefs.h.  */
4164
4165/* Override any GCC internal prototype to avoid an error.
4166   Use char because int might match the return type of a GCC
4167   builtin and then its argument prototype would still apply.  */
4168#ifdef __cplusplus
4169extern "C"
4170#endif
4171char strerror ();
4172int
4173main ()
4174{
4175return strerror ();
4176  ;
4177  return 0;
4178}
4179_ACEOF
4180for ac_lib in '' cposix; do
4181  if test -z "$ac_lib"; then
4182    ac_res="none required"
4183  else
4184    ac_res=-l$ac_lib
4185    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4186  fi
4187  if ac_fn_c_try_link "$LINENO"; then :
4188  ac_cv_search_strerror=$ac_res
4189fi
4190rm -f core conftest.err conftest.$ac_objext \
4191    conftest$ac_exeext
4192  if test "${ac_cv_search_strerror+set}" = set; then :
4193  break
4194fi
4195done
4196if test "${ac_cv_search_strerror+set}" = set; then :
4197
4198else
4199  ac_cv_search_strerror=no
4200fi
4201rm conftest.$ac_ext
4202LIBS=$ac_func_search_save_LIBS
4203fi
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4205$as_echo "$ac_cv_search_strerror" >&6; }
4206ac_res=$ac_cv_search_strerror
4207if test "$ac_res" != no; then :
4208  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4209
4210fi
4211
4212ac_ext=c
4213ac_cpp='$CPP $CPPFLAGS'
4214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217if test -n "$ac_tool_prefix"; then
4218  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4219set dummy ${ac_tool_prefix}gcc; ac_word=$2
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221$as_echo_n "checking for $ac_word... " >&6; }
4222if test "${ac_cv_prog_CC+set}" = set; then :
4223  $as_echo_n "(cached) " >&6
4224else
4225  if test -n "$CC"; then
4226  ac_cv_prog_CC="$CC" # Let the user override the test.
4227else
4228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229for as_dir in $PATH
4230do
4231  IFS=$as_save_IFS
4232  test -z "$as_dir" && as_dir=.
4233    for ac_exec_ext in '' $ac_executable_extensions; do
4234  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237    break 2
4238  fi
4239done
4240  done
4241IFS=$as_save_IFS
4242
4243fi
4244fi
4245CC=$ac_cv_prog_CC
4246if test -n "$CC"; then
4247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4248$as_echo "$CC" >&6; }
4249else
4250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251$as_echo "no" >&6; }
4252fi
4253
4254
4255fi
4256if test -z "$ac_cv_prog_CC"; then
4257  ac_ct_CC=$CC
4258  # Extract the first word of "gcc", so it can be a program name with args.
4259set dummy gcc; ac_word=$2
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261$as_echo_n "checking for $ac_word... " >&6; }
4262if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4263  $as_echo_n "(cached) " >&6
4264else
4265  if test -n "$ac_ct_CC"; then
4266  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4267else
4268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269for as_dir in $PATH
4270do
4271  IFS=$as_save_IFS
4272  test -z "$as_dir" && as_dir=.
4273    for ac_exec_ext in '' $ac_executable_extensions; do
4274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4275    ac_cv_prog_ac_ct_CC="gcc"
4276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277    break 2
4278  fi
4279done
4280  done
4281IFS=$as_save_IFS
4282
4283fi
4284fi
4285ac_ct_CC=$ac_cv_prog_ac_ct_CC
4286if test -n "$ac_ct_CC"; then
4287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4288$as_echo "$ac_ct_CC" >&6; }
4289else
4290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291$as_echo "no" >&6; }
4292fi
4293
4294  if test "x$ac_ct_CC" = x; then
4295    CC=""
4296  else
4297    case $cross_compiling:$ac_tool_warned in
4298yes:)
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4301ac_tool_warned=yes ;;
4302esac
4303    CC=$ac_ct_CC
4304  fi
4305else
4306  CC="$ac_cv_prog_CC"
4307fi
4308
4309if test -z "$CC"; then
4310          if test -n "$ac_tool_prefix"; then
4311    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4312set dummy ${ac_tool_prefix}cc; ac_word=$2
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314$as_echo_n "checking for $ac_word... " >&6; }
4315if test "${ac_cv_prog_CC+set}" = set; then :
4316  $as_echo_n "(cached) " >&6
4317else
4318  if test -n "$CC"; then
4319  ac_cv_prog_CC="$CC" # Let the user override the test.
4320else
4321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322for as_dir in $PATH
4323do
4324  IFS=$as_save_IFS
4325  test -z "$as_dir" && as_dir=.
4326    for ac_exec_ext in '' $ac_executable_extensions; do
4327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4328    ac_cv_prog_CC="${ac_tool_prefix}cc"
4329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330    break 2
4331  fi
4332done
4333  done
4334IFS=$as_save_IFS
4335
4336fi
4337fi
4338CC=$ac_cv_prog_CC
4339if test -n "$CC"; then
4340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4341$as_echo "$CC" >&6; }
4342else
4343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344$as_echo "no" >&6; }
4345fi
4346
4347
4348  fi
4349fi
4350if test -z "$CC"; then
4351  # Extract the first word of "cc", so it can be a program name with args.
4352set dummy cc; ac_word=$2
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354$as_echo_n "checking for $ac_word... " >&6; }
4355if test "${ac_cv_prog_CC+set}" = set; then :
4356  $as_echo_n "(cached) " >&6
4357else
4358  if test -n "$CC"; then
4359  ac_cv_prog_CC="$CC" # Let the user override the test.
4360else
4361  ac_prog_rejected=no
4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH
4364do
4365  IFS=$as_save_IFS
4366  test -z "$as_dir" && as_dir=.
4367    for ac_exec_ext in '' $ac_executable_extensions; do
4368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4370       ac_prog_rejected=yes
4371       continue
4372     fi
4373    ac_cv_prog_CC="cc"
4374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375    break 2
4376  fi
4377done
4378  done
4379IFS=$as_save_IFS
4380
4381if test $ac_prog_rejected = yes; then
4382  # We found a bogon in the path, so make sure we never use it.
4383  set dummy $ac_cv_prog_CC
4384  shift
4385  if test $# != 0; then
4386    # We chose a different compiler from the bogus one.
4387    # However, it has the same basename, so the bogon will be chosen
4388    # first if we set CC to just the basename; use the full file name.
4389    shift
4390    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4391  fi
4392fi
4393fi
4394fi
4395CC=$ac_cv_prog_CC
4396if test -n "$CC"; then
4397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4398$as_echo "$CC" >&6; }
4399else
4400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401$as_echo "no" >&6; }
4402fi
4403
4404
4405fi
4406if test -z "$CC"; then
4407  if test -n "$ac_tool_prefix"; then
4408  for ac_prog in cl.exe
4409  do
4410    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4411set dummy $ac_tool_prefix$ac_prog; 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 test "${ac_cv_prog_CC+set}" = set; then :
4415  $as_echo_n "(cached) " >&6
4416else
4417  if test -n "$CC"; then
4418  ac_cv_prog_CC="$CC" # Let the user override the test.
4419else
4420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421for as_dir in $PATH
4422do
4423  IFS=$as_save_IFS
4424  test -z "$as_dir" && as_dir=.
4425    for ac_exec_ext in '' $ac_executable_extensions; do
4426  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4427    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4428    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429    break 2
4430  fi
4431done
4432  done
4433IFS=$as_save_IFS
4434
4435fi
4436fi
4437CC=$ac_cv_prog_CC
4438if test -n "$CC"; then
4439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4440$as_echo "$CC" >&6; }
4441else
4442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443$as_echo "no" >&6; }
4444fi
4445
4446
4447    test -n "$CC" && break
4448  done
4449fi
4450if test -z "$CC"; then
4451  ac_ct_CC=$CC
4452  for ac_prog in cl.exe
4453do
4454  # Extract the first word of "$ac_prog", so it can be a program name with args.
4455set dummy $ac_prog; ac_word=$2
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457$as_echo_n "checking for $ac_word... " >&6; }
4458if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4459  $as_echo_n "(cached) " >&6
4460else
4461  if test -n "$ac_ct_CC"; then
4462  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4463else
4464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465for as_dir in $PATH
4466do
4467  IFS=$as_save_IFS
4468  test -z "$as_dir" && as_dir=.
4469    for ac_exec_ext in '' $ac_executable_extensions; do
4470  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471    ac_cv_prog_ac_ct_CC="$ac_prog"
4472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473    break 2
4474  fi
4475done
4476  done
4477IFS=$as_save_IFS
4478
4479fi
4480fi
4481ac_ct_CC=$ac_cv_prog_ac_ct_CC
4482if test -n "$ac_ct_CC"; then
4483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4484$as_echo "$ac_ct_CC" >&6; }
4485else
4486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487$as_echo "no" >&6; }
4488fi
4489
4490
4491  test -n "$ac_ct_CC" && break
4492done
4493
4494  if test "x$ac_ct_CC" = x; then
4495    CC=""
4496  else
4497    case $cross_compiling:$ac_tool_warned in
4498yes:)
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4501ac_tool_warned=yes ;;
4502esac
4503    CC=$ac_ct_CC
4504  fi
4505fi
4506
4507fi
4508
4509
4510test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4512as_fn_error "no acceptable C compiler found in \$PATH
4513See \`config.log' for more details." "$LINENO" 5; }
4514
4515# Provide some information about the compiler.
4516$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4517set X $ac_compile
4518ac_compiler=$2
4519for ac_option in --version -v -V -qversion; do
4520  { { ac_try="$ac_compiler $ac_option >&5"
4521case "(($ac_try" in
4522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523  *) ac_try_echo=$ac_try;;
4524esac
4525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4526$as_echo "$ac_try_echo"; } >&5
4527  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4528  ac_status=$?
4529  if test -s conftest.err; then
4530    sed '10a\
4531... rest of stderr output deleted ...
4532         10q' conftest.err >conftest.er1
4533    cat conftest.er1 >&5
4534  fi
4535  rm -f conftest.er1 conftest.err
4536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4537  test $ac_status = 0; }
4538done
4539
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4541$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4542if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4543  $as_echo_n "(cached) " >&6
4544else
4545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546/* end confdefs.h.  */
4547
4548int
4549main ()
4550{
4551#ifndef __GNUC__
4552       choke me
4553#endif
4554
4555  ;
4556  return 0;
4557}
4558_ACEOF
4559if ac_fn_c_try_compile "$LINENO"; then :
4560  ac_compiler_gnu=yes
4561else
4562  ac_compiler_gnu=no
4563fi
4564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565ac_cv_c_compiler_gnu=$ac_compiler_gnu
4566
4567fi
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4569$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4570if test $ac_compiler_gnu = yes; then
4571  GCC=yes
4572else
4573  GCC=
4574fi
4575ac_test_CFLAGS=${CFLAGS+set}
4576ac_save_CFLAGS=$CFLAGS
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4578$as_echo_n "checking whether $CC accepts -g... " >&6; }
4579if test "${ac_cv_prog_cc_g+set}" = set; then :
4580  $as_echo_n "(cached) " >&6
4581else
4582  ac_save_c_werror_flag=$ac_c_werror_flag
4583   ac_c_werror_flag=yes
4584   ac_cv_prog_cc_g=no
4585   CFLAGS="-g"
4586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587/* end confdefs.h.  */
4588
4589int
4590main ()
4591{
4592
4593  ;
4594  return 0;
4595}
4596_ACEOF
4597if ac_fn_c_try_compile "$LINENO"; then :
4598  ac_cv_prog_cc_g=yes
4599else
4600  CFLAGS=""
4601      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602/* end confdefs.h.  */
4603
4604int
4605main ()
4606{
4607
4608  ;
4609  return 0;
4610}
4611_ACEOF
4612if ac_fn_c_try_compile "$LINENO"; then :
4613
4614else
4615  ac_c_werror_flag=$ac_save_c_werror_flag
4616	 CFLAGS="-g"
4617	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618/* end confdefs.h.  */
4619
4620int
4621main ()
4622{
4623
4624  ;
4625  return 0;
4626}
4627_ACEOF
4628if ac_fn_c_try_compile "$LINENO"; then :
4629  ac_cv_prog_cc_g=yes
4630fi
4631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632fi
4633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634fi
4635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636   ac_c_werror_flag=$ac_save_c_werror_flag
4637fi
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4639$as_echo "$ac_cv_prog_cc_g" >&6; }
4640if test "$ac_test_CFLAGS" = set; then
4641  CFLAGS=$ac_save_CFLAGS
4642elif test $ac_cv_prog_cc_g = yes; then
4643  if test "$GCC" = yes; then
4644    CFLAGS="-g -O2"
4645  else
4646    CFLAGS="-g"
4647  fi
4648else
4649  if test "$GCC" = yes; then
4650    CFLAGS="-O2"
4651  else
4652    CFLAGS=
4653  fi
4654fi
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4656$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4657if test "${ac_cv_prog_cc_c89+set}" = set; then :
4658  $as_echo_n "(cached) " >&6
4659else
4660  ac_cv_prog_cc_c89=no
4661ac_save_CC=$CC
4662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663/* end confdefs.h.  */
4664#include <stdarg.h>
4665#include <stdio.h>
4666#include <sys/types.h>
4667#include <sys/stat.h>
4668/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4669struct buf { int x; };
4670FILE * (*rcsopen) (struct buf *, struct stat *, int);
4671static char *e (p, i)
4672     char **p;
4673     int i;
4674{
4675  return p[i];
4676}
4677static char *f (char * (*g) (char **, int), char **p, ...)
4678{
4679  char *s;
4680  va_list v;
4681  va_start (v,p);
4682  s = g (p, va_arg (v,int));
4683  va_end (v);
4684  return s;
4685}
4686
4687/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4688   function prototypes and stuff, but not '\xHH' hex character constants.
4689   These don't provoke an error unfortunately, instead are silently treated
4690   as 'x'.  The following induces an error, until -std is added to get
4691   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4692   array size at least.  It's necessary to write '\x00'==0 to get something
4693   that's true only with -std.  */
4694int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4695
4696/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4697   inside strings and character constants.  */
4698#define FOO(x) 'x'
4699int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4700
4701int test (int i, double x);
4702struct s1 {int (*f) (int a);};
4703struct s2 {int (*f) (double a);};
4704int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4705int argc;
4706char **argv;
4707int
4708main ()
4709{
4710return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4711  ;
4712  return 0;
4713}
4714_ACEOF
4715for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4716	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4717do
4718  CC="$ac_save_CC $ac_arg"
4719  if ac_fn_c_try_compile "$LINENO"; then :
4720  ac_cv_prog_cc_c89=$ac_arg
4721fi
4722rm -f core conftest.err conftest.$ac_objext
4723  test "x$ac_cv_prog_cc_c89" != "xno" && break
4724done
4725rm -f conftest.$ac_ext
4726CC=$ac_save_CC
4727
4728fi
4729# AC_CACHE_VAL
4730case "x$ac_cv_prog_cc_c89" in
4731  x)
4732    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4733$as_echo "none needed" >&6; } ;;
4734  xno)
4735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4736$as_echo "unsupported" >&6; } ;;
4737  *)
4738    CC="$CC $ac_cv_prog_cc_c89"
4739    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4740$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4741esac
4742if test "x$ac_cv_prog_cc_c89" != xno; then :
4743
4744fi
4745
4746ac_ext=c
4747ac_cpp='$CPP $CPPFLAGS'
4748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4750ac_compiler_gnu=$ac_cv_c_compiler_gnu
4751
4752depcc="$CC"   am_compiler_list=
4753
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4755$as_echo_n "checking dependency style of $depcc... " >&6; }
4756if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4757  $as_echo_n "(cached) " >&6
4758else
4759  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4760  # We make a subdir and do the tests there.  Otherwise we can end up
4761  # making bogus files that we don't know about and never remove.  For
4762  # instance it was reported that on HP-UX the gcc test will end up
4763  # making a dummy file named `D' -- because `-MD' means `put the output
4764  # in D'.
4765  mkdir conftest.dir
4766  # Copy depcomp to subdir because otherwise we won't find it if we're
4767  # using a relative directory.
4768  cp "$am_depcomp" conftest.dir
4769  cd conftest.dir
4770  # We will build objects and dependencies in a subdirectory because
4771  # it helps to detect inapplicable dependency modes.  For instance
4772  # both Tru64's cc and ICC support -MD to output dependencies as a
4773  # side effect of compilation, but ICC will put the dependencies in
4774  # the current directory while Tru64 will put them in the object
4775  # directory.
4776  mkdir sub
4777
4778  am_cv_CC_dependencies_compiler_type=none
4779  if test "$am_compiler_list" = ""; then
4780     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4781  fi
4782  am__universal=false
4783  case " $depcc " in #(
4784     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4785     esac
4786
4787  for depmode in $am_compiler_list; do
4788    # Setup a source with many dependencies, because some compilers
4789    # like to wrap large dependency lists on column 80 (with \), and
4790    # we should not choose a depcomp mode which is confused by this.
4791    #
4792    # We need to recreate these files for each test, as the compiler may
4793    # overwrite some of them when testing with obscure command lines.
4794    # This happens at least with the AIX C compiler.
4795    : > sub/conftest.c
4796    for i in 1 2 3 4 5 6; do
4797      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4798      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4799      # Solaris 8's {/usr,}/bin/sh.
4800      touch sub/conftst$i.h
4801    done
4802    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4803
4804    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4805    # mode.  It turns out that the SunPro C++ compiler does not properly
4806    # handle `-M -o', and we need to detect this.  Also, some Intel
4807    # versions had trouble with output in subdirs
4808    am__obj=sub/conftest.${OBJEXT-o}
4809    am__minus_obj="-o $am__obj"
4810    case $depmode in
4811    gcc)
4812      # This depmode causes a compiler race in universal mode.
4813      test "$am__universal" = false || continue
4814      ;;
4815    nosideeffect)
4816      # after this tag, mechanisms are not by side-effect, so they'll
4817      # only be used when explicitly requested
4818      if test "x$enable_dependency_tracking" = xyes; then
4819	continue
4820      else
4821	break
4822      fi
4823      ;;
4824    msvisualcpp | msvcmsys)
4825      # This compiler won't grok `-c -o', but also, the minuso test has
4826      # not run yet.  These depmodes are late enough in the game, and
4827      # so weak that their functioning should not be impacted.
4828      am__obj=conftest.${OBJEXT-o}
4829      am__minus_obj=
4830      ;;
4831    none) break ;;
4832    esac
4833    if depmode=$depmode \
4834       source=sub/conftest.c object=$am__obj \
4835       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4836       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4837         >/dev/null 2>conftest.err &&
4838       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4839       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4840       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4841       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4842      # icc doesn't choke on unknown options, it will just issue warnings
4843      # or remarks (even with -Werror).  So we grep stderr for any message
4844      # that says an option was ignored or not supported.
4845      # When given -MP, icc 7.0 and 7.1 complain thusly:
4846      #   icc: Command line warning: ignoring option '-M'; no argument required
4847      # The diagnosis changed in icc 8.0:
4848      #   icc: Command line remark: option '-MP' not supported
4849      if (grep 'ignoring option' conftest.err ||
4850          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4851        am_cv_CC_dependencies_compiler_type=$depmode
4852        break
4853      fi
4854    fi
4855  done
4856
4857  cd ..
4858  rm -rf conftest.dir
4859else
4860  am_cv_CC_dependencies_compiler_type=none
4861fi
4862
4863fi
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4865$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4866CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4867
4868 if
4869  test "x$enable_dependency_tracking" != xno \
4870  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4871  am__fastdepCC_TRUE=
4872  am__fastdepCC_FALSE='#'
4873else
4874  am__fastdepCC_TRUE='#'
4875  am__fastdepCC_FALSE=
4876fi
4877
4878
4879   case $ac_cv_prog_cc_stdc in #(
4880  no) :
4881    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4882  *) :
4883    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4884$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4885if test "${ac_cv_prog_cc_c99+set}" = set; then :
4886  $as_echo_n "(cached) " >&6
4887else
4888  ac_cv_prog_cc_c99=no
4889ac_save_CC=$CC
4890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891/* end confdefs.h.  */
4892#include <stdarg.h>
4893#include <stdbool.h>
4894#include <stdlib.h>
4895#include <wchar.h>
4896#include <stdio.h>
4897
4898// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4899#define debug(...) fprintf (stderr, __VA_ARGS__)
4900#define showlist(...) puts (#__VA_ARGS__)
4901#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4902static void
4903test_varargs_macros (void)
4904{
4905  int x = 1234;
4906  int y = 5678;
4907  debug ("Flag");
4908  debug ("X = %d\n", x);
4909  showlist (The first, second, and third items.);
4910  report (x>y, "x is %d but y is %d", x, y);
4911}
4912
4913// Check long long types.
4914#define BIG64 18446744073709551615ull
4915#define BIG32 4294967295ul
4916#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4917#if !BIG_OK
4918  your preprocessor is broken;
4919#endif
4920#if BIG_OK
4921#else
4922  your preprocessor is broken;
4923#endif
4924static long long int bignum = -9223372036854775807LL;
4925static unsigned long long int ubignum = BIG64;
4926
4927struct incomplete_array
4928{
4929  int datasize;
4930  double data[];
4931};
4932
4933struct named_init {
4934  int number;
4935  const wchar_t *name;
4936  double average;
4937};
4938
4939typedef const char *ccp;
4940
4941static inline int
4942test_restrict (ccp restrict text)
4943{
4944  // See if C++-style comments work.
4945  // Iterate through items via the restricted pointer.
4946  // Also check for declarations in for loops.
4947  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4948    continue;
4949  return 0;
4950}
4951
4952// Check varargs and va_copy.
4953static void
4954test_varargs (const char *format, ...)
4955{
4956  va_list args;
4957  va_start (args, format);
4958  va_list args_copy;
4959  va_copy (args_copy, args);
4960
4961  const char *str;
4962  int number;
4963  float fnumber;
4964
4965  while (*format)
4966    {
4967      switch (*format++)
4968	{
4969	case 's': // string
4970	  str = va_arg (args_copy, const char *);
4971	  break;
4972	case 'd': // int
4973	  number = va_arg (args_copy, int);
4974	  break;
4975	case 'f': // float
4976	  fnumber = va_arg (args_copy, double);
4977	  break;
4978	default:
4979	  break;
4980	}
4981    }
4982  va_end (args_copy);
4983  va_end (args);
4984}
4985
4986int
4987main ()
4988{
4989
4990  // Check bool.
4991  _Bool success = false;
4992
4993  // Check restrict.
4994  if (test_restrict ("String literal") == 0)
4995    success = true;
4996  char *restrict newvar = "Another string";
4997
4998  // Check varargs.
4999  test_varargs ("s, d' f .", "string", 65, 34.234);
5000  test_varargs_macros ();
5001
5002  // Check flexible array members.
5003  struct incomplete_array *ia =
5004    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5005  ia->datasize = 10;
5006  for (int i = 0; i < ia->datasize; ++i)
5007    ia->data[i] = i * 1.234;
5008
5009  // Check named initializers.
5010  struct named_init ni = {
5011    .number = 34,
5012    .name = L"Test wide string",
5013    .average = 543.34343,
5014  };
5015
5016  ni.number = 58;
5017
5018  int dynamic_array[ni.number];
5019  dynamic_array[ni.number - 1] = 543;
5020
5021  // work around unused variable warnings
5022  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5023	  || dynamic_array[ni.number - 1] != 543);
5024
5025  ;
5026  return 0;
5027}
5028_ACEOF
5029for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5030do
5031  CC="$ac_save_CC $ac_arg"
5032  if ac_fn_c_try_compile "$LINENO"; then :
5033  ac_cv_prog_cc_c99=$ac_arg
5034fi
5035rm -f core conftest.err conftest.$ac_objext
5036  test "x$ac_cv_prog_cc_c99" != "xno" && break
5037done
5038rm -f conftest.$ac_ext
5039CC=$ac_save_CC
5040
5041fi
5042# AC_CACHE_VAL
5043case "x$ac_cv_prog_cc_c99" in
5044  x)
5045    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5046$as_echo "none needed" >&6; } ;;
5047  xno)
5048    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5049$as_echo "unsupported" >&6; } ;;
5050  *)
5051    CC="$CC $ac_cv_prog_cc_c99"
5052    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5053$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5054esac
5055if test "x$ac_cv_prog_cc_c99" != xno; then :
5056  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5057else
5058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5059$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5060if test "${ac_cv_prog_cc_c89+set}" = set; then :
5061  $as_echo_n "(cached) " >&6
5062else
5063  ac_cv_prog_cc_c89=no
5064ac_save_CC=$CC
5065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066/* end confdefs.h.  */
5067#include <stdarg.h>
5068#include <stdio.h>
5069#include <sys/types.h>
5070#include <sys/stat.h>
5071/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5072struct buf { int x; };
5073FILE * (*rcsopen) (struct buf *, struct stat *, int);
5074static char *e (p, i)
5075     char **p;
5076     int i;
5077{
5078  return p[i];
5079}
5080static char *f (char * (*g) (char **, int), char **p, ...)
5081{
5082  char *s;
5083  va_list v;
5084  va_start (v,p);
5085  s = g (p, va_arg (v,int));
5086  va_end (v);
5087  return s;
5088}
5089
5090/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5091   function prototypes and stuff, but not '\xHH' hex character constants.
5092   These don't provoke an error unfortunately, instead are silently treated
5093   as 'x'.  The following induces an error, until -std is added to get
5094   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5095   array size at least.  It's necessary to write '\x00'==0 to get something
5096   that's true only with -std.  */
5097int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5098
5099/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5100   inside strings and character constants.  */
5101#define FOO(x) 'x'
5102int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5103
5104int test (int i, double x);
5105struct s1 {int (*f) (int a);};
5106struct s2 {int (*f) (double a);};
5107int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5108int argc;
5109char **argv;
5110int
5111main ()
5112{
5113return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5114  ;
5115  return 0;
5116}
5117_ACEOF
5118for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5119	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5120do
5121  CC="$ac_save_CC $ac_arg"
5122  if ac_fn_c_try_compile "$LINENO"; then :
5123  ac_cv_prog_cc_c89=$ac_arg
5124fi
5125rm -f core conftest.err conftest.$ac_objext
5126  test "x$ac_cv_prog_cc_c89" != "xno" && break
5127done
5128rm -f conftest.$ac_ext
5129CC=$ac_save_CC
5130
5131fi
5132# AC_CACHE_VAL
5133case "x$ac_cv_prog_cc_c89" in
5134  x)
5135    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5136$as_echo "none needed" >&6; } ;;
5137  xno)
5138    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5139$as_echo "unsupported" >&6; } ;;
5140  *)
5141    CC="$CC $ac_cv_prog_cc_c89"
5142    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5143$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5144esac
5145if test "x$ac_cv_prog_cc_c89" != xno; then :
5146  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5147else
5148  ac_cv_prog_cc_stdc=no
5149fi
5150
5151fi
5152 ;;
5153esac
5154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5155$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5156  if test "${ac_cv_prog_cc_stdc+set}" = set; then :
5157  $as_echo_n "(cached) " >&6
5158fi
5159
5160  case $ac_cv_prog_cc_stdc in #(
5161  no) :
5162    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5163$as_echo "unsupported" >&6; } ;; #(
5164  '') :
5165    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5166$as_echo "none needed" >&6; } ;; #(
5167  *) :
5168    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5169$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5170esac
5171
5172
5173# We don't bother ourselves with flex checks until the rest of the world has an up-to-date Flex
5174# We need specific bison extensions, so check for bison
5175# Extract the first word of "bison", so it can be a program name with args.
5176set dummy bison; ac_word=$2
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178$as_echo_n "checking for $ac_word... " >&6; }
5179if test "${ac_cv_prog_YACC+set}" = set; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  if test -n "$YACC"; then
5183  ac_cv_prog_YACC="$YACC" # Let the user override the test.
5184else
5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188  IFS=$as_save_IFS
5189  test -z "$as_dir" && as_dir=.
5190    for ac_exec_ext in '' $ac_executable_extensions; do
5191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192    ac_cv_prog_YACC="bison -y"
5193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194    break 2
5195  fi
5196done
5197  done
5198IFS=$as_save_IFS
5199
5200  test -z "$ac_cv_prog_YACC" && ac_cv_prog_YACC="no"
5201fi
5202fi
5203YACC=$ac_cv_prog_YACC
5204if test -n "$YACC"; then
5205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5206$as_echo "$YACC" >&6; }
5207else
5208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209$as_echo "no" >&6; }
5210fi
5211
5212
5213if test "x$YACC" = "xno";
5214then
5215    as_fn_error "You need to install bison" "$LINENO" 5
5216fi
5217
5218
5219ac_ext=c
5220ac_cpp='$CPP $CPPFLAGS'
5221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223ac_compiler_gnu=$ac_cv_c_compiler_gnu
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5225$as_echo_n "checking how to run the C preprocessor... " >&6; }
5226# On Suns, sometimes $CPP names a directory.
5227if test -n "$CPP" && test -d "$CPP"; then
5228  CPP=
5229fi
5230if test -z "$CPP"; then
5231  if test "${ac_cv_prog_CPP+set}" = set; then :
5232  $as_echo_n "(cached) " >&6
5233else
5234      # Double quotes because CPP needs to be expanded
5235    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5236    do
5237      ac_preproc_ok=false
5238for ac_c_preproc_warn_flag in '' yes
5239do
5240  # Use a header file that comes with gcc, so configuring glibc
5241  # with a fresh cross-compiler works.
5242  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5243  # <limits.h> exists even on freestanding compilers.
5244  # On the NeXT, cc -E runs the code through the compiler's parser,
5245  # not just through cpp. "Syntax error" is here to catch this case.
5246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247/* end confdefs.h.  */
5248#ifdef __STDC__
5249# include <limits.h>
5250#else
5251# include <assert.h>
5252#endif
5253		     Syntax error
5254_ACEOF
5255if ac_fn_c_try_cpp "$LINENO"; then :
5256
5257else
5258  # Broken: fails on valid input.
5259continue
5260fi
5261rm -f conftest.err conftest.$ac_ext
5262
5263  # OK, works on sane cases.  Now check whether nonexistent headers
5264  # can be detected and how.
5265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266/* end confdefs.h.  */
5267#include <ac_nonexistent.h>
5268_ACEOF
5269if ac_fn_c_try_cpp "$LINENO"; then :
5270  # Broken: success on invalid input.
5271continue
5272else
5273  # Passes both tests.
5274ac_preproc_ok=:
5275break
5276fi
5277rm -f conftest.err conftest.$ac_ext
5278
5279done
5280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5281rm -f conftest.err conftest.$ac_ext
5282if $ac_preproc_ok; then :
5283  break
5284fi
5285
5286    done
5287    ac_cv_prog_CPP=$CPP
5288
5289fi
5290  CPP=$ac_cv_prog_CPP
5291else
5292  ac_cv_prog_CPP=$CPP
5293fi
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5295$as_echo "$CPP" >&6; }
5296ac_preproc_ok=false
5297for ac_c_preproc_warn_flag in '' yes
5298do
5299  # Use a header file that comes with gcc, so configuring glibc
5300  # with a fresh cross-compiler works.
5301  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5302  # <limits.h> exists even on freestanding compilers.
5303  # On the NeXT, cc -E runs the code through the compiler's parser,
5304  # not just through cpp. "Syntax error" is here to catch this case.
5305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h.  */
5307#ifdef __STDC__
5308# include <limits.h>
5309#else
5310# include <assert.h>
5311#endif
5312		     Syntax error
5313_ACEOF
5314if ac_fn_c_try_cpp "$LINENO"; then :
5315
5316else
5317  # Broken: fails on valid input.
5318continue
5319fi
5320rm -f conftest.err conftest.$ac_ext
5321
5322  # OK, works on sane cases.  Now check whether nonexistent headers
5323  # can be detected and how.
5324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h.  */
5326#include <ac_nonexistent.h>
5327_ACEOF
5328if ac_fn_c_try_cpp "$LINENO"; then :
5329  # Broken: success on invalid input.
5330continue
5331else
5332  # Passes both tests.
5333ac_preproc_ok=:
5334break
5335fi
5336rm -f conftest.err conftest.$ac_ext
5337
5338done
5339# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5340rm -f conftest.err conftest.$ac_ext
5341if $ac_preproc_ok; then :
5342
5343else
5344  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5346as_fn_error "C preprocessor \"$CPP\" fails sanity check
5347See \`config.log' for more details." "$LINENO" 5; }
5348fi
5349
5350ac_ext=c
5351ac_cpp='$CPP $CPPFLAGS'
5352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354ac_compiler_gnu=$ac_cv_c_compiler_gnu
5355
5356
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5358$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5359if test "${ac_cv_path_GREP+set}" = set; then :
5360  $as_echo_n "(cached) " >&6
5361else
5362  if test -z "$GREP"; then
5363  ac_path_GREP_found=false
5364  # Loop through the user's path and test for each of PROGNAME-LIST
5365  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5367do
5368  IFS=$as_save_IFS
5369  test -z "$as_dir" && as_dir=.
5370    for ac_prog in grep ggrep; do
5371    for ac_exec_ext in '' $ac_executable_extensions; do
5372      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5373      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5374# Check for GNU ac_path_GREP and select it if it is found.
5375  # Check for GNU $ac_path_GREP
5376case `"$ac_path_GREP" --version 2>&1` in
5377*GNU*)
5378  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5379*)
5380  ac_count=0
5381  $as_echo_n 0123456789 >"conftest.in"
5382  while :
5383  do
5384    cat "conftest.in" "conftest.in" >"conftest.tmp"
5385    mv "conftest.tmp" "conftest.in"
5386    cp "conftest.in" "conftest.nl"
5387    $as_echo 'GREP' >> "conftest.nl"
5388    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5389    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5390    as_fn_arith $ac_count + 1 && ac_count=$as_val
5391    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5392      # Best one so far, save it but keep looking for a better one
5393      ac_cv_path_GREP="$ac_path_GREP"
5394      ac_path_GREP_max=$ac_count
5395    fi
5396    # 10*(2^10) chars as input seems more than enough
5397    test $ac_count -gt 10 && break
5398  done
5399  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5400esac
5401
5402      $ac_path_GREP_found && break 3
5403    done
5404  done
5405  done
5406IFS=$as_save_IFS
5407  if test -z "$ac_cv_path_GREP"; then
5408    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5409  fi
5410else
5411  ac_cv_path_GREP=$GREP
5412fi
5413
5414fi
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5416$as_echo "$ac_cv_path_GREP" >&6; }
5417 GREP="$ac_cv_path_GREP"
5418
5419
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5421$as_echo_n "checking for egrep... " >&6; }
5422if test "${ac_cv_path_EGREP+set}" = set; then :
5423  $as_echo_n "(cached) " >&6
5424else
5425  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5426   then ac_cv_path_EGREP="$GREP -E"
5427   else
5428     if test -z "$EGREP"; then
5429  ac_path_EGREP_found=false
5430  # Loop through the user's path and test for each of PROGNAME-LIST
5431  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5433do
5434  IFS=$as_save_IFS
5435  test -z "$as_dir" && as_dir=.
5436    for ac_prog in egrep; do
5437    for ac_exec_ext in '' $ac_executable_extensions; do
5438      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5439      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5440# Check for GNU ac_path_EGREP and select it if it is found.
5441  # Check for GNU $ac_path_EGREP
5442case `"$ac_path_EGREP" --version 2>&1` in
5443*GNU*)
5444  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5445*)
5446  ac_count=0
5447  $as_echo_n 0123456789 >"conftest.in"
5448  while :
5449  do
5450    cat "conftest.in" "conftest.in" >"conftest.tmp"
5451    mv "conftest.tmp" "conftest.in"
5452    cp "conftest.in" "conftest.nl"
5453    $as_echo 'EGREP' >> "conftest.nl"
5454    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5455    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5456    as_fn_arith $ac_count + 1 && ac_count=$as_val
5457    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5458      # Best one so far, save it but keep looking for a better one
5459      ac_cv_path_EGREP="$ac_path_EGREP"
5460      ac_path_EGREP_max=$ac_count
5461    fi
5462    # 10*(2^10) chars as input seems more than enough
5463    test $ac_count -gt 10 && break
5464  done
5465  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5466esac
5467
5468      $ac_path_EGREP_found && break 3
5469    done
5470  done
5471  done
5472IFS=$as_save_IFS
5473  if test -z "$ac_cv_path_EGREP"; then
5474    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5475  fi
5476else
5477  ac_cv_path_EGREP=$EGREP
5478fi
5479
5480   fi
5481fi
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5483$as_echo "$ac_cv_path_EGREP" >&6; }
5484 EGREP="$ac_cv_path_EGREP"
5485
5486
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5488$as_echo_n "checking for ANSI C header files... " >&6; }
5489if test "${ac_cv_header_stdc+set}" = set; then :
5490  $as_echo_n "(cached) " >&6
5491else
5492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493/* end confdefs.h.  */
5494#include <stdlib.h>
5495#include <stdarg.h>
5496#include <string.h>
5497#include <float.h>
5498
5499int
5500main ()
5501{
5502
5503  ;
5504  return 0;
5505}
5506_ACEOF
5507if ac_fn_c_try_compile "$LINENO"; then :
5508  ac_cv_header_stdc=yes
5509else
5510  ac_cv_header_stdc=no
5511fi
5512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513
5514if test $ac_cv_header_stdc = yes; then
5515  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517/* end confdefs.h.  */
5518#include <string.h>
5519
5520_ACEOF
5521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5522  $EGREP "memchr" >/dev/null 2>&1; then :
5523
5524else
5525  ac_cv_header_stdc=no
5526fi
5527rm -f conftest*
5528
5529fi
5530
5531if test $ac_cv_header_stdc = yes; then
5532  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534/* end confdefs.h.  */
5535#include <stdlib.h>
5536
5537_ACEOF
5538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5539  $EGREP "free" >/dev/null 2>&1; then :
5540
5541else
5542  ac_cv_header_stdc=no
5543fi
5544rm -f conftest*
5545
5546fi
5547
5548if test $ac_cv_header_stdc = yes; then
5549  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5550  if test "$cross_compiling" = yes; then :
5551  :
5552else
5553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554/* end confdefs.h.  */
5555#include <ctype.h>
5556#include <stdlib.h>
5557#if ((' ' & 0x0FF) == 0x020)
5558# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5559# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5560#else
5561# define ISLOWER(c) \
5562		   (('a' <= (c) && (c) <= 'i') \
5563		     || ('j' <= (c) && (c) <= 'r') \
5564		     || ('s' <= (c) && (c) <= 'z'))
5565# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5566#endif
5567
5568#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5569int
5570main ()
5571{
5572  int i;
5573  for (i = 0; i < 256; i++)
5574    if (XOR (islower (i), ISLOWER (i))
5575	|| toupper (i) != TOUPPER (i))
5576      return 2;
5577  return 0;
5578}
5579_ACEOF
5580if ac_fn_c_try_run "$LINENO"; then :
5581
5582else
5583  ac_cv_header_stdc=no
5584fi
5585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5586  conftest.$ac_objext conftest.beam conftest.$ac_ext
5587fi
5588
5589fi
5590fi
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5592$as_echo "$ac_cv_header_stdc" >&6; }
5593if test $ac_cv_header_stdc = yes; then
5594
5595$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5596
5597fi
5598
5599# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5600for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5601		  inttypes.h stdint.h unistd.h
5602do :
5603  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5604ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5605"
5606eval as_val=\$$as_ac_Header
5607   if test "x$as_val" = x""yes; then :
5608  cat >>confdefs.h <<_ACEOF
5609#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5610_ACEOF
5611
5612fi
5613
5614done
5615
5616
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5618$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5619if test "${ac_cv_c_bigendian+set}" = set; then :
5620  $as_echo_n "(cached) " >&6
5621else
5622  ac_cv_c_bigendian=unknown
5623    # See if we're dealing with a universal compiler.
5624    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625/* end confdefs.h.  */
5626#ifndef __APPLE_CC__
5627	       not a universal capable compiler
5628	     #endif
5629	     typedef int dummy;
5630
5631_ACEOF
5632if ac_fn_c_try_compile "$LINENO"; then :
5633
5634	# Check for potential -arch flags.  It is not universal unless
5635	# there are at least two -arch flags with different values.
5636	ac_arch=
5637	ac_prev=
5638	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5639	 if test -n "$ac_prev"; then
5640	   case $ac_word in
5641	     i?86 | x86_64 | ppc | ppc64)
5642	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5643		 ac_arch=$ac_word
5644	       else
5645		 ac_cv_c_bigendian=universal
5646		 break
5647	       fi
5648	       ;;
5649	   esac
5650	   ac_prev=
5651	 elif test "x$ac_word" = "x-arch"; then
5652	   ac_prev=arch
5653	 fi
5654       done
5655fi
5656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657    if test $ac_cv_c_bigendian = unknown; then
5658      # See if sys/param.h defines the BYTE_ORDER macro.
5659      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660/* end confdefs.h.  */
5661#include <sys/types.h>
5662	     #include <sys/param.h>
5663
5664int
5665main ()
5666{
5667#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5668		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5669		     && LITTLE_ENDIAN)
5670	      bogus endian macros
5671	     #endif
5672
5673  ;
5674  return 0;
5675}
5676_ACEOF
5677if ac_fn_c_try_compile "$LINENO"; then :
5678  # It does; now see whether it defined to BIG_ENDIAN or not.
5679	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h.  */
5681#include <sys/types.h>
5682		#include <sys/param.h>
5683
5684int
5685main ()
5686{
5687#if BYTE_ORDER != BIG_ENDIAN
5688		 not big endian
5689		#endif
5690
5691  ;
5692  return 0;
5693}
5694_ACEOF
5695if ac_fn_c_try_compile "$LINENO"; then :
5696  ac_cv_c_bigendian=yes
5697else
5698  ac_cv_c_bigendian=no
5699fi
5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701fi
5702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703    fi
5704    if test $ac_cv_c_bigendian = unknown; then
5705      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5706      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707/* end confdefs.h.  */
5708#include <limits.h>
5709
5710int
5711main ()
5712{
5713#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5714	      bogus endian macros
5715	     #endif
5716
5717  ;
5718  return 0;
5719}
5720_ACEOF
5721if ac_fn_c_try_compile "$LINENO"; then :
5722  # It does; now see whether it defined to _BIG_ENDIAN or not.
5723	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724/* end confdefs.h.  */
5725#include <limits.h>
5726
5727int
5728main ()
5729{
5730#ifndef _BIG_ENDIAN
5731		 not big endian
5732		#endif
5733
5734  ;
5735  return 0;
5736}
5737_ACEOF
5738if ac_fn_c_try_compile "$LINENO"; then :
5739  ac_cv_c_bigendian=yes
5740else
5741  ac_cv_c_bigendian=no
5742fi
5743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744fi
5745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746    fi
5747    if test $ac_cv_c_bigendian = unknown; then
5748      # Compile a test program.
5749      if test "$cross_compiling" = yes; then :
5750  # Try to guess by grepping values from an object file.
5751	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752/* end confdefs.h.  */
5753short int ascii_mm[] =
5754		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5755		short int ascii_ii[] =
5756		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5757		int use_ascii (int i) {
5758		  return ascii_mm[i] + ascii_ii[i];
5759		}
5760		short int ebcdic_ii[] =
5761		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5762		short int ebcdic_mm[] =
5763		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5764		int use_ebcdic (int i) {
5765		  return ebcdic_mm[i] + ebcdic_ii[i];
5766		}
5767		extern int foo;
5768
5769int
5770main ()
5771{
5772return use_ascii (foo) == use_ebcdic (foo);
5773  ;
5774  return 0;
5775}
5776_ACEOF
5777if ac_fn_c_try_compile "$LINENO"; then :
5778  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5779	      ac_cv_c_bigendian=yes
5780	    fi
5781	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5782	      if test "$ac_cv_c_bigendian" = unknown; then
5783		ac_cv_c_bigendian=no
5784	      else
5785		# finding both strings is unlikely to happen, but who knows?
5786		ac_cv_c_bigendian=unknown
5787	      fi
5788	    fi
5789fi
5790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791else
5792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793/* end confdefs.h.  */
5794$ac_includes_default
5795int
5796main ()
5797{
5798
5799	     /* Are we little or big endian?  From Harbison&Steele.  */
5800	     union
5801	     {
5802	       long int l;
5803	       char c[sizeof (long int)];
5804	     } u;
5805	     u.l = 1;
5806	     return u.c[sizeof (long int) - 1] == 1;
5807
5808  ;
5809  return 0;
5810}
5811_ACEOF
5812if ac_fn_c_try_run "$LINENO"; then :
5813  ac_cv_c_bigendian=no
5814else
5815  ac_cv_c_bigendian=yes
5816fi
5817rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5818  conftest.$ac_objext conftest.beam conftest.$ac_ext
5819fi
5820
5821    fi
5822fi
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5824$as_echo "$ac_cv_c_bigendian" >&6; }
5825 case $ac_cv_c_bigendian in #(
5826   yes)
5827     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5828;; #(
5829   no)
5830      ;; #(
5831   universal)
5832
5833$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5834
5835     ;; #(
5836   *)
5837     as_fn_error "unknown endianness
5838 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5839 esac
5840
5841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5842$as_echo_n "checking return type of signal handlers... " >&6; }
5843if test "${ac_cv_type_signal+set}" = set; then :
5844  $as_echo_n "(cached) " >&6
5845else
5846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847/* end confdefs.h.  */
5848#include <sys/types.h>
5849#include <signal.h>
5850
5851int
5852main ()
5853{
5854return *(signal (0, 0)) (0) == 1;
5855  ;
5856  return 0;
5857}
5858_ACEOF
5859if ac_fn_c_try_compile "$LINENO"; then :
5860  ac_cv_type_signal=int
5861else
5862  ac_cv_type_signal=void
5863fi
5864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865fi
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5867$as_echo "$ac_cv_type_signal" >&6; }
5868
5869cat >>confdefs.h <<_ACEOF
5870#define RETSIGTYPE $ac_cv_type_signal
5871_ACEOF
5872
5873
5874ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5875if test "x$ac_cv_type_long_long" = x""yes; then :
5876
5877cat >>confdefs.h <<_ACEOF
5878#define HAVE_LONG_LONG 1
5879_ACEOF
5880
5881
5882fi
5883
5884# The cast to long int works around a bug in the HP C Compiler
5885# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5886# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5887# This bug is HP SR number 8606223364.
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5889$as_echo_n "checking size of long long... " >&6; }
5890if test "${ac_cv_sizeof_long_long+set}" = set; then :
5891  $as_echo_n "(cached) " >&6
5892else
5893  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5894
5895else
5896  if test "$ac_cv_type_long_long" = yes; then
5897     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5899{ as_fn_set_status 77
5900as_fn_error "cannot compute sizeof (long long)
5901See \`config.log' for more details." "$LINENO" 5; }; }
5902   else
5903     ac_cv_sizeof_long_long=0
5904   fi
5905fi
5906
5907fi
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5909$as_echo "$ac_cv_sizeof_long_long" >&6; }
5910
5911
5912
5913cat >>confdefs.h <<_ACEOF
5914#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5915_ACEOF
5916
5917
5918# The cast to long int works around a bug in the HP C Compiler
5919# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5920# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5921# This bug is HP SR number 8606223364.
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5923$as_echo_n "checking size of long... " >&6; }
5924if test "${ac_cv_sizeof_long+set}" = set; then :
5925  $as_echo_n "(cached) " >&6
5926else
5927  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5928
5929else
5930  if test "$ac_cv_type_long" = yes; then
5931     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5933{ as_fn_set_status 77
5934as_fn_error "cannot compute sizeof (long)
5935See \`config.log' for more details." "$LINENO" 5; }; }
5936   else
5937     ac_cv_sizeof_long=0
5938   fi
5939fi
5940
5941fi
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5943$as_echo "$ac_cv_sizeof_long" >&6; }
5944
5945
5946
5947cat >>confdefs.h <<_ACEOF
5948#define SIZEOF_LONG $ac_cv_sizeof_long
5949_ACEOF
5950
5951
5952for ac_func in popen perror snprintf
5953do :
5954  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5955ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5956eval as_val=\$$as_ac_var
5957   if test "x$as_val" = x""yes; then :
5958  cat >>confdefs.h <<_ACEOF
5959#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5960_ACEOF
5961
5962fi
5963done
5964
5965ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
5966if test "x$ac_cv_header_errno_h" = x""yes; then :
5967
5968fi
5969
5970
5971
5972      if test "X$prefix" = "XNONE"; then
5973    acl_final_prefix="$ac_default_prefix"
5974  else
5975    acl_final_prefix="$prefix"
5976  fi
5977  if test "X$exec_prefix" = "XNONE"; then
5978    acl_final_exec_prefix='${prefix}'
5979  else
5980    acl_final_exec_prefix="$exec_prefix"
5981  fi
5982  acl_save_prefix="$prefix"
5983  prefix="$acl_final_prefix"
5984  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5985  prefix="$acl_save_prefix"
5986
5987
5988# Check whether --with-gnu-ld was given.
5989if test "${with_gnu_ld+set}" = set; then :
5990  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5991else
5992  with_gnu_ld=no
5993fi
5994
5995# Prepare PATH_SEPARATOR.
5996# The user is always right.
5997if test "${PATH_SEPARATOR+set}" != set; then
5998  echo "#! /bin/sh" >conf$$.sh
5999  echo  "exit 0"   >>conf$$.sh
6000  chmod +x conf$$.sh
6001  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6002    PATH_SEPARATOR=';'
6003  else
6004    PATH_SEPARATOR=:
6005  fi
6006  rm -f conf$$.sh
6007fi
6008ac_prog=ld
6009if test "$GCC" = yes; then
6010  # Check if gcc -print-prog-name=ld gives a path.
6011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6012$as_echo_n "checking for ld used by GCC... " >&6; }
6013  case $host in
6014  *-*-mingw*)
6015    # gcc leaves a trailing carriage return which upsets mingw
6016    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6017  *)
6018    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6019  esac
6020  case $ac_prog in
6021    # Accept absolute paths.
6022    [\\/]* | [A-Za-z]:[\\/]*)
6023      re_direlt='/[^/][^/]*/\.\./'
6024      # Canonicalize the path of ld
6025      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6026      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6027	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6028      done
6029      test -z "$LD" && LD="$ac_prog"
6030      ;;
6031  "")
6032    # If it fails, then pretend we aren't using GCC.
6033    ac_prog=ld
6034    ;;
6035  *)
6036    # If it is relative, then search for the first ld in PATH.
6037    with_gnu_ld=unknown
6038    ;;
6039  esac
6040elif test "$with_gnu_ld" = yes; then
6041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6042$as_echo_n "checking for GNU ld... " >&6; }
6043else
6044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6045$as_echo_n "checking for non-GNU ld... " >&6; }
6046fi
6047if test "${acl_cv_path_LD+set}" = set; then :
6048  $as_echo_n "(cached) " >&6
6049else
6050  if test -z "$LD"; then
6051  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6052  for ac_dir in $PATH; do
6053    test -z "$ac_dir" && ac_dir=.
6054    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6055      acl_cv_path_LD="$ac_dir/$ac_prog"
6056      # Check to see if the program is GNU ld.  I'd rather use --version,
6057      # but apparently some GNU ld's only accept -v.
6058      # Break only if it was the GNU/non-GNU ld that we prefer.
6059      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6060      *GNU* | *'with BFD'*)
6061	test "$with_gnu_ld" != no && break ;;
6062      *)
6063	test "$with_gnu_ld" != yes && break ;;
6064      esac
6065    fi
6066  done
6067  IFS="$ac_save_ifs"
6068else
6069  acl_cv_path_LD="$LD" # Let the user override the test with a path.
6070fi
6071fi
6072
6073LD="$acl_cv_path_LD"
6074if test -n "$LD"; then
6075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6076$as_echo "$LD" >&6; }
6077else
6078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079$as_echo "no" >&6; }
6080fi
6081test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6083$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6084if test "${acl_cv_prog_gnu_ld+set}" = set; then :
6085  $as_echo_n "(cached) " >&6
6086else
6087  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6088case `$LD -v 2>&1 </dev/null` in
6089*GNU* | *'with BFD'*)
6090  acl_cv_prog_gnu_ld=yes ;;
6091*)
6092  acl_cv_prog_gnu_ld=no ;;
6093esac
6094fi
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6096$as_echo "$acl_cv_prog_gnu_ld" >&6; }
6097with_gnu_ld=$acl_cv_prog_gnu_ld
6098
6099
6100
6101
6102                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6103$as_echo_n "checking for shared library run path origin... " >&6; }
6104if test "${acl_cv_rpath+set}" = set; then :
6105  $as_echo_n "(cached) " >&6
6106else
6107
6108    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6109    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6110    . ./conftest.sh
6111    rm -f ./conftest.sh
6112    acl_cv_rpath=done
6113
6114fi
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6116$as_echo "$acl_cv_rpath" >&6; }
6117  wl="$acl_cv_wl"
6118  libext="$acl_cv_libext"
6119  shlibext="$acl_cv_shlibext"
6120  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6121  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6122  hardcode_direct="$acl_cv_hardcode_direct"
6123  hardcode_minus_L="$acl_cv_hardcode_minus_L"
6124    # Check whether --enable-rpath was given.
6125if test "${enable_rpath+set}" = set; then :
6126  enableval=$enable_rpath; :
6127else
6128  enable_rpath=yes
6129fi
6130
6131
6132
6133                  acl_libdirstem=lib
6134  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6135  if test -n "$searchpath"; then
6136    acl_save_IFS="${IFS= 	}"; IFS=":"
6137    for searchdir in $searchpath; do
6138      if test -d "$searchdir"; then
6139        case "$searchdir" in
6140          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6141          *) searchdir=`cd "$searchdir" && pwd`
6142             case "$searchdir" in
6143               */lib64 ) acl_libdirstem=lib64 ;;
6144             esac ;;
6145        esac
6146      fi
6147    done
6148    IFS="$acl_save_IFS"
6149  fi
6150
6151
6152
6153
6154
6155
6156
6157
6158    use_additional=yes
6159
6160  acl_save_prefix="$prefix"
6161  prefix="$acl_final_prefix"
6162  acl_save_exec_prefix="$exec_prefix"
6163  exec_prefix="$acl_final_exec_prefix"
6164
6165    eval additional_includedir=\"$includedir\"
6166    eval additional_libdir=\"$libdir\"
6167
6168  exec_prefix="$acl_save_exec_prefix"
6169  prefix="$acl_save_prefix"
6170
6171
6172# Check whether --with-libiconv-prefix was given.
6173if test "${with_libiconv_prefix+set}" = set; then :
6174  withval=$with_libiconv_prefix;
6175    if test "X$withval" = "Xno"; then
6176      use_additional=no
6177    else
6178      if test "X$withval" = "X"; then
6179
6180  acl_save_prefix="$prefix"
6181  prefix="$acl_final_prefix"
6182  acl_save_exec_prefix="$exec_prefix"
6183  exec_prefix="$acl_final_exec_prefix"
6184
6185          eval additional_includedir=\"$includedir\"
6186          eval additional_libdir=\"$libdir\"
6187
6188  exec_prefix="$acl_save_exec_prefix"
6189  prefix="$acl_save_prefix"
6190
6191      else
6192        additional_includedir="$withval/include"
6193        additional_libdir="$withval/$acl_libdirstem"
6194      fi
6195    fi
6196
6197fi
6198
6199      LIBICONV=
6200  LTLIBICONV=
6201  INCICONV=
6202  rpathdirs=
6203  ltrpathdirs=
6204  names_already_handled=
6205  names_next_round='iconv '
6206  while test -n "$names_next_round"; do
6207    names_this_round="$names_next_round"
6208    names_next_round=
6209    for name in $names_this_round; do
6210      already_handled=
6211      for n in $names_already_handled; do
6212        if test "$n" = "$name"; then
6213          already_handled=yes
6214          break
6215        fi
6216      done
6217      if test -z "$already_handled"; then
6218        names_already_handled="$names_already_handled $name"
6219                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6220        eval value=\"\$HAVE_LIB$uppername\"
6221        if test -n "$value"; then
6222          if test "$value" = yes; then
6223            eval value=\"\$LIB$uppername\"
6224            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6225            eval value=\"\$LTLIB$uppername\"
6226            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6227          else
6228                                    :
6229          fi
6230        else
6231                              found_dir=
6232          found_la=
6233          found_so=
6234          found_a=
6235          if test $use_additional = yes; then
6236            if test -n "$shlibext" \
6237               && { test -f "$additional_libdir/lib$name.$shlibext" \
6238                    || { test "$shlibext" = dll \
6239                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
6240              found_dir="$additional_libdir"
6241              if test -f "$additional_libdir/lib$name.$shlibext"; then
6242                found_so="$additional_libdir/lib$name.$shlibext"
6243              else
6244                found_so="$additional_libdir/lib$name.dll.a"
6245              fi
6246              if test -f "$additional_libdir/lib$name.la"; then
6247                found_la="$additional_libdir/lib$name.la"
6248              fi
6249            else
6250              if test -f "$additional_libdir/lib$name.$libext"; then
6251                found_dir="$additional_libdir"
6252                found_a="$additional_libdir/lib$name.$libext"
6253                if test -f "$additional_libdir/lib$name.la"; then
6254                  found_la="$additional_libdir/lib$name.la"
6255                fi
6256              fi
6257            fi
6258          fi
6259          if test "X$found_dir" = "X"; then
6260            for x in $LDFLAGS $LTLIBICONV; do
6261
6262  acl_save_prefix="$prefix"
6263  prefix="$acl_final_prefix"
6264  acl_save_exec_prefix="$exec_prefix"
6265  exec_prefix="$acl_final_exec_prefix"
6266  eval x=\"$x\"
6267  exec_prefix="$acl_save_exec_prefix"
6268  prefix="$acl_save_prefix"
6269
6270              case "$x" in
6271                -L*)
6272                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6273                  if test -n "$shlibext" \
6274                     && { test -f "$dir/lib$name.$shlibext" \
6275                          || { test "$shlibext" = dll \
6276                               && test -f "$dir/lib$name.dll.a"; }; }; then
6277                    found_dir="$dir"
6278                    if test -f "$dir/lib$name.$shlibext"; then
6279                      found_so="$dir/lib$name.$shlibext"
6280                    else
6281                      found_so="$dir/lib$name.dll.a"
6282                    fi
6283                    if test -f "$dir/lib$name.la"; then
6284                      found_la="$dir/lib$name.la"
6285                    fi
6286                  else
6287                    if test -f "$dir/lib$name.$libext"; then
6288                      found_dir="$dir"
6289                      found_a="$dir/lib$name.$libext"
6290                      if test -f "$dir/lib$name.la"; then
6291                        found_la="$dir/lib$name.la"
6292                      fi
6293                    fi
6294                  fi
6295                  ;;
6296              esac
6297              if test "X$found_dir" != "X"; then
6298                break
6299              fi
6300            done
6301          fi
6302          if test "X$found_dir" != "X"; then
6303                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6304            if test "X$found_so" != "X"; then
6305                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6306                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6307              else
6308                                                                                haveit=
6309                for x in $ltrpathdirs; do
6310                  if test "X$x" = "X$found_dir"; then
6311                    haveit=yes
6312                    break
6313                  fi
6314                done
6315                if test -z "$haveit"; then
6316                  ltrpathdirs="$ltrpathdirs $found_dir"
6317                fi
6318                                if test "$hardcode_direct" = yes; then
6319                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6320                else
6321                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6322                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6323                                                            haveit=
6324                    for x in $rpathdirs; do
6325                      if test "X$x" = "X$found_dir"; then
6326                        haveit=yes
6327                        break
6328                      fi
6329                    done
6330                    if test -z "$haveit"; then
6331                      rpathdirs="$rpathdirs $found_dir"
6332                    fi
6333                  else
6334                                                                                haveit=
6335                    for x in $LDFLAGS $LIBICONV; do
6336
6337  acl_save_prefix="$prefix"
6338  prefix="$acl_final_prefix"
6339  acl_save_exec_prefix="$exec_prefix"
6340  exec_prefix="$acl_final_exec_prefix"
6341  eval x=\"$x\"
6342  exec_prefix="$acl_save_exec_prefix"
6343  prefix="$acl_save_prefix"
6344
6345                      if test "X$x" = "X-L$found_dir"; then
6346                        haveit=yes
6347                        break
6348                      fi
6349                    done
6350                    if test -z "$haveit"; then
6351                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6352                    fi
6353                    if test "$hardcode_minus_L" != no; then
6354                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6355                    else
6356                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6357                    fi
6358                  fi
6359                fi
6360              fi
6361            else
6362              if test "X$found_a" != "X"; then
6363                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6364              else
6365                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6366              fi
6367            fi
6368                        additional_includedir=
6369            case "$found_dir" in
6370              */$acl_libdirstem | */$acl_libdirstem/)
6371                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6372                additional_includedir="$basedir/include"
6373                ;;
6374            esac
6375            if test "X$additional_includedir" != "X"; then
6376                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
6377                haveit=
6378                if test "X$additional_includedir" = "X/usr/local/include"; then
6379                  if test -n "$GCC"; then
6380                    case $host_os in
6381                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6382                    esac
6383                  fi
6384                fi
6385                if test -z "$haveit"; then
6386                  for x in $CPPFLAGS $INCICONV; do
6387
6388  acl_save_prefix="$prefix"
6389  prefix="$acl_final_prefix"
6390  acl_save_exec_prefix="$exec_prefix"
6391  exec_prefix="$acl_final_exec_prefix"
6392  eval x=\"$x\"
6393  exec_prefix="$acl_save_exec_prefix"
6394  prefix="$acl_save_prefix"
6395
6396                    if test "X$x" = "X-I$additional_includedir"; then
6397                      haveit=yes
6398                      break
6399                    fi
6400                  done
6401                  if test -z "$haveit"; then
6402                    if test -d "$additional_includedir"; then
6403                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6404                    fi
6405                  fi
6406                fi
6407              fi
6408            fi
6409                        if test -n "$found_la"; then
6410                                                        save_libdir="$libdir"
6411              case "$found_la" in
6412                */* | *\\*) . "$found_la" ;;
6413                *) . "./$found_la" ;;
6414              esac
6415              libdir="$save_libdir"
6416                            for dep in $dependency_libs; do
6417                case "$dep" in
6418                  -L*)
6419                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6420                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6421                      haveit=
6422                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6423                        if test -n "$GCC"; then
6424                          case $host_os in
6425                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6426                          esac
6427                        fi
6428                      fi
6429                      if test -z "$haveit"; then
6430                        haveit=
6431                        for x in $LDFLAGS $LIBICONV; do
6432
6433  acl_save_prefix="$prefix"
6434  prefix="$acl_final_prefix"
6435  acl_save_exec_prefix="$exec_prefix"
6436  exec_prefix="$acl_final_exec_prefix"
6437  eval x=\"$x\"
6438  exec_prefix="$acl_save_exec_prefix"
6439  prefix="$acl_save_prefix"
6440
6441                          if test "X$x" = "X-L$additional_libdir"; then
6442                            haveit=yes
6443                            break
6444                          fi
6445                        done
6446                        if test -z "$haveit"; then
6447                          if test -d "$additional_libdir"; then
6448                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6449                          fi
6450                        fi
6451                        haveit=
6452                        for x in $LDFLAGS $LTLIBICONV; do
6453
6454  acl_save_prefix="$prefix"
6455  prefix="$acl_final_prefix"
6456  acl_save_exec_prefix="$exec_prefix"
6457  exec_prefix="$acl_final_exec_prefix"
6458  eval x=\"$x\"
6459  exec_prefix="$acl_save_exec_prefix"
6460  prefix="$acl_save_prefix"
6461
6462                          if test "X$x" = "X-L$additional_libdir"; then
6463                            haveit=yes
6464                            break
6465                          fi
6466                        done
6467                        if test -z "$haveit"; then
6468                          if test -d "$additional_libdir"; then
6469                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6470                          fi
6471                        fi
6472                      fi
6473                    fi
6474                    ;;
6475                  -R*)
6476                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6477                    if test "$enable_rpath" != no; then
6478                                                                  haveit=
6479                      for x in $rpathdirs; do
6480                        if test "X$x" = "X$dir"; then
6481                          haveit=yes
6482                          break
6483                        fi
6484                      done
6485                      if test -z "$haveit"; then
6486                        rpathdirs="$rpathdirs $dir"
6487                      fi
6488                                                                  haveit=
6489                      for x in $ltrpathdirs; do
6490                        if test "X$x" = "X$dir"; then
6491                          haveit=yes
6492                          break
6493                        fi
6494                      done
6495                      if test -z "$haveit"; then
6496                        ltrpathdirs="$ltrpathdirs $dir"
6497                      fi
6498                    fi
6499                    ;;
6500                  -l*)
6501                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6502                    ;;
6503                  *.la)
6504                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6505                    ;;
6506                  *)
6507                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6508                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6509                    ;;
6510                esac
6511              done
6512            fi
6513          else
6514                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6515            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6516          fi
6517        fi
6518      fi
6519    done
6520  done
6521  if test "X$rpathdirs" != "X"; then
6522    if test -n "$hardcode_libdir_separator"; then
6523                        alldirs=
6524      for found_dir in $rpathdirs; do
6525        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6526      done
6527            acl_save_libdir="$libdir"
6528      libdir="$alldirs"
6529      eval flag=\"$hardcode_libdir_flag_spec\"
6530      libdir="$acl_save_libdir"
6531      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6532    else
6533            for found_dir in $rpathdirs; do
6534        acl_save_libdir="$libdir"
6535        libdir="$found_dir"
6536        eval flag=\"$hardcode_libdir_flag_spec\"
6537        libdir="$acl_save_libdir"
6538        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6539      done
6540    fi
6541  fi
6542  if test "X$ltrpathdirs" != "X"; then
6543            for found_dir in $ltrpathdirs; do
6544      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6545    done
6546  fi
6547
6548
6549
6550
6551
6552
6553
6554          am_save_CPPFLAGS="$CPPFLAGS"
6555
6556  for element in $INCICONV; do
6557    haveit=
6558    for x in $CPPFLAGS; do
6559
6560  acl_save_prefix="$prefix"
6561  prefix="$acl_final_prefix"
6562  acl_save_exec_prefix="$exec_prefix"
6563  exec_prefix="$acl_final_exec_prefix"
6564  eval x=\"$x\"
6565  exec_prefix="$acl_save_exec_prefix"
6566  prefix="$acl_save_prefix"
6567
6568      if test "X$x" = "X$element"; then
6569        haveit=yes
6570        break
6571      fi
6572    done
6573    if test -z "$haveit"; then
6574      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6575    fi
6576  done
6577
6578
6579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6580$as_echo_n "checking for iconv... " >&6; }
6581if test "${am_cv_func_iconv+set}" = set; then :
6582  $as_echo_n "(cached) " >&6
6583else
6584
6585    am_cv_func_iconv="no, consider installing GNU libiconv"
6586    am_cv_lib_iconv=no
6587    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588/* end confdefs.h.  */
6589#include <stdlib.h>
6590#include <iconv.h>
6591int
6592main ()
6593{
6594iconv_t cd = iconv_open("","");
6595       iconv(cd,NULL,NULL,NULL,NULL);
6596       iconv_close(cd);
6597  ;
6598  return 0;
6599}
6600_ACEOF
6601if ac_fn_c_try_link "$LINENO"; then :
6602  am_cv_func_iconv=yes
6603fi
6604rm -f core conftest.err conftest.$ac_objext \
6605    conftest$ac_exeext conftest.$ac_ext
6606    if test "$am_cv_func_iconv" != yes; then
6607      am_save_LIBS="$LIBS"
6608      LIBS="$LIBS $LIBICONV"
6609      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610/* end confdefs.h.  */
6611#include <stdlib.h>
6612#include <iconv.h>
6613int
6614main ()
6615{
6616iconv_t cd = iconv_open("","");
6617         iconv(cd,NULL,NULL,NULL,NULL);
6618         iconv_close(cd);
6619  ;
6620  return 0;
6621}
6622_ACEOF
6623if ac_fn_c_try_link "$LINENO"; then :
6624  am_cv_lib_iconv=yes
6625        am_cv_func_iconv=yes
6626fi
6627rm -f core conftest.err conftest.$ac_objext \
6628    conftest$ac_exeext conftest.$ac_ext
6629      LIBS="$am_save_LIBS"
6630    fi
6631
6632fi
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6634$as_echo "$am_cv_func_iconv" >&6; }
6635  if test "$am_cv_func_iconv" = yes; then
6636
6637$as_echo "#define HAVE_ICONV 1" >>confdefs.h
6638
6639  fi
6640  if test "$am_cv_lib_iconv" = yes; then
6641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6642$as_echo_n "checking how to link with libiconv... " >&6; }
6643    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6644$as_echo "$LIBICONV" >&6; }
6645  else
6646            CPPFLAGS="$am_save_CPPFLAGS"
6647    LIBICONV=
6648    LTLIBICONV=
6649  fi
6650
6651
6652
6653  if test "$am_cv_func_iconv" = yes; then
6654    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6655$as_echo_n "checking for iconv declaration... " >&6; }
6656    if test "${am_cv_proto_iconv+set}" = set; then :
6657  $as_echo_n "(cached) " >&6
6658else
6659
6660      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661/* end confdefs.h.  */
6662
6663#include <stdlib.h>
6664#include <iconv.h>
6665extern
6666#ifdef __cplusplus
6667"C"
6668#endif
6669#if defined(__STDC__) || defined(__cplusplus)
6670size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6671#else
6672size_t iconv();
6673#endif
6674
6675int
6676main ()
6677{
6678
6679  ;
6680  return 0;
6681}
6682_ACEOF
6683if ac_fn_c_try_compile "$LINENO"; then :
6684  am_cv_proto_iconv_arg1=""
6685else
6686  am_cv_proto_iconv_arg1="const"
6687fi
6688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
6690fi
6691
6692    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6693    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6694         }$am_cv_proto_iconv" >&5
6695$as_echo "${ac_t:-
6696         }$am_cv_proto_iconv" >&6; }
6697
6698cat >>confdefs.h <<_ACEOF
6699#define ICONV_CONST $am_cv_proto_iconv_arg1
6700_ACEOF
6701
6702  fi
6703
6704
6705use_lapack=true
6706use_internal_lapack=false
6707
6708# Check whether --with-lapack was given.
6709if test "${with_lapack+set}" = set; then :
6710  withval=$with_lapack;
6711if test x$withval = xno; then
6712   use_lapack=false
6713fi
6714
6715fi
6716
6717if test x$use_lapack = xtrue; then
6718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sgesv_ in -llapack" >&5
6719$as_echo_n "checking for sgesv_ in -llapack... " >&6; }
6720if test "${ac_cv_lib_lapack_sgesv_+set}" = set; then :
6721  $as_echo_n "(cached) " >&6
6722else
6723  ac_check_lib_save_LIBS=$LIBS
6724LIBS="-llapack  $LIBS"
6725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726/* end confdefs.h.  */
6727
6728/* Override any GCC internal prototype to avoid an error.
6729   Use char because int might match the return type of a GCC
6730   builtin and then its argument prototype would still apply.  */
6731#ifdef __cplusplus
6732extern "C"
6733#endif
6734char sgesv_ ();
6735int
6736main ()
6737{
6738return sgesv_ ();
6739  ;
6740  return 0;
6741}
6742_ACEOF
6743if ac_fn_c_try_link "$LINENO"; then :
6744  ac_cv_lib_lapack_sgesv_=yes
6745else
6746  ac_cv_lib_lapack_sgesv_=no
6747fi
6748rm -f core conftest.err conftest.$ac_objext \
6749    conftest$ac_exeext conftest.$ac_ext
6750LIBS=$ac_check_lib_save_LIBS
6751fi
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_sgesv_" >&5
6753$as_echo "$ac_cv_lib_lapack_sgesv_" >&6; }
6754if test "x$ac_cv_lib_lapack_sgesv_" = x""yes; then :
6755  cat >>confdefs.h <<_ACEOF
6756#define HAVE_LIBLAPACK 1
6757_ACEOF
6758
6759  LIBS="-llapack $LIBS"
6760
6761else
6762  use_internal_lapack=true
6763fi
6764
6765   if test x$use_internal_lapack != xtrue; then
6766      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sgemm_ in -lblas" >&5
6767$as_echo_n "checking for sgemm_ in -lblas... " >&6; }
6768if test "${ac_cv_lib_blas_sgemm_+set}" = set; then :
6769  $as_echo_n "(cached) " >&6
6770else
6771  ac_check_lib_save_LIBS=$LIBS
6772LIBS="-lblas  $LIBS"
6773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774/* end confdefs.h.  */
6775
6776/* Override any GCC internal prototype to avoid an error.
6777   Use char because int might match the return type of a GCC
6778   builtin and then its argument prototype would still apply.  */
6779#ifdef __cplusplus
6780extern "C"
6781#endif
6782char sgemm_ ();
6783int
6784main ()
6785{
6786return sgemm_ ();
6787  ;
6788  return 0;
6789}
6790_ACEOF
6791if ac_fn_c_try_link "$LINENO"; then :
6792  ac_cv_lib_blas_sgemm_=yes
6793else
6794  ac_cv_lib_blas_sgemm_=no
6795fi
6796rm -f core conftest.err conftest.$ac_objext \
6797    conftest$ac_exeext conftest.$ac_ext
6798LIBS=$ac_check_lib_save_LIBS
6799fi
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_sgemm_" >&5
6801$as_echo "$ac_cv_lib_blas_sgemm_" >&6; }
6802if test "x$ac_cv_lib_blas_sgemm_" = x""yes; then :
6803  cat >>confdefs.h <<_ACEOF
6804#define HAVE_LIBBLAS 1
6805_ACEOF
6806
6807  LIBS="-lblas $LIBS"
6808
6809else
6810  use_internal_lapack=true
6811fi
6812
6813   fi
6814
6815$as_echo "#define WITH_LAPACK /**/" >>confdefs.h
6816
6817fi
6818 if test x$use_internal_lapack = xtrue; then
6819  LAPACK_LITE_TRUE=
6820  LAPACK_LITE_FALSE='#'
6821else
6822  LAPACK_LITE_TRUE='#'
6823  LAPACK_LITE_FALSE=
6824fi
6825
6826 if test x$use_lapack = xtrue; then
6827  USE_LAPACK_TRUE=
6828  USE_LAPACK_FALSE='#'
6829else
6830  USE_LAPACK_TRUE='#'
6831  USE_LAPACK_FALSE=
6832fi
6833
6834
6835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log in -lm" >&5
6836$as_echo_n "checking for log in -lm... " >&6; }
6837if test "${ac_cv_lib_m_log+set}" = set; then :
6838  $as_echo_n "(cached) " >&6
6839else
6840  ac_check_lib_save_LIBS=$LIBS
6841LIBS="-lm  $LIBS"
6842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843/* end confdefs.h.  */
6844
6845/* Override any GCC internal prototype to avoid an error.
6846   Use char because int might match the return type of a GCC
6847   builtin and then its argument prototype would still apply.  */
6848#ifdef __cplusplus
6849extern "C"
6850#endif
6851char log ();
6852int
6853main ()
6854{
6855return log ();
6856  ;
6857  return 0;
6858}
6859_ACEOF
6860if ac_fn_c_try_link "$LINENO"; then :
6861  ac_cv_lib_m_log=yes
6862else
6863  ac_cv_lib_m_log=no
6864fi
6865rm -f core conftest.err conftest.$ac_objext \
6866    conftest$ac_exeext conftest.$ac_ext
6867LIBS=$ac_check_lib_save_LIBS
6868fi
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log" >&5
6870$as_echo "$ac_cv_lib_m_log" >&6; }
6871if test "x$ac_cv_lib_m_log" = x""yes; then :
6872  cat >>confdefs.h <<_ACEOF
6873#define HAVE_LIBM 1
6874_ACEOF
6875
6876  LIBS="-lm $LIBS"
6877
6878fi
6879
6880
6881threadsafe=auto
6882# Check whether --enable-threads was given.
6883if test "${enable_threads+set}" = set; then :
6884  enableval=$enable_threads;
6885if test x$enableval != x; then
6886   threadsafe=$enableval
6887fi
6888
6889fi
6890
6891if test x$threadsafe != xno; then
6892   threads=false
6893               case $host in
6894     *cygwin*|*mingw*|*wince*)
6895	threads=true
6896     ;;
6897     *)
6898        for ac_header in pthread.h
6899do :
6900  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6901if test "x$ac_cv_header_pthread_h" = x""yes; then :
6902  cat >>confdefs.h <<_ACEOF
6903#define HAVE_PTHREAD_H 1
6904_ACEOF
6905 threads=true
6906fi
6907
6908done
6909
6910	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6911$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6912if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
6913  $as_echo_n "(cached) " >&6
6914else
6915  ac_check_lib_save_LIBS=$LIBS
6916LIBS="-lpthread  $LIBS"
6917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918/* end confdefs.h.  */
6919
6920/* Override any GCC internal prototype to avoid an error.
6921   Use char because int might match the return type of a GCC
6922   builtin and then its argument prototype would still apply.  */
6923#ifdef __cplusplus
6924extern "C"
6925#endif
6926char pthread_create ();
6927int
6928main ()
6929{
6930return pthread_create ();
6931  ;
6932  return 0;
6933}
6934_ACEOF
6935if ac_fn_c_try_link "$LINENO"; then :
6936  ac_cv_lib_pthread_pthread_create=yes
6937else
6938  ac_cv_lib_pthread_pthread_create=no
6939fi
6940rm -f core conftest.err conftest.$ac_objext \
6941    conftest$ac_exeext conftest.$ac_ext
6942LIBS=$ac_check_lib_save_LIBS
6943fi
6944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6945$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6946if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
6947  cat >>confdefs.h <<_ACEOF
6948#define HAVE_LIBPTHREAD 1
6949_ACEOF
6950
6951  LIBS="-lpthread $LIBS"
6952
6953fi
6954
6955     ;;
6956   esac
6957   if test x$threads = xtrue; then
6958
6959$as_echo "#define ENABLE_THREADS /**/" >>confdefs.h
6960
6961     threadsafe=yes
6962   elif test x$threadsafe = xyes; then
6963     as_fn_error "--enable-threads was given but test for thread functions failed!" "$LINENO" 5
6964   else
6965     threadsafe=no
6966   fi
6967fi
6968 if test x$threadsafe = xyes; then
6969  USE_THREADS_TRUE=
6970  USE_THREADS_FALSE='#'
6971else
6972  USE_THREADS_TRUE='#'
6973  USE_THREADS_FALSE=
6974fi
6975
6976
6977fixed_point=false
6978# Check whether --enable-fixed was given.
6979if test "${enable_fixed+set}" = set; then :
6980  enableval=$enable_fixed;
6981if test x$enableval = xyes; then
6982   $as_echo "#define FIXED_POINT 1" >>confdefs.h
6983
6984   fixed_point=true
6985else
6986
6987$as_echo "#define FIXED_POINT /**/" >>confdefs.h
6988
6989
6990cat >>confdefs.h <<_ACEOF
6991#define DEFAULT_RADIX $enableval
6992_ACEOF
6993
6994fi
6995fi
6996
6997 if test x$fixed_point = xtrue; then
6998  FIXED_POINT_TRUE=
6999  FIXED_POINT_FALSE='#'
7000else
7001  FIXED_POINT_TRUE='#'
7002  FIXED_POINT_FALSE=
7003fi
7004
7005
7006# Check whether --enable-fixed16 was given.
7007if test "${enable_fixed16+set}" = set; then :
7008  enableval=$enable_fixed16;
7009if test x$enableval = xyes; then
7010
7011$as_echo "#define FIXED_POINT /**/" >>confdefs.h
7012
7013
7014$as_echo "#define FIXED16 /**/" >>confdefs.h
7015
7016fi
7017fi
7018
7019
7020# Check whether --enable-debug was given.
7021if test "${enable_debug+set}" = set; then :
7022  enableval=$enable_debug;
7023$as_echo "#define SPHINX_DEBUG /**/" >>confdefs.h
7024
7025fi
7026
7027
7028case $host in
7029	*-*-linux*|*-*-uclinux*|*-*-freebsd*|*-*-netbsd*|*-*-openbsd*)
7030		# Check for PulseAudio, JACK, then fallback ALSA, then fall back to OSS
7031		ac_fn_c_check_header_mongrel "$LINENO" "pulse/pulseaudio.h" "ac_cv_header_pulse_pulseaudio_h" "$ac_includes_default"
7032if test "x$ac_cv_header_pulse_pulseaudio_h" = x""yes; then :
7033
7034
7035$as_echo "#define AD_BACKEND_PULSEAUDIO /**/" >>confdefs.h
7036
7037			ad_files="ad_pulse.lo"
7038			ad_backend="AD_BACKEND_PULSEAUDIO"
7039			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_simple_new in -lpulse-simple" >&5
7040$as_echo_n "checking for pa_simple_new in -lpulse-simple... " >&6; }
7041if test "${ac_cv_lib_pulse_simple_pa_simple_new+set}" = set; then :
7042  $as_echo_n "(cached) " >&6
7043else
7044  ac_check_lib_save_LIBS=$LIBS
7045LIBS="-lpulse-simple  $LIBS"
7046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047/* end confdefs.h.  */
7048
7049/* Override any GCC internal prototype to avoid an error.
7050   Use char because int might match the return type of a GCC
7051   builtin and then its argument prototype would still apply.  */
7052#ifdef __cplusplus
7053extern "C"
7054#endif
7055char pa_simple_new ();
7056int
7057main ()
7058{
7059return pa_simple_new ();
7060  ;
7061  return 0;
7062}
7063_ACEOF
7064if ac_fn_c_try_link "$LINENO"; then :
7065  ac_cv_lib_pulse_simple_pa_simple_new=yes
7066else
7067  ac_cv_lib_pulse_simple_pa_simple_new=no
7068fi
7069rm -f core conftest.err conftest.$ac_objext \
7070    conftest$ac_exeext conftest.$ac_ext
7071LIBS=$ac_check_lib_save_LIBS
7072fi
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pulse_simple_pa_simple_new" >&5
7074$as_echo "$ac_cv_lib_pulse_simple_pa_simple_new" >&6; }
7075if test "x$ac_cv_lib_pulse_simple_pa_simple_new" = x""yes; then :
7076  cat >>confdefs.h <<_ACEOF
7077#define HAVE_LIBPULSE_SIMPLE 1
7078_ACEOF
7079
7080  LIBS="-lpulse-simple $LIBS"
7081
7082fi
7083
7084			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_strerror in -lpulse" >&5
7085$as_echo_n "checking for pa_strerror in -lpulse... " >&6; }
7086if test "${ac_cv_lib_pulse_pa_strerror+set}" = set; then :
7087  $as_echo_n "(cached) " >&6
7088else
7089  ac_check_lib_save_LIBS=$LIBS
7090LIBS="-lpulse  $LIBS"
7091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092/* end confdefs.h.  */
7093
7094/* Override any GCC internal prototype to avoid an error.
7095   Use char because int might match the return type of a GCC
7096   builtin and then its argument prototype would still apply.  */
7097#ifdef __cplusplus
7098extern "C"
7099#endif
7100char pa_strerror ();
7101int
7102main ()
7103{
7104return pa_strerror ();
7105  ;
7106  return 0;
7107}
7108_ACEOF
7109if ac_fn_c_try_link "$LINENO"; then :
7110  ac_cv_lib_pulse_pa_strerror=yes
7111else
7112  ac_cv_lib_pulse_pa_strerror=no
7113fi
7114rm -f core conftest.err conftest.$ac_objext \
7115    conftest$ac_exeext conftest.$ac_ext
7116LIBS=$ac_check_lib_save_LIBS
7117fi
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pulse_pa_strerror" >&5
7119$as_echo "$ac_cv_lib_pulse_pa_strerror" >&6; }
7120if test "x$ac_cv_lib_pulse_pa_strerror" = x""yes; then :
7121  cat >>confdefs.h <<_ACEOF
7122#define HAVE_LIBPULSE 1
7123_ACEOF
7124
7125  LIBS="-lpulse $LIBS"
7126
7127fi
7128
7129
7130else
7131
7132                ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
7133if test "x$ac_cv_header_jack_jack_h" = x""yes; then :
7134
7135
7136$as_echo "#define AD_BACKEND_JACK /**/" >>confdefs.h
7137
7138                        ad_files="ad_jack.lo"
7139                        ad_backend="AD_BACKEND_JACK"
7140                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack_connect in -ljack" >&5
7141$as_echo_n "checking for jack_connect in -ljack... " >&6; }
7142if test "${ac_cv_lib_jack_jack_connect+set}" = set; then :
7143  $as_echo_n "(cached) " >&6
7144else
7145  ac_check_lib_save_LIBS=$LIBS
7146LIBS="-ljack  $LIBS"
7147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148/* end confdefs.h.  */
7149
7150/* Override any GCC internal prototype to avoid an error.
7151   Use char because int might match the return type of a GCC
7152   builtin and then its argument prototype would still apply.  */
7153#ifdef __cplusplus
7154extern "C"
7155#endif
7156char jack_connect ();
7157int
7158main ()
7159{
7160return jack_connect ();
7161  ;
7162  return 0;
7163}
7164_ACEOF
7165if ac_fn_c_try_link "$LINENO"; then :
7166  ac_cv_lib_jack_jack_connect=yes
7167else
7168  ac_cv_lib_jack_jack_connect=no
7169fi
7170rm -f core conftest.err conftest.$ac_objext \
7171    conftest$ac_exeext conftest.$ac_ext
7172LIBS=$ac_check_lib_save_LIBS
7173fi
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jack_jack_connect" >&5
7175$as_echo "$ac_cv_lib_jack_jack_connect" >&6; }
7176if test "x$ac_cv_lib_jack_jack_connect" = x""yes; then :
7177  cat >>confdefs.h <<_ACEOF
7178#define HAVE_LIBJACK 1
7179_ACEOF
7180
7181  LIBS="-ljack $LIBS"
7182
7183fi
7184
7185else
7186
7187		ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
7188if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
7189
7190
7191$as_echo "#define AD_BACKEND_ALSA /**/" >>confdefs.h
7192
7193			ad_files="ad_alsa.lo"
7194			ad_backend="AD_BACKEND_ALSA"
7195			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
7196$as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
7197if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then :
7198  $as_echo_n "(cached) " >&6
7199else
7200  ac_check_lib_save_LIBS=$LIBS
7201LIBS="-lasound  $LIBS"
7202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203/* end confdefs.h.  */
7204
7205/* Override any GCC internal prototype to avoid an error.
7206   Use char because int might match the return type of a GCC
7207   builtin and then its argument prototype would still apply.  */
7208#ifdef __cplusplus
7209extern "C"
7210#endif
7211char snd_pcm_open ();
7212int
7213main ()
7214{
7215return snd_pcm_open ();
7216  ;
7217  return 0;
7218}
7219_ACEOF
7220if ac_fn_c_try_link "$LINENO"; then :
7221  ac_cv_lib_asound_snd_pcm_open=yes
7222else
7223  ac_cv_lib_asound_snd_pcm_open=no
7224fi
7225rm -f core conftest.err conftest.$ac_objext \
7226    conftest$ac_exeext conftest.$ac_ext
7227LIBS=$ac_check_lib_save_LIBS
7228fi
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
7230$as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
7231if test "x$ac_cv_lib_asound_snd_pcm_open" = x""yes; then :
7232  cat >>confdefs.h <<_ACEOF
7233#define HAVE_LIBASOUND 1
7234_ACEOF
7235
7236  LIBS="-lasound $LIBS"
7237
7238fi
7239
7240else
7241
7242
7243$as_echo "#define AD_BACKEND_OSS /**/" >>confdefs.h
7244
7245			ad_files="ad_oss.lo"
7246			ad_backend="AD_BACKEND_OSS"
7247
7248fi
7249
7250
7251
7252fi
7253
7254
7255
7256fi
7257
7258
7259		;;
7260	*-*-*cygwin*|*-*-*mingw*)
7261		ad_files="play_win32.lo rec_win32.lo"
7262		ad_libs="-lwinmm"
7263		ad_backend="AD_BACKEND_WIN32"
7264
7265$as_echo "#define AD_BACKEND_WIN32 /**/" >>confdefs.h
7266
7267		;;
7268	*)
7269		ad_files="ad_base.lo"
7270		ad_backend="AD_BACKEND_NONE"
7271		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: No audio interface for host type $host." >&5
7272$as_echo "No audio interface for host type $host." >&6; }
7273
7274$as_echo "#define AD_BACKEND_NONE /**/" >>confdefs.h
7275
7276		;;
7277esac
7278
7279
7280
7281
7282
7283case `pwd` in
7284  *\ * | *\	*)
7285    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7286$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7287esac
7288
7289
7290
7291macro_version='2.2.6b'
7292macro_revision='1.3017'
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306ltmain="$ac_aux_dir/ltmain.sh"
7307
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7309$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7310if test "${ac_cv_path_SED+set}" = set; then :
7311  $as_echo_n "(cached) " >&6
7312else
7313            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7314     for ac_i in 1 2 3 4 5 6 7; do
7315       ac_script="$ac_script$as_nl$ac_script"
7316     done
7317     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7318     { ac_script=; unset ac_script;}
7319     if test -z "$SED"; then
7320  ac_path_SED_found=false
7321  # Loop through the user's path and test for each of PROGNAME-LIST
7322  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323for as_dir in $PATH
7324do
7325  IFS=$as_save_IFS
7326  test -z "$as_dir" && as_dir=.
7327    for ac_prog in sed gsed; do
7328    for ac_exec_ext in '' $ac_executable_extensions; do
7329      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7330      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7331# Check for GNU ac_path_SED and select it if it is found.
7332  # Check for GNU $ac_path_SED
7333case `"$ac_path_SED" --version 2>&1` in
7334*GNU*)
7335  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7336*)
7337  ac_count=0
7338  $as_echo_n 0123456789 >"conftest.in"
7339  while :
7340  do
7341    cat "conftest.in" "conftest.in" >"conftest.tmp"
7342    mv "conftest.tmp" "conftest.in"
7343    cp "conftest.in" "conftest.nl"
7344    $as_echo '' >> "conftest.nl"
7345    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7346    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7347    as_fn_arith $ac_count + 1 && ac_count=$as_val
7348    if test $ac_count -gt ${ac_path_SED_max-0}; then
7349      # Best one so far, save it but keep looking for a better one
7350      ac_cv_path_SED="$ac_path_SED"
7351      ac_path_SED_max=$ac_count
7352    fi
7353    # 10*(2^10) chars as input seems more than enough
7354    test $ac_count -gt 10 && break
7355  done
7356  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7357esac
7358
7359      $ac_path_SED_found && break 3
7360    done
7361  done
7362  done
7363IFS=$as_save_IFS
7364  if test -z "$ac_cv_path_SED"; then
7365    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7366  fi
7367else
7368  ac_cv_path_SED=$SED
7369fi
7370
7371fi
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7373$as_echo "$ac_cv_path_SED" >&6; }
7374 SED="$ac_cv_path_SED"
7375  rm -f conftest.sed
7376
7377test -z "$SED" && SED=sed
7378Xsed="$SED -e 1s/^X//"
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7391$as_echo_n "checking for fgrep... " >&6; }
7392if test "${ac_cv_path_FGREP+set}" = set; then :
7393  $as_echo_n "(cached) " >&6
7394else
7395  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7396   then ac_cv_path_FGREP="$GREP -F"
7397   else
7398     if test -z "$FGREP"; then
7399  ac_path_FGREP_found=false
7400  # Loop through the user's path and test for each of PROGNAME-LIST
7401  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7403do
7404  IFS=$as_save_IFS
7405  test -z "$as_dir" && as_dir=.
7406    for ac_prog in fgrep; do
7407    for ac_exec_ext in '' $ac_executable_extensions; do
7408      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7409      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7410# Check for GNU ac_path_FGREP and select it if it is found.
7411  # Check for GNU $ac_path_FGREP
7412case `"$ac_path_FGREP" --version 2>&1` in
7413*GNU*)
7414  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7415*)
7416  ac_count=0
7417  $as_echo_n 0123456789 >"conftest.in"
7418  while :
7419  do
7420    cat "conftest.in" "conftest.in" >"conftest.tmp"
7421    mv "conftest.tmp" "conftest.in"
7422    cp "conftest.in" "conftest.nl"
7423    $as_echo 'FGREP' >> "conftest.nl"
7424    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7425    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7426    as_fn_arith $ac_count + 1 && ac_count=$as_val
7427    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7428      # Best one so far, save it but keep looking for a better one
7429      ac_cv_path_FGREP="$ac_path_FGREP"
7430      ac_path_FGREP_max=$ac_count
7431    fi
7432    # 10*(2^10) chars as input seems more than enough
7433    test $ac_count -gt 10 && break
7434  done
7435  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7436esac
7437
7438      $ac_path_FGREP_found && break 3
7439    done
7440  done
7441  done
7442IFS=$as_save_IFS
7443  if test -z "$ac_cv_path_FGREP"; then
7444    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7445  fi
7446else
7447  ac_cv_path_FGREP=$FGREP
7448fi
7449
7450   fi
7451fi
7452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7453$as_echo "$ac_cv_path_FGREP" >&6; }
7454 FGREP="$ac_cv_path_FGREP"
7455
7456
7457test -z "$GREP" && GREP=grep
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477# Check whether --with-gnu-ld was given.
7478if test "${with_gnu_ld+set}" = set; then :
7479  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7480else
7481  with_gnu_ld=no
7482fi
7483
7484ac_prog=ld
7485if test "$GCC" = yes; then
7486  # Check if gcc -print-prog-name=ld gives a path.
7487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7488$as_echo_n "checking for ld used by $CC... " >&6; }
7489  case $host in
7490  *-*-mingw*)
7491    # gcc leaves a trailing carriage return which upsets mingw
7492    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7493  *)
7494    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7495  esac
7496  case $ac_prog in
7497    # Accept absolute paths.
7498    [\\/]* | ?:[\\/]*)
7499      re_direlt='/[^/][^/]*/\.\./'
7500      # Canonicalize the pathname of ld
7501      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7502      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7503	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7504      done
7505      test -z "$LD" && LD="$ac_prog"
7506      ;;
7507  "")
7508    # If it fails, then pretend we aren't using GCC.
7509    ac_prog=ld
7510    ;;
7511  *)
7512    # If it is relative, then search for the first ld in PATH.
7513    with_gnu_ld=unknown
7514    ;;
7515  esac
7516elif test "$with_gnu_ld" = yes; then
7517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7518$as_echo_n "checking for GNU ld... " >&6; }
7519else
7520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7521$as_echo_n "checking for non-GNU ld... " >&6; }
7522fi
7523if test "${lt_cv_path_LD+set}" = set; then :
7524  $as_echo_n "(cached) " >&6
7525else
7526  if test -z "$LD"; then
7527  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7528  for ac_dir in $PATH; do
7529    IFS="$lt_save_ifs"
7530    test -z "$ac_dir" && ac_dir=.
7531    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7532      lt_cv_path_LD="$ac_dir/$ac_prog"
7533      # Check to see if the program is GNU ld.  I'd rather use --version,
7534      # but apparently some variants of GNU ld only accept -v.
7535      # Break only if it was the GNU/non-GNU ld that we prefer.
7536      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7537      *GNU* | *'with BFD'*)
7538	test "$with_gnu_ld" != no && break
7539	;;
7540      *)
7541	test "$with_gnu_ld" != yes && break
7542	;;
7543      esac
7544    fi
7545  done
7546  IFS="$lt_save_ifs"
7547else
7548  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7549fi
7550fi
7551
7552LD="$lt_cv_path_LD"
7553if test -n "$LD"; then
7554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7555$as_echo "$LD" >&6; }
7556else
7557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558$as_echo "no" >&6; }
7559fi
7560test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7562$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7563if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7564  $as_echo_n "(cached) " >&6
7565else
7566  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7567case `$LD -v 2>&1 </dev/null` in
7568*GNU* | *'with BFD'*)
7569  lt_cv_prog_gnu_ld=yes
7570  ;;
7571*)
7572  lt_cv_prog_gnu_ld=no
7573  ;;
7574esac
7575fi
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7577$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7578with_gnu_ld=$lt_cv_prog_gnu_ld
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7589$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7590if test "${lt_cv_path_NM+set}" = set; then :
7591  $as_echo_n "(cached) " >&6
7592else
7593  if test -n "$NM"; then
7594  # Let the user override the test.
7595  lt_cv_path_NM="$NM"
7596else
7597  lt_nm_to_check="${ac_tool_prefix}nm"
7598  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7599    lt_nm_to_check="$lt_nm_to_check nm"
7600  fi
7601  for lt_tmp_nm in $lt_nm_to_check; do
7602    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7603    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7604      IFS="$lt_save_ifs"
7605      test -z "$ac_dir" && ac_dir=.
7606      tmp_nm="$ac_dir/$lt_tmp_nm"
7607      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7608	# Check to see if the nm accepts a BSD-compat flag.
7609	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7610	#   nm: unknown option "B" ignored
7611	# Tru64's nm complains that /dev/null is an invalid object file
7612	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7613	*/dev/null* | *'Invalid file or object type'*)
7614	  lt_cv_path_NM="$tmp_nm -B"
7615	  break
7616	  ;;
7617	*)
7618	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7619	  */dev/null*)
7620	    lt_cv_path_NM="$tmp_nm -p"
7621	    break
7622	    ;;
7623	  *)
7624	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7625	    continue # so that we can try to find one that supports BSD flags
7626	    ;;
7627	  esac
7628	  ;;
7629	esac
7630      fi
7631    done
7632    IFS="$lt_save_ifs"
7633  done
7634  : ${lt_cv_path_NM=no}
7635fi
7636fi
7637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7638$as_echo "$lt_cv_path_NM" >&6; }
7639if test "$lt_cv_path_NM" != "no"; then
7640  NM="$lt_cv_path_NM"
7641else
7642  # Didn't find any BSD compatible name lister, look for dumpbin.
7643  if test -n "$ac_tool_prefix"; then
7644  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7645  do
7646    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7647set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649$as_echo_n "checking for $ac_word... " >&6; }
7650if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7651  $as_echo_n "(cached) " >&6
7652else
7653  if test -n "$DUMPBIN"; then
7654  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7655else
7656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657for as_dir in $PATH
7658do
7659  IFS=$as_save_IFS
7660  test -z "$as_dir" && as_dir=.
7661    for ac_exec_ext in '' $ac_executable_extensions; do
7662  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7663    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7664    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665    break 2
7666  fi
7667done
7668  done
7669IFS=$as_save_IFS
7670
7671fi
7672fi
7673DUMPBIN=$ac_cv_prog_DUMPBIN
7674if test -n "$DUMPBIN"; then
7675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7676$as_echo "$DUMPBIN" >&6; }
7677else
7678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679$as_echo "no" >&6; }
7680fi
7681
7682
7683    test -n "$DUMPBIN" && break
7684  done
7685fi
7686if test -z "$DUMPBIN"; then
7687  ac_ct_DUMPBIN=$DUMPBIN
7688  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7689do
7690  # Extract the first word of "$ac_prog", so it can be a program name with args.
7691set dummy $ac_prog; ac_word=$2
7692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693$as_echo_n "checking for $ac_word... " >&6; }
7694if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7695  $as_echo_n "(cached) " >&6
7696else
7697  if test -n "$ac_ct_DUMPBIN"; then
7698  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7699else
7700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701for as_dir in $PATH
7702do
7703  IFS=$as_save_IFS
7704  test -z "$as_dir" && as_dir=.
7705    for ac_exec_ext in '' $ac_executable_extensions; do
7706  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7707    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709    break 2
7710  fi
7711done
7712  done
7713IFS=$as_save_IFS
7714
7715fi
7716fi
7717ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7718if test -n "$ac_ct_DUMPBIN"; then
7719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7720$as_echo "$ac_ct_DUMPBIN" >&6; }
7721else
7722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723$as_echo "no" >&6; }
7724fi
7725
7726
7727  test -n "$ac_ct_DUMPBIN" && break
7728done
7729
7730  if test "x$ac_ct_DUMPBIN" = x; then
7731    DUMPBIN=":"
7732  else
7733    case $cross_compiling:$ac_tool_warned in
7734yes:)
7735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7737ac_tool_warned=yes ;;
7738esac
7739    DUMPBIN=$ac_ct_DUMPBIN
7740  fi
7741fi
7742
7743
7744  if test "$DUMPBIN" != ":"; then
7745    NM="$DUMPBIN"
7746  fi
7747fi
7748test -z "$NM" && NM=nm
7749
7750
7751
7752
7753
7754
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7756$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7757if test "${lt_cv_nm_interface+set}" = set; then :
7758  $as_echo_n "(cached) " >&6
7759else
7760  lt_cv_nm_interface="BSD nm"
7761  echo "int some_variable = 0;" > conftest.$ac_ext
7762  (eval echo "\"\$as_me:7762: $ac_compile\"" >&5)
7763  (eval "$ac_compile" 2>conftest.err)
7764  cat conftest.err >&5
7765  (eval echo "\"\$as_me:7765: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7766  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7767  cat conftest.err >&5
7768  (eval echo "\"\$as_me:7768: output\"" >&5)
7769  cat conftest.out >&5
7770  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7771    lt_cv_nm_interface="MS dumpbin"
7772  fi
7773  rm -f conftest*
7774fi
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7776$as_echo "$lt_cv_nm_interface" >&6; }
7777
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7779$as_echo_n "checking whether ln -s works... " >&6; }
7780LN_S=$as_ln_s
7781if test "$LN_S" = "ln -s"; then
7782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7783$as_echo "yes" >&6; }
7784else
7785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7786$as_echo "no, using $LN_S" >&6; }
7787fi
7788
7789# find the maximum length of command line arguments
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7791$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7792if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7793  $as_echo_n "(cached) " >&6
7794else
7795    i=0
7796  teststring="ABCD"
7797
7798  case $build_os in
7799  msdosdjgpp*)
7800    # On DJGPP, this test can blow up pretty badly due to problems in libc
7801    # (any single argument exceeding 2000 bytes causes a buffer overrun
7802    # during glob expansion).  Even if it were fixed, the result of this
7803    # check would be larger than it should be.
7804    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7805    ;;
7806
7807  gnu*)
7808    # Under GNU Hurd, this test is not required because there is
7809    # no limit to the length of command line arguments.
7810    # Libtool will interpret -1 as no limit whatsoever
7811    lt_cv_sys_max_cmd_len=-1;
7812    ;;
7813
7814  cygwin* | mingw* | cegcc*)
7815    # On Win9x/ME, this test blows up -- it succeeds, but takes
7816    # about 5 minutes as the teststring grows exponentially.
7817    # Worse, since 9x/ME are not pre-emptively multitasking,
7818    # you end up with a "frozen" computer, even though with patience
7819    # the test eventually succeeds (with a max line length of 256k).
7820    # Instead, let's just punt: use the minimum linelength reported by
7821    # all of the supported platforms: 8192 (on NT/2K/XP).
7822    lt_cv_sys_max_cmd_len=8192;
7823    ;;
7824
7825  amigaos*)
7826    # On AmigaOS with pdksh, this test takes hours, literally.
7827    # So we just punt and use a minimum line length of 8192.
7828    lt_cv_sys_max_cmd_len=8192;
7829    ;;
7830
7831  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7832    # This has been around since 386BSD, at least.  Likely further.
7833    if test -x /sbin/sysctl; then
7834      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7835    elif test -x /usr/sbin/sysctl; then
7836      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7837    else
7838      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7839    fi
7840    # And add a safety zone
7841    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7842    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7843    ;;
7844
7845  interix*)
7846    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7847    lt_cv_sys_max_cmd_len=196608
7848    ;;
7849
7850  osf*)
7851    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7852    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7853    # nice to cause kernel panics so lets avoid the loop below.
7854    # First set a reasonable default.
7855    lt_cv_sys_max_cmd_len=16384
7856    #
7857    if test -x /sbin/sysconfig; then
7858      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7859        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7860      esac
7861    fi
7862    ;;
7863  sco3.2v5*)
7864    lt_cv_sys_max_cmd_len=102400
7865    ;;
7866  sysv5* | sco5v6* | sysv4.2uw2*)
7867    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7868    if test -n "$kargmax"; then
7869      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7870    else
7871      lt_cv_sys_max_cmd_len=32768
7872    fi
7873    ;;
7874  *)
7875    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7876    if test -n "$lt_cv_sys_max_cmd_len"; then
7877      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7878      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7879    else
7880      # Make teststring a little bigger before we do anything with it.
7881      # a 1K string should be a reasonable start.
7882      for i in 1 2 3 4 5 6 7 8 ; do
7883        teststring=$teststring$teststring
7884      done
7885      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7886      # If test is not a shell built-in, we'll probably end up computing a
7887      # maximum length that is only half of the actual maximum length, but
7888      # we can't tell.
7889      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7890	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7891	      test $i != 17 # 1/2 MB should be enough
7892      do
7893        i=`expr $i + 1`
7894        teststring=$teststring$teststring
7895      done
7896      # Only check the string length outside the loop.
7897      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7898      teststring=
7899      # Add a significant safety factor because C++ compilers can tack on
7900      # massive amounts of additional arguments before passing them to the
7901      # linker.  It appears as though 1/2 is a usable value.
7902      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7903    fi
7904    ;;
7905  esac
7906
7907fi
7908
7909if test -n $lt_cv_sys_max_cmd_len ; then
7910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7911$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7912else
7913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7914$as_echo "none" >&6; }
7915fi
7916max_cmd_len=$lt_cv_sys_max_cmd_len
7917
7918
7919
7920
7921
7922
7923: ${CP="cp -f"}
7924: ${MV="mv -f"}
7925: ${RM="rm -f"}
7926
7927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7928$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7929# Try some XSI features
7930xsi_shell=no
7931( _lt_dummy="a/b/c"
7932  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7933      = c,a/b,, \
7934    && eval 'test $(( 1 + 1 )) -eq 2 \
7935    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7936  && xsi_shell=yes
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7938$as_echo "$xsi_shell" >&6; }
7939
7940
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7942$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7943lt_shell_append=no
7944( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7945    >/dev/null 2>&1 \
7946  && lt_shell_append=yes
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7948$as_echo "$lt_shell_append" >&6; }
7949
7950
7951if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7952  lt_unset=unset
7953else
7954  lt_unset=false
7955fi
7956
7957
7958
7959
7960
7961# test EBCDIC or ASCII
7962case `echo X|tr X '\101'` in
7963 A) # ASCII based system
7964    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7965  lt_SP2NL='tr \040 \012'
7966  lt_NL2SP='tr \015\012 \040\040'
7967  ;;
7968 *) # EBCDIC based system
7969  lt_SP2NL='tr \100 \n'
7970  lt_NL2SP='tr \r\n \100\100'
7971  ;;
7972esac
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7983$as_echo_n "checking for $LD option to reload object files... " >&6; }
7984if test "${lt_cv_ld_reload_flag+set}" = set; then :
7985  $as_echo_n "(cached) " >&6
7986else
7987  lt_cv_ld_reload_flag='-r'
7988fi
7989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7990$as_echo "$lt_cv_ld_reload_flag" >&6; }
7991reload_flag=$lt_cv_ld_reload_flag
7992case $reload_flag in
7993"" | " "*) ;;
7994*) reload_flag=" $reload_flag" ;;
7995esac
7996reload_cmds='$LD$reload_flag -o $output$reload_objs'
7997case $host_os in
7998  darwin*)
7999    if test "$GCC" = yes; then
8000      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8001    else
8002      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8003    fi
8004    ;;
8005esac
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015if test -n "$ac_tool_prefix"; then
8016  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8017set dummy ${ac_tool_prefix}objdump; ac_word=$2
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019$as_echo_n "checking for $ac_word... " >&6; }
8020if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8021  $as_echo_n "(cached) " >&6
8022else
8023  if test -n "$OBJDUMP"; then
8024  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8025else
8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029  IFS=$as_save_IFS
8030  test -z "$as_dir" && as_dir=.
8031    for ac_exec_ext in '' $ac_executable_extensions; do
8032  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8033    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035    break 2
8036  fi
8037done
8038  done
8039IFS=$as_save_IFS
8040
8041fi
8042fi
8043OBJDUMP=$ac_cv_prog_OBJDUMP
8044if test -n "$OBJDUMP"; then
8045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8046$as_echo "$OBJDUMP" >&6; }
8047else
8048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
8050fi
8051
8052
8053fi
8054if test -z "$ac_cv_prog_OBJDUMP"; then
8055  ac_ct_OBJDUMP=$OBJDUMP
8056  # Extract the first word of "objdump", so it can be a program name with args.
8057set dummy objdump; ac_word=$2
8058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059$as_echo_n "checking for $ac_word... " >&6; }
8060if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8061  $as_echo_n "(cached) " >&6
8062else
8063  if test -n "$ac_ct_OBJDUMP"; then
8064  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8065else
8066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069  IFS=$as_save_IFS
8070  test -z "$as_dir" && as_dir=.
8071    for ac_exec_ext in '' $ac_executable_extensions; do
8072  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8073    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075    break 2
8076  fi
8077done
8078  done
8079IFS=$as_save_IFS
8080
8081fi
8082fi
8083ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8084if test -n "$ac_ct_OBJDUMP"; then
8085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8086$as_echo "$ac_ct_OBJDUMP" >&6; }
8087else
8088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089$as_echo "no" >&6; }
8090fi
8091
8092  if test "x$ac_ct_OBJDUMP" = x; then
8093    OBJDUMP="false"
8094  else
8095    case $cross_compiling:$ac_tool_warned in
8096yes:)
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8099ac_tool_warned=yes ;;
8100esac
8101    OBJDUMP=$ac_ct_OBJDUMP
8102  fi
8103else
8104  OBJDUMP="$ac_cv_prog_OBJDUMP"
8105fi
8106
8107test -z "$OBJDUMP" && OBJDUMP=objdump
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8118$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8119if test "${lt_cv_deplibs_check_method+set}" = set; then :
8120  $as_echo_n "(cached) " >&6
8121else
8122  lt_cv_file_magic_cmd='$MAGIC_CMD'
8123lt_cv_file_magic_test_file=
8124lt_cv_deplibs_check_method='unknown'
8125# Need to set the preceding variable on all platforms that support
8126# interlibrary dependencies.
8127# 'none' -- dependencies not supported.
8128# `unknown' -- same as none, but documents that we really don't know.
8129# 'pass_all' -- all dependencies passed with no checks.
8130# 'test_compile' -- check by making test program.
8131# 'file_magic [[regex]]' -- check by looking for files in library path
8132# which responds to the $file_magic_cmd with a given extended regex.
8133# If you have `file' or equivalent on your system and you're not sure
8134# whether `pass_all' will *always* work, you probably want this one.
8135
8136case $host_os in
8137aix[4-9]*)
8138  lt_cv_deplibs_check_method=pass_all
8139  ;;
8140
8141beos*)
8142  lt_cv_deplibs_check_method=pass_all
8143  ;;
8144
8145bsdi[45]*)
8146  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8147  lt_cv_file_magic_cmd='/usr/bin/file -L'
8148  lt_cv_file_magic_test_file=/shlib/libc.so
8149  ;;
8150
8151cygwin*)
8152  # func_win32_libid is a shell function defined in ltmain.sh
8153  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8154  lt_cv_file_magic_cmd='func_win32_libid'
8155  ;;
8156
8157mingw* | pw32*)
8158  # Base MSYS/MinGW do not provide the 'file' command needed by
8159  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8160  # unless we find 'file', for example because we are cross-compiling.
8161  if ( file / ) >/dev/null 2>&1; then
8162    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8163    lt_cv_file_magic_cmd='func_win32_libid'
8164  else
8165    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8166    lt_cv_file_magic_cmd='$OBJDUMP -f'
8167  fi
8168  ;;
8169
8170cegcc)
8171  # use the weaker test based on 'objdump'. See mingw*.
8172  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8173  lt_cv_file_magic_cmd='$OBJDUMP -f'
8174  ;;
8175
8176darwin* | rhapsody*)
8177  lt_cv_deplibs_check_method=pass_all
8178  ;;
8179
8180freebsd* | dragonfly*)
8181  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8182    case $host_cpu in
8183    i*86 )
8184      # Not sure whether the presence of OpenBSD here was a mistake.
8185      # Let's accept both of them until this is cleared up.
8186      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8187      lt_cv_file_magic_cmd=/usr/bin/file
8188      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8189      ;;
8190    esac
8191  else
8192    lt_cv_deplibs_check_method=pass_all
8193  fi
8194  ;;
8195
8196gnu*)
8197  lt_cv_deplibs_check_method=pass_all
8198  ;;
8199
8200hpux10.20* | hpux11*)
8201  lt_cv_file_magic_cmd=/usr/bin/file
8202  case $host_cpu in
8203  ia64*)
8204    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8205    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8206    ;;
8207  hppa*64*)
8208    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]'
8209    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8210    ;;
8211  *)
8212    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8213    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8214    ;;
8215  esac
8216  ;;
8217
8218interix[3-9]*)
8219  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8220  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8221  ;;
8222
8223irix5* | irix6* | nonstopux*)
8224  case $LD in
8225  *-32|*"-32 ") libmagic=32-bit;;
8226  *-n32|*"-n32 ") libmagic=N32;;
8227  *-64|*"-64 ") libmagic=64-bit;;
8228  *) libmagic=never-match;;
8229  esac
8230  lt_cv_deplibs_check_method=pass_all
8231  ;;
8232
8233# This must be Linux ELF.
8234linux* | k*bsd*-gnu)
8235  lt_cv_deplibs_check_method=pass_all
8236  ;;
8237
8238netbsd*)
8239  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8240    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8241  else
8242    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8243  fi
8244  ;;
8245
8246newos6*)
8247  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8248  lt_cv_file_magic_cmd=/usr/bin/file
8249  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8250  ;;
8251
8252*nto* | *qnx*)
8253  lt_cv_deplibs_check_method=pass_all
8254  ;;
8255
8256openbsd*)
8257  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8258    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8259  else
8260    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8261  fi
8262  ;;
8263
8264osf3* | osf4* | osf5*)
8265  lt_cv_deplibs_check_method=pass_all
8266  ;;
8267
8268rdos*)
8269  lt_cv_deplibs_check_method=pass_all
8270  ;;
8271
8272solaris*)
8273  lt_cv_deplibs_check_method=pass_all
8274  ;;
8275
8276sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8277  lt_cv_deplibs_check_method=pass_all
8278  ;;
8279
8280sysv4 | sysv4.3*)
8281  case $host_vendor in
8282  motorola)
8283    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]'
8284    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8285    ;;
8286  ncr)
8287    lt_cv_deplibs_check_method=pass_all
8288    ;;
8289  sequent)
8290    lt_cv_file_magic_cmd='/bin/file'
8291    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8292    ;;
8293  sni)
8294    lt_cv_file_magic_cmd='/bin/file'
8295    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8296    lt_cv_file_magic_test_file=/lib/libc.so
8297    ;;
8298  siemens)
8299    lt_cv_deplibs_check_method=pass_all
8300    ;;
8301  pc)
8302    lt_cv_deplibs_check_method=pass_all
8303    ;;
8304  esac
8305  ;;
8306
8307tpf*)
8308  lt_cv_deplibs_check_method=pass_all
8309  ;;
8310esac
8311
8312fi
8313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8314$as_echo "$lt_cv_deplibs_check_method" >&6; }
8315file_magic_cmd=$lt_cv_file_magic_cmd
8316deplibs_check_method=$lt_cv_deplibs_check_method
8317test -z "$deplibs_check_method" && deplibs_check_method=unknown
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330if test -n "$ac_tool_prefix"; then
8331  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8332set dummy ${ac_tool_prefix}ar; ac_word=$2
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334$as_echo_n "checking for $ac_word... " >&6; }
8335if test "${ac_cv_prog_AR+set}" = set; then :
8336  $as_echo_n "(cached) " >&6
8337else
8338  if test -n "$AR"; then
8339  ac_cv_prog_AR="$AR" # Let the user override the test.
8340else
8341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342for as_dir in $PATH
8343do
8344  IFS=$as_save_IFS
8345  test -z "$as_dir" && as_dir=.
8346    for ac_exec_ext in '' $ac_executable_extensions; do
8347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348    ac_cv_prog_AR="${ac_tool_prefix}ar"
8349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350    break 2
8351  fi
8352done
8353  done
8354IFS=$as_save_IFS
8355
8356fi
8357fi
8358AR=$ac_cv_prog_AR
8359if test -n "$AR"; then
8360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8361$as_echo "$AR" >&6; }
8362else
8363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364$as_echo "no" >&6; }
8365fi
8366
8367
8368fi
8369if test -z "$ac_cv_prog_AR"; then
8370  ac_ct_AR=$AR
8371  # Extract the first word of "ar", so it can be a program name with args.
8372set dummy ar; ac_word=$2
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374$as_echo_n "checking for $ac_word... " >&6; }
8375if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8376  $as_echo_n "(cached) " >&6
8377else
8378  if test -n "$ac_ct_AR"; then
8379  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8380else
8381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382for as_dir in $PATH
8383do
8384  IFS=$as_save_IFS
8385  test -z "$as_dir" && as_dir=.
8386    for ac_exec_ext in '' $ac_executable_extensions; do
8387  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8388    ac_cv_prog_ac_ct_AR="ar"
8389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8390    break 2
8391  fi
8392done
8393  done
8394IFS=$as_save_IFS
8395
8396fi
8397fi
8398ac_ct_AR=$ac_cv_prog_ac_ct_AR
8399if test -n "$ac_ct_AR"; then
8400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8401$as_echo "$ac_ct_AR" >&6; }
8402else
8403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404$as_echo "no" >&6; }
8405fi
8406
8407  if test "x$ac_ct_AR" = x; then
8408    AR="false"
8409  else
8410    case $cross_compiling:$ac_tool_warned in
8411yes:)
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8414ac_tool_warned=yes ;;
8415esac
8416    AR=$ac_ct_AR
8417  fi
8418else
8419  AR="$ac_cv_prog_AR"
8420fi
8421
8422test -z "$AR" && AR=ar
8423test -z "$AR_FLAGS" && AR_FLAGS=cru
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435if test -n "$ac_tool_prefix"; then
8436  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8437set dummy ${ac_tool_prefix}strip; ac_word=$2
8438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439$as_echo_n "checking for $ac_word... " >&6; }
8440if test "${ac_cv_prog_STRIP+set}" = set; then :
8441  $as_echo_n "(cached) " >&6
8442else
8443  if test -n "$STRIP"; then
8444  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8445else
8446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447for as_dir in $PATH
8448do
8449  IFS=$as_save_IFS
8450  test -z "$as_dir" && as_dir=.
8451    for ac_exec_ext in '' $ac_executable_extensions; do
8452  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8453    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8455    break 2
8456  fi
8457done
8458  done
8459IFS=$as_save_IFS
8460
8461fi
8462fi
8463STRIP=$ac_cv_prog_STRIP
8464if test -n "$STRIP"; then
8465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8466$as_echo "$STRIP" >&6; }
8467else
8468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469$as_echo "no" >&6; }
8470fi
8471
8472
8473fi
8474if test -z "$ac_cv_prog_STRIP"; then
8475  ac_ct_STRIP=$STRIP
8476  # Extract the first word of "strip", so it can be a program name with args.
8477set dummy strip; ac_word=$2
8478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8479$as_echo_n "checking for $ac_word... " >&6; }
8480if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8481  $as_echo_n "(cached) " >&6
8482else
8483  if test -n "$ac_ct_STRIP"; then
8484  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8485else
8486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8487for as_dir in $PATH
8488do
8489  IFS=$as_save_IFS
8490  test -z "$as_dir" && as_dir=.
8491    for ac_exec_ext in '' $ac_executable_extensions; do
8492  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8493    ac_cv_prog_ac_ct_STRIP="strip"
8494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8495    break 2
8496  fi
8497done
8498  done
8499IFS=$as_save_IFS
8500
8501fi
8502fi
8503ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8504if test -n "$ac_ct_STRIP"; then
8505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8506$as_echo "$ac_ct_STRIP" >&6; }
8507else
8508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509$as_echo "no" >&6; }
8510fi
8511
8512  if test "x$ac_ct_STRIP" = x; then
8513    STRIP=":"
8514  else
8515    case $cross_compiling:$ac_tool_warned in
8516yes:)
8517{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8518$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8519ac_tool_warned=yes ;;
8520esac
8521    STRIP=$ac_ct_STRIP
8522  fi
8523else
8524  STRIP="$ac_cv_prog_STRIP"
8525fi
8526
8527test -z "$STRIP" && STRIP=:
8528
8529
8530
8531
8532
8533
8534if test -n "$ac_tool_prefix"; then
8535  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8536set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538$as_echo_n "checking for $ac_word... " >&6; }
8539if test "${ac_cv_prog_RANLIB+set}" = set; then :
8540  $as_echo_n "(cached) " >&6
8541else
8542  if test -n "$RANLIB"; then
8543  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8544else
8545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546for as_dir in $PATH
8547do
8548  IFS=$as_save_IFS
8549  test -z "$as_dir" && as_dir=.
8550    for ac_exec_ext in '' $ac_executable_extensions; do
8551  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8552    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8554    break 2
8555  fi
8556done
8557  done
8558IFS=$as_save_IFS
8559
8560fi
8561fi
8562RANLIB=$ac_cv_prog_RANLIB
8563if test -n "$RANLIB"; then
8564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8565$as_echo "$RANLIB" >&6; }
8566else
8567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568$as_echo "no" >&6; }
8569fi
8570
8571
8572fi
8573if test -z "$ac_cv_prog_RANLIB"; then
8574  ac_ct_RANLIB=$RANLIB
8575  # Extract the first word of "ranlib", so it can be a program name with args.
8576set dummy ranlib; ac_word=$2
8577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578$as_echo_n "checking for $ac_word... " >&6; }
8579if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8580  $as_echo_n "(cached) " >&6
8581else
8582  if test -n "$ac_ct_RANLIB"; then
8583  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8584else
8585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586for as_dir in $PATH
8587do
8588  IFS=$as_save_IFS
8589  test -z "$as_dir" && as_dir=.
8590    for ac_exec_ext in '' $ac_executable_extensions; do
8591  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8592    ac_cv_prog_ac_ct_RANLIB="ranlib"
8593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594    break 2
8595  fi
8596done
8597  done
8598IFS=$as_save_IFS
8599
8600fi
8601fi
8602ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8603if test -n "$ac_ct_RANLIB"; then
8604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8605$as_echo "$ac_ct_RANLIB" >&6; }
8606else
8607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608$as_echo "no" >&6; }
8609fi
8610
8611  if test "x$ac_ct_RANLIB" = x; then
8612    RANLIB=":"
8613  else
8614    case $cross_compiling:$ac_tool_warned in
8615yes:)
8616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8618ac_tool_warned=yes ;;
8619esac
8620    RANLIB=$ac_ct_RANLIB
8621  fi
8622else
8623  RANLIB="$ac_cv_prog_RANLIB"
8624fi
8625
8626test -z "$RANLIB" && RANLIB=:
8627
8628
8629
8630
8631
8632
8633# Determine commands to create old-style static archives.
8634old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8635old_postinstall_cmds='chmod 644 $oldlib'
8636old_postuninstall_cmds=
8637
8638if test -n "$RANLIB"; then
8639  case $host_os in
8640  openbsd*)
8641    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8642    ;;
8643  *)
8644    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8645    ;;
8646  esac
8647  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8648fi
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683# If no C compiler was specified, use CC.
8684LTCC=${LTCC-"$CC"}
8685
8686# If no C compiler flags were specified, use CFLAGS.
8687LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8688
8689# Allow CC to be a program name with arguments.
8690compiler=$CC
8691
8692
8693# Check for command to grab the raw symbol name followed by C symbol from nm.
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8695$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8696if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8697  $as_echo_n "(cached) " >&6
8698else
8699
8700# These are sane defaults that work on at least a few old systems.
8701# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8702
8703# Character class describing NM global symbol codes.
8704symcode='[BCDEGRST]'
8705
8706# Regexp to match symbols that can be accessed directly from C.
8707sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8708
8709# Define system-specific variables.
8710case $host_os in
8711aix*)
8712  symcode='[BCDT]'
8713  ;;
8714cygwin* | mingw* | pw32* | cegcc*)
8715  symcode='[ABCDGISTW]'
8716  ;;
8717hpux*)
8718  if test "$host_cpu" = ia64; then
8719    symcode='[ABCDEGRST]'
8720  fi
8721  ;;
8722irix* | nonstopux*)
8723  symcode='[BCDEGRST]'
8724  ;;
8725osf*)
8726  symcode='[BCDEGQRST]'
8727  ;;
8728solaris*)
8729  symcode='[BDRT]'
8730  ;;
8731sco3.2v5*)
8732  symcode='[DT]'
8733  ;;
8734sysv4.2uw2*)
8735  symcode='[DT]'
8736  ;;
8737sysv5* | sco5v6* | unixware* | OpenUNIX*)
8738  symcode='[ABDT]'
8739  ;;
8740sysv4)
8741  symcode='[DFNSTU]'
8742  ;;
8743esac
8744
8745# If we're using GNU nm, then use its standard symbol codes.
8746case `$NM -V 2>&1` in
8747*GNU* | *'with BFD'*)
8748  symcode='[ABCDGIRSTW]' ;;
8749esac
8750
8751# Transform an extracted symbol line into a proper C declaration.
8752# Some systems (esp. on ia64) link data and code symbols differently,
8753# so use this general approach.
8754lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8755
8756# Transform an extracted symbol line into symbol name and symbol address
8757lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8758lt_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'"
8759
8760# Handle CRLF in mingw tool chain
8761opt_cr=
8762case $build_os in
8763mingw*)
8764  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8765  ;;
8766esac
8767
8768# Try without a prefix underscore, then with it.
8769for ac_symprfx in "" "_"; do
8770
8771  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8772  symxfrm="\\1 $ac_symprfx\\2 \\2"
8773
8774  # Write the raw and C identifiers.
8775  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8776    # Fake it for dumpbin and say T for any non-static function
8777    # and D for any global variable.
8778    # Also find C++ and __fastcall symbols from MSVC++,
8779    # which start with @ or ?.
8780    lt_cv_sys_global_symbol_pipe="$AWK '"\
8781"     {last_section=section; section=\$ 3};"\
8782"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8783"     \$ 0!~/External *\|/{next};"\
8784"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8785"     {if(hide[section]) next};"\
8786"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8787"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8788"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8789"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8790"     ' prfx=^$ac_symprfx"
8791  else
8792    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8793  fi
8794
8795  # Check to see that the pipe works correctly.
8796  pipe_works=no
8797
8798  rm -f conftest*
8799  cat > conftest.$ac_ext <<_LT_EOF
8800#ifdef __cplusplus
8801extern "C" {
8802#endif
8803char nm_test_var;
8804void nm_test_func(void);
8805void nm_test_func(void){}
8806#ifdef __cplusplus
8807}
8808#endif
8809int main(){nm_test_var='a';nm_test_func();return(0);}
8810_LT_EOF
8811
8812  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8813  (eval $ac_compile) 2>&5
8814  ac_status=$?
8815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8816  test $ac_status = 0; }; then
8817    # Now try to grab the symbols.
8818    nlist=conftest.nm
8819    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8820  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8821  ac_status=$?
8822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8823  test $ac_status = 0; } && test -s "$nlist"; then
8824      # Try sorting and uniquifying the output.
8825      if sort "$nlist" | uniq > "$nlist"T; then
8826	mv -f "$nlist"T "$nlist"
8827      else
8828	rm -f "$nlist"T
8829      fi
8830
8831      # Make sure that we snagged all the symbols we need.
8832      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8833	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8834	  cat <<_LT_EOF > conftest.$ac_ext
8835#ifdef __cplusplus
8836extern "C" {
8837#endif
8838
8839_LT_EOF
8840	  # Now generate the symbol file.
8841	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8842
8843	  cat <<_LT_EOF >> conftest.$ac_ext
8844
8845/* The mapping between symbol names and symbols.  */
8846const struct {
8847  const char *name;
8848  void       *address;
8849}
8850lt__PROGRAM__LTX_preloaded_symbols[] =
8851{
8852  { "@PROGRAM@", (void *) 0 },
8853_LT_EOF
8854	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8855	  cat <<\_LT_EOF >> conftest.$ac_ext
8856  {0, (void *) 0}
8857};
8858
8859/* This works around a problem in FreeBSD linker */
8860#ifdef FREEBSD_WORKAROUND
8861static const void *lt_preloaded_setup() {
8862  return lt__PROGRAM__LTX_preloaded_symbols;
8863}
8864#endif
8865
8866#ifdef __cplusplus
8867}
8868#endif
8869_LT_EOF
8870	  # Now try linking the two files.
8871	  mv conftest.$ac_objext conftstm.$ac_objext
8872	  lt_save_LIBS="$LIBS"
8873	  lt_save_CFLAGS="$CFLAGS"
8874	  LIBS="conftstm.$ac_objext"
8875	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8876	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8877  (eval $ac_link) 2>&5
8878  ac_status=$?
8879  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8880  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8881	    pipe_works=yes
8882	  fi
8883	  LIBS="$lt_save_LIBS"
8884	  CFLAGS="$lt_save_CFLAGS"
8885	else
8886	  echo "cannot find nm_test_func in $nlist" >&5
8887	fi
8888      else
8889	echo "cannot find nm_test_var in $nlist" >&5
8890      fi
8891    else
8892      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8893    fi
8894  else
8895    echo "$progname: failed program was:" >&5
8896    cat conftest.$ac_ext >&5
8897  fi
8898  rm -rf conftest* conftst*
8899
8900  # Do not use the global_symbol_pipe unless it works.
8901  if test "$pipe_works" = yes; then
8902    break
8903  else
8904    lt_cv_sys_global_symbol_pipe=
8905  fi
8906done
8907
8908fi
8909
8910if test -z "$lt_cv_sys_global_symbol_pipe"; then
8911  lt_cv_sys_global_symbol_to_cdecl=
8912fi
8913if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8915$as_echo "failed" >&6; }
8916else
8917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8918$as_echo "ok" >&6; }
8919fi
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942# Check whether --enable-libtool-lock was given.
8943if test "${enable_libtool_lock+set}" = set; then :
8944  enableval=$enable_libtool_lock;
8945fi
8946
8947test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8948
8949# Some flags need to be propagated to the compiler or linker for good
8950# libtool support.
8951case $host in
8952ia64-*-hpux*)
8953  # Find out which ABI we are using.
8954  echo 'int i;' > conftest.$ac_ext
8955  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8956  (eval $ac_compile) 2>&5
8957  ac_status=$?
8958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8959  test $ac_status = 0; }; then
8960    case `/usr/bin/file conftest.$ac_objext` in
8961      *ELF-32*)
8962	HPUX_IA64_MODE="32"
8963	;;
8964      *ELF-64*)
8965	HPUX_IA64_MODE="64"
8966	;;
8967    esac
8968  fi
8969  rm -rf conftest*
8970  ;;
8971*-*-irix6*)
8972  # Find out which ABI we are using.
8973  echo '#line 8973 "configure"' > conftest.$ac_ext
8974  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8975  (eval $ac_compile) 2>&5
8976  ac_status=$?
8977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8978  test $ac_status = 0; }; then
8979    if test "$lt_cv_prog_gnu_ld" = yes; then
8980      case `/usr/bin/file conftest.$ac_objext` in
8981	*32-bit*)
8982	  LD="${LD-ld} -melf32bsmip"
8983	  ;;
8984	*N32*)
8985	  LD="${LD-ld} -melf32bmipn32"
8986	  ;;
8987	*64-bit*)
8988	  LD="${LD-ld} -melf64bmip"
8989	;;
8990      esac
8991    else
8992      case `/usr/bin/file conftest.$ac_objext` in
8993	*32-bit*)
8994	  LD="${LD-ld} -32"
8995	  ;;
8996	*N32*)
8997	  LD="${LD-ld} -n32"
8998	  ;;
8999	*64-bit*)
9000	  LD="${LD-ld} -64"
9001	  ;;
9002      esac
9003    fi
9004  fi
9005  rm -rf conftest*
9006  ;;
9007
9008x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9009s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9010  # Find out which ABI we are using.
9011  echo 'int i;' > conftest.$ac_ext
9012  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9013  (eval $ac_compile) 2>&5
9014  ac_status=$?
9015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9016  test $ac_status = 0; }; then
9017    case `/usr/bin/file conftest.o` in
9018      *32-bit*)
9019	case $host in
9020	  x86_64-*kfreebsd*-gnu)
9021	    LD="${LD-ld} -m elf_i386_fbsd"
9022	    ;;
9023	  x86_64-*linux*)
9024	    LD="${LD-ld} -m elf_i386"
9025	    ;;
9026	  ppc64-*linux*|powerpc64-*linux*)
9027	    LD="${LD-ld} -m elf32ppclinux"
9028	    ;;
9029	  s390x-*linux*)
9030	    LD="${LD-ld} -m elf_s390"
9031	    ;;
9032	  sparc64-*linux*)
9033	    LD="${LD-ld} -m elf32_sparc"
9034	    ;;
9035	esac
9036	;;
9037      *64-bit*)
9038	case $host in
9039	  x86_64-*kfreebsd*-gnu)
9040	    LD="${LD-ld} -m elf_x86_64_fbsd"
9041	    ;;
9042	  x86_64-*linux*)
9043	    LD="${LD-ld} -m elf_x86_64"
9044	    ;;
9045	  ppc*-*linux*|powerpc*-*linux*)
9046	    LD="${LD-ld} -m elf64ppc"
9047	    ;;
9048	  s390*-*linux*|s390*-*tpf*)
9049	    LD="${LD-ld} -m elf64_s390"
9050	    ;;
9051	  sparc*-*linux*)
9052	    LD="${LD-ld} -m elf64_sparc"
9053	    ;;
9054	esac
9055	;;
9056    esac
9057  fi
9058  rm -rf conftest*
9059  ;;
9060
9061*-*-sco3.2v5*)
9062  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9063  SAVE_CFLAGS="$CFLAGS"
9064  CFLAGS="$CFLAGS -belf"
9065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9066$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9067if test "${lt_cv_cc_needs_belf+set}" = set; then :
9068  $as_echo_n "(cached) " >&6
9069else
9070  ac_ext=c
9071ac_cpp='$CPP $CPPFLAGS'
9072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9074ac_compiler_gnu=$ac_cv_c_compiler_gnu
9075
9076     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077/* end confdefs.h.  */
9078
9079int
9080main ()
9081{
9082
9083  ;
9084  return 0;
9085}
9086_ACEOF
9087if ac_fn_c_try_link "$LINENO"; then :
9088  lt_cv_cc_needs_belf=yes
9089else
9090  lt_cv_cc_needs_belf=no
9091fi
9092rm -f core conftest.err conftest.$ac_objext \
9093    conftest$ac_exeext conftest.$ac_ext
9094     ac_ext=c
9095ac_cpp='$CPP $CPPFLAGS'
9096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9098ac_compiler_gnu=$ac_cv_c_compiler_gnu
9099
9100fi
9101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9102$as_echo "$lt_cv_cc_needs_belf" >&6; }
9103  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9104    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9105    CFLAGS="$SAVE_CFLAGS"
9106  fi
9107  ;;
9108sparc*-*solaris*)
9109  # Find out which ABI we are using.
9110  echo 'int i;' > conftest.$ac_ext
9111  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9112  (eval $ac_compile) 2>&5
9113  ac_status=$?
9114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9115  test $ac_status = 0; }; then
9116    case `/usr/bin/file conftest.o` in
9117    *64-bit*)
9118      case $lt_cv_prog_gnu_ld in
9119      yes*) LD="${LD-ld} -m elf64_sparc" ;;
9120      *)
9121	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9122	  LD="${LD-ld} -64"
9123	fi
9124	;;
9125      esac
9126      ;;
9127    esac
9128  fi
9129  rm -rf conftest*
9130  ;;
9131esac
9132
9133need_locks="$enable_libtool_lock"
9134
9135
9136  case $host_os in
9137    rhapsody* | darwin*)
9138    if test -n "$ac_tool_prefix"; then
9139  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9140set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9142$as_echo_n "checking for $ac_word... " >&6; }
9143if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
9144  $as_echo_n "(cached) " >&6
9145else
9146  if test -n "$DSYMUTIL"; then
9147  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9148else
9149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9150for as_dir in $PATH
9151do
9152  IFS=$as_save_IFS
9153  test -z "$as_dir" && as_dir=.
9154    for ac_exec_ext in '' $ac_executable_extensions; do
9155  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9156    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9158    break 2
9159  fi
9160done
9161  done
9162IFS=$as_save_IFS
9163
9164fi
9165fi
9166DSYMUTIL=$ac_cv_prog_DSYMUTIL
9167if test -n "$DSYMUTIL"; then
9168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9169$as_echo "$DSYMUTIL" >&6; }
9170else
9171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172$as_echo "no" >&6; }
9173fi
9174
9175
9176fi
9177if test -z "$ac_cv_prog_DSYMUTIL"; then
9178  ac_ct_DSYMUTIL=$DSYMUTIL
9179  # Extract the first word of "dsymutil", so it can be a program name with args.
9180set dummy dsymutil; ac_word=$2
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9182$as_echo_n "checking for $ac_word... " >&6; }
9183if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9184  $as_echo_n "(cached) " >&6
9185else
9186  if test -n "$ac_ct_DSYMUTIL"; then
9187  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9188else
9189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9190for as_dir in $PATH
9191do
9192  IFS=$as_save_IFS
9193  test -z "$as_dir" && as_dir=.
9194    for ac_exec_ext in '' $ac_executable_extensions; do
9195  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9196    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9198    break 2
9199  fi
9200done
9201  done
9202IFS=$as_save_IFS
9203
9204fi
9205fi
9206ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9207if test -n "$ac_ct_DSYMUTIL"; then
9208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9209$as_echo "$ac_ct_DSYMUTIL" >&6; }
9210else
9211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212$as_echo "no" >&6; }
9213fi
9214
9215  if test "x$ac_ct_DSYMUTIL" = x; then
9216    DSYMUTIL=":"
9217  else
9218    case $cross_compiling:$ac_tool_warned in
9219yes:)
9220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9222ac_tool_warned=yes ;;
9223esac
9224    DSYMUTIL=$ac_ct_DSYMUTIL
9225  fi
9226else
9227  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9228fi
9229
9230    if test -n "$ac_tool_prefix"; then
9231  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9232set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9234$as_echo_n "checking for $ac_word... " >&6; }
9235if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9236  $as_echo_n "(cached) " >&6
9237else
9238  if test -n "$NMEDIT"; then
9239  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9240else
9241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9242for as_dir in $PATH
9243do
9244  IFS=$as_save_IFS
9245  test -z "$as_dir" && as_dir=.
9246    for ac_exec_ext in '' $ac_executable_extensions; do
9247  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9248    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9250    break 2
9251  fi
9252done
9253  done
9254IFS=$as_save_IFS
9255
9256fi
9257fi
9258NMEDIT=$ac_cv_prog_NMEDIT
9259if test -n "$NMEDIT"; then
9260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9261$as_echo "$NMEDIT" >&6; }
9262else
9263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9264$as_echo "no" >&6; }
9265fi
9266
9267
9268fi
9269if test -z "$ac_cv_prog_NMEDIT"; then
9270  ac_ct_NMEDIT=$NMEDIT
9271  # Extract the first word of "nmedit", so it can be a program name with args.
9272set dummy nmedit; ac_word=$2
9273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9274$as_echo_n "checking for $ac_word... " >&6; }
9275if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9276  $as_echo_n "(cached) " >&6
9277else
9278  if test -n "$ac_ct_NMEDIT"; then
9279  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9280else
9281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282for as_dir in $PATH
9283do
9284  IFS=$as_save_IFS
9285  test -z "$as_dir" && as_dir=.
9286    for ac_exec_ext in '' $ac_executable_extensions; do
9287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9288    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9290    break 2
9291  fi
9292done
9293  done
9294IFS=$as_save_IFS
9295
9296fi
9297fi
9298ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9299if test -n "$ac_ct_NMEDIT"; then
9300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9301$as_echo "$ac_ct_NMEDIT" >&6; }
9302else
9303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304$as_echo "no" >&6; }
9305fi
9306
9307  if test "x$ac_ct_NMEDIT" = x; then
9308    NMEDIT=":"
9309  else
9310    case $cross_compiling:$ac_tool_warned in
9311yes:)
9312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9314ac_tool_warned=yes ;;
9315esac
9316    NMEDIT=$ac_ct_NMEDIT
9317  fi
9318else
9319  NMEDIT="$ac_cv_prog_NMEDIT"
9320fi
9321
9322    if test -n "$ac_tool_prefix"; then
9323  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9324set dummy ${ac_tool_prefix}lipo; ac_word=$2
9325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9326$as_echo_n "checking for $ac_word... " >&6; }
9327if test "${ac_cv_prog_LIPO+set}" = set; then :
9328  $as_echo_n "(cached) " >&6
9329else
9330  if test -n "$LIPO"; then
9331  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9332else
9333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334for as_dir in $PATH
9335do
9336  IFS=$as_save_IFS
9337  test -z "$as_dir" && as_dir=.
9338    for ac_exec_ext in '' $ac_executable_extensions; do
9339  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9340    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9342    break 2
9343  fi
9344done
9345  done
9346IFS=$as_save_IFS
9347
9348fi
9349fi
9350LIPO=$ac_cv_prog_LIPO
9351if test -n "$LIPO"; then
9352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9353$as_echo "$LIPO" >&6; }
9354else
9355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356$as_echo "no" >&6; }
9357fi
9358
9359
9360fi
9361if test -z "$ac_cv_prog_LIPO"; then
9362  ac_ct_LIPO=$LIPO
9363  # Extract the first word of "lipo", so it can be a program name with args.
9364set dummy lipo; ac_word=$2
9365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9366$as_echo_n "checking for $ac_word... " >&6; }
9367if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9368  $as_echo_n "(cached) " >&6
9369else
9370  if test -n "$ac_ct_LIPO"; then
9371  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9372else
9373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374for as_dir in $PATH
9375do
9376  IFS=$as_save_IFS
9377  test -z "$as_dir" && as_dir=.
9378    for ac_exec_ext in '' $ac_executable_extensions; do
9379  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9380    ac_cv_prog_ac_ct_LIPO="lipo"
9381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9382    break 2
9383  fi
9384done
9385  done
9386IFS=$as_save_IFS
9387
9388fi
9389fi
9390ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9391if test -n "$ac_ct_LIPO"; then
9392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9393$as_echo "$ac_ct_LIPO" >&6; }
9394else
9395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9396$as_echo "no" >&6; }
9397fi
9398
9399  if test "x$ac_ct_LIPO" = x; then
9400    LIPO=":"
9401  else
9402    case $cross_compiling:$ac_tool_warned in
9403yes:)
9404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9406ac_tool_warned=yes ;;
9407esac
9408    LIPO=$ac_ct_LIPO
9409  fi
9410else
9411  LIPO="$ac_cv_prog_LIPO"
9412fi
9413
9414    if test -n "$ac_tool_prefix"; then
9415  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9416set dummy ${ac_tool_prefix}otool; ac_word=$2
9417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9418$as_echo_n "checking for $ac_word... " >&6; }
9419if test "${ac_cv_prog_OTOOL+set}" = set; then :
9420  $as_echo_n "(cached) " >&6
9421else
9422  if test -n "$OTOOL"; then
9423  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9424else
9425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9426for as_dir in $PATH
9427do
9428  IFS=$as_save_IFS
9429  test -z "$as_dir" && as_dir=.
9430    for ac_exec_ext in '' $ac_executable_extensions; do
9431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9432    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9434    break 2
9435  fi
9436done
9437  done
9438IFS=$as_save_IFS
9439
9440fi
9441fi
9442OTOOL=$ac_cv_prog_OTOOL
9443if test -n "$OTOOL"; then
9444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9445$as_echo "$OTOOL" >&6; }
9446else
9447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9448$as_echo "no" >&6; }
9449fi
9450
9451
9452fi
9453if test -z "$ac_cv_prog_OTOOL"; then
9454  ac_ct_OTOOL=$OTOOL
9455  # Extract the first word of "otool", so it can be a program name with args.
9456set dummy otool; ac_word=$2
9457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9458$as_echo_n "checking for $ac_word... " >&6; }
9459if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9460  $as_echo_n "(cached) " >&6
9461else
9462  if test -n "$ac_ct_OTOOL"; then
9463  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9464else
9465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9466for as_dir in $PATH
9467do
9468  IFS=$as_save_IFS
9469  test -z "$as_dir" && as_dir=.
9470    for ac_exec_ext in '' $ac_executable_extensions; do
9471  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9472    ac_cv_prog_ac_ct_OTOOL="otool"
9473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9474    break 2
9475  fi
9476done
9477  done
9478IFS=$as_save_IFS
9479
9480fi
9481fi
9482ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9483if test -n "$ac_ct_OTOOL"; then
9484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9485$as_echo "$ac_ct_OTOOL" >&6; }
9486else
9487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9488$as_echo "no" >&6; }
9489fi
9490
9491  if test "x$ac_ct_OTOOL" = x; then
9492    OTOOL=":"
9493  else
9494    case $cross_compiling:$ac_tool_warned in
9495yes:)
9496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9498ac_tool_warned=yes ;;
9499esac
9500    OTOOL=$ac_ct_OTOOL
9501  fi
9502else
9503  OTOOL="$ac_cv_prog_OTOOL"
9504fi
9505
9506    if test -n "$ac_tool_prefix"; then
9507  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9508set dummy ${ac_tool_prefix}otool64; ac_word=$2
9509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9510$as_echo_n "checking for $ac_word... " >&6; }
9511if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9512  $as_echo_n "(cached) " >&6
9513else
9514  if test -n "$OTOOL64"; then
9515  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9516else
9517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9518for as_dir in $PATH
9519do
9520  IFS=$as_save_IFS
9521  test -z "$as_dir" && as_dir=.
9522    for ac_exec_ext in '' $ac_executable_extensions; do
9523  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9524    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9526    break 2
9527  fi
9528done
9529  done
9530IFS=$as_save_IFS
9531
9532fi
9533fi
9534OTOOL64=$ac_cv_prog_OTOOL64
9535if test -n "$OTOOL64"; then
9536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9537$as_echo "$OTOOL64" >&6; }
9538else
9539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9540$as_echo "no" >&6; }
9541fi
9542
9543
9544fi
9545if test -z "$ac_cv_prog_OTOOL64"; then
9546  ac_ct_OTOOL64=$OTOOL64
9547  # Extract the first word of "otool64", so it can be a program name with args.
9548set dummy otool64; ac_word=$2
9549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9550$as_echo_n "checking for $ac_word... " >&6; }
9551if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9552  $as_echo_n "(cached) " >&6
9553else
9554  if test -n "$ac_ct_OTOOL64"; then
9555  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9556else
9557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9558for as_dir in $PATH
9559do
9560  IFS=$as_save_IFS
9561  test -z "$as_dir" && as_dir=.
9562    for ac_exec_ext in '' $ac_executable_extensions; do
9563  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9564    ac_cv_prog_ac_ct_OTOOL64="otool64"
9565    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9566    break 2
9567  fi
9568done
9569  done
9570IFS=$as_save_IFS
9571
9572fi
9573fi
9574ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9575if test -n "$ac_ct_OTOOL64"; then
9576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9577$as_echo "$ac_ct_OTOOL64" >&6; }
9578else
9579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9580$as_echo "no" >&6; }
9581fi
9582
9583  if test "x$ac_ct_OTOOL64" = x; then
9584    OTOOL64=":"
9585  else
9586    case $cross_compiling:$ac_tool_warned in
9587yes:)
9588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9590ac_tool_warned=yes ;;
9591esac
9592    OTOOL64=$ac_ct_OTOOL64
9593  fi
9594else
9595  OTOOL64="$ac_cv_prog_OTOOL64"
9596fi
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9625$as_echo_n "checking for -single_module linker flag... " >&6; }
9626if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9627  $as_echo_n "(cached) " >&6
9628else
9629  lt_cv_apple_cc_single_mod=no
9630      if test -z "${LT_MULTI_MODULE}"; then
9631	# By default we will add the -single_module flag. You can override
9632	# by either setting the environment variable LT_MULTI_MODULE
9633	# non-empty at configure time, or by adding -multi_module to the
9634	# link flags.
9635	rm -rf libconftest.dylib*
9636	echo "int foo(void){return 1;}" > conftest.c
9637	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9638-dynamiclib -Wl,-single_module conftest.c" >&5
9639	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9640	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9641        _lt_result=$?
9642	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9643	  lt_cv_apple_cc_single_mod=yes
9644	else
9645	  cat conftest.err >&5
9646	fi
9647	rm -rf libconftest.dylib*
9648	rm -f conftest.*
9649      fi
9650fi
9651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9652$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9653    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9654$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9655if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9656  $as_echo_n "(cached) " >&6
9657else
9658  lt_cv_ld_exported_symbols_list=no
9659      save_LDFLAGS=$LDFLAGS
9660      echo "_main" > conftest.sym
9661      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9662      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663/* end confdefs.h.  */
9664
9665int
9666main ()
9667{
9668
9669  ;
9670  return 0;
9671}
9672_ACEOF
9673if ac_fn_c_try_link "$LINENO"; then :
9674  lt_cv_ld_exported_symbols_list=yes
9675else
9676  lt_cv_ld_exported_symbols_list=no
9677fi
9678rm -f core conftest.err conftest.$ac_objext \
9679    conftest$ac_exeext conftest.$ac_ext
9680	LDFLAGS="$save_LDFLAGS"
9681
9682fi
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9684$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9685    case $host_os in
9686    rhapsody* | darwin1.[012])
9687      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9688    darwin1.*)
9689      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9690    darwin*) # darwin 5.x on
9691      # if running on 10.5 or later, the deployment target defaults
9692      # to the OS version, if on x86, and 10.4, the deployment
9693      # target defaults to 10.4. Don't you love it?
9694      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9695	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9696	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9697	10.[012]*)
9698	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9699	10.*)
9700	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9701      esac
9702    ;;
9703  esac
9704    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9705      _lt_dar_single_mod='$single_module'
9706    fi
9707    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9708      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9709    else
9710      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9711    fi
9712    if test "$DSYMUTIL" != ":"; then
9713      _lt_dsymutil='~$DSYMUTIL $lib || :'
9714    else
9715      _lt_dsymutil=
9716    fi
9717    ;;
9718  esac
9719
9720for ac_header in dlfcn.h
9721do :
9722  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9723"
9724if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9725  cat >>confdefs.h <<_ACEOF
9726#define HAVE_DLFCN_H 1
9727_ACEOF
9728
9729fi
9730
9731done
9732
9733
9734
9735# Set options
9736
9737
9738
9739        enable_dlopen=no
9740
9741
9742  enable_win32_dll=no
9743
9744
9745            # Check whether --enable-shared was given.
9746if test "${enable_shared+set}" = set; then :
9747  enableval=$enable_shared; p=${PACKAGE-default}
9748    case $enableval in
9749    yes) enable_shared=yes ;;
9750    no) enable_shared=no ;;
9751    *)
9752      enable_shared=no
9753      # Look at the argument we got.  We use all the common list separators.
9754      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9755      for pkg in $enableval; do
9756	IFS="$lt_save_ifs"
9757	if test "X$pkg" = "X$p"; then
9758	  enable_shared=yes
9759	fi
9760      done
9761      IFS="$lt_save_ifs"
9762      ;;
9763    esac
9764else
9765  enable_shared=yes
9766fi
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776  # Check whether --enable-static was given.
9777if test "${enable_static+set}" = set; then :
9778  enableval=$enable_static; p=${PACKAGE-default}
9779    case $enableval in
9780    yes) enable_static=yes ;;
9781    no) enable_static=no ;;
9782    *)
9783     enable_static=no
9784      # Look at the argument we got.  We use all the common list separators.
9785      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9786      for pkg in $enableval; do
9787	IFS="$lt_save_ifs"
9788	if test "X$pkg" = "X$p"; then
9789	  enable_static=yes
9790	fi
9791      done
9792      IFS="$lt_save_ifs"
9793      ;;
9794    esac
9795else
9796  enable_static=yes
9797fi
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808# Check whether --with-pic was given.
9809if test "${with_pic+set}" = set; then :
9810  withval=$with_pic; pic_mode="$withval"
9811else
9812  pic_mode=default
9813fi
9814
9815
9816test -z "$pic_mode" && pic_mode=default
9817
9818
9819
9820
9821
9822
9823
9824  # Check whether --enable-fast-install was given.
9825if test "${enable_fast_install+set}" = set; then :
9826  enableval=$enable_fast_install; p=${PACKAGE-default}
9827    case $enableval in
9828    yes) enable_fast_install=yes ;;
9829    no) enable_fast_install=no ;;
9830    *)
9831      enable_fast_install=no
9832      # Look at the argument we got.  We use all the common list separators.
9833      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9834      for pkg in $enableval; do
9835	IFS="$lt_save_ifs"
9836	if test "X$pkg" = "X$p"; then
9837	  enable_fast_install=yes
9838	fi
9839      done
9840      IFS="$lt_save_ifs"
9841      ;;
9842    esac
9843else
9844  enable_fast_install=yes
9845fi
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857# This can be used to rebuild libtool when needed
9858LIBTOOL_DEPS="$ltmain"
9859
9860# Always use our own libtool.
9861LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887test -z "$LN_S" && LN_S="ln -s"
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902if test -n "${ZSH_VERSION+set}" ; then
9903   setopt NO_GLOB_SUBST
9904fi
9905
9906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9907$as_echo_n "checking for objdir... " >&6; }
9908if test "${lt_cv_objdir+set}" = set; then :
9909  $as_echo_n "(cached) " >&6
9910else
9911  rm -f .libs 2>/dev/null
9912mkdir .libs 2>/dev/null
9913if test -d .libs; then
9914  lt_cv_objdir=.libs
9915else
9916  # MS-DOS does not allow filenames that begin with a dot.
9917  lt_cv_objdir=_libs
9918fi
9919rmdir .libs 2>/dev/null
9920fi
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9922$as_echo "$lt_cv_objdir" >&6; }
9923objdir=$lt_cv_objdir
9924
9925
9926
9927
9928
9929cat >>confdefs.h <<_ACEOF
9930#define LT_OBJDIR "$lt_cv_objdir/"
9931_ACEOF
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949case $host_os in
9950aix3*)
9951  # AIX sometimes has problems with the GCC collect2 program.  For some
9952  # reason, if we set the COLLECT_NAMES environment variable, the problems
9953  # vanish in a puff of smoke.
9954  if test "X${COLLECT_NAMES+set}" != Xset; then
9955    COLLECT_NAMES=
9956    export COLLECT_NAMES
9957  fi
9958  ;;
9959esac
9960
9961# Sed substitution that helps us do robust quoting.  It backslashifies
9962# metacharacters that are still active within double-quoted strings.
9963sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9964
9965# Same as above, but do not quote variable references.
9966double_quote_subst='s/\(["`\\]\)/\\\1/g'
9967
9968# Sed substitution to delay expansion of an escaped shell variable in a
9969# double_quote_subst'ed string.
9970delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9971
9972# Sed substitution to delay expansion of an escaped single quote.
9973delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9974
9975# Sed substitution to avoid accidental globbing in evaled expressions
9976no_glob_subst='s/\*/\\\*/g'
9977
9978# Global variables:
9979ofile=libtool
9980can_build_shared=yes
9981
9982# All known linkers require a `.a' archive for static linking (except MSVC,
9983# which needs '.lib').
9984libext=a
9985
9986with_gnu_ld="$lt_cv_prog_gnu_ld"
9987
9988old_CC="$CC"
9989old_CFLAGS="$CFLAGS"
9990
9991# Set sane defaults for various variables
9992test -z "$CC" && CC=cc
9993test -z "$LTCC" && LTCC=$CC
9994test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9995test -z "$LD" && LD=ld
9996test -z "$ac_objext" && ac_objext=o
9997
9998for cc_temp in $compiler""; do
9999  case $cc_temp in
10000    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10001    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10002    \-*) ;;
10003    *) break;;
10004  esac
10005done
10006cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10007
10008
10009# Only perform the check for file, if the check method requires it
10010test -z "$MAGIC_CMD" && MAGIC_CMD=file
10011case $deplibs_check_method in
10012file_magic*)
10013  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10014    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10015$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10016if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10017  $as_echo_n "(cached) " >&6
10018else
10019  case $MAGIC_CMD in
10020[\\/*] |  ?:[\\/]*)
10021  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10022  ;;
10023*)
10024  lt_save_MAGIC_CMD="$MAGIC_CMD"
10025  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10026  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10027  for ac_dir in $ac_dummy; do
10028    IFS="$lt_save_ifs"
10029    test -z "$ac_dir" && ac_dir=.
10030    if test -f $ac_dir/${ac_tool_prefix}file; then
10031      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10032      if test -n "$file_magic_test_file"; then
10033	case $deplibs_check_method in
10034	"file_magic "*)
10035	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10036	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10037	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10038	    $EGREP "$file_magic_regex" > /dev/null; then
10039	    :
10040	  else
10041	    cat <<_LT_EOF 1>&2
10042
10043*** Warning: the command libtool uses to detect shared libraries,
10044*** $file_magic_cmd, produces output that libtool cannot recognize.
10045*** The result is that libtool may fail to recognize shared libraries
10046*** as such.  This will affect the creation of libtool libraries that
10047*** depend on shared libraries, but programs linked with such libtool
10048*** libraries will work regardless of this problem.  Nevertheless, you
10049*** may want to report the problem to your system manager and/or to
10050*** bug-libtool@gnu.org
10051
10052_LT_EOF
10053	  fi ;;
10054	esac
10055      fi
10056      break
10057    fi
10058  done
10059  IFS="$lt_save_ifs"
10060  MAGIC_CMD="$lt_save_MAGIC_CMD"
10061  ;;
10062esac
10063fi
10064
10065MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10066if test -n "$MAGIC_CMD"; then
10067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10068$as_echo "$MAGIC_CMD" >&6; }
10069else
10070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071$as_echo "no" >&6; }
10072fi
10073
10074
10075
10076
10077
10078if test -z "$lt_cv_path_MAGIC_CMD"; then
10079  if test -n "$ac_tool_prefix"; then
10080    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10081$as_echo_n "checking for file... " >&6; }
10082if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10083  $as_echo_n "(cached) " >&6
10084else
10085  case $MAGIC_CMD in
10086[\\/*] |  ?:[\\/]*)
10087  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10088  ;;
10089*)
10090  lt_save_MAGIC_CMD="$MAGIC_CMD"
10091  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10092  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10093  for ac_dir in $ac_dummy; do
10094    IFS="$lt_save_ifs"
10095    test -z "$ac_dir" && ac_dir=.
10096    if test -f $ac_dir/file; then
10097      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10098      if test -n "$file_magic_test_file"; then
10099	case $deplibs_check_method in
10100	"file_magic "*)
10101	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10102	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10103	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10104	    $EGREP "$file_magic_regex" > /dev/null; then
10105	    :
10106	  else
10107	    cat <<_LT_EOF 1>&2
10108
10109*** Warning: the command libtool uses to detect shared libraries,
10110*** $file_magic_cmd, produces output that libtool cannot recognize.
10111*** The result is that libtool may fail to recognize shared libraries
10112*** as such.  This will affect the creation of libtool libraries that
10113*** depend on shared libraries, but programs linked with such libtool
10114*** libraries will work regardless of this problem.  Nevertheless, you
10115*** may want to report the problem to your system manager and/or to
10116*** bug-libtool@gnu.org
10117
10118_LT_EOF
10119	  fi ;;
10120	esac
10121      fi
10122      break
10123    fi
10124  done
10125  IFS="$lt_save_ifs"
10126  MAGIC_CMD="$lt_save_MAGIC_CMD"
10127  ;;
10128esac
10129fi
10130
10131MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10132if test -n "$MAGIC_CMD"; then
10133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10134$as_echo "$MAGIC_CMD" >&6; }
10135else
10136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137$as_echo "no" >&6; }
10138fi
10139
10140
10141  else
10142    MAGIC_CMD=:
10143  fi
10144fi
10145
10146  fi
10147  ;;
10148esac
10149
10150# Use C for the default configuration in the libtool script
10151
10152lt_save_CC="$CC"
10153ac_ext=c
10154ac_cpp='$CPP $CPPFLAGS'
10155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10157ac_compiler_gnu=$ac_cv_c_compiler_gnu
10158
10159
10160# Source file extension for C test sources.
10161ac_ext=c
10162
10163# Object file extension for compiled C test sources.
10164objext=o
10165objext=$objext
10166
10167# Code to be used in simple compile tests
10168lt_simple_compile_test_code="int some_variable = 0;"
10169
10170# Code to be used in simple link tests
10171lt_simple_link_test_code='int main(){return(0);}'
10172
10173
10174
10175
10176
10177
10178
10179# If no C compiler was specified, use CC.
10180LTCC=${LTCC-"$CC"}
10181
10182# If no C compiler flags were specified, use CFLAGS.
10183LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10184
10185# Allow CC to be a program name with arguments.
10186compiler=$CC
10187
10188# Save the default compiler, since it gets overwritten when the other
10189# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10190compiler_DEFAULT=$CC
10191
10192# save warnings/boilerplate of simple test code
10193ac_outfile=conftest.$ac_objext
10194echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10195eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10196_lt_compiler_boilerplate=`cat conftest.err`
10197$RM conftest*
10198
10199ac_outfile=conftest.$ac_objext
10200echo "$lt_simple_link_test_code" >conftest.$ac_ext
10201eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10202_lt_linker_boilerplate=`cat conftest.err`
10203$RM -r conftest*
10204
10205
10206## CAVEAT EMPTOR:
10207## There is no encapsulation within the following macros, do not change
10208## the running order or otherwise move them around unless you know exactly
10209## what you are doing...
10210if test -n "$compiler"; then
10211
10212lt_prog_compiler_no_builtin_flag=
10213
10214if test "$GCC" = yes; then
10215  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10216
10217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10218$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10219if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10220  $as_echo_n "(cached) " >&6
10221else
10222  lt_cv_prog_compiler_rtti_exceptions=no
10223   ac_outfile=conftest.$ac_objext
10224   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10225   lt_compiler_flag="-fno-rtti -fno-exceptions"
10226   # Insert the option either (1) after the last *FLAGS variable, or
10227   # (2) before a word containing "conftest.", or (3) at the end.
10228   # Note that $ac_compile itself does not contain backslashes and begins
10229   # with a dollar sign (not a hyphen), so the echo should work correctly.
10230   # The option is referenced via a variable to avoid confusing sed.
10231   lt_compile=`echo "$ac_compile" | $SED \
10232   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10233   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10234   -e 's:$: $lt_compiler_flag:'`
10235   (eval echo "\"\$as_me:10235: $lt_compile\"" >&5)
10236   (eval "$lt_compile" 2>conftest.err)
10237   ac_status=$?
10238   cat conftest.err >&5
10239   echo "$as_me:10239: \$? = $ac_status" >&5
10240   if (exit $ac_status) && test -s "$ac_outfile"; then
10241     # The compiler can only warn and ignore the option if not recognized
10242     # So say no if there are warnings other than the usual output.
10243     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10244     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10245     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10246       lt_cv_prog_compiler_rtti_exceptions=yes
10247     fi
10248   fi
10249   $RM conftest*
10250
10251fi
10252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10253$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10254
10255if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10256    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10257else
10258    :
10259fi
10260
10261fi
10262
10263
10264
10265
10266
10267
10268  lt_prog_compiler_wl=
10269lt_prog_compiler_pic=
10270lt_prog_compiler_static=
10271
10272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10273$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10274
10275  if test "$GCC" = yes; then
10276    lt_prog_compiler_wl='-Wl,'
10277    lt_prog_compiler_static='-static'
10278
10279    case $host_os in
10280      aix*)
10281      # All AIX code is PIC.
10282      if test "$host_cpu" = ia64; then
10283	# AIX 5 now supports IA64 processor
10284	lt_prog_compiler_static='-Bstatic'
10285      fi
10286      ;;
10287
10288    amigaos*)
10289      case $host_cpu in
10290      powerpc)
10291            # see comment about AmigaOS4 .so support
10292            lt_prog_compiler_pic='-fPIC'
10293        ;;
10294      m68k)
10295            # FIXME: we need at least 68020 code to build shared libraries, but
10296            # adding the `-m68020' flag to GCC prevents building anything better,
10297            # like `-m68040'.
10298            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10299        ;;
10300      esac
10301      ;;
10302
10303    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10304      # PIC is the default for these OSes.
10305      ;;
10306
10307    mingw* | cygwin* | pw32* | os2* | cegcc*)
10308      # This hack is so that the source file can tell whether it is being
10309      # built for inclusion in a dll (and should export symbols for example).
10310      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10311      # (--disable-auto-import) libraries
10312      lt_prog_compiler_pic='-DDLL_EXPORT'
10313      ;;
10314
10315    darwin* | rhapsody*)
10316      # PIC is the default on this platform
10317      # Common symbols not allowed in MH_DYLIB files
10318      lt_prog_compiler_pic='-fno-common'
10319      ;;
10320
10321    hpux*)
10322      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10323      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10324      # sets the default TLS model and affects inlining.
10325      case $host_cpu in
10326      hppa*64*)
10327	# +Z the default
10328	;;
10329      *)
10330	lt_prog_compiler_pic='-fPIC'
10331	;;
10332      esac
10333      ;;
10334
10335    interix[3-9]*)
10336      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10337      # Instead, we relocate shared libraries at runtime.
10338      ;;
10339
10340    msdosdjgpp*)
10341      # Just because we use GCC doesn't mean we suddenly get shared libraries
10342      # on systems that don't support them.
10343      lt_prog_compiler_can_build_shared=no
10344      enable_shared=no
10345      ;;
10346
10347    *nto* | *qnx*)
10348      # QNX uses GNU C++, but need to define -shared option too, otherwise
10349      # it will coredump.
10350      lt_prog_compiler_pic='-fPIC -shared'
10351      ;;
10352
10353    sysv4*MP*)
10354      if test -d /usr/nec; then
10355	lt_prog_compiler_pic=-Kconform_pic
10356      fi
10357      ;;
10358
10359    *)
10360      lt_prog_compiler_pic='-fPIC'
10361      ;;
10362    esac
10363  else
10364    # PORTME Check for flag to pass linker flags through the system compiler.
10365    case $host_os in
10366    aix*)
10367      lt_prog_compiler_wl='-Wl,'
10368      if test "$host_cpu" = ia64; then
10369	# AIX 5 now supports IA64 processor
10370	lt_prog_compiler_static='-Bstatic'
10371      else
10372	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10373      fi
10374      ;;
10375
10376    mingw* | cygwin* | pw32* | os2* | cegcc*)
10377      # This hack is so that the source file can tell whether it is being
10378      # built for inclusion in a dll (and should export symbols for example).
10379      lt_prog_compiler_pic='-DDLL_EXPORT'
10380      ;;
10381
10382    hpux9* | hpux10* | hpux11*)
10383      lt_prog_compiler_wl='-Wl,'
10384      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10385      # not for PA HP-UX.
10386      case $host_cpu in
10387      hppa*64*|ia64*)
10388	# +Z the default
10389	;;
10390      *)
10391	lt_prog_compiler_pic='+Z'
10392	;;
10393      esac
10394      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10395      lt_prog_compiler_static='${wl}-a ${wl}archive'
10396      ;;
10397
10398    irix5* | irix6* | nonstopux*)
10399      lt_prog_compiler_wl='-Wl,'
10400      # PIC (with -KPIC) is the default.
10401      lt_prog_compiler_static='-non_shared'
10402      ;;
10403
10404    linux* | k*bsd*-gnu)
10405      case $cc_basename in
10406      # old Intel for x86_64 which still supported -KPIC.
10407      ecc*)
10408	lt_prog_compiler_wl='-Wl,'
10409	lt_prog_compiler_pic='-KPIC'
10410	lt_prog_compiler_static='-static'
10411        ;;
10412      # icc used to be incompatible with GCC.
10413      # ICC 10 doesn't accept -KPIC any more.
10414      icc* | ifort*)
10415	lt_prog_compiler_wl='-Wl,'
10416	lt_prog_compiler_pic='-fPIC'
10417	lt_prog_compiler_static='-static'
10418        ;;
10419      # Lahey Fortran 8.1.
10420      lf95*)
10421	lt_prog_compiler_wl='-Wl,'
10422	lt_prog_compiler_pic='--shared'
10423	lt_prog_compiler_static='--static'
10424	;;
10425      pgcc* | pgf77* | pgf90* | pgf95*)
10426        # Portland Group compilers (*not* the Pentium gcc compiler,
10427	# which looks to be a dead project)
10428	lt_prog_compiler_wl='-Wl,'
10429	lt_prog_compiler_pic='-fpic'
10430	lt_prog_compiler_static='-Bstatic'
10431        ;;
10432      ccc*)
10433        lt_prog_compiler_wl='-Wl,'
10434        # All Alpha code is PIC.
10435        lt_prog_compiler_static='-non_shared'
10436        ;;
10437      xl*)
10438	# IBM XL C 8.0/Fortran 10.1 on PPC
10439	lt_prog_compiler_wl='-Wl,'
10440	lt_prog_compiler_pic='-qpic'
10441	lt_prog_compiler_static='-qstaticlink'
10442	;;
10443      *)
10444	case `$CC -V 2>&1 | sed 5q` in
10445	*Sun\ C*)
10446	  # Sun C 5.9
10447	  lt_prog_compiler_pic='-KPIC'
10448	  lt_prog_compiler_static='-Bstatic'
10449	  lt_prog_compiler_wl='-Wl,'
10450	  ;;
10451	*Sun\ F*)
10452	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10453	  lt_prog_compiler_pic='-KPIC'
10454	  lt_prog_compiler_static='-Bstatic'
10455	  lt_prog_compiler_wl=''
10456	  ;;
10457	esac
10458	;;
10459      esac
10460      ;;
10461
10462    newsos6)
10463      lt_prog_compiler_pic='-KPIC'
10464      lt_prog_compiler_static='-Bstatic'
10465      ;;
10466
10467    *nto* | *qnx*)
10468      # QNX uses GNU C++, but need to define -shared option too, otherwise
10469      # it will coredump.
10470      lt_prog_compiler_pic='-fPIC -shared'
10471      ;;
10472
10473    osf3* | osf4* | osf5*)
10474      lt_prog_compiler_wl='-Wl,'
10475      # All OSF/1 code is PIC.
10476      lt_prog_compiler_static='-non_shared'
10477      ;;
10478
10479    rdos*)
10480      lt_prog_compiler_static='-non_shared'
10481      ;;
10482
10483    solaris*)
10484      lt_prog_compiler_pic='-KPIC'
10485      lt_prog_compiler_static='-Bstatic'
10486      case $cc_basename in
10487      f77* | f90* | f95*)
10488	lt_prog_compiler_wl='-Qoption ld ';;
10489      *)
10490	lt_prog_compiler_wl='-Wl,';;
10491      esac
10492      ;;
10493
10494    sunos4*)
10495      lt_prog_compiler_wl='-Qoption ld '
10496      lt_prog_compiler_pic='-PIC'
10497      lt_prog_compiler_static='-Bstatic'
10498      ;;
10499
10500    sysv4 | sysv4.2uw2* | sysv4.3*)
10501      lt_prog_compiler_wl='-Wl,'
10502      lt_prog_compiler_pic='-KPIC'
10503      lt_prog_compiler_static='-Bstatic'
10504      ;;
10505
10506    sysv4*MP*)
10507      if test -d /usr/nec ;then
10508	lt_prog_compiler_pic='-Kconform_pic'
10509	lt_prog_compiler_static='-Bstatic'
10510      fi
10511      ;;
10512
10513    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10514      lt_prog_compiler_wl='-Wl,'
10515      lt_prog_compiler_pic='-KPIC'
10516      lt_prog_compiler_static='-Bstatic'
10517      ;;
10518
10519    unicos*)
10520      lt_prog_compiler_wl='-Wl,'
10521      lt_prog_compiler_can_build_shared=no
10522      ;;
10523
10524    uts4*)
10525      lt_prog_compiler_pic='-pic'
10526      lt_prog_compiler_static='-Bstatic'
10527      ;;
10528
10529    *)
10530      lt_prog_compiler_can_build_shared=no
10531      ;;
10532    esac
10533  fi
10534
10535case $host_os in
10536  # For platforms which do not support PIC, -DPIC is meaningless:
10537  *djgpp*)
10538    lt_prog_compiler_pic=
10539    ;;
10540  *)
10541    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10542    ;;
10543esac
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10545$as_echo "$lt_prog_compiler_pic" >&6; }
10546
10547
10548
10549
10550
10551
10552#
10553# Check to make sure the PIC flag actually works.
10554#
10555if test -n "$lt_prog_compiler_pic"; then
10556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10557$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10558if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10559  $as_echo_n "(cached) " >&6
10560else
10561  lt_cv_prog_compiler_pic_works=no
10562   ac_outfile=conftest.$ac_objext
10563   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10564   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10565   # Insert the option either (1) after the last *FLAGS variable, or
10566   # (2) before a word containing "conftest.", or (3) at the end.
10567   # Note that $ac_compile itself does not contain backslashes and begins
10568   # with a dollar sign (not a hyphen), so the echo should work correctly.
10569   # The option is referenced via a variable to avoid confusing sed.
10570   lt_compile=`echo "$ac_compile" | $SED \
10571   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10572   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10573   -e 's:$: $lt_compiler_flag:'`
10574   (eval echo "\"\$as_me:10574: $lt_compile\"" >&5)
10575   (eval "$lt_compile" 2>conftest.err)
10576   ac_status=$?
10577   cat conftest.err >&5
10578   echo "$as_me:10578: \$? = $ac_status" >&5
10579   if (exit $ac_status) && test -s "$ac_outfile"; then
10580     # The compiler can only warn and ignore the option if not recognized
10581     # So say no if there are warnings other than the usual output.
10582     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10583     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10584     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10585       lt_cv_prog_compiler_pic_works=yes
10586     fi
10587   fi
10588   $RM conftest*
10589
10590fi
10591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10592$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10593
10594if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10595    case $lt_prog_compiler_pic in
10596     "" | " "*) ;;
10597     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10598     esac
10599else
10600    lt_prog_compiler_pic=
10601     lt_prog_compiler_can_build_shared=no
10602fi
10603
10604fi
10605
10606
10607
10608
10609
10610
10611#
10612# Check to make sure the static flag actually works.
10613#
10614wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10616$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10617if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10618  $as_echo_n "(cached) " >&6
10619else
10620  lt_cv_prog_compiler_static_works=no
10621   save_LDFLAGS="$LDFLAGS"
10622   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10623   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10624   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10625     # The linker can only warn and ignore the option if not recognized
10626     # So say no if there are warnings
10627     if test -s conftest.err; then
10628       # Append any errors to the config.log.
10629       cat conftest.err 1>&5
10630       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10631       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10632       if diff conftest.exp conftest.er2 >/dev/null; then
10633         lt_cv_prog_compiler_static_works=yes
10634       fi
10635     else
10636       lt_cv_prog_compiler_static_works=yes
10637     fi
10638   fi
10639   $RM -r conftest*
10640   LDFLAGS="$save_LDFLAGS"
10641
10642fi
10643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10644$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10645
10646if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10647    :
10648else
10649    lt_prog_compiler_static=
10650fi
10651
10652
10653
10654
10655
10656
10657
10658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10659$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10660if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10661  $as_echo_n "(cached) " >&6
10662else
10663  lt_cv_prog_compiler_c_o=no
10664   $RM -r conftest 2>/dev/null
10665   mkdir conftest
10666   cd conftest
10667   mkdir out
10668   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10669
10670   lt_compiler_flag="-o out/conftest2.$ac_objext"
10671   # Insert the option either (1) after the last *FLAGS variable, or
10672   # (2) before a word containing "conftest.", or (3) at the end.
10673   # Note that $ac_compile itself does not contain backslashes and begins
10674   # with a dollar sign (not a hyphen), so the echo should work correctly.
10675   lt_compile=`echo "$ac_compile" | $SED \
10676   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10677   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10678   -e 's:$: $lt_compiler_flag:'`
10679   (eval echo "\"\$as_me:10679: $lt_compile\"" >&5)
10680   (eval "$lt_compile" 2>out/conftest.err)
10681   ac_status=$?
10682   cat out/conftest.err >&5
10683   echo "$as_me:10683: \$? = $ac_status" >&5
10684   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10685   then
10686     # The compiler can only warn and ignore the option if not recognized
10687     # So say no if there are warnings
10688     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10689     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10690     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10691       lt_cv_prog_compiler_c_o=yes
10692     fi
10693   fi
10694   chmod u+w . 2>&5
10695   $RM conftest*
10696   # SGI C++ compiler will create directory out/ii_files/ for
10697   # template instantiation
10698   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10699   $RM out/* && rmdir out
10700   cd ..
10701   $RM -r conftest
10702   $RM conftest*
10703
10704fi
10705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10706$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10707
10708
10709
10710
10711
10712
10713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10714$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10715if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10716  $as_echo_n "(cached) " >&6
10717else
10718  lt_cv_prog_compiler_c_o=no
10719   $RM -r conftest 2>/dev/null
10720   mkdir conftest
10721   cd conftest
10722   mkdir out
10723   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10724
10725   lt_compiler_flag="-o out/conftest2.$ac_objext"
10726   # Insert the option either (1) after the last *FLAGS variable, or
10727   # (2) before a word containing "conftest.", or (3) at the end.
10728   # Note that $ac_compile itself does not contain backslashes and begins
10729   # with a dollar sign (not a hyphen), so the echo should work correctly.
10730   lt_compile=`echo "$ac_compile" | $SED \
10731   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10732   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10733   -e 's:$: $lt_compiler_flag:'`
10734   (eval echo "\"\$as_me:10734: $lt_compile\"" >&5)
10735   (eval "$lt_compile" 2>out/conftest.err)
10736   ac_status=$?
10737   cat out/conftest.err >&5
10738   echo "$as_me:10738: \$? = $ac_status" >&5
10739   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10740   then
10741     # The compiler can only warn and ignore the option if not recognized
10742     # So say no if there are warnings
10743     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10744     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10745     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10746       lt_cv_prog_compiler_c_o=yes
10747     fi
10748   fi
10749   chmod u+w . 2>&5
10750   $RM conftest*
10751   # SGI C++ compiler will create directory out/ii_files/ for
10752   # template instantiation
10753   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10754   $RM out/* && rmdir out
10755   cd ..
10756   $RM -r conftest
10757   $RM conftest*
10758
10759fi
10760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10761$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10762
10763
10764
10765
10766hard_links="nottested"
10767if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10768  # do not overwrite the value of need_locks provided by the user
10769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10770$as_echo_n "checking if we can lock with hard links... " >&6; }
10771  hard_links=yes
10772  $RM conftest*
10773  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10774  touch conftest.a
10775  ln conftest.a conftest.b 2>&5 || hard_links=no
10776  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10778$as_echo "$hard_links" >&6; }
10779  if test "$hard_links" = no; then
10780    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10781$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10782    need_locks=warn
10783  fi
10784else
10785  need_locks=no
10786fi
10787
10788
10789
10790
10791
10792
10793  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10794$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10795
10796  runpath_var=
10797  allow_undefined_flag=
10798  always_export_symbols=no
10799  archive_cmds=
10800  archive_expsym_cmds=
10801  compiler_needs_object=no
10802  enable_shared_with_static_runtimes=no
10803  export_dynamic_flag_spec=
10804  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10805  hardcode_automatic=no
10806  hardcode_direct=no
10807  hardcode_direct_absolute=no
10808  hardcode_libdir_flag_spec=
10809  hardcode_libdir_flag_spec_ld=
10810  hardcode_libdir_separator=
10811  hardcode_minus_L=no
10812  hardcode_shlibpath_var=unsupported
10813  inherit_rpath=no
10814  link_all_deplibs=unknown
10815  module_cmds=
10816  module_expsym_cmds=
10817  old_archive_from_new_cmds=
10818  old_archive_from_expsyms_cmds=
10819  thread_safe_flag_spec=
10820  whole_archive_flag_spec=
10821  # include_expsyms should be a list of space-separated symbols to be *always*
10822  # included in the symbol list
10823  include_expsyms=
10824  # exclude_expsyms can be an extended regexp of symbols to exclude
10825  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10826  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10827  # as well as any symbol that contains `d'.
10828  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10829  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10830  # platforms (ab)use it in PIC code, but their linkers get confused if
10831  # the symbol is explicitly referenced.  Since portable code cannot
10832  # rely on this symbol name, it's probably fine to never include it in
10833  # preloaded symbol tables.
10834  # Exclude shared library initialization/finalization symbols.
10835  extract_expsyms_cmds=
10836
10837  case $host_os in
10838  cygwin* | mingw* | pw32* | cegcc*)
10839    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10840    # When not using gcc, we currently assume that we are using
10841    # Microsoft Visual C++.
10842    if test "$GCC" != yes; then
10843      with_gnu_ld=no
10844    fi
10845    ;;
10846  interix*)
10847    # we just hope/assume this is gcc and not c89 (= MSVC++)
10848    with_gnu_ld=yes
10849    ;;
10850  openbsd*)
10851    with_gnu_ld=no
10852    ;;
10853  esac
10854
10855  ld_shlibs=yes
10856  if test "$with_gnu_ld" = yes; then
10857    # If archive_cmds runs LD, not CC, wlarc should be empty
10858    wlarc='${wl}'
10859
10860    # Set some defaults for GNU ld with shared library support. These
10861    # are reset later if shared libraries are not supported. Putting them
10862    # here allows them to be overridden if necessary.
10863    runpath_var=LD_RUN_PATH
10864    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10865    export_dynamic_flag_spec='${wl}--export-dynamic'
10866    # ancient GNU ld didn't support --whole-archive et. al.
10867    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10868      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10869    else
10870      whole_archive_flag_spec=
10871    fi
10872    supports_anon_versioning=no
10873    case `$LD -v 2>&1` in
10874      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10875      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10876      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10877      *\ 2.11.*) ;; # other 2.11 versions
10878      *) supports_anon_versioning=yes ;;
10879    esac
10880
10881    # See if GNU ld supports shared libraries.
10882    case $host_os in
10883    aix[3-9]*)
10884      # On AIX/PPC, the GNU linker is very broken
10885      if test "$host_cpu" != ia64; then
10886	ld_shlibs=no
10887	cat <<_LT_EOF 1>&2
10888
10889*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10890*** to be unable to reliably create shared libraries on AIX.
10891*** Therefore, libtool is disabling shared libraries support.  If you
10892*** really care for shared libraries, you may want to modify your PATH
10893*** so that a non-GNU linker is found, and then restart.
10894
10895_LT_EOF
10896      fi
10897      ;;
10898
10899    amigaos*)
10900      case $host_cpu in
10901      powerpc)
10902            # see comment about AmigaOS4 .so support
10903            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10904            archive_expsym_cmds=''
10905        ;;
10906      m68k)
10907            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)'
10908            hardcode_libdir_flag_spec='-L$libdir'
10909            hardcode_minus_L=yes
10910        ;;
10911      esac
10912      ;;
10913
10914    beos*)
10915      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10916	allow_undefined_flag=unsupported
10917	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10918	# support --undefined.  This deserves some investigation.  FIXME
10919	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10920      else
10921	ld_shlibs=no
10922      fi
10923      ;;
10924
10925    cygwin* | mingw* | pw32* | cegcc*)
10926      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10927      # as there is no search path for DLLs.
10928      hardcode_libdir_flag_spec='-L$libdir'
10929      allow_undefined_flag=unsupported
10930      always_export_symbols=no
10931      enable_shared_with_static_runtimes=yes
10932      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10933
10934      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10935        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10936	# If the export-symbols file already is a .def file (1st line
10937	# is EXPORTS), use it as is; otherwise, prepend...
10938	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10939	  cp $export_symbols $output_objdir/$soname.def;
10940	else
10941	  echo EXPORTS > $output_objdir/$soname.def;
10942	  cat $export_symbols >> $output_objdir/$soname.def;
10943	fi~
10944	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10945      else
10946	ld_shlibs=no
10947      fi
10948      ;;
10949
10950    interix[3-9]*)
10951      hardcode_direct=no
10952      hardcode_shlibpath_var=no
10953      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10954      export_dynamic_flag_spec='${wl}-E'
10955      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10956      # Instead, shared libraries are loaded at an image base (0x10000000 by
10957      # default) and relocated if they conflict, which is a slow very memory
10958      # consuming and fragmenting process.  To avoid this, we pick a random,
10959      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10960      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10961      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10962      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'
10963      ;;
10964
10965    gnu* | linux* | tpf* | k*bsd*-gnu)
10966      tmp_diet=no
10967      if test "$host_os" = linux-dietlibc; then
10968	case $cc_basename in
10969	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10970	esac
10971      fi
10972      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10973	 && test "$tmp_diet" = no
10974      then
10975	tmp_addflag=
10976	tmp_sharedflag='-shared'
10977	case $cc_basename,$host_cpu in
10978        pgcc*)				# Portland Group C compiler
10979	  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'
10980	  tmp_addflag=' $pic_flag'
10981	  ;;
10982	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
10983	  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'
10984	  tmp_addflag=' $pic_flag -Mnomain' ;;
10985	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10986	  tmp_addflag=' -i_dynamic' ;;
10987	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10988	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10989	ifc* | ifort*)			# Intel Fortran compiler
10990	  tmp_addflag=' -nofor_main' ;;
10991	lf95*)				# Lahey Fortran 8.1
10992	  whole_archive_flag_spec=
10993	  tmp_sharedflag='--shared' ;;
10994	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
10995	  tmp_sharedflag='-qmkshrobj'
10996	  tmp_addflag= ;;
10997	esac
10998	case `$CC -V 2>&1 | sed 5q` in
10999	*Sun\ C*)			# Sun C 5.9
11000	  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'
11001	  compiler_needs_object=yes
11002	  tmp_sharedflag='-G' ;;
11003	*Sun\ F*)			# Sun Fortran 8.3
11004	  tmp_sharedflag='-G' ;;
11005	esac
11006	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11007
11008        if test "x$supports_anon_versioning" = xyes; then
11009          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11010	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11011	    echo "local: *; };" >> $output_objdir/$libname.ver~
11012	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11013        fi
11014
11015	case $cc_basename in
11016	xlf*)
11017	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11018	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11019	  hardcode_libdir_flag_spec=
11020	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
11021	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11022	  if test "x$supports_anon_versioning" = xyes; then
11023	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11024	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11025	      echo "local: *; };" >> $output_objdir/$libname.ver~
11026	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11027	  fi
11028	  ;;
11029	esac
11030      else
11031        ld_shlibs=no
11032      fi
11033      ;;
11034
11035    netbsd*)
11036      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11037	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11038	wlarc=
11039      else
11040	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11041	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11042      fi
11043      ;;
11044
11045    solaris*)
11046      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11047	ld_shlibs=no
11048	cat <<_LT_EOF 1>&2
11049
11050*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11051*** create shared libraries on Solaris systems.  Therefore, libtool
11052*** is disabling shared libraries support.  We urge you to upgrade GNU
11053*** binutils to release 2.9.1 or newer.  Another option is to modify
11054*** your PATH or compiler configuration so that the native linker is
11055*** used, and then restart.
11056
11057_LT_EOF
11058      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11059	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11060	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11061      else
11062	ld_shlibs=no
11063      fi
11064      ;;
11065
11066    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11067      case `$LD -v 2>&1` in
11068        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11069	ld_shlibs=no
11070	cat <<_LT_EOF 1>&2
11071
11072*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11073*** reliably create shared libraries on SCO systems.  Therefore, libtool
11074*** is disabling shared libraries support.  We urge you to upgrade GNU
11075*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11076*** your PATH or compiler configuration so that the native linker is
11077*** used, and then restart.
11078
11079_LT_EOF
11080	;;
11081	*)
11082	  # For security reasons, it is highly recommended that you always
11083	  # use absolute paths for naming shared libraries, and exclude the
11084	  # DT_RUNPATH tag from executables and libraries.  But doing so
11085	  # requires that you compile everything twice, which is a pain.
11086	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11087	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11088	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11089	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11090	  else
11091	    ld_shlibs=no
11092	  fi
11093	;;
11094      esac
11095      ;;
11096
11097    sunos4*)
11098      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11099      wlarc=
11100      hardcode_direct=yes
11101      hardcode_shlibpath_var=no
11102      ;;
11103
11104    *)
11105      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11106	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11107	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11108      else
11109	ld_shlibs=no
11110      fi
11111      ;;
11112    esac
11113
11114    if test "$ld_shlibs" = no; then
11115      runpath_var=
11116      hardcode_libdir_flag_spec=
11117      export_dynamic_flag_spec=
11118      whole_archive_flag_spec=
11119    fi
11120  else
11121    # PORTME fill in a description of your system's linker (not GNU ld)
11122    case $host_os in
11123    aix3*)
11124      allow_undefined_flag=unsupported
11125      always_export_symbols=yes
11126      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'
11127      # Note: this linker hardcodes the directories in LIBPATH if there
11128      # are no directories specified by -L.
11129      hardcode_minus_L=yes
11130      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11131	# Neither direct hardcoding nor static linking is supported with a
11132	# broken collect2.
11133	hardcode_direct=unsupported
11134      fi
11135      ;;
11136
11137    aix[4-9]*)
11138      if test "$host_cpu" = ia64; then
11139	# On IA64, the linker does run time linking by default, so we don't
11140	# have to do anything special.
11141	aix_use_runtimelinking=no
11142	exp_sym_flag='-Bexport'
11143	no_entry_flag=""
11144      else
11145	# If we're using GNU nm, then we don't want the "-C" option.
11146	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11147	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11148	  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'
11149	else
11150	  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'
11151	fi
11152	aix_use_runtimelinking=no
11153
11154	# Test if we are trying to use run time linking or normal
11155	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11156	# need to do runtime linking.
11157	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11158	  for ld_flag in $LDFLAGS; do
11159	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11160	    aix_use_runtimelinking=yes
11161	    break
11162	  fi
11163	  done
11164	  ;;
11165	esac
11166
11167	exp_sym_flag='-bexport'
11168	no_entry_flag='-bnoentry'
11169      fi
11170
11171      # When large executables or shared objects are built, AIX ld can
11172      # have problems creating the table of contents.  If linking a library
11173      # or program results in "error TOC overflow" add -mminimal-toc to
11174      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11175      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11176
11177      archive_cmds=''
11178      hardcode_direct=yes
11179      hardcode_direct_absolute=yes
11180      hardcode_libdir_separator=':'
11181      link_all_deplibs=yes
11182      file_list_spec='${wl}-f,'
11183
11184      if test "$GCC" = yes; then
11185	case $host_os in aix4.[012]|aix4.[012].*)
11186	# We only want to do this on AIX 4.2 and lower, the check
11187	# below for broken collect2 doesn't work under 4.3+
11188	  collect2name=`${CC} -print-prog-name=collect2`
11189	  if test -f "$collect2name" &&
11190	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11191	  then
11192	  # We have reworked collect2
11193	  :
11194	  else
11195	  # We have old collect2
11196	  hardcode_direct=unsupported
11197	  # It fails to find uninstalled libraries when the uninstalled
11198	  # path is not listed in the libpath.  Setting hardcode_minus_L
11199	  # to unsupported forces relinking
11200	  hardcode_minus_L=yes
11201	  hardcode_libdir_flag_spec='-L$libdir'
11202	  hardcode_libdir_separator=
11203	  fi
11204	  ;;
11205	esac
11206	shared_flag='-shared'
11207	if test "$aix_use_runtimelinking" = yes; then
11208	  shared_flag="$shared_flag "'${wl}-G'
11209	fi
11210      else
11211	# not using gcc
11212	if test "$host_cpu" = ia64; then
11213	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11214	# chokes on -Wl,-G. The following line is correct:
11215	  shared_flag='-G'
11216	else
11217	  if test "$aix_use_runtimelinking" = yes; then
11218	    shared_flag='${wl}-G'
11219	  else
11220	    shared_flag='${wl}-bM:SRE'
11221	  fi
11222	fi
11223      fi
11224
11225      export_dynamic_flag_spec='${wl}-bexpall'
11226      # It seems that -bexpall does not export symbols beginning with
11227      # underscore (_), so it is better to generate a list of symbols to export.
11228      always_export_symbols=yes
11229      if test "$aix_use_runtimelinking" = yes; then
11230	# Warning - without using the other runtime loading flags (-brtl),
11231	# -berok will link without error, but may produce a broken library.
11232	allow_undefined_flag='-berok'
11233        # Determine the default libpath from the value encoded in an
11234        # empty executable.
11235        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236/* end confdefs.h.  */
11237
11238int
11239main ()
11240{
11241
11242  ;
11243  return 0;
11244}
11245_ACEOF
11246if ac_fn_c_try_link "$LINENO"; then :
11247
11248lt_aix_libpath_sed='
11249    /Import File Strings/,/^$/ {
11250	/^0/ {
11251	    s/^0  *\(.*\)$/\1/
11252	    p
11253	}
11254    }'
11255aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11256# Check for a 64-bit object if we didn't find anything.
11257if test -z "$aix_libpath"; then
11258  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11259fi
11260fi
11261rm -f core conftest.err conftest.$ac_objext \
11262    conftest$ac_exeext conftest.$ac_ext
11263if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11264
11265        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11266        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"
11267      else
11268	if test "$host_cpu" = ia64; then
11269	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11270	  allow_undefined_flag="-z nodefs"
11271	  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"
11272	else
11273	 # Determine the default libpath from the value encoded in an
11274	 # empty executable.
11275	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276/* end confdefs.h.  */
11277
11278int
11279main ()
11280{
11281
11282  ;
11283  return 0;
11284}
11285_ACEOF
11286if ac_fn_c_try_link "$LINENO"; then :
11287
11288lt_aix_libpath_sed='
11289    /Import File Strings/,/^$/ {
11290	/^0/ {
11291	    s/^0  *\(.*\)$/\1/
11292	    p
11293	}
11294    }'
11295aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11296# Check for a 64-bit object if we didn't find anything.
11297if test -z "$aix_libpath"; then
11298  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11299fi
11300fi
11301rm -f core conftest.err conftest.$ac_objext \
11302    conftest$ac_exeext conftest.$ac_ext
11303if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11304
11305	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11306	  # Warning - without using the other run time loading flags,
11307	  # -berok will link without error, but may produce a broken library.
11308	  no_undefined_flag=' ${wl}-bernotok'
11309	  allow_undefined_flag=' ${wl}-berok'
11310	  # Exported symbols can be pulled into shared objects from archives
11311	  whole_archive_flag_spec='$convenience'
11312	  archive_cmds_need_lc=yes
11313	  # This is similar to how AIX traditionally builds its shared libraries.
11314	  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'
11315	fi
11316      fi
11317      ;;
11318
11319    amigaos*)
11320      case $host_cpu in
11321      powerpc)
11322            # see comment about AmigaOS4 .so support
11323            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11324            archive_expsym_cmds=''
11325        ;;
11326      m68k)
11327            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)'
11328            hardcode_libdir_flag_spec='-L$libdir'
11329            hardcode_minus_L=yes
11330        ;;
11331      esac
11332      ;;
11333
11334    bsdi[45]*)
11335      export_dynamic_flag_spec=-rdynamic
11336      ;;
11337
11338    cygwin* | mingw* | pw32* | cegcc*)
11339      # When not using gcc, we currently assume that we are using
11340      # Microsoft Visual C++.
11341      # hardcode_libdir_flag_spec is actually meaningless, as there is
11342      # no search path for DLLs.
11343      hardcode_libdir_flag_spec=' '
11344      allow_undefined_flag=unsupported
11345      # Tell ltmain to make .lib files, not .a files.
11346      libext=lib
11347      # Tell ltmain to make .dll files, not .so files.
11348      shrext_cmds=".dll"
11349      # FIXME: Setting linknames here is a bad hack.
11350      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11351      # The linker will automatically build a .lib file if we build a DLL.
11352      old_archive_from_new_cmds='true'
11353      # FIXME: Should let the user specify the lib program.
11354      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11355      fix_srcfile_path='`cygpath -w "$srcfile"`'
11356      enable_shared_with_static_runtimes=yes
11357      ;;
11358
11359    darwin* | rhapsody*)
11360
11361
11362  archive_cmds_need_lc=no
11363  hardcode_direct=no
11364  hardcode_automatic=yes
11365  hardcode_shlibpath_var=unsupported
11366  whole_archive_flag_spec=''
11367  link_all_deplibs=yes
11368  allow_undefined_flag="$_lt_dar_allow_undefined"
11369  case $cc_basename in
11370     ifort*) _lt_dar_can_shared=yes ;;
11371     *) _lt_dar_can_shared=$GCC ;;
11372  esac
11373  if test "$_lt_dar_can_shared" = "yes"; then
11374    output_verbose_link_cmd=echo
11375    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11376    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11377    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}"
11378    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}"
11379
11380  else
11381  ld_shlibs=no
11382  fi
11383
11384      ;;
11385
11386    dgux*)
11387      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11388      hardcode_libdir_flag_spec='-L$libdir'
11389      hardcode_shlibpath_var=no
11390      ;;
11391
11392    freebsd1*)
11393      ld_shlibs=no
11394      ;;
11395
11396    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11397    # support.  Future versions do this automatically, but an explicit c++rt0.o
11398    # does not break anything, and helps significantly (at the cost of a little
11399    # extra space).
11400    freebsd2.2*)
11401      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11402      hardcode_libdir_flag_spec='-R$libdir'
11403      hardcode_direct=yes
11404      hardcode_shlibpath_var=no
11405      ;;
11406
11407    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11408    freebsd2*)
11409      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11410      hardcode_direct=yes
11411      hardcode_minus_L=yes
11412      hardcode_shlibpath_var=no
11413      ;;
11414
11415    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11416    freebsd* | dragonfly*)
11417      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11418      hardcode_libdir_flag_spec='-R$libdir'
11419      hardcode_direct=yes
11420      hardcode_shlibpath_var=no
11421      ;;
11422
11423    hpux9*)
11424      if test "$GCC" = yes; then
11425	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'
11426      else
11427	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'
11428      fi
11429      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11430      hardcode_libdir_separator=:
11431      hardcode_direct=yes
11432
11433      # hardcode_minus_L: Not really in the search PATH,
11434      # but as the default location of the library.
11435      hardcode_minus_L=yes
11436      export_dynamic_flag_spec='${wl}-E'
11437      ;;
11438
11439    hpux10*)
11440      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11441	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11442      else
11443	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11444      fi
11445      if test "$with_gnu_ld" = no; then
11446	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11447	hardcode_libdir_flag_spec_ld='+b $libdir'
11448	hardcode_libdir_separator=:
11449	hardcode_direct=yes
11450	hardcode_direct_absolute=yes
11451	export_dynamic_flag_spec='${wl}-E'
11452	# hardcode_minus_L: Not really in the search PATH,
11453	# but as the default location of the library.
11454	hardcode_minus_L=yes
11455      fi
11456      ;;
11457
11458    hpux11*)
11459      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11460	case $host_cpu in
11461	hppa*64*)
11462	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11463	  ;;
11464	ia64*)
11465	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11466	  ;;
11467	*)
11468	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11469	  ;;
11470	esac
11471      else
11472	case $host_cpu in
11473	hppa*64*)
11474	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11475	  ;;
11476	ia64*)
11477	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11478	  ;;
11479	*)
11480	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11481	  ;;
11482	esac
11483      fi
11484      if test "$with_gnu_ld" = no; then
11485	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11486	hardcode_libdir_separator=:
11487
11488	case $host_cpu in
11489	hppa*64*|ia64*)
11490	  hardcode_direct=no
11491	  hardcode_shlibpath_var=no
11492	  ;;
11493	*)
11494	  hardcode_direct=yes
11495	  hardcode_direct_absolute=yes
11496	  export_dynamic_flag_spec='${wl}-E'
11497
11498	  # hardcode_minus_L: Not really in the search PATH,
11499	  # but as the default location of the library.
11500	  hardcode_minus_L=yes
11501	  ;;
11502	esac
11503      fi
11504      ;;
11505
11506    irix5* | irix6* | nonstopux*)
11507      if test "$GCC" = yes; then
11508	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'
11509	# Try to use the -exported_symbol ld option, if it does not
11510	# work, assume that -exports_file does not work either and
11511	# implicitly export all symbols.
11512        save_LDFLAGS="$LDFLAGS"
11513        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11514        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515/* end confdefs.h.  */
11516int foo(void) {}
11517_ACEOF
11518if ac_fn_c_try_link "$LINENO"; then :
11519  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'
11520
11521fi
11522rm -f core conftest.err conftest.$ac_objext \
11523    conftest$ac_exeext conftest.$ac_ext
11524        LDFLAGS="$save_LDFLAGS"
11525      else
11526	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'
11527	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'
11528      fi
11529      archive_cmds_need_lc='no'
11530      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11531      hardcode_libdir_separator=:
11532      inherit_rpath=yes
11533      link_all_deplibs=yes
11534      ;;
11535
11536    netbsd*)
11537      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11538	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11539      else
11540	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11541      fi
11542      hardcode_libdir_flag_spec='-R$libdir'
11543      hardcode_direct=yes
11544      hardcode_shlibpath_var=no
11545      ;;
11546
11547    newsos6)
11548      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11549      hardcode_direct=yes
11550      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11551      hardcode_libdir_separator=:
11552      hardcode_shlibpath_var=no
11553      ;;
11554
11555    *nto* | *qnx*)
11556      ;;
11557
11558    openbsd*)
11559      if test -f /usr/libexec/ld.so; then
11560	hardcode_direct=yes
11561	hardcode_shlibpath_var=no
11562	hardcode_direct_absolute=yes
11563	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11564	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11565	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11566	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11567	  export_dynamic_flag_spec='${wl}-E'
11568	else
11569	  case $host_os in
11570	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11571	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11572	     hardcode_libdir_flag_spec='-R$libdir'
11573	     ;;
11574	   *)
11575	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11576	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11577	     ;;
11578	  esac
11579	fi
11580      else
11581	ld_shlibs=no
11582      fi
11583      ;;
11584
11585    os2*)
11586      hardcode_libdir_flag_spec='-L$libdir'
11587      hardcode_minus_L=yes
11588      allow_undefined_flag=unsupported
11589      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'
11590      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11591      ;;
11592
11593    osf3*)
11594      if test "$GCC" = yes; then
11595	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11596	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'
11597      else
11598	allow_undefined_flag=' -expect_unresolved \*'
11599	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'
11600      fi
11601      archive_cmds_need_lc='no'
11602      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11603      hardcode_libdir_separator=:
11604      ;;
11605
11606    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11607      if test "$GCC" = yes; then
11608	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11609	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'
11610	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11611      else
11612	allow_undefined_flag=' -expect_unresolved \*'
11613	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'
11614	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~
11615	$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'
11616
11617	# Both c and cxx compiler support -rpath directly
11618	hardcode_libdir_flag_spec='-rpath $libdir'
11619      fi
11620      archive_cmds_need_lc='no'
11621      hardcode_libdir_separator=:
11622      ;;
11623
11624    solaris*)
11625      no_undefined_flag=' -z defs'
11626      if test "$GCC" = yes; then
11627	wlarc='${wl}'
11628	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11629	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11630	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11631      else
11632	case `$CC -V 2>&1` in
11633	*"Compilers 5.0"*)
11634	  wlarc=''
11635	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11636	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11637	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11638	  ;;
11639	*)
11640	  wlarc='${wl}'
11641	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11642	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11643	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11644	  ;;
11645	esac
11646      fi
11647      hardcode_libdir_flag_spec='-R$libdir'
11648      hardcode_shlibpath_var=no
11649      case $host_os in
11650      solaris2.[0-5] | solaris2.[0-5].*) ;;
11651      *)
11652	# The compiler driver will combine and reorder linker options,
11653	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11654	# but is careful enough not to reorder.
11655	# Supported since Solaris 2.6 (maybe 2.5.1?)
11656	if test "$GCC" = yes; then
11657	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11658	else
11659	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11660	fi
11661	;;
11662      esac
11663      link_all_deplibs=yes
11664      ;;
11665
11666    sunos4*)
11667      if test "x$host_vendor" = xsequent; then
11668	# Use $CC to link under sequent, because it throws in some extra .o
11669	# files that make .init and .fini sections work.
11670	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11671      else
11672	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11673      fi
11674      hardcode_libdir_flag_spec='-L$libdir'
11675      hardcode_direct=yes
11676      hardcode_minus_L=yes
11677      hardcode_shlibpath_var=no
11678      ;;
11679
11680    sysv4)
11681      case $host_vendor in
11682	sni)
11683	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11684	  hardcode_direct=yes # is this really true???
11685	;;
11686	siemens)
11687	  ## LD is ld it makes a PLAMLIB
11688	  ## CC just makes a GrossModule.
11689	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11690	  reload_cmds='$CC -r -o $output$reload_objs'
11691	  hardcode_direct=no
11692        ;;
11693	motorola)
11694	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11695	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11696	;;
11697      esac
11698      runpath_var='LD_RUN_PATH'
11699      hardcode_shlibpath_var=no
11700      ;;
11701
11702    sysv4.3*)
11703      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11704      hardcode_shlibpath_var=no
11705      export_dynamic_flag_spec='-Bexport'
11706      ;;
11707
11708    sysv4*MP*)
11709      if test -d /usr/nec; then
11710	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11711	hardcode_shlibpath_var=no
11712	runpath_var=LD_RUN_PATH
11713	hardcode_runpath_var=yes
11714	ld_shlibs=yes
11715      fi
11716      ;;
11717
11718    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11719      no_undefined_flag='${wl}-z,text'
11720      archive_cmds_need_lc=no
11721      hardcode_shlibpath_var=no
11722      runpath_var='LD_RUN_PATH'
11723
11724      if test "$GCC" = yes; then
11725	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11726	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11727      else
11728	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11729	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11730      fi
11731      ;;
11732
11733    sysv5* | sco3.2v5* | sco5v6*)
11734      # Note: We can NOT use -z defs as we might desire, because we do not
11735      # link with -lc, and that would cause any symbols used from libc to
11736      # always be unresolved, which means just about no library would
11737      # ever link correctly.  If we're not using GNU ld we use -z text
11738      # though, which does catch some bad symbols but isn't as heavy-handed
11739      # as -z defs.
11740      no_undefined_flag='${wl}-z,text'
11741      allow_undefined_flag='${wl}-z,nodefs'
11742      archive_cmds_need_lc=no
11743      hardcode_shlibpath_var=no
11744      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11745      hardcode_libdir_separator=':'
11746      link_all_deplibs=yes
11747      export_dynamic_flag_spec='${wl}-Bexport'
11748      runpath_var='LD_RUN_PATH'
11749
11750      if test "$GCC" = yes; then
11751	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11752	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11753      else
11754	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11755	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11756      fi
11757      ;;
11758
11759    uts4*)
11760      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11761      hardcode_libdir_flag_spec='-L$libdir'
11762      hardcode_shlibpath_var=no
11763      ;;
11764
11765    *)
11766      ld_shlibs=no
11767      ;;
11768    esac
11769
11770    if test x$host_vendor = xsni; then
11771      case $host in
11772      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11773	export_dynamic_flag_spec='${wl}-Blargedynsym'
11774	;;
11775      esac
11776    fi
11777  fi
11778
11779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11780$as_echo "$ld_shlibs" >&6; }
11781test "$ld_shlibs" = no && can_build_shared=no
11782
11783with_gnu_ld=$with_gnu_ld
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799#
11800# Do we need to explicitly link libc?
11801#
11802case "x$archive_cmds_need_lc" in
11803x|xyes)
11804  # Assume -lc should be added
11805  archive_cmds_need_lc=yes
11806
11807  if test "$enable_shared" = yes && test "$GCC" = yes; then
11808    case $archive_cmds in
11809    *'~'*)
11810      # FIXME: we may have to deal with multi-command sequences.
11811      ;;
11812    '$CC '*)
11813      # Test whether the compiler implicitly links with -lc since on some
11814      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11815      # to ld, don't add -lc before -lgcc.
11816      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11817$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11818      $RM conftest*
11819      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11820
11821      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11822  (eval $ac_compile) 2>&5
11823  ac_status=$?
11824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11825  test $ac_status = 0; } 2>conftest.err; then
11826        soname=conftest
11827        lib=conftest
11828        libobjs=conftest.$ac_objext
11829        deplibs=
11830        wl=$lt_prog_compiler_wl
11831	pic_flag=$lt_prog_compiler_pic
11832        compiler_flags=-v
11833        linker_flags=-v
11834        verstring=
11835        output_objdir=.
11836        libname=conftest
11837        lt_save_allow_undefined_flag=$allow_undefined_flag
11838        allow_undefined_flag=
11839        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11840  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11841  ac_status=$?
11842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11843  test $ac_status = 0; }
11844        then
11845	  archive_cmds_need_lc=no
11846        else
11847	  archive_cmds_need_lc=yes
11848        fi
11849        allow_undefined_flag=$lt_save_allow_undefined_flag
11850      else
11851        cat conftest.err 1>&5
11852      fi
11853      $RM conftest*
11854      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11855$as_echo "$archive_cmds_need_lc" >&6; }
11856      ;;
11857    esac
11858  fi
11859  ;;
11860esac
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12019$as_echo_n "checking dynamic linker characteristics... " >&6; }
12020
12021if test "$GCC" = yes; then
12022  case $host_os in
12023    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12024    *) lt_awk_arg="/^libraries:/" ;;
12025  esac
12026  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12027  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12028    # if the path contains ";" then we assume it to be the separator
12029    # otherwise default to the standard path separator (i.e. ":") - it is
12030    # assumed that no part of a normal pathname contains ";" but that should
12031    # okay in the real world where ";" in dirpaths is itself problematic.
12032    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12033  else
12034    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12035  fi
12036  # Ok, now we have the path, separated by spaces, we can step through it
12037  # and add multilib dir if necessary.
12038  lt_tmp_lt_search_path_spec=
12039  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12040  for lt_sys_path in $lt_search_path_spec; do
12041    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12042      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12043    else
12044      test -d "$lt_sys_path" && \
12045	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12046    fi
12047  done
12048  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12049BEGIN {RS=" "; FS="/|\n";} {
12050  lt_foo="";
12051  lt_count=0;
12052  for (lt_i = NF; lt_i > 0; lt_i--) {
12053    if ($lt_i != "" && $lt_i != ".") {
12054      if ($lt_i == "..") {
12055        lt_count++;
12056      } else {
12057        if (lt_count == 0) {
12058          lt_foo="/" $lt_i lt_foo;
12059        } else {
12060          lt_count--;
12061        }
12062      }
12063    }
12064  }
12065  if (lt_foo != "") { lt_freq[lt_foo]++; }
12066  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12067}'`
12068  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12069else
12070  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12071fi
12072library_names_spec=
12073libname_spec='lib$name'
12074soname_spec=
12075shrext_cmds=".so"
12076postinstall_cmds=
12077postuninstall_cmds=
12078finish_cmds=
12079finish_eval=
12080shlibpath_var=
12081shlibpath_overrides_runpath=unknown
12082version_type=none
12083dynamic_linker="$host_os ld.so"
12084sys_lib_dlsearch_path_spec="/lib /usr/lib"
12085need_lib_prefix=unknown
12086hardcode_into_libs=no
12087
12088# when you set need_version to no, make sure it does not cause -set_version
12089# flags to be left without arguments
12090need_version=unknown
12091
12092case $host_os in
12093aix3*)
12094  version_type=linux
12095  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12096  shlibpath_var=LIBPATH
12097
12098  # AIX 3 has no versioning support, so we append a major version to the name.
12099  soname_spec='${libname}${release}${shared_ext}$major'
12100  ;;
12101
12102aix[4-9]*)
12103  version_type=linux
12104  need_lib_prefix=no
12105  need_version=no
12106  hardcode_into_libs=yes
12107  if test "$host_cpu" = ia64; then
12108    # AIX 5 supports IA64
12109    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12110    shlibpath_var=LD_LIBRARY_PATH
12111  else
12112    # With GCC up to 2.95.x, collect2 would create an import file
12113    # for dependence libraries.  The import file would start with
12114    # the line `#! .'.  This would cause the generated library to
12115    # depend on `.', always an invalid library.  This was fixed in
12116    # development snapshots of GCC prior to 3.0.
12117    case $host_os in
12118      aix4 | aix4.[01] | aix4.[01].*)
12119      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12120	   echo ' yes '
12121	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12122	:
12123      else
12124	can_build_shared=no
12125      fi
12126      ;;
12127    esac
12128    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12129    # soname into executable. Probably we can add versioning support to
12130    # collect2, so additional links can be useful in future.
12131    if test "$aix_use_runtimelinking" = yes; then
12132      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12133      # instead of lib<name>.a to let people know that these are not
12134      # typical AIX shared libraries.
12135      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12136    else
12137      # We preserve .a as extension for shared libraries through AIX4.2
12138      # and later when we are not doing run time linking.
12139      library_names_spec='${libname}${release}.a $libname.a'
12140      soname_spec='${libname}${release}${shared_ext}$major'
12141    fi
12142    shlibpath_var=LIBPATH
12143  fi
12144  ;;
12145
12146amigaos*)
12147  case $host_cpu in
12148  powerpc)
12149    # Since July 2007 AmigaOS4 officially supports .so libraries.
12150    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12151    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12152    ;;
12153  m68k)
12154    library_names_spec='$libname.ixlibrary $libname.a'
12155    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12156    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'
12157    ;;
12158  esac
12159  ;;
12160
12161beos*)
12162  library_names_spec='${libname}${shared_ext}'
12163  dynamic_linker="$host_os ld.so"
12164  shlibpath_var=LIBRARY_PATH
12165  ;;
12166
12167bsdi[45]*)
12168  version_type=linux
12169  need_version=no
12170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12171  soname_spec='${libname}${release}${shared_ext}$major'
12172  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12173  shlibpath_var=LD_LIBRARY_PATH
12174  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12175  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12176  # the default ld.so.conf also contains /usr/contrib/lib and
12177  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12178  # libtool to hard-code these into programs
12179  ;;
12180
12181cygwin* | mingw* | pw32* | cegcc*)
12182  version_type=windows
12183  shrext_cmds=".dll"
12184  need_version=no
12185  need_lib_prefix=no
12186
12187  case $GCC,$host_os in
12188  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12189    library_names_spec='$libname.dll.a'
12190    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12191    postinstall_cmds='base_file=`basename \${file}`~
12192      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12193      dldir=$destdir/`dirname \$dlpath`~
12194      test -d \$dldir || mkdir -p \$dldir~
12195      $install_prog $dir/$dlname \$dldir/$dlname~
12196      chmod a+x \$dldir/$dlname~
12197      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12198        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12199      fi'
12200    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12201      dlpath=$dir/\$dldll~
12202       $RM \$dlpath'
12203    shlibpath_overrides_runpath=yes
12204
12205    case $host_os in
12206    cygwin*)
12207      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12208      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12209      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12210      ;;
12211    mingw* | cegcc*)
12212      # MinGW DLLs use traditional 'lib' prefix
12213      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12214      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12215      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12216        # It is most probably a Windows format PATH printed by
12217        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12218        # path with ; separators, and with drive letters. We can handle the
12219        # drive letters (cygwin fileutils understands them), so leave them,
12220        # especially as we might pass files found there to a mingw objdump,
12221        # which wouldn't understand a cygwinified path. Ahh.
12222        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12223      else
12224        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12225      fi
12226      ;;
12227    pw32*)
12228      # pw32 DLLs use 'pw' prefix rather than 'lib'
12229      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12230      ;;
12231    esac
12232    ;;
12233
12234  *)
12235    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12236    ;;
12237  esac
12238  dynamic_linker='Win32 ld.exe'
12239  # FIXME: first we should search . and the directory the executable is in
12240  shlibpath_var=PATH
12241  ;;
12242
12243darwin* | rhapsody*)
12244  dynamic_linker="$host_os dyld"
12245  version_type=darwin
12246  need_lib_prefix=no
12247  need_version=no
12248  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12249  soname_spec='${libname}${release}${major}$shared_ext'
12250  shlibpath_overrides_runpath=yes
12251  shlibpath_var=DYLD_LIBRARY_PATH
12252  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12253
12254  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12255  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12256  ;;
12257
12258dgux*)
12259  version_type=linux
12260  need_lib_prefix=no
12261  need_version=no
12262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12263  soname_spec='${libname}${release}${shared_ext}$major'
12264  shlibpath_var=LD_LIBRARY_PATH
12265  ;;
12266
12267freebsd1*)
12268  dynamic_linker=no
12269  ;;
12270
12271freebsd* | dragonfly*)
12272  # DragonFly does not have aout.  When/if they implement a new
12273  # versioning mechanism, adjust this.
12274  if test -x /usr/bin/objformat; then
12275    objformat=`/usr/bin/objformat`
12276  else
12277    case $host_os in
12278    freebsd[123]*) objformat=aout ;;
12279    *) objformat=elf ;;
12280    esac
12281  fi
12282  version_type=freebsd-$objformat
12283  case $version_type in
12284    freebsd-elf*)
12285      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12286      need_version=no
12287      need_lib_prefix=no
12288      ;;
12289    freebsd-*)
12290      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12291      need_version=yes
12292      ;;
12293  esac
12294  shlibpath_var=LD_LIBRARY_PATH
12295  case $host_os in
12296  freebsd2*)
12297    shlibpath_overrides_runpath=yes
12298    ;;
12299  freebsd3.[01]* | freebsdelf3.[01]*)
12300    shlibpath_overrides_runpath=yes
12301    hardcode_into_libs=yes
12302    ;;
12303  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12304  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12305    shlibpath_overrides_runpath=no
12306    hardcode_into_libs=yes
12307    ;;
12308  *) # from 4.6 on, and DragonFly
12309    shlibpath_overrides_runpath=yes
12310    hardcode_into_libs=yes
12311    ;;
12312  esac
12313  ;;
12314
12315gnu*)
12316  version_type=linux
12317  need_lib_prefix=no
12318  need_version=no
12319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12320  soname_spec='${libname}${release}${shared_ext}$major'
12321  shlibpath_var=LD_LIBRARY_PATH
12322  hardcode_into_libs=yes
12323  ;;
12324
12325hpux9* | hpux10* | hpux11*)
12326  # Give a soname corresponding to the major version so that dld.sl refuses to
12327  # link against other versions.
12328  version_type=sunos
12329  need_lib_prefix=no
12330  need_version=no
12331  case $host_cpu in
12332  ia64*)
12333    shrext_cmds='.so'
12334    hardcode_into_libs=yes
12335    dynamic_linker="$host_os dld.so"
12336    shlibpath_var=LD_LIBRARY_PATH
12337    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12338    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339    soname_spec='${libname}${release}${shared_ext}$major'
12340    if test "X$HPUX_IA64_MODE" = X32; then
12341      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12342    else
12343      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12344    fi
12345    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12346    ;;
12347  hppa*64*)
12348    shrext_cmds='.sl'
12349    hardcode_into_libs=yes
12350    dynamic_linker="$host_os dld.sl"
12351    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12352    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12353    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12354    soname_spec='${libname}${release}${shared_ext}$major'
12355    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12356    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12357    ;;
12358  *)
12359    shrext_cmds='.sl'
12360    dynamic_linker="$host_os dld.sl"
12361    shlibpath_var=SHLIB_PATH
12362    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12363    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12364    soname_spec='${libname}${release}${shared_ext}$major'
12365    ;;
12366  esac
12367  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12368  postinstall_cmds='chmod 555 $lib'
12369  ;;
12370
12371interix[3-9]*)
12372  version_type=linux
12373  need_lib_prefix=no
12374  need_version=no
12375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12376  soname_spec='${libname}${release}${shared_ext}$major'
12377  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12378  shlibpath_var=LD_LIBRARY_PATH
12379  shlibpath_overrides_runpath=no
12380  hardcode_into_libs=yes
12381  ;;
12382
12383irix5* | irix6* | nonstopux*)
12384  case $host_os in
12385    nonstopux*) version_type=nonstopux ;;
12386    *)
12387	if test "$lt_cv_prog_gnu_ld" = yes; then
12388		version_type=linux
12389	else
12390		version_type=irix
12391	fi ;;
12392  esac
12393  need_lib_prefix=no
12394  need_version=no
12395  soname_spec='${libname}${release}${shared_ext}$major'
12396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12397  case $host_os in
12398  irix5* | nonstopux*)
12399    libsuff= shlibsuff=
12400    ;;
12401  *)
12402    case $LD in # libtool.m4 will add one of these switches to LD
12403    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12404      libsuff= shlibsuff= libmagic=32-bit;;
12405    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12406      libsuff=32 shlibsuff=N32 libmagic=N32;;
12407    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12408      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12409    *) libsuff= shlibsuff= libmagic=never-match;;
12410    esac
12411    ;;
12412  esac
12413  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12414  shlibpath_overrides_runpath=no
12415  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12416  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12417  hardcode_into_libs=yes
12418  ;;
12419
12420# No shared lib support for Linux oldld, aout, or coff.
12421linux*oldld* | linux*aout* | linux*coff*)
12422  dynamic_linker=no
12423  ;;
12424
12425# This must be Linux ELF.
12426linux* | k*bsd*-gnu)
12427  version_type=linux
12428  need_lib_prefix=no
12429  need_version=no
12430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12431  soname_spec='${libname}${release}${shared_ext}$major'
12432  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12433  shlibpath_var=LD_LIBRARY_PATH
12434  shlibpath_overrides_runpath=no
12435  # Some binutils ld are patched to set DT_RUNPATH
12436  save_LDFLAGS=$LDFLAGS
12437  save_libdir=$libdir
12438  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12439       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441/* end confdefs.h.  */
12442
12443int
12444main ()
12445{
12446
12447  ;
12448  return 0;
12449}
12450_ACEOF
12451if ac_fn_c_try_link "$LINENO"; then :
12452  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12453  shlibpath_overrides_runpath=yes
12454fi
12455fi
12456rm -f core conftest.err conftest.$ac_objext \
12457    conftest$ac_exeext conftest.$ac_ext
12458  LDFLAGS=$save_LDFLAGS
12459  libdir=$save_libdir
12460
12461  # This implies no fast_install, which is unacceptable.
12462  # Some rework will be needed to allow for fast_install
12463  # before this can be enabled.
12464  hardcode_into_libs=yes
12465
12466  # Add ABI-specific directories to the system library path.
12467  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12468
12469  # Append ld.so.conf contents to the search path
12470  if test -f /etc/ld.so.conf; then
12471    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' ' '`
12472    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12473  fi
12474
12475  # We used to test for /lib/ld.so.1 and disable shared libraries on
12476  # powerpc, because MkLinux only supported shared libraries with the
12477  # GNU dynamic linker.  Since this was broken with cross compilers,
12478  # most powerpc-linux boxes support dynamic linking these days and
12479  # people can always --disable-shared, the test was removed, and we
12480  # assume the GNU/Linux dynamic linker is in use.
12481  dynamic_linker='GNU/Linux ld.so'
12482  ;;
12483
12484netbsd*)
12485  version_type=sunos
12486  need_lib_prefix=no
12487  need_version=no
12488  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12489    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12490    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12491    dynamic_linker='NetBSD (a.out) ld.so'
12492  else
12493    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12494    soname_spec='${libname}${release}${shared_ext}$major'
12495    dynamic_linker='NetBSD ld.elf_so'
12496  fi
12497  shlibpath_var=LD_LIBRARY_PATH
12498  shlibpath_overrides_runpath=yes
12499  hardcode_into_libs=yes
12500  ;;
12501
12502newsos6)
12503  version_type=linux
12504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12505  shlibpath_var=LD_LIBRARY_PATH
12506  shlibpath_overrides_runpath=yes
12507  ;;
12508
12509*nto* | *qnx*)
12510  version_type=qnx
12511  need_lib_prefix=no
12512  need_version=no
12513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12514  soname_spec='${libname}${release}${shared_ext}$major'
12515  shlibpath_var=LD_LIBRARY_PATH
12516  shlibpath_overrides_runpath=no
12517  hardcode_into_libs=yes
12518  dynamic_linker='ldqnx.so'
12519  ;;
12520
12521openbsd*)
12522  version_type=sunos
12523  sys_lib_dlsearch_path_spec="/usr/lib"
12524  need_lib_prefix=no
12525  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12526  case $host_os in
12527    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12528    *)				need_version=no  ;;
12529  esac
12530  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12531  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12532  shlibpath_var=LD_LIBRARY_PATH
12533  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12534    case $host_os in
12535      openbsd2.[89] | openbsd2.[89].*)
12536	shlibpath_overrides_runpath=no
12537	;;
12538      *)
12539	shlibpath_overrides_runpath=yes
12540	;;
12541      esac
12542  else
12543    shlibpath_overrides_runpath=yes
12544  fi
12545  ;;
12546
12547os2*)
12548  libname_spec='$name'
12549  shrext_cmds=".dll"
12550  need_lib_prefix=no
12551  library_names_spec='$libname${shared_ext} $libname.a'
12552  dynamic_linker='OS/2 ld.exe'
12553  shlibpath_var=LIBPATH
12554  ;;
12555
12556osf3* | osf4* | osf5*)
12557  version_type=osf
12558  need_lib_prefix=no
12559  need_version=no
12560  soname_spec='${libname}${release}${shared_ext}$major'
12561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12562  shlibpath_var=LD_LIBRARY_PATH
12563  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12564  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12565  ;;
12566
12567rdos*)
12568  dynamic_linker=no
12569  ;;
12570
12571solaris*)
12572  version_type=linux
12573  need_lib_prefix=no
12574  need_version=no
12575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12576  soname_spec='${libname}${release}${shared_ext}$major'
12577  shlibpath_var=LD_LIBRARY_PATH
12578  shlibpath_overrides_runpath=yes
12579  hardcode_into_libs=yes
12580  # ldd complains unless libraries are executable
12581  postinstall_cmds='chmod +x $lib'
12582  ;;
12583
12584sunos4*)
12585  version_type=sunos
12586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12587  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12588  shlibpath_var=LD_LIBRARY_PATH
12589  shlibpath_overrides_runpath=yes
12590  if test "$with_gnu_ld" = yes; then
12591    need_lib_prefix=no
12592  fi
12593  need_version=yes
12594  ;;
12595
12596sysv4 | sysv4.3*)
12597  version_type=linux
12598  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12599  soname_spec='${libname}${release}${shared_ext}$major'
12600  shlibpath_var=LD_LIBRARY_PATH
12601  case $host_vendor in
12602    sni)
12603      shlibpath_overrides_runpath=no
12604      need_lib_prefix=no
12605      runpath_var=LD_RUN_PATH
12606      ;;
12607    siemens)
12608      need_lib_prefix=no
12609      ;;
12610    motorola)
12611      need_lib_prefix=no
12612      need_version=no
12613      shlibpath_overrides_runpath=no
12614      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12615      ;;
12616  esac
12617  ;;
12618
12619sysv4*MP*)
12620  if test -d /usr/nec ;then
12621    version_type=linux
12622    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12623    soname_spec='$libname${shared_ext}.$major'
12624    shlibpath_var=LD_LIBRARY_PATH
12625  fi
12626  ;;
12627
12628sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12629  version_type=freebsd-elf
12630  need_lib_prefix=no
12631  need_version=no
12632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12633  soname_spec='${libname}${release}${shared_ext}$major'
12634  shlibpath_var=LD_LIBRARY_PATH
12635  shlibpath_overrides_runpath=yes
12636  hardcode_into_libs=yes
12637  if test "$with_gnu_ld" = yes; then
12638    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12639  else
12640    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12641    case $host_os in
12642      sco3.2v5*)
12643        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12644	;;
12645    esac
12646  fi
12647  sys_lib_dlsearch_path_spec='/usr/lib'
12648  ;;
12649
12650tpf*)
12651  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12652  version_type=linux
12653  need_lib_prefix=no
12654  need_version=no
12655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12656  shlibpath_var=LD_LIBRARY_PATH
12657  shlibpath_overrides_runpath=no
12658  hardcode_into_libs=yes
12659  ;;
12660
12661uts4*)
12662  version_type=linux
12663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12664  soname_spec='${libname}${release}${shared_ext}$major'
12665  shlibpath_var=LD_LIBRARY_PATH
12666  ;;
12667
12668*)
12669  dynamic_linker=no
12670  ;;
12671esac
12672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12673$as_echo "$dynamic_linker" >&6; }
12674test "$dynamic_linker" = no && can_build_shared=no
12675
12676variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12677if test "$GCC" = yes; then
12678  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12679fi
12680
12681if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12682  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12683fi
12684if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12685  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12686fi
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12775$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12776hardcode_action=
12777if test -n "$hardcode_libdir_flag_spec" ||
12778   test -n "$runpath_var" ||
12779   test "X$hardcode_automatic" = "Xyes" ; then
12780
12781  # We can hardcode non-existent directories.
12782  if test "$hardcode_direct" != no &&
12783     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12784     # have to relink, otherwise we might link with an installed library
12785     # when we should be linking with a yet-to-be-installed one
12786     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12787     test "$hardcode_minus_L" != no; then
12788    # Linking always hardcodes the temporary library directory.
12789    hardcode_action=relink
12790  else
12791    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12792    hardcode_action=immediate
12793  fi
12794else
12795  # We cannot hardcode anything, or else we can only hardcode existing
12796  # directories.
12797  hardcode_action=unsupported
12798fi
12799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12800$as_echo "$hardcode_action" >&6; }
12801
12802if test "$hardcode_action" = relink ||
12803   test "$inherit_rpath" = yes; then
12804  # Fast installation is not supported
12805  enable_fast_install=no
12806elif test "$shlibpath_overrides_runpath" = yes ||
12807     test "$enable_shared" = no; then
12808  # Fast installation is not necessary
12809  enable_fast_install=needless
12810fi
12811
12812
12813
12814
12815
12816
12817  if test "x$enable_dlopen" != xyes; then
12818  enable_dlopen=unknown
12819  enable_dlopen_self=unknown
12820  enable_dlopen_self_static=unknown
12821else
12822  lt_cv_dlopen=no
12823  lt_cv_dlopen_libs=
12824
12825  case $host_os in
12826  beos*)
12827    lt_cv_dlopen="load_add_on"
12828    lt_cv_dlopen_libs=
12829    lt_cv_dlopen_self=yes
12830    ;;
12831
12832  mingw* | pw32* | cegcc*)
12833    lt_cv_dlopen="LoadLibrary"
12834    lt_cv_dlopen_libs=
12835    ;;
12836
12837  cygwin*)
12838    lt_cv_dlopen="dlopen"
12839    lt_cv_dlopen_libs=
12840    ;;
12841
12842  darwin*)
12843  # if libdl is installed we need to link against it
12844    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12845$as_echo_n "checking for dlopen in -ldl... " >&6; }
12846if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12847  $as_echo_n "(cached) " >&6
12848else
12849  ac_check_lib_save_LIBS=$LIBS
12850LIBS="-ldl  $LIBS"
12851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852/* end confdefs.h.  */
12853
12854/* Override any GCC internal prototype to avoid an error.
12855   Use char because int might match the return type of a GCC
12856   builtin and then its argument prototype would still apply.  */
12857#ifdef __cplusplus
12858extern "C"
12859#endif
12860char dlopen ();
12861int
12862main ()
12863{
12864return dlopen ();
12865  ;
12866  return 0;
12867}
12868_ACEOF
12869if ac_fn_c_try_link "$LINENO"; then :
12870  ac_cv_lib_dl_dlopen=yes
12871else
12872  ac_cv_lib_dl_dlopen=no
12873fi
12874rm -f core conftest.err conftest.$ac_objext \
12875    conftest$ac_exeext conftest.$ac_ext
12876LIBS=$ac_check_lib_save_LIBS
12877fi
12878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12879$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12880if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12881  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12882else
12883
12884    lt_cv_dlopen="dyld"
12885    lt_cv_dlopen_libs=
12886    lt_cv_dlopen_self=yes
12887
12888fi
12889
12890    ;;
12891
12892  *)
12893    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12894if test "x$ac_cv_func_shl_load" = x""yes; then :
12895  lt_cv_dlopen="shl_load"
12896else
12897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12898$as_echo_n "checking for shl_load in -ldld... " >&6; }
12899if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12900  $as_echo_n "(cached) " >&6
12901else
12902  ac_check_lib_save_LIBS=$LIBS
12903LIBS="-ldld  $LIBS"
12904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905/* end confdefs.h.  */
12906
12907/* Override any GCC internal prototype to avoid an error.
12908   Use char because int might match the return type of a GCC
12909   builtin and then its argument prototype would still apply.  */
12910#ifdef __cplusplus
12911extern "C"
12912#endif
12913char shl_load ();
12914int
12915main ()
12916{
12917return shl_load ();
12918  ;
12919  return 0;
12920}
12921_ACEOF
12922if ac_fn_c_try_link "$LINENO"; then :
12923  ac_cv_lib_dld_shl_load=yes
12924else
12925  ac_cv_lib_dld_shl_load=no
12926fi
12927rm -f core conftest.err conftest.$ac_objext \
12928    conftest$ac_exeext conftest.$ac_ext
12929LIBS=$ac_check_lib_save_LIBS
12930fi
12931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12932$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12933if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12934  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12935else
12936  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12937if test "x$ac_cv_func_dlopen" = x""yes; then :
12938  lt_cv_dlopen="dlopen"
12939else
12940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12941$as_echo_n "checking for dlopen in -ldl... " >&6; }
12942if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12943  $as_echo_n "(cached) " >&6
12944else
12945  ac_check_lib_save_LIBS=$LIBS
12946LIBS="-ldl  $LIBS"
12947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948/* end confdefs.h.  */
12949
12950/* Override any GCC internal prototype to avoid an error.
12951   Use char because int might match the return type of a GCC
12952   builtin and then its argument prototype would still apply.  */
12953#ifdef __cplusplus
12954extern "C"
12955#endif
12956char dlopen ();
12957int
12958main ()
12959{
12960return dlopen ();
12961  ;
12962  return 0;
12963}
12964_ACEOF
12965if ac_fn_c_try_link "$LINENO"; then :
12966  ac_cv_lib_dl_dlopen=yes
12967else
12968  ac_cv_lib_dl_dlopen=no
12969fi
12970rm -f core conftest.err conftest.$ac_objext \
12971    conftest$ac_exeext conftest.$ac_ext
12972LIBS=$ac_check_lib_save_LIBS
12973fi
12974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12975$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12976if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12977  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12978else
12979  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12980$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12981if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12982  $as_echo_n "(cached) " >&6
12983else
12984  ac_check_lib_save_LIBS=$LIBS
12985LIBS="-lsvld  $LIBS"
12986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987/* end confdefs.h.  */
12988
12989/* Override any GCC internal prototype to avoid an error.
12990   Use char because int might match the return type of a GCC
12991   builtin and then its argument prototype would still apply.  */
12992#ifdef __cplusplus
12993extern "C"
12994#endif
12995char dlopen ();
12996int
12997main ()
12998{
12999return dlopen ();
13000  ;
13001  return 0;
13002}
13003_ACEOF
13004if ac_fn_c_try_link "$LINENO"; then :
13005  ac_cv_lib_svld_dlopen=yes
13006else
13007  ac_cv_lib_svld_dlopen=no
13008fi
13009rm -f core conftest.err conftest.$ac_objext \
13010    conftest$ac_exeext conftest.$ac_ext
13011LIBS=$ac_check_lib_save_LIBS
13012fi
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13014$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13015if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13016  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13017else
13018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13019$as_echo_n "checking for dld_link in -ldld... " >&6; }
13020if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13021  $as_echo_n "(cached) " >&6
13022else
13023  ac_check_lib_save_LIBS=$LIBS
13024LIBS="-ldld  $LIBS"
13025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026/* end confdefs.h.  */
13027
13028/* Override any GCC internal prototype to avoid an error.
13029   Use char because int might match the return type of a GCC
13030   builtin and then its argument prototype would still apply.  */
13031#ifdef __cplusplus
13032extern "C"
13033#endif
13034char dld_link ();
13035int
13036main ()
13037{
13038return dld_link ();
13039  ;
13040  return 0;
13041}
13042_ACEOF
13043if ac_fn_c_try_link "$LINENO"; then :
13044  ac_cv_lib_dld_dld_link=yes
13045else
13046  ac_cv_lib_dld_dld_link=no
13047fi
13048rm -f core conftest.err conftest.$ac_objext \
13049    conftest$ac_exeext conftest.$ac_ext
13050LIBS=$ac_check_lib_save_LIBS
13051fi
13052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13053$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13054if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13055  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13056fi
13057
13058
13059fi
13060
13061
13062fi
13063
13064
13065fi
13066
13067
13068fi
13069
13070
13071fi
13072
13073    ;;
13074  esac
13075
13076  if test "x$lt_cv_dlopen" != xno; then
13077    enable_dlopen=yes
13078  else
13079    enable_dlopen=no
13080  fi
13081
13082  case $lt_cv_dlopen in
13083  dlopen)
13084    save_CPPFLAGS="$CPPFLAGS"
13085    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13086
13087    save_LDFLAGS="$LDFLAGS"
13088    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13089
13090    save_LIBS="$LIBS"
13091    LIBS="$lt_cv_dlopen_libs $LIBS"
13092
13093    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13094$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13095if test "${lt_cv_dlopen_self+set}" = set; then :
13096  $as_echo_n "(cached) " >&6
13097else
13098  	  if test "$cross_compiling" = yes; then :
13099  lt_cv_dlopen_self=cross
13100else
13101  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13102  lt_status=$lt_dlunknown
13103  cat > conftest.$ac_ext <<_LT_EOF
13104#line 13104 "configure"
13105#include "confdefs.h"
13106
13107#if HAVE_DLFCN_H
13108#include <dlfcn.h>
13109#endif
13110
13111#include <stdio.h>
13112
13113#ifdef RTLD_GLOBAL
13114#  define LT_DLGLOBAL		RTLD_GLOBAL
13115#else
13116#  ifdef DL_GLOBAL
13117#    define LT_DLGLOBAL		DL_GLOBAL
13118#  else
13119#    define LT_DLGLOBAL		0
13120#  endif
13121#endif
13122
13123/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13124   find out it does not work in some platform. */
13125#ifndef LT_DLLAZY_OR_NOW
13126#  ifdef RTLD_LAZY
13127#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13128#  else
13129#    ifdef DL_LAZY
13130#      define LT_DLLAZY_OR_NOW		DL_LAZY
13131#    else
13132#      ifdef RTLD_NOW
13133#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13134#      else
13135#        ifdef DL_NOW
13136#          define LT_DLLAZY_OR_NOW	DL_NOW
13137#        else
13138#          define LT_DLLAZY_OR_NOW	0
13139#        endif
13140#      endif
13141#    endif
13142#  endif
13143#endif
13144
13145void fnord() { int i=42;}
13146int main ()
13147{
13148  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13149  int status = $lt_dlunknown;
13150
13151  if (self)
13152    {
13153      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13154      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13155      /* dlclose (self); */
13156    }
13157  else
13158    puts (dlerror ());
13159
13160  return status;
13161}
13162_LT_EOF
13163  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13164  (eval $ac_link) 2>&5
13165  ac_status=$?
13166  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13167  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13168    (./conftest; exit; ) >&5 2>/dev/null
13169    lt_status=$?
13170    case x$lt_status in
13171      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13172      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13173      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13174    esac
13175  else :
13176    # compilation failed
13177    lt_cv_dlopen_self=no
13178  fi
13179fi
13180rm -fr conftest*
13181
13182
13183fi
13184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13185$as_echo "$lt_cv_dlopen_self" >&6; }
13186
13187    if test "x$lt_cv_dlopen_self" = xyes; then
13188      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13189      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13190$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13191if test "${lt_cv_dlopen_self_static+set}" = set; then :
13192  $as_echo_n "(cached) " >&6
13193else
13194  	  if test "$cross_compiling" = yes; then :
13195  lt_cv_dlopen_self_static=cross
13196else
13197  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13198  lt_status=$lt_dlunknown
13199  cat > conftest.$ac_ext <<_LT_EOF
13200#line 13200 "configure"
13201#include "confdefs.h"
13202
13203#if HAVE_DLFCN_H
13204#include <dlfcn.h>
13205#endif
13206
13207#include <stdio.h>
13208
13209#ifdef RTLD_GLOBAL
13210#  define LT_DLGLOBAL		RTLD_GLOBAL
13211#else
13212#  ifdef DL_GLOBAL
13213#    define LT_DLGLOBAL		DL_GLOBAL
13214#  else
13215#    define LT_DLGLOBAL		0
13216#  endif
13217#endif
13218
13219/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13220   find out it does not work in some platform. */
13221#ifndef LT_DLLAZY_OR_NOW
13222#  ifdef RTLD_LAZY
13223#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13224#  else
13225#    ifdef DL_LAZY
13226#      define LT_DLLAZY_OR_NOW		DL_LAZY
13227#    else
13228#      ifdef RTLD_NOW
13229#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13230#      else
13231#        ifdef DL_NOW
13232#          define LT_DLLAZY_OR_NOW	DL_NOW
13233#        else
13234#          define LT_DLLAZY_OR_NOW	0
13235#        endif
13236#      endif
13237#    endif
13238#  endif
13239#endif
13240
13241void fnord() { int i=42;}
13242int main ()
13243{
13244  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13245  int status = $lt_dlunknown;
13246
13247  if (self)
13248    {
13249      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13250      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13251      /* dlclose (self); */
13252    }
13253  else
13254    puts (dlerror ());
13255
13256  return status;
13257}
13258_LT_EOF
13259  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13260  (eval $ac_link) 2>&5
13261  ac_status=$?
13262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13263  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13264    (./conftest; exit; ) >&5 2>/dev/null
13265    lt_status=$?
13266    case x$lt_status in
13267      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13268      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13269      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13270    esac
13271  else :
13272    # compilation failed
13273    lt_cv_dlopen_self_static=no
13274  fi
13275fi
13276rm -fr conftest*
13277
13278
13279fi
13280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13281$as_echo "$lt_cv_dlopen_self_static" >&6; }
13282    fi
13283
13284    CPPFLAGS="$save_CPPFLAGS"
13285    LDFLAGS="$save_LDFLAGS"
13286    LIBS="$save_LIBS"
13287    ;;
13288  esac
13289
13290  case $lt_cv_dlopen_self in
13291  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13292  *) enable_dlopen_self=unknown ;;
13293  esac
13294
13295  case $lt_cv_dlopen_self_static in
13296  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13297  *) enable_dlopen_self_static=unknown ;;
13298  esac
13299fi
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317striplib=
13318old_striplib=
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13320$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13321if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13322  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13323  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13325$as_echo "yes" >&6; }
13326else
13327# FIXME - insert some real tests, host_os isn't really good enough
13328  case $host_os in
13329  darwin*)
13330    if test -n "$STRIP" ; then
13331      striplib="$STRIP -x"
13332      old_striplib="$STRIP -S"
13333      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13334$as_echo "yes" >&6; }
13335    else
13336      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337$as_echo "no" >&6; }
13338    fi
13339    ;;
13340  *)
13341    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342$as_echo "no" >&6; }
13343    ;;
13344  esac
13345fi
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358  # Report which library types will actually be built
13359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13360$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13362$as_echo "$can_build_shared" >&6; }
13363
13364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13365$as_echo_n "checking whether to build shared libraries... " >&6; }
13366  test "$can_build_shared" = "no" && enable_shared=no
13367
13368  # On AIX, shared libraries and static libraries use the same namespace, and
13369  # are all built from PIC.
13370  case $host_os in
13371  aix3*)
13372    test "$enable_shared" = yes && enable_static=no
13373    if test -n "$RANLIB"; then
13374      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13375      postinstall_cmds='$RANLIB $lib'
13376    fi
13377    ;;
13378
13379  aix[4-9]*)
13380    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13381      test "$enable_shared" = yes && enable_static=no
13382    fi
13383    ;;
13384  esac
13385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13386$as_echo "$enable_shared" >&6; }
13387
13388  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13389$as_echo_n "checking whether to build static libraries... " >&6; }
13390  # Make sure either enable_shared or enable_static is yes.
13391  test "$enable_shared" = yes || enable_static=yes
13392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13393$as_echo "$enable_static" >&6; }
13394
13395
13396
13397
13398fi
13399ac_ext=c
13400ac_cpp='$CPP $CPPFLAGS'
13401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13403ac_compiler_gnu=$ac_cv_c_compiler_gnu
13404
13405CC="$lt_save_CC"
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419        ac_config_commands="$ac_config_commands libtool"
13420
13421
13422
13423
13424# Only expand once:
13425
13426
13427
13428# Extract the first word of "doxygen", so it can be a program name with args.
13429set dummy doxygen; ac_word=$2
13430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13431$as_echo_n "checking for $ac_word... " >&6; }
13432if test "${ac_cv_prog_HAVE_DOXYGEN+set}" = set; then :
13433  $as_echo_n "(cached) " >&6
13434else
13435  if test -n "$HAVE_DOXYGEN"; then
13436  ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
13437else
13438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13439for as_dir in $PATH
13440do
13441  IFS=$as_save_IFS
13442  test -z "$as_dir" && as_dir=.
13443    for ac_exec_ext in '' $ac_executable_extensions; do
13444  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13445    ac_cv_prog_HAVE_DOXYGEN="yes"
13446    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13447    break 2
13448  fi
13449done
13450  done
13451IFS=$as_save_IFS
13452
13453  test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
13454fi
13455fi
13456HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
13457if test -n "$HAVE_DOXYGEN"; then
13458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
13459$as_echo "$HAVE_DOXYGEN" >&6; }
13460else
13461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13462$as_echo "no" >&6; }
13463fi
13464
13465
13466 if test "x$HAVE_DOXYGEN" = "xyes"; then
13467  BUILD_DOXYGEN_TRUE=
13468  BUILD_DOXYGEN_FALSE='#'
13469else
13470  BUILD_DOXYGEN_TRUE='#'
13471  BUILD_DOXYGEN_FALSE=
13472fi
13473
13474
13475use_python=true
13476PYTHON=python
13477
13478# Check whether --with-python was given.
13479if test "${with_python+set}" = set; then :
13480  withval=$with_python;
13481if test x$withval = xno; then
13482   use_python=false
13483   PYTHON=bogus
13484elif test x$withval = xyes; then
13485   # No specific python binary was given, so check for it in PATH
13486   use_python=true
13487   PYTHON=python
13488else
13489   # A python was given, assume it is in the user's PATH or is fully qualified
13490   use_python=true
13491   PYTHON="$withval"
13492   PYTHON_CONFIG="$withval"-config
13493fi
13494
13495fi
13496
13497if test "x$use_python" = xtrue -a "x$PYTHON" = xpython; then
13498   # Extract the first word of "python", so it can be a program name with args.
13499set dummy python; ac_word=$2
13500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13501$as_echo_n "checking for $ac_word... " >&6; }
13502if test "${ac_cv_path_PYTHON+set}" = set; then :
13503  $as_echo_n "(cached) " >&6
13504else
13505  case $PYTHON in
13506  [\\/]* | ?:[\\/]*)
13507  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13508  ;;
13509  *)
13510  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13511for as_dir in $PATH
13512do
13513  IFS=$as_save_IFS
13514  test -z "$as_dir" && as_dir=.
13515    for ac_exec_ext in '' $ac_executable_extensions; do
13516  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13517    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13519    break 2
13520  fi
13521done
13522  done
13523IFS=$as_save_IFS
13524
13525  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="bogus"
13526  ;;
13527esac
13528fi
13529PYTHON=$ac_cv_path_PYTHON
13530if test -n "$PYTHON"; then
13531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13532$as_echo "$PYTHON" >&6; }
13533else
13534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13535$as_echo "no" >&6; }
13536fi
13537
13538
13539   # Extract the first word of "python-config", so it can be a program name with args.
13540set dummy python-config; ac_word=$2
13541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13542$as_echo_n "checking for $ac_word... " >&6; }
13543if test "${ac_cv_path_PYTHON_CONFIG+set}" = set; then :
13544  $as_echo_n "(cached) " >&6
13545else
13546  case $PYTHON_CONFIG in
13547  [\\/]* | ?:[\\/]*)
13548  ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
13549  ;;
13550  *)
13551  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13552for as_dir in $PATH
13553do
13554  IFS=$as_save_IFS
13555  test -z "$as_dir" && as_dir=.
13556    for ac_exec_ext in '' $ac_executable_extensions; do
13557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13558    ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13560    break 2
13561  fi
13562done
13563  done
13564IFS=$as_save_IFS
13565
13566  test -z "$ac_cv_path_PYTHON_CONFIG" && ac_cv_path_PYTHON_CONFIG="bogus"
13567  ;;
13568esac
13569fi
13570PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
13571if test -n "$PYTHON_CONFIG"; then
13572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
13573$as_echo "$PYTHON_CONFIG" >&6; }
13574else
13575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13576$as_echo "no" >&6; }
13577fi
13578
13579
13580fi
13581if test "x$use_python" = xtrue -a "x$PYTHON" != xbogus -a "x$PYTHON_CONFIG" != xbogus; then
13582    PYTHON_INCLUDES=`"$PYTHON_CONFIG" --includes`
13583    CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
13584    ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
13585if test "x$ac_cv_header_Python_h" = x""yes; then :
13586  use_python=true
13587else
13588  use_python=false
13589fi
13590
13591
13592else
13593    use_python=false
13594    PYTHON=bogus
13595fi
13596if test "x$use_python" != xtrue ; then
13597    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling python since development headers were not found" >&5
13598$as_echo "$as_me: WARNING: Disabling python since development headers were not found" >&2;}
13599fi
13600 if test "x$use_python" = "xtrue"; then
13601  BUILD_PYTHON_TRUE=
13602  BUILD_PYTHON_FALSE='#'
13603else
13604  BUILD_PYTHON_TRUE='#'
13605  BUILD_PYTHON_FALSE=
13606fi
13607
13608
13609
13610if test "x$PYTHON" != xbogus; then
13611   # Extract the first word of "cython", so it can be a program name with args.
13612set dummy cython; ac_word=$2
13613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13614$as_echo_n "checking for $ac_word... " >&6; }
13615if test "${ac_cv_prog_HAVE_CYTHON+set}" = set; then :
13616  $as_echo_n "(cached) " >&6
13617else
13618  if test -n "$HAVE_CYTHON"; then
13619  ac_cv_prog_HAVE_CYTHON="$HAVE_CYTHON" # Let the user override the test.
13620else
13621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13622for as_dir in $PATH
13623do
13624  IFS=$as_save_IFS
13625  test -z "$as_dir" && as_dir=.
13626    for ac_exec_ext in '' $ac_executable_extensions; do
13627  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13628    ac_cv_prog_HAVE_CYTHON="yes"
13629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13630    break 2
13631  fi
13632done
13633  done
13634IFS=$as_save_IFS
13635
13636  test -z "$ac_cv_prog_HAVE_CYTHON" && ac_cv_prog_HAVE_CYTHON="no"
13637fi
13638fi
13639HAVE_CYTHON=$ac_cv_prog_HAVE_CYTHON
13640if test -n "$HAVE_CYTHON"; then
13641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CYTHON" >&5
13642$as_echo "$HAVE_CYTHON" >&6; }
13643else
13644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13645$as_echo "no" >&6; }
13646fi
13647
13648
13649fi
13650 if test "x$HAVE_CYTHON" = "xyes"; then
13651  BUILD_CYTHON_TRUE=
13652  BUILD_CYTHON_FALSE='#'
13653else
13654  BUILD_CYTHON_TRUE='#'
13655  BUILD_CYTHON_FALSE=
13656fi
13657
13658
13659# Extract the first word of "pkg-config", so it can be a program name with args.
13660set dummy pkg-config; ac_word=$2
13661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13662$as_echo_n "checking for $ac_word... " >&6; }
13663if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then :
13664  $as_echo_n "(cached) " >&6
13665else
13666  if test -n "$HAVE_PKGCONFIG"; then
13667  ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
13668else
13669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13670for as_dir in $PATH
13671do
13672  IFS=$as_save_IFS
13673  test -z "$as_dir" && as_dir=.
13674    for ac_exec_ext in '' $ac_executable_extensions; do
13675  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13676    ac_cv_prog_HAVE_PKGCONFIG="yes"
13677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13678    break 2
13679  fi
13680done
13681  done
13682IFS=$as_save_IFS
13683
13684  test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
13685fi
13686fi
13687HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
13688if test -n "$HAVE_PKGCONFIG"; then
13689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PKGCONFIG" >&5
13690$as_echo "$HAVE_PKGCONFIG" >&6; }
13691else
13692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13693$as_echo "no" >&6; }
13694fi
13695
13696
13697
13698if test "x$HAVE_PKGCONFIG" = "xyes"; then
13699
13700
13701if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13702	if test -n "$ac_tool_prefix"; then
13703  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13704set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13706$as_echo_n "checking for $ac_word... " >&6; }
13707if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13708  $as_echo_n "(cached) " >&6
13709else
13710  case $PKG_CONFIG in
13711  [\\/]* | ?:[\\/]*)
13712  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13713  ;;
13714  *)
13715  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716for as_dir in $PATH
13717do
13718  IFS=$as_save_IFS
13719  test -z "$as_dir" && as_dir=.
13720    for ac_exec_ext in '' $ac_executable_extensions; do
13721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13722    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13724    break 2
13725  fi
13726done
13727  done
13728IFS=$as_save_IFS
13729
13730  ;;
13731esac
13732fi
13733PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13734if test -n "$PKG_CONFIG"; then
13735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13736$as_echo "$PKG_CONFIG" >&6; }
13737else
13738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13739$as_echo "no" >&6; }
13740fi
13741
13742
13743fi
13744if test -z "$ac_cv_path_PKG_CONFIG"; then
13745  ac_pt_PKG_CONFIG=$PKG_CONFIG
13746  # Extract the first word of "pkg-config", so it can be a program name with args.
13747set dummy pkg-config; ac_word=$2
13748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13749$as_echo_n "checking for $ac_word... " >&6; }
13750if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
13751  $as_echo_n "(cached) " >&6
13752else
13753  case $ac_pt_PKG_CONFIG in
13754  [\\/]* | ?:[\\/]*)
13755  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13756  ;;
13757  *)
13758  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759for as_dir in $PATH
13760do
13761  IFS=$as_save_IFS
13762  test -z "$as_dir" && as_dir=.
13763    for ac_exec_ext in '' $ac_executable_extensions; do
13764  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13765    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13767    break 2
13768  fi
13769done
13770  done
13771IFS=$as_save_IFS
13772
13773  ;;
13774esac
13775fi
13776ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13777if test -n "$ac_pt_PKG_CONFIG"; then
13778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13779$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13780else
13781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782$as_echo "no" >&6; }
13783fi
13784
13785  if test "x$ac_pt_PKG_CONFIG" = x; then
13786    PKG_CONFIG=""
13787  else
13788    case $cross_compiling:$ac_tool_warned in
13789yes:)
13790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13792ac_tool_warned=yes ;;
13793esac
13794    PKG_CONFIG=$ac_pt_PKG_CONFIG
13795  fi
13796else
13797  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13798fi
13799
13800fi
13801if test -n "$PKG_CONFIG"; then
13802	_pkg_min_version=0.9.0
13803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13804$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13805	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13806		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13807$as_echo "yes" >&6; }
13808	else
13809		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13810$as_echo "no" >&6; }
13811		PKG_CONFIG=""
13812	fi
13813
13814fi
13815
13816pkg_failed=no
13817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5
13818$as_echo_n "checking for SNDFILE... " >&6; }
13819
13820if test -n "$PKG_CONFIG"; then
13821    if test -n "$SNDFILE_CFLAGS"; then
13822        pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
13823    else
13824        if test -n "$PKG_CONFIG" && \
13825    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile\""; } >&5
13826  ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5
13827  ac_status=$?
13828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13829  test $ac_status = 0; }; then
13830  pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile" 2>/dev/null`
13831else
13832  pkg_failed=yes
13833fi
13834    fi
13835else
13836	pkg_failed=untried
13837fi
13838if test -n "$PKG_CONFIG"; then
13839    if test -n "$SNDFILE_LIBS"; then
13840        pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
13841    else
13842        if test -n "$PKG_CONFIG" && \
13843    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile\""; } >&5
13844  ($PKG_CONFIG --exists --print-errors "sndfile") 2>&5
13845  ac_status=$?
13846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13847  test $ac_status = 0; }; then
13848  pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile" 2>/dev/null`
13849else
13850  pkg_failed=yes
13851fi
13852    fi
13853else
13854	pkg_failed=untried
13855fi
13856
13857
13858
13859if test $pkg_failed = yes; then
13860
13861if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13862        _pkg_short_errors_supported=yes
13863else
13864        _pkg_short_errors_supported=no
13865fi
13866        if test $_pkg_short_errors_supported = yes; then
13867	        SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sndfile"`
13868        else
13869	        SNDFILE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sndfile"`
13870        fi
13871	# Put the nasty error message in config.log where it belongs
13872	echo "$SNDFILE_PKG_ERRORS" >&5
13873
13874	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13875$as_echo "no" >&6; }
13876                true
13877elif test $pkg_failed = untried; then
13878	true
13879else
13880	SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
13881	SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
13882        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13883$as_echo "yes" >&6; }
13884	:
13885fi
13886   for ac_header in sndfile.h
13887do :
13888  ac_fn_c_check_header_mongrel "$LINENO" "sndfile.h" "ac_cv_header_sndfile_h" "$ac_includes_default"
13889if test "x$ac_cv_header_sndfile_h" = x""yes; then :
13890  cat >>confdefs.h <<_ACEOF
13891#define HAVE_SNDFILE_H 1
13892_ACEOF
13893
13894fi
13895
13896done
13897
13898
13899pkg_failed=no
13900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SAMPLERATE" >&5
13901$as_echo_n "checking for SAMPLERATE... " >&6; }
13902
13903if test -n "$PKG_CONFIG"; then
13904    if test -n "$SAMPLERATE_CFLAGS"; then
13905        pkg_cv_SAMPLERATE_CFLAGS="$SAMPLERATE_CFLAGS"
13906    else
13907        if test -n "$PKG_CONFIG" && \
13908    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate\""; } >&5
13909  ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
13910  ac_status=$?
13911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13912  test $ac_status = 0; }; then
13913  pkg_cv_SAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate" 2>/dev/null`
13914else
13915  pkg_failed=yes
13916fi
13917    fi
13918else
13919	pkg_failed=untried
13920fi
13921if test -n "$PKG_CONFIG"; then
13922    if test -n "$SAMPLERATE_LIBS"; then
13923        pkg_cv_SAMPLERATE_LIBS="$SAMPLERATE_LIBS"
13924    else
13925        if test -n "$PKG_CONFIG" && \
13926    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate\""; } >&5
13927  ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
13928  ac_status=$?
13929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13930  test $ac_status = 0; }; then
13931  pkg_cv_SAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate" 2>/dev/null`
13932else
13933  pkg_failed=yes
13934fi
13935    fi
13936else
13937	pkg_failed=untried
13938fi
13939
13940
13941
13942if test $pkg_failed = yes; then
13943
13944if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13945        _pkg_short_errors_supported=yes
13946else
13947        _pkg_short_errors_supported=no
13948fi
13949        if test $_pkg_short_errors_supported = yes; then
13950	        SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "samplerate"`
13951        else
13952	        SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "samplerate"`
13953        fi
13954	# Put the nasty error message in config.log where it belongs
13955	echo "$SAMPLERATE_PKG_ERRORS" >&5
13956
13957	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958$as_echo "no" >&6; }
13959                true
13960elif test $pkg_failed = untried; then
13961	true
13962else
13963	SAMPLERATE_CFLAGS=$pkg_cv_SAMPLERATE_CFLAGS
13964	SAMPLERATE_LIBS=$pkg_cv_SAMPLERATE_LIBS
13965        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13966$as_echo "yes" >&6; }
13967	:
13968fi
13969   for ac_header in samplerate.h
13970do :
13971  ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
13972if test "x$ac_cv_header_samplerate_h" = x""yes; then :
13973  cat >>confdefs.h <<_ACEOF
13974#define HAVE_SAMPLERATE_H 1
13975_ACEOF
13976
13977fi
13978
13979done
13980
13981fi
13982
13983
13984
13985
13986
13987ac_config_files="$ac_config_files sphinxbase.pc Makefile include/Makefile include/sphinxbase/Makefile python/Makefile python/setup.py src/Makefile src/libsphinxad/Makefile src/libsphinxbase/Makefile src/libsphinxbase/util/Makefile src/libsphinxbase/feat/Makefile src/libsphinxbase/fe/Makefile src/libsphinxbase/lm/Makefile src/sphinx_fe/Makefile src/sphinx_cepview/Makefile src/sphinx_jsgf2fsg/Makefile src/sphinx_adtools/Makefile src/sphinx_lmtools/Makefile doc/Makefile doc/doxyfile test/Makefile test/unit/testfuncs.sh test/unit/Makefile test/unit/test_ad/Makefile test/unit/test_alloc/Makefile test/unit/test_bitvec/Makefile test/unit/test_case/Makefile test/unit/test_string/Makefile test/unit/test_cmdln/Makefile test/unit/test_hash/Makefile test/unit/test_matrix/Makefile test/unit/test_feat/Makefile test/unit/test_fe/Makefile test/unit/test_logmath/Makefile test/unit/test_lineiter/Makefile test/unit/test_ngram/Makefile test/unit/test_fsg/Makefile test/unit/test_thread/Makefile test/unit/test_util/Makefile test/regression/testfuncs.sh test/regression/Makefile"
13988
13989cat >confcache <<\_ACEOF
13990# This file is a shell script that caches the results of configure
13991# tests run on this system so they can be shared between configure
13992# scripts and configure runs, see configure's option --config-cache.
13993# It is not useful on other systems.  If it contains results you don't
13994# want to keep, you may remove or edit it.
13995#
13996# config.status only pays attention to the cache file if you give it
13997# the --recheck option to rerun configure.
13998#
13999# `ac_cv_env_foo' variables (set or unset) will be overridden when
14000# loading this file, other *unset* `ac_cv_foo' will be assigned the
14001# following values.
14002
14003_ACEOF
14004
14005# The following way of writing the cache mishandles newlines in values,
14006# but we know of no workaround that is simple, portable, and efficient.
14007# So, we kill variables containing newlines.
14008# Ultrix sh set writes to stderr and can't be redirected directly,
14009# and sets the high bit in the cache file unless we assign to the vars.
14010(
14011  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14012    eval ac_val=\$$ac_var
14013    case $ac_val in #(
14014    *${as_nl}*)
14015      case $ac_var in #(
14016      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14017$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14018      esac
14019      case $ac_var in #(
14020      _ | IFS | as_nl) ;; #(
14021      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14022      *) { eval $ac_var=; unset $ac_var;} ;;
14023      esac ;;
14024    esac
14025  done
14026
14027  (set) 2>&1 |
14028    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14029    *${as_nl}ac_space=\ *)
14030      # `set' does not quote correctly, so add quotes: double-quote
14031      # substitution turns \\\\ into \\, and sed turns \\ into \.
14032      sed -n \
14033	"s/'/'\\\\''/g;
14034	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14035      ;; #(
14036    *)
14037      # `set' quotes correctly as required by POSIX, so do not add quotes.
14038      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14039      ;;
14040    esac |
14041    sort
14042) |
14043  sed '
14044     /^ac_cv_env_/b end
14045     t clear
14046     :clear
14047     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14048     t end
14049     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14050     :end' >>confcache
14051if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14052  if test -w "$cache_file"; then
14053    test "x$cache_file" != "x/dev/null" &&
14054      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14055$as_echo "$as_me: updating cache $cache_file" >&6;}
14056    cat confcache >$cache_file
14057  else
14058    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14059$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14060  fi
14061fi
14062rm -f confcache
14063
14064test "x$prefix" = xNONE && prefix=$ac_default_prefix
14065# Let make expand exec_prefix.
14066test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14067
14068DEFS=-DHAVE_CONFIG_H
14069
14070ac_libobjs=
14071ac_ltlibobjs=
14072for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14073  # 1. Remove the extension, and $U if already installed.
14074  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14075  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14076  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14077  #    will be set to the directory where LIBOBJS objects are built.
14078  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14079  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14080done
14081LIBOBJS=$ac_libobjs
14082
14083LTLIBOBJS=$ac_ltlibobjs
14084
14085
14086 if test -n "$EXEEXT"; then
14087  am__EXEEXT_TRUE=
14088  am__EXEEXT_FALSE='#'
14089else
14090  am__EXEEXT_TRUE='#'
14091  am__EXEEXT_FALSE=
14092fi
14093
14094if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14095  as_fn_error "conditional \"AMDEP\" was never defined.
14096Usually this means the macro was only invoked conditionally." "$LINENO" 5
14097fi
14098if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14099  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14100Usually this means the macro was only invoked conditionally." "$LINENO" 5
14101fi
14102if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14103  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14104Usually this means the macro was only invoked conditionally." "$LINENO" 5
14105fi
14106
14107if test -z "${LAPACK_LITE_TRUE}" && test -z "${LAPACK_LITE_FALSE}"; then
14108  as_fn_error "conditional \"LAPACK_LITE\" was never defined.
14109Usually this means the macro was only invoked conditionally." "$LINENO" 5
14110fi
14111if test -z "${USE_LAPACK_TRUE}" && test -z "${USE_LAPACK_FALSE}"; then
14112  as_fn_error "conditional \"USE_LAPACK\" was never defined.
14113Usually this means the macro was only invoked conditionally." "$LINENO" 5
14114fi
14115if test -z "${USE_THREADS_TRUE}" && test -z "${USE_THREADS_FALSE}"; then
14116  as_fn_error "conditional \"USE_THREADS\" was never defined.
14117Usually this means the macro was only invoked conditionally." "$LINENO" 5
14118fi
14119if test -z "${FIXED_POINT_TRUE}" && test -z "${FIXED_POINT_FALSE}"; then
14120  as_fn_error "conditional \"FIXED_POINT\" was never defined.
14121Usually this means the macro was only invoked conditionally." "$LINENO" 5
14122fi
14123if test -z "${BUILD_DOXYGEN_TRUE}" && test -z "${BUILD_DOXYGEN_FALSE}"; then
14124  as_fn_error "conditional \"BUILD_DOXYGEN\" was never defined.
14125Usually this means the macro was only invoked conditionally." "$LINENO" 5
14126fi
14127if test -z "${BUILD_PYTHON_TRUE}" && test -z "${BUILD_PYTHON_FALSE}"; then
14128  as_fn_error "conditional \"BUILD_PYTHON\" was never defined.
14129Usually this means the macro was only invoked conditionally." "$LINENO" 5
14130fi
14131if test -z "${BUILD_CYTHON_TRUE}" && test -z "${BUILD_CYTHON_FALSE}"; then
14132  as_fn_error "conditional \"BUILD_CYTHON\" was never defined.
14133Usually this means the macro was only invoked conditionally." "$LINENO" 5
14134fi
14135
14136: ${CONFIG_STATUS=./config.status}
14137ac_write_fail=0
14138ac_clean_files_save=$ac_clean_files
14139ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14140{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14141$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14142as_write_fail=0
14143cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14144#! $SHELL
14145# Generated by $as_me.
14146# Run this file to recreate the current configuration.
14147# Compiler output produced by configure, useful for debugging
14148# configure, is in config.log if it exists.
14149
14150debug=false
14151ac_cs_recheck=false
14152ac_cs_silent=false
14153
14154SHELL=\${CONFIG_SHELL-$SHELL}
14155export SHELL
14156_ASEOF
14157cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14158## -------------------- ##
14159## M4sh Initialization. ##
14160## -------------------- ##
14161
14162# Be more Bourne compatible
14163DUALCASE=1; export DUALCASE # for MKS sh
14164if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14165  emulate sh
14166  NULLCMD=:
14167  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14168  # is contrary to our usage.  Disable this feature.
14169  alias -g '${1+"$@"}'='"$@"'
14170  setopt NO_GLOB_SUBST
14171else
14172  case `(set -o) 2>/dev/null` in #(
14173  *posix*) :
14174    set -o posix ;; #(
14175  *) :
14176     ;;
14177esac
14178fi
14179
14180
14181as_nl='
14182'
14183export as_nl
14184# Printing a long string crashes Solaris 7 /usr/bin/printf.
14185as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14186as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14187as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14188# Prefer a ksh shell builtin over an external printf program on Solaris,
14189# but without wasting forks for bash or zsh.
14190if test -z "$BASH_VERSION$ZSH_VERSION" \
14191    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14192  as_echo='print -r --'
14193  as_echo_n='print -rn --'
14194elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14195  as_echo='printf %s\n'
14196  as_echo_n='printf %s'
14197else
14198  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14199    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14200    as_echo_n='/usr/ucb/echo -n'
14201  else
14202    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14203    as_echo_n_body='eval
14204      arg=$1;
14205      case $arg in #(
14206      *"$as_nl"*)
14207	expr "X$arg" : "X\\(.*\\)$as_nl";
14208	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14209      esac;
14210      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14211    '
14212    export as_echo_n_body
14213    as_echo_n='sh -c $as_echo_n_body as_echo'
14214  fi
14215  export as_echo_body
14216  as_echo='sh -c $as_echo_body as_echo'
14217fi
14218
14219# The user is always right.
14220if test "${PATH_SEPARATOR+set}" != set; then
14221  PATH_SEPARATOR=:
14222  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14223    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14224      PATH_SEPARATOR=';'
14225  }
14226fi
14227
14228
14229# IFS
14230# We need space, tab and new line, in precisely that order.  Quoting is
14231# there to prevent editors from complaining about space-tab.
14232# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14233# splitting by setting IFS to empty value.)
14234IFS=" ""	$as_nl"
14235
14236# Find who we are.  Look in the path if we contain no directory separator.
14237case $0 in #((
14238  *[\\/]* ) as_myself=$0 ;;
14239  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14240for as_dir in $PATH
14241do
14242  IFS=$as_save_IFS
14243  test -z "$as_dir" && as_dir=.
14244    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14245  done
14246IFS=$as_save_IFS
14247
14248     ;;
14249esac
14250# We did not find ourselves, most probably we were run as `sh COMMAND'
14251# in which case we are not to be found in the path.
14252if test "x$as_myself" = x; then
14253  as_myself=$0
14254fi
14255if test ! -f "$as_myself"; then
14256  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14257  exit 1
14258fi
14259
14260# Unset variables that we do not need and which cause bugs (e.g. in
14261# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14262# suppresses any "Segmentation fault" message there.  '((' could
14263# trigger a bug in pdksh 5.2.14.
14264for as_var in BASH_ENV ENV MAIL MAILPATH
14265do eval test x\${$as_var+set} = xset \
14266  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14267done
14268PS1='$ '
14269PS2='> '
14270PS4='+ '
14271
14272# NLS nuisances.
14273LC_ALL=C
14274export LC_ALL
14275LANGUAGE=C
14276export LANGUAGE
14277
14278# CDPATH.
14279(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14280
14281
14282# as_fn_error ERROR [LINENO LOG_FD]
14283# ---------------------------------
14284# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14285# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14286# script with status $?, using 1 if that was 0.
14287as_fn_error ()
14288{
14289  as_status=$?; test $as_status -eq 0 && as_status=1
14290  if test "$3"; then
14291    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14292    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14293  fi
14294  $as_echo "$as_me: error: $1" >&2
14295  as_fn_exit $as_status
14296} # as_fn_error
14297
14298
14299# as_fn_set_status STATUS
14300# -----------------------
14301# Set $? to STATUS, without forking.
14302as_fn_set_status ()
14303{
14304  return $1
14305} # as_fn_set_status
14306
14307# as_fn_exit STATUS
14308# -----------------
14309# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14310as_fn_exit ()
14311{
14312  set +e
14313  as_fn_set_status $1
14314  exit $1
14315} # as_fn_exit
14316
14317# as_fn_unset VAR
14318# ---------------
14319# Portably unset VAR.
14320as_fn_unset ()
14321{
14322  { eval $1=; unset $1;}
14323}
14324as_unset=as_fn_unset
14325# as_fn_append VAR VALUE
14326# ----------------------
14327# Append the text in VALUE to the end of the definition contained in VAR. Take
14328# advantage of any shell optimizations that allow amortized linear growth over
14329# repeated appends, instead of the typical quadratic growth present in naive
14330# implementations.
14331if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14332  eval 'as_fn_append ()
14333  {
14334    eval $1+=\$2
14335  }'
14336else
14337  as_fn_append ()
14338  {
14339    eval $1=\$$1\$2
14340  }
14341fi # as_fn_append
14342
14343# as_fn_arith ARG...
14344# ------------------
14345# Perform arithmetic evaluation on the ARGs, and store the result in the
14346# global $as_val. Take advantage of shells that can avoid forks. The arguments
14347# must be portable across $(()) and expr.
14348if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14349  eval 'as_fn_arith ()
14350  {
14351    as_val=$(( $* ))
14352  }'
14353else
14354  as_fn_arith ()
14355  {
14356    as_val=`expr "$@" || test $? -eq 1`
14357  }
14358fi # as_fn_arith
14359
14360
14361if expr a : '\(a\)' >/dev/null 2>&1 &&
14362   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14363  as_expr=expr
14364else
14365  as_expr=false
14366fi
14367
14368if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14369  as_basename=basename
14370else
14371  as_basename=false
14372fi
14373
14374if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14375  as_dirname=dirname
14376else
14377  as_dirname=false
14378fi
14379
14380as_me=`$as_basename -- "$0" ||
14381$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14382	 X"$0" : 'X\(//\)$' \| \
14383	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14384$as_echo X/"$0" |
14385    sed '/^.*\/\([^/][^/]*\)\/*$/{
14386	    s//\1/
14387	    q
14388	  }
14389	  /^X\/\(\/\/\)$/{
14390	    s//\1/
14391	    q
14392	  }
14393	  /^X\/\(\/\).*/{
14394	    s//\1/
14395	    q
14396	  }
14397	  s/.*/./; q'`
14398
14399# Avoid depending upon Character Ranges.
14400as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14401as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14402as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14403as_cr_digits='0123456789'
14404as_cr_alnum=$as_cr_Letters$as_cr_digits
14405
14406ECHO_C= ECHO_N= ECHO_T=
14407case `echo -n x` in #(((((
14408-n*)
14409  case `echo 'xy\c'` in
14410  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14411  xy)  ECHO_C='\c';;
14412  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14413       ECHO_T='	';;
14414  esac;;
14415*)
14416  ECHO_N='-n';;
14417esac
14418
14419rm -f conf$$ conf$$.exe conf$$.file
14420if test -d conf$$.dir; then
14421  rm -f conf$$.dir/conf$$.file
14422else
14423  rm -f conf$$.dir
14424  mkdir conf$$.dir 2>/dev/null
14425fi
14426if (echo >conf$$.file) 2>/dev/null; then
14427  if ln -s conf$$.file conf$$ 2>/dev/null; then
14428    as_ln_s='ln -s'
14429    # ... but there are two gotchas:
14430    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14431    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14432    # In both cases, we have to default to `cp -p'.
14433    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14434      as_ln_s='cp -p'
14435  elif ln conf$$.file conf$$ 2>/dev/null; then
14436    as_ln_s=ln
14437  else
14438    as_ln_s='cp -p'
14439  fi
14440else
14441  as_ln_s='cp -p'
14442fi
14443rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14444rmdir conf$$.dir 2>/dev/null
14445
14446
14447# as_fn_mkdir_p
14448# -------------
14449# Create "$as_dir" as a directory, including parents if necessary.
14450as_fn_mkdir_p ()
14451{
14452
14453  case $as_dir in #(
14454  -*) as_dir=./$as_dir;;
14455  esac
14456  test -d "$as_dir" || eval $as_mkdir_p || {
14457    as_dirs=
14458    while :; do
14459      case $as_dir in #(
14460      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14461      *) as_qdir=$as_dir;;
14462      esac
14463      as_dirs="'$as_qdir' $as_dirs"
14464      as_dir=`$as_dirname -- "$as_dir" ||
14465$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14466	 X"$as_dir" : 'X\(//\)[^/]' \| \
14467	 X"$as_dir" : 'X\(//\)$' \| \
14468	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14469$as_echo X"$as_dir" |
14470    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14471	    s//\1/
14472	    q
14473	  }
14474	  /^X\(\/\/\)[^/].*/{
14475	    s//\1/
14476	    q
14477	  }
14478	  /^X\(\/\/\)$/{
14479	    s//\1/
14480	    q
14481	  }
14482	  /^X\(\/\).*/{
14483	    s//\1/
14484	    q
14485	  }
14486	  s/.*/./; q'`
14487      test -d "$as_dir" && break
14488    done
14489    test -z "$as_dirs" || eval "mkdir $as_dirs"
14490  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14491
14492
14493} # as_fn_mkdir_p
14494if mkdir -p . 2>/dev/null; then
14495  as_mkdir_p='mkdir -p "$as_dir"'
14496else
14497  test -d ./-p && rmdir ./-p
14498  as_mkdir_p=false
14499fi
14500
14501if test -x / >/dev/null 2>&1; then
14502  as_test_x='test -x'
14503else
14504  if ls -dL / >/dev/null 2>&1; then
14505    as_ls_L_option=L
14506  else
14507    as_ls_L_option=
14508  fi
14509  as_test_x='
14510    eval sh -c '\''
14511      if test -d "$1"; then
14512	test -d "$1/.";
14513      else
14514	case $1 in #(
14515	-*)set "./$1";;
14516	esac;
14517	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14518	???[sx]*):;;*)false;;esac;fi
14519    '\'' sh
14520  '
14521fi
14522as_executable_p=$as_test_x
14523
14524# Sed expression to map a string onto a valid CPP name.
14525as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14526
14527# Sed expression to map a string onto a valid variable name.
14528as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14529
14530
14531exec 6>&1
14532## ----------------------------------- ##
14533## Main body of $CONFIG_STATUS script. ##
14534## ----------------------------------- ##
14535_ASEOF
14536test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14537
14538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14539# Save the log message, to keep $0 and so on meaningful, and to
14540# report actual input values of CONFIG_FILES etc. instead of their
14541# values after options handling.
14542ac_log="
14543This file was extended by sphinxbase $as_me 0.8, which was
14544generated by GNU Autoconf 2.65.  Invocation command line was
14545
14546  CONFIG_FILES    = $CONFIG_FILES
14547  CONFIG_HEADERS  = $CONFIG_HEADERS
14548  CONFIG_LINKS    = $CONFIG_LINKS
14549  CONFIG_COMMANDS = $CONFIG_COMMANDS
14550  $ $0 $@
14551
14552on `(hostname || uname -n) 2>/dev/null | sed 1q`
14553"
14554
14555_ACEOF
14556
14557case $ac_config_files in *"
14558"*) set x $ac_config_files; shift; ac_config_files=$*;;
14559esac
14560
14561case $ac_config_headers in *"
14562"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14563esac
14564
14565
14566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14567# Files that config.status was made for.
14568config_files="$ac_config_files"
14569config_headers="$ac_config_headers"
14570config_commands="$ac_config_commands"
14571
14572_ACEOF
14573
14574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14575ac_cs_usage="\
14576\`$as_me' instantiates files and other configuration actions
14577from templates according to the current configuration.  Unless the files
14578and actions are specified as TAGs, all are instantiated by default.
14579
14580Usage: $0 [OPTION]... [TAG]...
14581
14582  -h, --help       print this help, then exit
14583  -V, --version    print version number and configuration settings, then exit
14584      --config     print configuration, then exit
14585  -q, --quiet, --silent
14586                   do not print progress messages
14587  -d, --debug      don't remove temporary files
14588      --recheck    update $as_me by reconfiguring in the same conditions
14589      --file=FILE[:TEMPLATE]
14590                   instantiate the configuration file FILE
14591      --header=FILE[:TEMPLATE]
14592                   instantiate the configuration header FILE
14593
14594Configuration files:
14595$config_files
14596
14597Configuration headers:
14598$config_headers
14599
14600Configuration commands:
14601$config_commands
14602
14603Report bugs to the package provider."
14604
14605_ACEOF
14606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14607ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14608ac_cs_version="\\
14609sphinxbase config.status 0.8
14610configured by $0, generated by GNU Autoconf 2.65,
14611  with options \\"\$ac_cs_config\\"
14612
14613Copyright (C) 2009 Free Software Foundation, Inc.
14614This config.status script is free software; the Free Software Foundation
14615gives unlimited permission to copy, distribute and modify it."
14616
14617ac_pwd='$ac_pwd'
14618srcdir='$srcdir'
14619INSTALL='$INSTALL'
14620MKDIR_P='$MKDIR_P'
14621AWK='$AWK'
14622test -n "\$AWK" || AWK=awk
14623_ACEOF
14624
14625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14626# The default lists apply if the user does not specify any file.
14627ac_need_defaults=:
14628while test $# != 0
14629do
14630  case $1 in
14631  --*=*)
14632    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14633    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14634    ac_shift=:
14635    ;;
14636  *)
14637    ac_option=$1
14638    ac_optarg=$2
14639    ac_shift=shift
14640    ;;
14641  esac
14642
14643  case $ac_option in
14644  # Handling of the options.
14645  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14646    ac_cs_recheck=: ;;
14647  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14648    $as_echo "$ac_cs_version"; exit ;;
14649  --config | --confi | --conf | --con | --co | --c )
14650    $as_echo "$ac_cs_config"; exit ;;
14651  --debug | --debu | --deb | --de | --d | -d )
14652    debug=: ;;
14653  --file | --fil | --fi | --f )
14654    $ac_shift
14655    case $ac_optarg in
14656    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14657    esac
14658    as_fn_append CONFIG_FILES " '$ac_optarg'"
14659    ac_need_defaults=false;;
14660  --header | --heade | --head | --hea )
14661    $ac_shift
14662    case $ac_optarg in
14663    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14664    esac
14665    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14666    ac_need_defaults=false;;
14667  --he | --h)
14668    # Conflict between --help and --header
14669    as_fn_error "ambiguous option: \`$1'
14670Try \`$0 --help' for more information.";;
14671  --help | --hel | -h )
14672    $as_echo "$ac_cs_usage"; exit ;;
14673  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14674  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14675    ac_cs_silent=: ;;
14676
14677  # This is an error.
14678  -*) as_fn_error "unrecognized option: \`$1'
14679Try \`$0 --help' for more information." ;;
14680
14681  *) as_fn_append ac_config_targets " $1"
14682     ac_need_defaults=false ;;
14683
14684  esac
14685  shift
14686done
14687
14688ac_configure_extra_args=
14689
14690if $ac_cs_silent; then
14691  exec 6>/dev/null
14692  ac_configure_extra_args="$ac_configure_extra_args --silent"
14693fi
14694
14695_ACEOF
14696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14697if \$ac_cs_recheck; then
14698  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14699  shift
14700  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14701  CONFIG_SHELL='$SHELL'
14702  export CONFIG_SHELL
14703  exec "\$@"
14704fi
14705
14706_ACEOF
14707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14708exec 5>>config.log
14709{
14710  echo
14711  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14712## Running $as_me. ##
14713_ASBOX
14714  $as_echo "$ac_log"
14715} >&5
14716
14717_ACEOF
14718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14719#
14720# INIT-COMMANDS
14721#
14722AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14723
14724
14725# The HP-UX ksh and POSIX shell print the target directory to stdout
14726# if CDPATH is set.
14727(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14728
14729sed_quote_subst='$sed_quote_subst'
14730double_quote_subst='$double_quote_subst'
14731delay_variable_subst='$delay_variable_subst'
14732macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14733macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14734enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14735enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14736pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14737enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14738host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14739host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14740host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14741build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14742build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14743build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14744SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14745Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14746GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14747EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14748FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14749LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14750NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14751LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14752max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14753ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14754exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14755lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14756lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14757lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14758reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14759reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14760OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14761deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14762file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14763AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14764AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14765STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14766RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14767old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14768old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14769old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14770CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14771CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14772compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14773GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14774lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14775lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14776lt_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"`'
14777lt_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"`'
14778objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14779SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14780ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14781MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14782lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14783lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14784lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14785lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14786lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14787need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14788DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14789NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14790LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14791OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14792OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14793libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14794shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14795extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14796archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14797enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14798export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14799whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14800compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14801old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14802old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14803archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14804archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14805module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14806module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14807with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14808allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14809no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14810hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14811hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14812hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14813hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14814hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14815hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14816hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14817hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14818inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14819link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14820fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14821always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14822export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14823exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14824include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14825prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14826file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14827variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14828need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14829need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14830version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14831runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14832shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14833shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14834libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14835library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14836soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14837postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14838postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14839finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14840finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14841hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14842sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14843sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14844hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14845enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14846enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14847enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14848old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14849striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14850
14851LTCC='$LTCC'
14852LTCFLAGS='$LTCFLAGS'
14853compiler='$compiler_DEFAULT'
14854
14855# Quote evaled strings.
14856for var in SED \
14857GREP \
14858EGREP \
14859FGREP \
14860LD \
14861NM \
14862LN_S \
14863lt_SP2NL \
14864lt_NL2SP \
14865reload_flag \
14866OBJDUMP \
14867deplibs_check_method \
14868file_magic_cmd \
14869AR \
14870AR_FLAGS \
14871STRIP \
14872RANLIB \
14873CC \
14874CFLAGS \
14875compiler \
14876lt_cv_sys_global_symbol_pipe \
14877lt_cv_sys_global_symbol_to_cdecl \
14878lt_cv_sys_global_symbol_to_c_name_address \
14879lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14880SHELL \
14881ECHO \
14882lt_prog_compiler_no_builtin_flag \
14883lt_prog_compiler_wl \
14884lt_prog_compiler_pic \
14885lt_prog_compiler_static \
14886lt_cv_prog_compiler_c_o \
14887need_locks \
14888DSYMUTIL \
14889NMEDIT \
14890LIPO \
14891OTOOL \
14892OTOOL64 \
14893shrext_cmds \
14894export_dynamic_flag_spec \
14895whole_archive_flag_spec \
14896compiler_needs_object \
14897with_gnu_ld \
14898allow_undefined_flag \
14899no_undefined_flag \
14900hardcode_libdir_flag_spec \
14901hardcode_libdir_flag_spec_ld \
14902hardcode_libdir_separator \
14903fix_srcfile_path \
14904exclude_expsyms \
14905include_expsyms \
14906file_list_spec \
14907variables_saved_for_relink \
14908libname_spec \
14909library_names_spec \
14910soname_spec \
14911finish_eval \
14912old_striplib \
14913striplib; do
14914    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14915    *[\\\\\\\`\\"\\\$]*)
14916      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14917      ;;
14918    *)
14919      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14920      ;;
14921    esac
14922done
14923
14924# Double-quote double-evaled strings.
14925for var in reload_cmds \
14926old_postinstall_cmds \
14927old_postuninstall_cmds \
14928old_archive_cmds \
14929extract_expsyms_cmds \
14930old_archive_from_new_cmds \
14931old_archive_from_expsyms_cmds \
14932archive_cmds \
14933archive_expsym_cmds \
14934module_cmds \
14935module_expsym_cmds \
14936export_symbols_cmds \
14937prelink_cmds \
14938postinstall_cmds \
14939postuninstall_cmds \
14940finish_cmds \
14941sys_lib_search_path_spec \
14942sys_lib_dlsearch_path_spec; do
14943    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14944    *[\\\\\\\`\\"\\\$]*)
14945      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14946      ;;
14947    *)
14948      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14949      ;;
14950    esac
14951done
14952
14953# Fix-up fallback echo if it was mangled by the above quoting rules.
14954case \$lt_ECHO in
14955*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14956  ;;
14957esac
14958
14959ac_aux_dir='$ac_aux_dir'
14960xsi_shell='$xsi_shell'
14961lt_shell_append='$lt_shell_append'
14962
14963# See if we are running on zsh, and set the options which allow our
14964# commands through without removal of \ escapes INIT.
14965if test -n "\${ZSH_VERSION+set}" ; then
14966   setopt NO_GLOB_SUBST
14967fi
14968
14969
14970    PACKAGE='$PACKAGE'
14971    VERSION='$VERSION'
14972    TIMESTAMP='$TIMESTAMP'
14973    RM='$RM'
14974    ofile='$ofile'
14975
14976
14977
14978
14979_ACEOF
14980
14981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14982
14983# Handling of arguments.
14984for ac_config_target in $ac_config_targets
14985do
14986  case $ac_config_target in
14987    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
14988    "include/sphinx_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/sphinx_config.h" ;;
14989    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14990    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14991    "sphinxbase.pc") CONFIG_FILES="$CONFIG_FILES sphinxbase.pc" ;;
14992    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14993    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14994    "include/sphinxbase/Makefile") CONFIG_FILES="$CONFIG_FILES include/sphinxbase/Makefile" ;;
14995    "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
14996    "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
14997    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14998    "src/libsphinxad/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsphinxad/Makefile" ;;
14999    "src/libsphinxbase/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsphinxbase/Makefile" ;;
15000    "src/libsphinxbase/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsphinxbase/util/Makefile" ;;
15001    "src/libsphinxbase/feat/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsphinxbase/feat/Makefile" ;;
15002    "src/libsphinxbase/fe/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsphinxbase/fe/Makefile" ;;
15003    "src/libsphinxbase/lm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libsphinxbase/lm/Makefile" ;;
15004    "src/sphinx_fe/Makefile") CONFIG_FILES="$CONFIG_FILES src/sphinx_fe/Makefile" ;;
15005    "src/sphinx_cepview/Makefile") CONFIG_FILES="$CONFIG_FILES src/sphinx_cepview/Makefile" ;;
15006    "src/sphinx_jsgf2fsg/Makefile") CONFIG_FILES="$CONFIG_FILES src/sphinx_jsgf2fsg/Makefile" ;;
15007    "src/sphinx_adtools/Makefile") CONFIG_FILES="$CONFIG_FILES src/sphinx_adtools/Makefile" ;;
15008    "src/sphinx_lmtools/Makefile") CONFIG_FILES="$CONFIG_FILES src/sphinx_lmtools/Makefile" ;;
15009    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15010    "doc/doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxyfile" ;;
15011    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
15012    "test/unit/testfuncs.sh") CONFIG_FILES="$CONFIG_FILES test/unit/testfuncs.sh" ;;
15013    "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;;
15014    "test/unit/test_ad/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/test_ad/Makefile" ;;
15015    "test/unit/test_alloc/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/test_alloc/Makefile" ;;
15016    "test/unit/test_bitvec/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/test_bitvec/Makefile" ;;
15017    "test/unit/test_case/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/test_case/Makefile" ;;
15018    "test/unit/test_string/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/test_string/Makefile" ;;
15019    "test/unit/test_cmdln/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/test_cmdln/Makefile" ;;
15020    "test/unit/test_hash/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/test_hash/Makefile" ;;
15021    "test/unit/test_matrix/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/test_matrix/Makefile" ;;
15022    "test/unit/test_feat/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/test_feat/Makefile" ;;
15023    "test/unit/test_fe/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/test_fe/Makefile" ;;
15024    "test/unit/test_logmath/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/test_logmath/Makefile" ;;
15025    "test/unit/test_lineiter/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/test_lineiter/Makefile" ;;
15026    "test/unit/test_ngram/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/test_ngram/Makefile" ;;
15027    "test/unit/test_fsg/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/test_fsg/Makefile" ;;
15028    "test/unit/test_thread/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/test_thread/Makefile" ;;
15029    "test/unit/test_util/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/test_util/Makefile" ;;
15030    "test/regression/testfuncs.sh") CONFIG_FILES="$CONFIG_FILES test/regression/testfuncs.sh" ;;
15031    "test/regression/Makefile") CONFIG_FILES="$CONFIG_FILES test/regression/Makefile" ;;
15032
15033  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15034  esac
15035done
15036
15037
15038# If the user did not use the arguments to specify the items to instantiate,
15039# then the envvar interface is used.  Set only those that are not.
15040# We use the long form for the default assignment because of an extremely
15041# bizarre bug on SunOS 4.1.3.
15042if $ac_need_defaults; then
15043  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15044  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15045  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15046fi
15047
15048# Have a temporary directory for convenience.  Make it in the build tree
15049# simply because there is no reason against having it here, and in addition,
15050# creating and moving files from /tmp can sometimes cause problems.
15051# Hook for its removal unless debugging.
15052# Note that there is a small window in which the directory will not be cleaned:
15053# after its creation but before its name has been assigned to `$tmp'.
15054$debug ||
15055{
15056  tmp=
15057  trap 'exit_status=$?
15058  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15059' 0
15060  trap 'as_fn_exit 1' 1 2 13 15
15061}
15062# Create a (secure) tmp directory for tmp files.
15063
15064{
15065  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15066  test -n "$tmp" && test -d "$tmp"
15067}  ||
15068{
15069  tmp=./conf$$-$RANDOM
15070  (umask 077 && mkdir "$tmp")
15071} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15072
15073# Set up the scripts for CONFIG_FILES section.
15074# No need to generate them if there are no CONFIG_FILES.
15075# This happens for instance with `./config.status config.h'.
15076if test -n "$CONFIG_FILES"; then
15077
15078
15079ac_cr=`echo X | tr X '\015'`
15080# On cygwin, bash can eat \r inside `` if the user requested igncr.
15081# But we know of no other shell where ac_cr would be empty at this
15082# point, so we can use a bashism as a fallback.
15083if test "x$ac_cr" = x; then
15084  eval ac_cr=\$\'\\r\'
15085fi
15086ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15087if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15088  ac_cs_awk_cr='\r'
15089else
15090  ac_cs_awk_cr=$ac_cr
15091fi
15092
15093echo 'BEGIN {' >"$tmp/subs1.awk" &&
15094_ACEOF
15095
15096
15097{
15098  echo "cat >conf$$subs.awk <<_ACEOF" &&
15099  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15100  echo "_ACEOF"
15101} >conf$$subs.sh ||
15102  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15103ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15104ac_delim='%!_!# '
15105for ac_last_try in false false false false false :; do
15106  . ./conf$$subs.sh ||
15107    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15108
15109  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15110  if test $ac_delim_n = $ac_delim_num; then
15111    break
15112  elif $ac_last_try; then
15113    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15114  else
15115    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15116  fi
15117done
15118rm -f conf$$subs.sh
15119
15120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15121cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15122_ACEOF
15123sed -n '
15124h
15125s/^/S["/; s/!.*/"]=/
15126p
15127g
15128s/^[^!]*!//
15129:repl
15130t repl
15131s/'"$ac_delim"'$//
15132t delim
15133:nl
15134h
15135s/\(.\{148\}\)..*/\1/
15136t more1
15137s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15138p
15139n
15140b repl
15141:more1
15142s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15143p
15144g
15145s/.\{148\}//
15146t nl
15147:delim
15148h
15149s/\(.\{148\}\)..*/\1/
15150t more2
15151s/["\\]/\\&/g; s/^/"/; s/$/"/
15152p
15153b
15154:more2
15155s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15156p
15157g
15158s/.\{148\}//
15159t delim
15160' <conf$$subs.awk | sed '
15161/^[^""]/{
15162  N
15163  s/\n//
15164}
15165' >>$CONFIG_STATUS || ac_write_fail=1
15166rm -f conf$$subs.awk
15167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15168_ACAWK
15169cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15170  for (key in S) S_is_set[key] = 1
15171  FS = ""
15172
15173}
15174{
15175  line = $ 0
15176  nfields = split(line, field, "@")
15177  substed = 0
15178  len = length(field[1])
15179  for (i = 2; i < nfields; i++) {
15180    key = field[i]
15181    keylen = length(key)
15182    if (S_is_set[key]) {
15183      value = S[key]
15184      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15185      len += length(value) + length(field[++i])
15186      substed = 1
15187    } else
15188      len += 1 + keylen
15189  }
15190
15191  print line
15192}
15193
15194_ACAWK
15195_ACEOF
15196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15197if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15198  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15199else
15200  cat
15201fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15202  || as_fn_error "could not setup config files machinery" "$LINENO" 5
15203_ACEOF
15204
15205# VPATH may cause trouble with some makes, so we remove $(srcdir),
15206# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15207# trailing colons and then remove the whole line if VPATH becomes empty
15208# (actually we leave an empty line to preserve line numbers).
15209if test "x$srcdir" = x.; then
15210  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15211s/:*\$(srcdir):*/:/
15212s/:*\${srcdir}:*/:/
15213s/:*@srcdir@:*/:/
15214s/^\([^=]*=[	 ]*\):*/\1/
15215s/:*$//
15216s/^[^=]*=[	 ]*$//
15217}'
15218fi
15219
15220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15221fi # test -n "$CONFIG_FILES"
15222
15223# Set up the scripts for CONFIG_HEADERS section.
15224# No need to generate them if there are no CONFIG_HEADERS.
15225# This happens for instance with `./config.status Makefile'.
15226if test -n "$CONFIG_HEADERS"; then
15227cat >"$tmp/defines.awk" <<\_ACAWK ||
15228BEGIN {
15229_ACEOF
15230
15231# Transform confdefs.h into an awk script `defines.awk', embedded as
15232# here-document in config.status, that substitutes the proper values into
15233# config.h.in to produce config.h.
15234
15235# Create a delimiter string that does not exist in confdefs.h, to ease
15236# handling of long lines.
15237ac_delim='%!_!# '
15238for ac_last_try in false false :; do
15239  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15240  if test -z "$ac_t"; then
15241    break
15242  elif $ac_last_try; then
15243    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15244  else
15245    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15246  fi
15247done
15248
15249# For the awk script, D is an array of macro values keyed by name,
15250# likewise P contains macro parameters if any.  Preserve backslash
15251# newline sequences.
15252
15253ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15254sed -n '
15255s/.\{148\}/&'"$ac_delim"'/g
15256t rset
15257:rset
15258s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15259t def
15260d
15261:def
15262s/\\$//
15263t bsnl
15264s/["\\]/\\&/g
15265s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15266D["\1"]=" \3"/p
15267s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15268d
15269:bsnl
15270s/["\\]/\\&/g
15271s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15272D["\1"]=" \3\\\\\\n"\\/p
15273t cont
15274s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15275t cont
15276d
15277:cont
15278n
15279s/.\{148\}/&'"$ac_delim"'/g
15280t clear
15281:clear
15282s/\\$//
15283t bsnlc
15284s/["\\]/\\&/g; s/^/"/; s/$/"/p
15285d
15286:bsnlc
15287s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15288b cont
15289' <confdefs.h | sed '
15290s/'"$ac_delim"'/"\\\
15291"/g' >>$CONFIG_STATUS || ac_write_fail=1
15292
15293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15294  for (key in D) D_is_set[key] = 1
15295  FS = ""
15296}
15297/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15298  line = \$ 0
15299  split(line, arg, " ")
15300  if (arg[1] == "#") {
15301    defundef = arg[2]
15302    mac1 = arg[3]
15303  } else {
15304    defundef = substr(arg[1], 2)
15305    mac1 = arg[2]
15306  }
15307  split(mac1, mac2, "(") #)
15308  macro = mac2[1]
15309  prefix = substr(line, 1, index(line, defundef) - 1)
15310  if (D_is_set[macro]) {
15311    # Preserve the white space surrounding the "#".
15312    print prefix "define", macro P[macro] D[macro]
15313    next
15314  } else {
15315    # Replace #undef with comments.  This is necessary, for example,
15316    # in the case of _POSIX_SOURCE, which is predefined and required
15317    # on some systems where configure will not decide to define it.
15318    if (defundef == "undef") {
15319      print "/*", prefix defundef, macro, "*/"
15320      next
15321    }
15322  }
15323}
15324{ print }
15325_ACAWK
15326_ACEOF
15327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15328  as_fn_error "could not setup config headers machinery" "$LINENO" 5
15329fi # test -n "$CONFIG_HEADERS"
15330
15331
15332eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15333shift
15334for ac_tag
15335do
15336  case $ac_tag in
15337  :[FHLC]) ac_mode=$ac_tag; continue;;
15338  esac
15339  case $ac_mode$ac_tag in
15340  :[FHL]*:*);;
15341  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15342  :[FH]-) ac_tag=-:-;;
15343  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15344  esac
15345  ac_save_IFS=$IFS
15346  IFS=:
15347  set x $ac_tag
15348  IFS=$ac_save_IFS
15349  shift
15350  ac_file=$1
15351  shift
15352
15353  case $ac_mode in
15354  :L) ac_source=$1;;
15355  :[FH])
15356    ac_file_inputs=
15357    for ac_f
15358    do
15359      case $ac_f in
15360      -) ac_f="$tmp/stdin";;
15361      *) # Look for the file first in the build tree, then in the source tree
15362	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15363	 # because $ac_f cannot contain `:'.
15364	 test -f "$ac_f" ||
15365	   case $ac_f in
15366	   [\\/$]*) false;;
15367	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15368	   esac ||
15369	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15370      esac
15371      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15372      as_fn_append ac_file_inputs " '$ac_f'"
15373    done
15374
15375    # Let's still pretend it is `configure' which instantiates (i.e., don't
15376    # use $as_me), people would be surprised to read:
15377    #    /* config.h.  Generated by config.status.  */
15378    configure_input='Generated from '`
15379	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15380	`' by configure.'
15381    if test x"$ac_file" != x-; then
15382      configure_input="$ac_file.  $configure_input"
15383      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15384$as_echo "$as_me: creating $ac_file" >&6;}
15385    fi
15386    # Neutralize special characters interpreted by sed in replacement strings.
15387    case $configure_input in #(
15388    *\&* | *\|* | *\\* )
15389       ac_sed_conf_input=`$as_echo "$configure_input" |
15390       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15391    *) ac_sed_conf_input=$configure_input;;
15392    esac
15393
15394    case $ac_tag in
15395    *:-:* | *:-) cat >"$tmp/stdin" \
15396      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15397    esac
15398    ;;
15399  esac
15400
15401  ac_dir=`$as_dirname -- "$ac_file" ||
15402$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15403	 X"$ac_file" : 'X\(//\)[^/]' \| \
15404	 X"$ac_file" : 'X\(//\)$' \| \
15405	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15406$as_echo X"$ac_file" |
15407    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15408	    s//\1/
15409	    q
15410	  }
15411	  /^X\(\/\/\)[^/].*/{
15412	    s//\1/
15413	    q
15414	  }
15415	  /^X\(\/\/\)$/{
15416	    s//\1/
15417	    q
15418	  }
15419	  /^X\(\/\).*/{
15420	    s//\1/
15421	    q
15422	  }
15423	  s/.*/./; q'`
15424  as_dir="$ac_dir"; as_fn_mkdir_p
15425  ac_builddir=.
15426
15427case "$ac_dir" in
15428.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15429*)
15430  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15431  # A ".." for each directory in $ac_dir_suffix.
15432  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15433  case $ac_top_builddir_sub in
15434  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15435  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15436  esac ;;
15437esac
15438ac_abs_top_builddir=$ac_pwd
15439ac_abs_builddir=$ac_pwd$ac_dir_suffix
15440# for backward compatibility:
15441ac_top_builddir=$ac_top_build_prefix
15442
15443case $srcdir in
15444  .)  # We are building in place.
15445    ac_srcdir=.
15446    ac_top_srcdir=$ac_top_builddir_sub
15447    ac_abs_top_srcdir=$ac_pwd ;;
15448  [\\/]* | ?:[\\/]* )  # Absolute name.
15449    ac_srcdir=$srcdir$ac_dir_suffix;
15450    ac_top_srcdir=$srcdir
15451    ac_abs_top_srcdir=$srcdir ;;
15452  *) # Relative name.
15453    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15454    ac_top_srcdir=$ac_top_build_prefix$srcdir
15455    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15456esac
15457ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15458
15459
15460  case $ac_mode in
15461  :F)
15462  #
15463  # CONFIG_FILE
15464  #
15465
15466  case $INSTALL in
15467  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15468  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15469  esac
15470  ac_MKDIR_P=$MKDIR_P
15471  case $MKDIR_P in
15472  [\\/$]* | ?:[\\/]* ) ;;
15473  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15474  esac
15475_ACEOF
15476
15477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15478# If the template does not know about datarootdir, expand it.
15479# FIXME: This hack should be removed a few years after 2.60.
15480ac_datarootdir_hack=; ac_datarootdir_seen=
15481ac_sed_dataroot='
15482/datarootdir/ {
15483  p
15484  q
15485}
15486/@datadir@/p
15487/@docdir@/p
15488/@infodir@/p
15489/@localedir@/p
15490/@mandir@/p'
15491case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15492*datarootdir*) ac_datarootdir_seen=yes;;
15493*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15494  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15495$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15496_ACEOF
15497cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15498  ac_datarootdir_hack='
15499  s&@datadir@&$datadir&g
15500  s&@docdir@&$docdir&g
15501  s&@infodir@&$infodir&g
15502  s&@localedir@&$localedir&g
15503  s&@mandir@&$mandir&g
15504  s&\\\${datarootdir}&$datarootdir&g' ;;
15505esac
15506_ACEOF
15507
15508# Neutralize VPATH when `$srcdir' = `.'.
15509# Shell code in configure.ac might set extrasub.
15510# FIXME: do we really want to maintain this feature?
15511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15512ac_sed_extra="$ac_vpsub
15513$extrasub
15514_ACEOF
15515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15516:t
15517/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15518s|@configure_input@|$ac_sed_conf_input|;t t
15519s&@top_builddir@&$ac_top_builddir_sub&;t t
15520s&@top_build_prefix@&$ac_top_build_prefix&;t t
15521s&@srcdir@&$ac_srcdir&;t t
15522s&@abs_srcdir@&$ac_abs_srcdir&;t t
15523s&@top_srcdir@&$ac_top_srcdir&;t t
15524s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15525s&@builddir@&$ac_builddir&;t t
15526s&@abs_builddir@&$ac_abs_builddir&;t t
15527s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15528s&@INSTALL@&$ac_INSTALL&;t t
15529s&@MKDIR_P@&$ac_MKDIR_P&;t t
15530$ac_datarootdir_hack
15531"
15532eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15533  || as_fn_error "could not create $ac_file" "$LINENO" 5
15534
15535test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15536  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15537  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15538  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15539which seems to be undefined.  Please make sure it is defined." >&5
15540$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15541which seems to be undefined.  Please make sure it is defined." >&2;}
15542
15543  rm -f "$tmp/stdin"
15544  case $ac_file in
15545  -) cat "$tmp/out" && rm -f "$tmp/out";;
15546  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15547  esac \
15548  || as_fn_error "could not create $ac_file" "$LINENO" 5
15549 ;;
15550  :H)
15551  #
15552  # CONFIG_HEADER
15553  #
15554  if test x"$ac_file" != x-; then
15555    {
15556      $as_echo "/* $configure_input  */" \
15557      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15558    } >"$tmp/config.h" \
15559      || as_fn_error "could not create $ac_file" "$LINENO" 5
15560    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15561      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15562$as_echo "$as_me: $ac_file is unchanged" >&6;}
15563    else
15564      rm -f "$ac_file"
15565      mv "$tmp/config.h" "$ac_file" \
15566	|| as_fn_error "could not create $ac_file" "$LINENO" 5
15567    fi
15568  else
15569    $as_echo "/* $configure_input  */" \
15570      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15571      || as_fn_error "could not create -" "$LINENO" 5
15572  fi
15573# Compute "$ac_file"'s index in $config_headers.
15574_am_arg="$ac_file"
15575_am_stamp_count=1
15576for _am_header in $config_headers :; do
15577  case $_am_header in
15578    $_am_arg | $_am_arg:* )
15579      break ;;
15580    * )
15581      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15582  esac
15583done
15584echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15585$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15586	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15587	 X"$_am_arg" : 'X\(//\)$' \| \
15588	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15589$as_echo X"$_am_arg" |
15590    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15591	    s//\1/
15592	    q
15593	  }
15594	  /^X\(\/\/\)[^/].*/{
15595	    s//\1/
15596	    q
15597	  }
15598	  /^X\(\/\/\)$/{
15599	    s//\1/
15600	    q
15601	  }
15602	  /^X\(\/\).*/{
15603	    s//\1/
15604	    q
15605	  }
15606	  s/.*/./; q'`/stamp-h$_am_stamp_count
15607 ;;
15608
15609  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15610$as_echo "$as_me: executing $ac_file commands" >&6;}
15611 ;;
15612  esac
15613
15614
15615  case $ac_file$ac_mode in
15616    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15617  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15618  # are listed without --file.  Let's play safe and only enable the eval
15619  # if we detect the quoting.
15620  case $CONFIG_FILES in
15621  *\'*) eval set x "$CONFIG_FILES" ;;
15622  *)   set x $CONFIG_FILES ;;
15623  esac
15624  shift
15625  for mf
15626  do
15627    # Strip MF so we end up with the name of the file.
15628    mf=`echo "$mf" | sed -e 's/:.*$//'`
15629    # Check whether this is an Automake generated Makefile or not.
15630    # We used to match only the files named `Makefile.in', but
15631    # some people rename them; so instead we look at the file content.
15632    # Grep'ing the first line is not enough: some people post-process
15633    # each Makefile.in and add a new line on top of each file to say so.
15634    # Grep'ing the whole file is not good either: AIX grep has a line
15635    # limit of 2048, but all sed's we know have understand at least 4000.
15636    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15637      dirpart=`$as_dirname -- "$mf" ||
15638$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15639	 X"$mf" : 'X\(//\)[^/]' \| \
15640	 X"$mf" : 'X\(//\)$' \| \
15641	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15642$as_echo X"$mf" |
15643    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15644	    s//\1/
15645	    q
15646	  }
15647	  /^X\(\/\/\)[^/].*/{
15648	    s//\1/
15649	    q
15650	  }
15651	  /^X\(\/\/\)$/{
15652	    s//\1/
15653	    q
15654	  }
15655	  /^X\(\/\).*/{
15656	    s//\1/
15657	    q
15658	  }
15659	  s/.*/./; q'`
15660    else
15661      continue
15662    fi
15663    # Extract the definition of DEPDIR, am__include, and am__quote
15664    # from the Makefile without running `make'.
15665    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15666    test -z "$DEPDIR" && continue
15667    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15668    test -z "am__include" && continue
15669    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15670    # When using ansi2knr, U may be empty or an underscore; expand it
15671    U=`sed -n 's/^U = //p' < "$mf"`
15672    # Find all dependency output files, they are included files with
15673    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15674    # simplest approach to changing $(DEPDIR) to its actual value in the
15675    # expansion.
15676    for file in `sed -n "
15677      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15678	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15679      # Make sure the directory exists.
15680      test -f "$dirpart/$file" && continue
15681      fdir=`$as_dirname -- "$file" ||
15682$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15683	 X"$file" : 'X\(//\)[^/]' \| \
15684	 X"$file" : 'X\(//\)$' \| \
15685	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15686$as_echo X"$file" |
15687    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15688	    s//\1/
15689	    q
15690	  }
15691	  /^X\(\/\/\)[^/].*/{
15692	    s//\1/
15693	    q
15694	  }
15695	  /^X\(\/\/\)$/{
15696	    s//\1/
15697	    q
15698	  }
15699	  /^X\(\/\).*/{
15700	    s//\1/
15701	    q
15702	  }
15703	  s/.*/./; q'`
15704      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15705      # echo "creating $dirpart/$file"
15706      echo '# dummy' > "$dirpart/$file"
15707    done
15708  done
15709}
15710 ;;
15711    "libtool":C)
15712
15713    # See if we are running on zsh, and set the options which allow our
15714    # commands through without removal of \ escapes.
15715    if test -n "${ZSH_VERSION+set}" ; then
15716      setopt NO_GLOB_SUBST
15717    fi
15718
15719    cfgfile="${ofile}T"
15720    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15721    $RM "$cfgfile"
15722
15723    cat <<_LT_EOF >> "$cfgfile"
15724#! $SHELL
15725
15726# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15727# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15728# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15729# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15730#
15731#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15732#                 2006, 2007, 2008 Free Software Foundation, Inc.
15733#   Written by Gordon Matzigkeit, 1996
15734#
15735#   This file is part of GNU Libtool.
15736#
15737# GNU Libtool is free software; you can redistribute it and/or
15738# modify it under the terms of the GNU General Public License as
15739# published by the Free Software Foundation; either version 2 of
15740# the License, or (at your option) any later version.
15741#
15742# As a special exception to the GNU General Public License,
15743# if you distribute this file as part of a program or library that
15744# is built using GNU Libtool, you may include this file under the
15745# same distribution terms that you use for the rest of that program.
15746#
15747# GNU Libtool is distributed in the hope that it will be useful,
15748# but WITHOUT ANY WARRANTY; without even the implied warranty of
15749# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15750# GNU General Public License for more details.
15751#
15752# You should have received a copy of the GNU General Public License
15753# along with GNU Libtool; see the file COPYING.  If not, a copy
15754# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15755# obtained by writing to the Free Software Foundation, Inc.,
15756# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15757
15758
15759# The names of the tagged configurations supported by this script.
15760available_tags=""
15761
15762# ### BEGIN LIBTOOL CONFIG
15763
15764# Which release of libtool.m4 was used?
15765macro_version=$macro_version
15766macro_revision=$macro_revision
15767
15768# Whether or not to build shared libraries.
15769build_libtool_libs=$enable_shared
15770
15771# Whether or not to build static libraries.
15772build_old_libs=$enable_static
15773
15774# What type of objects to build.
15775pic_mode=$pic_mode
15776
15777# Whether or not to optimize for fast installation.
15778fast_install=$enable_fast_install
15779
15780# The host system.
15781host_alias=$host_alias
15782host=$host
15783host_os=$host_os
15784
15785# The build system.
15786build_alias=$build_alias
15787build=$build
15788build_os=$build_os
15789
15790# A sed program that does not truncate output.
15791SED=$lt_SED
15792
15793# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15794Xsed="\$SED -e 1s/^X//"
15795
15796# A grep program that handles long lines.
15797GREP=$lt_GREP
15798
15799# An ERE matcher.
15800EGREP=$lt_EGREP
15801
15802# A literal string matcher.
15803FGREP=$lt_FGREP
15804
15805# A BSD- or MS-compatible name lister.
15806NM=$lt_NM
15807
15808# Whether we need soft or hard links.
15809LN_S=$lt_LN_S
15810
15811# What is the maximum length of a command?
15812max_cmd_len=$max_cmd_len
15813
15814# Object file suffix (normally "o").
15815objext=$ac_objext
15816
15817# Executable file suffix (normally "").
15818exeext=$exeext
15819
15820# whether the shell understands "unset".
15821lt_unset=$lt_unset
15822
15823# turn spaces into newlines.
15824SP2NL=$lt_lt_SP2NL
15825
15826# turn newlines into spaces.
15827NL2SP=$lt_lt_NL2SP
15828
15829# How to create reloadable object files.
15830reload_flag=$lt_reload_flag
15831reload_cmds=$lt_reload_cmds
15832
15833# An object symbol dumper.
15834OBJDUMP=$lt_OBJDUMP
15835
15836# Method to check whether dependent libraries are shared objects.
15837deplibs_check_method=$lt_deplibs_check_method
15838
15839# Command to use when deplibs_check_method == "file_magic".
15840file_magic_cmd=$lt_file_magic_cmd
15841
15842# The archiver.
15843AR=$lt_AR
15844AR_FLAGS=$lt_AR_FLAGS
15845
15846# A symbol stripping program.
15847STRIP=$lt_STRIP
15848
15849# Commands used to install an old-style archive.
15850RANLIB=$lt_RANLIB
15851old_postinstall_cmds=$lt_old_postinstall_cmds
15852old_postuninstall_cmds=$lt_old_postuninstall_cmds
15853
15854# A C compiler.
15855LTCC=$lt_CC
15856
15857# LTCC compiler flags.
15858LTCFLAGS=$lt_CFLAGS
15859
15860# Take the output of nm and produce a listing of raw symbols and C names.
15861global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15862
15863# Transform the output of nm in a proper C declaration.
15864global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15865
15866# Transform the output of nm in a C name address pair.
15867global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15868
15869# Transform the output of nm in a C name address pair when lib prefix is needed.
15870global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15871
15872# The name of the directory that contains temporary libtool files.
15873objdir=$objdir
15874
15875# Shell to use when invoking shell scripts.
15876SHELL=$lt_SHELL
15877
15878# An echo program that does not interpret backslashes.
15879ECHO=$lt_ECHO
15880
15881# Used to examine libraries when file_magic_cmd begins with "file".
15882MAGIC_CMD=$MAGIC_CMD
15883
15884# Must we lock files when doing compilation?
15885need_locks=$lt_need_locks
15886
15887# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15888DSYMUTIL=$lt_DSYMUTIL
15889
15890# Tool to change global to local symbols on Mac OS X.
15891NMEDIT=$lt_NMEDIT
15892
15893# Tool to manipulate fat objects and archives on Mac OS X.
15894LIPO=$lt_LIPO
15895
15896# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15897OTOOL=$lt_OTOOL
15898
15899# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15900OTOOL64=$lt_OTOOL64
15901
15902# Old archive suffix (normally "a").
15903libext=$libext
15904
15905# Shared library suffix (normally ".so").
15906shrext_cmds=$lt_shrext_cmds
15907
15908# The commands to extract the exported symbol list from a shared archive.
15909extract_expsyms_cmds=$lt_extract_expsyms_cmds
15910
15911# Variables whose values should be saved in libtool wrapper scripts and
15912# restored at link time.
15913variables_saved_for_relink=$lt_variables_saved_for_relink
15914
15915# Do we need the "lib" prefix for modules?
15916need_lib_prefix=$need_lib_prefix
15917
15918# Do we need a version for libraries?
15919need_version=$need_version
15920
15921# Library versioning type.
15922version_type=$version_type
15923
15924# Shared library runtime path variable.
15925runpath_var=$runpath_var
15926
15927# Shared library path variable.
15928shlibpath_var=$shlibpath_var
15929
15930# Is shlibpath searched before the hard-coded library search path?
15931shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15932
15933# Format of library name prefix.
15934libname_spec=$lt_libname_spec
15935
15936# List of archive names.  First name is the real one, the rest are links.
15937# The last name is the one that the linker finds with -lNAME
15938library_names_spec=$lt_library_names_spec
15939
15940# The coded name of the library, if different from the real name.
15941soname_spec=$lt_soname_spec
15942
15943# Command to use after installation of a shared archive.
15944postinstall_cmds=$lt_postinstall_cmds
15945
15946# Command to use after uninstallation of a shared archive.
15947postuninstall_cmds=$lt_postuninstall_cmds
15948
15949# Commands used to finish a libtool library installation in a directory.
15950finish_cmds=$lt_finish_cmds
15951
15952# As "finish_cmds", except a single script fragment to be evaled but
15953# not shown.
15954finish_eval=$lt_finish_eval
15955
15956# Whether we should hardcode library paths into libraries.
15957hardcode_into_libs=$hardcode_into_libs
15958
15959# Compile-time system search path for libraries.
15960sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15961
15962# Run-time system search path for libraries.
15963sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15964
15965# Whether dlopen is supported.
15966dlopen_support=$enable_dlopen
15967
15968# Whether dlopen of programs is supported.
15969dlopen_self=$enable_dlopen_self
15970
15971# Whether dlopen of statically linked programs is supported.
15972dlopen_self_static=$enable_dlopen_self_static
15973
15974# Commands to strip libraries.
15975old_striplib=$lt_old_striplib
15976striplib=$lt_striplib
15977
15978
15979# The linker used to build libraries.
15980LD=$lt_LD
15981
15982# Commands used to build an old-style archive.
15983old_archive_cmds=$lt_old_archive_cmds
15984
15985# A language specific compiler.
15986CC=$lt_compiler
15987
15988# Is the compiler the GNU compiler?
15989with_gcc=$GCC
15990
15991# Compiler flag to turn off builtin functions.
15992no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15993
15994# How to pass a linker flag through the compiler.
15995wl=$lt_lt_prog_compiler_wl
15996
15997# Additional compiler flags for building library objects.
15998pic_flag=$lt_lt_prog_compiler_pic
15999
16000# Compiler flag to prevent dynamic linking.
16001link_static_flag=$lt_lt_prog_compiler_static
16002
16003# Does compiler simultaneously support -c and -o options?
16004compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16005
16006# Whether or not to add -lc for building shared libraries.
16007build_libtool_need_lc=$archive_cmds_need_lc
16008
16009# Whether or not to disallow shared libs when runtime libs are static.
16010allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16011
16012# Compiler flag to allow reflexive dlopens.
16013export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16014
16015# Compiler flag to generate shared objects directly from archives.
16016whole_archive_flag_spec=$lt_whole_archive_flag_spec
16017
16018# Whether the compiler copes with passing no objects directly.
16019compiler_needs_object=$lt_compiler_needs_object
16020
16021# Create an old-style archive from a shared archive.
16022old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16023
16024# Create a temporary old-style archive to link instead of a shared archive.
16025old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16026
16027# Commands used to build a shared archive.
16028archive_cmds=$lt_archive_cmds
16029archive_expsym_cmds=$lt_archive_expsym_cmds
16030
16031# Commands used to build a loadable module if different from building
16032# a shared archive.
16033module_cmds=$lt_module_cmds
16034module_expsym_cmds=$lt_module_expsym_cmds
16035
16036# Whether we are building with GNU ld or not.
16037with_gnu_ld=$lt_with_gnu_ld
16038
16039# Flag that allows shared libraries with undefined symbols to be built.
16040allow_undefined_flag=$lt_allow_undefined_flag
16041
16042# Flag that enforces no undefined symbols.
16043no_undefined_flag=$lt_no_undefined_flag
16044
16045# Flag to hardcode \$libdir into a binary during linking.
16046# This must work even if \$libdir does not exist
16047hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16048
16049# If ld is used when linking, flag to hardcode \$libdir into a binary
16050# during linking.  This must work even if \$libdir does not exist.
16051hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16052
16053# Whether we need a single "-rpath" flag with a separated argument.
16054hardcode_libdir_separator=$lt_hardcode_libdir_separator
16055
16056# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16057# DIR into the resulting binary.
16058hardcode_direct=$hardcode_direct
16059
16060# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16061# DIR into the resulting binary and the resulting library dependency is
16062# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16063# library is relocated.
16064hardcode_direct_absolute=$hardcode_direct_absolute
16065
16066# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16067# into the resulting binary.
16068hardcode_minus_L=$hardcode_minus_L
16069
16070# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16071# into the resulting binary.
16072hardcode_shlibpath_var=$hardcode_shlibpath_var
16073
16074# Set to "yes" if building a shared library automatically hardcodes DIR
16075# into the library and all subsequent libraries and executables linked
16076# against it.
16077hardcode_automatic=$hardcode_automatic
16078
16079# Set to yes if linker adds runtime paths of dependent libraries
16080# to runtime path list.
16081inherit_rpath=$inherit_rpath
16082
16083# Whether libtool must link a program against all its dependency libraries.
16084link_all_deplibs=$link_all_deplibs
16085
16086# Fix the shell variable \$srcfile for the compiler.
16087fix_srcfile_path=$lt_fix_srcfile_path
16088
16089# Set to "yes" if exported symbols are required.
16090always_export_symbols=$always_export_symbols
16091
16092# The commands to list exported symbols.
16093export_symbols_cmds=$lt_export_symbols_cmds
16094
16095# Symbols that should not be listed in the preloaded symbols.
16096exclude_expsyms=$lt_exclude_expsyms
16097
16098# Symbols that must always be exported.
16099include_expsyms=$lt_include_expsyms
16100
16101# Commands necessary for linking programs (against libraries) with templates.
16102prelink_cmds=$lt_prelink_cmds
16103
16104# Specify filename containing input files.
16105file_list_spec=$lt_file_list_spec
16106
16107# How to hardcode a shared library path into an executable.
16108hardcode_action=$hardcode_action
16109
16110# ### END LIBTOOL CONFIG
16111
16112_LT_EOF
16113
16114  case $host_os in
16115  aix3*)
16116    cat <<\_LT_EOF >> "$cfgfile"
16117# AIX sometimes has problems with the GCC collect2 program.  For some
16118# reason, if we set the COLLECT_NAMES environment variable, the problems
16119# vanish in a puff of smoke.
16120if test "X${COLLECT_NAMES+set}" != Xset; then
16121  COLLECT_NAMES=
16122  export COLLECT_NAMES
16123fi
16124_LT_EOF
16125    ;;
16126  esac
16127
16128
16129ltmain="$ac_aux_dir/ltmain.sh"
16130
16131
16132  # We use sed instead of cat because bash on DJGPP gets confused if
16133  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16134  # text mode, it properly converts lines to CR/LF.  This bash problem
16135  # is reportedly fixed, but why not run on old versions too?
16136  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16137    || (rm -f "$cfgfile"; exit 1)
16138
16139  case $xsi_shell in
16140  yes)
16141    cat << \_LT_EOF >> "$cfgfile"
16142
16143# func_dirname file append nondir_replacement
16144# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16145# otherwise set result to NONDIR_REPLACEMENT.
16146func_dirname ()
16147{
16148  case ${1} in
16149    */*) func_dirname_result="${1%/*}${2}" ;;
16150    *  ) func_dirname_result="${3}" ;;
16151  esac
16152}
16153
16154# func_basename file
16155func_basename ()
16156{
16157  func_basename_result="${1##*/}"
16158}
16159
16160# func_dirname_and_basename file append nondir_replacement
16161# perform func_basename and func_dirname in a single function
16162# call:
16163#   dirname:  Compute the dirname of FILE.  If nonempty,
16164#             add APPEND to the result, otherwise set result
16165#             to NONDIR_REPLACEMENT.
16166#             value returned in "$func_dirname_result"
16167#   basename: Compute filename of FILE.
16168#             value retuned in "$func_basename_result"
16169# Implementation must be kept synchronized with func_dirname
16170# and func_basename. For efficiency, we do not delegate to
16171# those functions but instead duplicate the functionality here.
16172func_dirname_and_basename ()
16173{
16174  case ${1} in
16175    */*) func_dirname_result="${1%/*}${2}" ;;
16176    *  ) func_dirname_result="${3}" ;;
16177  esac
16178  func_basename_result="${1##*/}"
16179}
16180
16181# func_stripname prefix suffix name
16182# strip PREFIX and SUFFIX off of NAME.
16183# PREFIX and SUFFIX must not contain globbing or regex special
16184# characters, hashes, percent signs, but SUFFIX may contain a leading
16185# dot (in which case that matches only a dot).
16186func_stripname ()
16187{
16188  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16189  # positional parameters, so assign one to ordinary parameter first.
16190  func_stripname_result=${3}
16191  func_stripname_result=${func_stripname_result#"${1}"}
16192  func_stripname_result=${func_stripname_result%"${2}"}
16193}
16194
16195# func_opt_split
16196func_opt_split ()
16197{
16198  func_opt_split_opt=${1%%=*}
16199  func_opt_split_arg=${1#*=}
16200}
16201
16202# func_lo2o object
16203func_lo2o ()
16204{
16205  case ${1} in
16206    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16207    *)    func_lo2o_result=${1} ;;
16208  esac
16209}
16210
16211# func_xform libobj-or-source
16212func_xform ()
16213{
16214  func_xform_result=${1%.*}.lo
16215}
16216
16217# func_arith arithmetic-term...
16218func_arith ()
16219{
16220  func_arith_result=$(( $* ))
16221}
16222
16223# func_len string
16224# STRING may not start with a hyphen.
16225func_len ()
16226{
16227  func_len_result=${#1}
16228}
16229
16230_LT_EOF
16231    ;;
16232  *) # Bourne compatible functions.
16233    cat << \_LT_EOF >> "$cfgfile"
16234
16235# func_dirname file append nondir_replacement
16236# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16237# otherwise set result to NONDIR_REPLACEMENT.
16238func_dirname ()
16239{
16240  # Extract subdirectory from the argument.
16241  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16242  if test "X$func_dirname_result" = "X${1}"; then
16243    func_dirname_result="${3}"
16244  else
16245    func_dirname_result="$func_dirname_result${2}"
16246  fi
16247}
16248
16249# func_basename file
16250func_basename ()
16251{
16252  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16253}
16254
16255
16256# func_stripname prefix suffix name
16257# strip PREFIX and SUFFIX off of NAME.
16258# PREFIX and SUFFIX must not contain globbing or regex special
16259# characters, hashes, percent signs, but SUFFIX may contain a leading
16260# dot (in which case that matches only a dot).
16261# func_strip_suffix prefix name
16262func_stripname ()
16263{
16264  case ${2} in
16265    .*) func_stripname_result=`$ECHO "X${3}" \
16266           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16267    *)  func_stripname_result=`$ECHO "X${3}" \
16268           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16269  esac
16270}
16271
16272# sed scripts:
16273my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16274my_sed_long_arg='1s/^-[^=]*=//'
16275
16276# func_opt_split
16277func_opt_split ()
16278{
16279  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16280  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16281}
16282
16283# func_lo2o object
16284func_lo2o ()
16285{
16286  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16287}
16288
16289# func_xform libobj-or-source
16290func_xform ()
16291{
16292  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16293}
16294
16295# func_arith arithmetic-term...
16296func_arith ()
16297{
16298  func_arith_result=`expr "$@"`
16299}
16300
16301# func_len string
16302# STRING may not start with a hyphen.
16303func_len ()
16304{
16305  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16306}
16307
16308_LT_EOF
16309esac
16310
16311case $lt_shell_append in
16312  yes)
16313    cat << \_LT_EOF >> "$cfgfile"
16314
16315# func_append var value
16316# Append VALUE to the end of shell variable VAR.
16317func_append ()
16318{
16319  eval "$1+=\$2"
16320}
16321_LT_EOF
16322    ;;
16323  *)
16324    cat << \_LT_EOF >> "$cfgfile"
16325
16326# func_append var value
16327# Append VALUE to the end of shell variable VAR.
16328func_append ()
16329{
16330  eval "$1=\$$1\$2"
16331}
16332
16333_LT_EOF
16334    ;;
16335  esac
16336
16337
16338  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16339    || (rm -f "$cfgfile"; exit 1)
16340
16341  mv -f "$cfgfile" "$ofile" ||
16342    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16343  chmod +x "$ofile"
16344
16345 ;;
16346
16347  esac
16348done # for ac_tag
16349
16350
16351as_fn_exit 0
16352_ACEOF
16353ac_clean_files=$ac_clean_files_save
16354
16355test $ac_write_fail = 0 ||
16356  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16357
16358
16359# configure is writing to config.log, and then calls config.status.
16360# config.status does its own redirection, appending to config.log.
16361# Unfortunately, on DOS this fails, as config.log is still kept open
16362# by configure, so config.status won't be able to write to it; its
16363# output is simply discarded.  So we exec the FD to /dev/null,
16364# effectively closing config.log, so it can be properly (re)opened and
16365# appended to by config.status.  When coming back to configure, we
16366# need to make the FD available again.
16367if test "$no_create" != yes; then
16368  ac_cs_success=:
16369  ac_config_status_args=
16370  test "$silent" = yes &&
16371    ac_config_status_args="$ac_config_status_args --quiet"
16372  exec 5>/dev/null
16373  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16374  exec 5>>config.log
16375  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16376  # would make configure fail if this is the last instruction.
16377  $ac_cs_success || as_fn_exit $?
16378fi
16379if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16380  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16381$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16382fi
16383
16384