1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for pocketsphinx 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='pocketsphinx'
700PACKAGE_TARNAME='pocketsphinx'
701PACKAGE_VERSION='0.8'
702PACKAGE_STRING='pocketsphinx 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
746sphinxbasebuild
747sphinxbase
748SphinxBase_LIBS
749SphinxBase_CFLAGS
750GST_PLUGIN_LDFLAGS
751plugindir
752GST_LIBS
753GST_CFLAGS
754GST_MAJORMINOR
755BUILD_GST_FALSE
756BUILD_GST_TRUE
757GStreamer_LIBS
758GStreamer_CFLAGS
759PKG_CONFIG
760BUILD_CYTHON_FALSE
761BUILD_CYTHON_TRUE
762HAVE_CYTHON
763BUILD_PYTHON_FALSE
764BUILD_PYTHON_TRUE
765PYTHON_CONFIG
766PYTHON
767BUILD_DOXYGEN_FALSE
768BUILD_DOXYGEN_TRUE
769HAVE_DOXYGEN
770HAVE_PKGCONFIG
771CPP
772OTOOL64
773OTOOL
774LIPO
775NMEDIT
776DSYMUTIL
777lt_ECHO
778RANLIB
779AR
780OBJDUMP
781LN_S
782NM
783ac_ct_DUMPBIN
784DUMPBIN
785LD
786FGREP
787EGREP
788GREP
789SED
790LIBTOOL
791am__fastdepCC_FALSE
792am__fastdepCC_TRUE
793CCDEPMODE
794AMDEPBACKSLASH
795AMDEP_FALSE
796AMDEP_TRUE
797am__quote
798am__include
799DEPDIR
800OBJEXT
801EXEEXT
802ac_ct_CC
803CPPFLAGS
804LDFLAGS
805CFLAGS
806CC
807host_os
808host_vendor
809host_cpu
810host
811build_os
812build_vendor
813build_cpu
814build
815am__untar
816am__tar
817AMTAR
818am__leading_dot
819SET_MAKE
820AWK
821mkdir_p
822MKDIR_P
823INSTALL_STRIP_PROGRAM
824STRIP
825install_sh
826MAKEINFO
827AUTOHEADER
828AUTOMAKE
829AUTOCONF
830ACLOCAL
831VERSION
832PACKAGE
833CYGPATH_W
834am__isrc
835INSTALL_DATA
836INSTALL_SCRIPT
837INSTALL_PROGRAM
838target_alias
839host_alias
840build_alias
841LIBS
842ECHO_T
843ECHO_N
844ECHO_C
845DEFS
846mandir
847localedir
848libdir
849psdir
850pdfdir
851dvidir
852htmldir
853infodir
854docdir
855oldincludedir
856includedir
857localstatedir
858sharedstatedir
859sysconfdir
860datadir
861datarootdir
862libexecdir
863sbindir
864bindir
865program_transform_name
866prefix
867exec_prefix
868PACKAGE_URL
869PACKAGE_BUGREPORT
870PACKAGE_STRING
871PACKAGE_VERSION
872PACKAGE_TARNAME
873PACKAGE_NAME
874PATH_SEPARATOR
875SHELL'
876ac_subst_files=''
877ac_user_opts='
878enable_option_checking
879enable_dependency_tracking
880enable_shared
881enable_static
882with_pic
883enable_fast_install
884with_gnu_ld
885enable_libtool_lock
886with_python
887with_sphinxbase
888with_sphinxbase_build
889'
890      ac_precious_vars='build_alias
891host_alias
892target_alias
893CC
894CFLAGS
895LDFLAGS
896LIBS
897CPPFLAGS
898CPP
899PKG_CONFIG
900GStreamer_CFLAGS
901GStreamer_LIBS
902SphinxBase_CFLAGS
903SphinxBase_LIBS'
904
905
906# Initialize some variables set by options.
907ac_init_help=
908ac_init_version=false
909ac_unrecognized_opts=
910ac_unrecognized_sep=
911# The variables have the same names as the options, with
912# dashes changed to underlines.
913cache_file=/dev/null
914exec_prefix=NONE
915no_create=
916no_recursion=
917prefix=NONE
918program_prefix=NONE
919program_suffix=NONE
920program_transform_name=s,x,x,
921silent=
922site=
923srcdir=
924verbose=
925x_includes=NONE
926x_libraries=NONE
927
928# Installation directory options.
929# These are left unexpanded so users can "make install exec_prefix=/foo"
930# and all the variables that are supposed to be based on exec_prefix
931# by default will actually change.
932# Use braces instead of parens because sh, perl, etc. also accept them.
933# (The list follows the same order as the GNU Coding Standards.)
934bindir='${exec_prefix}/bin'
935sbindir='${exec_prefix}/sbin'
936libexecdir='${exec_prefix}/libexec'
937datarootdir='${prefix}/share'
938datadir='${datarootdir}'
939sysconfdir='${prefix}/etc'
940sharedstatedir='${prefix}/com'
941localstatedir='${prefix}/var'
942includedir='${prefix}/include'
943oldincludedir='/usr/include'
944docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
945infodir='${datarootdir}/info'
946htmldir='${docdir}'
947dvidir='${docdir}'
948pdfdir='${docdir}'
949psdir='${docdir}'
950libdir='${exec_prefix}/lib'
951localedir='${datarootdir}/locale'
952mandir='${datarootdir}/man'
953
954ac_prev=
955ac_dashdash=
956for ac_option
957do
958  # If the previous option needs an argument, assign it.
959  if test -n "$ac_prev"; then
960    eval $ac_prev=\$ac_option
961    ac_prev=
962    continue
963  fi
964
965  case $ac_option in
966  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967  *)	ac_optarg=yes ;;
968  esac
969
970  # Accept the important Cygnus configure options, so we can diagnose typos.
971
972  case $ac_dashdash$ac_option in
973  --)
974    ac_dashdash=yes ;;
975
976  -bindir | --bindir | --bindi | --bind | --bin | --bi)
977    ac_prev=bindir ;;
978  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979    bindir=$ac_optarg ;;
980
981  -build | --build | --buil | --bui | --bu)
982    ac_prev=build_alias ;;
983  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984    build_alias=$ac_optarg ;;
985
986  -cache-file | --cache-file | --cache-fil | --cache-fi \
987  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988    ac_prev=cache_file ;;
989  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991    cache_file=$ac_optarg ;;
992
993  --config-cache | -C)
994    cache_file=config.cache ;;
995
996  -datadir | --datadir | --datadi | --datad)
997    ac_prev=datadir ;;
998  -datadir=* | --datadir=* | --datadi=* | --datad=*)
999    datadir=$ac_optarg ;;
1000
1001  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002  | --dataroo | --dataro | --datar)
1003    ac_prev=datarootdir ;;
1004  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006    datarootdir=$ac_optarg ;;
1007
1008  -disable-* | --disable-*)
1009    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010    # Reject names that are not valid shell variable names.
1011    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012      as_fn_error "invalid feature name: $ac_useropt"
1013    ac_useropt_orig=$ac_useropt
1014    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015    case $ac_user_opts in
1016      *"
1017"enable_$ac_useropt"
1018"*) ;;
1019      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020	 ac_unrecognized_sep=', ';;
1021    esac
1022    eval enable_$ac_useropt=no ;;
1023
1024  -docdir | --docdir | --docdi | --doc | --do)
1025    ac_prev=docdir ;;
1026  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027    docdir=$ac_optarg ;;
1028
1029  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030    ac_prev=dvidir ;;
1031  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032    dvidir=$ac_optarg ;;
1033
1034  -enable-* | --enable-*)
1035    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036    # Reject names that are not valid shell variable names.
1037    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038      as_fn_error "invalid feature name: $ac_useropt"
1039    ac_useropt_orig=$ac_useropt
1040    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041    case $ac_user_opts in
1042      *"
1043"enable_$ac_useropt"
1044"*) ;;
1045      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046	 ac_unrecognized_sep=', ';;
1047    esac
1048    eval enable_$ac_useropt=\$ac_optarg ;;
1049
1050  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052  | --exec | --exe | --ex)
1053    ac_prev=exec_prefix ;;
1054  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056  | --exec=* | --exe=* | --ex=*)
1057    exec_prefix=$ac_optarg ;;
1058
1059  -gas | --gas | --ga | --g)
1060    # Obsolete; use --with-gas.
1061    with_gas=yes ;;
1062
1063  -help | --help | --hel | --he | -h)
1064    ac_init_help=long ;;
1065  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066    ac_init_help=recursive ;;
1067  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068    ac_init_help=short ;;
1069
1070  -host | --host | --hos | --ho)
1071    ac_prev=host_alias ;;
1072  -host=* | --host=* | --hos=* | --ho=*)
1073    host_alias=$ac_optarg ;;
1074
1075  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076    ac_prev=htmldir ;;
1077  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078  | --ht=*)
1079    htmldir=$ac_optarg ;;
1080
1081  -includedir | --includedir | --includedi | --included | --include \
1082  | --includ | --inclu | --incl | --inc)
1083    ac_prev=includedir ;;
1084  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085  | --includ=* | --inclu=* | --incl=* | --inc=*)
1086    includedir=$ac_optarg ;;
1087
1088  -infodir | --infodir | --infodi | --infod | --info | --inf)
1089    ac_prev=infodir ;;
1090  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091    infodir=$ac_optarg ;;
1092
1093  -libdir | --libdir | --libdi | --libd)
1094    ac_prev=libdir ;;
1095  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096    libdir=$ac_optarg ;;
1097
1098  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099  | --libexe | --libex | --libe)
1100    ac_prev=libexecdir ;;
1101  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102  | --libexe=* | --libex=* | --libe=*)
1103    libexecdir=$ac_optarg ;;
1104
1105  -localedir | --localedir | --localedi | --localed | --locale)
1106    ac_prev=localedir ;;
1107  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108    localedir=$ac_optarg ;;
1109
1110  -localstatedir | --localstatedir | --localstatedi | --localstated \
1111  | --localstate | --localstat | --localsta | --localst | --locals)
1112    ac_prev=localstatedir ;;
1113  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115    localstatedir=$ac_optarg ;;
1116
1117  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118    ac_prev=mandir ;;
1119  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120    mandir=$ac_optarg ;;
1121
1122  -nfp | --nfp | --nf)
1123    # Obsolete; use --without-fp.
1124    with_fp=no ;;
1125
1126  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127  | --no-cr | --no-c | -n)
1128    no_create=yes ;;
1129
1130  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132    no_recursion=yes ;;
1133
1134  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136  | --oldin | --oldi | --old | --ol | --o)
1137    ac_prev=oldincludedir ;;
1138  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141    oldincludedir=$ac_optarg ;;
1142
1143  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144    ac_prev=prefix ;;
1145  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146    prefix=$ac_optarg ;;
1147
1148  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149  | --program-pre | --program-pr | --program-p)
1150    ac_prev=program_prefix ;;
1151  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153    program_prefix=$ac_optarg ;;
1154
1155  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156  | --program-suf | --program-su | --program-s)
1157    ac_prev=program_suffix ;;
1158  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160    program_suffix=$ac_optarg ;;
1161
1162  -program-transform-name | --program-transform-name \
1163  | --program-transform-nam | --program-transform-na \
1164  | --program-transform-n | --program-transform- \
1165  | --program-transform | --program-transfor \
1166  | --program-transfo | --program-transf \
1167  | --program-trans | --program-tran \
1168  | --progr-tra | --program-tr | --program-t)
1169    ac_prev=program_transform_name ;;
1170  -program-transform-name=* | --program-transform-name=* \
1171  | --program-transform-nam=* | --program-transform-na=* \
1172  | --program-transform-n=* | --program-transform-=* \
1173  | --program-transform=* | --program-transfor=* \
1174  | --program-transfo=* | --program-transf=* \
1175  | --program-trans=* | --program-tran=* \
1176  | --progr-tra=* | --program-tr=* | --program-t=*)
1177    program_transform_name=$ac_optarg ;;
1178
1179  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180    ac_prev=pdfdir ;;
1181  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182    pdfdir=$ac_optarg ;;
1183
1184  -psdir | --psdir | --psdi | --psd | --ps)
1185    ac_prev=psdir ;;
1186  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187    psdir=$ac_optarg ;;
1188
1189  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190  | -silent | --silent | --silen | --sile | --sil)
1191    silent=yes ;;
1192
1193  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194    ac_prev=sbindir ;;
1195  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196  | --sbi=* | --sb=*)
1197    sbindir=$ac_optarg ;;
1198
1199  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201  | --sharedst | --shareds | --shared | --share | --shar \
1202  | --sha | --sh)
1203    ac_prev=sharedstatedir ;;
1204  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207  | --sha=* | --sh=*)
1208    sharedstatedir=$ac_optarg ;;
1209
1210  -site | --site | --sit)
1211    ac_prev=site ;;
1212  -site=* | --site=* | --sit=*)
1213    site=$ac_optarg ;;
1214
1215  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216    ac_prev=srcdir ;;
1217  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218    srcdir=$ac_optarg ;;
1219
1220  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221  | --syscon | --sysco | --sysc | --sys | --sy)
1222    ac_prev=sysconfdir ;;
1223  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225    sysconfdir=$ac_optarg ;;
1226
1227  -target | --target | --targe | --targ | --tar | --ta | --t)
1228    ac_prev=target_alias ;;
1229  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230    target_alias=$ac_optarg ;;
1231
1232  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233    verbose=yes ;;
1234
1235  -version | --version | --versio | --versi | --vers | -V)
1236    ac_init_version=: ;;
1237
1238  -with-* | --with-*)
1239    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240    # Reject names that are not valid shell variable names.
1241    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242      as_fn_error "invalid package name: $ac_useropt"
1243    ac_useropt_orig=$ac_useropt
1244    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245    case $ac_user_opts in
1246      *"
1247"with_$ac_useropt"
1248"*) ;;
1249      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250	 ac_unrecognized_sep=', ';;
1251    esac
1252    eval with_$ac_useropt=\$ac_optarg ;;
1253
1254  -without-* | --without-*)
1255    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256    # Reject names that are not valid shell variable names.
1257    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258      as_fn_error "invalid package name: $ac_useropt"
1259    ac_useropt_orig=$ac_useropt
1260    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261    case $ac_user_opts in
1262      *"
1263"with_$ac_useropt"
1264"*) ;;
1265      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266	 ac_unrecognized_sep=', ';;
1267    esac
1268    eval with_$ac_useropt=no ;;
1269
1270  --x)
1271    # Obsolete; use --with-x.
1272    with_x=yes ;;
1273
1274  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275  | --x-incl | --x-inc | --x-in | --x-i)
1276    ac_prev=x_includes ;;
1277  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1279    x_includes=$ac_optarg ;;
1280
1281  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283    ac_prev=x_libraries ;;
1284  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1286    x_libraries=$ac_optarg ;;
1287
1288  -*) as_fn_error "unrecognized option: \`$ac_option'
1289Try \`$0 --help' for more information."
1290    ;;
1291
1292  *=*)
1293    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1294    # Reject names that are not valid shell variable names.
1295    case $ac_envvar in #(
1296      '' | [0-9]* | *[!_$as_cr_alnum]* )
1297      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1298    esac
1299    eval $ac_envvar=\$ac_optarg
1300    export $ac_envvar ;;
1301
1302  *)
1303    # FIXME: should be removed in autoconf 3.0.
1304    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1305    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1307    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1308    ;;
1309
1310  esac
1311done
1312
1313if test -n "$ac_prev"; then
1314  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1315  as_fn_error "missing argument to $ac_option"
1316fi
1317
1318if test -n "$ac_unrecognized_opts"; then
1319  case $enable_option_checking in
1320    no) ;;
1321    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1322    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323  esac
1324fi
1325
1326# Check all directory arguments for consistency.
1327for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328		datadir sysconfdir sharedstatedir localstatedir includedir \
1329		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330		libdir localedir mandir
1331do
1332  eval ac_val=\$$ac_var
1333  # Remove trailing slashes.
1334  case $ac_val in
1335    */ )
1336      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337      eval $ac_var=\$ac_val;;
1338  esac
1339  # Be sure to have absolute directory names.
1340  case $ac_val in
1341    [\\/$]* | ?:[\\/]* )  continue;;
1342    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343  esac
1344  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1345done
1346
1347# There might be people who depend on the old broken behavior: `$host'
1348# used to hold the argument of --host etc.
1349# FIXME: To remove some day.
1350build=$build_alias
1351host=$host_alias
1352target=$target_alias
1353
1354# FIXME: To remove some day.
1355if test "x$host_alias" != x; then
1356  if test "x$build_alias" = x; then
1357    cross_compiling=maybe
1358    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1359    If a cross compiler is detected then cross compile mode will be used." >&2
1360  elif test "x$build_alias" != "x$host_alias"; then
1361    cross_compiling=yes
1362  fi
1363fi
1364
1365ac_tool_prefix=
1366test -n "$host_alias" && ac_tool_prefix=$host_alias-
1367
1368test "$silent" = yes && exec 6>/dev/null
1369
1370
1371ac_pwd=`pwd` && test -n "$ac_pwd" &&
1372ac_ls_di=`ls -di .` &&
1373ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1374  as_fn_error "working directory cannot be determined"
1375test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376  as_fn_error "pwd does not report name of working directory"
1377
1378
1379# Find the source files, if location was not specified.
1380if test -z "$srcdir"; then
1381  ac_srcdir_defaulted=yes
1382  # Try the directory containing this script, then the parent directory.
1383  ac_confdir=`$as_dirname -- "$as_myself" ||
1384$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385	 X"$as_myself" : 'X\(//\)[^/]' \| \
1386	 X"$as_myself" : 'X\(//\)$' \| \
1387	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1388$as_echo X"$as_myself" |
1389    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390	    s//\1/
1391	    q
1392	  }
1393	  /^X\(\/\/\)[^/].*/{
1394	    s//\1/
1395	    q
1396	  }
1397	  /^X\(\/\/\)$/{
1398	    s//\1/
1399	    q
1400	  }
1401	  /^X\(\/\).*/{
1402	    s//\1/
1403	    q
1404	  }
1405	  s/.*/./; q'`
1406  srcdir=$ac_confdir
1407  if test ! -r "$srcdir/$ac_unique_file"; then
1408    srcdir=..
1409  fi
1410else
1411  ac_srcdir_defaulted=no
1412fi
1413if test ! -r "$srcdir/$ac_unique_file"; then
1414  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1415  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1416fi
1417ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418ac_abs_confdir=`(
1419	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1420	pwd)`
1421# When building in place, set srcdir=.
1422if test "$ac_abs_confdir" = "$ac_pwd"; then
1423  srcdir=.
1424fi
1425# Remove unnecessary trailing slashes from srcdir.
1426# Double slashes in file names in object file debugging info
1427# mess up M-x gdb in Emacs.
1428case $srcdir in
1429*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430esac
1431for ac_var in $ac_precious_vars; do
1432  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1433  eval ac_env_${ac_var}_value=\$${ac_var}
1434  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1435  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1436done
1437
1438#
1439# Report the --help message.
1440#
1441if test "$ac_init_help" = "long"; then
1442  # Omit some internal or obsolete options to make the list less imposing.
1443  # This message is too long to be a string in the A/UX 3.1 sh.
1444  cat <<_ACEOF
1445\`configure' configures pocketsphinx 0.8 to adapt to many kinds of systems.
1446
1447Usage: $0 [OPTION]... [VAR=VALUE]...
1448
1449To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450VAR=VALUE.  See below for descriptions of some of the useful variables.
1451
1452Defaults for the options are specified in brackets.
1453
1454Configuration:
1455  -h, --help              display this help and exit
1456      --help=short        display options specific to this package
1457      --help=recursive    display the short help of all the included packages
1458  -V, --version           display version information and exit
1459  -q, --quiet, --silent   do not print \`checking...' messages
1460      --cache-file=FILE   cache test results in FILE [disabled]
1461  -C, --config-cache      alias for \`--cache-file=config.cache'
1462  -n, --no-create         do not create output files
1463      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1464
1465Installation directories:
1466  --prefix=PREFIX         install architecture-independent files in PREFIX
1467                          [$ac_default_prefix]
1468  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1469                          [PREFIX]
1470
1471By default, \`make install' will install all the files in
1472\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1473an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474for instance \`--prefix=\$HOME'.
1475
1476For better control, use the options below.
1477
1478Fine tuning of the installation directories:
1479  --bindir=DIR            user executables [EPREFIX/bin]
1480  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1481  --libexecdir=DIR        program executables [EPREFIX/libexec]
1482  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1483  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1484  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1485  --libdir=DIR            object code libraries [EPREFIX/lib]
1486  --includedir=DIR        C header files [PREFIX/include]
1487  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1488  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1489  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1490  --infodir=DIR           info documentation [DATAROOTDIR/info]
1491  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1492  --mandir=DIR            man documentation [DATAROOTDIR/man]
1493  --docdir=DIR            documentation root [DATAROOTDIR/doc/pocketsphinx]
1494  --htmldir=DIR           html documentation [DOCDIR]
1495  --dvidir=DIR            dvi documentation [DOCDIR]
1496  --pdfdir=DIR            pdf documentation [DOCDIR]
1497  --psdir=DIR             ps documentation [DOCDIR]
1498_ACEOF
1499
1500  cat <<\_ACEOF
1501
1502Program names:
1503  --program-prefix=PREFIX            prepend PREFIX to installed program names
1504  --program-suffix=SUFFIX            append SUFFIX to installed program names
1505  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1506
1507System types:
1508  --build=BUILD     configure for building on BUILD [guessed]
1509  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1510_ACEOF
1511fi
1512
1513if test -n "$ac_init_help"; then
1514  case $ac_init_help in
1515     short | recursive ) echo "Configuration of pocketsphinx 0.8:";;
1516   esac
1517  cat <<\_ACEOF
1518
1519Optional Features:
1520  --disable-option-checking  ignore unrecognized --enable/--with options
1521  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1522  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1523  --disable-dependency-tracking  speeds up one-time build
1524  --enable-dependency-tracking   do not reject slow dependency extractors
1525  --enable-shared[=PKGS]  build shared libraries [default=yes]
1526  --enable-static[=PKGS]  build static libraries [default=yes]
1527  --enable-fast-install[=PKGS]
1528                          optimize for fast installation [default=yes]
1529  --disable-libtool-lock  avoid locking (might break parallel builds)
1530
1531Optional Packages:
1532  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1533  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1534  --with-pic              try to use only PIC/non-PIC objects [default=use
1535                          both]
1536  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1537  --without-python        Disable Python extension
1538  --with-sphinxbase=DIRECTORY
1539                          Look for SphinxBase source files in DIRECTORY. If
1540                          this is 'auto', the system-wide installation will be
1541                          used.
1542  --with-sphinxbase-build=DIRECTORY
1543                          Look for SphinxBase object files in DIRECTORY
1544
1545Some influential environment variables:
1546  CC          C compiler command
1547  CFLAGS      C compiler flags
1548  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1549              nonstandard directory <lib dir>
1550  LIBS        libraries to pass to the linker, e.g. -l<library>
1551  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1552              you have headers in a nonstandard directory <include dir>
1553  CPP         C preprocessor
1554  PKG_CONFIG  path to pkg-config utility
1555  GStreamer_CFLAGS
1556              C compiler flags for GStreamer, overriding pkg-config
1557  GStreamer_LIBS
1558              linker flags for GStreamer, overriding pkg-config
1559  SphinxBase_CFLAGS
1560              C compiler flags for SphinxBase, overriding pkg-config
1561  SphinxBase_LIBS
1562              linker flags for SphinxBase, overriding pkg-config
1563
1564Use these variables to override the choices made by `configure' or to help
1565it to find libraries and programs with nonstandard names/locations.
1566
1567Report bugs to the package provider.
1568_ACEOF
1569ac_status=$?
1570fi
1571
1572if test "$ac_init_help" = "recursive"; then
1573  # If there are subdirs, report their specific --help.
1574  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575    test -d "$ac_dir" ||
1576      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577      continue
1578    ac_builddir=.
1579
1580case "$ac_dir" in
1581.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582*)
1583  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584  # A ".." for each directory in $ac_dir_suffix.
1585  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586  case $ac_top_builddir_sub in
1587  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589  esac ;;
1590esac
1591ac_abs_top_builddir=$ac_pwd
1592ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593# for backward compatibility:
1594ac_top_builddir=$ac_top_build_prefix
1595
1596case $srcdir in
1597  .)  # We are building in place.
1598    ac_srcdir=.
1599    ac_top_srcdir=$ac_top_builddir_sub
1600    ac_abs_top_srcdir=$ac_pwd ;;
1601  [\\/]* | ?:[\\/]* )  # Absolute name.
1602    ac_srcdir=$srcdir$ac_dir_suffix;
1603    ac_top_srcdir=$srcdir
1604    ac_abs_top_srcdir=$srcdir ;;
1605  *) # Relative name.
1606    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607    ac_top_srcdir=$ac_top_build_prefix$srcdir
1608    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609esac
1610ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611
1612    cd "$ac_dir" || { ac_status=$?; continue; }
1613    # Check for guested configure.
1614    if test -f "$ac_srcdir/configure.gnu"; then
1615      echo &&
1616      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617    elif test -f "$ac_srcdir/configure"; then
1618      echo &&
1619      $SHELL "$ac_srcdir/configure" --help=recursive
1620    else
1621      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622    fi || ac_status=$?
1623    cd "$ac_pwd" || { ac_status=$?; break; }
1624  done
1625fi
1626
1627test -n "$ac_init_help" && exit $ac_status
1628if $ac_init_version; then
1629  cat <<\_ACEOF
1630pocketsphinx configure 0.8
1631generated by GNU Autoconf 2.65
1632
1633Copyright (C) 2009 Free Software Foundation, Inc.
1634This configure script is free software; the Free Software Foundation
1635gives unlimited permission to copy, distribute and modify it.
1636_ACEOF
1637  exit
1638fi
1639
1640## ------------------------ ##
1641## Autoconf initialization. ##
1642## ------------------------ ##
1643
1644# ac_fn_c_try_compile LINENO
1645# --------------------------
1646# Try to compile conftest.$ac_ext, and return whether this succeeded.
1647ac_fn_c_try_compile ()
1648{
1649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650  rm -f conftest.$ac_objext
1651  if { { ac_try="$ac_compile"
1652case "(($ac_try" in
1653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654  *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658  (eval "$ac_compile") 2>conftest.err
1659  ac_status=$?
1660  if test -s conftest.err; then
1661    grep -v '^ *+' conftest.err >conftest.er1
1662    cat conftest.er1 >&5
1663    mv -f conftest.er1 conftest.err
1664  fi
1665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666  test $ac_status = 0; } && {
1667	 test -z "$ac_c_werror_flag" ||
1668	 test ! -s conftest.err
1669       } && test -s conftest.$ac_objext; then :
1670  ac_retval=0
1671else
1672  $as_echo "$as_me: failed program was:" >&5
1673sed 's/^/| /' conftest.$ac_ext >&5
1674
1675	ac_retval=1
1676fi
1677  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1678  as_fn_set_status $ac_retval
1679
1680} # ac_fn_c_try_compile
1681
1682# ac_fn_c_try_link LINENO
1683# -----------------------
1684# Try to link conftest.$ac_ext, and return whether this succeeded.
1685ac_fn_c_try_link ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  rm -f conftest.$ac_objext conftest$ac_exeext
1689  if { { ac_try="$ac_link"
1690case "(($ac_try" in
1691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692  *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696  (eval "$ac_link") 2>conftest.err
1697  ac_status=$?
1698  if test -s conftest.err; then
1699    grep -v '^ *+' conftest.err >conftest.er1
1700    cat conftest.er1 >&5
1701    mv -f conftest.er1 conftest.err
1702  fi
1703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704  test $ac_status = 0; } && {
1705	 test -z "$ac_c_werror_flag" ||
1706	 test ! -s conftest.err
1707       } && test -s conftest$ac_exeext && {
1708	 test "$cross_compiling" = yes ||
1709	 $as_test_x conftest$ac_exeext
1710       }; then :
1711  ac_retval=0
1712else
1713  $as_echo "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716	ac_retval=1
1717fi
1718  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720  # interfere with the next link command; also delete a directory that is
1721  # left behind by Apple's compiler.  We do this before executing the actions.
1722  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724  as_fn_set_status $ac_retval
1725
1726} # ac_fn_c_try_link
1727
1728# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729# -------------------------------------------------------
1730# Tests whether HEADER exists and can be compiled using the include files in
1731# INCLUDES, setting the cache variable VAR accordingly.
1732ac_fn_c_check_header_compile ()
1733{
1734  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736$as_echo_n "checking for $2... " >&6; }
1737if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1738  $as_echo_n "(cached) " >&6
1739else
1740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741/* end confdefs.h.  */
1742$4
1743#include <$2>
1744_ACEOF
1745if ac_fn_c_try_compile "$LINENO"; then :
1746  eval "$3=yes"
1747else
1748  eval "$3=no"
1749fi
1750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751fi
1752eval ac_res=\$$3
1753	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754$as_echo "$ac_res" >&6; }
1755  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756
1757} # ac_fn_c_check_header_compile
1758
1759# ac_fn_c_try_cpp LINENO
1760# ----------------------
1761# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1762ac_fn_c_try_cpp ()
1763{
1764  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765  if { { ac_try="$ac_cpp conftest.$ac_ext"
1766case "(($ac_try" in
1767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768  *) ac_try_echo=$ac_try;;
1769esac
1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771$as_echo "$ac_try_echo"; } >&5
1772  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1773  ac_status=$?
1774  if test -s conftest.err; then
1775    grep -v '^ *+' conftest.err >conftest.er1
1776    cat conftest.er1 >&5
1777    mv -f conftest.er1 conftest.err
1778  fi
1779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780  test $ac_status = 0; } >/dev/null && {
1781	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1782	 test ! -s conftest.err
1783       }; then :
1784  ac_retval=0
1785else
1786  $as_echo "$as_me: failed program was:" >&5
1787sed 's/^/| /' conftest.$ac_ext >&5
1788
1789    ac_retval=1
1790fi
1791  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792  as_fn_set_status $ac_retval
1793
1794} # ac_fn_c_try_cpp
1795
1796# ac_fn_c_try_run LINENO
1797# ----------------------
1798# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1799# that executables *can* be run.
1800ac_fn_c_try_run ()
1801{
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  if { { ac_try="$ac_link"
1804case "(($ac_try" in
1805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806  *) ac_try_echo=$ac_try;;
1807esac
1808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809$as_echo "$ac_try_echo"; } >&5
1810  (eval "$ac_link") 2>&5
1811  ac_status=$?
1812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1814  { { case "(($ac_try" in
1815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816  *) ac_try_echo=$ac_try;;
1817esac
1818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819$as_echo "$ac_try_echo"; } >&5
1820  (eval "$ac_try") 2>&5
1821  ac_status=$?
1822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823  test $ac_status = 0; }; }; then :
1824  ac_retval=0
1825else
1826  $as_echo "$as_me: program exited with status $ac_status" >&5
1827       $as_echo "$as_me: failed program was:" >&5
1828sed 's/^/| /' conftest.$ac_ext >&5
1829
1830       ac_retval=$ac_status
1831fi
1832  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834  as_fn_set_status $ac_retval
1835
1836} # ac_fn_c_try_run
1837
1838# ac_fn_c_check_func LINENO FUNC VAR
1839# ----------------------------------
1840# Tests whether FUNC exists, setting the cache variable VAR accordingly
1841ac_fn_c_check_func ()
1842{
1843  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845$as_echo_n "checking for $2... " >&6; }
1846if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1847  $as_echo_n "(cached) " >&6
1848else
1849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h.  */
1851/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1852   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1853#define $2 innocuous_$2
1854
1855/* System header to define __stub macros and hopefully few prototypes,
1856    which can conflict with char $2 (); below.
1857    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1858    <limits.h> exists even on freestanding compilers.  */
1859
1860#ifdef __STDC__
1861# include <limits.h>
1862#else
1863# include <assert.h>
1864#endif
1865
1866#undef $2
1867
1868/* Override any GCC internal prototype to avoid an error.
1869   Use char because int might match the return type of a GCC
1870   builtin and then its argument prototype would still apply.  */
1871#ifdef __cplusplus
1872extern "C"
1873#endif
1874char $2 ();
1875/* The GNU C library defines this for functions which it implements
1876    to always fail with ENOSYS.  Some functions are actually named
1877    something starting with __ and the normal name is an alias.  */
1878#if defined __stub_$2 || defined __stub___$2
1879choke me
1880#endif
1881
1882int
1883main ()
1884{
1885return $2 ();
1886  ;
1887  return 0;
1888}
1889_ACEOF
1890if ac_fn_c_try_link "$LINENO"; then :
1891  eval "$3=yes"
1892else
1893  eval "$3=no"
1894fi
1895rm -f core conftest.err conftest.$ac_objext \
1896    conftest$ac_exeext conftest.$ac_ext
1897fi
1898eval ac_res=\$$3
1899	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900$as_echo "$ac_res" >&6; }
1901  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902
1903} # ac_fn_c_check_func
1904
1905# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1906# -------------------------------------------
1907# Tests whether TYPE exists after having included INCLUDES, setting cache
1908# variable VAR accordingly.
1909ac_fn_c_check_type ()
1910{
1911  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913$as_echo_n "checking for $2... " >&6; }
1914if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915  $as_echo_n "(cached) " >&6
1916else
1917  eval "$3=no"
1918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h.  */
1920$4
1921int
1922main ()
1923{
1924if (sizeof ($2))
1925	 return 0;
1926  ;
1927  return 0;
1928}
1929_ACEOF
1930if ac_fn_c_try_compile "$LINENO"; then :
1931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932/* end confdefs.h.  */
1933$4
1934int
1935main ()
1936{
1937if (sizeof (($2)))
1938	    return 0;
1939  ;
1940  return 0;
1941}
1942_ACEOF
1943if ac_fn_c_try_compile "$LINENO"; then :
1944
1945else
1946  eval "$3=yes"
1947fi
1948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949fi
1950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951fi
1952eval ac_res=\$$3
1953	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954$as_echo "$ac_res" >&6; }
1955  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956
1957} # ac_fn_c_check_type
1958
1959# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1960# --------------------------------------------
1961# Tries to find the compile-time value of EXPR in a program that includes
1962# INCLUDES, setting VAR accordingly. Returns whether the value could be
1963# computed
1964ac_fn_c_compute_int ()
1965{
1966  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967  if test "$cross_compiling" = yes; then
1968    # Depending upon the size, compute the lo and hi bounds.
1969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970/* end confdefs.h.  */
1971$4
1972int
1973main ()
1974{
1975static int test_array [1 - 2 * !(($2) >= 0)];
1976test_array [0] = 0
1977
1978  ;
1979  return 0;
1980}
1981_ACEOF
1982if ac_fn_c_try_compile "$LINENO"; then :
1983  ac_lo=0 ac_mid=0
1984  while :; do
1985    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h.  */
1987$4
1988int
1989main ()
1990{
1991static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1992test_array [0] = 0
1993
1994  ;
1995  return 0;
1996}
1997_ACEOF
1998if ac_fn_c_try_compile "$LINENO"; then :
1999  ac_hi=$ac_mid; break
2000else
2001  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2002			if test $ac_lo -le $ac_mid; then
2003			  ac_lo= ac_hi=
2004			  break
2005			fi
2006			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2007fi
2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009  done
2010else
2011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h.  */
2013$4
2014int
2015main ()
2016{
2017static int test_array [1 - 2 * !(($2) < 0)];
2018test_array [0] = 0
2019
2020  ;
2021  return 0;
2022}
2023_ACEOF
2024if ac_fn_c_try_compile "$LINENO"; then :
2025  ac_hi=-1 ac_mid=-1
2026  while :; do
2027    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h.  */
2029$4
2030int
2031main ()
2032{
2033static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2034test_array [0] = 0
2035
2036  ;
2037  return 0;
2038}
2039_ACEOF
2040if ac_fn_c_try_compile "$LINENO"; then :
2041  ac_lo=$ac_mid; break
2042else
2043  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2044			if test $ac_mid -le $ac_hi; then
2045			  ac_lo= ac_hi=
2046			  break
2047			fi
2048			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051  done
2052else
2053  ac_lo= ac_hi=
2054fi
2055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056fi
2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058# Binary search between lo and hi bounds.
2059while test "x$ac_lo" != "x$ac_hi"; do
2060  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062/* end confdefs.h.  */
2063$4
2064int
2065main ()
2066{
2067static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2068test_array [0] = 0
2069
2070  ;
2071  return 0;
2072}
2073_ACEOF
2074if ac_fn_c_try_compile "$LINENO"; then :
2075  ac_hi=$ac_mid
2076else
2077  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2078fi
2079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080done
2081case $ac_lo in #((
2082?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2083'') ac_retval=1 ;;
2084esac
2085  else
2086    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h.  */
2088$4
2089static long int longval () { return $2; }
2090static unsigned long int ulongval () { return $2; }
2091#include <stdio.h>
2092#include <stdlib.h>
2093int
2094main ()
2095{
2096
2097  FILE *f = fopen ("conftest.val", "w");
2098  if (! f)
2099    return 1;
2100  if (($2) < 0)
2101    {
2102      long int i = longval ();
2103      if (i != ($2))
2104	return 1;
2105      fprintf (f, "%ld", i);
2106    }
2107  else
2108    {
2109      unsigned long int i = ulongval ();
2110      if (i != ($2))
2111	return 1;
2112      fprintf (f, "%lu", i);
2113    }
2114  /* Do not output a trailing newline, as this causes \r\n confusion
2115     on some platforms.  */
2116  return ferror (f) || fclose (f) != 0;
2117
2118  ;
2119  return 0;
2120}
2121_ACEOF
2122if ac_fn_c_try_run "$LINENO"; then :
2123  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2124else
2125  ac_retval=1
2126fi
2127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2128  conftest.$ac_objext conftest.beam conftest.$ac_ext
2129rm -f conftest.val
2130
2131  fi
2132  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2133  as_fn_set_status $ac_retval
2134
2135} # ac_fn_c_compute_int
2136
2137# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2138# -------------------------------------------------------
2139# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2140# the include files in INCLUDES and setting the cache variable VAR
2141# accordingly.
2142ac_fn_c_check_header_mongrel ()
2143{
2144  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147$as_echo_n "checking for $2... " >&6; }
2148if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2149  $as_echo_n "(cached) " >&6
2150fi
2151eval ac_res=\$$3
2152	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153$as_echo "$ac_res" >&6; }
2154else
2155  # Is the header compilable?
2156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2157$as_echo_n "checking $2 usability... " >&6; }
2158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h.  */
2160$4
2161#include <$2>
2162_ACEOF
2163if ac_fn_c_try_compile "$LINENO"; then :
2164  ac_header_compiler=yes
2165else
2166  ac_header_compiler=no
2167fi
2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2170$as_echo "$ac_header_compiler" >&6; }
2171
2172# Is the header present?
2173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2174$as_echo_n "checking $2 presence... " >&6; }
2175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176/* end confdefs.h.  */
2177#include <$2>
2178_ACEOF
2179if ac_fn_c_try_cpp "$LINENO"; then :
2180  ac_header_preproc=yes
2181else
2182  ac_header_preproc=no
2183fi
2184rm -f conftest.err conftest.$ac_ext
2185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2186$as_echo "$ac_header_preproc" >&6; }
2187
2188# So?  What about this header?
2189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2190  yes:no: )
2191    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2192$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2193    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2194$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2195    ;;
2196  no:yes:* )
2197    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2198$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2199    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2200$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2201    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2202$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2203    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2204$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2205    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2206$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2207    ;;
2208esac
2209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2210$as_echo_n "checking for $2... " >&6; }
2211if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2212  $as_echo_n "(cached) " >&6
2213else
2214  eval "$3=\$ac_header_compiler"
2215fi
2216eval ac_res=\$$3
2217	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2218$as_echo "$ac_res" >&6; }
2219fi
2220  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2221
2222} # ac_fn_c_check_header_mongrel
2223cat >config.log <<_ACEOF
2224This file contains any messages produced by compilers while
2225running configure, to aid debugging if configure makes a mistake.
2226
2227It was created by pocketsphinx $as_me 0.8, which was
2228generated by GNU Autoconf 2.65.  Invocation command line was
2229
2230  $ $0 $@
2231
2232_ACEOF
2233exec 5>>config.log
2234{
2235cat <<_ASUNAME
2236## --------- ##
2237## Platform. ##
2238## --------- ##
2239
2240hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2241uname -m = `(uname -m) 2>/dev/null || echo unknown`
2242uname -r = `(uname -r) 2>/dev/null || echo unknown`
2243uname -s = `(uname -s) 2>/dev/null || echo unknown`
2244uname -v = `(uname -v) 2>/dev/null || echo unknown`
2245
2246/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2247/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2248
2249/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2250/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2251/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2252/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2253/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2254/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2255/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2256
2257_ASUNAME
2258
2259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260for as_dir in $PATH
2261do
2262  IFS=$as_save_IFS
2263  test -z "$as_dir" && as_dir=.
2264    $as_echo "PATH: $as_dir"
2265  done
2266IFS=$as_save_IFS
2267
2268} >&5
2269
2270cat >&5 <<_ACEOF
2271
2272
2273## ----------- ##
2274## Core tests. ##
2275## ----------- ##
2276
2277_ACEOF
2278
2279
2280# Keep a trace of the command line.
2281# Strip out --no-create and --no-recursion so they do not pile up.
2282# Strip out --silent because we don't want to record it for future runs.
2283# Also quote any args containing shell meta-characters.
2284# Make two passes to allow for proper duplicate-argument suppression.
2285ac_configure_args=
2286ac_configure_args0=
2287ac_configure_args1=
2288ac_must_keep_next=false
2289for ac_pass in 1 2
2290do
2291  for ac_arg
2292  do
2293    case $ac_arg in
2294    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2295    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2296    | -silent | --silent | --silen | --sile | --sil)
2297      continue ;;
2298    *\'*)
2299      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2300    esac
2301    case $ac_pass in
2302    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2303    2)
2304      as_fn_append ac_configure_args1 " '$ac_arg'"
2305      if test $ac_must_keep_next = true; then
2306	ac_must_keep_next=false # Got value, back to normal.
2307      else
2308	case $ac_arg in
2309	  *=* | --config-cache | -C | -disable-* | --disable-* \
2310	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2311	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2312	  | -with-* | --with-* | -without-* | --without-* | --x)
2313	    case "$ac_configure_args0 " in
2314	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2315	    esac
2316	    ;;
2317	  -* ) ac_must_keep_next=true ;;
2318	esac
2319      fi
2320      as_fn_append ac_configure_args " '$ac_arg'"
2321      ;;
2322    esac
2323  done
2324done
2325{ ac_configure_args0=; unset ac_configure_args0;}
2326{ ac_configure_args1=; unset ac_configure_args1;}
2327
2328# When interrupted or exit'd, cleanup temporary files, and complete
2329# config.log.  We remove comments because anyway the quotes in there
2330# would cause problems or look ugly.
2331# WARNING: Use '\'' to represent an apostrophe within the trap.
2332# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2333trap 'exit_status=$?
2334  # Save into config.log some information that might help in debugging.
2335  {
2336    echo
2337
2338    cat <<\_ASBOX
2339## ---------------- ##
2340## Cache variables. ##
2341## ---------------- ##
2342_ASBOX
2343    echo
2344    # The following way of writing the cache mishandles newlines in values,
2345(
2346  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2347    eval ac_val=\$$ac_var
2348    case $ac_val in #(
2349    *${as_nl}*)
2350      case $ac_var in #(
2351      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2352$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2353      esac
2354      case $ac_var in #(
2355      _ | IFS | as_nl) ;; #(
2356      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2357      *) { eval $ac_var=; unset $ac_var;} ;;
2358      esac ;;
2359    esac
2360  done
2361  (set) 2>&1 |
2362    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2363    *${as_nl}ac_space=\ *)
2364      sed -n \
2365	"s/'\''/'\''\\\\'\'''\''/g;
2366	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2367      ;; #(
2368    *)
2369      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2370      ;;
2371    esac |
2372    sort
2373)
2374    echo
2375
2376    cat <<\_ASBOX
2377## ----------------- ##
2378## Output variables. ##
2379## ----------------- ##
2380_ASBOX
2381    echo
2382    for ac_var in $ac_subst_vars
2383    do
2384      eval ac_val=\$$ac_var
2385      case $ac_val in
2386      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2387      esac
2388      $as_echo "$ac_var='\''$ac_val'\''"
2389    done | sort
2390    echo
2391
2392    if test -n "$ac_subst_files"; then
2393      cat <<\_ASBOX
2394## ------------------- ##
2395## File substitutions. ##
2396## ------------------- ##
2397_ASBOX
2398      echo
2399      for ac_var in $ac_subst_files
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    fi
2409
2410    if test -s confdefs.h; then
2411      cat <<\_ASBOX
2412## ----------- ##
2413## confdefs.h. ##
2414## ----------- ##
2415_ASBOX
2416      echo
2417      cat confdefs.h
2418      echo
2419    fi
2420    test "$ac_signal" != 0 &&
2421      $as_echo "$as_me: caught signal $ac_signal"
2422    $as_echo "$as_me: exit $exit_status"
2423  } >&5
2424  rm -f core *.core core.conftest.* &&
2425    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2426    exit $exit_status
2427' 0
2428for ac_signal in 1 2 13 15; do
2429  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2430done
2431ac_signal=0
2432
2433# confdefs.h avoids OS command line length limits that DEFS can exceed.
2434rm -f -r conftest* confdefs.h
2435
2436$as_echo "/* confdefs.h */" > confdefs.h
2437
2438# Predefined preprocessor variables.
2439
2440cat >>confdefs.h <<_ACEOF
2441#define PACKAGE_NAME "$PACKAGE_NAME"
2442_ACEOF
2443
2444cat >>confdefs.h <<_ACEOF
2445#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2446_ACEOF
2447
2448cat >>confdefs.h <<_ACEOF
2449#define PACKAGE_VERSION "$PACKAGE_VERSION"
2450_ACEOF
2451
2452cat >>confdefs.h <<_ACEOF
2453#define PACKAGE_STRING "$PACKAGE_STRING"
2454_ACEOF
2455
2456cat >>confdefs.h <<_ACEOF
2457#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2458_ACEOF
2459
2460cat >>confdefs.h <<_ACEOF
2461#define PACKAGE_URL "$PACKAGE_URL"
2462_ACEOF
2463
2464
2465# Let the site file select an alternate cache file if it wants to.
2466# Prefer an explicitly selected file to automatically selected ones.
2467ac_site_file1=NONE
2468ac_site_file2=NONE
2469if test -n "$CONFIG_SITE"; then
2470  ac_site_file1=$CONFIG_SITE
2471elif test "x$prefix" != xNONE; then
2472  ac_site_file1=$prefix/share/config.site
2473  ac_site_file2=$prefix/etc/config.site
2474else
2475  ac_site_file1=$ac_default_prefix/share/config.site
2476  ac_site_file2=$ac_default_prefix/etc/config.site
2477fi
2478for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2479do
2480  test "x$ac_site_file" = xNONE && continue
2481  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2482    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2483$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2484    sed 's/^/| /' "$ac_site_file" >&5
2485    . "$ac_site_file"
2486  fi
2487done
2488
2489if test -r "$cache_file"; then
2490  # Some versions of bash will fail to source /dev/null (special files
2491  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2492  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2493    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2494$as_echo "$as_me: loading cache $cache_file" >&6;}
2495    case $cache_file in
2496      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2497      *)                      . "./$cache_file";;
2498    esac
2499  fi
2500else
2501  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2502$as_echo "$as_me: creating cache $cache_file" >&6;}
2503  >$cache_file
2504fi
2505
2506# Check that the precious variables saved in the cache have kept the same
2507# value.
2508ac_cache_corrupted=false
2509for ac_var in $ac_precious_vars; do
2510  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2511  eval ac_new_set=\$ac_env_${ac_var}_set
2512  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2513  eval ac_new_val=\$ac_env_${ac_var}_value
2514  case $ac_old_set,$ac_new_set in
2515    set,)
2516      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2517$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2518      ac_cache_corrupted=: ;;
2519    ,set)
2520      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2521$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2522      ac_cache_corrupted=: ;;
2523    ,);;
2524    *)
2525      if test "x$ac_old_val" != "x$ac_new_val"; then
2526	# differences in whitespace do not lead to failure.
2527	ac_old_val_w=`echo x $ac_old_val`
2528	ac_new_val_w=`echo x $ac_new_val`
2529	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2530	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2531$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2532	  ac_cache_corrupted=:
2533	else
2534	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2535$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2536	  eval $ac_var=\$ac_old_val
2537	fi
2538	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2539$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2540	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2541$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2542      fi;;
2543  esac
2544  # Pass precious variables to config.status.
2545  if test "$ac_new_set" = set; then
2546    case $ac_new_val in
2547    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2548    *) ac_arg=$ac_var=$ac_new_val ;;
2549    esac
2550    case " $ac_configure_args " in
2551      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2552      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2553    esac
2554  fi
2555done
2556if $ac_cache_corrupted; then
2557  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2560$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2561  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2562fi
2563## -------------------- ##
2564## Main body of script. ##
2565## -------------------- ##
2566
2567ac_ext=c
2568ac_cpp='$CPP $CPPFLAGS'
2569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571ac_compiler_gnu=$ac_cv_c_compiler_gnu
2572
2573
2574am__api_version='1.11'
2575
2576ac_aux_dir=
2577for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2578  for ac_t in install-sh install.sh shtool; do
2579    if test -f "$ac_dir/$ac_t"; then
2580      ac_aux_dir=$ac_dir
2581      ac_install_sh="$ac_aux_dir/$ac_t -c"
2582      break 2
2583    fi
2584  done
2585done
2586if test -z "$ac_aux_dir"; then
2587  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2588fi
2589
2590# These three variables are undocumented and unsupported,
2591# and are intended to be withdrawn in a future Autoconf release.
2592# They can cause serious problems if a builder's source tree is in a directory
2593# whose full name contains unusual characters.
2594ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2595ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2596ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2597
2598
2599# Find a good install program.  We prefer a C program (faster),
2600# so one script is as good as another.  But avoid the broken or
2601# incompatible versions:
2602# SysV /etc/install, /usr/sbin/install
2603# SunOS /usr/etc/install
2604# IRIX /sbin/install
2605# AIX /bin/install
2606# AmigaOS /C/install, which installs bootblocks on floppy discs
2607# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2608# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2609# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2610# OS/2's system install, which has a completely different semantic
2611# ./install, which can be erroneously created by make from ./install.sh.
2612# Reject install programs that cannot install multiple files.
2613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2614$as_echo_n "checking for a BSD-compatible install... " >&6; }
2615if test -z "$INSTALL"; then
2616if test "${ac_cv_path_install+set}" = set; then :
2617  $as_echo_n "(cached) " >&6
2618else
2619  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620for as_dir in $PATH
2621do
2622  IFS=$as_save_IFS
2623  test -z "$as_dir" && as_dir=.
2624    # Account for people who put trailing slashes in PATH elements.
2625case $as_dir/ in #((
2626  ./ | .// | /[cC]/* | \
2627  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2628  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2629  /usr/ucb/* ) ;;
2630  *)
2631    # OSF1 and SCO ODT 3.0 have their own names for install.
2632    # Don't use installbsd from OSF since it installs stuff as root
2633    # by default.
2634    for ac_prog in ginstall scoinst install; do
2635      for ac_exec_ext in '' $ac_executable_extensions; do
2636	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2637	  if test $ac_prog = install &&
2638	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2639	    # AIX install.  It has an incompatible calling convention.
2640	    :
2641	  elif test $ac_prog = install &&
2642	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2643	    # program-specific install script used by HP pwplus--don't use.
2644	    :
2645	  else
2646	    rm -rf conftest.one conftest.two conftest.dir
2647	    echo one > conftest.one
2648	    echo two > conftest.two
2649	    mkdir conftest.dir
2650	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2651	      test -s conftest.one && test -s conftest.two &&
2652	      test -s conftest.dir/conftest.one &&
2653	      test -s conftest.dir/conftest.two
2654	    then
2655	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2656	      break 3
2657	    fi
2658	  fi
2659	fi
2660      done
2661    done
2662    ;;
2663esac
2664
2665  done
2666IFS=$as_save_IFS
2667
2668rm -rf conftest.one conftest.two conftest.dir
2669
2670fi
2671  if test "${ac_cv_path_install+set}" = set; then
2672    INSTALL=$ac_cv_path_install
2673  else
2674    # As a last resort, use the slow shell script.  Don't cache a
2675    # value for INSTALL within a source directory, because that will
2676    # break other packages using the cache if that directory is
2677    # removed, or if the value is a relative name.
2678    INSTALL=$ac_install_sh
2679  fi
2680fi
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2682$as_echo "$INSTALL" >&6; }
2683
2684# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2685# It thinks the first close brace ends the variable substitution.
2686test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2687
2688test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2689
2690test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2691
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2693$as_echo_n "checking whether build environment is sane... " >&6; }
2694# Just in case
2695sleep 1
2696echo timestamp > conftest.file
2697# Reject unsafe characters in $srcdir or the absolute working directory
2698# name.  Accept space and tab only in the latter.
2699am_lf='
2700'
2701case `pwd` in
2702  *[\\\"\#\$\&\'\`$am_lf]*)
2703    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2704esac
2705case $srcdir in
2706  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2707    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2708esac
2709
2710# Do `set' in a subshell so we don't clobber the current shell's
2711# arguments.  Must try -L first in case configure is actually a
2712# symlink; some systems play weird games with the mod time of symlinks
2713# (eg FreeBSD returns the mod time of the symlink's containing
2714# directory).
2715if (
2716   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2717   if test "$*" = "X"; then
2718      # -L didn't work.
2719      set X `ls -t "$srcdir/configure" conftest.file`
2720   fi
2721   rm -f conftest.file
2722   if test "$*" != "X $srcdir/configure conftest.file" \
2723      && test "$*" != "X conftest.file $srcdir/configure"; then
2724
2725      # If neither matched, then we have a broken ls.  This can happen
2726      # if, for instance, CONFIG_SHELL is bash and it inherits a
2727      # broken ls alias from the environment.  This has actually
2728      # happened.  Such a system could not be considered "sane".
2729      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2730alias in your environment" "$LINENO" 5
2731   fi
2732
2733   test "$2" = conftest.file
2734   )
2735then
2736   # Ok.
2737   :
2738else
2739   as_fn_error "newly created file is older than distributed files!
2740Check your system clock" "$LINENO" 5
2741fi
2742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2743$as_echo "yes" >&6; }
2744test "$program_prefix" != NONE &&
2745  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2746# Use a double $ so make ignores it.
2747test "$program_suffix" != NONE &&
2748  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2749# Double any \ or $.
2750# By default was `s,x,x', remove it if useless.
2751ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2752program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2753
2754# expand $ac_aux_dir to an absolute path
2755am_aux_dir=`cd $ac_aux_dir && pwd`
2756
2757if test x"${MISSING+set}" != xset; then
2758  case $am_aux_dir in
2759  *\ * | *\	*)
2760    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2761  *)
2762    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2763  esac
2764fi
2765# Use eval to expand $SHELL
2766if eval "$MISSING --run true"; then
2767  am_missing_run="$MISSING --run "
2768else
2769  am_missing_run=
2770  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2771$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2772fi
2773
2774if test x"${install_sh}" != xset; then
2775  case $am_aux_dir in
2776  *\ * | *\	*)
2777    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2778  *)
2779    install_sh="\${SHELL} $am_aux_dir/install-sh"
2780  esac
2781fi
2782
2783# Installed binaries are usually stripped using `strip' when the user
2784# run `make install-strip'.  However `strip' might not be the right
2785# tool to use in cross-compilation environments, therefore Automake
2786# will honor the `STRIP' environment variable to overrule this program.
2787if test "$cross_compiling" != no; then
2788  if test -n "$ac_tool_prefix"; then
2789  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2790set dummy ${ac_tool_prefix}strip; ac_word=$2
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792$as_echo_n "checking for $ac_word... " >&6; }
2793if test "${ac_cv_prog_STRIP+set}" = set; then :
2794  $as_echo_n "(cached) " >&6
2795else
2796  if test -n "$STRIP"; then
2797  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2798else
2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800for as_dir in $PATH
2801do
2802  IFS=$as_save_IFS
2803  test -z "$as_dir" && as_dir=.
2804    for ac_exec_ext in '' $ac_executable_extensions; do
2805  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808    break 2
2809  fi
2810done
2811  done
2812IFS=$as_save_IFS
2813
2814fi
2815fi
2816STRIP=$ac_cv_prog_STRIP
2817if test -n "$STRIP"; then
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2819$as_echo "$STRIP" >&6; }
2820else
2821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822$as_echo "no" >&6; }
2823fi
2824
2825
2826fi
2827if test -z "$ac_cv_prog_STRIP"; then
2828  ac_ct_STRIP=$STRIP
2829  # Extract the first word of "strip", so it can be a program name with args.
2830set dummy strip; ac_word=$2
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832$as_echo_n "checking for $ac_word... " >&6; }
2833if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2834  $as_echo_n "(cached) " >&6
2835else
2836  if test -n "$ac_ct_STRIP"; then
2837  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2838else
2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840for as_dir in $PATH
2841do
2842  IFS=$as_save_IFS
2843  test -z "$as_dir" && as_dir=.
2844    for ac_exec_ext in '' $ac_executable_extensions; do
2845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846    ac_cv_prog_ac_ct_STRIP="strip"
2847    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848    break 2
2849  fi
2850done
2851  done
2852IFS=$as_save_IFS
2853
2854fi
2855fi
2856ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2857if test -n "$ac_ct_STRIP"; then
2858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2859$as_echo "$ac_ct_STRIP" >&6; }
2860else
2861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862$as_echo "no" >&6; }
2863fi
2864
2865  if test "x$ac_ct_STRIP" = x; then
2866    STRIP=":"
2867  else
2868    case $cross_compiling:$ac_tool_warned in
2869yes:)
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2872ac_tool_warned=yes ;;
2873esac
2874    STRIP=$ac_ct_STRIP
2875  fi
2876else
2877  STRIP="$ac_cv_prog_STRIP"
2878fi
2879
2880fi
2881INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2882
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2884$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2885if test -z "$MKDIR_P"; then
2886  if test "${ac_cv_path_mkdir+set}" = set; then :
2887  $as_echo_n "(cached) " >&6
2888else
2889  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2891do
2892  IFS=$as_save_IFS
2893  test -z "$as_dir" && as_dir=.
2894    for ac_prog in mkdir gmkdir; do
2895	 for ac_exec_ext in '' $ac_executable_extensions; do
2896	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2897	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2898	     'mkdir (GNU coreutils) '* | \
2899	     'mkdir (coreutils) '* | \
2900	     'mkdir (fileutils) '4.1*)
2901	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2902	       break 3;;
2903	   esac
2904	 done
2905       done
2906  done
2907IFS=$as_save_IFS
2908
2909fi
2910
2911  test -d ./--version && rmdir ./--version
2912  if test "${ac_cv_path_mkdir+set}" = set; then
2913    MKDIR_P="$ac_cv_path_mkdir -p"
2914  else
2915    # As a last resort, use the slow shell script.  Don't cache a
2916    # value for MKDIR_P within a source directory, because that will
2917    # break other packages using the cache if that directory is
2918    # removed, or if the value is a relative name.
2919    MKDIR_P="$ac_install_sh -d"
2920  fi
2921fi
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2923$as_echo "$MKDIR_P" >&6; }
2924
2925mkdir_p="$MKDIR_P"
2926case $mkdir_p in
2927  [\\/$]* | ?:[\\/]*) ;;
2928  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2929esac
2930
2931for ac_prog in gawk mawk nawk awk
2932do
2933  # Extract the first word of "$ac_prog", so it can be a program name with args.
2934set dummy $ac_prog; ac_word=$2
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936$as_echo_n "checking for $ac_word... " >&6; }
2937if test "${ac_cv_prog_AWK+set}" = set; then :
2938  $as_echo_n "(cached) " >&6
2939else
2940  if test -n "$AWK"; then
2941  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2942else
2943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944for as_dir in $PATH
2945do
2946  IFS=$as_save_IFS
2947  test -z "$as_dir" && as_dir=.
2948    for ac_exec_ext in '' $ac_executable_extensions; do
2949  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950    ac_cv_prog_AWK="$ac_prog"
2951    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952    break 2
2953  fi
2954done
2955  done
2956IFS=$as_save_IFS
2957
2958fi
2959fi
2960AWK=$ac_cv_prog_AWK
2961if test -n "$AWK"; then
2962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2963$as_echo "$AWK" >&6; }
2964else
2965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966$as_echo "no" >&6; }
2967fi
2968
2969
2970  test -n "$AWK" && break
2971done
2972
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2974$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2975set x ${MAKE-make}
2976ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2977if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2978  $as_echo_n "(cached) " >&6
2979else
2980  cat >conftest.make <<\_ACEOF
2981SHELL = /bin/sh
2982all:
2983	@echo '@@@%%%=$(MAKE)=@@@%%%'
2984_ACEOF
2985# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2986case `${MAKE-make} -f conftest.make 2>/dev/null` in
2987  *@@@%%%=?*=@@@%%%*)
2988    eval ac_cv_prog_make_${ac_make}_set=yes;;
2989  *)
2990    eval ac_cv_prog_make_${ac_make}_set=no;;
2991esac
2992rm -f conftest.make
2993fi
2994if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2996$as_echo "yes" >&6; }
2997  SET_MAKE=
2998else
2999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000$as_echo "no" >&6; }
3001  SET_MAKE="MAKE=${MAKE-make}"
3002fi
3003
3004rm -rf .tst 2>/dev/null
3005mkdir .tst 2>/dev/null
3006if test -d .tst; then
3007  am__leading_dot=.
3008else
3009  am__leading_dot=_
3010fi
3011rmdir .tst 2>/dev/null
3012
3013if test "`cd $srcdir && pwd`" != "`pwd`"; then
3014  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3015  # is not polluted with repeated "-I."
3016  am__isrc=' -I$(srcdir)'
3017  # test to see if srcdir already configured
3018  if test -f $srcdir/config.status; then
3019    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3020  fi
3021fi
3022
3023# test whether we have cygpath
3024if test -z "$CYGPATH_W"; then
3025  if (cygpath --version) >/dev/null 2>/dev/null; then
3026    CYGPATH_W='cygpath -w'
3027  else
3028    CYGPATH_W=echo
3029  fi
3030fi
3031
3032
3033# Define the identity of the package.
3034 PACKAGE='pocketsphinx'
3035 VERSION='0.8'
3036
3037
3038# Some tools Automake needs.
3039
3040ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3041
3042
3043AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3044
3045
3046AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3047
3048
3049AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3050
3051
3052MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3053
3054# We need awk for the "check" target.  The system "awk" is bad on
3055# some platforms.
3056# Always define AMTAR for backward compatibility.
3057
3058AMTAR=${AMTAR-"${am_missing_run}tar"}
3059
3060am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3061
3062
3063
3064
3065
3066
3067
3068CFLAGS=${CFLAGS:--g -O2 -Wall}
3069
3070# Make sure we can run config.sub.
3071$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3072  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3073
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3075$as_echo_n "checking build system type... " >&6; }
3076if test "${ac_cv_build+set}" = set; then :
3077  $as_echo_n "(cached) " >&6
3078else
3079  ac_build_alias=$build_alias
3080test "x$ac_build_alias" = x &&
3081  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3082test "x$ac_build_alias" = x &&
3083  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3084ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3085  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3086
3087fi
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3089$as_echo "$ac_cv_build" >&6; }
3090case $ac_cv_build in
3091*-*-*) ;;
3092*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3093esac
3094build=$ac_cv_build
3095ac_save_IFS=$IFS; IFS='-'
3096set x $ac_cv_build
3097shift
3098build_cpu=$1
3099build_vendor=$2
3100shift; shift
3101# Remember, the first character of IFS is used to create $*,
3102# except with old shells:
3103build_os=$*
3104IFS=$ac_save_IFS
3105case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3106
3107
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3109$as_echo_n "checking host system type... " >&6; }
3110if test "${ac_cv_host+set}" = set; then :
3111  $as_echo_n "(cached) " >&6
3112else
3113  if test "x$host_alias" = x; then
3114  ac_cv_host=$ac_cv_build
3115else
3116  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3117    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3118fi
3119
3120fi
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3122$as_echo "$ac_cv_host" >&6; }
3123case $ac_cv_host in
3124*-*-*) ;;
3125*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3126esac
3127host=$ac_cv_host
3128ac_save_IFS=$IFS; IFS='-'
3129set x $ac_cv_host
3130shift
3131host_cpu=$1
3132host_vendor=$2
3133shift; shift
3134# Remember, the first character of IFS is used to create $*,
3135# except with old shells:
3136host_os=$*
3137IFS=$ac_save_IFS
3138case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3139
3140
3141
3142case $host in
3143     arm-wince-pe*)
3144	CFLAGS=${CFLAGS:--march=armv4 -mapcs-32 -malignment-traps}
3145	LIBS='-lc -lgcc -lwinsock -lcoredll'
3146	CFLAGS="$CFLAGS -DNEWLIB -DSARM -DWIN32 -DGNUWINCE"
3147	;;
3148     *apple*)
3149        LIBS="$LIBS -framework CoreAudio -framework AudioToolbox"
3150        ;;
3151     *uclinux*)
3152	# uClinux needs special "flat" binaries
3153	LDFLAGS="$LDFLAGS -Wl,-elf2flt"
3154	;;
3155     *)
3156     ;;
3157esac
3158
3159ac_ext=c
3160ac_cpp='$CPP $CPPFLAGS'
3161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164if test -n "$ac_tool_prefix"; then
3165  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3166set dummy ${ac_tool_prefix}gcc; ac_word=$2
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168$as_echo_n "checking for $ac_word... " >&6; }
3169if test "${ac_cv_prog_CC+set}" = set; then :
3170  $as_echo_n "(cached) " >&6
3171else
3172  if test -n "$CC"; then
3173  ac_cv_prog_CC="$CC" # Let the user override the test.
3174else
3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176for as_dir in $PATH
3177do
3178  IFS=$as_save_IFS
3179  test -z "$as_dir" && as_dir=.
3180    for ac_exec_ext in '' $ac_executable_extensions; do
3181  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3182    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184    break 2
3185  fi
3186done
3187  done
3188IFS=$as_save_IFS
3189
3190fi
3191fi
3192CC=$ac_cv_prog_CC
3193if test -n "$CC"; then
3194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3195$as_echo "$CC" >&6; }
3196else
3197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198$as_echo "no" >&6; }
3199fi
3200
3201
3202fi
3203if test -z "$ac_cv_prog_CC"; then
3204  ac_ct_CC=$CC
3205  # Extract the first word of "gcc", so it can be a program name with args.
3206set dummy gcc; ac_word=$2
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208$as_echo_n "checking for $ac_word... " >&6; }
3209if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3210  $as_echo_n "(cached) " >&6
3211else
3212  if test -n "$ac_ct_CC"; then
3213  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3214else
3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216for as_dir in $PATH
3217do
3218  IFS=$as_save_IFS
3219  test -z "$as_dir" && as_dir=.
3220    for ac_exec_ext in '' $ac_executable_extensions; do
3221  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3222    ac_cv_prog_ac_ct_CC="gcc"
3223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224    break 2
3225  fi
3226done
3227  done
3228IFS=$as_save_IFS
3229
3230fi
3231fi
3232ac_ct_CC=$ac_cv_prog_ac_ct_CC
3233if test -n "$ac_ct_CC"; then
3234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3235$as_echo "$ac_ct_CC" >&6; }
3236else
3237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238$as_echo "no" >&6; }
3239fi
3240
3241  if test "x$ac_ct_CC" = x; then
3242    CC=""
3243  else
3244    case $cross_compiling:$ac_tool_warned in
3245yes:)
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3248ac_tool_warned=yes ;;
3249esac
3250    CC=$ac_ct_CC
3251  fi
3252else
3253  CC="$ac_cv_prog_CC"
3254fi
3255
3256if test -z "$CC"; then
3257          if test -n "$ac_tool_prefix"; then
3258    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3259set dummy ${ac_tool_prefix}cc; ac_word=$2
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261$as_echo_n "checking for $ac_word... " >&6; }
3262if test "${ac_cv_prog_CC+set}" = set; then :
3263  $as_echo_n "(cached) " >&6
3264else
3265  if test -n "$CC"; then
3266  ac_cv_prog_CC="$CC" # Let the user override the test.
3267else
3268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269for as_dir in $PATH
3270do
3271  IFS=$as_save_IFS
3272  test -z "$as_dir" && as_dir=.
3273    for ac_exec_ext in '' $ac_executable_extensions; do
3274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275    ac_cv_prog_CC="${ac_tool_prefix}cc"
3276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277    break 2
3278  fi
3279done
3280  done
3281IFS=$as_save_IFS
3282
3283fi
3284fi
3285CC=$ac_cv_prog_CC
3286if test -n "$CC"; then
3287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3288$as_echo "$CC" >&6; }
3289else
3290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291$as_echo "no" >&6; }
3292fi
3293
3294
3295  fi
3296fi
3297if test -z "$CC"; then
3298  # Extract the first word of "cc", so it can be a program name with args.
3299set dummy cc; ac_word=$2
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301$as_echo_n "checking for $ac_word... " >&6; }
3302if test "${ac_cv_prog_CC+set}" = set; then :
3303  $as_echo_n "(cached) " >&6
3304else
3305  if test -n "$CC"; then
3306  ac_cv_prog_CC="$CC" # Let the user override the test.
3307else
3308  ac_prog_rejected=no
3309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310for as_dir in $PATH
3311do
3312  IFS=$as_save_IFS
3313  test -z "$as_dir" && as_dir=.
3314    for ac_exec_ext in '' $ac_executable_extensions; do
3315  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3316    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3317       ac_prog_rejected=yes
3318       continue
3319     fi
3320    ac_cv_prog_CC="cc"
3321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322    break 2
3323  fi
3324done
3325  done
3326IFS=$as_save_IFS
3327
3328if test $ac_prog_rejected = yes; then
3329  # We found a bogon in the path, so make sure we never use it.
3330  set dummy $ac_cv_prog_CC
3331  shift
3332  if test $# != 0; then
3333    # We chose a different compiler from the bogus one.
3334    # However, it has the same basename, so the bogon will be chosen
3335    # first if we set CC to just the basename; use the full file name.
3336    shift
3337    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3338  fi
3339fi
3340fi
3341fi
3342CC=$ac_cv_prog_CC
3343if test -n "$CC"; then
3344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345$as_echo "$CC" >&6; }
3346else
3347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348$as_echo "no" >&6; }
3349fi
3350
3351
3352fi
3353if test -z "$CC"; then
3354  if test -n "$ac_tool_prefix"; then
3355  for ac_prog in cl.exe
3356  do
3357    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3358set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360$as_echo_n "checking for $ac_word... " >&6; }
3361if test "${ac_cv_prog_CC+set}" = set; then :
3362  $as_echo_n "(cached) " >&6
3363else
3364  if test -n "$CC"; then
3365  ac_cv_prog_CC="$CC" # Let the user override the test.
3366else
3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368for as_dir in $PATH
3369do
3370  IFS=$as_save_IFS
3371  test -z "$as_dir" && as_dir=.
3372    for ac_exec_ext in '' $ac_executable_extensions; do
3373  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3374    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376    break 2
3377  fi
3378done
3379  done
3380IFS=$as_save_IFS
3381
3382fi
3383fi
3384CC=$ac_cv_prog_CC
3385if test -n "$CC"; then
3386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3387$as_echo "$CC" >&6; }
3388else
3389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390$as_echo "no" >&6; }
3391fi
3392
3393
3394    test -n "$CC" && break
3395  done
3396fi
3397if test -z "$CC"; then
3398  ac_ct_CC=$CC
3399  for ac_prog in cl.exe
3400do
3401  # Extract the first word of "$ac_prog", so it can be a program name with args.
3402set dummy $ac_prog; ac_word=$2
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404$as_echo_n "checking for $ac_word... " >&6; }
3405if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3406  $as_echo_n "(cached) " >&6
3407else
3408  if test -n "$ac_ct_CC"; then
3409  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3410else
3411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412for as_dir in $PATH
3413do
3414  IFS=$as_save_IFS
3415  test -z "$as_dir" && as_dir=.
3416    for ac_exec_ext in '' $ac_executable_extensions; do
3417  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3418    ac_cv_prog_ac_ct_CC="$ac_prog"
3419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420    break 2
3421  fi
3422done
3423  done
3424IFS=$as_save_IFS
3425
3426fi
3427fi
3428ac_ct_CC=$ac_cv_prog_ac_ct_CC
3429if test -n "$ac_ct_CC"; then
3430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3431$as_echo "$ac_ct_CC" >&6; }
3432else
3433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434$as_echo "no" >&6; }
3435fi
3436
3437
3438  test -n "$ac_ct_CC" && break
3439done
3440
3441  if test "x$ac_ct_CC" = x; then
3442    CC=""
3443  else
3444    case $cross_compiling:$ac_tool_warned in
3445yes:)
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3447$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3448ac_tool_warned=yes ;;
3449esac
3450    CC=$ac_ct_CC
3451  fi
3452fi
3453
3454fi
3455
3456
3457test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459as_fn_error "no acceptable C compiler found in \$PATH
3460See \`config.log' for more details." "$LINENO" 5; }
3461
3462# Provide some information about the compiler.
3463$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3464set X $ac_compile
3465ac_compiler=$2
3466for ac_option in --version -v -V -qversion; do
3467  { { ac_try="$ac_compiler $ac_option >&5"
3468case "(($ac_try" in
3469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470  *) ac_try_echo=$ac_try;;
3471esac
3472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473$as_echo "$ac_try_echo"; } >&5
3474  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3475  ac_status=$?
3476  if test -s conftest.err; then
3477    sed '10a\
3478... rest of stderr output deleted ...
3479         10q' conftest.err >conftest.er1
3480    cat conftest.er1 >&5
3481  fi
3482  rm -f conftest.er1 conftest.err
3483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484  test $ac_status = 0; }
3485done
3486
3487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488/* end confdefs.h.  */
3489
3490int
3491main ()
3492{
3493
3494  ;
3495  return 0;
3496}
3497_ACEOF
3498ac_clean_files_save=$ac_clean_files
3499ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3500# Try to create an executable without -o first, disregard a.out.
3501# It will help us diagnose broken compilers, and finding out an intuition
3502# of exeext.
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3504$as_echo_n "checking whether the C compiler works... " >&6; }
3505ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3506
3507# The possible output files:
3508ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3509
3510ac_rmfiles=
3511for ac_file in $ac_files
3512do
3513  case $ac_file in
3514    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3515    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3516  esac
3517done
3518rm -f $ac_rmfiles
3519
3520if { { ac_try="$ac_link_default"
3521case "(($ac_try" in
3522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523  *) ac_try_echo=$ac_try;;
3524esac
3525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526$as_echo "$ac_try_echo"; } >&5
3527  (eval "$ac_link_default") 2>&5
3528  ac_status=$?
3529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530  test $ac_status = 0; }; then :
3531  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3532# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3533# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3534# so that the user can short-circuit this test for compilers unknown to
3535# Autoconf.
3536for ac_file in $ac_files ''
3537do
3538  test -f "$ac_file" || continue
3539  case $ac_file in
3540    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3541	;;
3542    [ab].out )
3543	# We found the default executable, but exeext='' is most
3544	# certainly right.
3545	break;;
3546    *.* )
3547	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3548	then :; else
3549	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3550	fi
3551	# We set ac_cv_exeext here because the later test for it is not
3552	# safe: cross compilers may not add the suffix if given an `-o'
3553	# argument, so we may need to know it at that point already.
3554	# Even if this section looks crufty: it has the advantage of
3555	# actually working.
3556	break;;
3557    * )
3558	break;;
3559  esac
3560done
3561test "$ac_cv_exeext" = no && ac_cv_exeext=
3562
3563else
3564  ac_file=''
3565fi
3566if test -z "$ac_file"; then :
3567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568$as_echo "no" >&6; }
3569$as_echo "$as_me: failed program was:" >&5
3570sed 's/^/| /' conftest.$ac_ext >&5
3571
3572{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574{ as_fn_set_status 77
3575as_fn_error "C compiler cannot create executables
3576See \`config.log' for more details." "$LINENO" 5; }; }
3577else
3578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3579$as_echo "yes" >&6; }
3580fi
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3582$as_echo_n "checking for C compiler default output file name... " >&6; }
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3584$as_echo "$ac_file" >&6; }
3585ac_exeext=$ac_cv_exeext
3586
3587rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3588ac_clean_files=$ac_clean_files_save
3589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3590$as_echo_n "checking for suffix of executables... " >&6; }
3591if { { ac_try="$ac_link"
3592case "(($ac_try" in
3593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594  *) ac_try_echo=$ac_try;;
3595esac
3596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597$as_echo "$ac_try_echo"; } >&5
3598  (eval "$ac_link") 2>&5
3599  ac_status=$?
3600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601  test $ac_status = 0; }; then :
3602  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3603# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3604# work properly (i.e., refer to `conftest.exe'), while it won't with
3605# `rm'.
3606for ac_file in conftest.exe conftest conftest.*; do
3607  test -f "$ac_file" || continue
3608  case $ac_file in
3609    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3610    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3611	  break;;
3612    * ) break;;
3613  esac
3614done
3615else
3616  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3618as_fn_error "cannot compute suffix of executables: cannot compile and link
3619See \`config.log' for more details." "$LINENO" 5; }
3620fi
3621rm -f conftest conftest$ac_cv_exeext
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3623$as_echo "$ac_cv_exeext" >&6; }
3624
3625rm -f conftest.$ac_ext
3626EXEEXT=$ac_cv_exeext
3627ac_exeext=$EXEEXT
3628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629/* end confdefs.h.  */
3630#include <stdio.h>
3631int
3632main ()
3633{
3634FILE *f = fopen ("conftest.out", "w");
3635 return ferror (f) || fclose (f) != 0;
3636
3637  ;
3638  return 0;
3639}
3640_ACEOF
3641ac_clean_files="$ac_clean_files conftest.out"
3642# Check that the compiler produces executables we can run.  If not, either
3643# the compiler is broken, or we cross compile.
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3645$as_echo_n "checking whether we are cross compiling... " >&6; }
3646if test "$cross_compiling" != yes; then
3647  { { ac_try="$ac_link"
3648case "(($ac_try" in
3649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650  *) ac_try_echo=$ac_try;;
3651esac
3652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653$as_echo "$ac_try_echo"; } >&5
3654  (eval "$ac_link") 2>&5
3655  ac_status=$?
3656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657  test $ac_status = 0; }
3658  if { ac_try='./conftest$ac_cv_exeext'
3659  { { case "(($ac_try" in
3660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661  *) ac_try_echo=$ac_try;;
3662esac
3663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664$as_echo "$ac_try_echo"; } >&5
3665  (eval "$ac_try") 2>&5
3666  ac_status=$?
3667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668  test $ac_status = 0; }; }; then
3669    cross_compiling=no
3670  else
3671    if test "$cross_compiling" = maybe; then
3672	cross_compiling=yes
3673    else
3674	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3676as_fn_error "cannot run C compiled programs.
3677If you meant to cross compile, use \`--host'.
3678See \`config.log' for more details." "$LINENO" 5; }
3679    fi
3680  fi
3681fi
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3683$as_echo "$cross_compiling" >&6; }
3684
3685rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3686ac_clean_files=$ac_clean_files_save
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3688$as_echo_n "checking for suffix of object files... " >&6; }
3689if test "${ac_cv_objext+set}" = set; then :
3690  $as_echo_n "(cached) " >&6
3691else
3692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693/* end confdefs.h.  */
3694
3695int
3696main ()
3697{
3698
3699  ;
3700  return 0;
3701}
3702_ACEOF
3703rm -f conftest.o conftest.obj
3704if { { ac_try="$ac_compile"
3705case "(($ac_try" in
3706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707  *) ac_try_echo=$ac_try;;
3708esac
3709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3710$as_echo "$ac_try_echo"; } >&5
3711  (eval "$ac_compile") 2>&5
3712  ac_status=$?
3713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3714  test $ac_status = 0; }; then :
3715  for ac_file in conftest.o conftest.obj conftest.*; do
3716  test -f "$ac_file" || continue;
3717  case $ac_file in
3718    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3719    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3720       break;;
3721  esac
3722done
3723else
3724  $as_echo "$as_me: failed program was:" >&5
3725sed 's/^/| /' conftest.$ac_ext >&5
3726
3727{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729as_fn_error "cannot compute suffix of object files: cannot compile
3730See \`config.log' for more details." "$LINENO" 5; }
3731fi
3732rm -f conftest.$ac_cv_objext conftest.$ac_ext
3733fi
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3735$as_echo "$ac_cv_objext" >&6; }
3736OBJEXT=$ac_cv_objext
3737ac_objext=$OBJEXT
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3739$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3740if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3741  $as_echo_n "(cached) " >&6
3742else
3743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744/* end confdefs.h.  */
3745
3746int
3747main ()
3748{
3749#ifndef __GNUC__
3750       choke me
3751#endif
3752
3753  ;
3754  return 0;
3755}
3756_ACEOF
3757if ac_fn_c_try_compile "$LINENO"; then :
3758  ac_compiler_gnu=yes
3759else
3760  ac_compiler_gnu=no
3761fi
3762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763ac_cv_c_compiler_gnu=$ac_compiler_gnu
3764
3765fi
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3767$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3768if test $ac_compiler_gnu = yes; then
3769  GCC=yes
3770else
3771  GCC=
3772fi
3773ac_test_CFLAGS=${CFLAGS+set}
3774ac_save_CFLAGS=$CFLAGS
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3776$as_echo_n "checking whether $CC accepts -g... " >&6; }
3777if test "${ac_cv_prog_cc_g+set}" = set; then :
3778  $as_echo_n "(cached) " >&6
3779else
3780  ac_save_c_werror_flag=$ac_c_werror_flag
3781   ac_c_werror_flag=yes
3782   ac_cv_prog_cc_g=no
3783   CFLAGS="-g"
3784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785/* end confdefs.h.  */
3786
3787int
3788main ()
3789{
3790
3791  ;
3792  return 0;
3793}
3794_ACEOF
3795if ac_fn_c_try_compile "$LINENO"; then :
3796  ac_cv_prog_cc_g=yes
3797else
3798  CFLAGS=""
3799      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800/* end confdefs.h.  */
3801
3802int
3803main ()
3804{
3805
3806  ;
3807  return 0;
3808}
3809_ACEOF
3810if ac_fn_c_try_compile "$LINENO"; then :
3811
3812else
3813  ac_c_werror_flag=$ac_save_c_werror_flag
3814	 CFLAGS="-g"
3815	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816/* end confdefs.h.  */
3817
3818int
3819main ()
3820{
3821
3822  ;
3823  return 0;
3824}
3825_ACEOF
3826if ac_fn_c_try_compile "$LINENO"; then :
3827  ac_cv_prog_cc_g=yes
3828fi
3829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830fi
3831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832fi
3833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834   ac_c_werror_flag=$ac_save_c_werror_flag
3835fi
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3837$as_echo "$ac_cv_prog_cc_g" >&6; }
3838if test "$ac_test_CFLAGS" = set; then
3839  CFLAGS=$ac_save_CFLAGS
3840elif test $ac_cv_prog_cc_g = yes; then
3841  if test "$GCC" = yes; then
3842    CFLAGS="-g -O2"
3843  else
3844    CFLAGS="-g"
3845  fi
3846else
3847  if test "$GCC" = yes; then
3848    CFLAGS="-O2"
3849  else
3850    CFLAGS=
3851  fi
3852fi
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3854$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3855if test "${ac_cv_prog_cc_c89+set}" = set; then :
3856  $as_echo_n "(cached) " >&6
3857else
3858  ac_cv_prog_cc_c89=no
3859ac_save_CC=$CC
3860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861/* end confdefs.h.  */
3862#include <stdarg.h>
3863#include <stdio.h>
3864#include <sys/types.h>
3865#include <sys/stat.h>
3866/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3867struct buf { int x; };
3868FILE * (*rcsopen) (struct buf *, struct stat *, int);
3869static char *e (p, i)
3870     char **p;
3871     int i;
3872{
3873  return p[i];
3874}
3875static char *f (char * (*g) (char **, int), char **p, ...)
3876{
3877  char *s;
3878  va_list v;
3879  va_start (v,p);
3880  s = g (p, va_arg (v,int));
3881  va_end (v);
3882  return s;
3883}
3884
3885/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3886   function prototypes and stuff, but not '\xHH' hex character constants.
3887   These don't provoke an error unfortunately, instead are silently treated
3888   as 'x'.  The following induces an error, until -std is added to get
3889   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3890   array size at least.  It's necessary to write '\x00'==0 to get something
3891   that's true only with -std.  */
3892int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3893
3894/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3895   inside strings and character constants.  */
3896#define FOO(x) 'x'
3897int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3898
3899int test (int i, double x);
3900struct s1 {int (*f) (int a);};
3901struct s2 {int (*f) (double a);};
3902int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3903int argc;
3904char **argv;
3905int
3906main ()
3907{
3908return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3909  ;
3910  return 0;
3911}
3912_ACEOF
3913for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3914	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3915do
3916  CC="$ac_save_CC $ac_arg"
3917  if ac_fn_c_try_compile "$LINENO"; then :
3918  ac_cv_prog_cc_c89=$ac_arg
3919fi
3920rm -f core conftest.err conftest.$ac_objext
3921  test "x$ac_cv_prog_cc_c89" != "xno" && break
3922done
3923rm -f conftest.$ac_ext
3924CC=$ac_save_CC
3925
3926fi
3927# AC_CACHE_VAL
3928case "x$ac_cv_prog_cc_c89" in
3929  x)
3930    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3931$as_echo "none needed" >&6; } ;;
3932  xno)
3933    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3934$as_echo "unsupported" >&6; } ;;
3935  *)
3936    CC="$CC $ac_cv_prog_cc_c89"
3937    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3938$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3939esac
3940if test "x$ac_cv_prog_cc_c89" != xno; then :
3941
3942fi
3943
3944ac_ext=c
3945ac_cpp='$CPP $CPPFLAGS'
3946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949DEPDIR="${am__leading_dot}deps"
3950
3951ac_config_commands="$ac_config_commands depfiles"
3952
3953
3954am_make=${MAKE-make}
3955cat > confinc << 'END'
3956am__doit:
3957	@echo this is the am__doit target
3958.PHONY: am__doit
3959END
3960# If we don't find an include directive, just comment out the code.
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3962$as_echo_n "checking for style of include used by $am_make... " >&6; }
3963am__include="#"
3964am__quote=
3965_am_result=none
3966# First try GNU make style include.
3967echo "include confinc" > confmf
3968# Ignore all kinds of additional output from `make'.
3969case `$am_make -s -f confmf 2> /dev/null` in #(
3970*the\ am__doit\ target*)
3971  am__include=include
3972  am__quote=
3973  _am_result=GNU
3974  ;;
3975esac
3976# Now try BSD make style include.
3977if test "$am__include" = "#"; then
3978   echo '.include "confinc"' > confmf
3979   case `$am_make -s -f confmf 2> /dev/null` in #(
3980   *the\ am__doit\ target*)
3981     am__include=.include
3982     am__quote="\""
3983     _am_result=BSD
3984     ;;
3985   esac
3986fi
3987
3988
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3990$as_echo "$_am_result" >&6; }
3991rm -f confinc confmf
3992
3993# Check whether --enable-dependency-tracking was given.
3994if test "${enable_dependency_tracking+set}" = set; then :
3995  enableval=$enable_dependency_tracking;
3996fi
3997
3998if test "x$enable_dependency_tracking" != xno; then
3999  am_depcomp="$ac_aux_dir/depcomp"
4000  AMDEPBACKSLASH='\'
4001fi
4002 if test "x$enable_dependency_tracking" != xno; then
4003  AMDEP_TRUE=
4004  AMDEP_FALSE='#'
4005else
4006  AMDEP_TRUE='#'
4007  AMDEP_FALSE=
4008fi
4009
4010
4011
4012depcc="$CC"   am_compiler_list=
4013
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4015$as_echo_n "checking dependency style of $depcc... " >&6; }
4016if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4017  $as_echo_n "(cached) " >&6
4018else
4019  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4020  # We make a subdir and do the tests there.  Otherwise we can end up
4021  # making bogus files that we don't know about and never remove.  For
4022  # instance it was reported that on HP-UX the gcc test will end up
4023  # making a dummy file named `D' -- because `-MD' means `put the output
4024  # in D'.
4025  mkdir conftest.dir
4026  # Copy depcomp to subdir because otherwise we won't find it if we're
4027  # using a relative directory.
4028  cp "$am_depcomp" conftest.dir
4029  cd conftest.dir
4030  # We will build objects and dependencies in a subdirectory because
4031  # it helps to detect inapplicable dependency modes.  For instance
4032  # both Tru64's cc and ICC support -MD to output dependencies as a
4033  # side effect of compilation, but ICC will put the dependencies in
4034  # the current directory while Tru64 will put them in the object
4035  # directory.
4036  mkdir sub
4037
4038  am_cv_CC_dependencies_compiler_type=none
4039  if test "$am_compiler_list" = ""; then
4040     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4041  fi
4042  am__universal=false
4043  case " $depcc " in #(
4044     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4045     esac
4046
4047  for depmode in $am_compiler_list; do
4048    # Setup a source with many dependencies, because some compilers
4049    # like to wrap large dependency lists on column 80 (with \), and
4050    # we should not choose a depcomp mode which is confused by this.
4051    #
4052    # We need to recreate these files for each test, as the compiler may
4053    # overwrite some of them when testing with obscure command lines.
4054    # This happens at least with the AIX C compiler.
4055    : > sub/conftest.c
4056    for i in 1 2 3 4 5 6; do
4057      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4058      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4059      # Solaris 8's {/usr,}/bin/sh.
4060      touch sub/conftst$i.h
4061    done
4062    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4063
4064    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4065    # mode.  It turns out that the SunPro C++ compiler does not properly
4066    # handle `-M -o', and we need to detect this.  Also, some Intel
4067    # versions had trouble with output in subdirs
4068    am__obj=sub/conftest.${OBJEXT-o}
4069    am__minus_obj="-o $am__obj"
4070    case $depmode in
4071    gcc)
4072      # This depmode causes a compiler race in universal mode.
4073      test "$am__universal" = false || continue
4074      ;;
4075    nosideeffect)
4076      # after this tag, mechanisms are not by side-effect, so they'll
4077      # only be used when explicitly requested
4078      if test "x$enable_dependency_tracking" = xyes; then
4079	continue
4080      else
4081	break
4082      fi
4083      ;;
4084    msvisualcpp | msvcmsys)
4085      # This compiler won't grok `-c -o', but also, the minuso test has
4086      # not run yet.  These depmodes are late enough in the game, and
4087      # so weak that their functioning should not be impacted.
4088      am__obj=conftest.${OBJEXT-o}
4089      am__minus_obj=
4090      ;;
4091    none) break ;;
4092    esac
4093    if depmode=$depmode \
4094       source=sub/conftest.c object=$am__obj \
4095       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4096       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4097         >/dev/null 2>conftest.err &&
4098       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4099       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4100       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4101       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4102      # icc doesn't choke on unknown options, it will just issue warnings
4103      # or remarks (even with -Werror).  So we grep stderr for any message
4104      # that says an option was ignored or not supported.
4105      # When given -MP, icc 7.0 and 7.1 complain thusly:
4106      #   icc: Command line warning: ignoring option '-M'; no argument required
4107      # The diagnosis changed in icc 8.0:
4108      #   icc: Command line remark: option '-MP' not supported
4109      if (grep 'ignoring option' conftest.err ||
4110          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4111        am_cv_CC_dependencies_compiler_type=$depmode
4112        break
4113      fi
4114    fi
4115  done
4116
4117  cd ..
4118  rm -rf conftest.dir
4119else
4120  am_cv_CC_dependencies_compiler_type=none
4121fi
4122
4123fi
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4125$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4126CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4127
4128 if
4129  test "x$enable_dependency_tracking" != xno \
4130  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4131  am__fastdepCC_TRUE=
4132  am__fastdepCC_FALSE='#'
4133else
4134  am__fastdepCC_TRUE='#'
4135  am__fastdepCC_FALSE=
4136fi
4137
4138
4139case `pwd` in
4140  *\ * | *\	*)
4141    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4142$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4143esac
4144
4145
4146
4147macro_version='2.2.6b'
4148macro_revision='1.3017'
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162ltmain="$ac_aux_dir/ltmain.sh"
4163
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4165$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4166if test "${ac_cv_path_SED+set}" = set; then :
4167  $as_echo_n "(cached) " >&6
4168else
4169            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4170     for ac_i in 1 2 3 4 5 6 7; do
4171       ac_script="$ac_script$as_nl$ac_script"
4172     done
4173     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4174     { ac_script=; unset ac_script;}
4175     if test -z "$SED"; then
4176  ac_path_SED_found=false
4177  # Loop through the user's path and test for each of PROGNAME-LIST
4178  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179for as_dir in $PATH
4180do
4181  IFS=$as_save_IFS
4182  test -z "$as_dir" && as_dir=.
4183    for ac_prog in sed gsed; do
4184    for ac_exec_ext in '' $ac_executable_extensions; do
4185      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4186      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4187# Check for GNU ac_path_SED and select it if it is found.
4188  # Check for GNU $ac_path_SED
4189case `"$ac_path_SED" --version 2>&1` in
4190*GNU*)
4191  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4192*)
4193  ac_count=0
4194  $as_echo_n 0123456789 >"conftest.in"
4195  while :
4196  do
4197    cat "conftest.in" "conftest.in" >"conftest.tmp"
4198    mv "conftest.tmp" "conftest.in"
4199    cp "conftest.in" "conftest.nl"
4200    $as_echo '' >> "conftest.nl"
4201    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203    as_fn_arith $ac_count + 1 && ac_count=$as_val
4204    if test $ac_count -gt ${ac_path_SED_max-0}; then
4205      # Best one so far, save it but keep looking for a better one
4206      ac_cv_path_SED="$ac_path_SED"
4207      ac_path_SED_max=$ac_count
4208    fi
4209    # 10*(2^10) chars as input seems more than enough
4210    test $ac_count -gt 10 && break
4211  done
4212  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213esac
4214
4215      $ac_path_SED_found && break 3
4216    done
4217  done
4218  done
4219IFS=$as_save_IFS
4220  if test -z "$ac_cv_path_SED"; then
4221    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4222  fi
4223else
4224  ac_cv_path_SED=$SED
4225fi
4226
4227fi
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4229$as_echo "$ac_cv_path_SED" >&6; }
4230 SED="$ac_cv_path_SED"
4231  rm -f conftest.sed
4232
4233test -z "$SED" && SED=sed
4234Xsed="$SED -e 1s/^X//"
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4247$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4248if test "${ac_cv_path_GREP+set}" = set; then :
4249  $as_echo_n "(cached) " >&6
4250else
4251  if test -z "$GREP"; then
4252  ac_path_GREP_found=false
4253  # Loop through the user's path and test for each of PROGNAME-LIST
4254  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4256do
4257  IFS=$as_save_IFS
4258  test -z "$as_dir" && as_dir=.
4259    for ac_prog in grep ggrep; do
4260    for ac_exec_ext in '' $ac_executable_extensions; do
4261      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4262      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4263# Check for GNU ac_path_GREP and select it if it is found.
4264  # Check for GNU $ac_path_GREP
4265case `"$ac_path_GREP" --version 2>&1` in
4266*GNU*)
4267  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4268*)
4269  ac_count=0
4270  $as_echo_n 0123456789 >"conftest.in"
4271  while :
4272  do
4273    cat "conftest.in" "conftest.in" >"conftest.tmp"
4274    mv "conftest.tmp" "conftest.in"
4275    cp "conftest.in" "conftest.nl"
4276    $as_echo 'GREP' >> "conftest.nl"
4277    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4278    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4279    as_fn_arith $ac_count + 1 && ac_count=$as_val
4280    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4281      # Best one so far, save it but keep looking for a better one
4282      ac_cv_path_GREP="$ac_path_GREP"
4283      ac_path_GREP_max=$ac_count
4284    fi
4285    # 10*(2^10) chars as input seems more than enough
4286    test $ac_count -gt 10 && break
4287  done
4288  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4289esac
4290
4291      $ac_path_GREP_found && break 3
4292    done
4293  done
4294  done
4295IFS=$as_save_IFS
4296  if test -z "$ac_cv_path_GREP"; then
4297    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4298  fi
4299else
4300  ac_cv_path_GREP=$GREP
4301fi
4302
4303fi
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4305$as_echo "$ac_cv_path_GREP" >&6; }
4306 GREP="$ac_cv_path_GREP"
4307
4308
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4310$as_echo_n "checking for egrep... " >&6; }
4311if test "${ac_cv_path_EGREP+set}" = set; then :
4312  $as_echo_n "(cached) " >&6
4313else
4314  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4315   then ac_cv_path_EGREP="$GREP -E"
4316   else
4317     if test -z "$EGREP"; then
4318  ac_path_EGREP_found=false
4319  # Loop through the user's path and test for each of PROGNAME-LIST
4320  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4322do
4323  IFS=$as_save_IFS
4324  test -z "$as_dir" && as_dir=.
4325    for ac_prog in egrep; do
4326    for ac_exec_ext in '' $ac_executable_extensions; do
4327      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4328      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4329# Check for GNU ac_path_EGREP and select it if it is found.
4330  # Check for GNU $ac_path_EGREP
4331case `"$ac_path_EGREP" --version 2>&1` in
4332*GNU*)
4333  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4334*)
4335  ac_count=0
4336  $as_echo_n 0123456789 >"conftest.in"
4337  while :
4338  do
4339    cat "conftest.in" "conftest.in" >"conftest.tmp"
4340    mv "conftest.tmp" "conftest.in"
4341    cp "conftest.in" "conftest.nl"
4342    $as_echo 'EGREP' >> "conftest.nl"
4343    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4344    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4345    as_fn_arith $ac_count + 1 && ac_count=$as_val
4346    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4347      # Best one so far, save it but keep looking for a better one
4348      ac_cv_path_EGREP="$ac_path_EGREP"
4349      ac_path_EGREP_max=$ac_count
4350    fi
4351    # 10*(2^10) chars as input seems more than enough
4352    test $ac_count -gt 10 && break
4353  done
4354  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4355esac
4356
4357      $ac_path_EGREP_found && break 3
4358    done
4359  done
4360  done
4361IFS=$as_save_IFS
4362  if test -z "$ac_cv_path_EGREP"; then
4363    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4364  fi
4365else
4366  ac_cv_path_EGREP=$EGREP
4367fi
4368
4369   fi
4370fi
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4372$as_echo "$ac_cv_path_EGREP" >&6; }
4373 EGREP="$ac_cv_path_EGREP"
4374
4375
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4377$as_echo_n "checking for fgrep... " >&6; }
4378if test "${ac_cv_path_FGREP+set}" = set; then :
4379  $as_echo_n "(cached) " >&6
4380else
4381  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4382   then ac_cv_path_FGREP="$GREP -F"
4383   else
4384     if test -z "$FGREP"; then
4385  ac_path_FGREP_found=false
4386  # Loop through the user's path and test for each of PROGNAME-LIST
4387  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4389do
4390  IFS=$as_save_IFS
4391  test -z "$as_dir" && as_dir=.
4392    for ac_prog in fgrep; do
4393    for ac_exec_ext in '' $ac_executable_extensions; do
4394      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4395      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4396# Check for GNU ac_path_FGREP and select it if it is found.
4397  # Check for GNU $ac_path_FGREP
4398case `"$ac_path_FGREP" --version 2>&1` in
4399*GNU*)
4400  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4401*)
4402  ac_count=0
4403  $as_echo_n 0123456789 >"conftest.in"
4404  while :
4405  do
4406    cat "conftest.in" "conftest.in" >"conftest.tmp"
4407    mv "conftest.tmp" "conftest.in"
4408    cp "conftest.in" "conftest.nl"
4409    $as_echo 'FGREP' >> "conftest.nl"
4410    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4411    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4412    as_fn_arith $ac_count + 1 && ac_count=$as_val
4413    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4414      # Best one so far, save it but keep looking for a better one
4415      ac_cv_path_FGREP="$ac_path_FGREP"
4416      ac_path_FGREP_max=$ac_count
4417    fi
4418    # 10*(2^10) chars as input seems more than enough
4419    test $ac_count -gt 10 && break
4420  done
4421  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4422esac
4423
4424      $ac_path_FGREP_found && break 3
4425    done
4426  done
4427  done
4428IFS=$as_save_IFS
4429  if test -z "$ac_cv_path_FGREP"; then
4430    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4431  fi
4432else
4433  ac_cv_path_FGREP=$FGREP
4434fi
4435
4436   fi
4437fi
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4439$as_echo "$ac_cv_path_FGREP" >&6; }
4440 FGREP="$ac_cv_path_FGREP"
4441
4442
4443test -z "$GREP" && GREP=grep
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463# Check whether --with-gnu-ld was given.
4464if test "${with_gnu_ld+set}" = set; then :
4465  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4466else
4467  with_gnu_ld=no
4468fi
4469
4470ac_prog=ld
4471if test "$GCC" = yes; then
4472  # Check if gcc -print-prog-name=ld gives a path.
4473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4474$as_echo_n "checking for ld used by $CC... " >&6; }
4475  case $host in
4476  *-*-mingw*)
4477    # gcc leaves a trailing carriage return which upsets mingw
4478    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4479  *)
4480    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4481  esac
4482  case $ac_prog in
4483    # Accept absolute paths.
4484    [\\/]* | ?:[\\/]*)
4485      re_direlt='/[^/][^/]*/\.\./'
4486      # Canonicalize the pathname of ld
4487      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4488      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4489	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4490      done
4491      test -z "$LD" && LD="$ac_prog"
4492      ;;
4493  "")
4494    # If it fails, then pretend we aren't using GCC.
4495    ac_prog=ld
4496    ;;
4497  *)
4498    # If it is relative, then search for the first ld in PATH.
4499    with_gnu_ld=unknown
4500    ;;
4501  esac
4502elif test "$with_gnu_ld" = yes; then
4503  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4504$as_echo_n "checking for GNU ld... " >&6; }
4505else
4506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4507$as_echo_n "checking for non-GNU ld... " >&6; }
4508fi
4509if test "${lt_cv_path_LD+set}" = set; then :
4510  $as_echo_n "(cached) " >&6
4511else
4512  if test -z "$LD"; then
4513  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4514  for ac_dir in $PATH; do
4515    IFS="$lt_save_ifs"
4516    test -z "$ac_dir" && ac_dir=.
4517    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4518      lt_cv_path_LD="$ac_dir/$ac_prog"
4519      # Check to see if the program is GNU ld.  I'd rather use --version,
4520      # but apparently some variants of GNU ld only accept -v.
4521      # Break only if it was the GNU/non-GNU ld that we prefer.
4522      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4523      *GNU* | *'with BFD'*)
4524	test "$with_gnu_ld" != no && break
4525	;;
4526      *)
4527	test "$with_gnu_ld" != yes && break
4528	;;
4529      esac
4530    fi
4531  done
4532  IFS="$lt_save_ifs"
4533else
4534  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4535fi
4536fi
4537
4538LD="$lt_cv_path_LD"
4539if test -n "$LD"; then
4540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4541$as_echo "$LD" >&6; }
4542else
4543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544$as_echo "no" >&6; }
4545fi
4546test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4548$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4549if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4550  $as_echo_n "(cached) " >&6
4551else
4552  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4553case `$LD -v 2>&1 </dev/null` in
4554*GNU* | *'with BFD'*)
4555  lt_cv_prog_gnu_ld=yes
4556  ;;
4557*)
4558  lt_cv_prog_gnu_ld=no
4559  ;;
4560esac
4561fi
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4563$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4564with_gnu_ld=$lt_cv_prog_gnu_ld
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4575$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4576if test "${lt_cv_path_NM+set}" = set; then :
4577  $as_echo_n "(cached) " >&6
4578else
4579  if test -n "$NM"; then
4580  # Let the user override the test.
4581  lt_cv_path_NM="$NM"
4582else
4583  lt_nm_to_check="${ac_tool_prefix}nm"
4584  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4585    lt_nm_to_check="$lt_nm_to_check nm"
4586  fi
4587  for lt_tmp_nm in $lt_nm_to_check; do
4588    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4589    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4590      IFS="$lt_save_ifs"
4591      test -z "$ac_dir" && ac_dir=.
4592      tmp_nm="$ac_dir/$lt_tmp_nm"
4593      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4594	# Check to see if the nm accepts a BSD-compat flag.
4595	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4596	#   nm: unknown option "B" ignored
4597	# Tru64's nm complains that /dev/null is an invalid object file
4598	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4599	*/dev/null* | *'Invalid file or object type'*)
4600	  lt_cv_path_NM="$tmp_nm -B"
4601	  break
4602	  ;;
4603	*)
4604	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4605	  */dev/null*)
4606	    lt_cv_path_NM="$tmp_nm -p"
4607	    break
4608	    ;;
4609	  *)
4610	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4611	    continue # so that we can try to find one that supports BSD flags
4612	    ;;
4613	  esac
4614	  ;;
4615	esac
4616      fi
4617    done
4618    IFS="$lt_save_ifs"
4619  done
4620  : ${lt_cv_path_NM=no}
4621fi
4622fi
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4624$as_echo "$lt_cv_path_NM" >&6; }
4625if test "$lt_cv_path_NM" != "no"; then
4626  NM="$lt_cv_path_NM"
4627else
4628  # Didn't find any BSD compatible name lister, look for dumpbin.
4629  if test -n "$ac_tool_prefix"; then
4630  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4631  do
4632    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4633set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635$as_echo_n "checking for $ac_word... " >&6; }
4636if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4637  $as_echo_n "(cached) " >&6
4638else
4639  if test -n "$DUMPBIN"; then
4640  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4641else
4642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643for as_dir in $PATH
4644do
4645  IFS=$as_save_IFS
4646  test -z "$as_dir" && as_dir=.
4647    for ac_exec_ext in '' $ac_executable_extensions; do
4648  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651    break 2
4652  fi
4653done
4654  done
4655IFS=$as_save_IFS
4656
4657fi
4658fi
4659DUMPBIN=$ac_cv_prog_DUMPBIN
4660if test -n "$DUMPBIN"; then
4661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4662$as_echo "$DUMPBIN" >&6; }
4663else
4664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665$as_echo "no" >&6; }
4666fi
4667
4668
4669    test -n "$DUMPBIN" && break
4670  done
4671fi
4672if test -z "$DUMPBIN"; then
4673  ac_ct_DUMPBIN=$DUMPBIN
4674  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4675do
4676  # Extract the first word of "$ac_prog", so it can be a program name with args.
4677set dummy $ac_prog; ac_word=$2
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679$as_echo_n "checking for $ac_word... " >&6; }
4680if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4681  $as_echo_n "(cached) " >&6
4682else
4683  if test -n "$ac_ct_DUMPBIN"; then
4684  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4685else
4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689  IFS=$as_save_IFS
4690  test -z "$as_dir" && as_dir=.
4691    for ac_exec_ext in '' $ac_executable_extensions; do
4692  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695    break 2
4696  fi
4697done
4698  done
4699IFS=$as_save_IFS
4700
4701fi
4702fi
4703ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4704if test -n "$ac_ct_DUMPBIN"; then
4705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4706$as_echo "$ac_ct_DUMPBIN" >&6; }
4707else
4708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709$as_echo "no" >&6; }
4710fi
4711
4712
4713  test -n "$ac_ct_DUMPBIN" && break
4714done
4715
4716  if test "x$ac_ct_DUMPBIN" = x; then
4717    DUMPBIN=":"
4718  else
4719    case $cross_compiling:$ac_tool_warned in
4720yes:)
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4723ac_tool_warned=yes ;;
4724esac
4725    DUMPBIN=$ac_ct_DUMPBIN
4726  fi
4727fi
4728
4729
4730  if test "$DUMPBIN" != ":"; then
4731    NM="$DUMPBIN"
4732  fi
4733fi
4734test -z "$NM" && NM=nm
4735
4736
4737
4738
4739
4740
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4742$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4743if test "${lt_cv_nm_interface+set}" = set; then :
4744  $as_echo_n "(cached) " >&6
4745else
4746  lt_cv_nm_interface="BSD nm"
4747  echo "int some_variable = 0;" > conftest.$ac_ext
4748  (eval echo "\"\$as_me:4748: $ac_compile\"" >&5)
4749  (eval "$ac_compile" 2>conftest.err)
4750  cat conftest.err >&5
4751  (eval echo "\"\$as_me:4751: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4752  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4753  cat conftest.err >&5
4754  (eval echo "\"\$as_me:4754: output\"" >&5)
4755  cat conftest.out >&5
4756  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4757    lt_cv_nm_interface="MS dumpbin"
4758  fi
4759  rm -f conftest*
4760fi
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4762$as_echo "$lt_cv_nm_interface" >&6; }
4763
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4765$as_echo_n "checking whether ln -s works... " >&6; }
4766LN_S=$as_ln_s
4767if test "$LN_S" = "ln -s"; then
4768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4769$as_echo "yes" >&6; }
4770else
4771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4772$as_echo "no, using $LN_S" >&6; }
4773fi
4774
4775# find the maximum length of command line arguments
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4777$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4778if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4779  $as_echo_n "(cached) " >&6
4780else
4781    i=0
4782  teststring="ABCD"
4783
4784  case $build_os in
4785  msdosdjgpp*)
4786    # On DJGPP, this test can blow up pretty badly due to problems in libc
4787    # (any single argument exceeding 2000 bytes causes a buffer overrun
4788    # during glob expansion).  Even if it were fixed, the result of this
4789    # check would be larger than it should be.
4790    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4791    ;;
4792
4793  gnu*)
4794    # Under GNU Hurd, this test is not required because there is
4795    # no limit to the length of command line arguments.
4796    # Libtool will interpret -1 as no limit whatsoever
4797    lt_cv_sys_max_cmd_len=-1;
4798    ;;
4799
4800  cygwin* | mingw* | cegcc*)
4801    # On Win9x/ME, this test blows up -- it succeeds, but takes
4802    # about 5 minutes as the teststring grows exponentially.
4803    # Worse, since 9x/ME are not pre-emptively multitasking,
4804    # you end up with a "frozen" computer, even though with patience
4805    # the test eventually succeeds (with a max line length of 256k).
4806    # Instead, let's just punt: use the minimum linelength reported by
4807    # all of the supported platforms: 8192 (on NT/2K/XP).
4808    lt_cv_sys_max_cmd_len=8192;
4809    ;;
4810
4811  amigaos*)
4812    # On AmigaOS with pdksh, this test takes hours, literally.
4813    # So we just punt and use a minimum line length of 8192.
4814    lt_cv_sys_max_cmd_len=8192;
4815    ;;
4816
4817  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4818    # This has been around since 386BSD, at least.  Likely further.
4819    if test -x /sbin/sysctl; then
4820      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4821    elif test -x /usr/sbin/sysctl; then
4822      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4823    else
4824      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4825    fi
4826    # And add a safety zone
4827    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4828    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4829    ;;
4830
4831  interix*)
4832    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4833    lt_cv_sys_max_cmd_len=196608
4834    ;;
4835
4836  osf*)
4837    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4838    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4839    # nice to cause kernel panics so lets avoid the loop below.
4840    # First set a reasonable default.
4841    lt_cv_sys_max_cmd_len=16384
4842    #
4843    if test -x /sbin/sysconfig; then
4844      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4845        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4846      esac
4847    fi
4848    ;;
4849  sco3.2v5*)
4850    lt_cv_sys_max_cmd_len=102400
4851    ;;
4852  sysv5* | sco5v6* | sysv4.2uw2*)
4853    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4854    if test -n "$kargmax"; then
4855      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4856    else
4857      lt_cv_sys_max_cmd_len=32768
4858    fi
4859    ;;
4860  *)
4861    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4862    if test -n "$lt_cv_sys_max_cmd_len"; then
4863      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4864      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4865    else
4866      # Make teststring a little bigger before we do anything with it.
4867      # a 1K string should be a reasonable start.
4868      for i in 1 2 3 4 5 6 7 8 ; do
4869        teststring=$teststring$teststring
4870      done
4871      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4872      # If test is not a shell built-in, we'll probably end up computing a
4873      # maximum length that is only half of the actual maximum length, but
4874      # we can't tell.
4875      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4876	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4877	      test $i != 17 # 1/2 MB should be enough
4878      do
4879        i=`expr $i + 1`
4880        teststring=$teststring$teststring
4881      done
4882      # Only check the string length outside the loop.
4883      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4884      teststring=
4885      # Add a significant safety factor because C++ compilers can tack on
4886      # massive amounts of additional arguments before passing them to the
4887      # linker.  It appears as though 1/2 is a usable value.
4888      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4889    fi
4890    ;;
4891  esac
4892
4893fi
4894
4895if test -n $lt_cv_sys_max_cmd_len ; then
4896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4897$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4898else
4899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4900$as_echo "none" >&6; }
4901fi
4902max_cmd_len=$lt_cv_sys_max_cmd_len
4903
4904
4905
4906
4907
4908
4909: ${CP="cp -f"}
4910: ${MV="mv -f"}
4911: ${RM="rm -f"}
4912
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4914$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4915# Try some XSI features
4916xsi_shell=no
4917( _lt_dummy="a/b/c"
4918  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4919      = c,a/b,, \
4920    && eval 'test $(( 1 + 1 )) -eq 2 \
4921    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4922  && xsi_shell=yes
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4924$as_echo "$xsi_shell" >&6; }
4925
4926
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4928$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4929lt_shell_append=no
4930( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4931    >/dev/null 2>&1 \
4932  && lt_shell_append=yes
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4934$as_echo "$lt_shell_append" >&6; }
4935
4936
4937if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4938  lt_unset=unset
4939else
4940  lt_unset=false
4941fi
4942
4943
4944
4945
4946
4947# test EBCDIC or ASCII
4948case `echo X|tr X '\101'` in
4949 A) # ASCII based system
4950    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4951  lt_SP2NL='tr \040 \012'
4952  lt_NL2SP='tr \015\012 \040\040'
4953  ;;
4954 *) # EBCDIC based system
4955  lt_SP2NL='tr \100 \n'
4956  lt_NL2SP='tr \r\n \100\100'
4957  ;;
4958esac
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4969$as_echo_n "checking for $LD option to reload object files... " >&6; }
4970if test "${lt_cv_ld_reload_flag+set}" = set; then :
4971  $as_echo_n "(cached) " >&6
4972else
4973  lt_cv_ld_reload_flag='-r'
4974fi
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4976$as_echo "$lt_cv_ld_reload_flag" >&6; }
4977reload_flag=$lt_cv_ld_reload_flag
4978case $reload_flag in
4979"" | " "*) ;;
4980*) reload_flag=" $reload_flag" ;;
4981esac
4982reload_cmds='$LD$reload_flag -o $output$reload_objs'
4983case $host_os in
4984  darwin*)
4985    if test "$GCC" = yes; then
4986      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4987    else
4988      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4989    fi
4990    ;;
4991esac
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001if test -n "$ac_tool_prefix"; then
5002  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5003set dummy ${ac_tool_prefix}objdump; ac_word=$2
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005$as_echo_n "checking for $ac_word... " >&6; }
5006if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5007  $as_echo_n "(cached) " >&6
5008else
5009  if test -n "$OBJDUMP"; then
5010  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5011else
5012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013for as_dir in $PATH
5014do
5015  IFS=$as_save_IFS
5016  test -z "$as_dir" && as_dir=.
5017    for ac_exec_ext in '' $ac_executable_extensions; do
5018  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021    break 2
5022  fi
5023done
5024  done
5025IFS=$as_save_IFS
5026
5027fi
5028fi
5029OBJDUMP=$ac_cv_prog_OBJDUMP
5030if test -n "$OBJDUMP"; then
5031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5032$as_echo "$OBJDUMP" >&6; }
5033else
5034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035$as_echo "no" >&6; }
5036fi
5037
5038
5039fi
5040if test -z "$ac_cv_prog_OBJDUMP"; then
5041  ac_ct_OBJDUMP=$OBJDUMP
5042  # Extract the first word of "objdump", so it can be a program name with args.
5043set dummy objdump; ac_word=$2
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045$as_echo_n "checking for $ac_word... " >&6; }
5046if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5047  $as_echo_n "(cached) " >&6
5048else
5049  if test -n "$ac_ct_OBJDUMP"; then
5050  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5051else
5052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053for as_dir in $PATH
5054do
5055  IFS=$as_save_IFS
5056  test -z "$as_dir" && as_dir=.
5057    for ac_exec_ext in '' $ac_executable_extensions; do
5058  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061    break 2
5062  fi
5063done
5064  done
5065IFS=$as_save_IFS
5066
5067fi
5068fi
5069ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5070if test -n "$ac_ct_OBJDUMP"; then
5071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5072$as_echo "$ac_ct_OBJDUMP" >&6; }
5073else
5074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075$as_echo "no" >&6; }
5076fi
5077
5078  if test "x$ac_ct_OBJDUMP" = x; then
5079    OBJDUMP="false"
5080  else
5081    case $cross_compiling:$ac_tool_warned in
5082yes:)
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5085ac_tool_warned=yes ;;
5086esac
5087    OBJDUMP=$ac_ct_OBJDUMP
5088  fi
5089else
5090  OBJDUMP="$ac_cv_prog_OBJDUMP"
5091fi
5092
5093test -z "$OBJDUMP" && OBJDUMP=objdump
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5104$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5105if test "${lt_cv_deplibs_check_method+set}" = set; then :
5106  $as_echo_n "(cached) " >&6
5107else
5108  lt_cv_file_magic_cmd='$MAGIC_CMD'
5109lt_cv_file_magic_test_file=
5110lt_cv_deplibs_check_method='unknown'
5111# Need to set the preceding variable on all platforms that support
5112# interlibrary dependencies.
5113# 'none' -- dependencies not supported.
5114# `unknown' -- same as none, but documents that we really don't know.
5115# 'pass_all' -- all dependencies passed with no checks.
5116# 'test_compile' -- check by making test program.
5117# 'file_magic [[regex]]' -- check by looking for files in library path
5118# which responds to the $file_magic_cmd with a given extended regex.
5119# If you have `file' or equivalent on your system and you're not sure
5120# whether `pass_all' will *always* work, you probably want this one.
5121
5122case $host_os in
5123aix[4-9]*)
5124  lt_cv_deplibs_check_method=pass_all
5125  ;;
5126
5127beos*)
5128  lt_cv_deplibs_check_method=pass_all
5129  ;;
5130
5131bsdi[45]*)
5132  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5133  lt_cv_file_magic_cmd='/usr/bin/file -L'
5134  lt_cv_file_magic_test_file=/shlib/libc.so
5135  ;;
5136
5137cygwin*)
5138  # func_win32_libid is a shell function defined in ltmain.sh
5139  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5140  lt_cv_file_magic_cmd='func_win32_libid'
5141  ;;
5142
5143mingw* | pw32*)
5144  # Base MSYS/MinGW do not provide the 'file' command needed by
5145  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5146  # unless we find 'file', for example because we are cross-compiling.
5147  if ( file / ) >/dev/null 2>&1; then
5148    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5149    lt_cv_file_magic_cmd='func_win32_libid'
5150  else
5151    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5152    lt_cv_file_magic_cmd='$OBJDUMP -f'
5153  fi
5154  ;;
5155
5156cegcc)
5157  # use the weaker test based on 'objdump'. See mingw*.
5158  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5159  lt_cv_file_magic_cmd='$OBJDUMP -f'
5160  ;;
5161
5162darwin* | rhapsody*)
5163  lt_cv_deplibs_check_method=pass_all
5164  ;;
5165
5166freebsd* | dragonfly*)
5167  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5168    case $host_cpu in
5169    i*86 )
5170      # Not sure whether the presence of OpenBSD here was a mistake.
5171      # Let's accept both of them until this is cleared up.
5172      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5173      lt_cv_file_magic_cmd=/usr/bin/file
5174      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5175      ;;
5176    esac
5177  else
5178    lt_cv_deplibs_check_method=pass_all
5179  fi
5180  ;;
5181
5182gnu*)
5183  lt_cv_deplibs_check_method=pass_all
5184  ;;
5185
5186hpux10.20* | hpux11*)
5187  lt_cv_file_magic_cmd=/usr/bin/file
5188  case $host_cpu in
5189  ia64*)
5190    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5191    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5192    ;;
5193  hppa*64*)
5194    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]'
5195    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5196    ;;
5197  *)
5198    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5199    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5200    ;;
5201  esac
5202  ;;
5203
5204interix[3-9]*)
5205  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5206  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5207  ;;
5208
5209irix5* | irix6* | nonstopux*)
5210  case $LD in
5211  *-32|*"-32 ") libmagic=32-bit;;
5212  *-n32|*"-n32 ") libmagic=N32;;
5213  *-64|*"-64 ") libmagic=64-bit;;
5214  *) libmagic=never-match;;
5215  esac
5216  lt_cv_deplibs_check_method=pass_all
5217  ;;
5218
5219# This must be Linux ELF.
5220linux* | k*bsd*-gnu)
5221  lt_cv_deplibs_check_method=pass_all
5222  ;;
5223
5224netbsd*)
5225  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5226    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5227  else
5228    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5229  fi
5230  ;;
5231
5232newos6*)
5233  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5234  lt_cv_file_magic_cmd=/usr/bin/file
5235  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5236  ;;
5237
5238*nto* | *qnx*)
5239  lt_cv_deplibs_check_method=pass_all
5240  ;;
5241
5242openbsd*)
5243  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5244    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5245  else
5246    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5247  fi
5248  ;;
5249
5250osf3* | osf4* | osf5*)
5251  lt_cv_deplibs_check_method=pass_all
5252  ;;
5253
5254rdos*)
5255  lt_cv_deplibs_check_method=pass_all
5256  ;;
5257
5258solaris*)
5259  lt_cv_deplibs_check_method=pass_all
5260  ;;
5261
5262sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5263  lt_cv_deplibs_check_method=pass_all
5264  ;;
5265
5266sysv4 | sysv4.3*)
5267  case $host_vendor in
5268  motorola)
5269    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]'
5270    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5271    ;;
5272  ncr)
5273    lt_cv_deplibs_check_method=pass_all
5274    ;;
5275  sequent)
5276    lt_cv_file_magic_cmd='/bin/file'
5277    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5278    ;;
5279  sni)
5280    lt_cv_file_magic_cmd='/bin/file'
5281    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5282    lt_cv_file_magic_test_file=/lib/libc.so
5283    ;;
5284  siemens)
5285    lt_cv_deplibs_check_method=pass_all
5286    ;;
5287  pc)
5288    lt_cv_deplibs_check_method=pass_all
5289    ;;
5290  esac
5291  ;;
5292
5293tpf*)
5294  lt_cv_deplibs_check_method=pass_all
5295  ;;
5296esac
5297
5298fi
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5300$as_echo "$lt_cv_deplibs_check_method" >&6; }
5301file_magic_cmd=$lt_cv_file_magic_cmd
5302deplibs_check_method=$lt_cv_deplibs_check_method
5303test -z "$deplibs_check_method" && deplibs_check_method=unknown
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316if test -n "$ac_tool_prefix"; then
5317  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5318set dummy ${ac_tool_prefix}ar; ac_word=$2
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320$as_echo_n "checking for $ac_word... " >&6; }
5321if test "${ac_cv_prog_AR+set}" = set; then :
5322  $as_echo_n "(cached) " >&6
5323else
5324  if test -n "$AR"; then
5325  ac_cv_prog_AR="$AR" # Let the user override the test.
5326else
5327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328for as_dir in $PATH
5329do
5330  IFS=$as_save_IFS
5331  test -z "$as_dir" && as_dir=.
5332    for ac_exec_ext in '' $ac_executable_extensions; do
5333  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334    ac_cv_prog_AR="${ac_tool_prefix}ar"
5335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336    break 2
5337  fi
5338done
5339  done
5340IFS=$as_save_IFS
5341
5342fi
5343fi
5344AR=$ac_cv_prog_AR
5345if test -n "$AR"; then
5346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5347$as_echo "$AR" >&6; }
5348else
5349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350$as_echo "no" >&6; }
5351fi
5352
5353
5354fi
5355if test -z "$ac_cv_prog_AR"; then
5356  ac_ct_AR=$AR
5357  # Extract the first word of "ar", so it can be a program name with args.
5358set dummy ar; ac_word=$2
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360$as_echo_n "checking for $ac_word... " >&6; }
5361if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5362  $as_echo_n "(cached) " >&6
5363else
5364  if test -n "$ac_ct_AR"; then
5365  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5366else
5367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368for as_dir in $PATH
5369do
5370  IFS=$as_save_IFS
5371  test -z "$as_dir" && as_dir=.
5372    for ac_exec_ext in '' $ac_executable_extensions; do
5373  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374    ac_cv_prog_ac_ct_AR="ar"
5375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376    break 2
5377  fi
5378done
5379  done
5380IFS=$as_save_IFS
5381
5382fi
5383fi
5384ac_ct_AR=$ac_cv_prog_ac_ct_AR
5385if test -n "$ac_ct_AR"; then
5386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5387$as_echo "$ac_ct_AR" >&6; }
5388else
5389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390$as_echo "no" >&6; }
5391fi
5392
5393  if test "x$ac_ct_AR" = x; then
5394    AR="false"
5395  else
5396    case $cross_compiling:$ac_tool_warned in
5397yes:)
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5400ac_tool_warned=yes ;;
5401esac
5402    AR=$ac_ct_AR
5403  fi
5404else
5405  AR="$ac_cv_prog_AR"
5406fi
5407
5408test -z "$AR" && AR=ar
5409test -z "$AR_FLAGS" && AR_FLAGS=cru
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421if test -n "$ac_tool_prefix"; then
5422  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5423set dummy ${ac_tool_prefix}strip; ac_word=$2
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425$as_echo_n "checking for $ac_word... " >&6; }
5426if test "${ac_cv_prog_STRIP+set}" = set; then :
5427  $as_echo_n "(cached) " >&6
5428else
5429  if test -n "$STRIP"; then
5430  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5431else
5432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433for as_dir in $PATH
5434do
5435  IFS=$as_save_IFS
5436  test -z "$as_dir" && as_dir=.
5437    for ac_exec_ext in '' $ac_executable_extensions; do
5438  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5439    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441    break 2
5442  fi
5443done
5444  done
5445IFS=$as_save_IFS
5446
5447fi
5448fi
5449STRIP=$ac_cv_prog_STRIP
5450if test -n "$STRIP"; then
5451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5452$as_echo "$STRIP" >&6; }
5453else
5454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455$as_echo "no" >&6; }
5456fi
5457
5458
5459fi
5460if test -z "$ac_cv_prog_STRIP"; then
5461  ac_ct_STRIP=$STRIP
5462  # Extract the first word of "strip", so it can be a program name with args.
5463set dummy strip; ac_word=$2
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465$as_echo_n "checking for $ac_word... " >&6; }
5466if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469  if test -n "$ac_ct_STRIP"; then
5470  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5471else
5472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH
5474do
5475  IFS=$as_save_IFS
5476  test -z "$as_dir" && as_dir=.
5477    for ac_exec_ext in '' $ac_executable_extensions; do
5478  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5479    ac_cv_prog_ac_ct_STRIP="strip"
5480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481    break 2
5482  fi
5483done
5484  done
5485IFS=$as_save_IFS
5486
5487fi
5488fi
5489ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5490if test -n "$ac_ct_STRIP"; then
5491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5492$as_echo "$ac_ct_STRIP" >&6; }
5493else
5494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495$as_echo "no" >&6; }
5496fi
5497
5498  if test "x$ac_ct_STRIP" = x; then
5499    STRIP=":"
5500  else
5501    case $cross_compiling:$ac_tool_warned in
5502yes:)
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5505ac_tool_warned=yes ;;
5506esac
5507    STRIP=$ac_ct_STRIP
5508  fi
5509else
5510  STRIP="$ac_cv_prog_STRIP"
5511fi
5512
5513test -z "$STRIP" && STRIP=:
5514
5515
5516
5517
5518
5519
5520if test -n "$ac_tool_prefix"; then
5521  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5522set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524$as_echo_n "checking for $ac_word... " >&6; }
5525if test "${ac_cv_prog_RANLIB+set}" = set; then :
5526  $as_echo_n "(cached) " >&6
5527else
5528  if test -n "$RANLIB"; then
5529  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5530else
5531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532for as_dir in $PATH
5533do
5534  IFS=$as_save_IFS
5535  test -z "$as_dir" && as_dir=.
5536    for ac_exec_ext in '' $ac_executable_extensions; do
5537  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5538    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540    break 2
5541  fi
5542done
5543  done
5544IFS=$as_save_IFS
5545
5546fi
5547fi
5548RANLIB=$ac_cv_prog_RANLIB
5549if test -n "$RANLIB"; then
5550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5551$as_echo "$RANLIB" >&6; }
5552else
5553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554$as_echo "no" >&6; }
5555fi
5556
5557
5558fi
5559if test -z "$ac_cv_prog_RANLIB"; then
5560  ac_ct_RANLIB=$RANLIB
5561  # Extract the first word of "ranlib", so it can be a program name with args.
5562set dummy ranlib; ac_word=$2
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564$as_echo_n "checking for $ac_word... " >&6; }
5565if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5566  $as_echo_n "(cached) " >&6
5567else
5568  if test -n "$ac_ct_RANLIB"; then
5569  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5570else
5571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572for as_dir in $PATH
5573do
5574  IFS=$as_save_IFS
5575  test -z "$as_dir" && as_dir=.
5576    for ac_exec_ext in '' $ac_executable_extensions; do
5577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578    ac_cv_prog_ac_ct_RANLIB="ranlib"
5579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580    break 2
5581  fi
5582done
5583  done
5584IFS=$as_save_IFS
5585
5586fi
5587fi
5588ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5589if test -n "$ac_ct_RANLIB"; then
5590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5591$as_echo "$ac_ct_RANLIB" >&6; }
5592else
5593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594$as_echo "no" >&6; }
5595fi
5596
5597  if test "x$ac_ct_RANLIB" = x; then
5598    RANLIB=":"
5599  else
5600    case $cross_compiling:$ac_tool_warned in
5601yes:)
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5604ac_tool_warned=yes ;;
5605esac
5606    RANLIB=$ac_ct_RANLIB
5607  fi
5608else
5609  RANLIB="$ac_cv_prog_RANLIB"
5610fi
5611
5612test -z "$RANLIB" && RANLIB=:
5613
5614
5615
5616
5617
5618
5619# Determine commands to create old-style static archives.
5620old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5621old_postinstall_cmds='chmod 644 $oldlib'
5622old_postuninstall_cmds=
5623
5624if test -n "$RANLIB"; then
5625  case $host_os in
5626  openbsd*)
5627    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5628    ;;
5629  *)
5630    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5631    ;;
5632  esac
5633  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5634fi
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669# If no C compiler was specified, use CC.
5670LTCC=${LTCC-"$CC"}
5671
5672# If no C compiler flags were specified, use CFLAGS.
5673LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5674
5675# Allow CC to be a program name with arguments.
5676compiler=$CC
5677
5678
5679# Check for command to grab the raw symbol name followed by C symbol from nm.
5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5681$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5682if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5683  $as_echo_n "(cached) " >&6
5684else
5685
5686# These are sane defaults that work on at least a few old systems.
5687# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5688
5689# Character class describing NM global symbol codes.
5690symcode='[BCDEGRST]'
5691
5692# Regexp to match symbols that can be accessed directly from C.
5693sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5694
5695# Define system-specific variables.
5696case $host_os in
5697aix*)
5698  symcode='[BCDT]'
5699  ;;
5700cygwin* | mingw* | pw32* | cegcc*)
5701  symcode='[ABCDGISTW]'
5702  ;;
5703hpux*)
5704  if test "$host_cpu" = ia64; then
5705    symcode='[ABCDEGRST]'
5706  fi
5707  ;;
5708irix* | nonstopux*)
5709  symcode='[BCDEGRST]'
5710  ;;
5711osf*)
5712  symcode='[BCDEGQRST]'
5713  ;;
5714solaris*)
5715  symcode='[BDRT]'
5716  ;;
5717sco3.2v5*)
5718  symcode='[DT]'
5719  ;;
5720sysv4.2uw2*)
5721  symcode='[DT]'
5722  ;;
5723sysv5* | sco5v6* | unixware* | OpenUNIX*)
5724  symcode='[ABDT]'
5725  ;;
5726sysv4)
5727  symcode='[DFNSTU]'
5728  ;;
5729esac
5730
5731# If we're using GNU nm, then use its standard symbol codes.
5732case `$NM -V 2>&1` in
5733*GNU* | *'with BFD'*)
5734  symcode='[ABCDGIRSTW]' ;;
5735esac
5736
5737# Transform an extracted symbol line into a proper C declaration.
5738# Some systems (esp. on ia64) link data and code symbols differently,
5739# so use this general approach.
5740lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5741
5742# Transform an extracted symbol line into symbol name and symbol address
5743lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5744lt_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'"
5745
5746# Handle CRLF in mingw tool chain
5747opt_cr=
5748case $build_os in
5749mingw*)
5750  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5751  ;;
5752esac
5753
5754# Try without a prefix underscore, then with it.
5755for ac_symprfx in "" "_"; do
5756
5757  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5758  symxfrm="\\1 $ac_symprfx\\2 \\2"
5759
5760  # Write the raw and C identifiers.
5761  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5762    # Fake it for dumpbin and say T for any non-static function
5763    # and D for any global variable.
5764    # Also find C++ and __fastcall symbols from MSVC++,
5765    # which start with @ or ?.
5766    lt_cv_sys_global_symbol_pipe="$AWK '"\
5767"     {last_section=section; section=\$ 3};"\
5768"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5769"     \$ 0!~/External *\|/{next};"\
5770"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5771"     {if(hide[section]) next};"\
5772"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5773"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5774"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5775"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5776"     ' prfx=^$ac_symprfx"
5777  else
5778    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5779  fi
5780
5781  # Check to see that the pipe works correctly.
5782  pipe_works=no
5783
5784  rm -f conftest*
5785  cat > conftest.$ac_ext <<_LT_EOF
5786#ifdef __cplusplus
5787extern "C" {
5788#endif
5789char nm_test_var;
5790void nm_test_func(void);
5791void nm_test_func(void){}
5792#ifdef __cplusplus
5793}
5794#endif
5795int main(){nm_test_var='a';nm_test_func();return(0);}
5796_LT_EOF
5797
5798  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5799  (eval $ac_compile) 2>&5
5800  ac_status=$?
5801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5802  test $ac_status = 0; }; then
5803    # Now try to grab the symbols.
5804    nlist=conftest.nm
5805    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5806  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5807  ac_status=$?
5808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5809  test $ac_status = 0; } && test -s "$nlist"; then
5810      # Try sorting and uniquifying the output.
5811      if sort "$nlist" | uniq > "$nlist"T; then
5812	mv -f "$nlist"T "$nlist"
5813      else
5814	rm -f "$nlist"T
5815      fi
5816
5817      # Make sure that we snagged all the symbols we need.
5818      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5819	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5820	  cat <<_LT_EOF > conftest.$ac_ext
5821#ifdef __cplusplus
5822extern "C" {
5823#endif
5824
5825_LT_EOF
5826	  # Now generate the symbol file.
5827	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5828
5829	  cat <<_LT_EOF >> conftest.$ac_ext
5830
5831/* The mapping between symbol names and symbols.  */
5832const struct {
5833  const char *name;
5834  void       *address;
5835}
5836lt__PROGRAM__LTX_preloaded_symbols[] =
5837{
5838  { "@PROGRAM@", (void *) 0 },
5839_LT_EOF
5840	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5841	  cat <<\_LT_EOF >> conftest.$ac_ext
5842  {0, (void *) 0}
5843};
5844
5845/* This works around a problem in FreeBSD linker */
5846#ifdef FREEBSD_WORKAROUND
5847static const void *lt_preloaded_setup() {
5848  return lt__PROGRAM__LTX_preloaded_symbols;
5849}
5850#endif
5851
5852#ifdef __cplusplus
5853}
5854#endif
5855_LT_EOF
5856	  # Now try linking the two files.
5857	  mv conftest.$ac_objext conftstm.$ac_objext
5858	  lt_save_LIBS="$LIBS"
5859	  lt_save_CFLAGS="$CFLAGS"
5860	  LIBS="conftstm.$ac_objext"
5861	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5862	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5863  (eval $ac_link) 2>&5
5864  ac_status=$?
5865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5866  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5867	    pipe_works=yes
5868	  fi
5869	  LIBS="$lt_save_LIBS"
5870	  CFLAGS="$lt_save_CFLAGS"
5871	else
5872	  echo "cannot find nm_test_func in $nlist" >&5
5873	fi
5874      else
5875	echo "cannot find nm_test_var in $nlist" >&5
5876      fi
5877    else
5878      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5879    fi
5880  else
5881    echo "$progname: failed program was:" >&5
5882    cat conftest.$ac_ext >&5
5883  fi
5884  rm -rf conftest* conftst*
5885
5886  # Do not use the global_symbol_pipe unless it works.
5887  if test "$pipe_works" = yes; then
5888    break
5889  else
5890    lt_cv_sys_global_symbol_pipe=
5891  fi
5892done
5893
5894fi
5895
5896if test -z "$lt_cv_sys_global_symbol_pipe"; then
5897  lt_cv_sys_global_symbol_to_cdecl=
5898fi
5899if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5901$as_echo "failed" >&6; }
5902else
5903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5904$as_echo "ok" >&6; }
5905fi
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929# Check whether --enable-libtool-lock was given.
5930if test "${enable_libtool_lock+set}" = set; then :
5931  enableval=$enable_libtool_lock;
5932fi
5933
5934test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5935
5936# Some flags need to be propagated to the compiler or linker for good
5937# libtool support.
5938case $host in
5939ia64-*-hpux*)
5940  # Find out which ABI we are using.
5941  echo 'int i;' > conftest.$ac_ext
5942  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5943  (eval $ac_compile) 2>&5
5944  ac_status=$?
5945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5946  test $ac_status = 0; }; then
5947    case `/usr/bin/file conftest.$ac_objext` in
5948      *ELF-32*)
5949	HPUX_IA64_MODE="32"
5950	;;
5951      *ELF-64*)
5952	HPUX_IA64_MODE="64"
5953	;;
5954    esac
5955  fi
5956  rm -rf conftest*
5957  ;;
5958*-*-irix6*)
5959  # Find out which ABI we are using.
5960  echo '#line 5960 "configure"' > conftest.$ac_ext
5961  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5962  (eval $ac_compile) 2>&5
5963  ac_status=$?
5964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5965  test $ac_status = 0; }; then
5966    if test "$lt_cv_prog_gnu_ld" = yes; then
5967      case `/usr/bin/file conftest.$ac_objext` in
5968	*32-bit*)
5969	  LD="${LD-ld} -melf32bsmip"
5970	  ;;
5971	*N32*)
5972	  LD="${LD-ld} -melf32bmipn32"
5973	  ;;
5974	*64-bit*)
5975	  LD="${LD-ld} -melf64bmip"
5976	;;
5977      esac
5978    else
5979      case `/usr/bin/file conftest.$ac_objext` in
5980	*32-bit*)
5981	  LD="${LD-ld} -32"
5982	  ;;
5983	*N32*)
5984	  LD="${LD-ld} -n32"
5985	  ;;
5986	*64-bit*)
5987	  LD="${LD-ld} -64"
5988	  ;;
5989      esac
5990    fi
5991  fi
5992  rm -rf conftest*
5993  ;;
5994
5995x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5996s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5997  # Find out which ABI we are using.
5998  echo 'int i;' > conftest.$ac_ext
5999  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6000  (eval $ac_compile) 2>&5
6001  ac_status=$?
6002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6003  test $ac_status = 0; }; then
6004    case `/usr/bin/file conftest.o` in
6005      *32-bit*)
6006	case $host in
6007	  x86_64-*kfreebsd*-gnu)
6008	    LD="${LD-ld} -m elf_i386_fbsd"
6009	    ;;
6010	  x86_64-*linux*)
6011	    LD="${LD-ld} -m elf_i386"
6012	    ;;
6013	  ppc64-*linux*|powerpc64-*linux*)
6014	    LD="${LD-ld} -m elf32ppclinux"
6015	    ;;
6016	  s390x-*linux*)
6017	    LD="${LD-ld} -m elf_s390"
6018	    ;;
6019	  sparc64-*linux*)
6020	    LD="${LD-ld} -m elf32_sparc"
6021	    ;;
6022	esac
6023	;;
6024      *64-bit*)
6025	case $host in
6026	  x86_64-*kfreebsd*-gnu)
6027	    LD="${LD-ld} -m elf_x86_64_fbsd"
6028	    ;;
6029	  x86_64-*linux*)
6030	    LD="${LD-ld} -m elf_x86_64"
6031	    ;;
6032	  ppc*-*linux*|powerpc*-*linux*)
6033	    LD="${LD-ld} -m elf64ppc"
6034	    ;;
6035	  s390*-*linux*|s390*-*tpf*)
6036	    LD="${LD-ld} -m elf64_s390"
6037	    ;;
6038	  sparc*-*linux*)
6039	    LD="${LD-ld} -m elf64_sparc"
6040	    ;;
6041	esac
6042	;;
6043    esac
6044  fi
6045  rm -rf conftest*
6046  ;;
6047
6048*-*-sco3.2v5*)
6049  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6050  SAVE_CFLAGS="$CFLAGS"
6051  CFLAGS="$CFLAGS -belf"
6052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6053$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6054if test "${lt_cv_cc_needs_belf+set}" = set; then :
6055  $as_echo_n "(cached) " >&6
6056else
6057  ac_ext=c
6058ac_cpp='$CPP $CPPFLAGS'
6059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6061ac_compiler_gnu=$ac_cv_c_compiler_gnu
6062
6063     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064/* end confdefs.h.  */
6065
6066int
6067main ()
6068{
6069
6070  ;
6071  return 0;
6072}
6073_ACEOF
6074if ac_fn_c_try_link "$LINENO"; then :
6075  lt_cv_cc_needs_belf=yes
6076else
6077  lt_cv_cc_needs_belf=no
6078fi
6079rm -f core conftest.err conftest.$ac_objext \
6080    conftest$ac_exeext conftest.$ac_ext
6081     ac_ext=c
6082ac_cpp='$CPP $CPPFLAGS'
6083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6085ac_compiler_gnu=$ac_cv_c_compiler_gnu
6086
6087fi
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6089$as_echo "$lt_cv_cc_needs_belf" >&6; }
6090  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6091    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6092    CFLAGS="$SAVE_CFLAGS"
6093  fi
6094  ;;
6095sparc*-*solaris*)
6096  # Find out which ABI we are using.
6097  echo 'int i;' > conftest.$ac_ext
6098  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6099  (eval $ac_compile) 2>&5
6100  ac_status=$?
6101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6102  test $ac_status = 0; }; then
6103    case `/usr/bin/file conftest.o` in
6104    *64-bit*)
6105      case $lt_cv_prog_gnu_ld in
6106      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6107      *)
6108	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6109	  LD="${LD-ld} -64"
6110	fi
6111	;;
6112      esac
6113      ;;
6114    esac
6115  fi
6116  rm -rf conftest*
6117  ;;
6118esac
6119
6120need_locks="$enable_libtool_lock"
6121
6122
6123  case $host_os in
6124    rhapsody* | darwin*)
6125    if test -n "$ac_tool_prefix"; then
6126  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6127set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129$as_echo_n "checking for $ac_word... " >&6; }
6130if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6131  $as_echo_n "(cached) " >&6
6132else
6133  if test -n "$DSYMUTIL"; then
6134  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6135else
6136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137for as_dir in $PATH
6138do
6139  IFS=$as_save_IFS
6140  test -z "$as_dir" && as_dir=.
6141    for ac_exec_ext in '' $ac_executable_extensions; do
6142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6143    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145    break 2
6146  fi
6147done
6148  done
6149IFS=$as_save_IFS
6150
6151fi
6152fi
6153DSYMUTIL=$ac_cv_prog_DSYMUTIL
6154if test -n "$DSYMUTIL"; then
6155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6156$as_echo "$DSYMUTIL" >&6; }
6157else
6158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159$as_echo "no" >&6; }
6160fi
6161
6162
6163fi
6164if test -z "$ac_cv_prog_DSYMUTIL"; then
6165  ac_ct_DSYMUTIL=$DSYMUTIL
6166  # Extract the first word of "dsymutil", so it can be a program name with args.
6167set dummy dsymutil; ac_word=$2
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169$as_echo_n "checking for $ac_word... " >&6; }
6170if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6171  $as_echo_n "(cached) " >&6
6172else
6173  if test -n "$ac_ct_DSYMUTIL"; then
6174  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6175else
6176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177for as_dir in $PATH
6178do
6179  IFS=$as_save_IFS
6180  test -z "$as_dir" && as_dir=.
6181    for ac_exec_ext in '' $ac_executable_extensions; do
6182  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185    break 2
6186  fi
6187done
6188  done
6189IFS=$as_save_IFS
6190
6191fi
6192fi
6193ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6194if test -n "$ac_ct_DSYMUTIL"; then
6195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6196$as_echo "$ac_ct_DSYMUTIL" >&6; }
6197else
6198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199$as_echo "no" >&6; }
6200fi
6201
6202  if test "x$ac_ct_DSYMUTIL" = x; then
6203    DSYMUTIL=":"
6204  else
6205    case $cross_compiling:$ac_tool_warned in
6206yes:)
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6209ac_tool_warned=yes ;;
6210esac
6211    DSYMUTIL=$ac_ct_DSYMUTIL
6212  fi
6213else
6214  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6215fi
6216
6217    if test -n "$ac_tool_prefix"; then
6218  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6219set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221$as_echo_n "checking for $ac_word... " >&6; }
6222if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6223  $as_echo_n "(cached) " >&6
6224else
6225  if test -n "$NMEDIT"; then
6226  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6227else
6228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229for as_dir in $PATH
6230do
6231  IFS=$as_save_IFS
6232  test -z "$as_dir" && as_dir=.
6233    for ac_exec_ext in '' $ac_executable_extensions; do
6234  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6235    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237    break 2
6238  fi
6239done
6240  done
6241IFS=$as_save_IFS
6242
6243fi
6244fi
6245NMEDIT=$ac_cv_prog_NMEDIT
6246if test -n "$NMEDIT"; then
6247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6248$as_echo "$NMEDIT" >&6; }
6249else
6250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6251$as_echo "no" >&6; }
6252fi
6253
6254
6255fi
6256if test -z "$ac_cv_prog_NMEDIT"; then
6257  ac_ct_NMEDIT=$NMEDIT
6258  # Extract the first word of "nmedit", so it can be a program name with args.
6259set dummy nmedit; ac_word=$2
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6261$as_echo_n "checking for $ac_word... " >&6; }
6262if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6263  $as_echo_n "(cached) " >&6
6264else
6265  if test -n "$ac_ct_NMEDIT"; then
6266  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6267else
6268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269for as_dir in $PATH
6270do
6271  IFS=$as_save_IFS
6272  test -z "$as_dir" && as_dir=.
6273    for ac_exec_ext in '' $ac_executable_extensions; do
6274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6275    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277    break 2
6278  fi
6279done
6280  done
6281IFS=$as_save_IFS
6282
6283fi
6284fi
6285ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6286if test -n "$ac_ct_NMEDIT"; then
6287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6288$as_echo "$ac_ct_NMEDIT" >&6; }
6289else
6290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291$as_echo "no" >&6; }
6292fi
6293
6294  if test "x$ac_ct_NMEDIT" = x; then
6295    NMEDIT=":"
6296  else
6297    case $cross_compiling:$ac_tool_warned in
6298yes:)
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6301ac_tool_warned=yes ;;
6302esac
6303    NMEDIT=$ac_ct_NMEDIT
6304  fi
6305else
6306  NMEDIT="$ac_cv_prog_NMEDIT"
6307fi
6308
6309    if test -n "$ac_tool_prefix"; then
6310  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6311set dummy ${ac_tool_prefix}lipo; ac_word=$2
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313$as_echo_n "checking for $ac_word... " >&6; }
6314if test "${ac_cv_prog_LIPO+set}" = set; then :
6315  $as_echo_n "(cached) " >&6
6316else
6317  if test -n "$LIPO"; then
6318  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6319else
6320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321for as_dir in $PATH
6322do
6323  IFS=$as_save_IFS
6324  test -z "$as_dir" && as_dir=.
6325    for ac_exec_ext in '' $ac_executable_extensions; do
6326  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6327    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329    break 2
6330  fi
6331done
6332  done
6333IFS=$as_save_IFS
6334
6335fi
6336fi
6337LIPO=$ac_cv_prog_LIPO
6338if test -n "$LIPO"; then
6339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6340$as_echo "$LIPO" >&6; }
6341else
6342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343$as_echo "no" >&6; }
6344fi
6345
6346
6347fi
6348if test -z "$ac_cv_prog_LIPO"; then
6349  ac_ct_LIPO=$LIPO
6350  # Extract the first word of "lipo", so it can be a program name with args.
6351set dummy lipo; ac_word=$2
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353$as_echo_n "checking for $ac_word... " >&6; }
6354if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6355  $as_echo_n "(cached) " >&6
6356else
6357  if test -n "$ac_ct_LIPO"; then
6358  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6359else
6360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361for as_dir in $PATH
6362do
6363  IFS=$as_save_IFS
6364  test -z "$as_dir" && as_dir=.
6365    for ac_exec_ext in '' $ac_executable_extensions; do
6366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367    ac_cv_prog_ac_ct_LIPO="lipo"
6368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369    break 2
6370  fi
6371done
6372  done
6373IFS=$as_save_IFS
6374
6375fi
6376fi
6377ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6378if test -n "$ac_ct_LIPO"; then
6379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6380$as_echo "$ac_ct_LIPO" >&6; }
6381else
6382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383$as_echo "no" >&6; }
6384fi
6385
6386  if test "x$ac_ct_LIPO" = x; then
6387    LIPO=":"
6388  else
6389    case $cross_compiling:$ac_tool_warned in
6390yes:)
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6393ac_tool_warned=yes ;;
6394esac
6395    LIPO=$ac_ct_LIPO
6396  fi
6397else
6398  LIPO="$ac_cv_prog_LIPO"
6399fi
6400
6401    if test -n "$ac_tool_prefix"; then
6402  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6403set dummy ${ac_tool_prefix}otool; ac_word=$2
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405$as_echo_n "checking for $ac_word... " >&6; }
6406if test "${ac_cv_prog_OTOOL+set}" = set; then :
6407  $as_echo_n "(cached) " >&6
6408else
6409  if test -n "$OTOOL"; then
6410  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6411else
6412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413for as_dir in $PATH
6414do
6415  IFS=$as_save_IFS
6416  test -z "$as_dir" && as_dir=.
6417    for ac_exec_ext in '' $ac_executable_extensions; do
6418  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421    break 2
6422  fi
6423done
6424  done
6425IFS=$as_save_IFS
6426
6427fi
6428fi
6429OTOOL=$ac_cv_prog_OTOOL
6430if test -n "$OTOOL"; then
6431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6432$as_echo "$OTOOL" >&6; }
6433else
6434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435$as_echo "no" >&6; }
6436fi
6437
6438
6439fi
6440if test -z "$ac_cv_prog_OTOOL"; then
6441  ac_ct_OTOOL=$OTOOL
6442  # Extract the first word of "otool", so it can be a program name with args.
6443set dummy otool; ac_word=$2
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445$as_echo_n "checking for $ac_word... " >&6; }
6446if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6447  $as_echo_n "(cached) " >&6
6448else
6449  if test -n "$ac_ct_OTOOL"; then
6450  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6451else
6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453for as_dir in $PATH
6454do
6455  IFS=$as_save_IFS
6456  test -z "$as_dir" && as_dir=.
6457    for ac_exec_ext in '' $ac_executable_extensions; do
6458  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459    ac_cv_prog_ac_ct_OTOOL="otool"
6460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461    break 2
6462  fi
6463done
6464  done
6465IFS=$as_save_IFS
6466
6467fi
6468fi
6469ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6470if test -n "$ac_ct_OTOOL"; then
6471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6472$as_echo "$ac_ct_OTOOL" >&6; }
6473else
6474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475$as_echo "no" >&6; }
6476fi
6477
6478  if test "x$ac_ct_OTOOL" = x; then
6479    OTOOL=":"
6480  else
6481    case $cross_compiling:$ac_tool_warned in
6482yes:)
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6485ac_tool_warned=yes ;;
6486esac
6487    OTOOL=$ac_ct_OTOOL
6488  fi
6489else
6490  OTOOL="$ac_cv_prog_OTOOL"
6491fi
6492
6493    if test -n "$ac_tool_prefix"; then
6494  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6495set dummy ${ac_tool_prefix}otool64; ac_word=$2
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497$as_echo_n "checking for $ac_word... " >&6; }
6498if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6499  $as_echo_n "(cached) " >&6
6500else
6501  if test -n "$OTOOL64"; then
6502  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6503else
6504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505for as_dir in $PATH
6506do
6507  IFS=$as_save_IFS
6508  test -z "$as_dir" && as_dir=.
6509    for ac_exec_ext in '' $ac_executable_extensions; do
6510  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513    break 2
6514  fi
6515done
6516  done
6517IFS=$as_save_IFS
6518
6519fi
6520fi
6521OTOOL64=$ac_cv_prog_OTOOL64
6522if test -n "$OTOOL64"; then
6523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6524$as_echo "$OTOOL64" >&6; }
6525else
6526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527$as_echo "no" >&6; }
6528fi
6529
6530
6531fi
6532if test -z "$ac_cv_prog_OTOOL64"; then
6533  ac_ct_OTOOL64=$OTOOL64
6534  # Extract the first word of "otool64", so it can be a program name with args.
6535set dummy otool64; ac_word=$2
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537$as_echo_n "checking for $ac_word... " >&6; }
6538if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6539  $as_echo_n "(cached) " >&6
6540else
6541  if test -n "$ac_ct_OTOOL64"; then
6542  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6543else
6544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545for as_dir in $PATH
6546do
6547  IFS=$as_save_IFS
6548  test -z "$as_dir" && as_dir=.
6549    for ac_exec_ext in '' $ac_executable_extensions; do
6550  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551    ac_cv_prog_ac_ct_OTOOL64="otool64"
6552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553    break 2
6554  fi
6555done
6556  done
6557IFS=$as_save_IFS
6558
6559fi
6560fi
6561ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6562if test -n "$ac_ct_OTOOL64"; then
6563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6564$as_echo "$ac_ct_OTOOL64" >&6; }
6565else
6566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567$as_echo "no" >&6; }
6568fi
6569
6570  if test "x$ac_ct_OTOOL64" = x; then
6571    OTOOL64=":"
6572  else
6573    case $cross_compiling:$ac_tool_warned in
6574yes:)
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6577ac_tool_warned=yes ;;
6578esac
6579    OTOOL64=$ac_ct_OTOOL64
6580  fi
6581else
6582  OTOOL64="$ac_cv_prog_OTOOL64"
6583fi
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6612$as_echo_n "checking for -single_module linker flag... " >&6; }
6613if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6614  $as_echo_n "(cached) " >&6
6615else
6616  lt_cv_apple_cc_single_mod=no
6617      if test -z "${LT_MULTI_MODULE}"; then
6618	# By default we will add the -single_module flag. You can override
6619	# by either setting the environment variable LT_MULTI_MODULE
6620	# non-empty at configure time, or by adding -multi_module to the
6621	# link flags.
6622	rm -rf libconftest.dylib*
6623	echo "int foo(void){return 1;}" > conftest.c
6624	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6625-dynamiclib -Wl,-single_module conftest.c" >&5
6626	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6627	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6628        _lt_result=$?
6629	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6630	  lt_cv_apple_cc_single_mod=yes
6631	else
6632	  cat conftest.err >&5
6633	fi
6634	rm -rf libconftest.dylib*
6635	rm -f conftest.*
6636      fi
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6639$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6640    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6641$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6642if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6643  $as_echo_n "(cached) " >&6
6644else
6645  lt_cv_ld_exported_symbols_list=no
6646      save_LDFLAGS=$LDFLAGS
6647      echo "_main" > conftest.sym
6648      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6649      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650/* end confdefs.h.  */
6651
6652int
6653main ()
6654{
6655
6656  ;
6657  return 0;
6658}
6659_ACEOF
6660if ac_fn_c_try_link "$LINENO"; then :
6661  lt_cv_ld_exported_symbols_list=yes
6662else
6663  lt_cv_ld_exported_symbols_list=no
6664fi
6665rm -f core conftest.err conftest.$ac_objext \
6666    conftest$ac_exeext conftest.$ac_ext
6667	LDFLAGS="$save_LDFLAGS"
6668
6669fi
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6671$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6672    case $host_os in
6673    rhapsody* | darwin1.[012])
6674      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6675    darwin1.*)
6676      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6677    darwin*) # darwin 5.x on
6678      # if running on 10.5 or later, the deployment target defaults
6679      # to the OS version, if on x86, and 10.4, the deployment
6680      # target defaults to 10.4. Don't you love it?
6681      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6682	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6683	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6684	10.[012]*)
6685	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6686	10.*)
6687	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6688      esac
6689    ;;
6690  esac
6691    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6692      _lt_dar_single_mod='$single_module'
6693    fi
6694    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6695      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6696    else
6697      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6698    fi
6699    if test "$DSYMUTIL" != ":"; then
6700      _lt_dsymutil='~$DSYMUTIL $lib || :'
6701    else
6702      _lt_dsymutil=
6703    fi
6704    ;;
6705  esac
6706
6707ac_ext=c
6708ac_cpp='$CPP $CPPFLAGS'
6709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6711ac_compiler_gnu=$ac_cv_c_compiler_gnu
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6713$as_echo_n "checking how to run the C preprocessor... " >&6; }
6714# On Suns, sometimes $CPP names a directory.
6715if test -n "$CPP" && test -d "$CPP"; then
6716  CPP=
6717fi
6718if test -z "$CPP"; then
6719  if test "${ac_cv_prog_CPP+set}" = set; then :
6720  $as_echo_n "(cached) " >&6
6721else
6722      # Double quotes because CPP needs to be expanded
6723    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6724    do
6725      ac_preproc_ok=false
6726for ac_c_preproc_warn_flag in '' yes
6727do
6728  # Use a header file that comes with gcc, so configuring glibc
6729  # with a fresh cross-compiler works.
6730  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6731  # <limits.h> exists even on freestanding compilers.
6732  # On the NeXT, cc -E runs the code through the compiler's parser,
6733  # not just through cpp. "Syntax error" is here to catch this case.
6734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735/* end confdefs.h.  */
6736#ifdef __STDC__
6737# include <limits.h>
6738#else
6739# include <assert.h>
6740#endif
6741		     Syntax error
6742_ACEOF
6743if ac_fn_c_try_cpp "$LINENO"; then :
6744
6745else
6746  # Broken: fails on valid input.
6747continue
6748fi
6749rm -f conftest.err conftest.$ac_ext
6750
6751  # OK, works on sane cases.  Now check whether nonexistent headers
6752  # can be detected and how.
6753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754/* end confdefs.h.  */
6755#include <ac_nonexistent.h>
6756_ACEOF
6757if ac_fn_c_try_cpp "$LINENO"; then :
6758  # Broken: success on invalid input.
6759continue
6760else
6761  # Passes both tests.
6762ac_preproc_ok=:
6763break
6764fi
6765rm -f conftest.err conftest.$ac_ext
6766
6767done
6768# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6769rm -f conftest.err conftest.$ac_ext
6770if $ac_preproc_ok; then :
6771  break
6772fi
6773
6774    done
6775    ac_cv_prog_CPP=$CPP
6776
6777fi
6778  CPP=$ac_cv_prog_CPP
6779else
6780  ac_cv_prog_CPP=$CPP
6781fi
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6783$as_echo "$CPP" >&6; }
6784ac_preproc_ok=false
6785for ac_c_preproc_warn_flag in '' yes
6786do
6787  # Use a header file that comes with gcc, so configuring glibc
6788  # with a fresh cross-compiler works.
6789  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6790  # <limits.h> exists even on freestanding compilers.
6791  # On the NeXT, cc -E runs the code through the compiler's parser,
6792  # not just through cpp. "Syntax error" is here to catch this case.
6793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794/* end confdefs.h.  */
6795#ifdef __STDC__
6796# include <limits.h>
6797#else
6798# include <assert.h>
6799#endif
6800		     Syntax error
6801_ACEOF
6802if ac_fn_c_try_cpp "$LINENO"; then :
6803
6804else
6805  # Broken: fails on valid input.
6806continue
6807fi
6808rm -f conftest.err conftest.$ac_ext
6809
6810  # OK, works on sane cases.  Now check whether nonexistent headers
6811  # can be detected and how.
6812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813/* end confdefs.h.  */
6814#include <ac_nonexistent.h>
6815_ACEOF
6816if ac_fn_c_try_cpp "$LINENO"; then :
6817  # Broken: success on invalid input.
6818continue
6819else
6820  # Passes both tests.
6821ac_preproc_ok=:
6822break
6823fi
6824rm -f conftest.err conftest.$ac_ext
6825
6826done
6827# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6828rm -f conftest.err conftest.$ac_ext
6829if $ac_preproc_ok; then :
6830
6831else
6832  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6834as_fn_error "C preprocessor \"$CPP\" fails sanity check
6835See \`config.log' for more details." "$LINENO" 5; }
6836fi
6837
6838ac_ext=c
6839ac_cpp='$CPP $CPPFLAGS'
6840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6842ac_compiler_gnu=$ac_cv_c_compiler_gnu
6843
6844
6845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6846$as_echo_n "checking for ANSI C header files... " >&6; }
6847if test "${ac_cv_header_stdc+set}" = set; then :
6848  $as_echo_n "(cached) " >&6
6849else
6850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851/* end confdefs.h.  */
6852#include <stdlib.h>
6853#include <stdarg.h>
6854#include <string.h>
6855#include <float.h>
6856
6857int
6858main ()
6859{
6860
6861  ;
6862  return 0;
6863}
6864_ACEOF
6865if ac_fn_c_try_compile "$LINENO"; then :
6866  ac_cv_header_stdc=yes
6867else
6868  ac_cv_header_stdc=no
6869fi
6870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871
6872if test $ac_cv_header_stdc = yes; then
6873  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875/* end confdefs.h.  */
6876#include <string.h>
6877
6878_ACEOF
6879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6880  $EGREP "memchr" >/dev/null 2>&1; then :
6881
6882else
6883  ac_cv_header_stdc=no
6884fi
6885rm -f conftest*
6886
6887fi
6888
6889if test $ac_cv_header_stdc = yes; then
6890  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892/* end confdefs.h.  */
6893#include <stdlib.h>
6894
6895_ACEOF
6896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6897  $EGREP "free" >/dev/null 2>&1; then :
6898
6899else
6900  ac_cv_header_stdc=no
6901fi
6902rm -f conftest*
6903
6904fi
6905
6906if test $ac_cv_header_stdc = yes; then
6907  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6908  if test "$cross_compiling" = yes; then :
6909  :
6910else
6911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912/* end confdefs.h.  */
6913#include <ctype.h>
6914#include <stdlib.h>
6915#if ((' ' & 0x0FF) == 0x020)
6916# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6917# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6918#else
6919# define ISLOWER(c) \
6920		   (('a' <= (c) && (c) <= 'i') \
6921		     || ('j' <= (c) && (c) <= 'r') \
6922		     || ('s' <= (c) && (c) <= 'z'))
6923# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6924#endif
6925
6926#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6927int
6928main ()
6929{
6930  int i;
6931  for (i = 0; i < 256; i++)
6932    if (XOR (islower (i), ISLOWER (i))
6933	|| toupper (i) != TOUPPER (i))
6934      return 2;
6935  return 0;
6936}
6937_ACEOF
6938if ac_fn_c_try_run "$LINENO"; then :
6939
6940else
6941  ac_cv_header_stdc=no
6942fi
6943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6944  conftest.$ac_objext conftest.beam conftest.$ac_ext
6945fi
6946
6947fi
6948fi
6949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6950$as_echo "$ac_cv_header_stdc" >&6; }
6951if test $ac_cv_header_stdc = yes; then
6952
6953$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6954
6955fi
6956
6957# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6958for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6959		  inttypes.h stdint.h unistd.h
6960do :
6961  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6962ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6963"
6964eval as_val=\$$as_ac_Header
6965   if test "x$as_val" = x""yes; then :
6966  cat >>confdefs.h <<_ACEOF
6967#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6968_ACEOF
6969
6970fi
6971
6972done
6973
6974
6975for ac_header in dlfcn.h
6976do :
6977  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6978"
6979if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6980  cat >>confdefs.h <<_ACEOF
6981#define HAVE_DLFCN_H 1
6982_ACEOF
6983
6984fi
6985
6986done
6987
6988
6989
6990# Set options
6991
6992
6993
6994        enable_dlopen=no
6995
6996
6997  enable_win32_dll=no
6998
6999
7000            # Check whether --enable-shared was given.
7001if test "${enable_shared+set}" = set; then :
7002  enableval=$enable_shared; p=${PACKAGE-default}
7003    case $enableval in
7004    yes) enable_shared=yes ;;
7005    no) enable_shared=no ;;
7006    *)
7007      enable_shared=no
7008      # Look at the argument we got.  We use all the common list separators.
7009      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7010      for pkg in $enableval; do
7011	IFS="$lt_save_ifs"
7012	if test "X$pkg" = "X$p"; then
7013	  enable_shared=yes
7014	fi
7015      done
7016      IFS="$lt_save_ifs"
7017      ;;
7018    esac
7019else
7020  enable_shared=yes
7021fi
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031  # Check whether --enable-static was given.
7032if test "${enable_static+set}" = set; then :
7033  enableval=$enable_static; p=${PACKAGE-default}
7034    case $enableval in
7035    yes) enable_static=yes ;;
7036    no) enable_static=no ;;
7037    *)
7038     enable_static=no
7039      # Look at the argument we got.  We use all the common list separators.
7040      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7041      for pkg in $enableval; do
7042	IFS="$lt_save_ifs"
7043	if test "X$pkg" = "X$p"; then
7044	  enable_static=yes
7045	fi
7046      done
7047      IFS="$lt_save_ifs"
7048      ;;
7049    esac
7050else
7051  enable_static=yes
7052fi
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063# Check whether --with-pic was given.
7064if test "${with_pic+set}" = set; then :
7065  withval=$with_pic; pic_mode="$withval"
7066else
7067  pic_mode=default
7068fi
7069
7070
7071test -z "$pic_mode" && pic_mode=default
7072
7073
7074
7075
7076
7077
7078
7079  # Check whether --enable-fast-install was given.
7080if test "${enable_fast_install+set}" = set; then :
7081  enableval=$enable_fast_install; p=${PACKAGE-default}
7082    case $enableval in
7083    yes) enable_fast_install=yes ;;
7084    no) enable_fast_install=no ;;
7085    *)
7086      enable_fast_install=no
7087      # Look at the argument we got.  We use all the common list separators.
7088      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7089      for pkg in $enableval; do
7090	IFS="$lt_save_ifs"
7091	if test "X$pkg" = "X$p"; then
7092	  enable_fast_install=yes
7093	fi
7094      done
7095      IFS="$lt_save_ifs"
7096      ;;
7097    esac
7098else
7099  enable_fast_install=yes
7100fi
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112# This can be used to rebuild libtool when needed
7113LIBTOOL_DEPS="$ltmain"
7114
7115# Always use our own libtool.
7116LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142test -z "$LN_S" && LN_S="ln -s"
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157if test -n "${ZSH_VERSION+set}" ; then
7158   setopt NO_GLOB_SUBST
7159fi
7160
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7162$as_echo_n "checking for objdir... " >&6; }
7163if test "${lt_cv_objdir+set}" = set; then :
7164  $as_echo_n "(cached) " >&6
7165else
7166  rm -f .libs 2>/dev/null
7167mkdir .libs 2>/dev/null
7168if test -d .libs; then
7169  lt_cv_objdir=.libs
7170else
7171  # MS-DOS does not allow filenames that begin with a dot.
7172  lt_cv_objdir=_libs
7173fi
7174rmdir .libs 2>/dev/null
7175fi
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7177$as_echo "$lt_cv_objdir" >&6; }
7178objdir=$lt_cv_objdir
7179
7180
7181
7182
7183
7184cat >>confdefs.h <<_ACEOF
7185#define LT_OBJDIR "$lt_cv_objdir/"
7186_ACEOF
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204case $host_os in
7205aix3*)
7206  # AIX sometimes has problems with the GCC collect2 program.  For some
7207  # reason, if we set the COLLECT_NAMES environment variable, the problems
7208  # vanish in a puff of smoke.
7209  if test "X${COLLECT_NAMES+set}" != Xset; then
7210    COLLECT_NAMES=
7211    export COLLECT_NAMES
7212  fi
7213  ;;
7214esac
7215
7216# Sed substitution that helps us do robust quoting.  It backslashifies
7217# metacharacters that are still active within double-quoted strings.
7218sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7219
7220# Same as above, but do not quote variable references.
7221double_quote_subst='s/\(["`\\]\)/\\\1/g'
7222
7223# Sed substitution to delay expansion of an escaped shell variable in a
7224# double_quote_subst'ed string.
7225delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7226
7227# Sed substitution to delay expansion of an escaped single quote.
7228delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7229
7230# Sed substitution to avoid accidental globbing in evaled expressions
7231no_glob_subst='s/\*/\\\*/g'
7232
7233# Global variables:
7234ofile=libtool
7235can_build_shared=yes
7236
7237# All known linkers require a `.a' archive for static linking (except MSVC,
7238# which needs '.lib').
7239libext=a
7240
7241with_gnu_ld="$lt_cv_prog_gnu_ld"
7242
7243old_CC="$CC"
7244old_CFLAGS="$CFLAGS"
7245
7246# Set sane defaults for various variables
7247test -z "$CC" && CC=cc
7248test -z "$LTCC" && LTCC=$CC
7249test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7250test -z "$LD" && LD=ld
7251test -z "$ac_objext" && ac_objext=o
7252
7253for cc_temp in $compiler""; do
7254  case $cc_temp in
7255    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7256    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7257    \-*) ;;
7258    *) break;;
7259  esac
7260done
7261cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7262
7263
7264# Only perform the check for file, if the check method requires it
7265test -z "$MAGIC_CMD" && MAGIC_CMD=file
7266case $deplibs_check_method in
7267file_magic*)
7268  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7269    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7270$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7271if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7272  $as_echo_n "(cached) " >&6
7273else
7274  case $MAGIC_CMD in
7275[\\/*] |  ?:[\\/]*)
7276  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7277  ;;
7278*)
7279  lt_save_MAGIC_CMD="$MAGIC_CMD"
7280  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7281  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7282  for ac_dir in $ac_dummy; do
7283    IFS="$lt_save_ifs"
7284    test -z "$ac_dir" && ac_dir=.
7285    if test -f $ac_dir/${ac_tool_prefix}file; then
7286      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7287      if test -n "$file_magic_test_file"; then
7288	case $deplibs_check_method in
7289	"file_magic "*)
7290	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7291	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7292	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7293	    $EGREP "$file_magic_regex" > /dev/null; then
7294	    :
7295	  else
7296	    cat <<_LT_EOF 1>&2
7297
7298*** Warning: the command libtool uses to detect shared libraries,
7299*** $file_magic_cmd, produces output that libtool cannot recognize.
7300*** The result is that libtool may fail to recognize shared libraries
7301*** as such.  This will affect the creation of libtool libraries that
7302*** depend on shared libraries, but programs linked with such libtool
7303*** libraries will work regardless of this problem.  Nevertheless, you
7304*** may want to report the problem to your system manager and/or to
7305*** bug-libtool@gnu.org
7306
7307_LT_EOF
7308	  fi ;;
7309	esac
7310      fi
7311      break
7312    fi
7313  done
7314  IFS="$lt_save_ifs"
7315  MAGIC_CMD="$lt_save_MAGIC_CMD"
7316  ;;
7317esac
7318fi
7319
7320MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7321if test -n "$MAGIC_CMD"; then
7322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7323$as_echo "$MAGIC_CMD" >&6; }
7324else
7325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326$as_echo "no" >&6; }
7327fi
7328
7329
7330
7331
7332
7333if test -z "$lt_cv_path_MAGIC_CMD"; then
7334  if test -n "$ac_tool_prefix"; then
7335    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7336$as_echo_n "checking for file... " >&6; }
7337if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7338  $as_echo_n "(cached) " >&6
7339else
7340  case $MAGIC_CMD in
7341[\\/*] |  ?:[\\/]*)
7342  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7343  ;;
7344*)
7345  lt_save_MAGIC_CMD="$MAGIC_CMD"
7346  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7347  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7348  for ac_dir in $ac_dummy; do
7349    IFS="$lt_save_ifs"
7350    test -z "$ac_dir" && ac_dir=.
7351    if test -f $ac_dir/file; then
7352      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7353      if test -n "$file_magic_test_file"; then
7354	case $deplibs_check_method in
7355	"file_magic "*)
7356	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7357	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7358	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7359	    $EGREP "$file_magic_regex" > /dev/null; then
7360	    :
7361	  else
7362	    cat <<_LT_EOF 1>&2
7363
7364*** Warning: the command libtool uses to detect shared libraries,
7365*** $file_magic_cmd, produces output that libtool cannot recognize.
7366*** The result is that libtool may fail to recognize shared libraries
7367*** as such.  This will affect the creation of libtool libraries that
7368*** depend on shared libraries, but programs linked with such libtool
7369*** libraries will work regardless of this problem.  Nevertheless, you
7370*** may want to report the problem to your system manager and/or to
7371*** bug-libtool@gnu.org
7372
7373_LT_EOF
7374	  fi ;;
7375	esac
7376      fi
7377      break
7378    fi
7379  done
7380  IFS="$lt_save_ifs"
7381  MAGIC_CMD="$lt_save_MAGIC_CMD"
7382  ;;
7383esac
7384fi
7385
7386MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7387if test -n "$MAGIC_CMD"; then
7388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7389$as_echo "$MAGIC_CMD" >&6; }
7390else
7391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392$as_echo "no" >&6; }
7393fi
7394
7395
7396  else
7397    MAGIC_CMD=:
7398  fi
7399fi
7400
7401  fi
7402  ;;
7403esac
7404
7405# Use C for the default configuration in the libtool script
7406
7407lt_save_CC="$CC"
7408ac_ext=c
7409ac_cpp='$CPP $CPPFLAGS'
7410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412ac_compiler_gnu=$ac_cv_c_compiler_gnu
7413
7414
7415# Source file extension for C test sources.
7416ac_ext=c
7417
7418# Object file extension for compiled C test sources.
7419objext=o
7420objext=$objext
7421
7422# Code to be used in simple compile tests
7423lt_simple_compile_test_code="int some_variable = 0;"
7424
7425# Code to be used in simple link tests
7426lt_simple_link_test_code='int main(){return(0);}'
7427
7428
7429
7430
7431
7432
7433
7434# If no C compiler was specified, use CC.
7435LTCC=${LTCC-"$CC"}
7436
7437# If no C compiler flags were specified, use CFLAGS.
7438LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7439
7440# Allow CC to be a program name with arguments.
7441compiler=$CC
7442
7443# Save the default compiler, since it gets overwritten when the other
7444# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7445compiler_DEFAULT=$CC
7446
7447# save warnings/boilerplate of simple test code
7448ac_outfile=conftest.$ac_objext
7449echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7450eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7451_lt_compiler_boilerplate=`cat conftest.err`
7452$RM conftest*
7453
7454ac_outfile=conftest.$ac_objext
7455echo "$lt_simple_link_test_code" >conftest.$ac_ext
7456eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7457_lt_linker_boilerplate=`cat conftest.err`
7458$RM -r conftest*
7459
7460
7461## CAVEAT EMPTOR:
7462## There is no encapsulation within the following macros, do not change
7463## the running order or otherwise move them around unless you know exactly
7464## what you are doing...
7465if test -n "$compiler"; then
7466
7467lt_prog_compiler_no_builtin_flag=
7468
7469if test "$GCC" = yes; then
7470  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7471
7472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7473$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7474if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7475  $as_echo_n "(cached) " >&6
7476else
7477  lt_cv_prog_compiler_rtti_exceptions=no
7478   ac_outfile=conftest.$ac_objext
7479   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7480   lt_compiler_flag="-fno-rtti -fno-exceptions"
7481   # Insert the option either (1) after the last *FLAGS variable, or
7482   # (2) before a word containing "conftest.", or (3) at the end.
7483   # Note that $ac_compile itself does not contain backslashes and begins
7484   # with a dollar sign (not a hyphen), so the echo should work correctly.
7485   # The option is referenced via a variable to avoid confusing sed.
7486   lt_compile=`echo "$ac_compile" | $SED \
7487   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7488   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7489   -e 's:$: $lt_compiler_flag:'`
7490   (eval echo "\"\$as_me:7490: $lt_compile\"" >&5)
7491   (eval "$lt_compile" 2>conftest.err)
7492   ac_status=$?
7493   cat conftest.err >&5
7494   echo "$as_me:7494: \$? = $ac_status" >&5
7495   if (exit $ac_status) && test -s "$ac_outfile"; then
7496     # The compiler can only warn and ignore the option if not recognized
7497     # So say no if there are warnings other than the usual output.
7498     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7499     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7500     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7501       lt_cv_prog_compiler_rtti_exceptions=yes
7502     fi
7503   fi
7504   $RM conftest*
7505
7506fi
7507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7508$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7509
7510if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7511    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7512else
7513    :
7514fi
7515
7516fi
7517
7518
7519
7520
7521
7522
7523  lt_prog_compiler_wl=
7524lt_prog_compiler_pic=
7525lt_prog_compiler_static=
7526
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7528$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7529
7530  if test "$GCC" = yes; then
7531    lt_prog_compiler_wl='-Wl,'
7532    lt_prog_compiler_static='-static'
7533
7534    case $host_os in
7535      aix*)
7536      # All AIX code is PIC.
7537      if test "$host_cpu" = ia64; then
7538	# AIX 5 now supports IA64 processor
7539	lt_prog_compiler_static='-Bstatic'
7540      fi
7541      ;;
7542
7543    amigaos*)
7544      case $host_cpu in
7545      powerpc)
7546            # see comment about AmigaOS4 .so support
7547            lt_prog_compiler_pic='-fPIC'
7548        ;;
7549      m68k)
7550            # FIXME: we need at least 68020 code to build shared libraries, but
7551            # adding the `-m68020' flag to GCC prevents building anything better,
7552            # like `-m68040'.
7553            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7554        ;;
7555      esac
7556      ;;
7557
7558    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7559      # PIC is the default for these OSes.
7560      ;;
7561
7562    mingw* | cygwin* | pw32* | os2* | cegcc*)
7563      # This hack is so that the source file can tell whether it is being
7564      # built for inclusion in a dll (and should export symbols for example).
7565      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7566      # (--disable-auto-import) libraries
7567      lt_prog_compiler_pic='-DDLL_EXPORT'
7568      ;;
7569
7570    darwin* | rhapsody*)
7571      # PIC is the default on this platform
7572      # Common symbols not allowed in MH_DYLIB files
7573      lt_prog_compiler_pic='-fno-common'
7574      ;;
7575
7576    hpux*)
7577      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7578      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7579      # sets the default TLS model and affects inlining.
7580      case $host_cpu in
7581      hppa*64*)
7582	# +Z the default
7583	;;
7584      *)
7585	lt_prog_compiler_pic='-fPIC'
7586	;;
7587      esac
7588      ;;
7589
7590    interix[3-9]*)
7591      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7592      # Instead, we relocate shared libraries at runtime.
7593      ;;
7594
7595    msdosdjgpp*)
7596      # Just because we use GCC doesn't mean we suddenly get shared libraries
7597      # on systems that don't support them.
7598      lt_prog_compiler_can_build_shared=no
7599      enable_shared=no
7600      ;;
7601
7602    *nto* | *qnx*)
7603      # QNX uses GNU C++, but need to define -shared option too, otherwise
7604      # it will coredump.
7605      lt_prog_compiler_pic='-fPIC -shared'
7606      ;;
7607
7608    sysv4*MP*)
7609      if test -d /usr/nec; then
7610	lt_prog_compiler_pic=-Kconform_pic
7611      fi
7612      ;;
7613
7614    *)
7615      lt_prog_compiler_pic='-fPIC'
7616      ;;
7617    esac
7618  else
7619    # PORTME Check for flag to pass linker flags through the system compiler.
7620    case $host_os in
7621    aix*)
7622      lt_prog_compiler_wl='-Wl,'
7623      if test "$host_cpu" = ia64; then
7624	# AIX 5 now supports IA64 processor
7625	lt_prog_compiler_static='-Bstatic'
7626      else
7627	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7628      fi
7629      ;;
7630
7631    mingw* | cygwin* | pw32* | os2* | cegcc*)
7632      # This hack is so that the source file can tell whether it is being
7633      # built for inclusion in a dll (and should export symbols for example).
7634      lt_prog_compiler_pic='-DDLL_EXPORT'
7635      ;;
7636
7637    hpux9* | hpux10* | hpux11*)
7638      lt_prog_compiler_wl='-Wl,'
7639      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7640      # not for PA HP-UX.
7641      case $host_cpu in
7642      hppa*64*|ia64*)
7643	# +Z the default
7644	;;
7645      *)
7646	lt_prog_compiler_pic='+Z'
7647	;;
7648      esac
7649      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7650      lt_prog_compiler_static='${wl}-a ${wl}archive'
7651      ;;
7652
7653    irix5* | irix6* | nonstopux*)
7654      lt_prog_compiler_wl='-Wl,'
7655      # PIC (with -KPIC) is the default.
7656      lt_prog_compiler_static='-non_shared'
7657      ;;
7658
7659    linux* | k*bsd*-gnu)
7660      case $cc_basename in
7661      # old Intel for x86_64 which still supported -KPIC.
7662      ecc*)
7663	lt_prog_compiler_wl='-Wl,'
7664	lt_prog_compiler_pic='-KPIC'
7665	lt_prog_compiler_static='-static'
7666        ;;
7667      # icc used to be incompatible with GCC.
7668      # ICC 10 doesn't accept -KPIC any more.
7669      icc* | ifort*)
7670	lt_prog_compiler_wl='-Wl,'
7671	lt_prog_compiler_pic='-fPIC'
7672	lt_prog_compiler_static='-static'
7673        ;;
7674      # Lahey Fortran 8.1.
7675      lf95*)
7676	lt_prog_compiler_wl='-Wl,'
7677	lt_prog_compiler_pic='--shared'
7678	lt_prog_compiler_static='--static'
7679	;;
7680      pgcc* | pgf77* | pgf90* | pgf95*)
7681        # Portland Group compilers (*not* the Pentium gcc compiler,
7682	# which looks to be a dead project)
7683	lt_prog_compiler_wl='-Wl,'
7684	lt_prog_compiler_pic='-fpic'
7685	lt_prog_compiler_static='-Bstatic'
7686        ;;
7687      ccc*)
7688        lt_prog_compiler_wl='-Wl,'
7689        # All Alpha code is PIC.
7690        lt_prog_compiler_static='-non_shared'
7691        ;;
7692      xl*)
7693	# IBM XL C 8.0/Fortran 10.1 on PPC
7694	lt_prog_compiler_wl='-Wl,'
7695	lt_prog_compiler_pic='-qpic'
7696	lt_prog_compiler_static='-qstaticlink'
7697	;;
7698      *)
7699	case `$CC -V 2>&1 | sed 5q` in
7700	*Sun\ C*)
7701	  # Sun C 5.9
7702	  lt_prog_compiler_pic='-KPIC'
7703	  lt_prog_compiler_static='-Bstatic'
7704	  lt_prog_compiler_wl='-Wl,'
7705	  ;;
7706	*Sun\ F*)
7707	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7708	  lt_prog_compiler_pic='-KPIC'
7709	  lt_prog_compiler_static='-Bstatic'
7710	  lt_prog_compiler_wl=''
7711	  ;;
7712	esac
7713	;;
7714      esac
7715      ;;
7716
7717    newsos6)
7718      lt_prog_compiler_pic='-KPIC'
7719      lt_prog_compiler_static='-Bstatic'
7720      ;;
7721
7722    *nto* | *qnx*)
7723      # QNX uses GNU C++, but need to define -shared option too, otherwise
7724      # it will coredump.
7725      lt_prog_compiler_pic='-fPIC -shared'
7726      ;;
7727
7728    osf3* | osf4* | osf5*)
7729      lt_prog_compiler_wl='-Wl,'
7730      # All OSF/1 code is PIC.
7731      lt_prog_compiler_static='-non_shared'
7732      ;;
7733
7734    rdos*)
7735      lt_prog_compiler_static='-non_shared'
7736      ;;
7737
7738    solaris*)
7739      lt_prog_compiler_pic='-KPIC'
7740      lt_prog_compiler_static='-Bstatic'
7741      case $cc_basename in
7742      f77* | f90* | f95*)
7743	lt_prog_compiler_wl='-Qoption ld ';;
7744      *)
7745	lt_prog_compiler_wl='-Wl,';;
7746      esac
7747      ;;
7748
7749    sunos4*)
7750      lt_prog_compiler_wl='-Qoption ld '
7751      lt_prog_compiler_pic='-PIC'
7752      lt_prog_compiler_static='-Bstatic'
7753      ;;
7754
7755    sysv4 | sysv4.2uw2* | sysv4.3*)
7756      lt_prog_compiler_wl='-Wl,'
7757      lt_prog_compiler_pic='-KPIC'
7758      lt_prog_compiler_static='-Bstatic'
7759      ;;
7760
7761    sysv4*MP*)
7762      if test -d /usr/nec ;then
7763	lt_prog_compiler_pic='-Kconform_pic'
7764	lt_prog_compiler_static='-Bstatic'
7765      fi
7766      ;;
7767
7768    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7769      lt_prog_compiler_wl='-Wl,'
7770      lt_prog_compiler_pic='-KPIC'
7771      lt_prog_compiler_static='-Bstatic'
7772      ;;
7773
7774    unicos*)
7775      lt_prog_compiler_wl='-Wl,'
7776      lt_prog_compiler_can_build_shared=no
7777      ;;
7778
7779    uts4*)
7780      lt_prog_compiler_pic='-pic'
7781      lt_prog_compiler_static='-Bstatic'
7782      ;;
7783
7784    *)
7785      lt_prog_compiler_can_build_shared=no
7786      ;;
7787    esac
7788  fi
7789
7790case $host_os in
7791  # For platforms which do not support PIC, -DPIC is meaningless:
7792  *djgpp*)
7793    lt_prog_compiler_pic=
7794    ;;
7795  *)
7796    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7797    ;;
7798esac
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7800$as_echo "$lt_prog_compiler_pic" >&6; }
7801
7802
7803
7804
7805
7806
7807#
7808# Check to make sure the PIC flag actually works.
7809#
7810if test -n "$lt_prog_compiler_pic"; then
7811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7812$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7813if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7814  $as_echo_n "(cached) " >&6
7815else
7816  lt_cv_prog_compiler_pic_works=no
7817   ac_outfile=conftest.$ac_objext
7818   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7819   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7820   # Insert the option either (1) after the last *FLAGS variable, or
7821   # (2) before a word containing "conftest.", or (3) at the end.
7822   # Note that $ac_compile itself does not contain backslashes and begins
7823   # with a dollar sign (not a hyphen), so the echo should work correctly.
7824   # The option is referenced via a variable to avoid confusing sed.
7825   lt_compile=`echo "$ac_compile" | $SED \
7826   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7827   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7828   -e 's:$: $lt_compiler_flag:'`
7829   (eval echo "\"\$as_me:7829: $lt_compile\"" >&5)
7830   (eval "$lt_compile" 2>conftest.err)
7831   ac_status=$?
7832   cat conftest.err >&5
7833   echo "$as_me:7833: \$? = $ac_status" >&5
7834   if (exit $ac_status) && test -s "$ac_outfile"; then
7835     # The compiler can only warn and ignore the option if not recognized
7836     # So say no if there are warnings other than the usual output.
7837     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7838     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7839     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7840       lt_cv_prog_compiler_pic_works=yes
7841     fi
7842   fi
7843   $RM conftest*
7844
7845fi
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7847$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7848
7849if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7850    case $lt_prog_compiler_pic in
7851     "" | " "*) ;;
7852     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7853     esac
7854else
7855    lt_prog_compiler_pic=
7856     lt_prog_compiler_can_build_shared=no
7857fi
7858
7859fi
7860
7861
7862
7863
7864
7865
7866#
7867# Check to make sure the static flag actually works.
7868#
7869wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7871$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7872if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7873  $as_echo_n "(cached) " >&6
7874else
7875  lt_cv_prog_compiler_static_works=no
7876   save_LDFLAGS="$LDFLAGS"
7877   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7878   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7879   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7880     # The linker can only warn and ignore the option if not recognized
7881     # So say no if there are warnings
7882     if test -s conftest.err; then
7883       # Append any errors to the config.log.
7884       cat conftest.err 1>&5
7885       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7886       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7887       if diff conftest.exp conftest.er2 >/dev/null; then
7888         lt_cv_prog_compiler_static_works=yes
7889       fi
7890     else
7891       lt_cv_prog_compiler_static_works=yes
7892     fi
7893   fi
7894   $RM -r conftest*
7895   LDFLAGS="$save_LDFLAGS"
7896
7897fi
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7899$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7900
7901if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7902    :
7903else
7904    lt_prog_compiler_static=
7905fi
7906
7907
7908
7909
7910
7911
7912
7913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7914$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7915if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7916  $as_echo_n "(cached) " >&6
7917else
7918  lt_cv_prog_compiler_c_o=no
7919   $RM -r conftest 2>/dev/null
7920   mkdir conftest
7921   cd conftest
7922   mkdir out
7923   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7924
7925   lt_compiler_flag="-o out/conftest2.$ac_objext"
7926   # Insert the option either (1) after the last *FLAGS variable, or
7927   # (2) before a word containing "conftest.", or (3) at the end.
7928   # Note that $ac_compile itself does not contain backslashes and begins
7929   # with a dollar sign (not a hyphen), so the echo should work correctly.
7930   lt_compile=`echo "$ac_compile" | $SED \
7931   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7932   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7933   -e 's:$: $lt_compiler_flag:'`
7934   (eval echo "\"\$as_me:7934: $lt_compile\"" >&5)
7935   (eval "$lt_compile" 2>out/conftest.err)
7936   ac_status=$?
7937   cat out/conftest.err >&5
7938   echo "$as_me:7938: \$? = $ac_status" >&5
7939   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7940   then
7941     # The compiler can only warn and ignore the option if not recognized
7942     # So say no if there are warnings
7943     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7944     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7945     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7946       lt_cv_prog_compiler_c_o=yes
7947     fi
7948   fi
7949   chmod u+w . 2>&5
7950   $RM conftest*
7951   # SGI C++ compiler will create directory out/ii_files/ for
7952   # template instantiation
7953   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7954   $RM out/* && rmdir out
7955   cd ..
7956   $RM -r conftest
7957   $RM conftest*
7958
7959fi
7960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7961$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7962
7963
7964
7965
7966
7967
7968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7969$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7970if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7971  $as_echo_n "(cached) " >&6
7972else
7973  lt_cv_prog_compiler_c_o=no
7974   $RM -r conftest 2>/dev/null
7975   mkdir conftest
7976   cd conftest
7977   mkdir out
7978   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7979
7980   lt_compiler_flag="-o out/conftest2.$ac_objext"
7981   # Insert the option either (1) after the last *FLAGS variable, or
7982   # (2) before a word containing "conftest.", or (3) at the end.
7983   # Note that $ac_compile itself does not contain backslashes and begins
7984   # with a dollar sign (not a hyphen), so the echo should work correctly.
7985   lt_compile=`echo "$ac_compile" | $SED \
7986   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7987   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7988   -e 's:$: $lt_compiler_flag:'`
7989   (eval echo "\"\$as_me:7989: $lt_compile\"" >&5)
7990   (eval "$lt_compile" 2>out/conftest.err)
7991   ac_status=$?
7992   cat out/conftest.err >&5
7993   echo "$as_me:7993: \$? = $ac_status" >&5
7994   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7995   then
7996     # The compiler can only warn and ignore the option if not recognized
7997     # So say no if there are warnings
7998     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7999     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8000     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8001       lt_cv_prog_compiler_c_o=yes
8002     fi
8003   fi
8004   chmod u+w . 2>&5
8005   $RM conftest*
8006   # SGI C++ compiler will create directory out/ii_files/ for
8007   # template instantiation
8008   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8009   $RM out/* && rmdir out
8010   cd ..
8011   $RM -r conftest
8012   $RM conftest*
8013
8014fi
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8016$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8017
8018
8019
8020
8021hard_links="nottested"
8022if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8023  # do not overwrite the value of need_locks provided by the user
8024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8025$as_echo_n "checking if we can lock with hard links... " >&6; }
8026  hard_links=yes
8027  $RM conftest*
8028  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8029  touch conftest.a
8030  ln conftest.a conftest.b 2>&5 || hard_links=no
8031  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8033$as_echo "$hard_links" >&6; }
8034  if test "$hard_links" = no; then
8035    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8036$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8037    need_locks=warn
8038  fi
8039else
8040  need_locks=no
8041fi
8042
8043
8044
8045
8046
8047
8048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8049$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8050
8051  runpath_var=
8052  allow_undefined_flag=
8053  always_export_symbols=no
8054  archive_cmds=
8055  archive_expsym_cmds=
8056  compiler_needs_object=no
8057  enable_shared_with_static_runtimes=no
8058  export_dynamic_flag_spec=
8059  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8060  hardcode_automatic=no
8061  hardcode_direct=no
8062  hardcode_direct_absolute=no
8063  hardcode_libdir_flag_spec=
8064  hardcode_libdir_flag_spec_ld=
8065  hardcode_libdir_separator=
8066  hardcode_minus_L=no
8067  hardcode_shlibpath_var=unsupported
8068  inherit_rpath=no
8069  link_all_deplibs=unknown
8070  module_cmds=
8071  module_expsym_cmds=
8072  old_archive_from_new_cmds=
8073  old_archive_from_expsyms_cmds=
8074  thread_safe_flag_spec=
8075  whole_archive_flag_spec=
8076  # include_expsyms should be a list of space-separated symbols to be *always*
8077  # included in the symbol list
8078  include_expsyms=
8079  # exclude_expsyms can be an extended regexp of symbols to exclude
8080  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8081  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8082  # as well as any symbol that contains `d'.
8083  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8084  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8085  # platforms (ab)use it in PIC code, but their linkers get confused if
8086  # the symbol is explicitly referenced.  Since portable code cannot
8087  # rely on this symbol name, it's probably fine to never include it in
8088  # preloaded symbol tables.
8089  # Exclude shared library initialization/finalization symbols.
8090  extract_expsyms_cmds=
8091
8092  case $host_os in
8093  cygwin* | mingw* | pw32* | cegcc*)
8094    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8095    # When not using gcc, we currently assume that we are using
8096    # Microsoft Visual C++.
8097    if test "$GCC" != yes; then
8098      with_gnu_ld=no
8099    fi
8100    ;;
8101  interix*)
8102    # we just hope/assume this is gcc and not c89 (= MSVC++)
8103    with_gnu_ld=yes
8104    ;;
8105  openbsd*)
8106    with_gnu_ld=no
8107    ;;
8108  esac
8109
8110  ld_shlibs=yes
8111  if test "$with_gnu_ld" = yes; then
8112    # If archive_cmds runs LD, not CC, wlarc should be empty
8113    wlarc='${wl}'
8114
8115    # Set some defaults for GNU ld with shared library support. These
8116    # are reset later if shared libraries are not supported. Putting them
8117    # here allows them to be overridden if necessary.
8118    runpath_var=LD_RUN_PATH
8119    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8120    export_dynamic_flag_spec='${wl}--export-dynamic'
8121    # ancient GNU ld didn't support --whole-archive et. al.
8122    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8123      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8124    else
8125      whole_archive_flag_spec=
8126    fi
8127    supports_anon_versioning=no
8128    case `$LD -v 2>&1` in
8129      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8130      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8131      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8132      *\ 2.11.*) ;; # other 2.11 versions
8133      *) supports_anon_versioning=yes ;;
8134    esac
8135
8136    # See if GNU ld supports shared libraries.
8137    case $host_os in
8138    aix[3-9]*)
8139      # On AIX/PPC, the GNU linker is very broken
8140      if test "$host_cpu" != ia64; then
8141	ld_shlibs=no
8142	cat <<_LT_EOF 1>&2
8143
8144*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8145*** to be unable to reliably create shared libraries on AIX.
8146*** Therefore, libtool is disabling shared libraries support.  If you
8147*** really care for shared libraries, you may want to modify your PATH
8148*** so that a non-GNU linker is found, and then restart.
8149
8150_LT_EOF
8151      fi
8152      ;;
8153
8154    amigaos*)
8155      case $host_cpu in
8156      powerpc)
8157            # see comment about AmigaOS4 .so support
8158            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8159            archive_expsym_cmds=''
8160        ;;
8161      m68k)
8162            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)'
8163            hardcode_libdir_flag_spec='-L$libdir'
8164            hardcode_minus_L=yes
8165        ;;
8166      esac
8167      ;;
8168
8169    beos*)
8170      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8171	allow_undefined_flag=unsupported
8172	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8173	# support --undefined.  This deserves some investigation.  FIXME
8174	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8175      else
8176	ld_shlibs=no
8177      fi
8178      ;;
8179
8180    cygwin* | mingw* | pw32* | cegcc*)
8181      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8182      # as there is no search path for DLLs.
8183      hardcode_libdir_flag_spec='-L$libdir'
8184      allow_undefined_flag=unsupported
8185      always_export_symbols=no
8186      enable_shared_with_static_runtimes=yes
8187      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8188
8189      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8190        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8191	# If the export-symbols file already is a .def file (1st line
8192	# is EXPORTS), use it as is; otherwise, prepend...
8193	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8194	  cp $export_symbols $output_objdir/$soname.def;
8195	else
8196	  echo EXPORTS > $output_objdir/$soname.def;
8197	  cat $export_symbols >> $output_objdir/$soname.def;
8198	fi~
8199	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8200      else
8201	ld_shlibs=no
8202      fi
8203      ;;
8204
8205    interix[3-9]*)
8206      hardcode_direct=no
8207      hardcode_shlibpath_var=no
8208      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8209      export_dynamic_flag_spec='${wl}-E'
8210      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8211      # Instead, shared libraries are loaded at an image base (0x10000000 by
8212      # default) and relocated if they conflict, which is a slow very memory
8213      # consuming and fragmenting process.  To avoid this, we pick a random,
8214      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8215      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8216      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8217      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'
8218      ;;
8219
8220    gnu* | linux* | tpf* | k*bsd*-gnu)
8221      tmp_diet=no
8222      if test "$host_os" = linux-dietlibc; then
8223	case $cc_basename in
8224	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8225	esac
8226      fi
8227      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8228	 && test "$tmp_diet" = no
8229      then
8230	tmp_addflag=
8231	tmp_sharedflag='-shared'
8232	case $cc_basename,$host_cpu in
8233        pgcc*)				# Portland Group C compiler
8234	  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'
8235	  tmp_addflag=' $pic_flag'
8236	  ;;
8237	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8238	  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'
8239	  tmp_addflag=' $pic_flag -Mnomain' ;;
8240	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8241	  tmp_addflag=' -i_dynamic' ;;
8242	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8243	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8244	ifc* | ifort*)			# Intel Fortran compiler
8245	  tmp_addflag=' -nofor_main' ;;
8246	lf95*)				# Lahey Fortran 8.1
8247	  whole_archive_flag_spec=
8248	  tmp_sharedflag='--shared' ;;
8249	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8250	  tmp_sharedflag='-qmkshrobj'
8251	  tmp_addflag= ;;
8252	esac
8253	case `$CC -V 2>&1 | sed 5q` in
8254	*Sun\ C*)			# Sun C 5.9
8255	  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'
8256	  compiler_needs_object=yes
8257	  tmp_sharedflag='-G' ;;
8258	*Sun\ F*)			# Sun Fortran 8.3
8259	  tmp_sharedflag='-G' ;;
8260	esac
8261	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8262
8263        if test "x$supports_anon_versioning" = xyes; then
8264          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8265	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8266	    echo "local: *; };" >> $output_objdir/$libname.ver~
8267	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8268        fi
8269
8270	case $cc_basename in
8271	xlf*)
8272	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8273	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8274	  hardcode_libdir_flag_spec=
8275	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8276	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8277	  if test "x$supports_anon_versioning" = xyes; then
8278	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8279	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8280	      echo "local: *; };" >> $output_objdir/$libname.ver~
8281	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8282	  fi
8283	  ;;
8284	esac
8285      else
8286        ld_shlibs=no
8287      fi
8288      ;;
8289
8290    netbsd*)
8291      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8292	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8293	wlarc=
8294      else
8295	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8296	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8297      fi
8298      ;;
8299
8300    solaris*)
8301      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8302	ld_shlibs=no
8303	cat <<_LT_EOF 1>&2
8304
8305*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8306*** create shared libraries on Solaris systems.  Therefore, libtool
8307*** is disabling shared libraries support.  We urge you to upgrade GNU
8308*** binutils to release 2.9.1 or newer.  Another option is to modify
8309*** your PATH or compiler configuration so that the native linker is
8310*** used, and then restart.
8311
8312_LT_EOF
8313      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8314	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8315	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8316      else
8317	ld_shlibs=no
8318      fi
8319      ;;
8320
8321    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8322      case `$LD -v 2>&1` in
8323        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8324	ld_shlibs=no
8325	cat <<_LT_EOF 1>&2
8326
8327*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8328*** reliably create shared libraries on SCO systems.  Therefore, libtool
8329*** is disabling shared libraries support.  We urge you to upgrade GNU
8330*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8331*** your PATH or compiler configuration so that the native linker is
8332*** used, and then restart.
8333
8334_LT_EOF
8335	;;
8336	*)
8337	  # For security reasons, it is highly recommended that you always
8338	  # use absolute paths for naming shared libraries, and exclude the
8339	  # DT_RUNPATH tag from executables and libraries.  But doing so
8340	  # requires that you compile everything twice, which is a pain.
8341	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8342	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8343	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8344	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8345	  else
8346	    ld_shlibs=no
8347	  fi
8348	;;
8349      esac
8350      ;;
8351
8352    sunos4*)
8353      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8354      wlarc=
8355      hardcode_direct=yes
8356      hardcode_shlibpath_var=no
8357      ;;
8358
8359    *)
8360      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8361	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8362	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8363      else
8364	ld_shlibs=no
8365      fi
8366      ;;
8367    esac
8368
8369    if test "$ld_shlibs" = no; then
8370      runpath_var=
8371      hardcode_libdir_flag_spec=
8372      export_dynamic_flag_spec=
8373      whole_archive_flag_spec=
8374    fi
8375  else
8376    # PORTME fill in a description of your system's linker (not GNU ld)
8377    case $host_os in
8378    aix3*)
8379      allow_undefined_flag=unsupported
8380      always_export_symbols=yes
8381      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'
8382      # Note: this linker hardcodes the directories in LIBPATH if there
8383      # are no directories specified by -L.
8384      hardcode_minus_L=yes
8385      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8386	# Neither direct hardcoding nor static linking is supported with a
8387	# broken collect2.
8388	hardcode_direct=unsupported
8389      fi
8390      ;;
8391
8392    aix[4-9]*)
8393      if test "$host_cpu" = ia64; then
8394	# On IA64, the linker does run time linking by default, so we don't
8395	# have to do anything special.
8396	aix_use_runtimelinking=no
8397	exp_sym_flag='-Bexport'
8398	no_entry_flag=""
8399      else
8400	# If we're using GNU nm, then we don't want the "-C" option.
8401	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8402	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8403	  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'
8404	else
8405	  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'
8406	fi
8407	aix_use_runtimelinking=no
8408
8409	# Test if we are trying to use run time linking or normal
8410	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8411	# need to do runtime linking.
8412	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8413	  for ld_flag in $LDFLAGS; do
8414	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8415	    aix_use_runtimelinking=yes
8416	    break
8417	  fi
8418	  done
8419	  ;;
8420	esac
8421
8422	exp_sym_flag='-bexport'
8423	no_entry_flag='-bnoentry'
8424      fi
8425
8426      # When large executables or shared objects are built, AIX ld can
8427      # have problems creating the table of contents.  If linking a library
8428      # or program results in "error TOC overflow" add -mminimal-toc to
8429      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8430      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8431
8432      archive_cmds=''
8433      hardcode_direct=yes
8434      hardcode_direct_absolute=yes
8435      hardcode_libdir_separator=':'
8436      link_all_deplibs=yes
8437      file_list_spec='${wl}-f,'
8438
8439      if test "$GCC" = yes; then
8440	case $host_os in aix4.[012]|aix4.[012].*)
8441	# We only want to do this on AIX 4.2 and lower, the check
8442	# below for broken collect2 doesn't work under 4.3+
8443	  collect2name=`${CC} -print-prog-name=collect2`
8444	  if test -f "$collect2name" &&
8445	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8446	  then
8447	  # We have reworked collect2
8448	  :
8449	  else
8450	  # We have old collect2
8451	  hardcode_direct=unsupported
8452	  # It fails to find uninstalled libraries when the uninstalled
8453	  # path is not listed in the libpath.  Setting hardcode_minus_L
8454	  # to unsupported forces relinking
8455	  hardcode_minus_L=yes
8456	  hardcode_libdir_flag_spec='-L$libdir'
8457	  hardcode_libdir_separator=
8458	  fi
8459	  ;;
8460	esac
8461	shared_flag='-shared'
8462	if test "$aix_use_runtimelinking" = yes; then
8463	  shared_flag="$shared_flag "'${wl}-G'
8464	fi
8465      else
8466	# not using gcc
8467	if test "$host_cpu" = ia64; then
8468	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8469	# chokes on -Wl,-G. The following line is correct:
8470	  shared_flag='-G'
8471	else
8472	  if test "$aix_use_runtimelinking" = yes; then
8473	    shared_flag='${wl}-G'
8474	  else
8475	    shared_flag='${wl}-bM:SRE'
8476	  fi
8477	fi
8478      fi
8479
8480      export_dynamic_flag_spec='${wl}-bexpall'
8481      # It seems that -bexpall does not export symbols beginning with
8482      # underscore (_), so it is better to generate a list of symbols to export.
8483      always_export_symbols=yes
8484      if test "$aix_use_runtimelinking" = yes; then
8485	# Warning - without using the other runtime loading flags (-brtl),
8486	# -berok will link without error, but may produce a broken library.
8487	allow_undefined_flag='-berok'
8488        # Determine the default libpath from the value encoded in an
8489        # empty executable.
8490        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491/* end confdefs.h.  */
8492
8493int
8494main ()
8495{
8496
8497  ;
8498  return 0;
8499}
8500_ACEOF
8501if ac_fn_c_try_link "$LINENO"; then :
8502
8503lt_aix_libpath_sed='
8504    /Import File Strings/,/^$/ {
8505	/^0/ {
8506	    s/^0  *\(.*\)$/\1/
8507	    p
8508	}
8509    }'
8510aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8511# Check for a 64-bit object if we didn't find anything.
8512if test -z "$aix_libpath"; then
8513  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8514fi
8515fi
8516rm -f core conftest.err conftest.$ac_objext \
8517    conftest$ac_exeext conftest.$ac_ext
8518if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8519
8520        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8521        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"
8522      else
8523	if test "$host_cpu" = ia64; then
8524	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8525	  allow_undefined_flag="-z nodefs"
8526	  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"
8527	else
8528	 # Determine the default libpath from the value encoded in an
8529	 # empty executable.
8530	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531/* end confdefs.h.  */
8532
8533int
8534main ()
8535{
8536
8537  ;
8538  return 0;
8539}
8540_ACEOF
8541if ac_fn_c_try_link "$LINENO"; then :
8542
8543lt_aix_libpath_sed='
8544    /Import File Strings/,/^$/ {
8545	/^0/ {
8546	    s/^0  *\(.*\)$/\1/
8547	    p
8548	}
8549    }'
8550aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8551# Check for a 64-bit object if we didn't find anything.
8552if test -z "$aix_libpath"; then
8553  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8554fi
8555fi
8556rm -f core conftest.err conftest.$ac_objext \
8557    conftest$ac_exeext conftest.$ac_ext
8558if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8559
8560	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8561	  # Warning - without using the other run time loading flags,
8562	  # -berok will link without error, but may produce a broken library.
8563	  no_undefined_flag=' ${wl}-bernotok'
8564	  allow_undefined_flag=' ${wl}-berok'
8565	  # Exported symbols can be pulled into shared objects from archives
8566	  whole_archive_flag_spec='$convenience'
8567	  archive_cmds_need_lc=yes
8568	  # This is similar to how AIX traditionally builds its shared libraries.
8569	  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'
8570	fi
8571      fi
8572      ;;
8573
8574    amigaos*)
8575      case $host_cpu in
8576      powerpc)
8577            # see comment about AmigaOS4 .so support
8578            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579            archive_expsym_cmds=''
8580        ;;
8581      m68k)
8582            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)'
8583            hardcode_libdir_flag_spec='-L$libdir'
8584            hardcode_minus_L=yes
8585        ;;
8586      esac
8587      ;;
8588
8589    bsdi[45]*)
8590      export_dynamic_flag_spec=-rdynamic
8591      ;;
8592
8593    cygwin* | mingw* | pw32* | cegcc*)
8594      # When not using gcc, we currently assume that we are using
8595      # Microsoft Visual C++.
8596      # hardcode_libdir_flag_spec is actually meaningless, as there is
8597      # no search path for DLLs.
8598      hardcode_libdir_flag_spec=' '
8599      allow_undefined_flag=unsupported
8600      # Tell ltmain to make .lib files, not .a files.
8601      libext=lib
8602      # Tell ltmain to make .dll files, not .so files.
8603      shrext_cmds=".dll"
8604      # FIXME: Setting linknames here is a bad hack.
8605      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8606      # The linker will automatically build a .lib file if we build a DLL.
8607      old_archive_from_new_cmds='true'
8608      # FIXME: Should let the user specify the lib program.
8609      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8610      fix_srcfile_path='`cygpath -w "$srcfile"`'
8611      enable_shared_with_static_runtimes=yes
8612      ;;
8613
8614    darwin* | rhapsody*)
8615
8616
8617  archive_cmds_need_lc=no
8618  hardcode_direct=no
8619  hardcode_automatic=yes
8620  hardcode_shlibpath_var=unsupported
8621  whole_archive_flag_spec=''
8622  link_all_deplibs=yes
8623  allow_undefined_flag="$_lt_dar_allow_undefined"
8624  case $cc_basename in
8625     ifort*) _lt_dar_can_shared=yes ;;
8626     *) _lt_dar_can_shared=$GCC ;;
8627  esac
8628  if test "$_lt_dar_can_shared" = "yes"; then
8629    output_verbose_link_cmd=echo
8630    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8631    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8632    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}"
8633    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}"
8634
8635  else
8636  ld_shlibs=no
8637  fi
8638
8639      ;;
8640
8641    dgux*)
8642      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8643      hardcode_libdir_flag_spec='-L$libdir'
8644      hardcode_shlibpath_var=no
8645      ;;
8646
8647    freebsd1*)
8648      ld_shlibs=no
8649      ;;
8650
8651    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8652    # support.  Future versions do this automatically, but an explicit c++rt0.o
8653    # does not break anything, and helps significantly (at the cost of a little
8654    # extra space).
8655    freebsd2.2*)
8656      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8657      hardcode_libdir_flag_spec='-R$libdir'
8658      hardcode_direct=yes
8659      hardcode_shlibpath_var=no
8660      ;;
8661
8662    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8663    freebsd2*)
8664      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8665      hardcode_direct=yes
8666      hardcode_minus_L=yes
8667      hardcode_shlibpath_var=no
8668      ;;
8669
8670    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8671    freebsd* | dragonfly*)
8672      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8673      hardcode_libdir_flag_spec='-R$libdir'
8674      hardcode_direct=yes
8675      hardcode_shlibpath_var=no
8676      ;;
8677
8678    hpux9*)
8679      if test "$GCC" = yes; then
8680	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'
8681      else
8682	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'
8683      fi
8684      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8685      hardcode_libdir_separator=:
8686      hardcode_direct=yes
8687
8688      # hardcode_minus_L: Not really in the search PATH,
8689      # but as the default location of the library.
8690      hardcode_minus_L=yes
8691      export_dynamic_flag_spec='${wl}-E'
8692      ;;
8693
8694    hpux10*)
8695      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8696	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8697      else
8698	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8699      fi
8700      if test "$with_gnu_ld" = no; then
8701	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8702	hardcode_libdir_flag_spec_ld='+b $libdir'
8703	hardcode_libdir_separator=:
8704	hardcode_direct=yes
8705	hardcode_direct_absolute=yes
8706	export_dynamic_flag_spec='${wl}-E'
8707	# hardcode_minus_L: Not really in the search PATH,
8708	# but as the default location of the library.
8709	hardcode_minus_L=yes
8710      fi
8711      ;;
8712
8713    hpux11*)
8714      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8715	case $host_cpu in
8716	hppa*64*)
8717	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8718	  ;;
8719	ia64*)
8720	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8721	  ;;
8722	*)
8723	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8724	  ;;
8725	esac
8726      else
8727	case $host_cpu in
8728	hppa*64*)
8729	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8730	  ;;
8731	ia64*)
8732	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8733	  ;;
8734	*)
8735	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8736	  ;;
8737	esac
8738      fi
8739      if test "$with_gnu_ld" = no; then
8740	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8741	hardcode_libdir_separator=:
8742
8743	case $host_cpu in
8744	hppa*64*|ia64*)
8745	  hardcode_direct=no
8746	  hardcode_shlibpath_var=no
8747	  ;;
8748	*)
8749	  hardcode_direct=yes
8750	  hardcode_direct_absolute=yes
8751	  export_dynamic_flag_spec='${wl}-E'
8752
8753	  # hardcode_minus_L: Not really in the search PATH,
8754	  # but as the default location of the library.
8755	  hardcode_minus_L=yes
8756	  ;;
8757	esac
8758      fi
8759      ;;
8760
8761    irix5* | irix6* | nonstopux*)
8762      if test "$GCC" = yes; then
8763	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'
8764	# Try to use the -exported_symbol ld option, if it does not
8765	# work, assume that -exports_file does not work either and
8766	# implicitly export all symbols.
8767        save_LDFLAGS="$LDFLAGS"
8768        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8769        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770/* end confdefs.h.  */
8771int foo(void) {}
8772_ACEOF
8773if ac_fn_c_try_link "$LINENO"; then :
8774  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'
8775
8776fi
8777rm -f core conftest.err conftest.$ac_objext \
8778    conftest$ac_exeext conftest.$ac_ext
8779        LDFLAGS="$save_LDFLAGS"
8780      else
8781	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'
8782	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'
8783      fi
8784      archive_cmds_need_lc='no'
8785      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8786      hardcode_libdir_separator=:
8787      inherit_rpath=yes
8788      link_all_deplibs=yes
8789      ;;
8790
8791    netbsd*)
8792      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8793	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8794      else
8795	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8796      fi
8797      hardcode_libdir_flag_spec='-R$libdir'
8798      hardcode_direct=yes
8799      hardcode_shlibpath_var=no
8800      ;;
8801
8802    newsos6)
8803      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8804      hardcode_direct=yes
8805      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8806      hardcode_libdir_separator=:
8807      hardcode_shlibpath_var=no
8808      ;;
8809
8810    *nto* | *qnx*)
8811      ;;
8812
8813    openbsd*)
8814      if test -f /usr/libexec/ld.so; then
8815	hardcode_direct=yes
8816	hardcode_shlibpath_var=no
8817	hardcode_direct_absolute=yes
8818	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8819	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8820	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8821	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8822	  export_dynamic_flag_spec='${wl}-E'
8823	else
8824	  case $host_os in
8825	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8826	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8827	     hardcode_libdir_flag_spec='-R$libdir'
8828	     ;;
8829	   *)
8830	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8831	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8832	     ;;
8833	  esac
8834	fi
8835      else
8836	ld_shlibs=no
8837      fi
8838      ;;
8839
8840    os2*)
8841      hardcode_libdir_flag_spec='-L$libdir'
8842      hardcode_minus_L=yes
8843      allow_undefined_flag=unsupported
8844      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'
8845      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8846      ;;
8847
8848    osf3*)
8849      if test "$GCC" = yes; then
8850	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8851	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'
8852      else
8853	allow_undefined_flag=' -expect_unresolved \*'
8854	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'
8855      fi
8856      archive_cmds_need_lc='no'
8857      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8858      hardcode_libdir_separator=:
8859      ;;
8860
8861    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8862      if test "$GCC" = yes; then
8863	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8864	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'
8865	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8866      else
8867	allow_undefined_flag=' -expect_unresolved \*'
8868	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'
8869	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~
8870	$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'
8871
8872	# Both c and cxx compiler support -rpath directly
8873	hardcode_libdir_flag_spec='-rpath $libdir'
8874      fi
8875      archive_cmds_need_lc='no'
8876      hardcode_libdir_separator=:
8877      ;;
8878
8879    solaris*)
8880      no_undefined_flag=' -z defs'
8881      if test "$GCC" = yes; then
8882	wlarc='${wl}'
8883	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8884	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8885	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8886      else
8887	case `$CC -V 2>&1` in
8888	*"Compilers 5.0"*)
8889	  wlarc=''
8890	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8891	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8892	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8893	  ;;
8894	*)
8895	  wlarc='${wl}'
8896	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8897	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8898	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8899	  ;;
8900	esac
8901      fi
8902      hardcode_libdir_flag_spec='-R$libdir'
8903      hardcode_shlibpath_var=no
8904      case $host_os in
8905      solaris2.[0-5] | solaris2.[0-5].*) ;;
8906      *)
8907	# The compiler driver will combine and reorder linker options,
8908	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8909	# but is careful enough not to reorder.
8910	# Supported since Solaris 2.6 (maybe 2.5.1?)
8911	if test "$GCC" = yes; then
8912	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8913	else
8914	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8915	fi
8916	;;
8917      esac
8918      link_all_deplibs=yes
8919      ;;
8920
8921    sunos4*)
8922      if test "x$host_vendor" = xsequent; then
8923	# Use $CC to link under sequent, because it throws in some extra .o
8924	# files that make .init and .fini sections work.
8925	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8926      else
8927	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8928      fi
8929      hardcode_libdir_flag_spec='-L$libdir'
8930      hardcode_direct=yes
8931      hardcode_minus_L=yes
8932      hardcode_shlibpath_var=no
8933      ;;
8934
8935    sysv4)
8936      case $host_vendor in
8937	sni)
8938	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8939	  hardcode_direct=yes # is this really true???
8940	;;
8941	siemens)
8942	  ## LD is ld it makes a PLAMLIB
8943	  ## CC just makes a GrossModule.
8944	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8945	  reload_cmds='$CC -r -o $output$reload_objs'
8946	  hardcode_direct=no
8947        ;;
8948	motorola)
8949	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8950	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8951	;;
8952      esac
8953      runpath_var='LD_RUN_PATH'
8954      hardcode_shlibpath_var=no
8955      ;;
8956
8957    sysv4.3*)
8958      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8959      hardcode_shlibpath_var=no
8960      export_dynamic_flag_spec='-Bexport'
8961      ;;
8962
8963    sysv4*MP*)
8964      if test -d /usr/nec; then
8965	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8966	hardcode_shlibpath_var=no
8967	runpath_var=LD_RUN_PATH
8968	hardcode_runpath_var=yes
8969	ld_shlibs=yes
8970      fi
8971      ;;
8972
8973    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8974      no_undefined_flag='${wl}-z,text'
8975      archive_cmds_need_lc=no
8976      hardcode_shlibpath_var=no
8977      runpath_var='LD_RUN_PATH'
8978
8979      if test "$GCC" = yes; then
8980	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8981	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8982      else
8983	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8984	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8985      fi
8986      ;;
8987
8988    sysv5* | sco3.2v5* | sco5v6*)
8989      # Note: We can NOT use -z defs as we might desire, because we do not
8990      # link with -lc, and that would cause any symbols used from libc to
8991      # always be unresolved, which means just about no library would
8992      # ever link correctly.  If we're not using GNU ld we use -z text
8993      # though, which does catch some bad symbols but isn't as heavy-handed
8994      # as -z defs.
8995      no_undefined_flag='${wl}-z,text'
8996      allow_undefined_flag='${wl}-z,nodefs'
8997      archive_cmds_need_lc=no
8998      hardcode_shlibpath_var=no
8999      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9000      hardcode_libdir_separator=':'
9001      link_all_deplibs=yes
9002      export_dynamic_flag_spec='${wl}-Bexport'
9003      runpath_var='LD_RUN_PATH'
9004
9005      if test "$GCC" = yes; then
9006	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9007	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9008      else
9009	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9010	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9011      fi
9012      ;;
9013
9014    uts4*)
9015      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016      hardcode_libdir_flag_spec='-L$libdir'
9017      hardcode_shlibpath_var=no
9018      ;;
9019
9020    *)
9021      ld_shlibs=no
9022      ;;
9023    esac
9024
9025    if test x$host_vendor = xsni; then
9026      case $host in
9027      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9028	export_dynamic_flag_spec='${wl}-Blargedynsym'
9029	;;
9030      esac
9031    fi
9032  fi
9033
9034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9035$as_echo "$ld_shlibs" >&6; }
9036test "$ld_shlibs" = no && can_build_shared=no
9037
9038with_gnu_ld=$with_gnu_ld
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054#
9055# Do we need to explicitly link libc?
9056#
9057case "x$archive_cmds_need_lc" in
9058x|xyes)
9059  # Assume -lc should be added
9060  archive_cmds_need_lc=yes
9061
9062  if test "$enable_shared" = yes && test "$GCC" = yes; then
9063    case $archive_cmds in
9064    *'~'*)
9065      # FIXME: we may have to deal with multi-command sequences.
9066      ;;
9067    '$CC '*)
9068      # Test whether the compiler implicitly links with -lc since on some
9069      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9070      # to ld, don't add -lc before -lgcc.
9071      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9072$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9073      $RM conftest*
9074      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9075
9076      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9077  (eval $ac_compile) 2>&5
9078  ac_status=$?
9079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9080  test $ac_status = 0; } 2>conftest.err; then
9081        soname=conftest
9082        lib=conftest
9083        libobjs=conftest.$ac_objext
9084        deplibs=
9085        wl=$lt_prog_compiler_wl
9086	pic_flag=$lt_prog_compiler_pic
9087        compiler_flags=-v
9088        linker_flags=-v
9089        verstring=
9090        output_objdir=.
9091        libname=conftest
9092        lt_save_allow_undefined_flag=$allow_undefined_flag
9093        allow_undefined_flag=
9094        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9095  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9096  ac_status=$?
9097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9098  test $ac_status = 0; }
9099        then
9100	  archive_cmds_need_lc=no
9101        else
9102	  archive_cmds_need_lc=yes
9103        fi
9104        allow_undefined_flag=$lt_save_allow_undefined_flag
9105      else
9106        cat conftest.err 1>&5
9107      fi
9108      $RM conftest*
9109      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9110$as_echo "$archive_cmds_need_lc" >&6; }
9111      ;;
9112    esac
9113  fi
9114  ;;
9115esac
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9274$as_echo_n "checking dynamic linker characteristics... " >&6; }
9275
9276if test "$GCC" = yes; then
9277  case $host_os in
9278    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9279    *) lt_awk_arg="/^libraries:/" ;;
9280  esac
9281  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9282  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9283    # if the path contains ";" then we assume it to be the separator
9284    # otherwise default to the standard path separator (i.e. ":") - it is
9285    # assumed that no part of a normal pathname contains ";" but that should
9286    # okay in the real world where ";" in dirpaths is itself problematic.
9287    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9288  else
9289    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9290  fi
9291  # Ok, now we have the path, separated by spaces, we can step through it
9292  # and add multilib dir if necessary.
9293  lt_tmp_lt_search_path_spec=
9294  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9295  for lt_sys_path in $lt_search_path_spec; do
9296    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9297      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9298    else
9299      test -d "$lt_sys_path" && \
9300	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9301    fi
9302  done
9303  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9304BEGIN {RS=" "; FS="/|\n";} {
9305  lt_foo="";
9306  lt_count=0;
9307  for (lt_i = NF; lt_i > 0; lt_i--) {
9308    if ($lt_i != "" && $lt_i != ".") {
9309      if ($lt_i == "..") {
9310        lt_count++;
9311      } else {
9312        if (lt_count == 0) {
9313          lt_foo="/" $lt_i lt_foo;
9314        } else {
9315          lt_count--;
9316        }
9317      }
9318    }
9319  }
9320  if (lt_foo != "") { lt_freq[lt_foo]++; }
9321  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9322}'`
9323  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9324else
9325  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9326fi
9327library_names_spec=
9328libname_spec='lib$name'
9329soname_spec=
9330shrext_cmds=".so"
9331postinstall_cmds=
9332postuninstall_cmds=
9333finish_cmds=
9334finish_eval=
9335shlibpath_var=
9336shlibpath_overrides_runpath=unknown
9337version_type=none
9338dynamic_linker="$host_os ld.so"
9339sys_lib_dlsearch_path_spec="/lib /usr/lib"
9340need_lib_prefix=unknown
9341hardcode_into_libs=no
9342
9343# when you set need_version to no, make sure it does not cause -set_version
9344# flags to be left without arguments
9345need_version=unknown
9346
9347case $host_os in
9348aix3*)
9349  version_type=linux
9350  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9351  shlibpath_var=LIBPATH
9352
9353  # AIX 3 has no versioning support, so we append a major version to the name.
9354  soname_spec='${libname}${release}${shared_ext}$major'
9355  ;;
9356
9357aix[4-9]*)
9358  version_type=linux
9359  need_lib_prefix=no
9360  need_version=no
9361  hardcode_into_libs=yes
9362  if test "$host_cpu" = ia64; then
9363    # AIX 5 supports IA64
9364    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9365    shlibpath_var=LD_LIBRARY_PATH
9366  else
9367    # With GCC up to 2.95.x, collect2 would create an import file
9368    # for dependence libraries.  The import file would start with
9369    # the line `#! .'.  This would cause the generated library to
9370    # depend on `.', always an invalid library.  This was fixed in
9371    # development snapshots of GCC prior to 3.0.
9372    case $host_os in
9373      aix4 | aix4.[01] | aix4.[01].*)
9374      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9375	   echo ' yes '
9376	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9377	:
9378      else
9379	can_build_shared=no
9380      fi
9381      ;;
9382    esac
9383    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9384    # soname into executable. Probably we can add versioning support to
9385    # collect2, so additional links can be useful in future.
9386    if test "$aix_use_runtimelinking" = yes; then
9387      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9388      # instead of lib<name>.a to let people know that these are not
9389      # typical AIX shared libraries.
9390      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9391    else
9392      # We preserve .a as extension for shared libraries through AIX4.2
9393      # and later when we are not doing run time linking.
9394      library_names_spec='${libname}${release}.a $libname.a'
9395      soname_spec='${libname}${release}${shared_ext}$major'
9396    fi
9397    shlibpath_var=LIBPATH
9398  fi
9399  ;;
9400
9401amigaos*)
9402  case $host_cpu in
9403  powerpc)
9404    # Since July 2007 AmigaOS4 officially supports .so libraries.
9405    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9406    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9407    ;;
9408  m68k)
9409    library_names_spec='$libname.ixlibrary $libname.a'
9410    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9411    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'
9412    ;;
9413  esac
9414  ;;
9415
9416beos*)
9417  library_names_spec='${libname}${shared_ext}'
9418  dynamic_linker="$host_os ld.so"
9419  shlibpath_var=LIBRARY_PATH
9420  ;;
9421
9422bsdi[45]*)
9423  version_type=linux
9424  need_version=no
9425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9426  soname_spec='${libname}${release}${shared_ext}$major'
9427  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9428  shlibpath_var=LD_LIBRARY_PATH
9429  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9430  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9431  # the default ld.so.conf also contains /usr/contrib/lib and
9432  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9433  # libtool to hard-code these into programs
9434  ;;
9435
9436cygwin* | mingw* | pw32* | cegcc*)
9437  version_type=windows
9438  shrext_cmds=".dll"
9439  need_version=no
9440  need_lib_prefix=no
9441
9442  case $GCC,$host_os in
9443  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9444    library_names_spec='$libname.dll.a'
9445    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9446    postinstall_cmds='base_file=`basename \${file}`~
9447      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9448      dldir=$destdir/`dirname \$dlpath`~
9449      test -d \$dldir || mkdir -p \$dldir~
9450      $install_prog $dir/$dlname \$dldir/$dlname~
9451      chmod a+x \$dldir/$dlname~
9452      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9453        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9454      fi'
9455    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9456      dlpath=$dir/\$dldll~
9457       $RM \$dlpath'
9458    shlibpath_overrides_runpath=yes
9459
9460    case $host_os in
9461    cygwin*)
9462      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9463      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9464      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9465      ;;
9466    mingw* | cegcc*)
9467      # MinGW DLLs use traditional 'lib' prefix
9468      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9469      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9470      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9471        # It is most probably a Windows format PATH printed by
9472        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9473        # path with ; separators, and with drive letters. We can handle the
9474        # drive letters (cygwin fileutils understands them), so leave them,
9475        # especially as we might pass files found there to a mingw objdump,
9476        # which wouldn't understand a cygwinified path. Ahh.
9477        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9478      else
9479        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9480      fi
9481      ;;
9482    pw32*)
9483      # pw32 DLLs use 'pw' prefix rather than 'lib'
9484      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9485      ;;
9486    esac
9487    ;;
9488
9489  *)
9490    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9491    ;;
9492  esac
9493  dynamic_linker='Win32 ld.exe'
9494  # FIXME: first we should search . and the directory the executable is in
9495  shlibpath_var=PATH
9496  ;;
9497
9498darwin* | rhapsody*)
9499  dynamic_linker="$host_os dyld"
9500  version_type=darwin
9501  need_lib_prefix=no
9502  need_version=no
9503  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9504  soname_spec='${libname}${release}${major}$shared_ext'
9505  shlibpath_overrides_runpath=yes
9506  shlibpath_var=DYLD_LIBRARY_PATH
9507  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9508
9509  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9510  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9511  ;;
9512
9513dgux*)
9514  version_type=linux
9515  need_lib_prefix=no
9516  need_version=no
9517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9518  soname_spec='${libname}${release}${shared_ext}$major'
9519  shlibpath_var=LD_LIBRARY_PATH
9520  ;;
9521
9522freebsd1*)
9523  dynamic_linker=no
9524  ;;
9525
9526freebsd* | dragonfly*)
9527  # DragonFly does not have aout.  When/if they implement a new
9528  # versioning mechanism, adjust this.
9529  if test -x /usr/bin/objformat; then
9530    objformat=`/usr/bin/objformat`
9531  else
9532    case $host_os in
9533    freebsd[123]*) objformat=aout ;;
9534    *) objformat=elf ;;
9535    esac
9536  fi
9537  version_type=freebsd-$objformat
9538  case $version_type in
9539    freebsd-elf*)
9540      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9541      need_version=no
9542      need_lib_prefix=no
9543      ;;
9544    freebsd-*)
9545      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9546      need_version=yes
9547      ;;
9548  esac
9549  shlibpath_var=LD_LIBRARY_PATH
9550  case $host_os in
9551  freebsd2*)
9552    shlibpath_overrides_runpath=yes
9553    ;;
9554  freebsd3.[01]* | freebsdelf3.[01]*)
9555    shlibpath_overrides_runpath=yes
9556    hardcode_into_libs=yes
9557    ;;
9558  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9559  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9560    shlibpath_overrides_runpath=no
9561    hardcode_into_libs=yes
9562    ;;
9563  *) # from 4.6 on, and DragonFly
9564    shlibpath_overrides_runpath=yes
9565    hardcode_into_libs=yes
9566    ;;
9567  esac
9568  ;;
9569
9570gnu*)
9571  version_type=linux
9572  need_lib_prefix=no
9573  need_version=no
9574  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9575  soname_spec='${libname}${release}${shared_ext}$major'
9576  shlibpath_var=LD_LIBRARY_PATH
9577  hardcode_into_libs=yes
9578  ;;
9579
9580hpux9* | hpux10* | hpux11*)
9581  # Give a soname corresponding to the major version so that dld.sl refuses to
9582  # link against other versions.
9583  version_type=sunos
9584  need_lib_prefix=no
9585  need_version=no
9586  case $host_cpu in
9587  ia64*)
9588    shrext_cmds='.so'
9589    hardcode_into_libs=yes
9590    dynamic_linker="$host_os dld.so"
9591    shlibpath_var=LD_LIBRARY_PATH
9592    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9593    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9594    soname_spec='${libname}${release}${shared_ext}$major'
9595    if test "X$HPUX_IA64_MODE" = X32; then
9596      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9597    else
9598      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9599    fi
9600    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9601    ;;
9602  hppa*64*)
9603    shrext_cmds='.sl'
9604    hardcode_into_libs=yes
9605    dynamic_linker="$host_os dld.sl"
9606    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9607    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9608    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609    soname_spec='${libname}${release}${shared_ext}$major'
9610    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9611    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9612    ;;
9613  *)
9614    shrext_cmds='.sl'
9615    dynamic_linker="$host_os dld.sl"
9616    shlibpath_var=SHLIB_PATH
9617    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9618    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9619    soname_spec='${libname}${release}${shared_ext}$major'
9620    ;;
9621  esac
9622  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9623  postinstall_cmds='chmod 555 $lib'
9624  ;;
9625
9626interix[3-9]*)
9627  version_type=linux
9628  need_lib_prefix=no
9629  need_version=no
9630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9631  soname_spec='${libname}${release}${shared_ext}$major'
9632  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9633  shlibpath_var=LD_LIBRARY_PATH
9634  shlibpath_overrides_runpath=no
9635  hardcode_into_libs=yes
9636  ;;
9637
9638irix5* | irix6* | nonstopux*)
9639  case $host_os in
9640    nonstopux*) version_type=nonstopux ;;
9641    *)
9642	if test "$lt_cv_prog_gnu_ld" = yes; then
9643		version_type=linux
9644	else
9645		version_type=irix
9646	fi ;;
9647  esac
9648  need_lib_prefix=no
9649  need_version=no
9650  soname_spec='${libname}${release}${shared_ext}$major'
9651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9652  case $host_os in
9653  irix5* | nonstopux*)
9654    libsuff= shlibsuff=
9655    ;;
9656  *)
9657    case $LD in # libtool.m4 will add one of these switches to LD
9658    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9659      libsuff= shlibsuff= libmagic=32-bit;;
9660    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9661      libsuff=32 shlibsuff=N32 libmagic=N32;;
9662    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9663      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9664    *) libsuff= shlibsuff= libmagic=never-match;;
9665    esac
9666    ;;
9667  esac
9668  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9669  shlibpath_overrides_runpath=no
9670  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9671  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9672  hardcode_into_libs=yes
9673  ;;
9674
9675# No shared lib support for Linux oldld, aout, or coff.
9676linux*oldld* | linux*aout* | linux*coff*)
9677  dynamic_linker=no
9678  ;;
9679
9680# This must be Linux ELF.
9681linux* | k*bsd*-gnu)
9682  version_type=linux
9683  need_lib_prefix=no
9684  need_version=no
9685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9686  soname_spec='${libname}${release}${shared_ext}$major'
9687  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9688  shlibpath_var=LD_LIBRARY_PATH
9689  shlibpath_overrides_runpath=no
9690  # Some binutils ld are patched to set DT_RUNPATH
9691  save_LDFLAGS=$LDFLAGS
9692  save_libdir=$libdir
9693  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9694       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696/* end confdefs.h.  */
9697
9698int
9699main ()
9700{
9701
9702  ;
9703  return 0;
9704}
9705_ACEOF
9706if ac_fn_c_try_link "$LINENO"; then :
9707  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9708  shlibpath_overrides_runpath=yes
9709fi
9710fi
9711rm -f core conftest.err conftest.$ac_objext \
9712    conftest$ac_exeext conftest.$ac_ext
9713  LDFLAGS=$save_LDFLAGS
9714  libdir=$save_libdir
9715
9716  # This implies no fast_install, which is unacceptable.
9717  # Some rework will be needed to allow for fast_install
9718  # before this can be enabled.
9719  hardcode_into_libs=yes
9720
9721  # Add ABI-specific directories to the system library path.
9722  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9723
9724  # Append ld.so.conf contents to the search path
9725  if test -f /etc/ld.so.conf; then
9726    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' ' '`
9727    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9728  fi
9729
9730  # We used to test for /lib/ld.so.1 and disable shared libraries on
9731  # powerpc, because MkLinux only supported shared libraries with the
9732  # GNU dynamic linker.  Since this was broken with cross compilers,
9733  # most powerpc-linux boxes support dynamic linking these days and
9734  # people can always --disable-shared, the test was removed, and we
9735  # assume the GNU/Linux dynamic linker is in use.
9736  dynamic_linker='GNU/Linux ld.so'
9737  ;;
9738
9739netbsd*)
9740  version_type=sunos
9741  need_lib_prefix=no
9742  need_version=no
9743  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9744    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9745    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9746    dynamic_linker='NetBSD (a.out) ld.so'
9747  else
9748    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9749    soname_spec='${libname}${release}${shared_ext}$major'
9750    dynamic_linker='NetBSD ld.elf_so'
9751  fi
9752  shlibpath_var=LD_LIBRARY_PATH
9753  shlibpath_overrides_runpath=yes
9754  hardcode_into_libs=yes
9755  ;;
9756
9757newsos6)
9758  version_type=linux
9759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9760  shlibpath_var=LD_LIBRARY_PATH
9761  shlibpath_overrides_runpath=yes
9762  ;;
9763
9764*nto* | *qnx*)
9765  version_type=qnx
9766  need_lib_prefix=no
9767  need_version=no
9768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9769  soname_spec='${libname}${release}${shared_ext}$major'
9770  shlibpath_var=LD_LIBRARY_PATH
9771  shlibpath_overrides_runpath=no
9772  hardcode_into_libs=yes
9773  dynamic_linker='ldqnx.so'
9774  ;;
9775
9776openbsd*)
9777  version_type=sunos
9778  sys_lib_dlsearch_path_spec="/usr/lib"
9779  need_lib_prefix=no
9780  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9781  case $host_os in
9782    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9783    *)				need_version=no  ;;
9784  esac
9785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9786  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9787  shlibpath_var=LD_LIBRARY_PATH
9788  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9789    case $host_os in
9790      openbsd2.[89] | openbsd2.[89].*)
9791	shlibpath_overrides_runpath=no
9792	;;
9793      *)
9794	shlibpath_overrides_runpath=yes
9795	;;
9796      esac
9797  else
9798    shlibpath_overrides_runpath=yes
9799  fi
9800  ;;
9801
9802os2*)
9803  libname_spec='$name'
9804  shrext_cmds=".dll"
9805  need_lib_prefix=no
9806  library_names_spec='$libname${shared_ext} $libname.a'
9807  dynamic_linker='OS/2 ld.exe'
9808  shlibpath_var=LIBPATH
9809  ;;
9810
9811osf3* | osf4* | osf5*)
9812  version_type=osf
9813  need_lib_prefix=no
9814  need_version=no
9815  soname_spec='${libname}${release}${shared_ext}$major'
9816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817  shlibpath_var=LD_LIBRARY_PATH
9818  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9819  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9820  ;;
9821
9822rdos*)
9823  dynamic_linker=no
9824  ;;
9825
9826solaris*)
9827  version_type=linux
9828  need_lib_prefix=no
9829  need_version=no
9830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9831  soname_spec='${libname}${release}${shared_ext}$major'
9832  shlibpath_var=LD_LIBRARY_PATH
9833  shlibpath_overrides_runpath=yes
9834  hardcode_into_libs=yes
9835  # ldd complains unless libraries are executable
9836  postinstall_cmds='chmod +x $lib'
9837  ;;
9838
9839sunos4*)
9840  version_type=sunos
9841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9842  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9843  shlibpath_var=LD_LIBRARY_PATH
9844  shlibpath_overrides_runpath=yes
9845  if test "$with_gnu_ld" = yes; then
9846    need_lib_prefix=no
9847  fi
9848  need_version=yes
9849  ;;
9850
9851sysv4 | sysv4.3*)
9852  version_type=linux
9853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9854  soname_spec='${libname}${release}${shared_ext}$major'
9855  shlibpath_var=LD_LIBRARY_PATH
9856  case $host_vendor in
9857    sni)
9858      shlibpath_overrides_runpath=no
9859      need_lib_prefix=no
9860      runpath_var=LD_RUN_PATH
9861      ;;
9862    siemens)
9863      need_lib_prefix=no
9864      ;;
9865    motorola)
9866      need_lib_prefix=no
9867      need_version=no
9868      shlibpath_overrides_runpath=no
9869      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9870      ;;
9871  esac
9872  ;;
9873
9874sysv4*MP*)
9875  if test -d /usr/nec ;then
9876    version_type=linux
9877    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9878    soname_spec='$libname${shared_ext}.$major'
9879    shlibpath_var=LD_LIBRARY_PATH
9880  fi
9881  ;;
9882
9883sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9884  version_type=freebsd-elf
9885  need_lib_prefix=no
9886  need_version=no
9887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9888  soname_spec='${libname}${release}${shared_ext}$major'
9889  shlibpath_var=LD_LIBRARY_PATH
9890  shlibpath_overrides_runpath=yes
9891  hardcode_into_libs=yes
9892  if test "$with_gnu_ld" = yes; then
9893    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9894  else
9895    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9896    case $host_os in
9897      sco3.2v5*)
9898        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9899	;;
9900    esac
9901  fi
9902  sys_lib_dlsearch_path_spec='/usr/lib'
9903  ;;
9904
9905tpf*)
9906  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9907  version_type=linux
9908  need_lib_prefix=no
9909  need_version=no
9910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9911  shlibpath_var=LD_LIBRARY_PATH
9912  shlibpath_overrides_runpath=no
9913  hardcode_into_libs=yes
9914  ;;
9915
9916uts4*)
9917  version_type=linux
9918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9919  soname_spec='${libname}${release}${shared_ext}$major'
9920  shlibpath_var=LD_LIBRARY_PATH
9921  ;;
9922
9923*)
9924  dynamic_linker=no
9925  ;;
9926esac
9927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9928$as_echo "$dynamic_linker" >&6; }
9929test "$dynamic_linker" = no && can_build_shared=no
9930
9931variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9932if test "$GCC" = yes; then
9933  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9934fi
9935
9936if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9937  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9938fi
9939if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9940  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9941fi
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10030$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10031hardcode_action=
10032if test -n "$hardcode_libdir_flag_spec" ||
10033   test -n "$runpath_var" ||
10034   test "X$hardcode_automatic" = "Xyes" ; then
10035
10036  # We can hardcode non-existent directories.
10037  if test "$hardcode_direct" != no &&
10038     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10039     # have to relink, otherwise we might link with an installed library
10040     # when we should be linking with a yet-to-be-installed one
10041     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10042     test "$hardcode_minus_L" != no; then
10043    # Linking always hardcodes the temporary library directory.
10044    hardcode_action=relink
10045  else
10046    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10047    hardcode_action=immediate
10048  fi
10049else
10050  # We cannot hardcode anything, or else we can only hardcode existing
10051  # directories.
10052  hardcode_action=unsupported
10053fi
10054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10055$as_echo "$hardcode_action" >&6; }
10056
10057if test "$hardcode_action" = relink ||
10058   test "$inherit_rpath" = yes; then
10059  # Fast installation is not supported
10060  enable_fast_install=no
10061elif test "$shlibpath_overrides_runpath" = yes ||
10062     test "$enable_shared" = no; then
10063  # Fast installation is not necessary
10064  enable_fast_install=needless
10065fi
10066
10067
10068
10069
10070
10071
10072  if test "x$enable_dlopen" != xyes; then
10073  enable_dlopen=unknown
10074  enable_dlopen_self=unknown
10075  enable_dlopen_self_static=unknown
10076else
10077  lt_cv_dlopen=no
10078  lt_cv_dlopen_libs=
10079
10080  case $host_os in
10081  beos*)
10082    lt_cv_dlopen="load_add_on"
10083    lt_cv_dlopen_libs=
10084    lt_cv_dlopen_self=yes
10085    ;;
10086
10087  mingw* | pw32* | cegcc*)
10088    lt_cv_dlopen="LoadLibrary"
10089    lt_cv_dlopen_libs=
10090    ;;
10091
10092  cygwin*)
10093    lt_cv_dlopen="dlopen"
10094    lt_cv_dlopen_libs=
10095    ;;
10096
10097  darwin*)
10098  # if libdl is installed we need to link against it
10099    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10100$as_echo_n "checking for dlopen in -ldl... " >&6; }
10101if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10102  $as_echo_n "(cached) " >&6
10103else
10104  ac_check_lib_save_LIBS=$LIBS
10105LIBS="-ldl  $LIBS"
10106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107/* end confdefs.h.  */
10108
10109/* Override any GCC internal prototype to avoid an error.
10110   Use char because int might match the return type of a GCC
10111   builtin and then its argument prototype would still apply.  */
10112#ifdef __cplusplus
10113extern "C"
10114#endif
10115char dlopen ();
10116int
10117main ()
10118{
10119return dlopen ();
10120  ;
10121  return 0;
10122}
10123_ACEOF
10124if ac_fn_c_try_link "$LINENO"; then :
10125  ac_cv_lib_dl_dlopen=yes
10126else
10127  ac_cv_lib_dl_dlopen=no
10128fi
10129rm -f core conftest.err conftest.$ac_objext \
10130    conftest$ac_exeext conftest.$ac_ext
10131LIBS=$ac_check_lib_save_LIBS
10132fi
10133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10134$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10135if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10136  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10137else
10138
10139    lt_cv_dlopen="dyld"
10140    lt_cv_dlopen_libs=
10141    lt_cv_dlopen_self=yes
10142
10143fi
10144
10145    ;;
10146
10147  *)
10148    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10149if test "x$ac_cv_func_shl_load" = x""yes; then :
10150  lt_cv_dlopen="shl_load"
10151else
10152  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10153$as_echo_n "checking for shl_load in -ldld... " >&6; }
10154if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10155  $as_echo_n "(cached) " >&6
10156else
10157  ac_check_lib_save_LIBS=$LIBS
10158LIBS="-ldld  $LIBS"
10159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160/* end confdefs.h.  */
10161
10162/* Override any GCC internal prototype to avoid an error.
10163   Use char because int might match the return type of a GCC
10164   builtin and then its argument prototype would still apply.  */
10165#ifdef __cplusplus
10166extern "C"
10167#endif
10168char shl_load ();
10169int
10170main ()
10171{
10172return shl_load ();
10173  ;
10174  return 0;
10175}
10176_ACEOF
10177if ac_fn_c_try_link "$LINENO"; then :
10178  ac_cv_lib_dld_shl_load=yes
10179else
10180  ac_cv_lib_dld_shl_load=no
10181fi
10182rm -f core conftest.err conftest.$ac_objext \
10183    conftest$ac_exeext conftest.$ac_ext
10184LIBS=$ac_check_lib_save_LIBS
10185fi
10186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10187$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10188if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10189  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10190else
10191  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10192if test "x$ac_cv_func_dlopen" = x""yes; then :
10193  lt_cv_dlopen="dlopen"
10194else
10195  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10196$as_echo_n "checking for dlopen in -ldl... " >&6; }
10197if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10198  $as_echo_n "(cached) " >&6
10199else
10200  ac_check_lib_save_LIBS=$LIBS
10201LIBS="-ldl  $LIBS"
10202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203/* end confdefs.h.  */
10204
10205/* Override any GCC internal prototype to avoid an error.
10206   Use char because int might match the return type of a GCC
10207   builtin and then its argument prototype would still apply.  */
10208#ifdef __cplusplus
10209extern "C"
10210#endif
10211char dlopen ();
10212int
10213main ()
10214{
10215return dlopen ();
10216  ;
10217  return 0;
10218}
10219_ACEOF
10220if ac_fn_c_try_link "$LINENO"; then :
10221  ac_cv_lib_dl_dlopen=yes
10222else
10223  ac_cv_lib_dl_dlopen=no
10224fi
10225rm -f core conftest.err conftest.$ac_objext \
10226    conftest$ac_exeext conftest.$ac_ext
10227LIBS=$ac_check_lib_save_LIBS
10228fi
10229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10230$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10231if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10232  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10233else
10234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10235$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10236if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10237  $as_echo_n "(cached) " >&6
10238else
10239  ac_check_lib_save_LIBS=$LIBS
10240LIBS="-lsvld  $LIBS"
10241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242/* end confdefs.h.  */
10243
10244/* Override any GCC internal prototype to avoid an error.
10245   Use char because int might match the return type of a GCC
10246   builtin and then its argument prototype would still apply.  */
10247#ifdef __cplusplus
10248extern "C"
10249#endif
10250char dlopen ();
10251int
10252main ()
10253{
10254return dlopen ();
10255  ;
10256  return 0;
10257}
10258_ACEOF
10259if ac_fn_c_try_link "$LINENO"; then :
10260  ac_cv_lib_svld_dlopen=yes
10261else
10262  ac_cv_lib_svld_dlopen=no
10263fi
10264rm -f core conftest.err conftest.$ac_objext \
10265    conftest$ac_exeext conftest.$ac_ext
10266LIBS=$ac_check_lib_save_LIBS
10267fi
10268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10269$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10270if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10271  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10272else
10273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10274$as_echo_n "checking for dld_link in -ldld... " >&6; }
10275if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10276  $as_echo_n "(cached) " >&6
10277else
10278  ac_check_lib_save_LIBS=$LIBS
10279LIBS="-ldld  $LIBS"
10280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281/* end confdefs.h.  */
10282
10283/* Override any GCC internal prototype to avoid an error.
10284   Use char because int might match the return type of a GCC
10285   builtin and then its argument prototype would still apply.  */
10286#ifdef __cplusplus
10287extern "C"
10288#endif
10289char dld_link ();
10290int
10291main ()
10292{
10293return dld_link ();
10294  ;
10295  return 0;
10296}
10297_ACEOF
10298if ac_fn_c_try_link "$LINENO"; then :
10299  ac_cv_lib_dld_dld_link=yes
10300else
10301  ac_cv_lib_dld_dld_link=no
10302fi
10303rm -f core conftest.err conftest.$ac_objext \
10304    conftest$ac_exeext conftest.$ac_ext
10305LIBS=$ac_check_lib_save_LIBS
10306fi
10307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10308$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10309if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10310  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10311fi
10312
10313
10314fi
10315
10316
10317fi
10318
10319
10320fi
10321
10322
10323fi
10324
10325
10326fi
10327
10328    ;;
10329  esac
10330
10331  if test "x$lt_cv_dlopen" != xno; then
10332    enable_dlopen=yes
10333  else
10334    enable_dlopen=no
10335  fi
10336
10337  case $lt_cv_dlopen in
10338  dlopen)
10339    save_CPPFLAGS="$CPPFLAGS"
10340    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10341
10342    save_LDFLAGS="$LDFLAGS"
10343    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10344
10345    save_LIBS="$LIBS"
10346    LIBS="$lt_cv_dlopen_libs $LIBS"
10347
10348    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10349$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10350if test "${lt_cv_dlopen_self+set}" = set; then :
10351  $as_echo_n "(cached) " >&6
10352else
10353  	  if test "$cross_compiling" = yes; then :
10354  lt_cv_dlopen_self=cross
10355else
10356  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10357  lt_status=$lt_dlunknown
10358  cat > conftest.$ac_ext <<_LT_EOF
10359#line 10359 "configure"
10360#include "confdefs.h"
10361
10362#if HAVE_DLFCN_H
10363#include <dlfcn.h>
10364#endif
10365
10366#include <stdio.h>
10367
10368#ifdef RTLD_GLOBAL
10369#  define LT_DLGLOBAL		RTLD_GLOBAL
10370#else
10371#  ifdef DL_GLOBAL
10372#    define LT_DLGLOBAL		DL_GLOBAL
10373#  else
10374#    define LT_DLGLOBAL		0
10375#  endif
10376#endif
10377
10378/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10379   find out it does not work in some platform. */
10380#ifndef LT_DLLAZY_OR_NOW
10381#  ifdef RTLD_LAZY
10382#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10383#  else
10384#    ifdef DL_LAZY
10385#      define LT_DLLAZY_OR_NOW		DL_LAZY
10386#    else
10387#      ifdef RTLD_NOW
10388#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10389#      else
10390#        ifdef DL_NOW
10391#          define LT_DLLAZY_OR_NOW	DL_NOW
10392#        else
10393#          define LT_DLLAZY_OR_NOW	0
10394#        endif
10395#      endif
10396#    endif
10397#  endif
10398#endif
10399
10400void fnord() { int i=42;}
10401int main ()
10402{
10403  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10404  int status = $lt_dlunknown;
10405
10406  if (self)
10407    {
10408      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10409      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10410      /* dlclose (self); */
10411    }
10412  else
10413    puts (dlerror ());
10414
10415  return status;
10416}
10417_LT_EOF
10418  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10419  (eval $ac_link) 2>&5
10420  ac_status=$?
10421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10422  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10423    (./conftest; exit; ) >&5 2>/dev/null
10424    lt_status=$?
10425    case x$lt_status in
10426      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10427      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10428      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10429    esac
10430  else :
10431    # compilation failed
10432    lt_cv_dlopen_self=no
10433  fi
10434fi
10435rm -fr conftest*
10436
10437
10438fi
10439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10440$as_echo "$lt_cv_dlopen_self" >&6; }
10441
10442    if test "x$lt_cv_dlopen_self" = xyes; then
10443      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10444      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10445$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10446if test "${lt_cv_dlopen_self_static+set}" = set; then :
10447  $as_echo_n "(cached) " >&6
10448else
10449  	  if test "$cross_compiling" = yes; then :
10450  lt_cv_dlopen_self_static=cross
10451else
10452  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10453  lt_status=$lt_dlunknown
10454  cat > conftest.$ac_ext <<_LT_EOF
10455#line 10455 "configure"
10456#include "confdefs.h"
10457
10458#if HAVE_DLFCN_H
10459#include <dlfcn.h>
10460#endif
10461
10462#include <stdio.h>
10463
10464#ifdef RTLD_GLOBAL
10465#  define LT_DLGLOBAL		RTLD_GLOBAL
10466#else
10467#  ifdef DL_GLOBAL
10468#    define LT_DLGLOBAL		DL_GLOBAL
10469#  else
10470#    define LT_DLGLOBAL		0
10471#  endif
10472#endif
10473
10474/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10475   find out it does not work in some platform. */
10476#ifndef LT_DLLAZY_OR_NOW
10477#  ifdef RTLD_LAZY
10478#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10479#  else
10480#    ifdef DL_LAZY
10481#      define LT_DLLAZY_OR_NOW		DL_LAZY
10482#    else
10483#      ifdef RTLD_NOW
10484#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10485#      else
10486#        ifdef DL_NOW
10487#          define LT_DLLAZY_OR_NOW	DL_NOW
10488#        else
10489#          define LT_DLLAZY_OR_NOW	0
10490#        endif
10491#      endif
10492#    endif
10493#  endif
10494#endif
10495
10496void fnord() { int i=42;}
10497int main ()
10498{
10499  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10500  int status = $lt_dlunknown;
10501
10502  if (self)
10503    {
10504      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10505      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10506      /* dlclose (self); */
10507    }
10508  else
10509    puts (dlerror ());
10510
10511  return status;
10512}
10513_LT_EOF
10514  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10515  (eval $ac_link) 2>&5
10516  ac_status=$?
10517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10518  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10519    (./conftest; exit; ) >&5 2>/dev/null
10520    lt_status=$?
10521    case x$lt_status in
10522      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10523      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10524      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10525    esac
10526  else :
10527    # compilation failed
10528    lt_cv_dlopen_self_static=no
10529  fi
10530fi
10531rm -fr conftest*
10532
10533
10534fi
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10536$as_echo "$lt_cv_dlopen_self_static" >&6; }
10537    fi
10538
10539    CPPFLAGS="$save_CPPFLAGS"
10540    LDFLAGS="$save_LDFLAGS"
10541    LIBS="$save_LIBS"
10542    ;;
10543  esac
10544
10545  case $lt_cv_dlopen_self in
10546  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10547  *) enable_dlopen_self=unknown ;;
10548  esac
10549
10550  case $lt_cv_dlopen_self_static in
10551  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10552  *) enable_dlopen_self_static=unknown ;;
10553  esac
10554fi
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572striplib=
10573old_striplib=
10574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10575$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10576if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10577  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10578  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10580$as_echo "yes" >&6; }
10581else
10582# FIXME - insert some real tests, host_os isn't really good enough
10583  case $host_os in
10584  darwin*)
10585    if test -n "$STRIP" ; then
10586      striplib="$STRIP -x"
10587      old_striplib="$STRIP -S"
10588      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10589$as_echo "yes" >&6; }
10590    else
10591      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592$as_echo "no" >&6; }
10593    fi
10594    ;;
10595  *)
10596    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597$as_echo "no" >&6; }
10598    ;;
10599  esac
10600fi
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613  # Report which library types will actually be built
10614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10615$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10617$as_echo "$can_build_shared" >&6; }
10618
10619  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10620$as_echo_n "checking whether to build shared libraries... " >&6; }
10621  test "$can_build_shared" = "no" && enable_shared=no
10622
10623  # On AIX, shared libraries and static libraries use the same namespace, and
10624  # are all built from PIC.
10625  case $host_os in
10626  aix3*)
10627    test "$enable_shared" = yes && enable_static=no
10628    if test -n "$RANLIB"; then
10629      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10630      postinstall_cmds='$RANLIB $lib'
10631    fi
10632    ;;
10633
10634  aix[4-9]*)
10635    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10636      test "$enable_shared" = yes && enable_static=no
10637    fi
10638    ;;
10639  esac
10640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10641$as_echo "$enable_shared" >&6; }
10642
10643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10644$as_echo_n "checking whether to build static libraries... " >&6; }
10645  # Make sure either enable_shared or enable_static is yes.
10646  test "$enable_shared" = yes || enable_static=yes
10647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10648$as_echo "$enable_static" >&6; }
10649
10650
10651
10652
10653fi
10654ac_ext=c
10655ac_cpp='$CPP $CPPFLAGS'
10656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10658ac_compiler_gnu=$ac_cv_c_compiler_gnu
10659
10660CC="$lt_save_CC"
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674        ac_config_commands="$ac_config_commands libtool"
10675
10676
10677
10678
10679# Only expand once:
10680
10681
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10683$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10684if test "${ac_cv_c_bigendian+set}" = set; then :
10685  $as_echo_n "(cached) " >&6
10686else
10687  ac_cv_c_bigendian=unknown
10688    # See if we're dealing with a universal compiler.
10689    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690/* end confdefs.h.  */
10691#ifndef __APPLE_CC__
10692	       not a universal capable compiler
10693	     #endif
10694	     typedef int dummy;
10695
10696_ACEOF
10697if ac_fn_c_try_compile "$LINENO"; then :
10698
10699	# Check for potential -arch flags.  It is not universal unless
10700	# there are at least two -arch flags with different values.
10701	ac_arch=
10702	ac_prev=
10703	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10704	 if test -n "$ac_prev"; then
10705	   case $ac_word in
10706	     i?86 | x86_64 | ppc | ppc64)
10707	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10708		 ac_arch=$ac_word
10709	       else
10710		 ac_cv_c_bigendian=universal
10711		 break
10712	       fi
10713	       ;;
10714	   esac
10715	   ac_prev=
10716	 elif test "x$ac_word" = "x-arch"; then
10717	   ac_prev=arch
10718	 fi
10719       done
10720fi
10721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10722    if test $ac_cv_c_bigendian = unknown; then
10723      # See if sys/param.h defines the BYTE_ORDER macro.
10724      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725/* end confdefs.h.  */
10726#include <sys/types.h>
10727	     #include <sys/param.h>
10728
10729int
10730main ()
10731{
10732#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10733		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10734		     && LITTLE_ENDIAN)
10735	      bogus endian macros
10736	     #endif
10737
10738  ;
10739  return 0;
10740}
10741_ACEOF
10742if ac_fn_c_try_compile "$LINENO"; then :
10743  # It does; now see whether it defined to BIG_ENDIAN or not.
10744	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745/* end confdefs.h.  */
10746#include <sys/types.h>
10747		#include <sys/param.h>
10748
10749int
10750main ()
10751{
10752#if BYTE_ORDER != BIG_ENDIAN
10753		 not big endian
10754		#endif
10755
10756  ;
10757  return 0;
10758}
10759_ACEOF
10760if ac_fn_c_try_compile "$LINENO"; then :
10761  ac_cv_c_bigendian=yes
10762else
10763  ac_cv_c_bigendian=no
10764fi
10765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10766fi
10767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10768    fi
10769    if test $ac_cv_c_bigendian = unknown; then
10770      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10771      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772/* end confdefs.h.  */
10773#include <limits.h>
10774
10775int
10776main ()
10777{
10778#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10779	      bogus endian macros
10780	     #endif
10781
10782  ;
10783  return 0;
10784}
10785_ACEOF
10786if ac_fn_c_try_compile "$LINENO"; then :
10787  # It does; now see whether it defined to _BIG_ENDIAN or not.
10788	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789/* end confdefs.h.  */
10790#include <limits.h>
10791
10792int
10793main ()
10794{
10795#ifndef _BIG_ENDIAN
10796		 not big endian
10797		#endif
10798
10799  ;
10800  return 0;
10801}
10802_ACEOF
10803if ac_fn_c_try_compile "$LINENO"; then :
10804  ac_cv_c_bigendian=yes
10805else
10806  ac_cv_c_bigendian=no
10807fi
10808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10809fi
10810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10811    fi
10812    if test $ac_cv_c_bigendian = unknown; then
10813      # Compile a test program.
10814      if test "$cross_compiling" = yes; then :
10815  # Try to guess by grepping values from an object file.
10816	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817/* end confdefs.h.  */
10818short int ascii_mm[] =
10819		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10820		short int ascii_ii[] =
10821		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10822		int use_ascii (int i) {
10823		  return ascii_mm[i] + ascii_ii[i];
10824		}
10825		short int ebcdic_ii[] =
10826		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10827		short int ebcdic_mm[] =
10828		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10829		int use_ebcdic (int i) {
10830		  return ebcdic_mm[i] + ebcdic_ii[i];
10831		}
10832		extern int foo;
10833
10834int
10835main ()
10836{
10837return use_ascii (foo) == use_ebcdic (foo);
10838  ;
10839  return 0;
10840}
10841_ACEOF
10842if ac_fn_c_try_compile "$LINENO"; then :
10843  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10844	      ac_cv_c_bigendian=yes
10845	    fi
10846	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10847	      if test "$ac_cv_c_bigendian" = unknown; then
10848		ac_cv_c_bigendian=no
10849	      else
10850		# finding both strings is unlikely to happen, but who knows?
10851		ac_cv_c_bigendian=unknown
10852	      fi
10853	    fi
10854fi
10855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10856else
10857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858/* end confdefs.h.  */
10859$ac_includes_default
10860int
10861main ()
10862{
10863
10864	     /* Are we little or big endian?  From Harbison&Steele.  */
10865	     union
10866	     {
10867	       long int l;
10868	       char c[sizeof (long int)];
10869	     } u;
10870	     u.l = 1;
10871	     return u.c[sizeof (long int) - 1] == 1;
10872
10873  ;
10874  return 0;
10875}
10876_ACEOF
10877if ac_fn_c_try_run "$LINENO"; then :
10878  ac_cv_c_bigendian=no
10879else
10880  ac_cv_c_bigendian=yes
10881fi
10882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10883  conftest.$ac_objext conftest.beam conftest.$ac_ext
10884fi
10885
10886    fi
10887fi
10888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10889$as_echo "$ac_cv_c_bigendian" >&6; }
10890 case $ac_cv_c_bigendian in #(
10891   yes)
10892     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10893;; #(
10894   no)
10895      ;; #(
10896   universal)
10897
10898$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10899
10900     ;; #(
10901   *)
10902     as_fn_error "unknown endianness
10903 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10904 esac
10905
10906ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
10907if test "x$ac_cv_type_long_long" = x""yes; then :
10908
10909cat >>confdefs.h <<_ACEOF
10910#define HAVE_LONG_LONG 1
10911_ACEOF
10912
10913
10914fi
10915
10916# The cast to long int works around a bug in the HP C Compiler
10917# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10918# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10919# This bug is HP SR number 8606223364.
10920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10921$as_echo_n "checking size of long long... " >&6; }
10922if test "${ac_cv_sizeof_long_long+set}" = set; then :
10923  $as_echo_n "(cached) " >&6
10924else
10925  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
10926
10927else
10928  if test "$ac_cv_type_long_long" = yes; then
10929     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10931{ as_fn_set_status 77
10932as_fn_error "cannot compute sizeof (long long)
10933See \`config.log' for more details." "$LINENO" 5; }; }
10934   else
10935     ac_cv_sizeof_long_long=0
10936   fi
10937fi
10938
10939fi
10940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10941$as_echo "$ac_cv_sizeof_long_long" >&6; }
10942
10943
10944
10945cat >>confdefs.h <<_ACEOF
10946#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10947_ACEOF
10948
10949
10950for ac_func in dup2
10951do :
10952  ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
10953if test "x$ac_cv_func_dup2" = x""yes; then :
10954  cat >>confdefs.h <<_ACEOF
10955#define HAVE_DUP2 1
10956_ACEOF
10957
10958fi
10959done
10960
10961
10962# Extract the first word of "pkg-config", so it can be a program name with args.
10963set dummy pkg-config; ac_word=$2
10964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965$as_echo_n "checking for $ac_word... " >&6; }
10966if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then :
10967  $as_echo_n "(cached) " >&6
10968else
10969  if test -n "$HAVE_PKGCONFIG"; then
10970  ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
10971else
10972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973for as_dir in $PATH
10974do
10975  IFS=$as_save_IFS
10976  test -z "$as_dir" && as_dir=.
10977    for ac_exec_ext in '' $ac_executable_extensions; do
10978  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10979    ac_cv_prog_HAVE_PKGCONFIG="yes"
10980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10981    break 2
10982  fi
10983done
10984  done
10985IFS=$as_save_IFS
10986
10987  test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
10988fi
10989fi
10990HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
10991if test -n "$HAVE_PKGCONFIG"; then
10992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PKGCONFIG" >&5
10993$as_echo "$HAVE_PKGCONFIG" >&6; }
10994else
10995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996$as_echo "no" >&6; }
10997fi
10998
10999
11000
11001# Extract the first word of "doxygen", so it can be a program name with args.
11002set dummy doxygen; ac_word=$2
11003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11004$as_echo_n "checking for $ac_word... " >&6; }
11005if test "${ac_cv_prog_HAVE_DOXYGEN+set}" = set; then :
11006  $as_echo_n "(cached) " >&6
11007else
11008  if test -n "$HAVE_DOXYGEN"; then
11009  ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
11010else
11011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11012for as_dir in $PATH
11013do
11014  IFS=$as_save_IFS
11015  test -z "$as_dir" && as_dir=.
11016    for ac_exec_ext in '' $ac_executable_extensions; do
11017  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11018    ac_cv_prog_HAVE_DOXYGEN="yes"
11019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11020    break 2
11021  fi
11022done
11023  done
11024IFS=$as_save_IFS
11025
11026  test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
11027fi
11028fi
11029HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
11030if test -n "$HAVE_DOXYGEN"; then
11031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
11032$as_echo "$HAVE_DOXYGEN" >&6; }
11033else
11034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035$as_echo "no" >&6; }
11036fi
11037
11038
11039 if test "x$HAVE_DOXYGEN" = "xyes"; then
11040  BUILD_DOXYGEN_TRUE=
11041  BUILD_DOXYGEN_FALSE='#'
11042else
11043  BUILD_DOXYGEN_TRUE='#'
11044  BUILD_DOXYGEN_FALSE=
11045fi
11046
11047
11048use_python=true
11049PYTHON=python
11050
11051# Check whether --with-python was given.
11052if test "${with_python+set}" = set; then :
11053  withval=$with_python;
11054if test x$withval = xno; then
11055   use_python=false
11056   PYTHON=bogus
11057elif test x$withval = xyes; then
11058   # No specific python binary was given, so check for it in PATH
11059   use_python=true
11060   PYTHON=python
11061else
11062   # A python was given, assume it is in the user's PATH or is fully qualified
11063   use_python=true
11064   PYTHON="$withval"
11065   PYTHON_CONFIG="$withval"-config
11066fi
11067
11068fi
11069
11070if test "x$use_python" = xtrue -a "x$PYTHON" = xpython; then
11071   # Extract the first word of "python", so it can be a program name with args.
11072set dummy python; ac_word=$2
11073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11074$as_echo_n "checking for $ac_word... " >&6; }
11075if test "${ac_cv_path_PYTHON+set}" = set; then :
11076  $as_echo_n "(cached) " >&6
11077else
11078  case $PYTHON in
11079  [\\/]* | ?:[\\/]*)
11080  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11081  ;;
11082  *)
11083  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084for as_dir in $PATH
11085do
11086  IFS=$as_save_IFS
11087  test -z "$as_dir" && as_dir=.
11088    for ac_exec_ext in '' $ac_executable_extensions; do
11089  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11090    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11092    break 2
11093  fi
11094done
11095  done
11096IFS=$as_save_IFS
11097
11098  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="bogus"
11099  ;;
11100esac
11101fi
11102PYTHON=$ac_cv_path_PYTHON
11103if test -n "$PYTHON"; then
11104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
11105$as_echo "$PYTHON" >&6; }
11106else
11107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108$as_echo "no" >&6; }
11109fi
11110
11111
11112   # Extract the first word of "python-config", so it can be a program name with args.
11113set dummy python-config; ac_word=$2
11114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11115$as_echo_n "checking for $ac_word... " >&6; }
11116if test "${ac_cv_path_PYTHON_CONFIG+set}" = set; then :
11117  $as_echo_n "(cached) " >&6
11118else
11119  case $PYTHON_CONFIG in
11120  [\\/]* | ?:[\\/]*)
11121  ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
11122  ;;
11123  *)
11124  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11125for as_dir in $PATH
11126do
11127  IFS=$as_save_IFS
11128  test -z "$as_dir" && as_dir=.
11129    for ac_exec_ext in '' $ac_executable_extensions; do
11130  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11131    ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11133    break 2
11134  fi
11135done
11136  done
11137IFS=$as_save_IFS
11138
11139  test -z "$ac_cv_path_PYTHON_CONFIG" && ac_cv_path_PYTHON_CONFIG="bogus"
11140  ;;
11141esac
11142fi
11143PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
11144if test -n "$PYTHON_CONFIG"; then
11145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
11146$as_echo "$PYTHON_CONFIG" >&6; }
11147else
11148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149$as_echo "no" >&6; }
11150fi
11151
11152
11153fi
11154if test "x$use_python" = xtrue -a "x$PYTHON" != xbogus -a "x$PYTHON_CONFIG" != xbogus; then
11155    PYTHON_INCLUDES=`"$PYTHON_CONFIG" --includes`
11156    CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
11157    ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
11158if test "x$ac_cv_header_Python_h" = x""yes; then :
11159  use_python=true
11160else
11161  use_python=false
11162fi
11163
11164
11165else
11166    use_python=false
11167    PYTHON=bogus
11168fi
11169if test "x$use_python" != xtrue ; then
11170    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling python since development headers were not found" >&5
11171$as_echo "$as_me: WARNING: Disabling python since development headers were not found" >&2;}
11172fi
11173 if test "x$use_python" = "xtrue"; then
11174  BUILD_PYTHON_TRUE=
11175  BUILD_PYTHON_FALSE='#'
11176else
11177  BUILD_PYTHON_TRUE='#'
11178  BUILD_PYTHON_FALSE=
11179fi
11180
11181
11182
11183if test "x$PYTHON" != "xbogus"; then
11184   # Extract the first word of "cython", so it can be a program name with args.
11185set dummy cython; ac_word=$2
11186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11187$as_echo_n "checking for $ac_word... " >&6; }
11188if test "${ac_cv_prog_HAVE_CYTHON+set}" = set; then :
11189  $as_echo_n "(cached) " >&6
11190else
11191  if test -n "$HAVE_CYTHON"; then
11192  ac_cv_prog_HAVE_CYTHON="$HAVE_CYTHON" # Let the user override the test.
11193else
11194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195for as_dir in $PATH
11196do
11197  IFS=$as_save_IFS
11198  test -z "$as_dir" && as_dir=.
11199    for ac_exec_ext in '' $ac_executable_extensions; do
11200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11201    ac_cv_prog_HAVE_CYTHON="yes"
11202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11203    break 2
11204  fi
11205done
11206  done
11207IFS=$as_save_IFS
11208
11209  test -z "$ac_cv_prog_HAVE_CYTHON" && ac_cv_prog_HAVE_CYTHON="no"
11210fi
11211fi
11212HAVE_CYTHON=$ac_cv_prog_HAVE_CYTHON
11213if test -n "$HAVE_CYTHON"; then
11214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CYTHON" >&5
11215$as_echo "$HAVE_CYTHON" >&6; }
11216else
11217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11218$as_echo "no" >&6; }
11219fi
11220
11221
11222fi
11223 if test "x$HAVE_CYTHON" = "xyes"; then
11224  BUILD_CYTHON_TRUE=
11225  BUILD_CYTHON_FALSE='#'
11226else
11227  BUILD_CYTHON_TRUE='#'
11228  BUILD_CYTHON_FALSE=
11229fi
11230
11231
11232GST_MAJORMINOR=0.10
11233
11234
11235if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11236	if test -n "$ac_tool_prefix"; then
11237  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11238set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11240$as_echo_n "checking for $ac_word... " >&6; }
11241if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11242  $as_echo_n "(cached) " >&6
11243else
11244  case $PKG_CONFIG in
11245  [\\/]* | ?:[\\/]*)
11246  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11247  ;;
11248  *)
11249  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11250for as_dir in $PATH
11251do
11252  IFS=$as_save_IFS
11253  test -z "$as_dir" && as_dir=.
11254    for ac_exec_ext in '' $ac_executable_extensions; do
11255  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11256    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11258    break 2
11259  fi
11260done
11261  done
11262IFS=$as_save_IFS
11263
11264  ;;
11265esac
11266fi
11267PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11268if test -n "$PKG_CONFIG"; then
11269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11270$as_echo "$PKG_CONFIG" >&6; }
11271else
11272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273$as_echo "no" >&6; }
11274fi
11275
11276
11277fi
11278if test -z "$ac_cv_path_PKG_CONFIG"; then
11279  ac_pt_PKG_CONFIG=$PKG_CONFIG
11280  # Extract the first word of "pkg-config", so it can be a program name with args.
11281set dummy pkg-config; ac_word=$2
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11283$as_echo_n "checking for $ac_word... " >&6; }
11284if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11285  $as_echo_n "(cached) " >&6
11286else
11287  case $ac_pt_PKG_CONFIG in
11288  [\\/]* | ?:[\\/]*)
11289  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11290  ;;
11291  *)
11292  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293for as_dir in $PATH
11294do
11295  IFS=$as_save_IFS
11296  test -z "$as_dir" && as_dir=.
11297    for ac_exec_ext in '' $ac_executable_extensions; do
11298  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11299    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11301    break 2
11302  fi
11303done
11304  done
11305IFS=$as_save_IFS
11306
11307  ;;
11308esac
11309fi
11310ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11311if test -n "$ac_pt_PKG_CONFIG"; then
11312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11313$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11314else
11315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316$as_echo "no" >&6; }
11317fi
11318
11319  if test "x$ac_pt_PKG_CONFIG" = x; then
11320    PKG_CONFIG=""
11321  else
11322    case $cross_compiling:$ac_tool_warned in
11323yes:)
11324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11326ac_tool_warned=yes ;;
11327esac
11328    PKG_CONFIG=$ac_pt_PKG_CONFIG
11329  fi
11330else
11331  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11332fi
11333
11334fi
11335if test -n "$PKG_CONFIG"; then
11336	_pkg_min_version=0.9.0
11337	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11338$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11339	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11340		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11341$as_echo "yes" >&6; }
11342	else
11343		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344$as_echo "no" >&6; }
11345		PKG_CONFIG=""
11346	fi
11347
11348fi
11349
11350pkg_failed=no
11351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GStreamer" >&5
11352$as_echo_n "checking for GStreamer... " >&6; }
11353
11354if test -n "$PKG_CONFIG"; then
11355    if test -n "$GStreamer_CFLAGS"; then
11356        pkg_cv_GStreamer_CFLAGS="$GStreamer_CFLAGS"
11357    else
11358        if test -n "$PKG_CONFIG" && \
11359    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_MAJORMINOR >= 0.10.0
11360		       gstreamer-base-\$GST_MAJORMINOR >= 0.10.0
11361		       gstreamer-plugins-base-\$GST_MAJORMINOR >= 0.10.0\""; } >&5
11362  ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_MAJORMINOR >= 0.10.0
11363		       gstreamer-base-$GST_MAJORMINOR >= 0.10.0
11364		       gstreamer-plugins-base-$GST_MAJORMINOR >= 0.10.0") 2>&5
11365  ac_status=$?
11366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11367  test $ac_status = 0; }; then
11368  pkg_cv_GStreamer_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= 0.10.0
11369		       gstreamer-base-$GST_MAJORMINOR >= 0.10.0
11370		       gstreamer-plugins-base-$GST_MAJORMINOR >= 0.10.0" 2>/dev/null`
11371else
11372  pkg_failed=yes
11373fi
11374    fi
11375else
11376	pkg_failed=untried
11377fi
11378if test -n "$PKG_CONFIG"; then
11379    if test -n "$GStreamer_LIBS"; then
11380        pkg_cv_GStreamer_LIBS="$GStreamer_LIBS"
11381    else
11382        if test -n "$PKG_CONFIG" && \
11383    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_MAJORMINOR >= 0.10.0
11384		       gstreamer-base-\$GST_MAJORMINOR >= 0.10.0
11385		       gstreamer-plugins-base-\$GST_MAJORMINOR >= 0.10.0\""; } >&5
11386  ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_MAJORMINOR >= 0.10.0
11387		       gstreamer-base-$GST_MAJORMINOR >= 0.10.0
11388		       gstreamer-plugins-base-$GST_MAJORMINOR >= 0.10.0") 2>&5
11389  ac_status=$?
11390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11391  test $ac_status = 0; }; then
11392  pkg_cv_GStreamer_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= 0.10.0
11393		       gstreamer-base-$GST_MAJORMINOR >= 0.10.0
11394		       gstreamer-plugins-base-$GST_MAJORMINOR >= 0.10.0" 2>/dev/null`
11395else
11396  pkg_failed=yes
11397fi
11398    fi
11399else
11400	pkg_failed=untried
11401fi
11402
11403
11404
11405if test $pkg_failed = yes; then
11406
11407if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11408        _pkg_short_errors_supported=yes
11409else
11410        _pkg_short_errors_supported=no
11411fi
11412        if test $_pkg_short_errors_supported = yes; then
11413	        GStreamer_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR >= 0.10.0
11414		       gstreamer-base-$GST_MAJORMINOR >= 0.10.0
11415		       gstreamer-plugins-base-$GST_MAJORMINOR >= 0.10.0"`
11416        else
11417	        GStreamer_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR >= 0.10.0
11418		       gstreamer-base-$GST_MAJORMINOR >= 0.10.0
11419		       gstreamer-plugins-base-$GST_MAJORMINOR >= 0.10.0"`
11420        fi
11421	# Put the nasty error message in config.log where it belongs
11422	echo "$GStreamer_PKG_ERRORS" >&5
11423
11424	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425$as_echo "no" >&6; }
11426                HAVE_GST=no
11427elif test $pkg_failed = untried; then
11428	HAVE_GST=no
11429else
11430	GStreamer_CFLAGS=$pkg_cv_GStreamer_CFLAGS
11431	GStreamer_LIBS=$pkg_cv_GStreamer_LIBS
11432        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11433$as_echo "yes" >&6; }
11434	HAVE_GST=yes
11435fi
11436 if test x$cross_compiling != xyes && test "x$HAVE_GST" = "xyes"; then
11437  BUILD_GST_TRUE=
11438  BUILD_GST_FALSE='#'
11439else
11440  BUILD_GST_TRUE='#'
11441  BUILD_GST_FALSE=
11442fi
11443
11444GST_CFLAGS="$GStreamer_CFLAGS $GStreamer_ERROR"
11445GST_LIBS="$GStreamer_LIBS"
11446
11447
11448
11449
11450if test "x${prefix}" = "x$HOME"; then
11451  plugindir="$HOME/.gstreamer-$GST_MAJORMINOR/plugins"
11452else
11453  plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
11454fi
11455
11456
11457GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex _*\(gst_\|Gst\|GST_\).*'
11458
11459
11460
11461# Check whether --with-sphinxbase was given.
11462if test "${with_sphinxbase+set}" = set; then :
11463  withval=$with_sphinxbase; sphinxbase=$withval
11464fi
11465
11466
11467
11468# Check whether --with-sphinxbase-build was given.
11469if test "${with_sphinxbase_build+set}" = set; then :
11470  withval=$with_sphinxbase_build; sphinxbasebuild=$withval
11471fi
11472
11473
11474
11475if test x$sphinxbase = x; then
11476   dn=`dirname $0`
11477   case "$dn" in
11478	.)
11479	sbdir="`pwd`/.."
11480	;;
11481	\\/* | ?:\\/*)
11482	sbdir="$dn/.."
11483	;;
11484	*)
11485	sbdir="`pwd`/$dn/.."
11486	;;
11487   esac
11488   # Look for sphinxbase in the parent directory
11489   for sb in "$sbdir/sphinxbase" \
11490	  "$sbdir/sphinxbase"*; do
11491       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sphinxbase in $sb" >&5
11492$as_echo_n "checking for sphinxbase in $sb... " >&6; }
11493       if test -f "$sb/src/libsphinxbase/libsphinxbase.la"; then
11494          sphinxbase="$sb"
11495	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11496$as_echo "yes" >&6; }
11497	  break
11498       else
11499	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11500$as_echo "no" >&6; }
11501       fi
11502   done
11503fi
11504
11505if test x$sphinxbase = x || test x$sphinxbase = xauto; then
11506   sphinxbase=
11507   if test "x$HAVE_PKGCONFIG" = "xno"; then
11508      SphinxBase_CFLAGS = "-Iusr/include/sphinxbase -I/usr/local/include/sphinxbase"
11509      SphinxBase_LIBS = "-lsphinxbase"
11510   else
11511
11512pkg_failed=no
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SphinxBase" >&5
11514$as_echo_n "checking for SphinxBase... " >&6; }
11515
11516if test -n "$PKG_CONFIG"; then
11517    if test -n "$SphinxBase_CFLAGS"; then
11518        pkg_cv_SphinxBase_CFLAGS="$SphinxBase_CFLAGS"
11519    else
11520        if test -n "$PKG_CONFIG" && \
11521    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sphinxbase\""; } >&5
11522  ($PKG_CONFIG --exists --print-errors "sphinxbase") 2>&5
11523  ac_status=$?
11524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11525  test $ac_status = 0; }; then
11526  pkg_cv_SphinxBase_CFLAGS=`$PKG_CONFIG --cflags "sphinxbase" 2>/dev/null`
11527else
11528  pkg_failed=yes
11529fi
11530    fi
11531else
11532	pkg_failed=untried
11533fi
11534if test -n "$PKG_CONFIG"; then
11535    if test -n "$SphinxBase_LIBS"; then
11536        pkg_cv_SphinxBase_LIBS="$SphinxBase_LIBS"
11537    else
11538        if test -n "$PKG_CONFIG" && \
11539    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sphinxbase\""; } >&5
11540  ($PKG_CONFIG --exists --print-errors "sphinxbase") 2>&5
11541  ac_status=$?
11542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11543  test $ac_status = 0; }; then
11544  pkg_cv_SphinxBase_LIBS=`$PKG_CONFIG --libs "sphinxbase" 2>/dev/null`
11545else
11546  pkg_failed=yes
11547fi
11548    fi
11549else
11550	pkg_failed=untried
11551fi
11552
11553
11554
11555if test $pkg_failed = yes; then
11556
11557if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11558        _pkg_short_errors_supported=yes
11559else
11560        _pkg_short_errors_supported=no
11561fi
11562        if test $_pkg_short_errors_supported = yes; then
11563	        SphinxBase_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sphinxbase"`
11564        else
11565	        SphinxBase_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sphinxbase"`
11566        fi
11567	# Put the nasty error message in config.log where it belongs
11568	echo "$SphinxBase_PKG_ERRORS" >&5
11569
11570	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571$as_echo "no" >&6; }
11572
11573      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11575as_fn_error "SphinxBase was not found on your system.
11576Make sure that you have installed it and that the
11577PKG_CONFIG_PATH environment variable is set correctly, if
11578it was installed in a non-standard prefix.
11579See \`config.log' for more details." "$LINENO" 5; }
11580elif test $pkg_failed = untried; then
11581
11582      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11584as_fn_error "SphinxBase was not found on your system.
11585Make sure that you have installed it and that the
11586PKG_CONFIG_PATH environment variable is set correctly, if
11587it was installed in a non-standard prefix.
11588See \`config.log' for more details." "$LINENO" 5; }
11589else
11590	SphinxBase_CFLAGS=$pkg_cv_SphinxBase_CFLAGS
11591	SphinxBase_LIBS=$pkg_cv_SphinxBase_LIBS
11592        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11593$as_echo "yes" >&6; }
11594	:
11595fi
11596   fi
11597   LIBS="$LIBS $SphinxBase_LIBS"
11598   CPPFLAGS="$CPPFLAGS $SphinxBase_CFLAGS"
11599   ac_fn_c_check_header_mongrel "$LINENO" "sphinx_config.h" "ac_cv_header_sphinx_config_h" "$ac_includes_default"
11600if test "x$ac_cv_header_sphinx_config_h" = x""yes; then :
11601
11602else
11603
11604   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11606as_fn_error "SphinxBase was not found on your system.
11607See \`config.log' for more details." "$LINENO" 5; }
11608fi
11609
11610
11611fi
11612
11613: ${sphinxbasebuild=$sphinxbase}
11614if test x$sphinxbase != x && test x$cross_compiling = xyes; then
11615   CPPFLAGS="-I$sphinxbase/include -I$sphinxbasebuild/include $CPPFLAGS"
11616   LIBS="$LIBS -lsphinxbase"
11617   # We include libsphinxbase/.libs because of stupid broken versions of libtool
11618   LDFLAGS="$LDFLAGS -L$sphinxbasebuild/src/libsphinxad \
11619		     -L$sphinxbasebuild/src/libsphinxbase \
11620		     -L$sphinxbasebuild/src/libsphinxbase/.libs"
11621fi
11622if test x$sphinxbase != x && test x$cross_compiling != xyes; then
11623   as_ac_File=`$as_echo "ac_cv_file_$sphinxbase/include/sphinxbase/prim_type.h" | $as_tr_sh`
11624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sphinxbase/include/sphinxbase/prim_type.h" >&5
11625$as_echo_n "checking for $sphinxbase/include/sphinxbase/prim_type.h... " >&6; }
11626if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
11627  $as_echo_n "(cached) " >&6
11628else
11629  test "$cross_compiling" = yes &&
11630  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
11631if test -r "$sphinxbase/include/sphinxbase/prim_type.h"; then
11632  eval "$as_ac_File=yes"
11633else
11634  eval "$as_ac_File=no"
11635fi
11636fi
11637eval ac_res=\$$as_ac_File
11638	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11639$as_echo "$ac_res" >&6; }
11640eval as_val=\$$as_ac_File
11641   if test "x$as_val" = x""yes; then :
11642  CPPFLAGS="-I$sphinxbase/include $CPPFLAGS"
11643else
11644  as_fn_error "SphinxBase headers not found in $sphinxbase.  Please use the
11645--with-sphinxbase option to \`configure' to specify the location of
11646SphinxBase.  Run $0 --help for more information." "$LINENO" 5
11647fi
11648
11649fi
11650# We include libsphinxbase/.libs because of stupid broken versions of libtool
11651if test x$sphinxbasebuild != x && test x$cross_compiling != xyes; then
11652   as_ac_File=`$as_echo "ac_cv_file_$sphinxbasebuild/src/libsphinxbase/libsphinxbase.la" | $as_tr_sh`
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sphinxbasebuild/src/libsphinxbase/libsphinxbase.la" >&5
11654$as_echo_n "checking for $sphinxbasebuild/src/libsphinxbase/libsphinxbase.la... " >&6; }
11655if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
11656  $as_echo_n "(cached) " >&6
11657else
11658  test "$cross_compiling" = yes &&
11659  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
11660if test -r "$sphinxbasebuild/src/libsphinxbase/libsphinxbase.la"; then
11661  eval "$as_ac_File=yes"
11662else
11663  eval "$as_ac_File=no"
11664fi
11665fi
11666eval ac_res=\$$as_ac_File
11667	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11668$as_echo "$ac_res" >&6; }
11669eval as_val=\$$as_ac_File
11670   if test "x$as_val" = x""yes; then :
11671  CPPFLAGS="-I$sphinxbasebuild/include $CPPFLAGS"
11672LIBS="$LIBS -lsphinxbase"
11673LDFLAGS="$LDFLAGS -L$sphinxbasebuild/src/libsphinxad \
11674		  -L$sphinxbasebuild/src/libsphinxbase \
11675		  -L$sphinxbasebuild/src/libsphinxbase/.libs"
11676else
11677  as_fn_error "SphinxBase libraries were not found in $sphinxbasebuild.
11678Use the --with-sphinxbase-build option to \`configure' to specify
11679the build directory for SphinxBase.  Run $0 --help for more information." "$LINENO" 5
11680fi
11681
11682fi
11683
11684
11685
11686
11687ac_config_files="$ac_config_files pocketsphinx.pc Makefile include/Makefile python/Makefile python/setup.py src/Makefile src/libpocketsphinx/Makefile src/programs/Makefile src/gst-plugin/Makefile doc/Makefile doc/doxyfile model/Makefile model/hmm/Makefile model/lm/Makefile test/Makefile test/testfuncs.sh test/unit/Makefile test/regression/Makefile"
11688
11689cat >confcache <<\_ACEOF
11690# This file is a shell script that caches the results of configure
11691# tests run on this system so they can be shared between configure
11692# scripts and configure runs, see configure's option --config-cache.
11693# It is not useful on other systems.  If it contains results you don't
11694# want to keep, you may remove or edit it.
11695#
11696# config.status only pays attention to the cache file if you give it
11697# the --recheck option to rerun configure.
11698#
11699# `ac_cv_env_foo' variables (set or unset) will be overridden when
11700# loading this file, other *unset* `ac_cv_foo' will be assigned the
11701# following values.
11702
11703_ACEOF
11704
11705# The following way of writing the cache mishandles newlines in values,
11706# but we know of no workaround that is simple, portable, and efficient.
11707# So, we kill variables containing newlines.
11708# Ultrix sh set writes to stderr and can't be redirected directly,
11709# and sets the high bit in the cache file unless we assign to the vars.
11710(
11711  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11712    eval ac_val=\$$ac_var
11713    case $ac_val in #(
11714    *${as_nl}*)
11715      case $ac_var in #(
11716      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11717$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11718      esac
11719      case $ac_var in #(
11720      _ | IFS | as_nl) ;; #(
11721      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11722      *) { eval $ac_var=; unset $ac_var;} ;;
11723      esac ;;
11724    esac
11725  done
11726
11727  (set) 2>&1 |
11728    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11729    *${as_nl}ac_space=\ *)
11730      # `set' does not quote correctly, so add quotes: double-quote
11731      # substitution turns \\\\ into \\, and sed turns \\ into \.
11732      sed -n \
11733	"s/'/'\\\\''/g;
11734	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11735      ;; #(
11736    *)
11737      # `set' quotes correctly as required by POSIX, so do not add quotes.
11738      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11739      ;;
11740    esac |
11741    sort
11742) |
11743  sed '
11744     /^ac_cv_env_/b end
11745     t clear
11746     :clear
11747     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11748     t end
11749     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11750     :end' >>confcache
11751if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11752  if test -w "$cache_file"; then
11753    test "x$cache_file" != "x/dev/null" &&
11754      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11755$as_echo "$as_me: updating cache $cache_file" >&6;}
11756    cat confcache >$cache_file
11757  else
11758    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11759$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11760  fi
11761fi
11762rm -f confcache
11763
11764test "x$prefix" = xNONE && prefix=$ac_default_prefix
11765# Let make expand exec_prefix.
11766test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11767
11768# Transform confdefs.h into DEFS.
11769# Protect against shell expansion while executing Makefile rules.
11770# Protect against Makefile macro expansion.
11771#
11772# If the first sed substitution is executed (which looks for macros that
11773# take arguments), then branch to the quote section.  Otherwise,
11774# look for a macro that doesn't take arguments.
11775ac_script='
11776:mline
11777/\\$/{
11778 N
11779 s,\\\n,,
11780 b mline
11781}
11782t clear
11783:clear
11784s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
11785t quote
11786s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
11787t quote
11788b any
11789:quote
11790s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11791s/\[/\\&/g
11792s/\]/\\&/g
11793s/\$/$$/g
11794H
11795:any
11796${
11797	g
11798	s/^\n//
11799	s/\n/ /g
11800	p
11801}
11802'
11803DEFS=`sed -n "$ac_script" confdefs.h`
11804
11805
11806ac_libobjs=
11807ac_ltlibobjs=
11808for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11809  # 1. Remove the extension, and $U if already installed.
11810  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11811  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11812  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11813  #    will be set to the directory where LIBOBJS objects are built.
11814  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11815  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11816done
11817LIBOBJS=$ac_libobjs
11818
11819LTLIBOBJS=$ac_ltlibobjs
11820
11821
11822 if test -n "$EXEEXT"; then
11823  am__EXEEXT_TRUE=
11824  am__EXEEXT_FALSE='#'
11825else
11826  am__EXEEXT_TRUE='#'
11827  am__EXEEXT_FALSE=
11828fi
11829
11830if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11831  as_fn_error "conditional \"AMDEP\" was never defined.
11832Usually this means the macro was only invoked conditionally." "$LINENO" 5
11833fi
11834if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11835  as_fn_error "conditional \"am__fastdepCC\" was never defined.
11836Usually this means the macro was only invoked conditionally." "$LINENO" 5
11837fi
11838
11839if test -z "${BUILD_DOXYGEN_TRUE}" && test -z "${BUILD_DOXYGEN_FALSE}"; then
11840  as_fn_error "conditional \"BUILD_DOXYGEN\" was never defined.
11841Usually this means the macro was only invoked conditionally." "$LINENO" 5
11842fi
11843if test -z "${BUILD_PYTHON_TRUE}" && test -z "${BUILD_PYTHON_FALSE}"; then
11844  as_fn_error "conditional \"BUILD_PYTHON\" was never defined.
11845Usually this means the macro was only invoked conditionally." "$LINENO" 5
11846fi
11847if test -z "${BUILD_CYTHON_TRUE}" && test -z "${BUILD_CYTHON_FALSE}"; then
11848  as_fn_error "conditional \"BUILD_CYTHON\" was never defined.
11849Usually this means the macro was only invoked conditionally." "$LINENO" 5
11850fi
11851if test -z "${BUILD_GST_TRUE}" && test -z "${BUILD_GST_FALSE}"; then
11852  as_fn_error "conditional \"BUILD_GST\" was never defined.
11853Usually this means the macro was only invoked conditionally." "$LINENO" 5
11854fi
11855
11856: ${CONFIG_STATUS=./config.status}
11857ac_write_fail=0
11858ac_clean_files_save=$ac_clean_files
11859ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11860{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11861$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11862as_write_fail=0
11863cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11864#! $SHELL
11865# Generated by $as_me.
11866# Run this file to recreate the current configuration.
11867# Compiler output produced by configure, useful for debugging
11868# configure, is in config.log if it exists.
11869
11870debug=false
11871ac_cs_recheck=false
11872ac_cs_silent=false
11873
11874SHELL=\${CONFIG_SHELL-$SHELL}
11875export SHELL
11876_ASEOF
11877cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11878## -------------------- ##
11879## M4sh Initialization. ##
11880## -------------------- ##
11881
11882# Be more Bourne compatible
11883DUALCASE=1; export DUALCASE # for MKS sh
11884if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11885  emulate sh
11886  NULLCMD=:
11887  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11888  # is contrary to our usage.  Disable this feature.
11889  alias -g '${1+"$@"}'='"$@"'
11890  setopt NO_GLOB_SUBST
11891else
11892  case `(set -o) 2>/dev/null` in #(
11893  *posix*) :
11894    set -o posix ;; #(
11895  *) :
11896     ;;
11897esac
11898fi
11899
11900
11901as_nl='
11902'
11903export as_nl
11904# Printing a long string crashes Solaris 7 /usr/bin/printf.
11905as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11906as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11907as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11908# Prefer a ksh shell builtin over an external printf program on Solaris,
11909# but without wasting forks for bash or zsh.
11910if test -z "$BASH_VERSION$ZSH_VERSION" \
11911    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11912  as_echo='print -r --'
11913  as_echo_n='print -rn --'
11914elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11915  as_echo='printf %s\n'
11916  as_echo_n='printf %s'
11917else
11918  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11919    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11920    as_echo_n='/usr/ucb/echo -n'
11921  else
11922    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11923    as_echo_n_body='eval
11924      arg=$1;
11925      case $arg in #(
11926      *"$as_nl"*)
11927	expr "X$arg" : "X\\(.*\\)$as_nl";
11928	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11929      esac;
11930      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11931    '
11932    export as_echo_n_body
11933    as_echo_n='sh -c $as_echo_n_body as_echo'
11934  fi
11935  export as_echo_body
11936  as_echo='sh -c $as_echo_body as_echo'
11937fi
11938
11939# The user is always right.
11940if test "${PATH_SEPARATOR+set}" != set; then
11941  PATH_SEPARATOR=:
11942  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11943    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11944      PATH_SEPARATOR=';'
11945  }
11946fi
11947
11948
11949# IFS
11950# We need space, tab and new line, in precisely that order.  Quoting is
11951# there to prevent editors from complaining about space-tab.
11952# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11953# splitting by setting IFS to empty value.)
11954IFS=" ""	$as_nl"
11955
11956# Find who we are.  Look in the path if we contain no directory separator.
11957case $0 in #((
11958  *[\\/]* ) as_myself=$0 ;;
11959  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960for as_dir in $PATH
11961do
11962  IFS=$as_save_IFS
11963  test -z "$as_dir" && as_dir=.
11964    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11965  done
11966IFS=$as_save_IFS
11967
11968     ;;
11969esac
11970# We did not find ourselves, most probably we were run as `sh COMMAND'
11971# in which case we are not to be found in the path.
11972if test "x$as_myself" = x; then
11973  as_myself=$0
11974fi
11975if test ! -f "$as_myself"; then
11976  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11977  exit 1
11978fi
11979
11980# Unset variables that we do not need and which cause bugs (e.g. in
11981# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11982# suppresses any "Segmentation fault" message there.  '((' could
11983# trigger a bug in pdksh 5.2.14.
11984for as_var in BASH_ENV ENV MAIL MAILPATH
11985do eval test x\${$as_var+set} = xset \
11986  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11987done
11988PS1='$ '
11989PS2='> '
11990PS4='+ '
11991
11992# NLS nuisances.
11993LC_ALL=C
11994export LC_ALL
11995LANGUAGE=C
11996export LANGUAGE
11997
11998# CDPATH.
11999(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12000
12001
12002# as_fn_error ERROR [LINENO LOG_FD]
12003# ---------------------------------
12004# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12005# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12006# script with status $?, using 1 if that was 0.
12007as_fn_error ()
12008{
12009  as_status=$?; test $as_status -eq 0 && as_status=1
12010  if test "$3"; then
12011    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12012    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12013  fi
12014  $as_echo "$as_me: error: $1" >&2
12015  as_fn_exit $as_status
12016} # as_fn_error
12017
12018
12019# as_fn_set_status STATUS
12020# -----------------------
12021# Set $? to STATUS, without forking.
12022as_fn_set_status ()
12023{
12024  return $1
12025} # as_fn_set_status
12026
12027# as_fn_exit STATUS
12028# -----------------
12029# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12030as_fn_exit ()
12031{
12032  set +e
12033  as_fn_set_status $1
12034  exit $1
12035} # as_fn_exit
12036
12037# as_fn_unset VAR
12038# ---------------
12039# Portably unset VAR.
12040as_fn_unset ()
12041{
12042  { eval $1=; unset $1;}
12043}
12044as_unset=as_fn_unset
12045# as_fn_append VAR VALUE
12046# ----------------------
12047# Append the text in VALUE to the end of the definition contained in VAR. Take
12048# advantage of any shell optimizations that allow amortized linear growth over
12049# repeated appends, instead of the typical quadratic growth present in naive
12050# implementations.
12051if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12052  eval 'as_fn_append ()
12053  {
12054    eval $1+=\$2
12055  }'
12056else
12057  as_fn_append ()
12058  {
12059    eval $1=\$$1\$2
12060  }
12061fi # as_fn_append
12062
12063# as_fn_arith ARG...
12064# ------------------
12065# Perform arithmetic evaluation on the ARGs, and store the result in the
12066# global $as_val. Take advantage of shells that can avoid forks. The arguments
12067# must be portable across $(()) and expr.
12068if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12069  eval 'as_fn_arith ()
12070  {
12071    as_val=$(( $* ))
12072  }'
12073else
12074  as_fn_arith ()
12075  {
12076    as_val=`expr "$@" || test $? -eq 1`
12077  }
12078fi # as_fn_arith
12079
12080
12081if expr a : '\(a\)' >/dev/null 2>&1 &&
12082   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12083  as_expr=expr
12084else
12085  as_expr=false
12086fi
12087
12088if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12089  as_basename=basename
12090else
12091  as_basename=false
12092fi
12093
12094if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12095  as_dirname=dirname
12096else
12097  as_dirname=false
12098fi
12099
12100as_me=`$as_basename -- "$0" ||
12101$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12102	 X"$0" : 'X\(//\)$' \| \
12103	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12104$as_echo X/"$0" |
12105    sed '/^.*\/\([^/][^/]*\)\/*$/{
12106	    s//\1/
12107	    q
12108	  }
12109	  /^X\/\(\/\/\)$/{
12110	    s//\1/
12111	    q
12112	  }
12113	  /^X\/\(\/\).*/{
12114	    s//\1/
12115	    q
12116	  }
12117	  s/.*/./; q'`
12118
12119# Avoid depending upon Character Ranges.
12120as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12121as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12122as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12123as_cr_digits='0123456789'
12124as_cr_alnum=$as_cr_Letters$as_cr_digits
12125
12126ECHO_C= ECHO_N= ECHO_T=
12127case `echo -n x` in #(((((
12128-n*)
12129  case `echo 'xy\c'` in
12130  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12131  xy)  ECHO_C='\c';;
12132  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12133       ECHO_T='	';;
12134  esac;;
12135*)
12136  ECHO_N='-n';;
12137esac
12138
12139rm -f conf$$ conf$$.exe conf$$.file
12140if test -d conf$$.dir; then
12141  rm -f conf$$.dir/conf$$.file
12142else
12143  rm -f conf$$.dir
12144  mkdir conf$$.dir 2>/dev/null
12145fi
12146if (echo >conf$$.file) 2>/dev/null; then
12147  if ln -s conf$$.file conf$$ 2>/dev/null; then
12148    as_ln_s='ln -s'
12149    # ... but there are two gotchas:
12150    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12151    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12152    # In both cases, we have to default to `cp -p'.
12153    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12154      as_ln_s='cp -p'
12155  elif ln conf$$.file conf$$ 2>/dev/null; then
12156    as_ln_s=ln
12157  else
12158    as_ln_s='cp -p'
12159  fi
12160else
12161  as_ln_s='cp -p'
12162fi
12163rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12164rmdir conf$$.dir 2>/dev/null
12165
12166
12167# as_fn_mkdir_p
12168# -------------
12169# Create "$as_dir" as a directory, including parents if necessary.
12170as_fn_mkdir_p ()
12171{
12172
12173  case $as_dir in #(
12174  -*) as_dir=./$as_dir;;
12175  esac
12176  test -d "$as_dir" || eval $as_mkdir_p || {
12177    as_dirs=
12178    while :; do
12179      case $as_dir in #(
12180      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12181      *) as_qdir=$as_dir;;
12182      esac
12183      as_dirs="'$as_qdir' $as_dirs"
12184      as_dir=`$as_dirname -- "$as_dir" ||
12185$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12186	 X"$as_dir" : 'X\(//\)[^/]' \| \
12187	 X"$as_dir" : 'X\(//\)$' \| \
12188	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12189$as_echo X"$as_dir" |
12190    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12191	    s//\1/
12192	    q
12193	  }
12194	  /^X\(\/\/\)[^/].*/{
12195	    s//\1/
12196	    q
12197	  }
12198	  /^X\(\/\/\)$/{
12199	    s//\1/
12200	    q
12201	  }
12202	  /^X\(\/\).*/{
12203	    s//\1/
12204	    q
12205	  }
12206	  s/.*/./; q'`
12207      test -d "$as_dir" && break
12208    done
12209    test -z "$as_dirs" || eval "mkdir $as_dirs"
12210  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12211
12212
12213} # as_fn_mkdir_p
12214if mkdir -p . 2>/dev/null; then
12215  as_mkdir_p='mkdir -p "$as_dir"'
12216else
12217  test -d ./-p && rmdir ./-p
12218  as_mkdir_p=false
12219fi
12220
12221if test -x / >/dev/null 2>&1; then
12222  as_test_x='test -x'
12223else
12224  if ls -dL / >/dev/null 2>&1; then
12225    as_ls_L_option=L
12226  else
12227    as_ls_L_option=
12228  fi
12229  as_test_x='
12230    eval sh -c '\''
12231      if test -d "$1"; then
12232	test -d "$1/.";
12233      else
12234	case $1 in #(
12235	-*)set "./$1";;
12236	esac;
12237	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12238	???[sx]*):;;*)false;;esac;fi
12239    '\'' sh
12240  '
12241fi
12242as_executable_p=$as_test_x
12243
12244# Sed expression to map a string onto a valid CPP name.
12245as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12246
12247# Sed expression to map a string onto a valid variable name.
12248as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12249
12250
12251exec 6>&1
12252## ----------------------------------- ##
12253## Main body of $CONFIG_STATUS script. ##
12254## ----------------------------------- ##
12255_ASEOF
12256test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12257
12258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12259# Save the log message, to keep $0 and so on meaningful, and to
12260# report actual input values of CONFIG_FILES etc. instead of their
12261# values after options handling.
12262ac_log="
12263This file was extended by pocketsphinx $as_me 0.8, which was
12264generated by GNU Autoconf 2.65.  Invocation command line was
12265
12266  CONFIG_FILES    = $CONFIG_FILES
12267  CONFIG_HEADERS  = $CONFIG_HEADERS
12268  CONFIG_LINKS    = $CONFIG_LINKS
12269  CONFIG_COMMANDS = $CONFIG_COMMANDS
12270  $ $0 $@
12271
12272on `(hostname || uname -n) 2>/dev/null | sed 1q`
12273"
12274
12275_ACEOF
12276
12277case $ac_config_files in *"
12278"*) set x $ac_config_files; shift; ac_config_files=$*;;
12279esac
12280
12281
12282
12283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12284# Files that config.status was made for.
12285config_files="$ac_config_files"
12286config_commands="$ac_config_commands"
12287
12288_ACEOF
12289
12290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12291ac_cs_usage="\
12292\`$as_me' instantiates files and other configuration actions
12293from templates according to the current configuration.  Unless the files
12294and actions are specified as TAGs, all are instantiated by default.
12295
12296Usage: $0 [OPTION]... [TAG]...
12297
12298  -h, --help       print this help, then exit
12299  -V, --version    print version number and configuration settings, then exit
12300      --config     print configuration, then exit
12301  -q, --quiet, --silent
12302                   do not print progress messages
12303  -d, --debug      don't remove temporary files
12304      --recheck    update $as_me by reconfiguring in the same conditions
12305      --file=FILE[:TEMPLATE]
12306                   instantiate the configuration file FILE
12307
12308Configuration files:
12309$config_files
12310
12311Configuration commands:
12312$config_commands
12313
12314Report bugs to the package provider."
12315
12316_ACEOF
12317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12318ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12319ac_cs_version="\\
12320pocketsphinx config.status 0.8
12321configured by $0, generated by GNU Autoconf 2.65,
12322  with options \\"\$ac_cs_config\\"
12323
12324Copyright (C) 2009 Free Software Foundation, Inc.
12325This config.status script is free software; the Free Software Foundation
12326gives unlimited permission to copy, distribute and modify it."
12327
12328ac_pwd='$ac_pwd'
12329srcdir='$srcdir'
12330INSTALL='$INSTALL'
12331MKDIR_P='$MKDIR_P'
12332AWK='$AWK'
12333test -n "\$AWK" || AWK=awk
12334_ACEOF
12335
12336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12337# The default lists apply if the user does not specify any file.
12338ac_need_defaults=:
12339while test $# != 0
12340do
12341  case $1 in
12342  --*=*)
12343    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12344    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12345    ac_shift=:
12346    ;;
12347  *)
12348    ac_option=$1
12349    ac_optarg=$2
12350    ac_shift=shift
12351    ;;
12352  esac
12353
12354  case $ac_option in
12355  # Handling of the options.
12356  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12357    ac_cs_recheck=: ;;
12358  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12359    $as_echo "$ac_cs_version"; exit ;;
12360  --config | --confi | --conf | --con | --co | --c )
12361    $as_echo "$ac_cs_config"; exit ;;
12362  --debug | --debu | --deb | --de | --d | -d )
12363    debug=: ;;
12364  --file | --fil | --fi | --f )
12365    $ac_shift
12366    case $ac_optarg in
12367    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12368    esac
12369    as_fn_append CONFIG_FILES " '$ac_optarg'"
12370    ac_need_defaults=false;;
12371  --he | --h |  --help | --hel | -h )
12372    $as_echo "$ac_cs_usage"; exit ;;
12373  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12374  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12375    ac_cs_silent=: ;;
12376
12377  # This is an error.
12378  -*) as_fn_error "unrecognized option: \`$1'
12379Try \`$0 --help' for more information." ;;
12380
12381  *) as_fn_append ac_config_targets " $1"
12382     ac_need_defaults=false ;;
12383
12384  esac
12385  shift
12386done
12387
12388ac_configure_extra_args=
12389
12390if $ac_cs_silent; then
12391  exec 6>/dev/null
12392  ac_configure_extra_args="$ac_configure_extra_args --silent"
12393fi
12394
12395_ACEOF
12396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12397if \$ac_cs_recheck; then
12398  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12399  shift
12400  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12401  CONFIG_SHELL='$SHELL'
12402  export CONFIG_SHELL
12403  exec "\$@"
12404fi
12405
12406_ACEOF
12407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12408exec 5>>config.log
12409{
12410  echo
12411  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12412## Running $as_me. ##
12413_ASBOX
12414  $as_echo "$ac_log"
12415} >&5
12416
12417_ACEOF
12418cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12419#
12420# INIT-COMMANDS
12421#
12422AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12423
12424
12425# The HP-UX ksh and POSIX shell print the target directory to stdout
12426# if CDPATH is set.
12427(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12428
12429sed_quote_subst='$sed_quote_subst'
12430double_quote_subst='$double_quote_subst'
12431delay_variable_subst='$delay_variable_subst'
12432macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12433macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12434enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12435enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12436pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12437enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12438host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12439host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12440host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12441build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12442build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12443build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12444SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12445Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12446GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12447EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12448FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12449LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12450NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12451LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12452max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12453ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12454exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12455lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12456lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12457lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12458reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12459reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12460OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12461deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12462file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12463AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12464AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12465STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12466RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12467old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12468old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12469old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12470CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12471CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12472compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12473GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12474lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12475lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12476lt_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"`'
12477lt_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"`'
12478objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12479SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12480ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12481MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12482lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12483lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12484lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12485lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12486lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12487need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12488DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12489NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12490LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12491OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12492OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12493libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12494shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12495extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12496archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12497enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12498export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12499whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12500compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12501old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12502old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12503archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12504archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12505module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12506module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12507with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12508allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12509no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12510hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12511hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12512hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12513hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12514hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12515hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12516hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12517hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12518inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12519link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12520fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12521always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12522export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12523exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12524include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12525prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12526file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12527variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12528need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12529need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12530version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12531runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12532shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12533shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12534libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12535library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12536soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12537postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12538postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12539finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12540finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12541hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12542sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12543sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12544hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12545enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12546enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12547enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12548old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12549striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12550
12551LTCC='$LTCC'
12552LTCFLAGS='$LTCFLAGS'
12553compiler='$compiler_DEFAULT'
12554
12555# Quote evaled strings.
12556for var in SED \
12557GREP \
12558EGREP \
12559FGREP \
12560LD \
12561NM \
12562LN_S \
12563lt_SP2NL \
12564lt_NL2SP \
12565reload_flag \
12566OBJDUMP \
12567deplibs_check_method \
12568file_magic_cmd \
12569AR \
12570AR_FLAGS \
12571STRIP \
12572RANLIB \
12573CC \
12574CFLAGS \
12575compiler \
12576lt_cv_sys_global_symbol_pipe \
12577lt_cv_sys_global_symbol_to_cdecl \
12578lt_cv_sys_global_symbol_to_c_name_address \
12579lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12580SHELL \
12581ECHO \
12582lt_prog_compiler_no_builtin_flag \
12583lt_prog_compiler_wl \
12584lt_prog_compiler_pic \
12585lt_prog_compiler_static \
12586lt_cv_prog_compiler_c_o \
12587need_locks \
12588DSYMUTIL \
12589NMEDIT \
12590LIPO \
12591OTOOL \
12592OTOOL64 \
12593shrext_cmds \
12594export_dynamic_flag_spec \
12595whole_archive_flag_spec \
12596compiler_needs_object \
12597with_gnu_ld \
12598allow_undefined_flag \
12599no_undefined_flag \
12600hardcode_libdir_flag_spec \
12601hardcode_libdir_flag_spec_ld \
12602hardcode_libdir_separator \
12603fix_srcfile_path \
12604exclude_expsyms \
12605include_expsyms \
12606file_list_spec \
12607variables_saved_for_relink \
12608libname_spec \
12609library_names_spec \
12610soname_spec \
12611finish_eval \
12612old_striplib \
12613striplib; do
12614    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12615    *[\\\\\\\`\\"\\\$]*)
12616      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12617      ;;
12618    *)
12619      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12620      ;;
12621    esac
12622done
12623
12624# Double-quote double-evaled strings.
12625for var in reload_cmds \
12626old_postinstall_cmds \
12627old_postuninstall_cmds \
12628old_archive_cmds \
12629extract_expsyms_cmds \
12630old_archive_from_new_cmds \
12631old_archive_from_expsyms_cmds \
12632archive_cmds \
12633archive_expsym_cmds \
12634module_cmds \
12635module_expsym_cmds \
12636export_symbols_cmds \
12637prelink_cmds \
12638postinstall_cmds \
12639postuninstall_cmds \
12640finish_cmds \
12641sys_lib_search_path_spec \
12642sys_lib_dlsearch_path_spec; do
12643    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12644    *[\\\\\\\`\\"\\\$]*)
12645      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12646      ;;
12647    *)
12648      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12649      ;;
12650    esac
12651done
12652
12653# Fix-up fallback echo if it was mangled by the above quoting rules.
12654case \$lt_ECHO in
12655*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12656  ;;
12657esac
12658
12659ac_aux_dir='$ac_aux_dir'
12660xsi_shell='$xsi_shell'
12661lt_shell_append='$lt_shell_append'
12662
12663# See if we are running on zsh, and set the options which allow our
12664# commands through without removal of \ escapes INIT.
12665if test -n "\${ZSH_VERSION+set}" ; then
12666   setopt NO_GLOB_SUBST
12667fi
12668
12669
12670    PACKAGE='$PACKAGE'
12671    VERSION='$VERSION'
12672    TIMESTAMP='$TIMESTAMP'
12673    RM='$RM'
12674    ofile='$ofile'
12675
12676
12677
12678
12679_ACEOF
12680
12681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12682
12683# Handling of arguments.
12684for ac_config_target in $ac_config_targets
12685do
12686  case $ac_config_target in
12687    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12688    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12689    "pocketsphinx.pc") CONFIG_FILES="$CONFIG_FILES pocketsphinx.pc" ;;
12690    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12691    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12692    "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
12693    "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
12694    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12695    "src/libpocketsphinx/Makefile") CONFIG_FILES="$CONFIG_FILES src/libpocketsphinx/Makefile" ;;
12696    "src/programs/Makefile") CONFIG_FILES="$CONFIG_FILES src/programs/Makefile" ;;
12697    "src/gst-plugin/Makefile") CONFIG_FILES="$CONFIG_FILES src/gst-plugin/Makefile" ;;
12698    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12699    "doc/doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxyfile" ;;
12700    "model/Makefile") CONFIG_FILES="$CONFIG_FILES model/Makefile" ;;
12701    "model/hmm/Makefile") CONFIG_FILES="$CONFIG_FILES model/hmm/Makefile" ;;
12702    "model/lm/Makefile") CONFIG_FILES="$CONFIG_FILES model/lm/Makefile" ;;
12703    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
12704    "test/testfuncs.sh") CONFIG_FILES="$CONFIG_FILES test/testfuncs.sh" ;;
12705    "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;;
12706    "test/regression/Makefile") CONFIG_FILES="$CONFIG_FILES test/regression/Makefile" ;;
12707
12708  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12709  esac
12710done
12711
12712
12713# If the user did not use the arguments to specify the items to instantiate,
12714# then the envvar interface is used.  Set only those that are not.
12715# We use the long form for the default assignment because of an extremely
12716# bizarre bug on SunOS 4.1.3.
12717if $ac_need_defaults; then
12718  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12719  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12720fi
12721
12722# Have a temporary directory for convenience.  Make it in the build tree
12723# simply because there is no reason against having it here, and in addition,
12724# creating and moving files from /tmp can sometimes cause problems.
12725# Hook for its removal unless debugging.
12726# Note that there is a small window in which the directory will not be cleaned:
12727# after its creation but before its name has been assigned to `$tmp'.
12728$debug ||
12729{
12730  tmp=
12731  trap 'exit_status=$?
12732  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12733' 0
12734  trap 'as_fn_exit 1' 1 2 13 15
12735}
12736# Create a (secure) tmp directory for tmp files.
12737
12738{
12739  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12740  test -n "$tmp" && test -d "$tmp"
12741}  ||
12742{
12743  tmp=./conf$$-$RANDOM
12744  (umask 077 && mkdir "$tmp")
12745} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12746
12747# Set up the scripts for CONFIG_FILES section.
12748# No need to generate them if there are no CONFIG_FILES.
12749# This happens for instance with `./config.status config.h'.
12750if test -n "$CONFIG_FILES"; then
12751
12752
12753ac_cr=`echo X | tr X '\015'`
12754# On cygwin, bash can eat \r inside `` if the user requested igncr.
12755# But we know of no other shell where ac_cr would be empty at this
12756# point, so we can use a bashism as a fallback.
12757if test "x$ac_cr" = x; then
12758  eval ac_cr=\$\'\\r\'
12759fi
12760ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12761if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12762  ac_cs_awk_cr='\r'
12763else
12764  ac_cs_awk_cr=$ac_cr
12765fi
12766
12767echo 'BEGIN {' >"$tmp/subs1.awk" &&
12768_ACEOF
12769
12770
12771{
12772  echo "cat >conf$$subs.awk <<_ACEOF" &&
12773  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12774  echo "_ACEOF"
12775} >conf$$subs.sh ||
12776  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12777ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12778ac_delim='%!_!# '
12779for ac_last_try in false false false false false :; do
12780  . ./conf$$subs.sh ||
12781    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12782
12783  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12784  if test $ac_delim_n = $ac_delim_num; then
12785    break
12786  elif $ac_last_try; then
12787    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12788  else
12789    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12790  fi
12791done
12792rm -f conf$$subs.sh
12793
12794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12795cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12796_ACEOF
12797sed -n '
12798h
12799s/^/S["/; s/!.*/"]=/
12800p
12801g
12802s/^[^!]*!//
12803:repl
12804t repl
12805s/'"$ac_delim"'$//
12806t delim
12807:nl
12808h
12809s/\(.\{148\}\)..*/\1/
12810t more1
12811s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12812p
12813n
12814b repl
12815:more1
12816s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12817p
12818g
12819s/.\{148\}//
12820t nl
12821:delim
12822h
12823s/\(.\{148\}\)..*/\1/
12824t more2
12825s/["\\]/\\&/g; s/^/"/; s/$/"/
12826p
12827b
12828:more2
12829s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12830p
12831g
12832s/.\{148\}//
12833t delim
12834' <conf$$subs.awk | sed '
12835/^[^""]/{
12836  N
12837  s/\n//
12838}
12839' >>$CONFIG_STATUS || ac_write_fail=1
12840rm -f conf$$subs.awk
12841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12842_ACAWK
12843cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12844  for (key in S) S_is_set[key] = 1
12845  FS = ""
12846
12847}
12848{
12849  line = $ 0
12850  nfields = split(line, field, "@")
12851  substed = 0
12852  len = length(field[1])
12853  for (i = 2; i < nfields; i++) {
12854    key = field[i]
12855    keylen = length(key)
12856    if (S_is_set[key]) {
12857      value = S[key]
12858      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12859      len += length(value) + length(field[++i])
12860      substed = 1
12861    } else
12862      len += 1 + keylen
12863  }
12864
12865  print line
12866}
12867
12868_ACAWK
12869_ACEOF
12870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12871if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12872  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12873else
12874  cat
12875fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12876  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12877_ACEOF
12878
12879# VPATH may cause trouble with some makes, so we remove $(srcdir),
12880# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12881# trailing colons and then remove the whole line if VPATH becomes empty
12882# (actually we leave an empty line to preserve line numbers).
12883if test "x$srcdir" = x.; then
12884  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12885s/:*\$(srcdir):*/:/
12886s/:*\${srcdir}:*/:/
12887s/:*@srcdir@:*/:/
12888s/^\([^=]*=[	 ]*\):*/\1/
12889s/:*$//
12890s/^[^=]*=[	 ]*$//
12891}'
12892fi
12893
12894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12895fi # test -n "$CONFIG_FILES"
12896
12897
12898eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
12899shift
12900for ac_tag
12901do
12902  case $ac_tag in
12903  :[FHLC]) ac_mode=$ac_tag; continue;;
12904  esac
12905  case $ac_mode$ac_tag in
12906  :[FHL]*:*);;
12907  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12908  :[FH]-) ac_tag=-:-;;
12909  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12910  esac
12911  ac_save_IFS=$IFS
12912  IFS=:
12913  set x $ac_tag
12914  IFS=$ac_save_IFS
12915  shift
12916  ac_file=$1
12917  shift
12918
12919  case $ac_mode in
12920  :L) ac_source=$1;;
12921  :[FH])
12922    ac_file_inputs=
12923    for ac_f
12924    do
12925      case $ac_f in
12926      -) ac_f="$tmp/stdin";;
12927      *) # Look for the file first in the build tree, then in the source tree
12928	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12929	 # because $ac_f cannot contain `:'.
12930	 test -f "$ac_f" ||
12931	   case $ac_f in
12932	   [\\/$]*) false;;
12933	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12934	   esac ||
12935	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12936      esac
12937      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12938      as_fn_append ac_file_inputs " '$ac_f'"
12939    done
12940
12941    # Let's still pretend it is `configure' which instantiates (i.e., don't
12942    # use $as_me), people would be surprised to read:
12943    #    /* config.h.  Generated by config.status.  */
12944    configure_input='Generated from '`
12945	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12946	`' by configure.'
12947    if test x"$ac_file" != x-; then
12948      configure_input="$ac_file.  $configure_input"
12949      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12950$as_echo "$as_me: creating $ac_file" >&6;}
12951    fi
12952    # Neutralize special characters interpreted by sed in replacement strings.
12953    case $configure_input in #(
12954    *\&* | *\|* | *\\* )
12955       ac_sed_conf_input=`$as_echo "$configure_input" |
12956       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12957    *) ac_sed_conf_input=$configure_input;;
12958    esac
12959
12960    case $ac_tag in
12961    *:-:* | *:-) cat >"$tmp/stdin" \
12962      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12963    esac
12964    ;;
12965  esac
12966
12967  ac_dir=`$as_dirname -- "$ac_file" ||
12968$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12969	 X"$ac_file" : 'X\(//\)[^/]' \| \
12970	 X"$ac_file" : 'X\(//\)$' \| \
12971	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12972$as_echo X"$ac_file" |
12973    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12974	    s//\1/
12975	    q
12976	  }
12977	  /^X\(\/\/\)[^/].*/{
12978	    s//\1/
12979	    q
12980	  }
12981	  /^X\(\/\/\)$/{
12982	    s//\1/
12983	    q
12984	  }
12985	  /^X\(\/\).*/{
12986	    s//\1/
12987	    q
12988	  }
12989	  s/.*/./; q'`
12990  as_dir="$ac_dir"; as_fn_mkdir_p
12991  ac_builddir=.
12992
12993case "$ac_dir" in
12994.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12995*)
12996  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12997  # A ".." for each directory in $ac_dir_suffix.
12998  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12999  case $ac_top_builddir_sub in
13000  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13001  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13002  esac ;;
13003esac
13004ac_abs_top_builddir=$ac_pwd
13005ac_abs_builddir=$ac_pwd$ac_dir_suffix
13006# for backward compatibility:
13007ac_top_builddir=$ac_top_build_prefix
13008
13009case $srcdir in
13010  .)  # We are building in place.
13011    ac_srcdir=.
13012    ac_top_srcdir=$ac_top_builddir_sub
13013    ac_abs_top_srcdir=$ac_pwd ;;
13014  [\\/]* | ?:[\\/]* )  # Absolute name.
13015    ac_srcdir=$srcdir$ac_dir_suffix;
13016    ac_top_srcdir=$srcdir
13017    ac_abs_top_srcdir=$srcdir ;;
13018  *) # Relative name.
13019    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13020    ac_top_srcdir=$ac_top_build_prefix$srcdir
13021    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13022esac
13023ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13024
13025
13026  case $ac_mode in
13027  :F)
13028  #
13029  # CONFIG_FILE
13030  #
13031
13032  case $INSTALL in
13033  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13034  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13035  esac
13036  ac_MKDIR_P=$MKDIR_P
13037  case $MKDIR_P in
13038  [\\/$]* | ?:[\\/]* ) ;;
13039  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13040  esac
13041_ACEOF
13042
13043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13044# If the template does not know about datarootdir, expand it.
13045# FIXME: This hack should be removed a few years after 2.60.
13046ac_datarootdir_hack=; ac_datarootdir_seen=
13047ac_sed_dataroot='
13048/datarootdir/ {
13049  p
13050  q
13051}
13052/@datadir@/p
13053/@docdir@/p
13054/@infodir@/p
13055/@localedir@/p
13056/@mandir@/p'
13057case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13058*datarootdir*) ac_datarootdir_seen=yes;;
13059*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13060  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13061$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13062_ACEOF
13063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13064  ac_datarootdir_hack='
13065  s&@datadir@&$datadir&g
13066  s&@docdir@&$docdir&g
13067  s&@infodir@&$infodir&g
13068  s&@localedir@&$localedir&g
13069  s&@mandir@&$mandir&g
13070  s&\\\${datarootdir}&$datarootdir&g' ;;
13071esac
13072_ACEOF
13073
13074# Neutralize VPATH when `$srcdir' = `.'.
13075# Shell code in configure.ac might set extrasub.
13076# FIXME: do we really want to maintain this feature?
13077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13078ac_sed_extra="$ac_vpsub
13079$extrasub
13080_ACEOF
13081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13082:t
13083/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13084s|@configure_input@|$ac_sed_conf_input|;t t
13085s&@top_builddir@&$ac_top_builddir_sub&;t t
13086s&@top_build_prefix@&$ac_top_build_prefix&;t t
13087s&@srcdir@&$ac_srcdir&;t t
13088s&@abs_srcdir@&$ac_abs_srcdir&;t t
13089s&@top_srcdir@&$ac_top_srcdir&;t t
13090s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13091s&@builddir@&$ac_builddir&;t t
13092s&@abs_builddir@&$ac_abs_builddir&;t t
13093s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13094s&@INSTALL@&$ac_INSTALL&;t t
13095s&@MKDIR_P@&$ac_MKDIR_P&;t t
13096$ac_datarootdir_hack
13097"
13098eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13099  || as_fn_error "could not create $ac_file" "$LINENO" 5
13100
13101test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13102  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13103  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13104  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13105which seems to be undefined.  Please make sure it is defined." >&5
13106$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13107which seems to be undefined.  Please make sure it is defined." >&2;}
13108
13109  rm -f "$tmp/stdin"
13110  case $ac_file in
13111  -) cat "$tmp/out" && rm -f "$tmp/out";;
13112  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13113  esac \
13114  || as_fn_error "could not create $ac_file" "$LINENO" 5
13115 ;;
13116
13117
13118  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13119$as_echo "$as_me: executing $ac_file commands" >&6;}
13120 ;;
13121  esac
13122
13123
13124  case $ac_file$ac_mode in
13125    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13126  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13127  # are listed without --file.  Let's play safe and only enable the eval
13128  # if we detect the quoting.
13129  case $CONFIG_FILES in
13130  *\'*) eval set x "$CONFIG_FILES" ;;
13131  *)   set x $CONFIG_FILES ;;
13132  esac
13133  shift
13134  for mf
13135  do
13136    # Strip MF so we end up with the name of the file.
13137    mf=`echo "$mf" | sed -e 's/:.*$//'`
13138    # Check whether this is an Automake generated Makefile or not.
13139    # We used to match only the files named `Makefile.in', but
13140    # some people rename them; so instead we look at the file content.
13141    # Grep'ing the first line is not enough: some people post-process
13142    # each Makefile.in and add a new line on top of each file to say so.
13143    # Grep'ing the whole file is not good either: AIX grep has a line
13144    # limit of 2048, but all sed's we know have understand at least 4000.
13145    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13146      dirpart=`$as_dirname -- "$mf" ||
13147$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13148	 X"$mf" : 'X\(//\)[^/]' \| \
13149	 X"$mf" : 'X\(//\)$' \| \
13150	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13151$as_echo X"$mf" |
13152    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13153	    s//\1/
13154	    q
13155	  }
13156	  /^X\(\/\/\)[^/].*/{
13157	    s//\1/
13158	    q
13159	  }
13160	  /^X\(\/\/\)$/{
13161	    s//\1/
13162	    q
13163	  }
13164	  /^X\(\/\).*/{
13165	    s//\1/
13166	    q
13167	  }
13168	  s/.*/./; q'`
13169    else
13170      continue
13171    fi
13172    # Extract the definition of DEPDIR, am__include, and am__quote
13173    # from the Makefile without running `make'.
13174    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13175    test -z "$DEPDIR" && continue
13176    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13177    test -z "am__include" && continue
13178    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13179    # When using ansi2knr, U may be empty or an underscore; expand it
13180    U=`sed -n 's/^U = //p' < "$mf"`
13181    # Find all dependency output files, they are included files with
13182    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13183    # simplest approach to changing $(DEPDIR) to its actual value in the
13184    # expansion.
13185    for file in `sed -n "
13186      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13187	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13188      # Make sure the directory exists.
13189      test -f "$dirpart/$file" && continue
13190      fdir=`$as_dirname -- "$file" ||
13191$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13192	 X"$file" : 'X\(//\)[^/]' \| \
13193	 X"$file" : 'X\(//\)$' \| \
13194	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13195$as_echo X"$file" |
13196    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13197	    s//\1/
13198	    q
13199	  }
13200	  /^X\(\/\/\)[^/].*/{
13201	    s//\1/
13202	    q
13203	  }
13204	  /^X\(\/\/\)$/{
13205	    s//\1/
13206	    q
13207	  }
13208	  /^X\(\/\).*/{
13209	    s//\1/
13210	    q
13211	  }
13212	  s/.*/./; q'`
13213      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13214      # echo "creating $dirpart/$file"
13215      echo '# dummy' > "$dirpart/$file"
13216    done
13217  done
13218}
13219 ;;
13220    "libtool":C)
13221
13222    # See if we are running on zsh, and set the options which allow our
13223    # commands through without removal of \ escapes.
13224    if test -n "${ZSH_VERSION+set}" ; then
13225      setopt NO_GLOB_SUBST
13226    fi
13227
13228    cfgfile="${ofile}T"
13229    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13230    $RM "$cfgfile"
13231
13232    cat <<_LT_EOF >> "$cfgfile"
13233#! $SHELL
13234
13235# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13236# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13237# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13238# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13239#
13240#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13241#                 2006, 2007, 2008 Free Software Foundation, Inc.
13242#   Written by Gordon Matzigkeit, 1996
13243#
13244#   This file is part of GNU Libtool.
13245#
13246# GNU Libtool is free software; you can redistribute it and/or
13247# modify it under the terms of the GNU General Public License as
13248# published by the Free Software Foundation; either version 2 of
13249# the License, or (at your option) any later version.
13250#
13251# As a special exception to the GNU General Public License,
13252# if you distribute this file as part of a program or library that
13253# is built using GNU Libtool, you may include this file under the
13254# same distribution terms that you use for the rest of that program.
13255#
13256# GNU Libtool is distributed in the hope that it will be useful,
13257# but WITHOUT ANY WARRANTY; without even the implied warranty of
13258# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13259# GNU General Public License for more details.
13260#
13261# You should have received a copy of the GNU General Public License
13262# along with GNU Libtool; see the file COPYING.  If not, a copy
13263# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13264# obtained by writing to the Free Software Foundation, Inc.,
13265# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13266
13267
13268# The names of the tagged configurations supported by this script.
13269available_tags=""
13270
13271# ### BEGIN LIBTOOL CONFIG
13272
13273# Which release of libtool.m4 was used?
13274macro_version=$macro_version
13275macro_revision=$macro_revision
13276
13277# Whether or not to build shared libraries.
13278build_libtool_libs=$enable_shared
13279
13280# Whether or not to build static libraries.
13281build_old_libs=$enable_static
13282
13283# What type of objects to build.
13284pic_mode=$pic_mode
13285
13286# Whether or not to optimize for fast installation.
13287fast_install=$enable_fast_install
13288
13289# The host system.
13290host_alias=$host_alias
13291host=$host
13292host_os=$host_os
13293
13294# The build system.
13295build_alias=$build_alias
13296build=$build
13297build_os=$build_os
13298
13299# A sed program that does not truncate output.
13300SED=$lt_SED
13301
13302# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13303Xsed="\$SED -e 1s/^X//"
13304
13305# A grep program that handles long lines.
13306GREP=$lt_GREP
13307
13308# An ERE matcher.
13309EGREP=$lt_EGREP
13310
13311# A literal string matcher.
13312FGREP=$lt_FGREP
13313
13314# A BSD- or MS-compatible name lister.
13315NM=$lt_NM
13316
13317# Whether we need soft or hard links.
13318LN_S=$lt_LN_S
13319
13320# What is the maximum length of a command?
13321max_cmd_len=$max_cmd_len
13322
13323# Object file suffix (normally "o").
13324objext=$ac_objext
13325
13326# Executable file suffix (normally "").
13327exeext=$exeext
13328
13329# whether the shell understands "unset".
13330lt_unset=$lt_unset
13331
13332# turn spaces into newlines.
13333SP2NL=$lt_lt_SP2NL
13334
13335# turn newlines into spaces.
13336NL2SP=$lt_lt_NL2SP
13337
13338# How to create reloadable object files.
13339reload_flag=$lt_reload_flag
13340reload_cmds=$lt_reload_cmds
13341
13342# An object symbol dumper.
13343OBJDUMP=$lt_OBJDUMP
13344
13345# Method to check whether dependent libraries are shared objects.
13346deplibs_check_method=$lt_deplibs_check_method
13347
13348# Command to use when deplibs_check_method == "file_magic".
13349file_magic_cmd=$lt_file_magic_cmd
13350
13351# The archiver.
13352AR=$lt_AR
13353AR_FLAGS=$lt_AR_FLAGS
13354
13355# A symbol stripping program.
13356STRIP=$lt_STRIP
13357
13358# Commands used to install an old-style archive.
13359RANLIB=$lt_RANLIB
13360old_postinstall_cmds=$lt_old_postinstall_cmds
13361old_postuninstall_cmds=$lt_old_postuninstall_cmds
13362
13363# A C compiler.
13364LTCC=$lt_CC
13365
13366# LTCC compiler flags.
13367LTCFLAGS=$lt_CFLAGS
13368
13369# Take the output of nm and produce a listing of raw symbols and C names.
13370global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13371
13372# Transform the output of nm in a proper C declaration.
13373global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13374
13375# Transform the output of nm in a C name address pair.
13376global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13377
13378# Transform the output of nm in a C name address pair when lib prefix is needed.
13379global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13380
13381# The name of the directory that contains temporary libtool files.
13382objdir=$objdir
13383
13384# Shell to use when invoking shell scripts.
13385SHELL=$lt_SHELL
13386
13387# An echo program that does not interpret backslashes.
13388ECHO=$lt_ECHO
13389
13390# Used to examine libraries when file_magic_cmd begins with "file".
13391MAGIC_CMD=$MAGIC_CMD
13392
13393# Must we lock files when doing compilation?
13394need_locks=$lt_need_locks
13395
13396# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13397DSYMUTIL=$lt_DSYMUTIL
13398
13399# Tool to change global to local symbols on Mac OS X.
13400NMEDIT=$lt_NMEDIT
13401
13402# Tool to manipulate fat objects and archives on Mac OS X.
13403LIPO=$lt_LIPO
13404
13405# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13406OTOOL=$lt_OTOOL
13407
13408# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13409OTOOL64=$lt_OTOOL64
13410
13411# Old archive suffix (normally "a").
13412libext=$libext
13413
13414# Shared library suffix (normally ".so").
13415shrext_cmds=$lt_shrext_cmds
13416
13417# The commands to extract the exported symbol list from a shared archive.
13418extract_expsyms_cmds=$lt_extract_expsyms_cmds
13419
13420# Variables whose values should be saved in libtool wrapper scripts and
13421# restored at link time.
13422variables_saved_for_relink=$lt_variables_saved_for_relink
13423
13424# Do we need the "lib" prefix for modules?
13425need_lib_prefix=$need_lib_prefix
13426
13427# Do we need a version for libraries?
13428need_version=$need_version
13429
13430# Library versioning type.
13431version_type=$version_type
13432
13433# Shared library runtime path variable.
13434runpath_var=$runpath_var
13435
13436# Shared library path variable.
13437shlibpath_var=$shlibpath_var
13438
13439# Is shlibpath searched before the hard-coded library search path?
13440shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13441
13442# Format of library name prefix.
13443libname_spec=$lt_libname_spec
13444
13445# List of archive names.  First name is the real one, the rest are links.
13446# The last name is the one that the linker finds with -lNAME
13447library_names_spec=$lt_library_names_spec
13448
13449# The coded name of the library, if different from the real name.
13450soname_spec=$lt_soname_spec
13451
13452# Command to use after installation of a shared archive.
13453postinstall_cmds=$lt_postinstall_cmds
13454
13455# Command to use after uninstallation of a shared archive.
13456postuninstall_cmds=$lt_postuninstall_cmds
13457
13458# Commands used to finish a libtool library installation in a directory.
13459finish_cmds=$lt_finish_cmds
13460
13461# As "finish_cmds", except a single script fragment to be evaled but
13462# not shown.
13463finish_eval=$lt_finish_eval
13464
13465# Whether we should hardcode library paths into libraries.
13466hardcode_into_libs=$hardcode_into_libs
13467
13468# Compile-time system search path for libraries.
13469sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13470
13471# Run-time system search path for libraries.
13472sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13473
13474# Whether dlopen is supported.
13475dlopen_support=$enable_dlopen
13476
13477# Whether dlopen of programs is supported.
13478dlopen_self=$enable_dlopen_self
13479
13480# Whether dlopen of statically linked programs is supported.
13481dlopen_self_static=$enable_dlopen_self_static
13482
13483# Commands to strip libraries.
13484old_striplib=$lt_old_striplib
13485striplib=$lt_striplib
13486
13487
13488# The linker used to build libraries.
13489LD=$lt_LD
13490
13491# Commands used to build an old-style archive.
13492old_archive_cmds=$lt_old_archive_cmds
13493
13494# A language specific compiler.
13495CC=$lt_compiler
13496
13497# Is the compiler the GNU compiler?
13498with_gcc=$GCC
13499
13500# Compiler flag to turn off builtin functions.
13501no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13502
13503# How to pass a linker flag through the compiler.
13504wl=$lt_lt_prog_compiler_wl
13505
13506# Additional compiler flags for building library objects.
13507pic_flag=$lt_lt_prog_compiler_pic
13508
13509# Compiler flag to prevent dynamic linking.
13510link_static_flag=$lt_lt_prog_compiler_static
13511
13512# Does compiler simultaneously support -c and -o options?
13513compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13514
13515# Whether or not to add -lc for building shared libraries.
13516build_libtool_need_lc=$archive_cmds_need_lc
13517
13518# Whether or not to disallow shared libs when runtime libs are static.
13519allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13520
13521# Compiler flag to allow reflexive dlopens.
13522export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13523
13524# Compiler flag to generate shared objects directly from archives.
13525whole_archive_flag_spec=$lt_whole_archive_flag_spec
13526
13527# Whether the compiler copes with passing no objects directly.
13528compiler_needs_object=$lt_compiler_needs_object
13529
13530# Create an old-style archive from a shared archive.
13531old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13532
13533# Create a temporary old-style archive to link instead of a shared archive.
13534old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13535
13536# Commands used to build a shared archive.
13537archive_cmds=$lt_archive_cmds
13538archive_expsym_cmds=$lt_archive_expsym_cmds
13539
13540# Commands used to build a loadable module if different from building
13541# a shared archive.
13542module_cmds=$lt_module_cmds
13543module_expsym_cmds=$lt_module_expsym_cmds
13544
13545# Whether we are building with GNU ld or not.
13546with_gnu_ld=$lt_with_gnu_ld
13547
13548# Flag that allows shared libraries with undefined symbols to be built.
13549allow_undefined_flag=$lt_allow_undefined_flag
13550
13551# Flag that enforces no undefined symbols.
13552no_undefined_flag=$lt_no_undefined_flag
13553
13554# Flag to hardcode \$libdir into a binary during linking.
13555# This must work even if \$libdir does not exist
13556hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13557
13558# If ld is used when linking, flag to hardcode \$libdir into a binary
13559# during linking.  This must work even if \$libdir does not exist.
13560hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13561
13562# Whether we need a single "-rpath" flag with a separated argument.
13563hardcode_libdir_separator=$lt_hardcode_libdir_separator
13564
13565# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13566# DIR into the resulting binary.
13567hardcode_direct=$hardcode_direct
13568
13569# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13570# DIR into the resulting binary and the resulting library dependency is
13571# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13572# library is relocated.
13573hardcode_direct_absolute=$hardcode_direct_absolute
13574
13575# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13576# into the resulting binary.
13577hardcode_minus_L=$hardcode_minus_L
13578
13579# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13580# into the resulting binary.
13581hardcode_shlibpath_var=$hardcode_shlibpath_var
13582
13583# Set to "yes" if building a shared library automatically hardcodes DIR
13584# into the library and all subsequent libraries and executables linked
13585# against it.
13586hardcode_automatic=$hardcode_automatic
13587
13588# Set to yes if linker adds runtime paths of dependent libraries
13589# to runtime path list.
13590inherit_rpath=$inherit_rpath
13591
13592# Whether libtool must link a program against all its dependency libraries.
13593link_all_deplibs=$link_all_deplibs
13594
13595# Fix the shell variable \$srcfile for the compiler.
13596fix_srcfile_path=$lt_fix_srcfile_path
13597
13598# Set to "yes" if exported symbols are required.
13599always_export_symbols=$always_export_symbols
13600
13601# The commands to list exported symbols.
13602export_symbols_cmds=$lt_export_symbols_cmds
13603
13604# Symbols that should not be listed in the preloaded symbols.
13605exclude_expsyms=$lt_exclude_expsyms
13606
13607# Symbols that must always be exported.
13608include_expsyms=$lt_include_expsyms
13609
13610# Commands necessary for linking programs (against libraries) with templates.
13611prelink_cmds=$lt_prelink_cmds
13612
13613# Specify filename containing input files.
13614file_list_spec=$lt_file_list_spec
13615
13616# How to hardcode a shared library path into an executable.
13617hardcode_action=$hardcode_action
13618
13619# ### END LIBTOOL CONFIG
13620
13621_LT_EOF
13622
13623  case $host_os in
13624  aix3*)
13625    cat <<\_LT_EOF >> "$cfgfile"
13626# AIX sometimes has problems with the GCC collect2 program.  For some
13627# reason, if we set the COLLECT_NAMES environment variable, the problems
13628# vanish in a puff of smoke.
13629if test "X${COLLECT_NAMES+set}" != Xset; then
13630  COLLECT_NAMES=
13631  export COLLECT_NAMES
13632fi
13633_LT_EOF
13634    ;;
13635  esac
13636
13637
13638ltmain="$ac_aux_dir/ltmain.sh"
13639
13640
13641  # We use sed instead of cat because bash on DJGPP gets confused if
13642  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13643  # text mode, it properly converts lines to CR/LF.  This bash problem
13644  # is reportedly fixed, but why not run on old versions too?
13645  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13646    || (rm -f "$cfgfile"; exit 1)
13647
13648  case $xsi_shell in
13649  yes)
13650    cat << \_LT_EOF >> "$cfgfile"
13651
13652# func_dirname file append nondir_replacement
13653# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13654# otherwise set result to NONDIR_REPLACEMENT.
13655func_dirname ()
13656{
13657  case ${1} in
13658    */*) func_dirname_result="${1%/*}${2}" ;;
13659    *  ) func_dirname_result="${3}" ;;
13660  esac
13661}
13662
13663# func_basename file
13664func_basename ()
13665{
13666  func_basename_result="${1##*/}"
13667}
13668
13669# func_dirname_and_basename file append nondir_replacement
13670# perform func_basename and func_dirname in a single function
13671# call:
13672#   dirname:  Compute the dirname of FILE.  If nonempty,
13673#             add APPEND to the result, otherwise set result
13674#             to NONDIR_REPLACEMENT.
13675#             value returned in "$func_dirname_result"
13676#   basename: Compute filename of FILE.
13677#             value retuned in "$func_basename_result"
13678# Implementation must be kept synchronized with func_dirname
13679# and func_basename. For efficiency, we do not delegate to
13680# those functions but instead duplicate the functionality here.
13681func_dirname_and_basename ()
13682{
13683  case ${1} in
13684    */*) func_dirname_result="${1%/*}${2}" ;;
13685    *  ) func_dirname_result="${3}" ;;
13686  esac
13687  func_basename_result="${1##*/}"
13688}
13689
13690# func_stripname prefix suffix name
13691# strip PREFIX and SUFFIX off of NAME.
13692# PREFIX and SUFFIX must not contain globbing or regex special
13693# characters, hashes, percent signs, but SUFFIX may contain a leading
13694# dot (in which case that matches only a dot).
13695func_stripname ()
13696{
13697  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13698  # positional parameters, so assign one to ordinary parameter first.
13699  func_stripname_result=${3}
13700  func_stripname_result=${func_stripname_result#"${1}"}
13701  func_stripname_result=${func_stripname_result%"${2}"}
13702}
13703
13704# func_opt_split
13705func_opt_split ()
13706{
13707  func_opt_split_opt=${1%%=*}
13708  func_opt_split_arg=${1#*=}
13709}
13710
13711# func_lo2o object
13712func_lo2o ()
13713{
13714  case ${1} in
13715    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13716    *)    func_lo2o_result=${1} ;;
13717  esac
13718}
13719
13720# func_xform libobj-or-source
13721func_xform ()
13722{
13723  func_xform_result=${1%.*}.lo
13724}
13725
13726# func_arith arithmetic-term...
13727func_arith ()
13728{
13729  func_arith_result=$(( $* ))
13730}
13731
13732# func_len string
13733# STRING may not start with a hyphen.
13734func_len ()
13735{
13736  func_len_result=${#1}
13737}
13738
13739_LT_EOF
13740    ;;
13741  *) # Bourne compatible functions.
13742    cat << \_LT_EOF >> "$cfgfile"
13743
13744# func_dirname file append nondir_replacement
13745# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13746# otherwise set result to NONDIR_REPLACEMENT.
13747func_dirname ()
13748{
13749  # Extract subdirectory from the argument.
13750  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13751  if test "X$func_dirname_result" = "X${1}"; then
13752    func_dirname_result="${3}"
13753  else
13754    func_dirname_result="$func_dirname_result${2}"
13755  fi
13756}
13757
13758# func_basename file
13759func_basename ()
13760{
13761  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13762}
13763
13764
13765# func_stripname prefix suffix name
13766# strip PREFIX and SUFFIX off of NAME.
13767# PREFIX and SUFFIX must not contain globbing or regex special
13768# characters, hashes, percent signs, but SUFFIX may contain a leading
13769# dot (in which case that matches only a dot).
13770# func_strip_suffix prefix name
13771func_stripname ()
13772{
13773  case ${2} in
13774    .*) func_stripname_result=`$ECHO "X${3}" \
13775           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13776    *)  func_stripname_result=`$ECHO "X${3}" \
13777           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13778  esac
13779}
13780
13781# sed scripts:
13782my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13783my_sed_long_arg='1s/^-[^=]*=//'
13784
13785# func_opt_split
13786func_opt_split ()
13787{
13788  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13789  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13790}
13791
13792# func_lo2o object
13793func_lo2o ()
13794{
13795  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13796}
13797
13798# func_xform libobj-or-source
13799func_xform ()
13800{
13801  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13802}
13803
13804# func_arith arithmetic-term...
13805func_arith ()
13806{
13807  func_arith_result=`expr "$@"`
13808}
13809
13810# func_len string
13811# STRING may not start with a hyphen.
13812func_len ()
13813{
13814  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13815}
13816
13817_LT_EOF
13818esac
13819
13820case $lt_shell_append in
13821  yes)
13822    cat << \_LT_EOF >> "$cfgfile"
13823
13824# func_append var value
13825# Append VALUE to the end of shell variable VAR.
13826func_append ()
13827{
13828  eval "$1+=\$2"
13829}
13830_LT_EOF
13831    ;;
13832  *)
13833    cat << \_LT_EOF >> "$cfgfile"
13834
13835# func_append var value
13836# Append VALUE to the end of shell variable VAR.
13837func_append ()
13838{
13839  eval "$1=\$$1\$2"
13840}
13841
13842_LT_EOF
13843    ;;
13844  esac
13845
13846
13847  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13848    || (rm -f "$cfgfile"; exit 1)
13849
13850  mv -f "$cfgfile" "$ofile" ||
13851    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13852  chmod +x "$ofile"
13853
13854 ;;
13855
13856  esac
13857done # for ac_tag
13858
13859
13860as_fn_exit 0
13861_ACEOF
13862ac_clean_files=$ac_clean_files_save
13863
13864test $ac_write_fail = 0 ||
13865  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13866
13867
13868# configure is writing to config.log, and then calls config.status.
13869# config.status does its own redirection, appending to config.log.
13870# Unfortunately, on DOS this fails, as config.log is still kept open
13871# by configure, so config.status won't be able to write to it; its
13872# output is simply discarded.  So we exec the FD to /dev/null,
13873# effectively closing config.log, so it can be properly (re)opened and
13874# appended to by config.status.  When coming back to configure, we
13875# need to make the FD available again.
13876if test "$no_create" != yes; then
13877  ac_cs_success=:
13878  ac_config_status_args=
13879  test "$silent" = yes &&
13880    ac_config_status_args="$ac_config_status_args --quiet"
13881  exec 5>/dev/null
13882  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13883  exec 5>>config.log
13884  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13885  # would make configure fail if this is the last instruction.
13886  $ac_cs_success || as_fn_exit $?
13887fi
13888if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13889  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13890$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13891fi
13892
13893