1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65.
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=
700PACKAGE_TARNAME=
701PACKAGE_VERSION=
702PACKAGE_STRING=
703PACKAGE_BUGREPORT=
704PACKAGE_URL=
705
706ac_unique_file="src/liboggz/oggz.c"
707# Factoring default headers for most tests.
708ac_includes_default="\
709#include <stdio.h>
710#ifdef HAVE_SYS_TYPES_H
711# include <sys/types.h>
712#endif
713#ifdef HAVE_SYS_STAT_H
714# include <sys/stat.h>
715#endif
716#ifdef STDC_HEADERS
717# include <stdlib.h>
718# include <stddef.h>
719#else
720# ifdef HAVE_STDLIB_H
721#  include <stdlib.h>
722# endif
723#endif
724#ifdef HAVE_STRING_H
725# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726#  include <memory.h>
727# endif
728# include <string.h>
729#endif
730#ifdef HAVE_STRINGS_H
731# include <strings.h>
732#endif
733#ifdef HAVE_INTTYPES_H
734# include <inttypes.h>
735#endif
736#ifdef HAVE_STDINT_H
737# include <stdint.h>
738#endif
739#ifdef HAVE_UNISTD_H
740# include <unistd.h>
741#endif"
742
743ac_subst_vars='am__EXEEXT_FALSE
744am__EXEEXT_TRUE
745LTLIBOBJS
746LIBOBJS
747SHARED_VERSION_INFO
748SHLIB_VERSION_ARG
749DOCDIR
750BINDIR
751INCLUDEDIR
752LIBDIR
753OGGZ_OFF_MAX
754SIZEOF_OGGZ_OFF_T
755PRI_OGGZ_OFF_T
756TYPEOF_OGGZ_OFF_T
757GETCONF
758HAVE_OGG_FALSE
759HAVE_OGG_TRUE
760OGG_LIBS
761OGG_CFLAGS
762PKG_CONFIG
763OGGZ_CONFIG_WRITE_FALSE
764OGGZ_CONFIG_WRITE_TRUE
765OGGZ_CONFIG_READ_FALSE
766OGGZ_CONFIG_READ_TRUE
767GETOPT_LIBS
768VALGRIND_ENVIRONMENT
769HAVE_VALGRIND
770HAVE_MAN2HTML_FALSE
771HAVE_MAN2HTML_TRUE
772HAVE_MAN2HTML
773HAVE_DOXYGEN_FALSE
774HAVE_DOXYGEN_TRUE
775HAVE_DOXYGEN
776HAVE_PKG_CONFIG
777ACLOCAL_AMFLAGS
778OTOOL64
779OTOOL
780LIPO
781NMEDIT
782DSYMUTIL
783lt_ECHO
784RANLIB
785AR
786OBJDUMP
787NM
788ac_ct_DUMPBIN
789DUMPBIN
790LD
791FGREP
792EGREP
793GREP
794SED
795LIBTOOL
796LN_S
797CPP
798am__fastdepCC_FALSE
799am__fastdepCC_TRUE
800CCDEPMODE
801AMDEPBACKSLASH
802AMDEP_FALSE
803AMDEP_TRUE
804am__quote
805am__include
806DEPDIR
807OBJEXT
808EXEEXT
809ac_ct_CC
810CPPFLAGS
811LDFLAGS
812CFLAGS
813CC
814am__untar
815am__tar
816AMTAR
817am__leading_dot
818SET_MAKE
819AWK
820mkdir_p
821MKDIR_P
822INSTALL_STRIP_PROGRAM
823STRIP
824install_sh
825MAKEINFO
826AUTOHEADER
827AUTOMAKE
828AUTOCONF
829ACLOCAL
830VERSION
831PACKAGE
832CYGPATH_W
833am__isrc
834INSTALL_DATA
835INSTALL_SCRIPT
836INSTALL_PROGRAM
837target_os
838target_vendor
839target_cpu
840target
841host_os
842host_vendor
843host_cpu
844host
845build_os
846build_vendor
847build_cpu
848build
849target_alias
850host_alias
851build_alias
852LIBS
853ECHO_T
854ECHO_N
855ECHO_C
856DEFS
857mandir
858localedir
859libdir
860psdir
861pdfdir
862dvidir
863htmldir
864infodir
865docdir
866oldincludedir
867includedir
868localstatedir
869sharedstatedir
870sysconfdir
871datadir
872datarootdir
873libexecdir
874sbindir
875bindir
876program_transform_name
877prefix
878exec_prefix
879PACKAGE_URL
880PACKAGE_BUGREPORT
881PACKAGE_STRING
882PACKAGE_VERSION
883PACKAGE_TARNAME
884PACKAGE_NAME
885PATH_SEPARATOR
886SHELL'
887ac_subst_files=''
888ac_user_opts='
889enable_option_checking
890enable_dependency_tracking
891enable_shared
892enable_static
893with_pic
894enable_fast_install
895with_gnu_ld
896enable_libtool_lock
897enable_valgrind_testing
898enable_experimental
899enable_read
900enable_write
901with_ogg
902with_ogg_libraries
903with_ogg_includes
904enable_oggtest
905enable_largefile
906enable_gcc_werror
907'
908      ac_precious_vars='build_alias
909host_alias
910target_alias
911CC
912CFLAGS
913LDFLAGS
914LIBS
915CPPFLAGS
916CPP
917PKG_CONFIG
918OGG_CFLAGS
919OGG_LIBS'
920
921
922# Initialize some variables set by options.
923ac_init_help=
924ac_init_version=false
925ac_unrecognized_opts=
926ac_unrecognized_sep=
927# The variables have the same names as the options, with
928# dashes changed to underlines.
929cache_file=/dev/null
930exec_prefix=NONE
931no_create=
932no_recursion=
933prefix=NONE
934program_prefix=NONE
935program_suffix=NONE
936program_transform_name=s,x,x,
937silent=
938site=
939srcdir=
940verbose=
941x_includes=NONE
942x_libraries=NONE
943
944# Installation directory options.
945# These are left unexpanded so users can "make install exec_prefix=/foo"
946# and all the variables that are supposed to be based on exec_prefix
947# by default will actually change.
948# Use braces instead of parens because sh, perl, etc. also accept them.
949# (The list follows the same order as the GNU Coding Standards.)
950bindir='${exec_prefix}/bin'
951sbindir='${exec_prefix}/sbin'
952libexecdir='${exec_prefix}/libexec'
953datarootdir='${prefix}/share'
954datadir='${datarootdir}'
955sysconfdir='${prefix}/etc'
956sharedstatedir='${prefix}/com'
957localstatedir='${prefix}/var'
958includedir='${prefix}/include'
959oldincludedir='/usr/include'
960docdir='${datarootdir}/doc/${PACKAGE}'
961infodir='${datarootdir}/info'
962htmldir='${docdir}'
963dvidir='${docdir}'
964pdfdir='${docdir}'
965psdir='${docdir}'
966libdir='${exec_prefix}/lib'
967localedir='${datarootdir}/locale'
968mandir='${datarootdir}/man'
969
970ac_prev=
971ac_dashdash=
972for ac_option
973do
974  # If the previous option needs an argument, assign it.
975  if test -n "$ac_prev"; then
976    eval $ac_prev=\$ac_option
977    ac_prev=
978    continue
979  fi
980
981  case $ac_option in
982  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983  *)	ac_optarg=yes ;;
984  esac
985
986  # Accept the important Cygnus configure options, so we can diagnose typos.
987
988  case $ac_dashdash$ac_option in
989  --)
990    ac_dashdash=yes ;;
991
992  -bindir | --bindir | --bindi | --bind | --bin | --bi)
993    ac_prev=bindir ;;
994  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995    bindir=$ac_optarg ;;
996
997  -build | --build | --buil | --bui | --bu)
998    ac_prev=build_alias ;;
999  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000    build_alias=$ac_optarg ;;
1001
1002  -cache-file | --cache-file | --cache-fil | --cache-fi \
1003  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004    ac_prev=cache_file ;;
1005  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007    cache_file=$ac_optarg ;;
1008
1009  --config-cache | -C)
1010    cache_file=config.cache ;;
1011
1012  -datadir | --datadir | --datadi | --datad)
1013    ac_prev=datadir ;;
1014  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015    datadir=$ac_optarg ;;
1016
1017  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018  | --dataroo | --dataro | --datar)
1019    ac_prev=datarootdir ;;
1020  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022    datarootdir=$ac_optarg ;;
1023
1024  -disable-* | --disable-*)
1025    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026    # Reject names that are not valid shell variable names.
1027    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028      as_fn_error "invalid feature name: $ac_useropt"
1029    ac_useropt_orig=$ac_useropt
1030    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031    case $ac_user_opts in
1032      *"
1033"enable_$ac_useropt"
1034"*) ;;
1035      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036	 ac_unrecognized_sep=', ';;
1037    esac
1038    eval enable_$ac_useropt=no ;;
1039
1040  -docdir | --docdir | --docdi | --doc | --do)
1041    ac_prev=docdir ;;
1042  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043    docdir=$ac_optarg ;;
1044
1045  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046    ac_prev=dvidir ;;
1047  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048    dvidir=$ac_optarg ;;
1049
1050  -enable-* | --enable-*)
1051    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052    # Reject names that are not valid shell variable names.
1053    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054      as_fn_error "invalid feature name: $ac_useropt"
1055    ac_useropt_orig=$ac_useropt
1056    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057    case $ac_user_opts in
1058      *"
1059"enable_$ac_useropt"
1060"*) ;;
1061      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062	 ac_unrecognized_sep=', ';;
1063    esac
1064    eval enable_$ac_useropt=\$ac_optarg ;;
1065
1066  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1067  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1068  | --exec | --exe | --ex)
1069    ac_prev=exec_prefix ;;
1070  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1071  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1072  | --exec=* | --exe=* | --ex=*)
1073    exec_prefix=$ac_optarg ;;
1074
1075  -gas | --gas | --ga | --g)
1076    # Obsolete; use --with-gas.
1077    with_gas=yes ;;
1078
1079  -help | --help | --hel | --he | -h)
1080    ac_init_help=long ;;
1081  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1082    ac_init_help=recursive ;;
1083  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1084    ac_init_help=short ;;
1085
1086  -host | --host | --hos | --ho)
1087    ac_prev=host_alias ;;
1088  -host=* | --host=* | --hos=* | --ho=*)
1089    host_alias=$ac_optarg ;;
1090
1091  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092    ac_prev=htmldir ;;
1093  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094  | --ht=*)
1095    htmldir=$ac_optarg ;;
1096
1097  -includedir | --includedir | --includedi | --included | --include \
1098  | --includ | --inclu | --incl | --inc)
1099    ac_prev=includedir ;;
1100  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1101  | --includ=* | --inclu=* | --incl=* | --inc=*)
1102    includedir=$ac_optarg ;;
1103
1104  -infodir | --infodir | --infodi | --infod | --info | --inf)
1105    ac_prev=infodir ;;
1106  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1107    infodir=$ac_optarg ;;
1108
1109  -libdir | --libdir | --libdi | --libd)
1110    ac_prev=libdir ;;
1111  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1112    libdir=$ac_optarg ;;
1113
1114  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1115  | --libexe | --libex | --libe)
1116    ac_prev=libexecdir ;;
1117  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1118  | --libexe=* | --libex=* | --libe=*)
1119    libexecdir=$ac_optarg ;;
1120
1121  -localedir | --localedir | --localedi | --localed | --locale)
1122    ac_prev=localedir ;;
1123  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124    localedir=$ac_optarg ;;
1125
1126  -localstatedir | --localstatedir | --localstatedi | --localstated \
1127  | --localstate | --localstat | --localsta | --localst | --locals)
1128    ac_prev=localstatedir ;;
1129  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1130  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1131    localstatedir=$ac_optarg ;;
1132
1133  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134    ac_prev=mandir ;;
1135  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1136    mandir=$ac_optarg ;;
1137
1138  -nfp | --nfp | --nf)
1139    # Obsolete; use --without-fp.
1140    with_fp=no ;;
1141
1142  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1143  | --no-cr | --no-c | -n)
1144    no_create=yes ;;
1145
1146  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1147  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1148    no_recursion=yes ;;
1149
1150  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1151  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1152  | --oldin | --oldi | --old | --ol | --o)
1153    ac_prev=oldincludedir ;;
1154  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1155  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1156  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1157    oldincludedir=$ac_optarg ;;
1158
1159  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160    ac_prev=prefix ;;
1161  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1162    prefix=$ac_optarg ;;
1163
1164  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1165  | --program-pre | --program-pr | --program-p)
1166    ac_prev=program_prefix ;;
1167  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1168  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1169    program_prefix=$ac_optarg ;;
1170
1171  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1172  | --program-suf | --program-su | --program-s)
1173    ac_prev=program_suffix ;;
1174  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1175  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1176    program_suffix=$ac_optarg ;;
1177
1178  -program-transform-name | --program-transform-name \
1179  | --program-transform-nam | --program-transform-na \
1180  | --program-transform-n | --program-transform- \
1181  | --program-transform | --program-transfor \
1182  | --program-transfo | --program-transf \
1183  | --program-trans | --program-tran \
1184  | --progr-tra | --program-tr | --program-t)
1185    ac_prev=program_transform_name ;;
1186  -program-transform-name=* | --program-transform-name=* \
1187  | --program-transform-nam=* | --program-transform-na=* \
1188  | --program-transform-n=* | --program-transform-=* \
1189  | --program-transform=* | --program-transfor=* \
1190  | --program-transfo=* | --program-transf=* \
1191  | --program-trans=* | --program-tran=* \
1192  | --progr-tra=* | --program-tr=* | --program-t=*)
1193    program_transform_name=$ac_optarg ;;
1194
1195  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196    ac_prev=pdfdir ;;
1197  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198    pdfdir=$ac_optarg ;;
1199
1200  -psdir | --psdir | --psdi | --psd | --ps)
1201    ac_prev=psdir ;;
1202  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203    psdir=$ac_optarg ;;
1204
1205  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206  | -silent | --silent | --silen | --sile | --sil)
1207    silent=yes ;;
1208
1209  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210    ac_prev=sbindir ;;
1211  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212  | --sbi=* | --sb=*)
1213    sbindir=$ac_optarg ;;
1214
1215  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217  | --sharedst | --shareds | --shared | --share | --shar \
1218  | --sha | --sh)
1219    ac_prev=sharedstatedir ;;
1220  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223  | --sha=* | --sh=*)
1224    sharedstatedir=$ac_optarg ;;
1225
1226  -site | --site | --sit)
1227    ac_prev=site ;;
1228  -site=* | --site=* | --sit=*)
1229    site=$ac_optarg ;;
1230
1231  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232    ac_prev=srcdir ;;
1233  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234    srcdir=$ac_optarg ;;
1235
1236  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237  | --syscon | --sysco | --sysc | --sys | --sy)
1238    ac_prev=sysconfdir ;;
1239  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241    sysconfdir=$ac_optarg ;;
1242
1243  -target | --target | --targe | --targ | --tar | --ta | --t)
1244    ac_prev=target_alias ;;
1245  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246    target_alias=$ac_optarg ;;
1247
1248  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249    verbose=yes ;;
1250
1251  -version | --version | --versio | --versi | --vers | -V)
1252    ac_init_version=: ;;
1253
1254  -with-* | --with-*)
1255    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1266	 ac_unrecognized_sep=', ';;
1267    esac
1268    eval with_$ac_useropt=\$ac_optarg ;;
1269
1270  -without-* | --without-*)
1271    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272    # Reject names that are not valid shell variable names.
1273    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274      as_fn_error "invalid package name: $ac_useropt"
1275    ac_useropt_orig=$ac_useropt
1276    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277    case $ac_user_opts in
1278      *"
1279"with_$ac_useropt"
1280"*) ;;
1281      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282	 ac_unrecognized_sep=', ';;
1283    esac
1284    eval with_$ac_useropt=no ;;
1285
1286  --x)
1287    # Obsolete; use --with-x.
1288    with_x=yes ;;
1289
1290  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291  | --x-incl | --x-inc | --x-in | --x-i)
1292    ac_prev=x_includes ;;
1293  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295    x_includes=$ac_optarg ;;
1296
1297  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299    ac_prev=x_libraries ;;
1300  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302    x_libraries=$ac_optarg ;;
1303
1304  -*) as_fn_error "unrecognized option: \`$ac_option'
1305Try \`$0 --help' for more information."
1306    ;;
1307
1308  *=*)
1309    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310    # Reject names that are not valid shell variable names.
1311    case $ac_envvar in #(
1312      '' | [0-9]* | *[!_$as_cr_alnum]* )
1313      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1314    esac
1315    eval $ac_envvar=\$ac_optarg
1316    export $ac_envvar ;;
1317
1318  *)
1319    # FIXME: should be removed in autoconf 3.0.
1320    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1324    ;;
1325
1326  esac
1327done
1328
1329if test -n "$ac_prev"; then
1330  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331  as_fn_error "missing argument to $ac_option"
1332fi
1333
1334if test -n "$ac_unrecognized_opts"; then
1335  case $enable_option_checking in
1336    no) ;;
1337    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1338    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339  esac
1340fi
1341
1342# Check all directory arguments for consistency.
1343for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344		datadir sysconfdir sharedstatedir localstatedir includedir \
1345		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346		libdir localedir mandir
1347do
1348  eval ac_val=\$$ac_var
1349  # Remove trailing slashes.
1350  case $ac_val in
1351    */ )
1352      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353      eval $ac_var=\$ac_val;;
1354  esac
1355  # Be sure to have absolute directory names.
1356  case $ac_val in
1357    [\\/$]* | ?:[\\/]* )  continue;;
1358    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359  esac
1360  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1361done
1362
1363# There might be people who depend on the old broken behavior: `$host'
1364# used to hold the argument of --host etc.
1365# FIXME: To remove some day.
1366build=$build_alias
1367host=$host_alias
1368target=$target_alias
1369
1370# FIXME: To remove some day.
1371if test "x$host_alias" != x; then
1372  if test "x$build_alias" = x; then
1373    cross_compiling=maybe
1374    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375    If a cross compiler is detected then cross compile mode will be used." >&2
1376  elif test "x$build_alias" != "x$host_alias"; then
1377    cross_compiling=yes
1378  fi
1379fi
1380
1381ac_tool_prefix=
1382test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384test "$silent" = yes && exec 6>/dev/null
1385
1386
1387ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388ac_ls_di=`ls -di .` &&
1389ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390  as_fn_error "working directory cannot be determined"
1391test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1392  as_fn_error "pwd does not report name of working directory"
1393
1394
1395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397  ac_srcdir_defaulted=yes
1398  # Try the directory containing this script, then the parent directory.
1399  ac_confdir=`$as_dirname -- "$as_myself" ||
1400$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401	 X"$as_myself" : 'X\(//\)[^/]' \| \
1402	 X"$as_myself" : 'X\(//\)$' \| \
1403	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1404$as_echo X"$as_myself" |
1405    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406	    s//\1/
1407	    q
1408	  }
1409	  /^X\(\/\/\)[^/].*/{
1410	    s//\1/
1411	    q
1412	  }
1413	  /^X\(\/\/\)$/{
1414	    s//\1/
1415	    q
1416	  }
1417	  /^X\(\/\).*/{
1418	    s//\1/
1419	    q
1420	  }
1421	  s/.*/./; q'`
1422  srcdir=$ac_confdir
1423  if test ! -r "$srcdir/$ac_unique_file"; then
1424    srcdir=..
1425  fi
1426else
1427  ac_srcdir_defaulted=no
1428fi
1429if test ! -r "$srcdir/$ac_unique_file"; then
1430  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1432fi
1433ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434ac_abs_confdir=`(
1435	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1436	pwd)`
1437# When building in place, set srcdir=.
1438if test "$ac_abs_confdir" = "$ac_pwd"; then
1439  srcdir=.
1440fi
1441# Remove unnecessary trailing slashes from srcdir.
1442# Double slashes in file names in object file debugging info
1443# mess up M-x gdb in Emacs.
1444case $srcdir in
1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446esac
1447for ac_var in $ac_precious_vars; do
1448  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449  eval ac_env_${ac_var}_value=\$${ac_var}
1450  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452done
1453
1454#
1455# Report the --help message.
1456#
1457if test "$ac_init_help" = "long"; then
1458  # Omit some internal or obsolete options to make the list less imposing.
1459  # This message is too long to be a string in the A/UX 3.1 sh.
1460  cat <<_ACEOF
1461\`configure' configures this package to adapt to many kinds of systems.
1462
1463Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466VAR=VALUE.  See below for descriptions of some of the useful variables.
1467
1468Defaults for the options are specified in brackets.
1469
1470Configuration:
1471  -h, --help              display this help and exit
1472      --help=short        display options specific to this package
1473      --help=recursive    display the short help of all the included packages
1474  -V, --version           display version information and exit
1475  -q, --quiet, --silent   do not print \`checking...' messages
1476      --cache-file=FILE   cache test results in FILE [disabled]
1477  -C, --config-cache      alias for \`--cache-file=config.cache'
1478  -n, --no-create         do not create output files
1479      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1480
1481Installation directories:
1482  --prefix=PREFIX         install architecture-independent files in PREFIX
1483                          [$ac_default_prefix]
1484  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1485                          [PREFIX]
1486
1487By default, \`make install' will install all the files in
1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1489an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490for instance \`--prefix=\$HOME'.
1491
1492For better control, use the options below.
1493
1494Fine tuning of the installation directories:
1495  --bindir=DIR            user executables [EPREFIX/bin]
1496  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1497  --libexecdir=DIR        program executables [EPREFIX/libexec]
1498  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1499  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1500  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1501  --libdir=DIR            object code libraries [EPREFIX/lib]
1502  --includedir=DIR        C header files [PREFIX/include]
1503  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1504  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1505  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1506  --infodir=DIR           info documentation [DATAROOTDIR/info]
1507  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1508  --mandir=DIR            man documentation [DATAROOTDIR/man]
1509  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1510  --htmldir=DIR           html documentation [DOCDIR]
1511  --dvidir=DIR            dvi documentation [DOCDIR]
1512  --pdfdir=DIR            pdf documentation [DOCDIR]
1513  --psdir=DIR             ps documentation [DOCDIR]
1514_ACEOF
1515
1516  cat <<\_ACEOF
1517
1518Program names:
1519  --program-prefix=PREFIX            prepend PREFIX to installed program names
1520  --program-suffix=SUFFIX            append SUFFIX to installed program names
1521  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1522
1523System types:
1524  --build=BUILD     configure for building on BUILD [guessed]
1525  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1526  --target=TARGET   configure for building compilers for TARGET [HOST]
1527_ACEOF
1528fi
1529
1530if test -n "$ac_init_help"; then
1531
1532  cat <<\_ACEOF
1533
1534Optional Features:
1535  --disable-option-checking  ignore unrecognized --enable/--with options
1536  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1537  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1538  --disable-dependency-tracking  speeds up one-time build
1539  --enable-dependency-tracking   do not reject slow dependency extractors
1540  --enable-shared[=PKGS]  build shared libraries [default=yes]
1541  --enable-static[=PKGS]  build static libraries [default=yes]
1542  --enable-fast-install[=PKGS]
1543                          optimize for fast installation [default=yes]
1544  --disable-libtool-lock  avoid locking (might break parallel builds)
1545  --enable-valgrind-testing
1546                          enable running of tests inside Valgrind
1547  --enable-experimental   enable building of experimental code
1548  --disable-read          disable building of reading support
1549  --disable-write         disable building of writing support
1550  --disable-oggtest       Do not try to compile and run a test Ogg program
1551  --disable-largefile     omit support for large files
1552  --enable-gcc-werror     enable -Werror in all Makefiles
1553
1554Optional Packages:
1555  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1556  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1557  --with-pic              try to use only PIC/non-PIC objects [default=use
1558                          both]
1559  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1560  --with-ogg=PFX          Prefix where libogg is installed (optional)
1561  --with-ogg-libraries=DIR
1562                          Directory where libogg library is installed
1563                          (optional)
1564  --with-ogg-includes=DIR Directory where libogg header files are installed
1565                          (optional)
1566
1567Some influential environment variables:
1568  CC          C compiler command
1569  CFLAGS      C compiler flags
1570  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1571              nonstandard directory <lib dir>
1572  LIBS        libraries to pass to the linker, e.g. -l<library>
1573  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1574              you have headers in a nonstandard directory <include dir>
1575  CPP         C preprocessor
1576  PKG_CONFIG  path to pkg-config utility
1577  OGG_CFLAGS  C compiler flags for OGG, overriding pkg-config
1578  OGG_LIBS    linker flags for OGG, overriding pkg-config
1579
1580Use these variables to override the choices made by `configure' or to help
1581it to find libraries and programs with nonstandard names/locations.
1582
1583Report bugs to the package provider.
1584_ACEOF
1585ac_status=$?
1586fi
1587
1588if test "$ac_init_help" = "recursive"; then
1589  # If there are subdirs, report their specific --help.
1590  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1591    test -d "$ac_dir" ||
1592      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1593      continue
1594    ac_builddir=.
1595
1596case "$ac_dir" in
1597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598*)
1599  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1600  # A ".." for each directory in $ac_dir_suffix.
1601  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1602  case $ac_top_builddir_sub in
1603  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1605  esac ;;
1606esac
1607ac_abs_top_builddir=$ac_pwd
1608ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609# for backward compatibility:
1610ac_top_builddir=$ac_top_build_prefix
1611
1612case $srcdir in
1613  .)  # We are building in place.
1614    ac_srcdir=.
1615    ac_top_srcdir=$ac_top_builddir_sub
1616    ac_abs_top_srcdir=$ac_pwd ;;
1617  [\\/]* | ?:[\\/]* )  # Absolute name.
1618    ac_srcdir=$srcdir$ac_dir_suffix;
1619    ac_top_srcdir=$srcdir
1620    ac_abs_top_srcdir=$srcdir ;;
1621  *) # Relative name.
1622    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623    ac_top_srcdir=$ac_top_build_prefix$srcdir
1624    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1625esac
1626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627
1628    cd "$ac_dir" || { ac_status=$?; continue; }
1629    # Check for guested configure.
1630    if test -f "$ac_srcdir/configure.gnu"; then
1631      echo &&
1632      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633    elif test -f "$ac_srcdir/configure"; then
1634      echo &&
1635      $SHELL "$ac_srcdir/configure" --help=recursive
1636    else
1637      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1638    fi || ac_status=$?
1639    cd "$ac_pwd" || { ac_status=$?; break; }
1640  done
1641fi
1642
1643test -n "$ac_init_help" && exit $ac_status
1644if $ac_init_version; then
1645  cat <<\_ACEOF
1646configure
1647generated by GNU Autoconf 2.65
1648
1649Copyright (C) 2009 Free Software Foundation, Inc.
1650This configure script is free software; the Free Software Foundation
1651gives unlimited permission to copy, distribute and modify it.
1652_ACEOF
1653  exit
1654fi
1655
1656## ------------------------ ##
1657## Autoconf initialization. ##
1658## ------------------------ ##
1659
1660# ac_fn_c_try_compile LINENO
1661# --------------------------
1662# Try to compile conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_compile ()
1664{
1665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666  rm -f conftest.$ac_objext
1667  if { { ac_try="$ac_compile"
1668case "(($ac_try" in
1669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670  *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674  (eval "$ac_compile") 2>conftest.err
1675  ac_status=$?
1676  if test -s conftest.err; then
1677    grep -v '^ *+' conftest.err >conftest.er1
1678    cat conftest.er1 >&5
1679    mv -f conftest.er1 conftest.err
1680  fi
1681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682  test $ac_status = 0; } && {
1683	 test -z "$ac_c_werror_flag" ||
1684	 test ! -s conftest.err
1685       } && test -s conftest.$ac_objext; then :
1686  ac_retval=0
1687else
1688  $as_echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
1690
1691	ac_retval=1
1692fi
1693  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694  as_fn_set_status $ac_retval
1695
1696} # ac_fn_c_try_compile
1697
1698# ac_fn_c_try_cpp LINENO
1699# ----------------------
1700# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1701ac_fn_c_try_cpp ()
1702{
1703  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704  if { { ac_try="$ac_cpp conftest.$ac_ext"
1705case "(($ac_try" in
1706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707  *) ac_try_echo=$ac_try;;
1708esac
1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710$as_echo "$ac_try_echo"; } >&5
1711  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1712  ac_status=$?
1713  if test -s conftest.err; then
1714    grep -v '^ *+' conftest.err >conftest.er1
1715    cat conftest.er1 >&5
1716    mv -f conftest.er1 conftest.err
1717  fi
1718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719  test $ac_status = 0; } >/dev/null && {
1720	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1721	 test ! -s conftest.err
1722       }; then :
1723  ac_retval=0
1724else
1725  $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728    ac_retval=1
1729fi
1730  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731  as_fn_set_status $ac_retval
1732
1733} # ac_fn_c_try_cpp
1734
1735# ac_fn_c_try_link LINENO
1736# -----------------------
1737# Try to link conftest.$ac_ext, and return whether this succeeded.
1738ac_fn_c_try_link ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  rm -f conftest.$ac_objext conftest$ac_exeext
1742  if { { ac_try="$ac_link"
1743case "(($ac_try" in
1744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745  *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749  (eval "$ac_link") 2>conftest.err
1750  ac_status=$?
1751  if test -s conftest.err; then
1752    grep -v '^ *+' conftest.err >conftest.er1
1753    cat conftest.er1 >&5
1754    mv -f conftest.er1 conftest.err
1755  fi
1756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757  test $ac_status = 0; } && {
1758	 test -z "$ac_c_werror_flag" ||
1759	 test ! -s conftest.err
1760       } && test -s conftest$ac_exeext && {
1761	 test "$cross_compiling" = yes ||
1762	 $as_test_x conftest$ac_exeext
1763       }; then :
1764  ac_retval=0
1765else
1766  $as_echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769	ac_retval=1
1770fi
1771  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1772  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1773  # interfere with the next link command; also delete a directory that is
1774  # left behind by Apple's compiler.  We do this before executing the actions.
1775  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777  as_fn_set_status $ac_retval
1778
1779} # ac_fn_c_try_link
1780
1781# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1782# -------------------------------------------------------
1783# Tests whether HEADER exists and can be compiled using the include files in
1784# INCLUDES, setting the cache variable VAR accordingly.
1785ac_fn_c_check_header_compile ()
1786{
1787  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789$as_echo_n "checking for $2... " >&6; }
1790if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1791  $as_echo_n "(cached) " >&6
1792else
1793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794/* end confdefs.h.  */
1795$4
1796#include <$2>
1797_ACEOF
1798if ac_fn_c_try_compile "$LINENO"; then :
1799  eval "$3=yes"
1800else
1801  eval "$3=no"
1802fi
1803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804fi
1805eval ac_res=\$$3
1806	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807$as_echo "$ac_res" >&6; }
1808  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809
1810} # ac_fn_c_check_header_compile
1811
1812# ac_fn_c_try_run LINENO
1813# ----------------------
1814# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1815# that executables *can* be run.
1816ac_fn_c_try_run ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  if { { ac_try="$ac_link"
1820case "(($ac_try" in
1821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822  *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826  (eval "$ac_link") 2>&5
1827  ac_status=$?
1828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1830  { { case "(($ac_try" in
1831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832  *) ac_try_echo=$ac_try;;
1833esac
1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835$as_echo "$ac_try_echo"; } >&5
1836  (eval "$ac_try") 2>&5
1837  ac_status=$?
1838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839  test $ac_status = 0; }; }; then :
1840  ac_retval=0
1841else
1842  $as_echo "$as_me: program exited with status $ac_status" >&5
1843       $as_echo "$as_me: failed program was:" >&5
1844sed 's/^/| /' conftest.$ac_ext >&5
1845
1846       ac_retval=$ac_status
1847fi
1848  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850  as_fn_set_status $ac_retval
1851
1852} # ac_fn_c_try_run
1853
1854# ac_fn_c_check_func LINENO FUNC VAR
1855# ----------------------------------
1856# Tests whether FUNC exists, setting the cache variable VAR accordingly
1857ac_fn_c_check_func ()
1858{
1859  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
1862if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1863  $as_echo_n "(cached) " >&6
1864else
1865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h.  */
1867/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1869#define $2 innocuous_$2
1870
1871/* System header to define __stub macros and hopefully few prototypes,
1872    which can conflict with char $2 (); below.
1873    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1874    <limits.h> exists even on freestanding compilers.  */
1875
1876#ifdef __STDC__
1877# include <limits.h>
1878#else
1879# include <assert.h>
1880#endif
1881
1882#undef $2
1883
1884/* Override any GCC internal prototype to avoid an error.
1885   Use char because int might match the return type of a GCC
1886   builtin and then its argument prototype would still apply.  */
1887#ifdef __cplusplus
1888extern "C"
1889#endif
1890char $2 ();
1891/* The GNU C library defines this for functions which it implements
1892    to always fail with ENOSYS.  Some functions are actually named
1893    something starting with __ and the normal name is an alias.  */
1894#if defined __stub_$2 || defined __stub___$2
1895choke me
1896#endif
1897
1898int
1899main ()
1900{
1901return $2 ();
1902  ;
1903  return 0;
1904}
1905_ACEOF
1906if ac_fn_c_try_link "$LINENO"; then :
1907  eval "$3=yes"
1908else
1909  eval "$3=no"
1910fi
1911rm -f core conftest.err conftest.$ac_objext \
1912    conftest$ac_exeext conftest.$ac_ext
1913fi
1914eval ac_res=\$$3
1915	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916$as_echo "$ac_res" >&6; }
1917  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918
1919} # ac_fn_c_check_func
1920
1921# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1922# -------------------------------------------------------
1923# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1924# the include files in INCLUDES and setting the cache variable VAR
1925# accordingly.
1926ac_fn_c_check_header_mongrel ()
1927{
1928  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931$as_echo_n "checking for $2... " >&6; }
1932if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1933  $as_echo_n "(cached) " >&6
1934fi
1935eval ac_res=\$$3
1936	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938else
1939  # Is the header compilable?
1940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1941$as_echo_n "checking $2 usability... " >&6; }
1942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h.  */
1944$4
1945#include <$2>
1946_ACEOF
1947if ac_fn_c_try_compile "$LINENO"; then :
1948  ac_header_compiler=yes
1949else
1950  ac_header_compiler=no
1951fi
1952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1954$as_echo "$ac_header_compiler" >&6; }
1955
1956# Is the header present?
1957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1958$as_echo_n "checking $2 presence... " >&6; }
1959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h.  */
1961#include <$2>
1962_ACEOF
1963if ac_fn_c_try_cpp "$LINENO"; then :
1964  ac_header_preproc=yes
1965else
1966  ac_header_preproc=no
1967fi
1968rm -f conftest.err conftest.$ac_ext
1969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1970$as_echo "$ac_header_preproc" >&6; }
1971
1972# So?  What about this header?
1973case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1974  yes:no: )
1975    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1976$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1977    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1978$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979    ;;
1980  no:yes:* )
1981    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1982$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1983    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1984$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1985    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1986$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1987    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1988$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1989    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1990$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991    ;;
1992esac
1993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994$as_echo_n "checking for $2... " >&6; }
1995if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1996  $as_echo_n "(cached) " >&6
1997else
1998  eval "$3=\$ac_header_compiler"
1999fi
2000eval ac_res=\$$3
2001	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002$as_echo "$ac_res" >&6; }
2003fi
2004  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2005
2006} # ac_fn_c_check_header_mongrel
2007
2008# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2009# -------------------------------------------
2010# Tests whether TYPE exists after having included INCLUDES, setting cache
2011# variable VAR accordingly.
2012ac_fn_c_check_type ()
2013{
2014  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016$as_echo_n "checking for $2... " >&6; }
2017if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018  $as_echo_n "(cached) " >&6
2019else
2020  eval "$3=no"
2021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h.  */
2023$4
2024int
2025main ()
2026{
2027if (sizeof ($2))
2028	 return 0;
2029  ;
2030  return 0;
2031}
2032_ACEOF
2033if ac_fn_c_try_compile "$LINENO"; then :
2034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035/* end confdefs.h.  */
2036$4
2037int
2038main ()
2039{
2040if (sizeof (($2)))
2041	    return 0;
2042  ;
2043  return 0;
2044}
2045_ACEOF
2046if ac_fn_c_try_compile "$LINENO"; then :
2047
2048else
2049  eval "$3=yes"
2050fi
2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052fi
2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054fi
2055eval ac_res=\$$3
2056	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057$as_echo "$ac_res" >&6; }
2058  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2059
2060} # ac_fn_c_check_type
2061
2062# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2063# --------------------------------------------
2064# Tries to find the compile-time value of EXPR in a program that includes
2065# INCLUDES, setting VAR accordingly. Returns whether the value could be
2066# computed
2067ac_fn_c_compute_int ()
2068{
2069  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070  if test "$cross_compiling" = yes; then
2071    # Depending upon the size, compute the lo and hi bounds.
2072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073/* end confdefs.h.  */
2074$4
2075int
2076main ()
2077{
2078static int test_array [1 - 2 * !(($2) >= 0)];
2079test_array [0] = 0
2080
2081  ;
2082  return 0;
2083}
2084_ACEOF
2085if ac_fn_c_try_compile "$LINENO"; then :
2086  ac_lo=0 ac_mid=0
2087  while :; do
2088    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089/* end confdefs.h.  */
2090$4
2091int
2092main ()
2093{
2094static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2095test_array [0] = 0
2096
2097  ;
2098  return 0;
2099}
2100_ACEOF
2101if ac_fn_c_try_compile "$LINENO"; then :
2102  ac_hi=$ac_mid; break
2103else
2104  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2105			if test $ac_lo -le $ac_mid; then
2106			  ac_lo= ac_hi=
2107			  break
2108			fi
2109			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2110fi
2111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112  done
2113else
2114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h.  */
2116$4
2117int
2118main ()
2119{
2120static int test_array [1 - 2 * !(($2) < 0)];
2121test_array [0] = 0
2122
2123  ;
2124  return 0;
2125}
2126_ACEOF
2127if ac_fn_c_try_compile "$LINENO"; then :
2128  ac_hi=-1 ac_mid=-1
2129  while :; do
2130    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131/* end confdefs.h.  */
2132$4
2133int
2134main ()
2135{
2136static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2137test_array [0] = 0
2138
2139  ;
2140  return 0;
2141}
2142_ACEOF
2143if ac_fn_c_try_compile "$LINENO"; then :
2144  ac_lo=$ac_mid; break
2145else
2146  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2147			if test $ac_mid -le $ac_hi; then
2148			  ac_lo= ac_hi=
2149			  break
2150			fi
2151			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2152fi
2153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154  done
2155else
2156  ac_lo= ac_hi=
2157fi
2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161# Binary search between lo and hi bounds.
2162while test "x$ac_lo" != "x$ac_hi"; do
2163  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165/* end confdefs.h.  */
2166$4
2167int
2168main ()
2169{
2170static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2171test_array [0] = 0
2172
2173  ;
2174  return 0;
2175}
2176_ACEOF
2177if ac_fn_c_try_compile "$LINENO"; then :
2178  ac_hi=$ac_mid
2179else
2180  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2181fi
2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183done
2184case $ac_lo in #((
2185?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2186'') ac_retval=1 ;;
2187esac
2188  else
2189    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190/* end confdefs.h.  */
2191$4
2192static long int longval () { return $2; }
2193static unsigned long int ulongval () { return $2; }
2194#include <stdio.h>
2195#include <stdlib.h>
2196int
2197main ()
2198{
2199
2200  FILE *f = fopen ("conftest.val", "w");
2201  if (! f)
2202    return 1;
2203  if (($2) < 0)
2204    {
2205      long int i = longval ();
2206      if (i != ($2))
2207	return 1;
2208      fprintf (f, "%ld", i);
2209    }
2210  else
2211    {
2212      unsigned long int i = ulongval ();
2213      if (i != ($2))
2214	return 1;
2215      fprintf (f, "%lu", i);
2216    }
2217  /* Do not output a trailing newline, as this causes \r\n confusion
2218     on some platforms.  */
2219  return ferror (f) || fclose (f) != 0;
2220
2221  ;
2222  return 0;
2223}
2224_ACEOF
2225if ac_fn_c_try_run "$LINENO"; then :
2226  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2227else
2228  ac_retval=1
2229fi
2230rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2231  conftest.$ac_objext conftest.beam conftest.$ac_ext
2232rm -f conftest.val
2233
2234  fi
2235  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2236  as_fn_set_status $ac_retval
2237
2238} # ac_fn_c_compute_int
2239cat >config.log <<_ACEOF
2240This file contains any messages produced by compilers while
2241running configure, to aid debugging if configure makes a mistake.
2242
2243It was created by $as_me, which was
2244generated by GNU Autoconf 2.65.  Invocation command line was
2245
2246  $ $0 $@
2247
2248_ACEOF
2249exec 5>>config.log
2250{
2251cat <<_ASUNAME
2252## --------- ##
2253## Platform. ##
2254## --------- ##
2255
2256hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2257uname -m = `(uname -m) 2>/dev/null || echo unknown`
2258uname -r = `(uname -r) 2>/dev/null || echo unknown`
2259uname -s = `(uname -s) 2>/dev/null || echo unknown`
2260uname -v = `(uname -v) 2>/dev/null || echo unknown`
2261
2262/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2263/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2264
2265/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2266/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2267/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2268/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2269/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2270/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2271/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2272
2273_ASUNAME
2274
2275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276for as_dir in $PATH
2277do
2278  IFS=$as_save_IFS
2279  test -z "$as_dir" && as_dir=.
2280    $as_echo "PATH: $as_dir"
2281  done
2282IFS=$as_save_IFS
2283
2284} >&5
2285
2286cat >&5 <<_ACEOF
2287
2288
2289## ----------- ##
2290## Core tests. ##
2291## ----------- ##
2292
2293_ACEOF
2294
2295
2296# Keep a trace of the command line.
2297# Strip out --no-create and --no-recursion so they do not pile up.
2298# Strip out --silent because we don't want to record it for future runs.
2299# Also quote any args containing shell meta-characters.
2300# Make two passes to allow for proper duplicate-argument suppression.
2301ac_configure_args=
2302ac_configure_args0=
2303ac_configure_args1=
2304ac_must_keep_next=false
2305for ac_pass in 1 2
2306do
2307  for ac_arg
2308  do
2309    case $ac_arg in
2310    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2311    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2312    | -silent | --silent | --silen | --sile | --sil)
2313      continue ;;
2314    *\'*)
2315      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2316    esac
2317    case $ac_pass in
2318    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2319    2)
2320      as_fn_append ac_configure_args1 " '$ac_arg'"
2321      if test $ac_must_keep_next = true; then
2322	ac_must_keep_next=false # Got value, back to normal.
2323      else
2324	case $ac_arg in
2325	  *=* | --config-cache | -C | -disable-* | --disable-* \
2326	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2327	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2328	  | -with-* | --with-* | -without-* | --without-* | --x)
2329	    case "$ac_configure_args0 " in
2330	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2331	    esac
2332	    ;;
2333	  -* ) ac_must_keep_next=true ;;
2334	esac
2335      fi
2336      as_fn_append ac_configure_args " '$ac_arg'"
2337      ;;
2338    esac
2339  done
2340done
2341{ ac_configure_args0=; unset ac_configure_args0;}
2342{ ac_configure_args1=; unset ac_configure_args1;}
2343
2344# When interrupted or exit'd, cleanup temporary files, and complete
2345# config.log.  We remove comments because anyway the quotes in there
2346# would cause problems or look ugly.
2347# WARNING: Use '\'' to represent an apostrophe within the trap.
2348# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2349trap 'exit_status=$?
2350  # Save into config.log some information that might help in debugging.
2351  {
2352    echo
2353
2354    cat <<\_ASBOX
2355## ---------------- ##
2356## Cache variables. ##
2357## ---------------- ##
2358_ASBOX
2359    echo
2360    # The following way of writing the cache mishandles newlines in values,
2361(
2362  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2363    eval ac_val=\$$ac_var
2364    case $ac_val in #(
2365    *${as_nl}*)
2366      case $ac_var in #(
2367      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2368$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2369      esac
2370      case $ac_var in #(
2371      _ | IFS | as_nl) ;; #(
2372      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2373      *) { eval $ac_var=; unset $ac_var;} ;;
2374      esac ;;
2375    esac
2376  done
2377  (set) 2>&1 |
2378    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2379    *${as_nl}ac_space=\ *)
2380      sed -n \
2381	"s/'\''/'\''\\\\'\'''\''/g;
2382	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2383      ;; #(
2384    *)
2385      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2386      ;;
2387    esac |
2388    sort
2389)
2390    echo
2391
2392    cat <<\_ASBOX
2393## ----------------- ##
2394## Output variables. ##
2395## ----------------- ##
2396_ASBOX
2397    echo
2398    for ac_var in $ac_subst_vars
2399    do
2400      eval ac_val=\$$ac_var
2401      case $ac_val in
2402      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2403      esac
2404      $as_echo "$ac_var='\''$ac_val'\''"
2405    done | sort
2406    echo
2407
2408    if test -n "$ac_subst_files"; then
2409      cat <<\_ASBOX
2410## ------------------- ##
2411## File substitutions. ##
2412## ------------------- ##
2413_ASBOX
2414      echo
2415      for ac_var in $ac_subst_files
2416      do
2417	eval ac_val=\$$ac_var
2418	case $ac_val in
2419	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2420	esac
2421	$as_echo "$ac_var='\''$ac_val'\''"
2422      done | sort
2423      echo
2424    fi
2425
2426    if test -s confdefs.h; then
2427      cat <<\_ASBOX
2428## ----------- ##
2429## confdefs.h. ##
2430## ----------- ##
2431_ASBOX
2432      echo
2433      cat confdefs.h
2434      echo
2435    fi
2436    test "$ac_signal" != 0 &&
2437      $as_echo "$as_me: caught signal $ac_signal"
2438    $as_echo "$as_me: exit $exit_status"
2439  } >&5
2440  rm -f core *.core core.conftest.* &&
2441    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2442    exit $exit_status
2443' 0
2444for ac_signal in 1 2 13 15; do
2445  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2446done
2447ac_signal=0
2448
2449# confdefs.h avoids OS command line length limits that DEFS can exceed.
2450rm -f -r conftest* confdefs.h
2451
2452$as_echo "/* confdefs.h */" > confdefs.h
2453
2454# Predefined preprocessor variables.
2455
2456cat >>confdefs.h <<_ACEOF
2457#define PACKAGE_NAME "$PACKAGE_NAME"
2458_ACEOF
2459
2460cat >>confdefs.h <<_ACEOF
2461#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2462_ACEOF
2463
2464cat >>confdefs.h <<_ACEOF
2465#define PACKAGE_VERSION "$PACKAGE_VERSION"
2466_ACEOF
2467
2468cat >>confdefs.h <<_ACEOF
2469#define PACKAGE_STRING "$PACKAGE_STRING"
2470_ACEOF
2471
2472cat >>confdefs.h <<_ACEOF
2473#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2474_ACEOF
2475
2476cat >>confdefs.h <<_ACEOF
2477#define PACKAGE_URL "$PACKAGE_URL"
2478_ACEOF
2479
2480
2481# Let the site file select an alternate cache file if it wants to.
2482# Prefer an explicitly selected file to automatically selected ones.
2483ac_site_file1=NONE
2484ac_site_file2=NONE
2485if test -n "$CONFIG_SITE"; then
2486  ac_site_file1=$CONFIG_SITE
2487elif test "x$prefix" != xNONE; then
2488  ac_site_file1=$prefix/share/config.site
2489  ac_site_file2=$prefix/etc/config.site
2490else
2491  ac_site_file1=$ac_default_prefix/share/config.site
2492  ac_site_file2=$ac_default_prefix/etc/config.site
2493fi
2494for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2495do
2496  test "x$ac_site_file" = xNONE && continue
2497  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2498    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2499$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2500    sed 's/^/| /' "$ac_site_file" >&5
2501    . "$ac_site_file"
2502  fi
2503done
2504
2505if test -r "$cache_file"; then
2506  # Some versions of bash will fail to source /dev/null (special files
2507  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2508  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2509    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2510$as_echo "$as_me: loading cache $cache_file" >&6;}
2511    case $cache_file in
2512      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2513      *)                      . "./$cache_file";;
2514    esac
2515  fi
2516else
2517  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2518$as_echo "$as_me: creating cache $cache_file" >&6;}
2519  >$cache_file
2520fi
2521
2522# Check that the precious variables saved in the cache have kept the same
2523# value.
2524ac_cache_corrupted=false
2525for ac_var in $ac_precious_vars; do
2526  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2527  eval ac_new_set=\$ac_env_${ac_var}_set
2528  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2529  eval ac_new_val=\$ac_env_${ac_var}_value
2530  case $ac_old_set,$ac_new_set in
2531    set,)
2532      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2533$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2534      ac_cache_corrupted=: ;;
2535    ,set)
2536      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2537$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2538      ac_cache_corrupted=: ;;
2539    ,);;
2540    *)
2541      if test "x$ac_old_val" != "x$ac_new_val"; then
2542	# differences in whitespace do not lead to failure.
2543	ac_old_val_w=`echo x $ac_old_val`
2544	ac_new_val_w=`echo x $ac_new_val`
2545	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2546	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2547$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2548	  ac_cache_corrupted=:
2549	else
2550	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2551$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2552	  eval $ac_var=\$ac_old_val
2553	fi
2554	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2555$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2556	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2557$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2558      fi;;
2559  esac
2560  # Pass precious variables to config.status.
2561  if test "$ac_new_set" = set; then
2562    case $ac_new_val in
2563    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2564    *) ac_arg=$ac_var=$ac_new_val ;;
2565    esac
2566    case " $ac_configure_args " in
2567      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2568      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2569    esac
2570  fi
2571done
2572if $ac_cache_corrupted; then
2573  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2575  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2576$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2577  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2578fi
2579## -------------------- ##
2580## Main body of script. ##
2581## -------------------- ##
2582
2583ac_ext=c
2584ac_cpp='$CPP $CPPFLAGS'
2585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588
2589
2590
2591
2592
2593
2594ac_aux_dir=
2595for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2596  for ac_t in install-sh install.sh shtool; do
2597    if test -f "$ac_dir/$ac_t"; then
2598      ac_aux_dir=$ac_dir
2599      ac_install_sh="$ac_aux_dir/$ac_t -c"
2600      break 2
2601    fi
2602  done
2603done
2604if test -z "$ac_aux_dir"; then
2605  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2606fi
2607
2608# These three variables are undocumented and unsupported,
2609# and are intended to be withdrawn in a future Autoconf release.
2610# They can cause serious problems if a builder's source tree is in a directory
2611# whose full name contains unusual characters.
2612ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2613ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2614ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2615
2616
2617# Make sure we can run config.sub.
2618$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2619  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2620
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2622$as_echo_n "checking build system type... " >&6; }
2623if test "${ac_cv_build+set}" = set; then :
2624  $as_echo_n "(cached) " >&6
2625else
2626  ac_build_alias=$build_alias
2627test "x$ac_build_alias" = x &&
2628  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2629test "x$ac_build_alias" = x &&
2630  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2631ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2632  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2633
2634fi
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2636$as_echo "$ac_cv_build" >&6; }
2637case $ac_cv_build in
2638*-*-*) ;;
2639*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2640esac
2641build=$ac_cv_build
2642ac_save_IFS=$IFS; IFS='-'
2643set x $ac_cv_build
2644shift
2645build_cpu=$1
2646build_vendor=$2
2647shift; shift
2648# Remember, the first character of IFS is used to create $*,
2649# except with old shells:
2650build_os=$*
2651IFS=$ac_save_IFS
2652case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2653
2654
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2656$as_echo_n "checking host system type... " >&6; }
2657if test "${ac_cv_host+set}" = set; then :
2658  $as_echo_n "(cached) " >&6
2659else
2660  if test "x$host_alias" = x; then
2661  ac_cv_host=$ac_cv_build
2662else
2663  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2664    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2665fi
2666
2667fi
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2669$as_echo "$ac_cv_host" >&6; }
2670case $ac_cv_host in
2671*-*-*) ;;
2672*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2673esac
2674host=$ac_cv_host
2675ac_save_IFS=$IFS; IFS='-'
2676set x $ac_cv_host
2677shift
2678host_cpu=$1
2679host_vendor=$2
2680shift; shift
2681# Remember, the first character of IFS is used to create $*,
2682# except with old shells:
2683host_os=$*
2684IFS=$ac_save_IFS
2685case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2686
2687
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2689$as_echo_n "checking target system type... " >&6; }
2690if test "${ac_cv_target+set}" = set; then :
2691  $as_echo_n "(cached) " >&6
2692else
2693  if test "x$target_alias" = x; then
2694  ac_cv_target=$ac_cv_host
2695else
2696  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2697    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2698fi
2699
2700fi
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2702$as_echo "$ac_cv_target" >&6; }
2703case $ac_cv_target in
2704*-*-*) ;;
2705*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2706esac
2707target=$ac_cv_target
2708ac_save_IFS=$IFS; IFS='-'
2709set x $ac_cv_target
2710shift
2711target_cpu=$1
2712target_vendor=$2
2713shift; shift
2714# Remember, the first character of IFS is used to create $*,
2715# except with old shells:
2716target_os=$*
2717IFS=$ac_save_IFS
2718case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2719
2720
2721# The aliases save the names the user supplied, while $host etc.
2722# will get canonicalized.
2723test -n "$target_alias" &&
2724  test "$program_prefix$program_suffix$program_transform_name" = \
2725    NONENONEs,x,x, &&
2726  program_prefix=${target_alias}-
2727
2728am__api_version='1.11'
2729
2730# Find a good install program.  We prefer a C program (faster),
2731# so one script is as good as another.  But avoid the broken or
2732# incompatible versions:
2733# SysV /etc/install, /usr/sbin/install
2734# SunOS /usr/etc/install
2735# IRIX /sbin/install
2736# AIX /bin/install
2737# AmigaOS /C/install, which installs bootblocks on floppy discs
2738# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2739# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2740# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2741# OS/2's system install, which has a completely different semantic
2742# ./install, which can be erroneously created by make from ./install.sh.
2743# Reject install programs that cannot install multiple files.
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2745$as_echo_n "checking for a BSD-compatible install... " >&6; }
2746if test -z "$INSTALL"; then
2747if test "${ac_cv_path_install+set}" = set; then :
2748  $as_echo_n "(cached) " >&6
2749else
2750  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751for as_dir in $PATH
2752do
2753  IFS=$as_save_IFS
2754  test -z "$as_dir" && as_dir=.
2755    # Account for people who put trailing slashes in PATH elements.
2756case $as_dir/ in #((
2757  ./ | .// | /[cC]/* | \
2758  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2759  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2760  /usr/ucb/* ) ;;
2761  *)
2762    # OSF1 and SCO ODT 3.0 have their own names for install.
2763    # Don't use installbsd from OSF since it installs stuff as root
2764    # by default.
2765    for ac_prog in ginstall scoinst install; do
2766      for ac_exec_ext in '' $ac_executable_extensions; do
2767	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2768	  if test $ac_prog = install &&
2769	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2770	    # AIX install.  It has an incompatible calling convention.
2771	    :
2772	  elif test $ac_prog = install &&
2773	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2774	    # program-specific install script used by HP pwplus--don't use.
2775	    :
2776	  else
2777	    rm -rf conftest.one conftest.two conftest.dir
2778	    echo one > conftest.one
2779	    echo two > conftest.two
2780	    mkdir conftest.dir
2781	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2782	      test -s conftest.one && test -s conftest.two &&
2783	      test -s conftest.dir/conftest.one &&
2784	      test -s conftest.dir/conftest.two
2785	    then
2786	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2787	      break 3
2788	    fi
2789	  fi
2790	fi
2791      done
2792    done
2793    ;;
2794esac
2795
2796  done
2797IFS=$as_save_IFS
2798
2799rm -rf conftest.one conftest.two conftest.dir
2800
2801fi
2802  if test "${ac_cv_path_install+set}" = set; then
2803    INSTALL=$ac_cv_path_install
2804  else
2805    # As a last resort, use the slow shell script.  Don't cache a
2806    # value for INSTALL within a source directory, because that will
2807    # break other packages using the cache if that directory is
2808    # removed, or if the value is a relative name.
2809    INSTALL=$ac_install_sh
2810  fi
2811fi
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2813$as_echo "$INSTALL" >&6; }
2814
2815# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2816# It thinks the first close brace ends the variable substitution.
2817test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2818
2819test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2820
2821test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2822
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2824$as_echo_n "checking whether build environment is sane... " >&6; }
2825# Just in case
2826sleep 1
2827echo timestamp > conftest.file
2828# Reject unsafe characters in $srcdir or the absolute working directory
2829# name.  Accept space and tab only in the latter.
2830am_lf='
2831'
2832case `pwd` in
2833  *[\\\"\#\$\&\'\`$am_lf]*)
2834    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2835esac
2836case $srcdir in
2837  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2838    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2839esac
2840
2841# Do `set' in a subshell so we don't clobber the current shell's
2842# arguments.  Must try -L first in case configure is actually a
2843# symlink; some systems play weird games with the mod time of symlinks
2844# (eg FreeBSD returns the mod time of the symlink's containing
2845# directory).
2846if (
2847   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2848   if test "$*" = "X"; then
2849      # -L didn't work.
2850      set X `ls -t "$srcdir/configure" conftest.file`
2851   fi
2852   rm -f conftest.file
2853   if test "$*" != "X $srcdir/configure conftest.file" \
2854      && test "$*" != "X conftest.file $srcdir/configure"; then
2855
2856      # If neither matched, then we have a broken ls.  This can happen
2857      # if, for instance, CONFIG_SHELL is bash and it inherits a
2858      # broken ls alias from the environment.  This has actually
2859      # happened.  Such a system could not be considered "sane".
2860      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2861alias in your environment" "$LINENO" 5
2862   fi
2863
2864   test "$2" = conftest.file
2865   )
2866then
2867   # Ok.
2868   :
2869else
2870   as_fn_error "newly created file is older than distributed files!
2871Check your system clock" "$LINENO" 5
2872fi
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2874$as_echo "yes" >&6; }
2875test "$program_prefix" != NONE &&
2876  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2877# Use a double $ so make ignores it.
2878test "$program_suffix" != NONE &&
2879  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2880# Double any \ or $.
2881# By default was `s,x,x', remove it if useless.
2882ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2883program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2884
2885# expand $ac_aux_dir to an absolute path
2886am_aux_dir=`cd $ac_aux_dir && pwd`
2887
2888if test x"${MISSING+set}" != xset; then
2889  case $am_aux_dir in
2890  *\ * | *\	*)
2891    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2892  *)
2893    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2894  esac
2895fi
2896# Use eval to expand $SHELL
2897if eval "$MISSING --run true"; then
2898  am_missing_run="$MISSING --run "
2899else
2900  am_missing_run=
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2902$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2903fi
2904
2905if test x"${install_sh}" != xset; then
2906  case $am_aux_dir in
2907  *\ * | *\	*)
2908    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2909  *)
2910    install_sh="\${SHELL} $am_aux_dir/install-sh"
2911  esac
2912fi
2913
2914# Installed binaries are usually stripped using `strip' when the user
2915# run `make install-strip'.  However `strip' might not be the right
2916# tool to use in cross-compilation environments, therefore Automake
2917# will honor the `STRIP' environment variable to overrule this program.
2918if test "$cross_compiling" != no; then
2919  if test -n "$ac_tool_prefix"; then
2920  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2921set dummy ${ac_tool_prefix}strip; ac_word=$2
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923$as_echo_n "checking for $ac_word... " >&6; }
2924if test "${ac_cv_prog_STRIP+set}" = set; then :
2925  $as_echo_n "(cached) " >&6
2926else
2927  if test -n "$STRIP"; then
2928  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2929else
2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931for as_dir in $PATH
2932do
2933  IFS=$as_save_IFS
2934  test -z "$as_dir" && as_dir=.
2935    for ac_exec_ext in '' $ac_executable_extensions; do
2936  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939    break 2
2940  fi
2941done
2942  done
2943IFS=$as_save_IFS
2944
2945fi
2946fi
2947STRIP=$ac_cv_prog_STRIP
2948if test -n "$STRIP"; then
2949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2950$as_echo "$STRIP" >&6; }
2951else
2952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953$as_echo "no" >&6; }
2954fi
2955
2956
2957fi
2958if test -z "$ac_cv_prog_STRIP"; then
2959  ac_ct_STRIP=$STRIP
2960  # Extract the first word of "strip", so it can be a program name with args.
2961set dummy strip; ac_word=$2
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963$as_echo_n "checking for $ac_word... " >&6; }
2964if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2965  $as_echo_n "(cached) " >&6
2966else
2967  if test -n "$ac_ct_STRIP"; then
2968  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2969else
2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971for as_dir in $PATH
2972do
2973  IFS=$as_save_IFS
2974  test -z "$as_dir" && as_dir=.
2975    for ac_exec_ext in '' $ac_executable_extensions; do
2976  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977    ac_cv_prog_ac_ct_STRIP="strip"
2978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979    break 2
2980  fi
2981done
2982  done
2983IFS=$as_save_IFS
2984
2985fi
2986fi
2987ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2988if test -n "$ac_ct_STRIP"; then
2989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2990$as_echo "$ac_ct_STRIP" >&6; }
2991else
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993$as_echo "no" >&6; }
2994fi
2995
2996  if test "x$ac_ct_STRIP" = x; then
2997    STRIP=":"
2998  else
2999    case $cross_compiling:$ac_tool_warned in
3000yes:)
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003ac_tool_warned=yes ;;
3004esac
3005    STRIP=$ac_ct_STRIP
3006  fi
3007else
3008  STRIP="$ac_cv_prog_STRIP"
3009fi
3010
3011fi
3012INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3013
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3015$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3016if test -z "$MKDIR_P"; then
3017  if test "${ac_cv_path_mkdir+set}" = set; then :
3018  $as_echo_n "(cached) " >&6
3019else
3020  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3022do
3023  IFS=$as_save_IFS
3024  test -z "$as_dir" && as_dir=.
3025    for ac_prog in mkdir gmkdir; do
3026	 for ac_exec_ext in '' $ac_executable_extensions; do
3027	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3028	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3029	     'mkdir (GNU coreutils) '* | \
3030	     'mkdir (coreutils) '* | \
3031	     'mkdir (fileutils) '4.1*)
3032	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3033	       break 3;;
3034	   esac
3035	 done
3036       done
3037  done
3038IFS=$as_save_IFS
3039
3040fi
3041
3042  test -d ./--version && rmdir ./--version
3043  if test "${ac_cv_path_mkdir+set}" = set; then
3044    MKDIR_P="$ac_cv_path_mkdir -p"
3045  else
3046    # As a last resort, use the slow shell script.  Don't cache a
3047    # value for MKDIR_P within a source directory, because that will
3048    # break other packages using the cache if that directory is
3049    # removed, or if the value is a relative name.
3050    MKDIR_P="$ac_install_sh -d"
3051  fi
3052fi
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3054$as_echo "$MKDIR_P" >&6; }
3055
3056mkdir_p="$MKDIR_P"
3057case $mkdir_p in
3058  [\\/$]* | ?:[\\/]*) ;;
3059  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3060esac
3061
3062for ac_prog in gawk mawk nawk awk
3063do
3064  # Extract the first word of "$ac_prog", so it can be a program name with args.
3065set dummy $ac_prog; ac_word=$2
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067$as_echo_n "checking for $ac_word... " >&6; }
3068if test "${ac_cv_prog_AWK+set}" = set; then :
3069  $as_echo_n "(cached) " >&6
3070else
3071  if test -n "$AWK"; then
3072  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3073else
3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075for as_dir in $PATH
3076do
3077  IFS=$as_save_IFS
3078  test -z "$as_dir" && as_dir=.
3079    for ac_exec_ext in '' $ac_executable_extensions; do
3080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3081    ac_cv_prog_AWK="$ac_prog"
3082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083    break 2
3084  fi
3085done
3086  done
3087IFS=$as_save_IFS
3088
3089fi
3090fi
3091AWK=$ac_cv_prog_AWK
3092if test -n "$AWK"; then
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3094$as_echo "$AWK" >&6; }
3095else
3096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097$as_echo "no" >&6; }
3098fi
3099
3100
3101  test -n "$AWK" && break
3102done
3103
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3105$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3106set x ${MAKE-make}
3107ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3108if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3109  $as_echo_n "(cached) " >&6
3110else
3111  cat >conftest.make <<\_ACEOF
3112SHELL = /bin/sh
3113all:
3114	@echo '@@@%%%=$(MAKE)=@@@%%%'
3115_ACEOF
3116# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3117case `${MAKE-make} -f conftest.make 2>/dev/null` in
3118  *@@@%%%=?*=@@@%%%*)
3119    eval ac_cv_prog_make_${ac_make}_set=yes;;
3120  *)
3121    eval ac_cv_prog_make_${ac_make}_set=no;;
3122esac
3123rm -f conftest.make
3124fi
3125if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3127$as_echo "yes" >&6; }
3128  SET_MAKE=
3129else
3130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131$as_echo "no" >&6; }
3132  SET_MAKE="MAKE=${MAKE-make}"
3133fi
3134
3135rm -rf .tst 2>/dev/null
3136mkdir .tst 2>/dev/null
3137if test -d .tst; then
3138  am__leading_dot=.
3139else
3140  am__leading_dot=_
3141fi
3142rmdir .tst 2>/dev/null
3143
3144if test "`cd $srcdir && pwd`" != "`pwd`"; then
3145  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3146  # is not polluted with repeated "-I."
3147  am__isrc=' -I$(srcdir)'
3148  # test to see if srcdir already configured
3149  if test -f $srcdir/config.status; then
3150    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3151  fi
3152fi
3153
3154# test whether we have cygpath
3155if test -z "$CYGPATH_W"; then
3156  if (cygpath --version) >/dev/null 2>/dev/null; then
3157    CYGPATH_W='cygpath -w'
3158  else
3159    CYGPATH_W=echo
3160  fi
3161fi
3162
3163
3164# Define the identity of the package.
3165 PACKAGE=liboggz
3166 VERSION=1.1.1
3167
3168
3169cat >>confdefs.h <<_ACEOF
3170#define PACKAGE "$PACKAGE"
3171_ACEOF
3172
3173
3174cat >>confdefs.h <<_ACEOF
3175#define VERSION "$VERSION"
3176_ACEOF
3177
3178# Some tools Automake needs.
3179
3180ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3181
3182
3183AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3184
3185
3186AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3187
3188
3189AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3190
3191
3192MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3193
3194# We need awk for the "check" target.  The system "awk" is bad on
3195# some platforms.
3196# Always define AMTAR for backward compatibility.
3197
3198AMTAR=${AMTAR-"${am_missing_run}tar"}
3199
3200am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3201
3202
3203
3204
3205
3206ac_config_headers="$ac_config_headers config.h"
3207
3208
3209################################################################################
3210# Set the shared versioning info, according to section 6.3 of the libtool info #
3211# pages. CURRENT:REVISION:AGE must be updated immediately before each release: #
3212#                                                                              #
3213#   * If the library source code has changed at all since the last             #
3214#     update, then increment REVISION (`C:R:A' becomes `C:r+1:A').             #
3215#                                                                              #
3216#   * If any interfaces have been added, removed, or changed since the         #
3217#     last update, increment CURRENT, and set REVISION to 0.                   #
3218#                                                                              #
3219#   * If any interfaces have been added since the last public release,         #
3220#     then increment AGE.                                                      #
3221#                                                                              #
3222#   * If any interfaces have been removed since the last public release,       #
3223#     then set AGE to 0.                                                       #
3224#                                                                              #
3225################################################################################
3226SHARED_VERSION_INFO="8:0:6"
3227SHLIB_VERSION_ARG=""
3228
3229# Checks for programs.
3230ac_ext=c
3231ac_cpp='$CPP $CPPFLAGS'
3232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235if test -n "$ac_tool_prefix"; then
3236  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3237set dummy ${ac_tool_prefix}gcc; ac_word=$2
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239$as_echo_n "checking for $ac_word... " >&6; }
3240if test "${ac_cv_prog_CC+set}" = set; then :
3241  $as_echo_n "(cached) " >&6
3242else
3243  if test -n "$CC"; then
3244  ac_cv_prog_CC="$CC" # Let the user override the test.
3245else
3246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247for as_dir in $PATH
3248do
3249  IFS=$as_save_IFS
3250  test -z "$as_dir" && as_dir=.
3251    for ac_exec_ext in '' $ac_executable_extensions; do
3252  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255    break 2
3256  fi
3257done
3258  done
3259IFS=$as_save_IFS
3260
3261fi
3262fi
3263CC=$ac_cv_prog_CC
3264if test -n "$CC"; then
3265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3266$as_echo "$CC" >&6; }
3267else
3268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269$as_echo "no" >&6; }
3270fi
3271
3272
3273fi
3274if test -z "$ac_cv_prog_CC"; then
3275  ac_ct_CC=$CC
3276  # Extract the first word of "gcc", so it can be a program name with args.
3277set dummy gcc; ac_word=$2
3278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279$as_echo_n "checking for $ac_word... " >&6; }
3280if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3281  $as_echo_n "(cached) " >&6
3282else
3283  if test -n "$ac_ct_CC"; then
3284  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3285else
3286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287for as_dir in $PATH
3288do
3289  IFS=$as_save_IFS
3290  test -z "$as_dir" && as_dir=.
3291    for ac_exec_ext in '' $ac_executable_extensions; do
3292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293    ac_cv_prog_ac_ct_CC="gcc"
3294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295    break 2
3296  fi
3297done
3298  done
3299IFS=$as_save_IFS
3300
3301fi
3302fi
3303ac_ct_CC=$ac_cv_prog_ac_ct_CC
3304if test -n "$ac_ct_CC"; then
3305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3306$as_echo "$ac_ct_CC" >&6; }
3307else
3308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309$as_echo "no" >&6; }
3310fi
3311
3312  if test "x$ac_ct_CC" = x; then
3313    CC=""
3314  else
3315    case $cross_compiling:$ac_tool_warned in
3316yes:)
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3319ac_tool_warned=yes ;;
3320esac
3321    CC=$ac_ct_CC
3322  fi
3323else
3324  CC="$ac_cv_prog_CC"
3325fi
3326
3327if test -z "$CC"; then
3328          if test -n "$ac_tool_prefix"; then
3329    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3330set dummy ${ac_tool_prefix}cc; ac_word=$2
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332$as_echo_n "checking for $ac_word... " >&6; }
3333if test "${ac_cv_prog_CC+set}" = set; then :
3334  $as_echo_n "(cached) " >&6
3335else
3336  if test -n "$CC"; then
3337  ac_cv_prog_CC="$CC" # Let the user override the test.
3338else
3339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340for as_dir in $PATH
3341do
3342  IFS=$as_save_IFS
3343  test -z "$as_dir" && as_dir=.
3344    for ac_exec_ext in '' $ac_executable_extensions; do
3345  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3346    ac_cv_prog_CC="${ac_tool_prefix}cc"
3347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348    break 2
3349  fi
3350done
3351  done
3352IFS=$as_save_IFS
3353
3354fi
3355fi
3356CC=$ac_cv_prog_CC
3357if test -n "$CC"; then
3358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359$as_echo "$CC" >&6; }
3360else
3361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362$as_echo "no" >&6; }
3363fi
3364
3365
3366  fi
3367fi
3368if test -z "$CC"; then
3369  # Extract the first word of "cc", so it can be a program name with args.
3370set dummy cc; ac_word=$2
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372$as_echo_n "checking for $ac_word... " >&6; }
3373if test "${ac_cv_prog_CC+set}" = set; then :
3374  $as_echo_n "(cached) " >&6
3375else
3376  if test -n "$CC"; then
3377  ac_cv_prog_CC="$CC" # Let the user override the test.
3378else
3379  ac_prog_rejected=no
3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381for as_dir in $PATH
3382do
3383  IFS=$as_save_IFS
3384  test -z "$as_dir" && as_dir=.
3385    for ac_exec_ext in '' $ac_executable_extensions; do
3386  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3387    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3388       ac_prog_rejected=yes
3389       continue
3390     fi
3391    ac_cv_prog_CC="cc"
3392    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393    break 2
3394  fi
3395done
3396  done
3397IFS=$as_save_IFS
3398
3399if test $ac_prog_rejected = yes; then
3400  # We found a bogon in the path, so make sure we never use it.
3401  set dummy $ac_cv_prog_CC
3402  shift
3403  if test $# != 0; then
3404    # We chose a different compiler from the bogus one.
3405    # However, it has the same basename, so the bogon will be chosen
3406    # first if we set CC to just the basename; use the full file name.
3407    shift
3408    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3409  fi
3410fi
3411fi
3412fi
3413CC=$ac_cv_prog_CC
3414if test -n "$CC"; then
3415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3416$as_echo "$CC" >&6; }
3417else
3418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419$as_echo "no" >&6; }
3420fi
3421
3422
3423fi
3424if test -z "$CC"; then
3425  if test -n "$ac_tool_prefix"; then
3426  for ac_prog in cl.exe
3427  do
3428    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3429set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431$as_echo_n "checking for $ac_word... " >&6; }
3432if test "${ac_cv_prog_CC+set}" = set; then :
3433  $as_echo_n "(cached) " >&6
3434else
3435  if test -n "$CC"; then
3436  ac_cv_prog_CC="$CC" # Let the user override the test.
3437else
3438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439for as_dir in $PATH
3440do
3441  IFS=$as_save_IFS
3442  test -z "$as_dir" && as_dir=.
3443    for ac_exec_ext in '' $ac_executable_extensions; do
3444  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3446    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447    break 2
3448  fi
3449done
3450  done
3451IFS=$as_save_IFS
3452
3453fi
3454fi
3455CC=$ac_cv_prog_CC
3456if test -n "$CC"; then
3457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3458$as_echo "$CC" >&6; }
3459else
3460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461$as_echo "no" >&6; }
3462fi
3463
3464
3465    test -n "$CC" && break
3466  done
3467fi
3468if test -z "$CC"; then
3469  ac_ct_CC=$CC
3470  for ac_prog in cl.exe
3471do
3472  # Extract the first word of "$ac_prog", so it can be a program name with args.
3473set dummy $ac_prog; ac_word=$2
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475$as_echo_n "checking for $ac_word... " >&6; }
3476if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3477  $as_echo_n "(cached) " >&6
3478else
3479  if test -n "$ac_ct_CC"; then
3480  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3481else
3482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483for as_dir in $PATH
3484do
3485  IFS=$as_save_IFS
3486  test -z "$as_dir" && as_dir=.
3487    for ac_exec_ext in '' $ac_executable_extensions; do
3488  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489    ac_cv_prog_ac_ct_CC="$ac_prog"
3490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491    break 2
3492  fi
3493done
3494  done
3495IFS=$as_save_IFS
3496
3497fi
3498fi
3499ac_ct_CC=$ac_cv_prog_ac_ct_CC
3500if test -n "$ac_ct_CC"; then
3501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3502$as_echo "$ac_ct_CC" >&6; }
3503else
3504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505$as_echo "no" >&6; }
3506fi
3507
3508
3509  test -n "$ac_ct_CC" && break
3510done
3511
3512  if test "x$ac_ct_CC" = x; then
3513    CC=""
3514  else
3515    case $cross_compiling:$ac_tool_warned in
3516yes:)
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3518$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3519ac_tool_warned=yes ;;
3520esac
3521    CC=$ac_ct_CC
3522  fi
3523fi
3524
3525fi
3526
3527
3528test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530as_fn_error "no acceptable C compiler found in \$PATH
3531See \`config.log' for more details." "$LINENO" 5; }
3532
3533# Provide some information about the compiler.
3534$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3535set X $ac_compile
3536ac_compiler=$2
3537for ac_option in --version -v -V -qversion; do
3538  { { ac_try="$ac_compiler $ac_option >&5"
3539case "(($ac_try" in
3540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541  *) ac_try_echo=$ac_try;;
3542esac
3543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544$as_echo "$ac_try_echo"; } >&5
3545  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3546  ac_status=$?
3547  if test -s conftest.err; then
3548    sed '10a\
3549... rest of stderr output deleted ...
3550         10q' conftest.err >conftest.er1
3551    cat conftest.er1 >&5
3552  fi
3553  rm -f conftest.er1 conftest.err
3554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555  test $ac_status = 0; }
3556done
3557
3558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559/* end confdefs.h.  */
3560
3561int
3562main ()
3563{
3564
3565  ;
3566  return 0;
3567}
3568_ACEOF
3569ac_clean_files_save=$ac_clean_files
3570ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3571# Try to create an executable without -o first, disregard a.out.
3572# It will help us diagnose broken compilers, and finding out an intuition
3573# of exeext.
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3575$as_echo_n "checking whether the C compiler works... " >&6; }
3576ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3577
3578# The possible output files:
3579ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3580
3581ac_rmfiles=
3582for ac_file in $ac_files
3583do
3584  case $ac_file in
3585    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3586    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3587  esac
3588done
3589rm -f $ac_rmfiles
3590
3591if { { ac_try="$ac_link_default"
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_default") 2>&5
3599  ac_status=$?
3600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601  test $ac_status = 0; }; then :
3602  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3603# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3604# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3605# so that the user can short-circuit this test for compilers unknown to
3606# Autoconf.
3607for ac_file in $ac_files ''
3608do
3609  test -f "$ac_file" || continue
3610  case $ac_file in
3611    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3612	;;
3613    [ab].out )
3614	# We found the default executable, but exeext='' is most
3615	# certainly right.
3616	break;;
3617    *.* )
3618	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3619	then :; else
3620	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3621	fi
3622	# We set ac_cv_exeext here because the later test for it is not
3623	# safe: cross compilers may not add the suffix if given an `-o'
3624	# argument, so we may need to know it at that point already.
3625	# Even if this section looks crufty: it has the advantage of
3626	# actually working.
3627	break;;
3628    * )
3629	break;;
3630  esac
3631done
3632test "$ac_cv_exeext" = no && ac_cv_exeext=
3633
3634else
3635  ac_file=''
3636fi
3637if test -z "$ac_file"; then :
3638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639$as_echo "no" >&6; }
3640$as_echo "$as_me: failed program was:" >&5
3641sed 's/^/| /' conftest.$ac_ext >&5
3642
3643{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3645{ as_fn_set_status 77
3646as_fn_error "C compiler cannot create executables
3647See \`config.log' for more details." "$LINENO" 5; }; }
3648else
3649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3650$as_echo "yes" >&6; }
3651fi
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3653$as_echo_n "checking for C compiler default output file name... " >&6; }
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3655$as_echo "$ac_file" >&6; }
3656ac_exeext=$ac_cv_exeext
3657
3658rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3659ac_clean_files=$ac_clean_files_save
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3661$as_echo_n "checking for suffix of executables... " >&6; }
3662if { { ac_try="$ac_link"
3663case "(($ac_try" in
3664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665  *) ac_try_echo=$ac_try;;
3666esac
3667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668$as_echo "$ac_try_echo"; } >&5
3669  (eval "$ac_link") 2>&5
3670  ac_status=$?
3671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672  test $ac_status = 0; }; then :
3673  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3674# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3675# work properly (i.e., refer to `conftest.exe'), while it won't with
3676# `rm'.
3677for ac_file in conftest.exe conftest conftest.*; do
3678  test -f "$ac_file" || continue
3679  case $ac_file in
3680    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3681    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3682	  break;;
3683    * ) break;;
3684  esac
3685done
3686else
3687  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689as_fn_error "cannot compute suffix of executables: cannot compile and link
3690See \`config.log' for more details." "$LINENO" 5; }
3691fi
3692rm -f conftest conftest$ac_cv_exeext
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3694$as_echo "$ac_cv_exeext" >&6; }
3695
3696rm -f conftest.$ac_ext
3697EXEEXT=$ac_cv_exeext
3698ac_exeext=$EXEEXT
3699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700/* end confdefs.h.  */
3701#include <stdio.h>
3702int
3703main ()
3704{
3705FILE *f = fopen ("conftest.out", "w");
3706 return ferror (f) || fclose (f) != 0;
3707
3708  ;
3709  return 0;
3710}
3711_ACEOF
3712ac_clean_files="$ac_clean_files conftest.out"
3713# Check that the compiler produces executables we can run.  If not, either
3714# the compiler is broken, or we cross compile.
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3716$as_echo_n "checking whether we are cross compiling... " >&6; }
3717if test "$cross_compiling" != yes; then
3718  { { ac_try="$ac_link"
3719case "(($ac_try" in
3720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721  *) ac_try_echo=$ac_try;;
3722esac
3723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724$as_echo "$ac_try_echo"; } >&5
3725  (eval "$ac_link") 2>&5
3726  ac_status=$?
3727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728  test $ac_status = 0; }
3729  if { ac_try='./conftest$ac_cv_exeext'
3730  { { case "(($ac_try" in
3731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732  *) ac_try_echo=$ac_try;;
3733esac
3734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735$as_echo "$ac_try_echo"; } >&5
3736  (eval "$ac_try") 2>&5
3737  ac_status=$?
3738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739  test $ac_status = 0; }; }; then
3740    cross_compiling=no
3741  else
3742    if test "$cross_compiling" = maybe; then
3743	cross_compiling=yes
3744    else
3745	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747as_fn_error "cannot run C compiled programs.
3748If you meant to cross compile, use \`--host'.
3749See \`config.log' for more details." "$LINENO" 5; }
3750    fi
3751  fi
3752fi
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3754$as_echo "$cross_compiling" >&6; }
3755
3756rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3757ac_clean_files=$ac_clean_files_save
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3759$as_echo_n "checking for suffix of object files... " >&6; }
3760if test "${ac_cv_objext+set}" = set; then :
3761  $as_echo_n "(cached) " >&6
3762else
3763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h.  */
3765
3766int
3767main ()
3768{
3769
3770  ;
3771  return 0;
3772}
3773_ACEOF
3774rm -f conftest.o conftest.obj
3775if { { ac_try="$ac_compile"
3776case "(($ac_try" in
3777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778  *) ac_try_echo=$ac_try;;
3779esac
3780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781$as_echo "$ac_try_echo"; } >&5
3782  (eval "$ac_compile") 2>&5
3783  ac_status=$?
3784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3785  test $ac_status = 0; }; then :
3786  for ac_file in conftest.o conftest.obj conftest.*; do
3787  test -f "$ac_file" || continue;
3788  case $ac_file in
3789    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3790    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3791       break;;
3792  esac
3793done
3794else
3795  $as_echo "$as_me: failed program was:" >&5
3796sed 's/^/| /' conftest.$ac_ext >&5
3797
3798{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800as_fn_error "cannot compute suffix of object files: cannot compile
3801See \`config.log' for more details." "$LINENO" 5; }
3802fi
3803rm -f conftest.$ac_cv_objext conftest.$ac_ext
3804fi
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3806$as_echo "$ac_cv_objext" >&6; }
3807OBJEXT=$ac_cv_objext
3808ac_objext=$OBJEXT
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3810$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3811if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3812  $as_echo_n "(cached) " >&6
3813else
3814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815/* end confdefs.h.  */
3816
3817int
3818main ()
3819{
3820#ifndef __GNUC__
3821       choke me
3822#endif
3823
3824  ;
3825  return 0;
3826}
3827_ACEOF
3828if ac_fn_c_try_compile "$LINENO"; then :
3829  ac_compiler_gnu=yes
3830else
3831  ac_compiler_gnu=no
3832fi
3833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834ac_cv_c_compiler_gnu=$ac_compiler_gnu
3835
3836fi
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3838$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3839if test $ac_compiler_gnu = yes; then
3840  GCC=yes
3841else
3842  GCC=
3843fi
3844ac_test_CFLAGS=${CFLAGS+set}
3845ac_save_CFLAGS=$CFLAGS
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3847$as_echo_n "checking whether $CC accepts -g... " >&6; }
3848if test "${ac_cv_prog_cc_g+set}" = set; then :
3849  $as_echo_n "(cached) " >&6
3850else
3851  ac_save_c_werror_flag=$ac_c_werror_flag
3852   ac_c_werror_flag=yes
3853   ac_cv_prog_cc_g=no
3854   CFLAGS="-g"
3855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856/* end confdefs.h.  */
3857
3858int
3859main ()
3860{
3861
3862  ;
3863  return 0;
3864}
3865_ACEOF
3866if ac_fn_c_try_compile "$LINENO"; then :
3867  ac_cv_prog_cc_g=yes
3868else
3869  CFLAGS=""
3870      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871/* end confdefs.h.  */
3872
3873int
3874main ()
3875{
3876
3877  ;
3878  return 0;
3879}
3880_ACEOF
3881if ac_fn_c_try_compile "$LINENO"; then :
3882
3883else
3884  ac_c_werror_flag=$ac_save_c_werror_flag
3885	 CFLAGS="-g"
3886	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887/* end confdefs.h.  */
3888
3889int
3890main ()
3891{
3892
3893  ;
3894  return 0;
3895}
3896_ACEOF
3897if ac_fn_c_try_compile "$LINENO"; then :
3898  ac_cv_prog_cc_g=yes
3899fi
3900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901fi
3902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903fi
3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905   ac_c_werror_flag=$ac_save_c_werror_flag
3906fi
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3908$as_echo "$ac_cv_prog_cc_g" >&6; }
3909if test "$ac_test_CFLAGS" = set; then
3910  CFLAGS=$ac_save_CFLAGS
3911elif test $ac_cv_prog_cc_g = yes; then
3912  if test "$GCC" = yes; then
3913    CFLAGS="-g -O2"
3914  else
3915    CFLAGS="-g"
3916  fi
3917else
3918  if test "$GCC" = yes; then
3919    CFLAGS="-O2"
3920  else
3921    CFLAGS=
3922  fi
3923fi
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3925$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3926if test "${ac_cv_prog_cc_c89+set}" = set; then :
3927  $as_echo_n "(cached) " >&6
3928else
3929  ac_cv_prog_cc_c89=no
3930ac_save_CC=$CC
3931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932/* end confdefs.h.  */
3933#include <stdarg.h>
3934#include <stdio.h>
3935#include <sys/types.h>
3936#include <sys/stat.h>
3937/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3938struct buf { int x; };
3939FILE * (*rcsopen) (struct buf *, struct stat *, int);
3940static char *e (p, i)
3941     char **p;
3942     int i;
3943{
3944  return p[i];
3945}
3946static char *f (char * (*g) (char **, int), char **p, ...)
3947{
3948  char *s;
3949  va_list v;
3950  va_start (v,p);
3951  s = g (p, va_arg (v,int));
3952  va_end (v);
3953  return s;
3954}
3955
3956/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3957   function prototypes and stuff, but not '\xHH' hex character constants.
3958   These don't provoke an error unfortunately, instead are silently treated
3959   as 'x'.  The following induces an error, until -std is added to get
3960   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3961   array size at least.  It's necessary to write '\x00'==0 to get something
3962   that's true only with -std.  */
3963int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3964
3965/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3966   inside strings and character constants.  */
3967#define FOO(x) 'x'
3968int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3969
3970int test (int i, double x);
3971struct s1 {int (*f) (int a);};
3972struct s2 {int (*f) (double a);};
3973int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3974int argc;
3975char **argv;
3976int
3977main ()
3978{
3979return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3980  ;
3981  return 0;
3982}
3983_ACEOF
3984for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3985	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3986do
3987  CC="$ac_save_CC $ac_arg"
3988  if ac_fn_c_try_compile "$LINENO"; then :
3989  ac_cv_prog_cc_c89=$ac_arg
3990fi
3991rm -f core conftest.err conftest.$ac_objext
3992  test "x$ac_cv_prog_cc_c89" != "xno" && break
3993done
3994rm -f conftest.$ac_ext
3995CC=$ac_save_CC
3996
3997fi
3998# AC_CACHE_VAL
3999case "x$ac_cv_prog_cc_c89" in
4000  x)
4001    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4002$as_echo "none needed" >&6; } ;;
4003  xno)
4004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4005$as_echo "unsupported" >&6; } ;;
4006  *)
4007    CC="$CC $ac_cv_prog_cc_c89"
4008    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4009$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4010esac
4011if test "x$ac_cv_prog_cc_c89" != xno; then :
4012
4013fi
4014
4015ac_ext=c
4016ac_cpp='$CPP $CPPFLAGS'
4017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4019ac_compiler_gnu=$ac_cv_c_compiler_gnu
4020DEPDIR="${am__leading_dot}deps"
4021
4022ac_config_commands="$ac_config_commands depfiles"
4023
4024
4025am_make=${MAKE-make}
4026cat > confinc << 'END'
4027am__doit:
4028	@echo this is the am__doit target
4029.PHONY: am__doit
4030END
4031# If we don't find an include directive, just comment out the code.
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4033$as_echo_n "checking for style of include used by $am_make... " >&6; }
4034am__include="#"
4035am__quote=
4036_am_result=none
4037# First try GNU make style include.
4038echo "include confinc" > confmf
4039# Ignore all kinds of additional output from `make'.
4040case `$am_make -s -f confmf 2> /dev/null` in #(
4041*the\ am__doit\ target*)
4042  am__include=include
4043  am__quote=
4044  _am_result=GNU
4045  ;;
4046esac
4047# Now try BSD make style include.
4048if test "$am__include" = "#"; then
4049   echo '.include "confinc"' > confmf
4050   case `$am_make -s -f confmf 2> /dev/null` in #(
4051   *the\ am__doit\ target*)
4052     am__include=.include
4053     am__quote="\""
4054     _am_result=BSD
4055     ;;
4056   esac
4057fi
4058
4059
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4061$as_echo "$_am_result" >&6; }
4062rm -f confinc confmf
4063
4064# Check whether --enable-dependency-tracking was given.
4065if test "${enable_dependency_tracking+set}" = set; then :
4066  enableval=$enable_dependency_tracking;
4067fi
4068
4069if test "x$enable_dependency_tracking" != xno; then
4070  am_depcomp="$ac_aux_dir/depcomp"
4071  AMDEPBACKSLASH='\'
4072fi
4073 if test "x$enable_dependency_tracking" != xno; then
4074  AMDEP_TRUE=
4075  AMDEP_FALSE='#'
4076else
4077  AMDEP_TRUE='#'
4078  AMDEP_FALSE=
4079fi
4080
4081
4082
4083depcc="$CC"   am_compiler_list=
4084
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4086$as_echo_n "checking dependency style of $depcc... " >&6; }
4087if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4088  $as_echo_n "(cached) " >&6
4089else
4090  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4091  # We make a subdir and do the tests there.  Otherwise we can end up
4092  # making bogus files that we don't know about and never remove.  For
4093  # instance it was reported that on HP-UX the gcc test will end up
4094  # making a dummy file named `D' -- because `-MD' means `put the output
4095  # in D'.
4096  mkdir conftest.dir
4097  # Copy depcomp to subdir because otherwise we won't find it if we're
4098  # using a relative directory.
4099  cp "$am_depcomp" conftest.dir
4100  cd conftest.dir
4101  # We will build objects and dependencies in a subdirectory because
4102  # it helps to detect inapplicable dependency modes.  For instance
4103  # both Tru64's cc and ICC support -MD to output dependencies as a
4104  # side effect of compilation, but ICC will put the dependencies in
4105  # the current directory while Tru64 will put them in the object
4106  # directory.
4107  mkdir sub
4108
4109  am_cv_CC_dependencies_compiler_type=none
4110  if test "$am_compiler_list" = ""; then
4111     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4112  fi
4113  am__universal=false
4114  case " $depcc " in #(
4115     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4116     esac
4117
4118  for depmode in $am_compiler_list; do
4119    # Setup a source with many dependencies, because some compilers
4120    # like to wrap large dependency lists on column 80 (with \), and
4121    # we should not choose a depcomp mode which is confused by this.
4122    #
4123    # We need to recreate these files for each test, as the compiler may
4124    # overwrite some of them when testing with obscure command lines.
4125    # This happens at least with the AIX C compiler.
4126    : > sub/conftest.c
4127    for i in 1 2 3 4 5 6; do
4128      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4129      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4130      # Solaris 8's {/usr,}/bin/sh.
4131      touch sub/conftst$i.h
4132    done
4133    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4134
4135    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4136    # mode.  It turns out that the SunPro C++ compiler does not properly
4137    # handle `-M -o', and we need to detect this.  Also, some Intel
4138    # versions had trouble with output in subdirs
4139    am__obj=sub/conftest.${OBJEXT-o}
4140    am__minus_obj="-o $am__obj"
4141    case $depmode in
4142    gcc)
4143      # This depmode causes a compiler race in universal mode.
4144      test "$am__universal" = false || continue
4145      ;;
4146    nosideeffect)
4147      # after this tag, mechanisms are not by side-effect, so they'll
4148      # only be used when explicitly requested
4149      if test "x$enable_dependency_tracking" = xyes; then
4150	continue
4151      else
4152	break
4153      fi
4154      ;;
4155    msvisualcpp | msvcmsys)
4156      # This compiler won't grok `-c -o', but also, the minuso test has
4157      # not run yet.  These depmodes are late enough in the game, and
4158      # so weak that their functioning should not be impacted.
4159      am__obj=conftest.${OBJEXT-o}
4160      am__minus_obj=
4161      ;;
4162    none) break ;;
4163    esac
4164    if depmode=$depmode \
4165       source=sub/conftest.c object=$am__obj \
4166       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4167       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4168         >/dev/null 2>conftest.err &&
4169       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4170       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4171       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4172       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4173      # icc doesn't choke on unknown options, it will just issue warnings
4174      # or remarks (even with -Werror).  So we grep stderr for any message
4175      # that says an option was ignored or not supported.
4176      # When given -MP, icc 7.0 and 7.1 complain thusly:
4177      #   icc: Command line warning: ignoring option '-M'; no argument required
4178      # The diagnosis changed in icc 8.0:
4179      #   icc: Command line remark: option '-MP' not supported
4180      if (grep 'ignoring option' conftest.err ||
4181          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4182        am_cv_CC_dependencies_compiler_type=$depmode
4183        break
4184      fi
4185    fi
4186  done
4187
4188  cd ..
4189  rm -rf conftest.dir
4190else
4191  am_cv_CC_dependencies_compiler_type=none
4192fi
4193
4194fi
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4196$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4197CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4198
4199 if
4200  test "x$enable_dependency_tracking" != xno \
4201  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4202  am__fastdepCC_TRUE=
4203  am__fastdepCC_FALSE='#'
4204else
4205  am__fastdepCC_TRUE='#'
4206  am__fastdepCC_FALSE=
4207fi
4208
4209
4210ac_ext=c
4211ac_cpp='$CPP $CPPFLAGS'
4212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4216$as_echo_n "checking how to run the C preprocessor... " >&6; }
4217# On Suns, sometimes $CPP names a directory.
4218if test -n "$CPP" && test -d "$CPP"; then
4219  CPP=
4220fi
4221if test -z "$CPP"; then
4222  if test "${ac_cv_prog_CPP+set}" = set; then :
4223  $as_echo_n "(cached) " >&6
4224else
4225      # Double quotes because CPP needs to be expanded
4226    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4227    do
4228      ac_preproc_ok=false
4229for ac_c_preproc_warn_flag in '' yes
4230do
4231  # Use a header file that comes with gcc, so configuring glibc
4232  # with a fresh cross-compiler works.
4233  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4234  # <limits.h> exists even on freestanding compilers.
4235  # On the NeXT, cc -E runs the code through the compiler's parser,
4236  # not just through cpp. "Syntax error" is here to catch this case.
4237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238/* end confdefs.h.  */
4239#ifdef __STDC__
4240# include <limits.h>
4241#else
4242# include <assert.h>
4243#endif
4244		     Syntax error
4245_ACEOF
4246if ac_fn_c_try_cpp "$LINENO"; then :
4247
4248else
4249  # Broken: fails on valid input.
4250continue
4251fi
4252rm -f conftest.err conftest.$ac_ext
4253
4254  # OK, works on sane cases.  Now check whether nonexistent headers
4255  # can be detected and how.
4256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257/* end confdefs.h.  */
4258#include <ac_nonexistent.h>
4259_ACEOF
4260if ac_fn_c_try_cpp "$LINENO"; then :
4261  # Broken: success on invalid input.
4262continue
4263else
4264  # Passes both tests.
4265ac_preproc_ok=:
4266break
4267fi
4268rm -f conftest.err conftest.$ac_ext
4269
4270done
4271# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4272rm -f conftest.err conftest.$ac_ext
4273if $ac_preproc_ok; then :
4274  break
4275fi
4276
4277    done
4278    ac_cv_prog_CPP=$CPP
4279
4280fi
4281  CPP=$ac_cv_prog_CPP
4282else
4283  ac_cv_prog_CPP=$CPP
4284fi
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4286$as_echo "$CPP" >&6; }
4287ac_preproc_ok=false
4288for ac_c_preproc_warn_flag in '' yes
4289do
4290  # Use a header file that comes with gcc, so configuring glibc
4291  # with a fresh cross-compiler works.
4292  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4293  # <limits.h> exists even on freestanding compilers.
4294  # On the NeXT, cc -E runs the code through the compiler's parser,
4295  # not just through cpp. "Syntax error" is here to catch this case.
4296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297/* end confdefs.h.  */
4298#ifdef __STDC__
4299# include <limits.h>
4300#else
4301# include <assert.h>
4302#endif
4303		     Syntax error
4304_ACEOF
4305if ac_fn_c_try_cpp "$LINENO"; then :
4306
4307else
4308  # Broken: fails on valid input.
4309continue
4310fi
4311rm -f conftest.err conftest.$ac_ext
4312
4313  # OK, works on sane cases.  Now check whether nonexistent headers
4314  # can be detected and how.
4315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316/* end confdefs.h.  */
4317#include <ac_nonexistent.h>
4318_ACEOF
4319if ac_fn_c_try_cpp "$LINENO"; then :
4320  # Broken: success on invalid input.
4321continue
4322else
4323  # Passes both tests.
4324ac_preproc_ok=:
4325break
4326fi
4327rm -f conftest.err conftest.$ac_ext
4328
4329done
4330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4331rm -f conftest.err conftest.$ac_ext
4332if $ac_preproc_ok; then :
4333
4334else
4335  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4337as_fn_error "C preprocessor \"$CPP\" fails sanity check
4338See \`config.log' for more details." "$LINENO" 5; }
4339fi
4340
4341ac_ext=c
4342ac_cpp='$CPP $CPPFLAGS'
4343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346
4347
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4349$as_echo_n "checking whether ln -s works... " >&6; }
4350LN_S=$as_ln_s
4351if test "$LN_S" = "ln -s"; then
4352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4353$as_echo "yes" >&6; }
4354else
4355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4356$as_echo "no, using $LN_S" >&6; }
4357fi
4358
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4360$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4361set x ${MAKE-make}
4362ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4363if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4364  $as_echo_n "(cached) " >&6
4365else
4366  cat >conftest.make <<\_ACEOF
4367SHELL = /bin/sh
4368all:
4369	@echo '@@@%%%=$(MAKE)=@@@%%%'
4370_ACEOF
4371# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4372case `${MAKE-make} -f conftest.make 2>/dev/null` in
4373  *@@@%%%=?*=@@@%%%*)
4374    eval ac_cv_prog_make_${ac_make}_set=yes;;
4375  *)
4376    eval ac_cv_prog_make_${ac_make}_set=no;;
4377esac
4378rm -f conftest.make
4379fi
4380if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4382$as_echo "yes" >&6; }
4383  SET_MAKE=
4384else
4385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386$as_echo "no" >&6; }
4387  SET_MAKE="MAKE=${MAKE-make}"
4388fi
4389
4390case `pwd` in
4391  *\ * | *\	*)
4392    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4393$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4394esac
4395
4396
4397
4398macro_version='2.2.6b'
4399macro_revision='1.3017'
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413ltmain="$ac_aux_dir/ltmain.sh"
4414
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4416$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4417if test "${ac_cv_path_SED+set}" = set; then :
4418  $as_echo_n "(cached) " >&6
4419else
4420            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4421     for ac_i in 1 2 3 4 5 6 7; do
4422       ac_script="$ac_script$as_nl$ac_script"
4423     done
4424     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4425     { ac_script=; unset ac_script;}
4426     if test -z "$SED"; then
4427  ac_path_SED_found=false
4428  # Loop through the user's path and test for each of PROGNAME-LIST
4429  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430for as_dir in $PATH
4431do
4432  IFS=$as_save_IFS
4433  test -z "$as_dir" && as_dir=.
4434    for ac_prog in sed gsed; do
4435    for ac_exec_ext in '' $ac_executable_extensions; do
4436      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4437      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4438# Check for GNU ac_path_SED and select it if it is found.
4439  # Check for GNU $ac_path_SED
4440case `"$ac_path_SED" --version 2>&1` in
4441*GNU*)
4442  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4443*)
4444  ac_count=0
4445  $as_echo_n 0123456789 >"conftest.in"
4446  while :
4447  do
4448    cat "conftest.in" "conftest.in" >"conftest.tmp"
4449    mv "conftest.tmp" "conftest.in"
4450    cp "conftest.in" "conftest.nl"
4451    $as_echo '' >> "conftest.nl"
4452    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4453    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4454    as_fn_arith $ac_count + 1 && ac_count=$as_val
4455    if test $ac_count -gt ${ac_path_SED_max-0}; then
4456      # Best one so far, save it but keep looking for a better one
4457      ac_cv_path_SED="$ac_path_SED"
4458      ac_path_SED_max=$ac_count
4459    fi
4460    # 10*(2^10) chars as input seems more than enough
4461    test $ac_count -gt 10 && break
4462  done
4463  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4464esac
4465
4466      $ac_path_SED_found && break 3
4467    done
4468  done
4469  done
4470IFS=$as_save_IFS
4471  if test -z "$ac_cv_path_SED"; then
4472    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4473  fi
4474else
4475  ac_cv_path_SED=$SED
4476fi
4477
4478fi
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4480$as_echo "$ac_cv_path_SED" >&6; }
4481 SED="$ac_cv_path_SED"
4482  rm -f conftest.sed
4483
4484test -z "$SED" && SED=sed
4485Xsed="$SED -e 1s/^X//"
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4498$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4499if test "${ac_cv_path_GREP+set}" = set; then :
4500  $as_echo_n "(cached) " >&6
4501else
4502  if test -z "$GREP"; then
4503  ac_path_GREP_found=false
4504  # Loop through the user's path and test for each of PROGNAME-LIST
4505  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4507do
4508  IFS=$as_save_IFS
4509  test -z "$as_dir" && as_dir=.
4510    for ac_prog in grep ggrep; do
4511    for ac_exec_ext in '' $ac_executable_extensions; do
4512      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4513      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4514# Check for GNU ac_path_GREP and select it if it is found.
4515  # Check for GNU $ac_path_GREP
4516case `"$ac_path_GREP" --version 2>&1` in
4517*GNU*)
4518  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4519*)
4520  ac_count=0
4521  $as_echo_n 0123456789 >"conftest.in"
4522  while :
4523  do
4524    cat "conftest.in" "conftest.in" >"conftest.tmp"
4525    mv "conftest.tmp" "conftest.in"
4526    cp "conftest.in" "conftest.nl"
4527    $as_echo 'GREP' >> "conftest.nl"
4528    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4529    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4530    as_fn_arith $ac_count + 1 && ac_count=$as_val
4531    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4532      # Best one so far, save it but keep looking for a better one
4533      ac_cv_path_GREP="$ac_path_GREP"
4534      ac_path_GREP_max=$ac_count
4535    fi
4536    # 10*(2^10) chars as input seems more than enough
4537    test $ac_count -gt 10 && break
4538  done
4539  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4540esac
4541
4542      $ac_path_GREP_found && break 3
4543    done
4544  done
4545  done
4546IFS=$as_save_IFS
4547  if test -z "$ac_cv_path_GREP"; then
4548    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4549  fi
4550else
4551  ac_cv_path_GREP=$GREP
4552fi
4553
4554fi
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4556$as_echo "$ac_cv_path_GREP" >&6; }
4557 GREP="$ac_cv_path_GREP"
4558
4559
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4561$as_echo_n "checking for egrep... " >&6; }
4562if test "${ac_cv_path_EGREP+set}" = set; then :
4563  $as_echo_n "(cached) " >&6
4564else
4565  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4566   then ac_cv_path_EGREP="$GREP -E"
4567   else
4568     if test -z "$EGREP"; then
4569  ac_path_EGREP_found=false
4570  # Loop through the user's path and test for each of PROGNAME-LIST
4571  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4573do
4574  IFS=$as_save_IFS
4575  test -z "$as_dir" && as_dir=.
4576    for ac_prog in egrep; do
4577    for ac_exec_ext in '' $ac_executable_extensions; do
4578      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4579      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4580# Check for GNU ac_path_EGREP and select it if it is found.
4581  # Check for GNU $ac_path_EGREP
4582case `"$ac_path_EGREP" --version 2>&1` in
4583*GNU*)
4584  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4585*)
4586  ac_count=0
4587  $as_echo_n 0123456789 >"conftest.in"
4588  while :
4589  do
4590    cat "conftest.in" "conftest.in" >"conftest.tmp"
4591    mv "conftest.tmp" "conftest.in"
4592    cp "conftest.in" "conftest.nl"
4593    $as_echo 'EGREP' >> "conftest.nl"
4594    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4595    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4596    as_fn_arith $ac_count + 1 && ac_count=$as_val
4597    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4598      # Best one so far, save it but keep looking for a better one
4599      ac_cv_path_EGREP="$ac_path_EGREP"
4600      ac_path_EGREP_max=$ac_count
4601    fi
4602    # 10*(2^10) chars as input seems more than enough
4603    test $ac_count -gt 10 && break
4604  done
4605  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606esac
4607
4608      $ac_path_EGREP_found && break 3
4609    done
4610  done
4611  done
4612IFS=$as_save_IFS
4613  if test -z "$ac_cv_path_EGREP"; then
4614    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4615  fi
4616else
4617  ac_cv_path_EGREP=$EGREP
4618fi
4619
4620   fi
4621fi
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4623$as_echo "$ac_cv_path_EGREP" >&6; }
4624 EGREP="$ac_cv_path_EGREP"
4625
4626
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4628$as_echo_n "checking for fgrep... " >&6; }
4629if test "${ac_cv_path_FGREP+set}" = set; then :
4630  $as_echo_n "(cached) " >&6
4631else
4632  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4633   then ac_cv_path_FGREP="$GREP -F"
4634   else
4635     if test -z "$FGREP"; then
4636  ac_path_FGREP_found=false
4637  # Loop through the user's path and test for each of PROGNAME-LIST
4638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4640do
4641  IFS=$as_save_IFS
4642  test -z "$as_dir" && as_dir=.
4643    for ac_prog in fgrep; do
4644    for ac_exec_ext in '' $ac_executable_extensions; do
4645      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4646      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4647# Check for GNU ac_path_FGREP and select it if it is found.
4648  # Check for GNU $ac_path_FGREP
4649case `"$ac_path_FGREP" --version 2>&1` in
4650*GNU*)
4651  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4652*)
4653  ac_count=0
4654  $as_echo_n 0123456789 >"conftest.in"
4655  while :
4656  do
4657    cat "conftest.in" "conftest.in" >"conftest.tmp"
4658    mv "conftest.tmp" "conftest.in"
4659    cp "conftest.in" "conftest.nl"
4660    $as_echo 'FGREP' >> "conftest.nl"
4661    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4662    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4663    as_fn_arith $ac_count + 1 && ac_count=$as_val
4664    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4665      # Best one so far, save it but keep looking for a better one
4666      ac_cv_path_FGREP="$ac_path_FGREP"
4667      ac_path_FGREP_max=$ac_count
4668    fi
4669    # 10*(2^10) chars as input seems more than enough
4670    test $ac_count -gt 10 && break
4671  done
4672  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4673esac
4674
4675      $ac_path_FGREP_found && break 3
4676    done
4677  done
4678  done
4679IFS=$as_save_IFS
4680  if test -z "$ac_cv_path_FGREP"; then
4681    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4682  fi
4683else
4684  ac_cv_path_FGREP=$FGREP
4685fi
4686
4687   fi
4688fi
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4690$as_echo "$ac_cv_path_FGREP" >&6; }
4691 FGREP="$ac_cv_path_FGREP"
4692
4693
4694test -z "$GREP" && GREP=grep
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714# Check whether --with-gnu-ld was given.
4715if test "${with_gnu_ld+set}" = set; then :
4716  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4717else
4718  with_gnu_ld=no
4719fi
4720
4721ac_prog=ld
4722if test "$GCC" = yes; then
4723  # Check if gcc -print-prog-name=ld gives a path.
4724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4725$as_echo_n "checking for ld used by $CC... " >&6; }
4726  case $host in
4727  *-*-mingw*)
4728    # gcc leaves a trailing carriage return which upsets mingw
4729    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4730  *)
4731    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4732  esac
4733  case $ac_prog in
4734    # Accept absolute paths.
4735    [\\/]* | ?:[\\/]*)
4736      re_direlt='/[^/][^/]*/\.\./'
4737      # Canonicalize the pathname of ld
4738      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4739      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4740	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4741      done
4742      test -z "$LD" && LD="$ac_prog"
4743      ;;
4744  "")
4745    # If it fails, then pretend we aren't using GCC.
4746    ac_prog=ld
4747    ;;
4748  *)
4749    # If it is relative, then search for the first ld in PATH.
4750    with_gnu_ld=unknown
4751    ;;
4752  esac
4753elif test "$with_gnu_ld" = yes; then
4754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4755$as_echo_n "checking for GNU ld... " >&6; }
4756else
4757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4758$as_echo_n "checking for non-GNU ld... " >&6; }
4759fi
4760if test "${lt_cv_path_LD+set}" = set; then :
4761  $as_echo_n "(cached) " >&6
4762else
4763  if test -z "$LD"; then
4764  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4765  for ac_dir in $PATH; do
4766    IFS="$lt_save_ifs"
4767    test -z "$ac_dir" && ac_dir=.
4768    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4769      lt_cv_path_LD="$ac_dir/$ac_prog"
4770      # Check to see if the program is GNU ld.  I'd rather use --version,
4771      # but apparently some variants of GNU ld only accept -v.
4772      # Break only if it was the GNU/non-GNU ld that we prefer.
4773      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4774      *GNU* | *'with BFD'*)
4775	test "$with_gnu_ld" != no && break
4776	;;
4777      *)
4778	test "$with_gnu_ld" != yes && break
4779	;;
4780      esac
4781    fi
4782  done
4783  IFS="$lt_save_ifs"
4784else
4785  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4786fi
4787fi
4788
4789LD="$lt_cv_path_LD"
4790if test -n "$LD"; then
4791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4792$as_echo "$LD" >&6; }
4793else
4794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795$as_echo "no" >&6; }
4796fi
4797test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4799$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4800if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4801  $as_echo_n "(cached) " >&6
4802else
4803  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4804case `$LD -v 2>&1 </dev/null` in
4805*GNU* | *'with BFD'*)
4806  lt_cv_prog_gnu_ld=yes
4807  ;;
4808*)
4809  lt_cv_prog_gnu_ld=no
4810  ;;
4811esac
4812fi
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4814$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4815with_gnu_ld=$lt_cv_prog_gnu_ld
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4826$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4827if test "${lt_cv_path_NM+set}" = set; then :
4828  $as_echo_n "(cached) " >&6
4829else
4830  if test -n "$NM"; then
4831  # Let the user override the test.
4832  lt_cv_path_NM="$NM"
4833else
4834  lt_nm_to_check="${ac_tool_prefix}nm"
4835  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4836    lt_nm_to_check="$lt_nm_to_check nm"
4837  fi
4838  for lt_tmp_nm in $lt_nm_to_check; do
4839    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4840    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4841      IFS="$lt_save_ifs"
4842      test -z "$ac_dir" && ac_dir=.
4843      tmp_nm="$ac_dir/$lt_tmp_nm"
4844      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4845	# Check to see if the nm accepts a BSD-compat flag.
4846	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4847	#   nm: unknown option "B" ignored
4848	# Tru64's nm complains that /dev/null is an invalid object file
4849	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4850	*/dev/null* | *'Invalid file or object type'*)
4851	  lt_cv_path_NM="$tmp_nm -B"
4852	  break
4853	  ;;
4854	*)
4855	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4856	  */dev/null*)
4857	    lt_cv_path_NM="$tmp_nm -p"
4858	    break
4859	    ;;
4860	  *)
4861	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4862	    continue # so that we can try to find one that supports BSD flags
4863	    ;;
4864	  esac
4865	  ;;
4866	esac
4867      fi
4868    done
4869    IFS="$lt_save_ifs"
4870  done
4871  : ${lt_cv_path_NM=no}
4872fi
4873fi
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4875$as_echo "$lt_cv_path_NM" >&6; }
4876if test "$lt_cv_path_NM" != "no"; then
4877  NM="$lt_cv_path_NM"
4878else
4879  # Didn't find any BSD compatible name lister, look for dumpbin.
4880  if test -n "$ac_tool_prefix"; then
4881  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4882  do
4883    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4884set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886$as_echo_n "checking for $ac_word... " >&6; }
4887if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4888  $as_echo_n "(cached) " >&6
4889else
4890  if test -n "$DUMPBIN"; then
4891  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4892else
4893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894for as_dir in $PATH
4895do
4896  IFS=$as_save_IFS
4897  test -z "$as_dir" && as_dir=.
4898    for ac_exec_ext in '' $ac_executable_extensions; do
4899  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902    break 2
4903  fi
4904done
4905  done
4906IFS=$as_save_IFS
4907
4908fi
4909fi
4910DUMPBIN=$ac_cv_prog_DUMPBIN
4911if test -n "$DUMPBIN"; then
4912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4913$as_echo "$DUMPBIN" >&6; }
4914else
4915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916$as_echo "no" >&6; }
4917fi
4918
4919
4920    test -n "$DUMPBIN" && break
4921  done
4922fi
4923if test -z "$DUMPBIN"; then
4924  ac_ct_DUMPBIN=$DUMPBIN
4925  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4926do
4927  # Extract the first word of "$ac_prog", so it can be a program name with args.
4928set dummy $ac_prog; ac_word=$2
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930$as_echo_n "checking for $ac_word... " >&6; }
4931if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4932  $as_echo_n "(cached) " >&6
4933else
4934  if test -n "$ac_ct_DUMPBIN"; then
4935  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4936else
4937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940  IFS=$as_save_IFS
4941  test -z "$as_dir" && as_dir=.
4942    for ac_exec_ext in '' $ac_executable_extensions; do
4943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946    break 2
4947  fi
4948done
4949  done
4950IFS=$as_save_IFS
4951
4952fi
4953fi
4954ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4955if test -n "$ac_ct_DUMPBIN"; then
4956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4957$as_echo "$ac_ct_DUMPBIN" >&6; }
4958else
4959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960$as_echo "no" >&6; }
4961fi
4962
4963
4964  test -n "$ac_ct_DUMPBIN" && break
4965done
4966
4967  if test "x$ac_ct_DUMPBIN" = x; then
4968    DUMPBIN=":"
4969  else
4970    case $cross_compiling:$ac_tool_warned in
4971yes:)
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4974ac_tool_warned=yes ;;
4975esac
4976    DUMPBIN=$ac_ct_DUMPBIN
4977  fi
4978fi
4979
4980
4981  if test "$DUMPBIN" != ":"; then
4982    NM="$DUMPBIN"
4983  fi
4984fi
4985test -z "$NM" && NM=nm
4986
4987
4988
4989
4990
4991
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4993$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4994if test "${lt_cv_nm_interface+set}" = set; then :
4995  $as_echo_n "(cached) " >&6
4996else
4997  lt_cv_nm_interface="BSD nm"
4998  echo "int some_variable = 0;" > conftest.$ac_ext
4999  (eval echo "\"\$as_me:4999: $ac_compile\"" >&5)
5000  (eval "$ac_compile" 2>conftest.err)
5001  cat conftest.err >&5
5002  (eval echo "\"\$as_me:5002: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5003  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5004  cat conftest.err >&5
5005  (eval echo "\"\$as_me:5005: output\"" >&5)
5006  cat conftest.out >&5
5007  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5008    lt_cv_nm_interface="MS dumpbin"
5009  fi
5010  rm -f conftest*
5011fi
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5013$as_echo "$lt_cv_nm_interface" >&6; }
5014
5015# find the maximum length of command line arguments
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5017$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5018if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5019  $as_echo_n "(cached) " >&6
5020else
5021    i=0
5022  teststring="ABCD"
5023
5024  case $build_os in
5025  msdosdjgpp*)
5026    # On DJGPP, this test can blow up pretty badly due to problems in libc
5027    # (any single argument exceeding 2000 bytes causes a buffer overrun
5028    # during glob expansion).  Even if it were fixed, the result of this
5029    # check would be larger than it should be.
5030    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5031    ;;
5032
5033  gnu*)
5034    # Under GNU Hurd, this test is not required because there is
5035    # no limit to the length of command line arguments.
5036    # Libtool will interpret -1 as no limit whatsoever
5037    lt_cv_sys_max_cmd_len=-1;
5038    ;;
5039
5040  cygwin* | mingw* | cegcc*)
5041    # On Win9x/ME, this test blows up -- it succeeds, but takes
5042    # about 5 minutes as the teststring grows exponentially.
5043    # Worse, since 9x/ME are not pre-emptively multitasking,
5044    # you end up with a "frozen" computer, even though with patience
5045    # the test eventually succeeds (with a max line length of 256k).
5046    # Instead, let's just punt: use the minimum linelength reported by
5047    # all of the supported platforms: 8192 (on NT/2K/XP).
5048    lt_cv_sys_max_cmd_len=8192;
5049    ;;
5050
5051  amigaos*)
5052    # On AmigaOS with pdksh, this test takes hours, literally.
5053    # So we just punt and use a minimum line length of 8192.
5054    lt_cv_sys_max_cmd_len=8192;
5055    ;;
5056
5057  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5058    # This has been around since 386BSD, at least.  Likely further.
5059    if test -x /sbin/sysctl; then
5060      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5061    elif test -x /usr/sbin/sysctl; then
5062      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5063    else
5064      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5065    fi
5066    # And add a safety zone
5067    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5068    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5069    ;;
5070
5071  interix*)
5072    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5073    lt_cv_sys_max_cmd_len=196608
5074    ;;
5075
5076  osf*)
5077    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5078    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5079    # nice to cause kernel panics so lets avoid the loop below.
5080    # First set a reasonable default.
5081    lt_cv_sys_max_cmd_len=16384
5082    #
5083    if test -x /sbin/sysconfig; then
5084      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5085        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5086      esac
5087    fi
5088    ;;
5089  sco3.2v5*)
5090    lt_cv_sys_max_cmd_len=102400
5091    ;;
5092  sysv5* | sco5v6* | sysv4.2uw2*)
5093    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5094    if test -n "$kargmax"; then
5095      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5096    else
5097      lt_cv_sys_max_cmd_len=32768
5098    fi
5099    ;;
5100  *)
5101    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5102    if test -n "$lt_cv_sys_max_cmd_len"; then
5103      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5104      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5105    else
5106      # Make teststring a little bigger before we do anything with it.
5107      # a 1K string should be a reasonable start.
5108      for i in 1 2 3 4 5 6 7 8 ; do
5109        teststring=$teststring$teststring
5110      done
5111      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5112      # If test is not a shell built-in, we'll probably end up computing a
5113      # maximum length that is only half of the actual maximum length, but
5114      # we can't tell.
5115      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5116	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5117	      test $i != 17 # 1/2 MB should be enough
5118      do
5119        i=`expr $i + 1`
5120        teststring=$teststring$teststring
5121      done
5122      # Only check the string length outside the loop.
5123      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5124      teststring=
5125      # Add a significant safety factor because C++ compilers can tack on
5126      # massive amounts of additional arguments before passing them to the
5127      # linker.  It appears as though 1/2 is a usable value.
5128      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5129    fi
5130    ;;
5131  esac
5132
5133fi
5134
5135if test -n $lt_cv_sys_max_cmd_len ; then
5136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5137$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5138else
5139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5140$as_echo "none" >&6; }
5141fi
5142max_cmd_len=$lt_cv_sys_max_cmd_len
5143
5144
5145
5146
5147
5148
5149: ${CP="cp -f"}
5150: ${MV="mv -f"}
5151: ${RM="rm -f"}
5152
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5154$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5155# Try some XSI features
5156xsi_shell=no
5157( _lt_dummy="a/b/c"
5158  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5159      = c,a/b,, \
5160    && eval 'test $(( 1 + 1 )) -eq 2 \
5161    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5162  && xsi_shell=yes
5163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5164$as_echo "$xsi_shell" >&6; }
5165
5166
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5168$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5169lt_shell_append=no
5170( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5171    >/dev/null 2>&1 \
5172  && lt_shell_append=yes
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5174$as_echo "$lt_shell_append" >&6; }
5175
5176
5177if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5178  lt_unset=unset
5179else
5180  lt_unset=false
5181fi
5182
5183
5184
5185
5186
5187# test EBCDIC or ASCII
5188case `echo X|tr X '\101'` in
5189 A) # ASCII based system
5190    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5191  lt_SP2NL='tr \040 \012'
5192  lt_NL2SP='tr \015\012 \040\040'
5193  ;;
5194 *) # EBCDIC based system
5195  lt_SP2NL='tr \100 \n'
5196  lt_NL2SP='tr \r\n \100\100'
5197  ;;
5198esac
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5209$as_echo_n "checking for $LD option to reload object files... " >&6; }
5210if test "${lt_cv_ld_reload_flag+set}" = set; then :
5211  $as_echo_n "(cached) " >&6
5212else
5213  lt_cv_ld_reload_flag='-r'
5214fi
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5216$as_echo "$lt_cv_ld_reload_flag" >&6; }
5217reload_flag=$lt_cv_ld_reload_flag
5218case $reload_flag in
5219"" | " "*) ;;
5220*) reload_flag=" $reload_flag" ;;
5221esac
5222reload_cmds='$LD$reload_flag -o $output$reload_objs'
5223case $host_os in
5224  darwin*)
5225    if test "$GCC" = yes; then
5226      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5227    else
5228      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5229    fi
5230    ;;
5231esac
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241if test -n "$ac_tool_prefix"; then
5242  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5243set dummy ${ac_tool_prefix}objdump; ac_word=$2
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245$as_echo_n "checking for $ac_word... " >&6; }
5246if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  if test -n "$OBJDUMP"; then
5250  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5251else
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255  IFS=$as_save_IFS
5256  test -z "$as_dir" && as_dir=.
5257    for ac_exec_ext in '' $ac_executable_extensions; do
5258  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261    break 2
5262  fi
5263done
5264  done
5265IFS=$as_save_IFS
5266
5267fi
5268fi
5269OBJDUMP=$ac_cv_prog_OBJDUMP
5270if test -n "$OBJDUMP"; then
5271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5272$as_echo "$OBJDUMP" >&6; }
5273else
5274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275$as_echo "no" >&6; }
5276fi
5277
5278
5279fi
5280if test -z "$ac_cv_prog_OBJDUMP"; then
5281  ac_ct_OBJDUMP=$OBJDUMP
5282  # Extract the first word of "objdump", so it can be a program name with args.
5283set dummy objdump; ac_word=$2
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285$as_echo_n "checking for $ac_word... " >&6; }
5286if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5287  $as_echo_n "(cached) " >&6
5288else
5289  if test -n "$ac_ct_OBJDUMP"; then
5290  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5291else
5292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293for as_dir in $PATH
5294do
5295  IFS=$as_save_IFS
5296  test -z "$as_dir" && as_dir=.
5297    for ac_exec_ext in '' $ac_executable_extensions; do
5298  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5299    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5301    break 2
5302  fi
5303done
5304  done
5305IFS=$as_save_IFS
5306
5307fi
5308fi
5309ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5310if test -n "$ac_ct_OBJDUMP"; then
5311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5312$as_echo "$ac_ct_OBJDUMP" >&6; }
5313else
5314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315$as_echo "no" >&6; }
5316fi
5317
5318  if test "x$ac_ct_OBJDUMP" = x; then
5319    OBJDUMP="false"
5320  else
5321    case $cross_compiling:$ac_tool_warned in
5322yes:)
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5325ac_tool_warned=yes ;;
5326esac
5327    OBJDUMP=$ac_ct_OBJDUMP
5328  fi
5329else
5330  OBJDUMP="$ac_cv_prog_OBJDUMP"
5331fi
5332
5333test -z "$OBJDUMP" && OBJDUMP=objdump
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5344$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5345if test "${lt_cv_deplibs_check_method+set}" = set; then :
5346  $as_echo_n "(cached) " >&6
5347else
5348  lt_cv_file_magic_cmd='$MAGIC_CMD'
5349lt_cv_file_magic_test_file=
5350lt_cv_deplibs_check_method='unknown'
5351# Need to set the preceding variable on all platforms that support
5352# interlibrary dependencies.
5353# 'none' -- dependencies not supported.
5354# `unknown' -- same as none, but documents that we really don't know.
5355# 'pass_all' -- all dependencies passed with no checks.
5356# 'test_compile' -- check by making test program.
5357# 'file_magic [[regex]]' -- check by looking for files in library path
5358# which responds to the $file_magic_cmd with a given extended regex.
5359# If you have `file' or equivalent on your system and you're not sure
5360# whether `pass_all' will *always* work, you probably want this one.
5361
5362case $host_os in
5363aix[4-9]*)
5364  lt_cv_deplibs_check_method=pass_all
5365  ;;
5366
5367beos*)
5368  lt_cv_deplibs_check_method=pass_all
5369  ;;
5370
5371bsdi[45]*)
5372  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5373  lt_cv_file_magic_cmd='/usr/bin/file -L'
5374  lt_cv_file_magic_test_file=/shlib/libc.so
5375  ;;
5376
5377cygwin*)
5378  # func_win32_libid is a shell function defined in ltmain.sh
5379  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5380  lt_cv_file_magic_cmd='func_win32_libid'
5381  ;;
5382
5383mingw* | pw32*)
5384  # Base MSYS/MinGW do not provide the 'file' command needed by
5385  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5386  # unless we find 'file', for example because we are cross-compiling.
5387  if ( file / ) >/dev/null 2>&1; then
5388    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5389    lt_cv_file_magic_cmd='func_win32_libid'
5390  else
5391    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5392    lt_cv_file_magic_cmd='$OBJDUMP -f'
5393  fi
5394  ;;
5395
5396cegcc)
5397  # use the weaker test based on 'objdump'. See mingw*.
5398  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5399  lt_cv_file_magic_cmd='$OBJDUMP -f'
5400  ;;
5401
5402darwin* | rhapsody*)
5403  lt_cv_deplibs_check_method=pass_all
5404  ;;
5405
5406freebsd* | dragonfly*)
5407  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5408    case $host_cpu in
5409    i*86 )
5410      # Not sure whether the presence of OpenBSD here was a mistake.
5411      # Let's accept both of them until this is cleared up.
5412      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5413      lt_cv_file_magic_cmd=/usr/bin/file
5414      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5415      ;;
5416    esac
5417  else
5418    lt_cv_deplibs_check_method=pass_all
5419  fi
5420  ;;
5421
5422gnu*)
5423  lt_cv_deplibs_check_method=pass_all
5424  ;;
5425
5426hpux10.20* | hpux11*)
5427  lt_cv_file_magic_cmd=/usr/bin/file
5428  case $host_cpu in
5429  ia64*)
5430    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5431    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5432    ;;
5433  hppa*64*)
5434    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]'
5435    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5436    ;;
5437  *)
5438    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5439    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5440    ;;
5441  esac
5442  ;;
5443
5444interix[3-9]*)
5445  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5446  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5447  ;;
5448
5449irix5* | irix6* | nonstopux*)
5450  case $LD in
5451  *-32|*"-32 ") libmagic=32-bit;;
5452  *-n32|*"-n32 ") libmagic=N32;;
5453  *-64|*"-64 ") libmagic=64-bit;;
5454  *) libmagic=never-match;;
5455  esac
5456  lt_cv_deplibs_check_method=pass_all
5457  ;;
5458
5459# This must be Linux ELF.
5460linux* | k*bsd*-gnu | kopensolaris*-gnu)
5461  lt_cv_deplibs_check_method=pass_all
5462  ;;
5463
5464netbsd* | netbsdelf*-gnu)
5465  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5466    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5467  else
5468    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5469  fi
5470  ;;
5471
5472newos6*)
5473  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5474  lt_cv_file_magic_cmd=/usr/bin/file
5475  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5476  ;;
5477
5478*nto* | *qnx*)
5479  lt_cv_deplibs_check_method=pass_all
5480  ;;
5481
5482openbsd*)
5483  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5484    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5485  else
5486    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5487  fi
5488  ;;
5489
5490osf3* | osf4* | osf5*)
5491  lt_cv_deplibs_check_method=pass_all
5492  ;;
5493
5494rdos*)
5495  lt_cv_deplibs_check_method=pass_all
5496  ;;
5497
5498solaris*)
5499  lt_cv_deplibs_check_method=pass_all
5500  ;;
5501
5502sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5503  lt_cv_deplibs_check_method=pass_all
5504  ;;
5505
5506sysv4 | sysv4.3*)
5507  case $host_vendor in
5508  motorola)
5509    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]'
5510    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5511    ;;
5512  ncr)
5513    lt_cv_deplibs_check_method=pass_all
5514    ;;
5515  sequent)
5516    lt_cv_file_magic_cmd='/bin/file'
5517    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5518    ;;
5519  sni)
5520    lt_cv_file_magic_cmd='/bin/file'
5521    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5522    lt_cv_file_magic_test_file=/lib/libc.so
5523    ;;
5524  siemens)
5525    lt_cv_deplibs_check_method=pass_all
5526    ;;
5527  pc)
5528    lt_cv_deplibs_check_method=pass_all
5529    ;;
5530  esac
5531  ;;
5532
5533tpf*)
5534  lt_cv_deplibs_check_method=pass_all
5535  ;;
5536esac
5537
5538fi
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5540$as_echo "$lt_cv_deplibs_check_method" >&6; }
5541file_magic_cmd=$lt_cv_file_magic_cmd
5542deplibs_check_method=$lt_cv_deplibs_check_method
5543test -z "$deplibs_check_method" && deplibs_check_method=unknown
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556if test -n "$ac_tool_prefix"; then
5557  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5558set dummy ${ac_tool_prefix}ar; ac_word=$2
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560$as_echo_n "checking for $ac_word... " >&6; }
5561if test "${ac_cv_prog_AR+set}" = set; then :
5562  $as_echo_n "(cached) " >&6
5563else
5564  if test -n "$AR"; then
5565  ac_cv_prog_AR="$AR" # Let the user override the test.
5566else
5567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568for as_dir in $PATH
5569do
5570  IFS=$as_save_IFS
5571  test -z "$as_dir" && as_dir=.
5572    for ac_exec_ext in '' $ac_executable_extensions; do
5573  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5574    ac_cv_prog_AR="${ac_tool_prefix}ar"
5575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576    break 2
5577  fi
5578done
5579  done
5580IFS=$as_save_IFS
5581
5582fi
5583fi
5584AR=$ac_cv_prog_AR
5585if test -n "$AR"; then
5586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5587$as_echo "$AR" >&6; }
5588else
5589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590$as_echo "no" >&6; }
5591fi
5592
5593
5594fi
5595if test -z "$ac_cv_prog_AR"; then
5596  ac_ct_AR=$AR
5597  # Extract the first word of "ar", so it can be a program name with args.
5598set dummy ar; ac_word=$2
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5600$as_echo_n "checking for $ac_word... " >&6; }
5601if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5602  $as_echo_n "(cached) " >&6
5603else
5604  if test -n "$ac_ct_AR"; then
5605  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5606else
5607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608for as_dir in $PATH
5609do
5610  IFS=$as_save_IFS
5611  test -z "$as_dir" && as_dir=.
5612    for ac_exec_ext in '' $ac_executable_extensions; do
5613  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5614    ac_cv_prog_ac_ct_AR="ar"
5615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5616    break 2
5617  fi
5618done
5619  done
5620IFS=$as_save_IFS
5621
5622fi
5623fi
5624ac_ct_AR=$ac_cv_prog_ac_ct_AR
5625if test -n "$ac_ct_AR"; then
5626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5627$as_echo "$ac_ct_AR" >&6; }
5628else
5629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630$as_echo "no" >&6; }
5631fi
5632
5633  if test "x$ac_ct_AR" = x; then
5634    AR="false"
5635  else
5636    case $cross_compiling:$ac_tool_warned in
5637yes:)
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5640ac_tool_warned=yes ;;
5641esac
5642    AR=$ac_ct_AR
5643  fi
5644else
5645  AR="$ac_cv_prog_AR"
5646fi
5647
5648test -z "$AR" && AR=ar
5649test -z "$AR_FLAGS" && AR_FLAGS=cru
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661if test -n "$ac_tool_prefix"; then
5662  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5663set dummy ${ac_tool_prefix}strip; ac_word=$2
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665$as_echo_n "checking for $ac_word... " >&6; }
5666if test "${ac_cv_prog_STRIP+set}" = set; then :
5667  $as_echo_n "(cached) " >&6
5668else
5669  if test -n "$STRIP"; then
5670  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5671else
5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673for as_dir in $PATH
5674do
5675  IFS=$as_save_IFS
5676  test -z "$as_dir" && as_dir=.
5677    for ac_exec_ext in '' $ac_executable_extensions; do
5678  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5679    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681    break 2
5682  fi
5683done
5684  done
5685IFS=$as_save_IFS
5686
5687fi
5688fi
5689STRIP=$ac_cv_prog_STRIP
5690if test -n "$STRIP"; then
5691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5692$as_echo "$STRIP" >&6; }
5693else
5694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695$as_echo "no" >&6; }
5696fi
5697
5698
5699fi
5700if test -z "$ac_cv_prog_STRIP"; then
5701  ac_ct_STRIP=$STRIP
5702  # Extract the first word of "strip", so it can be a program name with args.
5703set dummy strip; ac_word=$2
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705$as_echo_n "checking for $ac_word... " >&6; }
5706if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5707  $as_echo_n "(cached) " >&6
5708else
5709  if test -n "$ac_ct_STRIP"; then
5710  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5711else
5712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713for as_dir in $PATH
5714do
5715  IFS=$as_save_IFS
5716  test -z "$as_dir" && as_dir=.
5717    for ac_exec_ext in '' $ac_executable_extensions; do
5718  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5719    ac_cv_prog_ac_ct_STRIP="strip"
5720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721    break 2
5722  fi
5723done
5724  done
5725IFS=$as_save_IFS
5726
5727fi
5728fi
5729ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5730if test -n "$ac_ct_STRIP"; then
5731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5732$as_echo "$ac_ct_STRIP" >&6; }
5733else
5734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735$as_echo "no" >&6; }
5736fi
5737
5738  if test "x$ac_ct_STRIP" = x; then
5739    STRIP=":"
5740  else
5741    case $cross_compiling:$ac_tool_warned in
5742yes:)
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5745ac_tool_warned=yes ;;
5746esac
5747    STRIP=$ac_ct_STRIP
5748  fi
5749else
5750  STRIP="$ac_cv_prog_STRIP"
5751fi
5752
5753test -z "$STRIP" && STRIP=:
5754
5755
5756
5757
5758
5759
5760if test -n "$ac_tool_prefix"; then
5761  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5762set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764$as_echo_n "checking for $ac_word... " >&6; }
5765if test "${ac_cv_prog_RANLIB+set}" = set; then :
5766  $as_echo_n "(cached) " >&6
5767else
5768  if test -n "$RANLIB"; then
5769  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5770else
5771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772for as_dir in $PATH
5773do
5774  IFS=$as_save_IFS
5775  test -z "$as_dir" && as_dir=.
5776    for ac_exec_ext in '' $ac_executable_extensions; do
5777  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5778    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780    break 2
5781  fi
5782done
5783  done
5784IFS=$as_save_IFS
5785
5786fi
5787fi
5788RANLIB=$ac_cv_prog_RANLIB
5789if test -n "$RANLIB"; then
5790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5791$as_echo "$RANLIB" >&6; }
5792else
5793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794$as_echo "no" >&6; }
5795fi
5796
5797
5798fi
5799if test -z "$ac_cv_prog_RANLIB"; then
5800  ac_ct_RANLIB=$RANLIB
5801  # Extract the first word of "ranlib", so it can be a program name with args.
5802set dummy ranlib; ac_word=$2
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804$as_echo_n "checking for $ac_word... " >&6; }
5805if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5806  $as_echo_n "(cached) " >&6
5807else
5808  if test -n "$ac_ct_RANLIB"; then
5809  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5810else
5811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812for as_dir in $PATH
5813do
5814  IFS=$as_save_IFS
5815  test -z "$as_dir" && as_dir=.
5816    for ac_exec_ext in '' $ac_executable_extensions; do
5817  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818    ac_cv_prog_ac_ct_RANLIB="ranlib"
5819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820    break 2
5821  fi
5822done
5823  done
5824IFS=$as_save_IFS
5825
5826fi
5827fi
5828ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5829if test -n "$ac_ct_RANLIB"; then
5830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5831$as_echo "$ac_ct_RANLIB" >&6; }
5832else
5833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834$as_echo "no" >&6; }
5835fi
5836
5837  if test "x$ac_ct_RANLIB" = x; then
5838    RANLIB=":"
5839  else
5840    case $cross_compiling:$ac_tool_warned in
5841yes:)
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5844ac_tool_warned=yes ;;
5845esac
5846    RANLIB=$ac_ct_RANLIB
5847  fi
5848else
5849  RANLIB="$ac_cv_prog_RANLIB"
5850fi
5851
5852test -z "$RANLIB" && RANLIB=:
5853
5854
5855
5856
5857
5858
5859# Determine commands to create old-style static archives.
5860old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5861old_postinstall_cmds='chmod 644 $oldlib'
5862old_postuninstall_cmds=
5863
5864if test -n "$RANLIB"; then
5865  case $host_os in
5866  openbsd*)
5867    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5868    ;;
5869  *)
5870    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5871    ;;
5872  esac
5873  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5874fi
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909# If no C compiler was specified, use CC.
5910LTCC=${LTCC-"$CC"}
5911
5912# If no C compiler flags were specified, use CFLAGS.
5913LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5914
5915# Allow CC to be a program name with arguments.
5916compiler=$CC
5917
5918
5919# Check for command to grab the raw symbol name followed by C symbol from nm.
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5921$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5922if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5923  $as_echo_n "(cached) " >&6
5924else
5925
5926# These are sane defaults that work on at least a few old systems.
5927# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5928
5929# Character class describing NM global symbol codes.
5930symcode='[BCDEGRST]'
5931
5932# Regexp to match symbols that can be accessed directly from C.
5933sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5934
5935# Define system-specific variables.
5936case $host_os in
5937aix*)
5938  symcode='[BCDT]'
5939  ;;
5940cygwin* | mingw* | pw32* | cegcc*)
5941  symcode='[ABCDGISTW]'
5942  ;;
5943hpux*)
5944  if test "$host_cpu" = ia64; then
5945    symcode='[ABCDEGRST]'
5946  fi
5947  ;;
5948irix* | nonstopux*)
5949  symcode='[BCDEGRST]'
5950  ;;
5951osf*)
5952  symcode='[BCDEGQRST]'
5953  ;;
5954solaris*)
5955  symcode='[BDRT]'
5956  ;;
5957sco3.2v5*)
5958  symcode='[DT]'
5959  ;;
5960sysv4.2uw2*)
5961  symcode='[DT]'
5962  ;;
5963sysv5* | sco5v6* | unixware* | OpenUNIX*)
5964  symcode='[ABDT]'
5965  ;;
5966sysv4)
5967  symcode='[DFNSTU]'
5968  ;;
5969esac
5970
5971# If we're using GNU nm, then use its standard symbol codes.
5972case `$NM -V 2>&1` in
5973*GNU* | *'with BFD'*)
5974  symcode='[ABCDGIRSTW]' ;;
5975esac
5976
5977# Transform an extracted symbol line into a proper C declaration.
5978# Some systems (esp. on ia64) link data and code symbols differently,
5979# so use this general approach.
5980lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5981
5982# Transform an extracted symbol line into symbol name and symbol address
5983lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5984lt_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'"
5985
5986# Handle CRLF in mingw tool chain
5987opt_cr=
5988case $build_os in
5989mingw*)
5990  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5991  ;;
5992esac
5993
5994# Try without a prefix underscore, then with it.
5995for ac_symprfx in "" "_"; do
5996
5997  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5998  symxfrm="\\1 $ac_symprfx\\2 \\2"
5999
6000  # Write the raw and C identifiers.
6001  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6002    # Fake it for dumpbin and say T for any non-static function
6003    # and D for any global variable.
6004    # Also find C++ and __fastcall symbols from MSVC++,
6005    # which start with @ or ?.
6006    lt_cv_sys_global_symbol_pipe="$AWK '"\
6007"     {last_section=section; section=\$ 3};"\
6008"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6009"     \$ 0!~/External *\|/{next};"\
6010"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6011"     {if(hide[section]) next};"\
6012"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6013"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6014"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6015"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6016"     ' prfx=^$ac_symprfx"
6017  else
6018    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6019  fi
6020
6021  # Check to see that the pipe works correctly.
6022  pipe_works=no
6023
6024  rm -f conftest*
6025  cat > conftest.$ac_ext <<_LT_EOF
6026#ifdef __cplusplus
6027extern "C" {
6028#endif
6029char nm_test_var;
6030void nm_test_func(void);
6031void nm_test_func(void){}
6032#ifdef __cplusplus
6033}
6034#endif
6035int main(){nm_test_var='a';nm_test_func();return(0);}
6036_LT_EOF
6037
6038  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6039  (eval $ac_compile) 2>&5
6040  ac_status=$?
6041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6042  test $ac_status = 0; }; then
6043    # Now try to grab the symbols.
6044    nlist=conftest.nm
6045    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6046  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6047  ac_status=$?
6048  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6049  test $ac_status = 0; } && test -s "$nlist"; then
6050      # Try sorting and uniquifying the output.
6051      if sort "$nlist" | uniq > "$nlist"T; then
6052	mv -f "$nlist"T "$nlist"
6053      else
6054	rm -f "$nlist"T
6055      fi
6056
6057      # Make sure that we snagged all the symbols we need.
6058      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6059	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6060	  cat <<_LT_EOF > conftest.$ac_ext
6061#ifdef __cplusplus
6062extern "C" {
6063#endif
6064
6065_LT_EOF
6066	  # Now generate the symbol file.
6067	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6068
6069	  cat <<_LT_EOF >> conftest.$ac_ext
6070
6071/* The mapping between symbol names and symbols.  */
6072const struct {
6073  const char *name;
6074  void       *address;
6075}
6076lt__PROGRAM__LTX_preloaded_symbols[] =
6077{
6078  { "@PROGRAM@", (void *) 0 },
6079_LT_EOF
6080	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6081	  cat <<\_LT_EOF >> conftest.$ac_ext
6082  {0, (void *) 0}
6083};
6084
6085/* This works around a problem in FreeBSD linker */
6086#ifdef FREEBSD_WORKAROUND
6087static const void *lt_preloaded_setup() {
6088  return lt__PROGRAM__LTX_preloaded_symbols;
6089}
6090#endif
6091
6092#ifdef __cplusplus
6093}
6094#endif
6095_LT_EOF
6096	  # Now try linking the two files.
6097	  mv conftest.$ac_objext conftstm.$ac_objext
6098	  lt_save_LIBS="$LIBS"
6099	  lt_save_CFLAGS="$CFLAGS"
6100	  LIBS="conftstm.$ac_objext"
6101	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6102	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6103  (eval $ac_link) 2>&5
6104  ac_status=$?
6105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6106  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6107	    pipe_works=yes
6108	  fi
6109	  LIBS="$lt_save_LIBS"
6110	  CFLAGS="$lt_save_CFLAGS"
6111	else
6112	  echo "cannot find nm_test_func in $nlist" >&5
6113	fi
6114      else
6115	echo "cannot find nm_test_var in $nlist" >&5
6116      fi
6117    else
6118      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6119    fi
6120  else
6121    echo "$progname: failed program was:" >&5
6122    cat conftest.$ac_ext >&5
6123  fi
6124  rm -rf conftest* conftst*
6125
6126  # Do not use the global_symbol_pipe unless it works.
6127  if test "$pipe_works" = yes; then
6128    break
6129  else
6130    lt_cv_sys_global_symbol_pipe=
6131  fi
6132done
6133
6134fi
6135
6136if test -z "$lt_cv_sys_global_symbol_pipe"; then
6137  lt_cv_sys_global_symbol_to_cdecl=
6138fi
6139if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6141$as_echo "failed" >&6; }
6142else
6143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6144$as_echo "ok" >&6; }
6145fi
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169# Check whether --enable-libtool-lock was given.
6170if test "${enable_libtool_lock+set}" = set; then :
6171  enableval=$enable_libtool_lock;
6172fi
6173
6174test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6175
6176# Some flags need to be propagated to the compiler or linker for good
6177# libtool support.
6178case $host in
6179ia64-*-hpux*)
6180  # Find out which ABI we are using.
6181  echo 'int i;' > conftest.$ac_ext
6182  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6183  (eval $ac_compile) 2>&5
6184  ac_status=$?
6185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186  test $ac_status = 0; }; then
6187    case `/usr/bin/file conftest.$ac_objext` in
6188      *ELF-32*)
6189	HPUX_IA64_MODE="32"
6190	;;
6191      *ELF-64*)
6192	HPUX_IA64_MODE="64"
6193	;;
6194    esac
6195  fi
6196  rm -rf conftest*
6197  ;;
6198*-*-irix6*)
6199  # Find out which ABI we are using.
6200  echo '#line 6200 "configure"' > conftest.$ac_ext
6201  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6202  (eval $ac_compile) 2>&5
6203  ac_status=$?
6204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6205  test $ac_status = 0; }; then
6206    if test "$lt_cv_prog_gnu_ld" = yes; then
6207      case `/usr/bin/file conftest.$ac_objext` in
6208	*32-bit*)
6209	  LD="${LD-ld} -melf32bsmip"
6210	  ;;
6211	*N32*)
6212	  LD="${LD-ld} -melf32bmipn32"
6213	  ;;
6214	*64-bit*)
6215	  LD="${LD-ld} -melf64bmip"
6216	;;
6217      esac
6218    else
6219      case `/usr/bin/file conftest.$ac_objext` in
6220	*32-bit*)
6221	  LD="${LD-ld} -32"
6222	  ;;
6223	*N32*)
6224	  LD="${LD-ld} -n32"
6225	  ;;
6226	*64-bit*)
6227	  LD="${LD-ld} -64"
6228	  ;;
6229      esac
6230    fi
6231  fi
6232  rm -rf conftest*
6233  ;;
6234
6235x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6236s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6237  # Find out which ABI we are using.
6238  echo 'int i;' > conftest.$ac_ext
6239  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6240  (eval $ac_compile) 2>&5
6241  ac_status=$?
6242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243  test $ac_status = 0; }; then
6244    case `/usr/bin/file conftest.o` in
6245      *32-bit*)
6246	case $host in
6247	  x86_64-*kfreebsd*-gnu)
6248	    LD="${LD-ld} -m elf_i386_fbsd"
6249	    ;;
6250	  x86_64-*linux*)
6251	    LD="${LD-ld} -m elf_i386"
6252	    ;;
6253	  ppc64-*linux*|powerpc64-*linux*)
6254	    LD="${LD-ld} -m elf32ppclinux"
6255	    ;;
6256	  s390x-*linux*)
6257	    LD="${LD-ld} -m elf_s390"
6258	    ;;
6259	  sparc64-*linux*)
6260	    LD="${LD-ld} -m elf32_sparc"
6261	    ;;
6262	esac
6263	;;
6264      *64-bit*)
6265	case $host in
6266	  x86_64-*kfreebsd*-gnu)
6267	    LD="${LD-ld} -m elf_x86_64_fbsd"
6268	    ;;
6269	  x86_64-*linux*)
6270	    LD="${LD-ld} -m elf_x86_64"
6271	    ;;
6272	  ppc*-*linux*|powerpc*-*linux*)
6273	    LD="${LD-ld} -m elf64ppc"
6274	    ;;
6275	  s390*-*linux*|s390*-*tpf*)
6276	    LD="${LD-ld} -m elf64_s390"
6277	    ;;
6278	  sparc*-*linux*)
6279	    LD="${LD-ld} -m elf64_sparc"
6280	    ;;
6281	esac
6282	;;
6283    esac
6284  fi
6285  rm -rf conftest*
6286  ;;
6287
6288*-*-sco3.2v5*)
6289  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6290  SAVE_CFLAGS="$CFLAGS"
6291  CFLAGS="$CFLAGS -belf"
6292  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6293$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6294if test "${lt_cv_cc_needs_belf+set}" = set; then :
6295  $as_echo_n "(cached) " >&6
6296else
6297  ac_ext=c
6298ac_cpp='$CPP $CPPFLAGS'
6299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6301ac_compiler_gnu=$ac_cv_c_compiler_gnu
6302
6303     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304/* end confdefs.h.  */
6305
6306int
6307main ()
6308{
6309
6310  ;
6311  return 0;
6312}
6313_ACEOF
6314if ac_fn_c_try_link "$LINENO"; then :
6315  lt_cv_cc_needs_belf=yes
6316else
6317  lt_cv_cc_needs_belf=no
6318fi
6319rm -f core conftest.err conftest.$ac_objext \
6320    conftest$ac_exeext conftest.$ac_ext
6321     ac_ext=c
6322ac_cpp='$CPP $CPPFLAGS'
6323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325ac_compiler_gnu=$ac_cv_c_compiler_gnu
6326
6327fi
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6329$as_echo "$lt_cv_cc_needs_belf" >&6; }
6330  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6331    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6332    CFLAGS="$SAVE_CFLAGS"
6333  fi
6334  ;;
6335sparc*-*solaris*)
6336  # Find out which ABI we are using.
6337  echo 'int i;' > conftest.$ac_ext
6338  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6339  (eval $ac_compile) 2>&5
6340  ac_status=$?
6341  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342  test $ac_status = 0; }; then
6343    case `/usr/bin/file conftest.o` in
6344    *64-bit*)
6345      case $lt_cv_prog_gnu_ld in
6346      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6347      *)
6348	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6349	  LD="${LD-ld} -64"
6350	fi
6351	;;
6352      esac
6353      ;;
6354    esac
6355  fi
6356  rm -rf conftest*
6357  ;;
6358esac
6359
6360need_locks="$enable_libtool_lock"
6361
6362
6363  case $host_os in
6364    rhapsody* | darwin*)
6365    if test -n "$ac_tool_prefix"; then
6366  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6367set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369$as_echo_n "checking for $ac_word... " >&6; }
6370if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6371  $as_echo_n "(cached) " >&6
6372else
6373  if test -n "$DSYMUTIL"; then
6374  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6375else
6376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377for as_dir in $PATH
6378do
6379  IFS=$as_save_IFS
6380  test -z "$as_dir" && as_dir=.
6381    for ac_exec_ext in '' $ac_executable_extensions; do
6382  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6383    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6384    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6385    break 2
6386  fi
6387done
6388  done
6389IFS=$as_save_IFS
6390
6391fi
6392fi
6393DSYMUTIL=$ac_cv_prog_DSYMUTIL
6394if test -n "$DSYMUTIL"; then
6395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6396$as_echo "$DSYMUTIL" >&6; }
6397else
6398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399$as_echo "no" >&6; }
6400fi
6401
6402
6403fi
6404if test -z "$ac_cv_prog_DSYMUTIL"; then
6405  ac_ct_DSYMUTIL=$DSYMUTIL
6406  # Extract the first word of "dsymutil", so it can be a program name with args.
6407set dummy dsymutil; ac_word=$2
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409$as_echo_n "checking for $ac_word... " >&6; }
6410if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6411  $as_echo_n "(cached) " >&6
6412else
6413  if test -n "$ac_ct_DSYMUTIL"; then
6414  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6415else
6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419  IFS=$as_save_IFS
6420  test -z "$as_dir" && as_dir=.
6421    for ac_exec_ext in '' $ac_executable_extensions; do
6422  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425    break 2
6426  fi
6427done
6428  done
6429IFS=$as_save_IFS
6430
6431fi
6432fi
6433ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6434if test -n "$ac_ct_DSYMUTIL"; then
6435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6436$as_echo "$ac_ct_DSYMUTIL" >&6; }
6437else
6438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439$as_echo "no" >&6; }
6440fi
6441
6442  if test "x$ac_ct_DSYMUTIL" = x; then
6443    DSYMUTIL=":"
6444  else
6445    case $cross_compiling:$ac_tool_warned in
6446yes:)
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449ac_tool_warned=yes ;;
6450esac
6451    DSYMUTIL=$ac_ct_DSYMUTIL
6452  fi
6453else
6454  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6455fi
6456
6457    if test -n "$ac_tool_prefix"; then
6458  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6459set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461$as_echo_n "checking for $ac_word... " >&6; }
6462if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6463  $as_echo_n "(cached) " >&6
6464else
6465  if test -n "$NMEDIT"; then
6466  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6467else
6468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469for as_dir in $PATH
6470do
6471  IFS=$as_save_IFS
6472  test -z "$as_dir" && as_dir=.
6473    for ac_exec_ext in '' $ac_executable_extensions; do
6474  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6475    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477    break 2
6478  fi
6479done
6480  done
6481IFS=$as_save_IFS
6482
6483fi
6484fi
6485NMEDIT=$ac_cv_prog_NMEDIT
6486if test -n "$NMEDIT"; then
6487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6488$as_echo "$NMEDIT" >&6; }
6489else
6490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491$as_echo "no" >&6; }
6492fi
6493
6494
6495fi
6496if test -z "$ac_cv_prog_NMEDIT"; then
6497  ac_ct_NMEDIT=$NMEDIT
6498  # Extract the first word of "nmedit", so it can be a program name with args.
6499set dummy nmedit; ac_word=$2
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501$as_echo_n "checking for $ac_word... " >&6; }
6502if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6503  $as_echo_n "(cached) " >&6
6504else
6505  if test -n "$ac_ct_NMEDIT"; then
6506  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6507else
6508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509for as_dir in $PATH
6510do
6511  IFS=$as_save_IFS
6512  test -z "$as_dir" && as_dir=.
6513    for ac_exec_ext in '' $ac_executable_extensions; do
6514  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517    break 2
6518  fi
6519done
6520  done
6521IFS=$as_save_IFS
6522
6523fi
6524fi
6525ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6526if test -n "$ac_ct_NMEDIT"; then
6527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6528$as_echo "$ac_ct_NMEDIT" >&6; }
6529else
6530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531$as_echo "no" >&6; }
6532fi
6533
6534  if test "x$ac_ct_NMEDIT" = x; then
6535    NMEDIT=":"
6536  else
6537    case $cross_compiling:$ac_tool_warned in
6538yes:)
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6541ac_tool_warned=yes ;;
6542esac
6543    NMEDIT=$ac_ct_NMEDIT
6544  fi
6545else
6546  NMEDIT="$ac_cv_prog_NMEDIT"
6547fi
6548
6549    if test -n "$ac_tool_prefix"; then
6550  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6551set dummy ${ac_tool_prefix}lipo; ac_word=$2
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553$as_echo_n "checking for $ac_word... " >&6; }
6554if test "${ac_cv_prog_LIPO+set}" = set; then :
6555  $as_echo_n "(cached) " >&6
6556else
6557  if test -n "$LIPO"; then
6558  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6559else
6560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561for as_dir in $PATH
6562do
6563  IFS=$as_save_IFS
6564  test -z "$as_dir" && as_dir=.
6565    for ac_exec_ext in '' $ac_executable_extensions; do
6566  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6567    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569    break 2
6570  fi
6571done
6572  done
6573IFS=$as_save_IFS
6574
6575fi
6576fi
6577LIPO=$ac_cv_prog_LIPO
6578if test -n "$LIPO"; then
6579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6580$as_echo "$LIPO" >&6; }
6581else
6582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583$as_echo "no" >&6; }
6584fi
6585
6586
6587fi
6588if test -z "$ac_cv_prog_LIPO"; then
6589  ac_ct_LIPO=$LIPO
6590  # Extract the first word of "lipo", so it can be a program name with args.
6591set dummy lipo; ac_word=$2
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593$as_echo_n "checking for $ac_word... " >&6; }
6594if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6595  $as_echo_n "(cached) " >&6
6596else
6597  if test -n "$ac_ct_LIPO"; then
6598  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6599else
6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601for as_dir in $PATH
6602do
6603  IFS=$as_save_IFS
6604  test -z "$as_dir" && as_dir=.
6605    for ac_exec_ext in '' $ac_executable_extensions; do
6606  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607    ac_cv_prog_ac_ct_LIPO="lipo"
6608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609    break 2
6610  fi
6611done
6612  done
6613IFS=$as_save_IFS
6614
6615fi
6616fi
6617ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6618if test -n "$ac_ct_LIPO"; then
6619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6620$as_echo "$ac_ct_LIPO" >&6; }
6621else
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623$as_echo "no" >&6; }
6624fi
6625
6626  if test "x$ac_ct_LIPO" = x; then
6627    LIPO=":"
6628  else
6629    case $cross_compiling:$ac_tool_warned in
6630yes:)
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6633ac_tool_warned=yes ;;
6634esac
6635    LIPO=$ac_ct_LIPO
6636  fi
6637else
6638  LIPO="$ac_cv_prog_LIPO"
6639fi
6640
6641    if test -n "$ac_tool_prefix"; then
6642  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6643set dummy ${ac_tool_prefix}otool; ac_word=$2
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645$as_echo_n "checking for $ac_word... " >&6; }
6646if test "${ac_cv_prog_OTOOL+set}" = set; then :
6647  $as_echo_n "(cached) " >&6
6648else
6649  if test -n "$OTOOL"; then
6650  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6651else
6652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653for as_dir in $PATH
6654do
6655  IFS=$as_save_IFS
6656  test -z "$as_dir" && as_dir=.
6657    for ac_exec_ext in '' $ac_executable_extensions; do
6658  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661    break 2
6662  fi
6663done
6664  done
6665IFS=$as_save_IFS
6666
6667fi
6668fi
6669OTOOL=$ac_cv_prog_OTOOL
6670if test -n "$OTOOL"; then
6671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6672$as_echo "$OTOOL" >&6; }
6673else
6674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675$as_echo "no" >&6; }
6676fi
6677
6678
6679fi
6680if test -z "$ac_cv_prog_OTOOL"; then
6681  ac_ct_OTOOL=$OTOOL
6682  # Extract the first word of "otool", so it can be a program name with args.
6683set dummy otool; ac_word=$2
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685$as_echo_n "checking for $ac_word... " >&6; }
6686if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6687  $as_echo_n "(cached) " >&6
6688else
6689  if test -n "$ac_ct_OTOOL"; then
6690  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6691else
6692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693for as_dir in $PATH
6694do
6695  IFS=$as_save_IFS
6696  test -z "$as_dir" && as_dir=.
6697    for ac_exec_ext in '' $ac_executable_extensions; do
6698  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699    ac_cv_prog_ac_ct_OTOOL="otool"
6700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701    break 2
6702  fi
6703done
6704  done
6705IFS=$as_save_IFS
6706
6707fi
6708fi
6709ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6710if test -n "$ac_ct_OTOOL"; then
6711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6712$as_echo "$ac_ct_OTOOL" >&6; }
6713else
6714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715$as_echo "no" >&6; }
6716fi
6717
6718  if test "x$ac_ct_OTOOL" = x; then
6719    OTOOL=":"
6720  else
6721    case $cross_compiling:$ac_tool_warned in
6722yes:)
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6725ac_tool_warned=yes ;;
6726esac
6727    OTOOL=$ac_ct_OTOOL
6728  fi
6729else
6730  OTOOL="$ac_cv_prog_OTOOL"
6731fi
6732
6733    if test -n "$ac_tool_prefix"; then
6734  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6735set dummy ${ac_tool_prefix}otool64; ac_word=$2
6736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737$as_echo_n "checking for $ac_word... " >&6; }
6738if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6739  $as_echo_n "(cached) " >&6
6740else
6741  if test -n "$OTOOL64"; then
6742  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6743else
6744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745for as_dir in $PATH
6746do
6747  IFS=$as_save_IFS
6748  test -z "$as_dir" && as_dir=.
6749    for ac_exec_ext in '' $ac_executable_extensions; do
6750  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6751    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753    break 2
6754  fi
6755done
6756  done
6757IFS=$as_save_IFS
6758
6759fi
6760fi
6761OTOOL64=$ac_cv_prog_OTOOL64
6762if test -n "$OTOOL64"; then
6763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6764$as_echo "$OTOOL64" >&6; }
6765else
6766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767$as_echo "no" >&6; }
6768fi
6769
6770
6771fi
6772if test -z "$ac_cv_prog_OTOOL64"; then
6773  ac_ct_OTOOL64=$OTOOL64
6774  # Extract the first word of "otool64", so it can be a program name with args.
6775set dummy otool64; ac_word=$2
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777$as_echo_n "checking for $ac_word... " >&6; }
6778if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6779  $as_echo_n "(cached) " >&6
6780else
6781  if test -n "$ac_ct_OTOOL64"; then
6782  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6783else
6784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787  IFS=$as_save_IFS
6788  test -z "$as_dir" && as_dir=.
6789    for ac_exec_ext in '' $ac_executable_extensions; do
6790  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791    ac_cv_prog_ac_ct_OTOOL64="otool64"
6792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793    break 2
6794  fi
6795done
6796  done
6797IFS=$as_save_IFS
6798
6799fi
6800fi
6801ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6802if test -n "$ac_ct_OTOOL64"; then
6803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6804$as_echo "$ac_ct_OTOOL64" >&6; }
6805else
6806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807$as_echo "no" >&6; }
6808fi
6809
6810  if test "x$ac_ct_OTOOL64" = x; then
6811    OTOOL64=":"
6812  else
6813    case $cross_compiling:$ac_tool_warned in
6814yes:)
6815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6817ac_tool_warned=yes ;;
6818esac
6819    OTOOL64=$ac_ct_OTOOL64
6820  fi
6821else
6822  OTOOL64="$ac_cv_prog_OTOOL64"
6823fi
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6852$as_echo_n "checking for -single_module linker flag... " >&6; }
6853if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6854  $as_echo_n "(cached) " >&6
6855else
6856  lt_cv_apple_cc_single_mod=no
6857      if test -z "${LT_MULTI_MODULE}"; then
6858	# By default we will add the -single_module flag. You can override
6859	# by either setting the environment variable LT_MULTI_MODULE
6860	# non-empty at configure time, or by adding -multi_module to the
6861	# link flags.
6862	rm -rf libconftest.dylib*
6863	echo "int foo(void){return 1;}" > conftest.c
6864	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6865-dynamiclib -Wl,-single_module conftest.c" >&5
6866	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6867	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6868        _lt_result=$?
6869	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6870	  lt_cv_apple_cc_single_mod=yes
6871	else
6872	  cat conftest.err >&5
6873	fi
6874	rm -rf libconftest.dylib*
6875	rm -f conftest.*
6876      fi
6877fi
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6879$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6880    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6881$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6882if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6883  $as_echo_n "(cached) " >&6
6884else
6885  lt_cv_ld_exported_symbols_list=no
6886      save_LDFLAGS=$LDFLAGS
6887      echo "_main" > conftest.sym
6888      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6889      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890/* end confdefs.h.  */
6891
6892int
6893main ()
6894{
6895
6896  ;
6897  return 0;
6898}
6899_ACEOF
6900if ac_fn_c_try_link "$LINENO"; then :
6901  lt_cv_ld_exported_symbols_list=yes
6902else
6903  lt_cv_ld_exported_symbols_list=no
6904fi
6905rm -f core conftest.err conftest.$ac_objext \
6906    conftest$ac_exeext conftest.$ac_ext
6907	LDFLAGS="$save_LDFLAGS"
6908
6909fi
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6911$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6912    case $host_os in
6913    rhapsody* | darwin1.[012])
6914      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6915    darwin1.*)
6916      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6917    darwin*) # darwin 5.x on
6918      # if running on 10.5 or later, the deployment target defaults
6919      # to the OS version, if on x86, and 10.4, the deployment
6920      # target defaults to 10.4. Don't you love it?
6921      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6922	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6923	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6924	10.[012]*)
6925	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6926	10.*)
6927	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6928      esac
6929    ;;
6930  esac
6931    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6932      _lt_dar_single_mod='$single_module'
6933    fi
6934    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6935      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6936    else
6937      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6938    fi
6939    if test "$DSYMUTIL" != ":"; then
6940      _lt_dsymutil='~$DSYMUTIL $lib || :'
6941    else
6942      _lt_dsymutil=
6943    fi
6944    ;;
6945  esac
6946
6947
6948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6949$as_echo_n "checking for ANSI C header files... " >&6; }
6950if test "${ac_cv_header_stdc+set}" = set; then :
6951  $as_echo_n "(cached) " >&6
6952else
6953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954/* end confdefs.h.  */
6955#include <stdlib.h>
6956#include <stdarg.h>
6957#include <string.h>
6958#include <float.h>
6959
6960int
6961main ()
6962{
6963
6964  ;
6965  return 0;
6966}
6967_ACEOF
6968if ac_fn_c_try_compile "$LINENO"; then :
6969  ac_cv_header_stdc=yes
6970else
6971  ac_cv_header_stdc=no
6972fi
6973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974
6975if test $ac_cv_header_stdc = yes; then
6976  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978/* end confdefs.h.  */
6979#include <string.h>
6980
6981_ACEOF
6982if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6983  $EGREP "memchr" >/dev/null 2>&1; then :
6984
6985else
6986  ac_cv_header_stdc=no
6987fi
6988rm -f conftest*
6989
6990fi
6991
6992if test $ac_cv_header_stdc = yes; then
6993  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995/* end confdefs.h.  */
6996#include <stdlib.h>
6997
6998_ACEOF
6999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7000  $EGREP "free" >/dev/null 2>&1; then :
7001
7002else
7003  ac_cv_header_stdc=no
7004fi
7005rm -f conftest*
7006
7007fi
7008
7009if test $ac_cv_header_stdc = yes; then
7010  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7011  if test "$cross_compiling" = yes; then :
7012  :
7013else
7014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015/* end confdefs.h.  */
7016#include <ctype.h>
7017#include <stdlib.h>
7018#if ((' ' & 0x0FF) == 0x020)
7019# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7020# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7021#else
7022# define ISLOWER(c) \
7023		   (('a' <= (c) && (c) <= 'i') \
7024		     || ('j' <= (c) && (c) <= 'r') \
7025		     || ('s' <= (c) && (c) <= 'z'))
7026# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7027#endif
7028
7029#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7030int
7031main ()
7032{
7033  int i;
7034  for (i = 0; i < 256; i++)
7035    if (XOR (islower (i), ISLOWER (i))
7036	|| toupper (i) != TOUPPER (i))
7037      return 2;
7038  return 0;
7039}
7040_ACEOF
7041if ac_fn_c_try_run "$LINENO"; then :
7042
7043else
7044  ac_cv_header_stdc=no
7045fi
7046rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7047  conftest.$ac_objext conftest.beam conftest.$ac_ext
7048fi
7049
7050fi
7051fi
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7053$as_echo "$ac_cv_header_stdc" >&6; }
7054if test $ac_cv_header_stdc = yes; then
7055
7056$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7057
7058fi
7059
7060# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7061for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7062		  inttypes.h stdint.h unistd.h
7063do :
7064  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7065ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7066"
7067eval as_val=\$$as_ac_Header
7068   if test "x$as_val" = x""yes; then :
7069  cat >>confdefs.h <<_ACEOF
7070#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7071_ACEOF
7072
7073fi
7074
7075done
7076
7077
7078for ac_header in dlfcn.h
7079do :
7080  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7081"
7082if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7083  cat >>confdefs.h <<_ACEOF
7084#define HAVE_DLFCN_H 1
7085_ACEOF
7086
7087fi
7088
7089done
7090
7091
7092
7093# Set options
7094
7095
7096
7097        enable_dlopen=no
7098
7099
7100  enable_win32_dll=no
7101
7102
7103            # Check whether --enable-shared was given.
7104if test "${enable_shared+set}" = set; then :
7105  enableval=$enable_shared; p=${PACKAGE-default}
7106    case $enableval in
7107    yes) enable_shared=yes ;;
7108    no) enable_shared=no ;;
7109    *)
7110      enable_shared=no
7111      # Look at the argument we got.  We use all the common list separators.
7112      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7113      for pkg in $enableval; do
7114	IFS="$lt_save_ifs"
7115	if test "X$pkg" = "X$p"; then
7116	  enable_shared=yes
7117	fi
7118      done
7119      IFS="$lt_save_ifs"
7120      ;;
7121    esac
7122else
7123  enable_shared=yes
7124fi
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134  # Check whether --enable-static was given.
7135if test "${enable_static+set}" = set; then :
7136  enableval=$enable_static; p=${PACKAGE-default}
7137    case $enableval in
7138    yes) enable_static=yes ;;
7139    no) enable_static=no ;;
7140    *)
7141     enable_static=no
7142      # Look at the argument we got.  We use all the common list separators.
7143      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7144      for pkg in $enableval; do
7145	IFS="$lt_save_ifs"
7146	if test "X$pkg" = "X$p"; then
7147	  enable_static=yes
7148	fi
7149      done
7150      IFS="$lt_save_ifs"
7151      ;;
7152    esac
7153else
7154  enable_static=yes
7155fi
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166# Check whether --with-pic was given.
7167if test "${with_pic+set}" = set; then :
7168  withval=$with_pic; pic_mode="$withval"
7169else
7170  pic_mode=default
7171fi
7172
7173
7174test -z "$pic_mode" && pic_mode=default
7175
7176
7177
7178
7179
7180
7181
7182  # Check whether --enable-fast-install was given.
7183if test "${enable_fast_install+set}" = set; then :
7184  enableval=$enable_fast_install; p=${PACKAGE-default}
7185    case $enableval in
7186    yes) enable_fast_install=yes ;;
7187    no) enable_fast_install=no ;;
7188    *)
7189      enable_fast_install=no
7190      # Look at the argument we got.  We use all the common list separators.
7191      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7192      for pkg in $enableval; do
7193	IFS="$lt_save_ifs"
7194	if test "X$pkg" = "X$p"; then
7195	  enable_fast_install=yes
7196	fi
7197      done
7198      IFS="$lt_save_ifs"
7199      ;;
7200    esac
7201else
7202  enable_fast_install=yes
7203fi
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215# This can be used to rebuild libtool when needed
7216LIBTOOL_DEPS="$ltmain"
7217
7218# Always use our own libtool.
7219LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245test -z "$LN_S" && LN_S="ln -s"
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260if test -n "${ZSH_VERSION+set}" ; then
7261   setopt NO_GLOB_SUBST
7262fi
7263
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7265$as_echo_n "checking for objdir... " >&6; }
7266if test "${lt_cv_objdir+set}" = set; then :
7267  $as_echo_n "(cached) " >&6
7268else
7269  rm -f .libs 2>/dev/null
7270mkdir .libs 2>/dev/null
7271if test -d .libs; then
7272  lt_cv_objdir=.libs
7273else
7274  # MS-DOS does not allow filenames that begin with a dot.
7275  lt_cv_objdir=_libs
7276fi
7277rmdir .libs 2>/dev/null
7278fi
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7280$as_echo "$lt_cv_objdir" >&6; }
7281objdir=$lt_cv_objdir
7282
7283
7284
7285
7286
7287cat >>confdefs.h <<_ACEOF
7288#define LT_OBJDIR "$lt_cv_objdir/"
7289_ACEOF
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307case $host_os in
7308aix3*)
7309  # AIX sometimes has problems with the GCC collect2 program.  For some
7310  # reason, if we set the COLLECT_NAMES environment variable, the problems
7311  # vanish in a puff of smoke.
7312  if test "X${COLLECT_NAMES+set}" != Xset; then
7313    COLLECT_NAMES=
7314    export COLLECT_NAMES
7315  fi
7316  ;;
7317esac
7318
7319# Sed substitution that helps us do robust quoting.  It backslashifies
7320# metacharacters that are still active within double-quoted strings.
7321sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7322
7323# Same as above, but do not quote variable references.
7324double_quote_subst='s/\(["`\\]\)/\\\1/g'
7325
7326# Sed substitution to delay expansion of an escaped shell variable in a
7327# double_quote_subst'ed string.
7328delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7329
7330# Sed substitution to delay expansion of an escaped single quote.
7331delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7332
7333# Sed substitution to avoid accidental globbing in evaled expressions
7334no_glob_subst='s/\*/\\\*/g'
7335
7336# Global variables:
7337ofile=libtool
7338can_build_shared=yes
7339
7340# All known linkers require a `.a' archive for static linking (except MSVC,
7341# which needs '.lib').
7342libext=a
7343
7344with_gnu_ld="$lt_cv_prog_gnu_ld"
7345
7346old_CC="$CC"
7347old_CFLAGS="$CFLAGS"
7348
7349# Set sane defaults for various variables
7350test -z "$CC" && CC=cc
7351test -z "$LTCC" && LTCC=$CC
7352test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7353test -z "$LD" && LD=ld
7354test -z "$ac_objext" && ac_objext=o
7355
7356for cc_temp in $compiler""; do
7357  case $cc_temp in
7358    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7359    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7360    \-*) ;;
7361    *) break;;
7362  esac
7363done
7364cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7365
7366
7367# Only perform the check for file, if the check method requires it
7368test -z "$MAGIC_CMD" && MAGIC_CMD=file
7369case $deplibs_check_method in
7370file_magic*)
7371  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7372    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7373$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7374if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7375  $as_echo_n "(cached) " >&6
7376else
7377  case $MAGIC_CMD in
7378[\\/*] |  ?:[\\/]*)
7379  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7380  ;;
7381*)
7382  lt_save_MAGIC_CMD="$MAGIC_CMD"
7383  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7384  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7385  for ac_dir in $ac_dummy; do
7386    IFS="$lt_save_ifs"
7387    test -z "$ac_dir" && ac_dir=.
7388    if test -f $ac_dir/${ac_tool_prefix}file; then
7389      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7390      if test -n "$file_magic_test_file"; then
7391	case $deplibs_check_method in
7392	"file_magic "*)
7393	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7394	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7395	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7396	    $EGREP "$file_magic_regex" > /dev/null; then
7397	    :
7398	  else
7399	    cat <<_LT_EOF 1>&2
7400
7401*** Warning: the command libtool uses to detect shared libraries,
7402*** $file_magic_cmd, produces output that libtool cannot recognize.
7403*** The result is that libtool may fail to recognize shared libraries
7404*** as such.  This will affect the creation of libtool libraries that
7405*** depend on shared libraries, but programs linked with such libtool
7406*** libraries will work regardless of this problem.  Nevertheless, you
7407*** may want to report the problem to your system manager and/or to
7408*** bug-libtool@gnu.org
7409
7410_LT_EOF
7411	  fi ;;
7412	esac
7413      fi
7414      break
7415    fi
7416  done
7417  IFS="$lt_save_ifs"
7418  MAGIC_CMD="$lt_save_MAGIC_CMD"
7419  ;;
7420esac
7421fi
7422
7423MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7424if test -n "$MAGIC_CMD"; then
7425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7426$as_echo "$MAGIC_CMD" >&6; }
7427else
7428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429$as_echo "no" >&6; }
7430fi
7431
7432
7433
7434
7435
7436if test -z "$lt_cv_path_MAGIC_CMD"; then
7437  if test -n "$ac_tool_prefix"; then
7438    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7439$as_echo_n "checking for file... " >&6; }
7440if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7441  $as_echo_n "(cached) " >&6
7442else
7443  case $MAGIC_CMD in
7444[\\/*] |  ?:[\\/]*)
7445  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7446  ;;
7447*)
7448  lt_save_MAGIC_CMD="$MAGIC_CMD"
7449  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7450  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7451  for ac_dir in $ac_dummy; do
7452    IFS="$lt_save_ifs"
7453    test -z "$ac_dir" && ac_dir=.
7454    if test -f $ac_dir/file; then
7455      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7456      if test -n "$file_magic_test_file"; then
7457	case $deplibs_check_method in
7458	"file_magic "*)
7459	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7460	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7461	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7462	    $EGREP "$file_magic_regex" > /dev/null; then
7463	    :
7464	  else
7465	    cat <<_LT_EOF 1>&2
7466
7467*** Warning: the command libtool uses to detect shared libraries,
7468*** $file_magic_cmd, produces output that libtool cannot recognize.
7469*** The result is that libtool may fail to recognize shared libraries
7470*** as such.  This will affect the creation of libtool libraries that
7471*** depend on shared libraries, but programs linked with such libtool
7472*** libraries will work regardless of this problem.  Nevertheless, you
7473*** may want to report the problem to your system manager and/or to
7474*** bug-libtool@gnu.org
7475
7476_LT_EOF
7477	  fi ;;
7478	esac
7479      fi
7480      break
7481    fi
7482  done
7483  IFS="$lt_save_ifs"
7484  MAGIC_CMD="$lt_save_MAGIC_CMD"
7485  ;;
7486esac
7487fi
7488
7489MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7490if test -n "$MAGIC_CMD"; then
7491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7492$as_echo "$MAGIC_CMD" >&6; }
7493else
7494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495$as_echo "no" >&6; }
7496fi
7497
7498
7499  else
7500    MAGIC_CMD=:
7501  fi
7502fi
7503
7504  fi
7505  ;;
7506esac
7507
7508# Use C for the default configuration in the libtool script
7509
7510lt_save_CC="$CC"
7511ac_ext=c
7512ac_cpp='$CPP $CPPFLAGS'
7513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7515ac_compiler_gnu=$ac_cv_c_compiler_gnu
7516
7517
7518# Source file extension for C test sources.
7519ac_ext=c
7520
7521# Object file extension for compiled C test sources.
7522objext=o
7523objext=$objext
7524
7525# Code to be used in simple compile tests
7526lt_simple_compile_test_code="int some_variable = 0;"
7527
7528# Code to be used in simple link tests
7529lt_simple_link_test_code='int main(){return(0);}'
7530
7531
7532
7533
7534
7535
7536
7537# If no C compiler was specified, use CC.
7538LTCC=${LTCC-"$CC"}
7539
7540# If no C compiler flags were specified, use CFLAGS.
7541LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7542
7543# Allow CC to be a program name with arguments.
7544compiler=$CC
7545
7546# Save the default compiler, since it gets overwritten when the other
7547# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7548compiler_DEFAULT=$CC
7549
7550# save warnings/boilerplate of simple test code
7551ac_outfile=conftest.$ac_objext
7552echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7553eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7554_lt_compiler_boilerplate=`cat conftest.err`
7555$RM conftest*
7556
7557ac_outfile=conftest.$ac_objext
7558echo "$lt_simple_link_test_code" >conftest.$ac_ext
7559eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7560_lt_linker_boilerplate=`cat conftest.err`
7561$RM -r conftest*
7562
7563
7564if test -n "$compiler"; then
7565
7566lt_prog_compiler_no_builtin_flag=
7567
7568if test "$GCC" = yes; then
7569  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7570
7571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7572$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7573if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7574  $as_echo_n "(cached) " >&6
7575else
7576  lt_cv_prog_compiler_rtti_exceptions=no
7577   ac_outfile=conftest.$ac_objext
7578   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7579   lt_compiler_flag="-fno-rtti -fno-exceptions"
7580   # Insert the option either (1) after the last *FLAGS variable, or
7581   # (2) before a word containing "conftest.", or (3) at the end.
7582   # Note that $ac_compile itself does not contain backslashes and begins
7583   # with a dollar sign (not a hyphen), so the echo should work correctly.
7584   # The option is referenced via a variable to avoid confusing sed.
7585   lt_compile=`echo "$ac_compile" | $SED \
7586   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7587   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7588   -e 's:$: $lt_compiler_flag:'`
7589   (eval echo "\"\$as_me:7589: $lt_compile\"" >&5)
7590   (eval "$lt_compile" 2>conftest.err)
7591   ac_status=$?
7592   cat conftest.err >&5
7593   echo "$as_me:7593: \$? = $ac_status" >&5
7594   if (exit $ac_status) && test -s "$ac_outfile"; then
7595     # The compiler can only warn and ignore the option if not recognized
7596     # So say no if there are warnings other than the usual output.
7597     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7598     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7599     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7600       lt_cv_prog_compiler_rtti_exceptions=yes
7601     fi
7602   fi
7603   $RM conftest*
7604
7605fi
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7607$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7608
7609if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7610    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7611else
7612    :
7613fi
7614
7615fi
7616
7617
7618
7619
7620
7621
7622  lt_prog_compiler_wl=
7623lt_prog_compiler_pic=
7624lt_prog_compiler_static=
7625
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7627$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7628
7629  if test "$GCC" = yes; then
7630    lt_prog_compiler_wl='-Wl,'
7631    lt_prog_compiler_static='-static'
7632
7633    case $host_os in
7634      aix*)
7635      # All AIX code is PIC.
7636      if test "$host_cpu" = ia64; then
7637	# AIX 5 now supports IA64 processor
7638	lt_prog_compiler_static='-Bstatic'
7639      fi
7640      ;;
7641
7642    amigaos*)
7643      case $host_cpu in
7644      powerpc)
7645            # see comment about AmigaOS4 .so support
7646            lt_prog_compiler_pic='-fPIC'
7647        ;;
7648      m68k)
7649            # FIXME: we need at least 68020 code to build shared libraries, but
7650            # adding the `-m68020' flag to GCC prevents building anything better,
7651            # like `-m68040'.
7652            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7653        ;;
7654      esac
7655      ;;
7656
7657    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7658      # PIC is the default for these OSes.
7659      ;;
7660
7661    mingw* | cygwin* | pw32* | os2* | cegcc*)
7662      # This hack is so that the source file can tell whether it is being
7663      # built for inclusion in a dll (and should export symbols for example).
7664      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7665      # (--disable-auto-import) libraries
7666      lt_prog_compiler_pic='-DDLL_EXPORT'
7667      ;;
7668
7669    darwin* | rhapsody*)
7670      # PIC is the default on this platform
7671      # Common symbols not allowed in MH_DYLIB files
7672      lt_prog_compiler_pic='-fno-common'
7673      ;;
7674
7675    hpux*)
7676      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7677      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7678      # sets the default TLS model and affects inlining.
7679      case $host_cpu in
7680      hppa*64*)
7681	# +Z the default
7682	;;
7683      *)
7684	lt_prog_compiler_pic='-fPIC'
7685	;;
7686      esac
7687      ;;
7688
7689    interix[3-9]*)
7690      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7691      # Instead, we relocate shared libraries at runtime.
7692      ;;
7693
7694    msdosdjgpp*)
7695      # Just because we use GCC doesn't mean we suddenly get shared libraries
7696      # on systems that don't support them.
7697      lt_prog_compiler_can_build_shared=no
7698      enable_shared=no
7699      ;;
7700
7701    *nto* | *qnx*)
7702      # QNX uses GNU C++, but need to define -shared option too, otherwise
7703      # it will coredump.
7704      lt_prog_compiler_pic='-fPIC -shared'
7705      ;;
7706
7707    sysv4*MP*)
7708      if test -d /usr/nec; then
7709	lt_prog_compiler_pic=-Kconform_pic
7710      fi
7711      ;;
7712
7713    *)
7714      lt_prog_compiler_pic='-fPIC'
7715      ;;
7716    esac
7717  else
7718    # PORTME Check for flag to pass linker flags through the system compiler.
7719    case $host_os in
7720    aix*)
7721      lt_prog_compiler_wl='-Wl,'
7722      if test "$host_cpu" = ia64; then
7723	# AIX 5 now supports IA64 processor
7724	lt_prog_compiler_static='-Bstatic'
7725      else
7726	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7727      fi
7728      ;;
7729
7730    mingw* | cygwin* | pw32* | os2* | cegcc*)
7731      # This hack is so that the source file can tell whether it is being
7732      # built for inclusion in a dll (and should export symbols for example).
7733      lt_prog_compiler_pic='-DDLL_EXPORT'
7734      ;;
7735
7736    hpux9* | hpux10* | hpux11*)
7737      lt_prog_compiler_wl='-Wl,'
7738      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7739      # not for PA HP-UX.
7740      case $host_cpu in
7741      hppa*64*|ia64*)
7742	# +Z the default
7743	;;
7744      *)
7745	lt_prog_compiler_pic='+Z'
7746	;;
7747      esac
7748      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7749      lt_prog_compiler_static='${wl}-a ${wl}archive'
7750      ;;
7751
7752    irix5* | irix6* | nonstopux*)
7753      lt_prog_compiler_wl='-Wl,'
7754      # PIC (with -KPIC) is the default.
7755      lt_prog_compiler_static='-non_shared'
7756      ;;
7757
7758    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7759      case $cc_basename in
7760      # old Intel for x86_64 which still supported -KPIC.
7761      ecc*)
7762	lt_prog_compiler_wl='-Wl,'
7763	lt_prog_compiler_pic='-KPIC'
7764	lt_prog_compiler_static='-static'
7765        ;;
7766      # icc used to be incompatible with GCC.
7767      # ICC 10 doesn't accept -KPIC any more.
7768      icc* | ifort*)
7769	lt_prog_compiler_wl='-Wl,'
7770	lt_prog_compiler_pic='-fPIC'
7771	lt_prog_compiler_static='-static'
7772        ;;
7773      # Lahey Fortran 8.1.
7774      lf95*)
7775	lt_prog_compiler_wl='-Wl,'
7776	lt_prog_compiler_pic='--shared'
7777	lt_prog_compiler_static='--static'
7778	;;
7779      pgcc* | pgf77* | pgf90* | pgf95*)
7780        # Portland Group compilers (*not* the Pentium gcc compiler,
7781	# which looks to be a dead project)
7782	lt_prog_compiler_wl='-Wl,'
7783	lt_prog_compiler_pic='-fpic'
7784	lt_prog_compiler_static='-Bstatic'
7785        ;;
7786      ccc*)
7787        lt_prog_compiler_wl='-Wl,'
7788        # All Alpha code is PIC.
7789        lt_prog_compiler_static='-non_shared'
7790        ;;
7791      xl*)
7792	# IBM XL C 8.0/Fortran 10.1 on PPC
7793	lt_prog_compiler_wl='-Wl,'
7794	lt_prog_compiler_pic='-qpic'
7795	lt_prog_compiler_static='-qstaticlink'
7796	;;
7797      *)
7798	case `$CC -V 2>&1 | sed 5q` in
7799	*Sun\ C*)
7800	  # Sun C 5.9
7801	  lt_prog_compiler_pic='-KPIC'
7802	  lt_prog_compiler_static='-Bstatic'
7803	  lt_prog_compiler_wl='-Wl,'
7804	  ;;
7805	*Sun\ F*)
7806	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7807	  lt_prog_compiler_pic='-KPIC'
7808	  lt_prog_compiler_static='-Bstatic'
7809	  lt_prog_compiler_wl=''
7810	  ;;
7811	esac
7812	;;
7813      esac
7814      ;;
7815
7816    newsos6)
7817      lt_prog_compiler_pic='-KPIC'
7818      lt_prog_compiler_static='-Bstatic'
7819      ;;
7820
7821    *nto* | *qnx*)
7822      # QNX uses GNU C++, but need to define -shared option too, otherwise
7823      # it will coredump.
7824      lt_prog_compiler_pic='-fPIC -shared'
7825      ;;
7826
7827    osf3* | osf4* | osf5*)
7828      lt_prog_compiler_wl='-Wl,'
7829      # All OSF/1 code is PIC.
7830      lt_prog_compiler_static='-non_shared'
7831      ;;
7832
7833    rdos*)
7834      lt_prog_compiler_static='-non_shared'
7835      ;;
7836
7837    solaris*)
7838      lt_prog_compiler_pic='-KPIC'
7839      lt_prog_compiler_static='-Bstatic'
7840      case $cc_basename in
7841      f77* | f90* | f95*)
7842	lt_prog_compiler_wl='-Qoption ld ';;
7843      *)
7844	lt_prog_compiler_wl='-Wl,';;
7845      esac
7846      ;;
7847
7848    sunos4*)
7849      lt_prog_compiler_wl='-Qoption ld '
7850      lt_prog_compiler_pic='-PIC'
7851      lt_prog_compiler_static='-Bstatic'
7852      ;;
7853
7854    sysv4 | sysv4.2uw2* | sysv4.3*)
7855      lt_prog_compiler_wl='-Wl,'
7856      lt_prog_compiler_pic='-KPIC'
7857      lt_prog_compiler_static='-Bstatic'
7858      ;;
7859
7860    sysv4*MP*)
7861      if test -d /usr/nec ;then
7862	lt_prog_compiler_pic='-Kconform_pic'
7863	lt_prog_compiler_static='-Bstatic'
7864      fi
7865      ;;
7866
7867    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7868      lt_prog_compiler_wl='-Wl,'
7869      lt_prog_compiler_pic='-KPIC'
7870      lt_prog_compiler_static='-Bstatic'
7871      ;;
7872
7873    unicos*)
7874      lt_prog_compiler_wl='-Wl,'
7875      lt_prog_compiler_can_build_shared=no
7876      ;;
7877
7878    uts4*)
7879      lt_prog_compiler_pic='-pic'
7880      lt_prog_compiler_static='-Bstatic'
7881      ;;
7882
7883    *)
7884      lt_prog_compiler_can_build_shared=no
7885      ;;
7886    esac
7887  fi
7888
7889case $host_os in
7890  # For platforms which do not support PIC, -DPIC is meaningless:
7891  *djgpp*)
7892    lt_prog_compiler_pic=
7893    ;;
7894  *)
7895    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7896    ;;
7897esac
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7899$as_echo "$lt_prog_compiler_pic" >&6; }
7900
7901
7902
7903
7904
7905
7906#
7907# Check to make sure the PIC flag actually works.
7908#
7909if test -n "$lt_prog_compiler_pic"; then
7910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7911$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7912if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7913  $as_echo_n "(cached) " >&6
7914else
7915  lt_cv_prog_compiler_pic_works=no
7916   ac_outfile=conftest.$ac_objext
7917   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7918   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7919   # Insert the option either (1) after the last *FLAGS variable, or
7920   # (2) before a word containing "conftest.", or (3) at the end.
7921   # Note that $ac_compile itself does not contain backslashes and begins
7922   # with a dollar sign (not a hyphen), so the echo should work correctly.
7923   # The option is referenced via a variable to avoid confusing sed.
7924   lt_compile=`echo "$ac_compile" | $SED \
7925   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7926   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7927   -e 's:$: $lt_compiler_flag:'`
7928   (eval echo "\"\$as_me:7928: $lt_compile\"" >&5)
7929   (eval "$lt_compile" 2>conftest.err)
7930   ac_status=$?
7931   cat conftest.err >&5
7932   echo "$as_me:7932: \$? = $ac_status" >&5
7933   if (exit $ac_status) && test -s "$ac_outfile"; then
7934     # The compiler can only warn and ignore the option if not recognized
7935     # So say no if there are warnings other than the usual output.
7936     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7937     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7938     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7939       lt_cv_prog_compiler_pic_works=yes
7940     fi
7941   fi
7942   $RM conftest*
7943
7944fi
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7946$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7947
7948if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7949    case $lt_prog_compiler_pic in
7950     "" | " "*) ;;
7951     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7952     esac
7953else
7954    lt_prog_compiler_pic=
7955     lt_prog_compiler_can_build_shared=no
7956fi
7957
7958fi
7959
7960
7961
7962
7963
7964
7965#
7966# Check to make sure the static flag actually works.
7967#
7968wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7970$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7971if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7972  $as_echo_n "(cached) " >&6
7973else
7974  lt_cv_prog_compiler_static_works=no
7975   save_LDFLAGS="$LDFLAGS"
7976   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7977   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7978   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7979     # The linker can only warn and ignore the option if not recognized
7980     # So say no if there are warnings
7981     if test -s conftest.err; then
7982       # Append any errors to the config.log.
7983       cat conftest.err 1>&5
7984       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7985       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7986       if diff conftest.exp conftest.er2 >/dev/null; then
7987         lt_cv_prog_compiler_static_works=yes
7988       fi
7989     else
7990       lt_cv_prog_compiler_static_works=yes
7991     fi
7992   fi
7993   $RM -r conftest*
7994   LDFLAGS="$save_LDFLAGS"
7995
7996fi
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7998$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7999
8000if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8001    :
8002else
8003    lt_prog_compiler_static=
8004fi
8005
8006
8007
8008
8009
8010
8011
8012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8013$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8014if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8015  $as_echo_n "(cached) " >&6
8016else
8017  lt_cv_prog_compiler_c_o=no
8018   $RM -r conftest 2>/dev/null
8019   mkdir conftest
8020   cd conftest
8021   mkdir out
8022   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8023
8024   lt_compiler_flag="-o out/conftest2.$ac_objext"
8025   # Insert the option either (1) after the last *FLAGS variable, or
8026   # (2) before a word containing "conftest.", or (3) at the end.
8027   # Note that $ac_compile itself does not contain backslashes and begins
8028   # with a dollar sign (not a hyphen), so the echo should work correctly.
8029   lt_compile=`echo "$ac_compile" | $SED \
8030   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8031   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8032   -e 's:$: $lt_compiler_flag:'`
8033   (eval echo "\"\$as_me:8033: $lt_compile\"" >&5)
8034   (eval "$lt_compile" 2>out/conftest.err)
8035   ac_status=$?
8036   cat out/conftest.err >&5
8037   echo "$as_me:8037: \$? = $ac_status" >&5
8038   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8039   then
8040     # The compiler can only warn and ignore the option if not recognized
8041     # So say no if there are warnings
8042     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8043     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8044     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8045       lt_cv_prog_compiler_c_o=yes
8046     fi
8047   fi
8048   chmod u+w . 2>&5
8049   $RM conftest*
8050   # SGI C++ compiler will create directory out/ii_files/ for
8051   # template instantiation
8052   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8053   $RM out/* && rmdir out
8054   cd ..
8055   $RM -r conftest
8056   $RM conftest*
8057
8058fi
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8060$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8061
8062
8063
8064
8065
8066
8067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8068$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8069if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8070  $as_echo_n "(cached) " >&6
8071else
8072  lt_cv_prog_compiler_c_o=no
8073   $RM -r conftest 2>/dev/null
8074   mkdir conftest
8075   cd conftest
8076   mkdir out
8077   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8078
8079   lt_compiler_flag="-o out/conftest2.$ac_objext"
8080   # Insert the option either (1) after the last *FLAGS variable, or
8081   # (2) before a word containing "conftest.", or (3) at the end.
8082   # Note that $ac_compile itself does not contain backslashes and begins
8083   # with a dollar sign (not a hyphen), so the echo should work correctly.
8084   lt_compile=`echo "$ac_compile" | $SED \
8085   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8086   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8087   -e 's:$: $lt_compiler_flag:'`
8088   (eval echo "\"\$as_me:8088: $lt_compile\"" >&5)
8089   (eval "$lt_compile" 2>out/conftest.err)
8090   ac_status=$?
8091   cat out/conftest.err >&5
8092   echo "$as_me:8092: \$? = $ac_status" >&5
8093   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8094   then
8095     # The compiler can only warn and ignore the option if not recognized
8096     # So say no if there are warnings
8097     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8098     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8099     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8100       lt_cv_prog_compiler_c_o=yes
8101     fi
8102   fi
8103   chmod u+w . 2>&5
8104   $RM conftest*
8105   # SGI C++ compiler will create directory out/ii_files/ for
8106   # template instantiation
8107   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8108   $RM out/* && rmdir out
8109   cd ..
8110   $RM -r conftest
8111   $RM conftest*
8112
8113fi
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8115$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8116
8117
8118
8119
8120hard_links="nottested"
8121if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8122  # do not overwrite the value of need_locks provided by the user
8123  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8124$as_echo_n "checking if we can lock with hard links... " >&6; }
8125  hard_links=yes
8126  $RM conftest*
8127  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8128  touch conftest.a
8129  ln conftest.a conftest.b 2>&5 || hard_links=no
8130  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8132$as_echo "$hard_links" >&6; }
8133  if test "$hard_links" = no; then
8134    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8135$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8136    need_locks=warn
8137  fi
8138else
8139  need_locks=no
8140fi
8141
8142
8143
8144
8145
8146
8147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8148$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8149
8150  runpath_var=
8151  allow_undefined_flag=
8152  always_export_symbols=no
8153  archive_cmds=
8154  archive_expsym_cmds=
8155  compiler_needs_object=no
8156  enable_shared_with_static_runtimes=no
8157  export_dynamic_flag_spec=
8158  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8159  hardcode_automatic=no
8160  hardcode_direct=no
8161  hardcode_direct_absolute=no
8162  hardcode_libdir_flag_spec=
8163  hardcode_libdir_flag_spec_ld=
8164  hardcode_libdir_separator=
8165  hardcode_minus_L=no
8166  hardcode_shlibpath_var=unsupported
8167  inherit_rpath=no
8168  link_all_deplibs=unknown
8169  module_cmds=
8170  module_expsym_cmds=
8171  old_archive_from_new_cmds=
8172  old_archive_from_expsyms_cmds=
8173  thread_safe_flag_spec=
8174  whole_archive_flag_spec=
8175  # include_expsyms should be a list of space-separated symbols to be *always*
8176  # included in the symbol list
8177  include_expsyms=
8178  # exclude_expsyms can be an extended regexp of symbols to exclude
8179  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8180  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8181  # as well as any symbol that contains `d'.
8182  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8183  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8184  # platforms (ab)use it in PIC code, but their linkers get confused if
8185  # the symbol is explicitly referenced.  Since portable code cannot
8186  # rely on this symbol name, it's probably fine to never include it in
8187  # preloaded symbol tables.
8188  # Exclude shared library initialization/finalization symbols.
8189  extract_expsyms_cmds=
8190
8191  case $host_os in
8192  cygwin* | mingw* | pw32* | cegcc*)
8193    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8194    # When not using gcc, we currently assume that we are using
8195    # Microsoft Visual C++.
8196    if test "$GCC" != yes; then
8197      with_gnu_ld=no
8198    fi
8199    ;;
8200  interix*)
8201    # we just hope/assume this is gcc and not c89 (= MSVC++)
8202    with_gnu_ld=yes
8203    ;;
8204  openbsd*)
8205    with_gnu_ld=no
8206    ;;
8207  linux* | k*bsd*-gnu)
8208    link_all_deplibs=no
8209    ;;
8210  esac
8211
8212  ld_shlibs=yes
8213  if test "$with_gnu_ld" = yes; then
8214    # If archive_cmds runs LD, not CC, wlarc should be empty
8215    wlarc='${wl}'
8216
8217    # Set some defaults for GNU ld with shared library support. These
8218    # are reset later if shared libraries are not supported. Putting them
8219    # here allows them to be overridden if necessary.
8220    runpath_var=LD_RUN_PATH
8221    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8222    export_dynamic_flag_spec='${wl}--export-dynamic'
8223    # ancient GNU ld didn't support --whole-archive et. al.
8224    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8225      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8226    else
8227      whole_archive_flag_spec=
8228    fi
8229    supports_anon_versioning=no
8230    case `$LD -v 2>&1` in
8231      *GNU\ gold*) supports_anon_versioning=yes ;;
8232      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8233      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8234      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8235      *\ 2.11.*) ;; # other 2.11 versions
8236      *) supports_anon_versioning=yes ;;
8237    esac
8238
8239    # See if GNU ld supports shared libraries.
8240    case $host_os in
8241    aix[3-9]*)
8242      # On AIX/PPC, the GNU linker is very broken
8243      if test "$host_cpu" != ia64; then
8244	ld_shlibs=no
8245	cat <<_LT_EOF 1>&2
8246
8247*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8248*** to be unable to reliably create shared libraries on AIX.
8249*** Therefore, libtool is disabling shared libraries support.  If you
8250*** really care for shared libraries, you may want to modify your PATH
8251*** so that a non-GNU linker is found, and then restart.
8252
8253_LT_EOF
8254      fi
8255      ;;
8256
8257    amigaos*)
8258      case $host_cpu in
8259      powerpc)
8260            # see comment about AmigaOS4 .so support
8261            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8262            archive_expsym_cmds=''
8263        ;;
8264      m68k)
8265            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)'
8266            hardcode_libdir_flag_spec='-L$libdir'
8267            hardcode_minus_L=yes
8268        ;;
8269      esac
8270      ;;
8271
8272    beos*)
8273      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8274	allow_undefined_flag=unsupported
8275	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8276	# support --undefined.  This deserves some investigation.  FIXME
8277	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8278      else
8279	ld_shlibs=no
8280      fi
8281      ;;
8282
8283    cygwin* | mingw* | pw32* | cegcc*)
8284      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8285      # as there is no search path for DLLs.
8286      hardcode_libdir_flag_spec='-L$libdir'
8287      allow_undefined_flag=unsupported
8288      always_export_symbols=no
8289      enable_shared_with_static_runtimes=yes
8290      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8291
8292      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8293        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8294	# If the export-symbols file already is a .def file (1st line
8295	# is EXPORTS), use it as is; otherwise, prepend...
8296	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8297	  cp $export_symbols $output_objdir/$soname.def;
8298	else
8299	  echo EXPORTS > $output_objdir/$soname.def;
8300	  cat $export_symbols >> $output_objdir/$soname.def;
8301	fi~
8302	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8303      else
8304	ld_shlibs=no
8305      fi
8306      ;;
8307
8308    interix[3-9]*)
8309      hardcode_direct=no
8310      hardcode_shlibpath_var=no
8311      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8312      export_dynamic_flag_spec='${wl}-E'
8313      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8314      # Instead, shared libraries are loaded at an image base (0x10000000 by
8315      # default) and relocated if they conflict, which is a slow very memory
8316      # consuming and fragmenting process.  To avoid this, we pick a random,
8317      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8318      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8319      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8320      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'
8321      ;;
8322
8323    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8324      tmp_diet=no
8325      if test "$host_os" = linux-dietlibc; then
8326	case $cc_basename in
8327	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8328	esac
8329      fi
8330      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8331	 && test "$tmp_diet" = no
8332      then
8333	tmp_addflag=
8334	tmp_sharedflag='-shared'
8335	case $cc_basename,$host_cpu in
8336        pgcc*)				# Portland Group C compiler
8337	  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'
8338	  tmp_addflag=' $pic_flag'
8339	  ;;
8340	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8341	  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'
8342	  tmp_addflag=' $pic_flag -Mnomain' ;;
8343	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8344	  tmp_addflag=' -i_dynamic' ;;
8345	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8346	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8347	ifc* | ifort*)			# Intel Fortran compiler
8348	  tmp_addflag=' -nofor_main' ;;
8349	lf95*)				# Lahey Fortran 8.1
8350	  whole_archive_flag_spec=
8351	  tmp_sharedflag='--shared' ;;
8352	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8353	  tmp_sharedflag='-qmkshrobj'
8354	  tmp_addflag= ;;
8355	esac
8356	case `$CC -V 2>&1 | sed 5q` in
8357	*Sun\ C*)			# Sun C 5.9
8358	  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'
8359	  compiler_needs_object=yes
8360	  tmp_sharedflag='-G' ;;
8361	*Sun\ F*)			# Sun Fortran 8.3
8362	  tmp_sharedflag='-G' ;;
8363	esac
8364	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8365
8366        if test "x$supports_anon_versioning" = xyes; then
8367          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8368	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8369	    echo "local: *; };" >> $output_objdir/$libname.ver~
8370	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8371        fi
8372
8373	case $cc_basename in
8374	xlf*)
8375	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8376	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8377	  hardcode_libdir_flag_spec=
8378	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8379	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8380	  if test "x$supports_anon_versioning" = xyes; then
8381	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8382	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8383	      echo "local: *; };" >> $output_objdir/$libname.ver~
8384	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8385	  fi
8386	  ;;
8387	esac
8388      else
8389        ld_shlibs=no
8390      fi
8391      ;;
8392
8393    netbsd* | netbsdelf*-gnu)
8394      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8395	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8396	wlarc=
8397      else
8398	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8399	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8400      fi
8401      ;;
8402
8403    solaris*)
8404      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8405	ld_shlibs=no
8406	cat <<_LT_EOF 1>&2
8407
8408*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8409*** create shared libraries on Solaris systems.  Therefore, libtool
8410*** is disabling shared libraries support.  We urge you to upgrade GNU
8411*** binutils to release 2.9.1 or newer.  Another option is to modify
8412*** your PATH or compiler configuration so that the native linker is
8413*** used, and then restart.
8414
8415_LT_EOF
8416      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8417	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8418	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8419      else
8420	ld_shlibs=no
8421      fi
8422      ;;
8423
8424    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8425      case `$LD -v 2>&1` in
8426        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8427	ld_shlibs=no
8428	cat <<_LT_EOF 1>&2
8429
8430*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8431*** reliably create shared libraries on SCO systems.  Therefore, libtool
8432*** is disabling shared libraries support.  We urge you to upgrade GNU
8433*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8434*** your PATH or compiler configuration so that the native linker is
8435*** used, and then restart.
8436
8437_LT_EOF
8438	;;
8439	*)
8440	  # For security reasons, it is highly recommended that you always
8441	  # use absolute paths for naming shared libraries, and exclude the
8442	  # DT_RUNPATH tag from executables and libraries.  But doing so
8443	  # requires that you compile everything twice, which is a pain.
8444	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8445	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8446	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8447	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8448	  else
8449	    ld_shlibs=no
8450	  fi
8451	;;
8452      esac
8453      ;;
8454
8455    sunos4*)
8456      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8457      wlarc=
8458      hardcode_direct=yes
8459      hardcode_shlibpath_var=no
8460      ;;
8461
8462    *)
8463      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8464	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8465	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8466      else
8467	ld_shlibs=no
8468      fi
8469      ;;
8470    esac
8471
8472    if test "$ld_shlibs" = no; then
8473      runpath_var=
8474      hardcode_libdir_flag_spec=
8475      export_dynamic_flag_spec=
8476      whole_archive_flag_spec=
8477    fi
8478  else
8479    # PORTME fill in a description of your system's linker (not GNU ld)
8480    case $host_os in
8481    aix3*)
8482      allow_undefined_flag=unsupported
8483      always_export_symbols=yes
8484      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'
8485      # Note: this linker hardcodes the directories in LIBPATH if there
8486      # are no directories specified by -L.
8487      hardcode_minus_L=yes
8488      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8489	# Neither direct hardcoding nor static linking is supported with a
8490	# broken collect2.
8491	hardcode_direct=unsupported
8492      fi
8493      ;;
8494
8495    aix[4-9]*)
8496      if test "$host_cpu" = ia64; then
8497	# On IA64, the linker does run time linking by default, so we don't
8498	# have to do anything special.
8499	aix_use_runtimelinking=no
8500	exp_sym_flag='-Bexport'
8501	no_entry_flag=""
8502      else
8503	# If we're using GNU nm, then we don't want the "-C" option.
8504	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8505	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8506	  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'
8507	else
8508	  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'
8509	fi
8510	aix_use_runtimelinking=no
8511
8512	# Test if we are trying to use run time linking or normal
8513	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8514	# need to do runtime linking.
8515	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8516	  for ld_flag in $LDFLAGS; do
8517	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8518	    aix_use_runtimelinking=yes
8519	    break
8520	  fi
8521	  done
8522	  ;;
8523	esac
8524
8525	exp_sym_flag='-bexport'
8526	no_entry_flag='-bnoentry'
8527      fi
8528
8529      # When large executables or shared objects are built, AIX ld can
8530      # have problems creating the table of contents.  If linking a library
8531      # or program results in "error TOC overflow" add -mminimal-toc to
8532      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8533      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8534
8535      archive_cmds=''
8536      hardcode_direct=yes
8537      hardcode_direct_absolute=yes
8538      hardcode_libdir_separator=':'
8539      link_all_deplibs=yes
8540      file_list_spec='${wl}-f,'
8541
8542      if test "$GCC" = yes; then
8543	case $host_os in aix4.[012]|aix4.[012].*)
8544	# We only want to do this on AIX 4.2 and lower, the check
8545	# below for broken collect2 doesn't work under 4.3+
8546	  collect2name=`${CC} -print-prog-name=collect2`
8547	  if test -f "$collect2name" &&
8548	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8549	  then
8550	  # We have reworked collect2
8551	  :
8552	  else
8553	  # We have old collect2
8554	  hardcode_direct=unsupported
8555	  # It fails to find uninstalled libraries when the uninstalled
8556	  # path is not listed in the libpath.  Setting hardcode_minus_L
8557	  # to unsupported forces relinking
8558	  hardcode_minus_L=yes
8559	  hardcode_libdir_flag_spec='-L$libdir'
8560	  hardcode_libdir_separator=
8561	  fi
8562	  ;;
8563	esac
8564	shared_flag='-shared'
8565	if test "$aix_use_runtimelinking" = yes; then
8566	  shared_flag="$shared_flag "'${wl}-G'
8567	fi
8568	link_all_deplibs=no
8569      else
8570	# not using gcc
8571	if test "$host_cpu" = ia64; then
8572	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8573	# chokes on -Wl,-G. The following line is correct:
8574	  shared_flag='-G'
8575	else
8576	  if test "$aix_use_runtimelinking" = yes; then
8577	    shared_flag='${wl}-G'
8578	  else
8579	    shared_flag='${wl}-bM:SRE'
8580	  fi
8581	fi
8582      fi
8583
8584      export_dynamic_flag_spec='${wl}-bexpall'
8585      # It seems that -bexpall does not export symbols beginning with
8586      # underscore (_), so it is better to generate a list of symbols to export.
8587      always_export_symbols=yes
8588      if test "$aix_use_runtimelinking" = yes; then
8589	# Warning - without using the other runtime loading flags (-brtl),
8590	# -berok will link without error, but may produce a broken library.
8591	allow_undefined_flag='-berok'
8592        # Determine the default libpath from the value encoded in an
8593        # empty executable.
8594        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595/* end confdefs.h.  */
8596
8597int
8598main ()
8599{
8600
8601  ;
8602  return 0;
8603}
8604_ACEOF
8605if ac_fn_c_try_link "$LINENO"; then :
8606
8607lt_aix_libpath_sed='
8608    /Import File Strings/,/^$/ {
8609	/^0/ {
8610	    s/^0  *\(.*\)$/\1/
8611	    p
8612	}
8613    }'
8614aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8615# Check for a 64-bit object if we didn't find anything.
8616if test -z "$aix_libpath"; then
8617  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8618fi
8619fi
8620rm -f core conftest.err conftest.$ac_objext \
8621    conftest$ac_exeext conftest.$ac_ext
8622if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8623
8624        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8625        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"
8626      else
8627	if test "$host_cpu" = ia64; then
8628	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8629	  allow_undefined_flag="-z nodefs"
8630	  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"
8631	else
8632	 # Determine the default libpath from the value encoded in an
8633	 # empty executable.
8634	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635/* end confdefs.h.  */
8636
8637int
8638main ()
8639{
8640
8641  ;
8642  return 0;
8643}
8644_ACEOF
8645if ac_fn_c_try_link "$LINENO"; then :
8646
8647lt_aix_libpath_sed='
8648    /Import File Strings/,/^$/ {
8649	/^0/ {
8650	    s/^0  *\(.*\)$/\1/
8651	    p
8652	}
8653    }'
8654aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8655# Check for a 64-bit object if we didn't find anything.
8656if test -z "$aix_libpath"; then
8657  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8658fi
8659fi
8660rm -f core conftest.err conftest.$ac_objext \
8661    conftest$ac_exeext conftest.$ac_ext
8662if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8663
8664	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8665	  # Warning - without using the other run time loading flags,
8666	  # -berok will link without error, but may produce a broken library.
8667	  no_undefined_flag=' ${wl}-bernotok'
8668	  allow_undefined_flag=' ${wl}-berok'
8669	  # Exported symbols can be pulled into shared objects from archives
8670	  whole_archive_flag_spec='$convenience'
8671	  archive_cmds_need_lc=yes
8672	  # This is similar to how AIX traditionally builds its shared libraries.
8673	  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'
8674	fi
8675      fi
8676      ;;
8677
8678    amigaos*)
8679      case $host_cpu in
8680      powerpc)
8681            # see comment about AmigaOS4 .so support
8682            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8683            archive_expsym_cmds=''
8684        ;;
8685      m68k)
8686            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)'
8687            hardcode_libdir_flag_spec='-L$libdir'
8688            hardcode_minus_L=yes
8689        ;;
8690      esac
8691      ;;
8692
8693    bsdi[45]*)
8694      export_dynamic_flag_spec=-rdynamic
8695      ;;
8696
8697    cygwin* | mingw* | pw32* | cegcc*)
8698      # When not using gcc, we currently assume that we are using
8699      # Microsoft Visual C++.
8700      # hardcode_libdir_flag_spec is actually meaningless, as there is
8701      # no search path for DLLs.
8702      hardcode_libdir_flag_spec=' '
8703      allow_undefined_flag=unsupported
8704      # Tell ltmain to make .lib files, not .a files.
8705      libext=lib
8706      # Tell ltmain to make .dll files, not .so files.
8707      shrext_cmds=".dll"
8708      # FIXME: Setting linknames here is a bad hack.
8709      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8710      # The linker will automatically build a .lib file if we build a DLL.
8711      old_archive_from_new_cmds='true'
8712      # FIXME: Should let the user specify the lib program.
8713      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8714      fix_srcfile_path='`cygpath -w "$srcfile"`'
8715      enable_shared_with_static_runtimes=yes
8716      ;;
8717
8718    darwin* | rhapsody*)
8719
8720
8721  archive_cmds_need_lc=no
8722  hardcode_direct=no
8723  hardcode_automatic=yes
8724  hardcode_shlibpath_var=unsupported
8725  whole_archive_flag_spec=''
8726  link_all_deplibs=yes
8727  allow_undefined_flag="$_lt_dar_allow_undefined"
8728  case $cc_basename in
8729     ifort*) _lt_dar_can_shared=yes ;;
8730     *) _lt_dar_can_shared=$GCC ;;
8731  esac
8732  if test "$_lt_dar_can_shared" = "yes"; then
8733    output_verbose_link_cmd=echo
8734    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8735    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8736    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}"
8737    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}"
8738
8739  else
8740  ld_shlibs=no
8741  fi
8742
8743      ;;
8744
8745    dgux*)
8746      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8747      hardcode_libdir_flag_spec='-L$libdir'
8748      hardcode_shlibpath_var=no
8749      ;;
8750
8751    freebsd1*)
8752      ld_shlibs=no
8753      ;;
8754
8755    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8756    # support.  Future versions do this automatically, but an explicit c++rt0.o
8757    # does not break anything, and helps significantly (at the cost of a little
8758    # extra space).
8759    freebsd2.2*)
8760      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8761      hardcode_libdir_flag_spec='-R$libdir'
8762      hardcode_direct=yes
8763      hardcode_shlibpath_var=no
8764      ;;
8765
8766    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8767    freebsd2*)
8768      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8769      hardcode_direct=yes
8770      hardcode_minus_L=yes
8771      hardcode_shlibpath_var=no
8772      ;;
8773
8774    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8775    freebsd* | dragonfly*)
8776      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8777      hardcode_libdir_flag_spec='-R$libdir'
8778      hardcode_direct=yes
8779      hardcode_shlibpath_var=no
8780      ;;
8781
8782    hpux9*)
8783      if test "$GCC" = yes; then
8784	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'
8785      else
8786	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'
8787      fi
8788      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8789      hardcode_libdir_separator=:
8790      hardcode_direct=yes
8791
8792      # hardcode_minus_L: Not really in the search PATH,
8793      # but as the default location of the library.
8794      hardcode_minus_L=yes
8795      export_dynamic_flag_spec='${wl}-E'
8796      ;;
8797
8798    hpux10*)
8799      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8800	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8801      else
8802	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8803      fi
8804      if test "$with_gnu_ld" = no; then
8805	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8806	hardcode_libdir_flag_spec_ld='+b $libdir'
8807	hardcode_libdir_separator=:
8808	hardcode_direct=yes
8809	hardcode_direct_absolute=yes
8810	export_dynamic_flag_spec='${wl}-E'
8811	# hardcode_minus_L: Not really in the search PATH,
8812	# but as the default location of the library.
8813	hardcode_minus_L=yes
8814      fi
8815      ;;
8816
8817    hpux11*)
8818      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8819	case $host_cpu in
8820	hppa*64*)
8821	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8822	  ;;
8823	ia64*)
8824	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8825	  ;;
8826	*)
8827	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8828	  ;;
8829	esac
8830      else
8831	case $host_cpu in
8832	hppa*64*)
8833	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8834	  ;;
8835	ia64*)
8836	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8837	  ;;
8838	*)
8839	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8840	  ;;
8841	esac
8842      fi
8843      if test "$with_gnu_ld" = no; then
8844	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8845	hardcode_libdir_separator=:
8846
8847	case $host_cpu in
8848	hppa*64*|ia64*)
8849	  hardcode_direct=no
8850	  hardcode_shlibpath_var=no
8851	  ;;
8852	*)
8853	  hardcode_direct=yes
8854	  hardcode_direct_absolute=yes
8855	  export_dynamic_flag_spec='${wl}-E'
8856
8857	  # hardcode_minus_L: Not really in the search PATH,
8858	  # but as the default location of the library.
8859	  hardcode_minus_L=yes
8860	  ;;
8861	esac
8862      fi
8863      ;;
8864
8865    irix5* | irix6* | nonstopux*)
8866      if test "$GCC" = yes; then
8867	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'
8868	# Try to use the -exported_symbol ld option, if it does not
8869	# work, assume that -exports_file does not work either and
8870	# implicitly export all symbols.
8871        save_LDFLAGS="$LDFLAGS"
8872        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8873        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874/* end confdefs.h.  */
8875int foo(void) {}
8876_ACEOF
8877if ac_fn_c_try_link "$LINENO"; then :
8878  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'
8879
8880fi
8881rm -f core conftest.err conftest.$ac_objext \
8882    conftest$ac_exeext conftest.$ac_ext
8883        LDFLAGS="$save_LDFLAGS"
8884      else
8885	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'
8886	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'
8887      fi
8888      archive_cmds_need_lc='no'
8889      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8890      hardcode_libdir_separator=:
8891      inherit_rpath=yes
8892      link_all_deplibs=yes
8893      ;;
8894
8895    netbsd* | netbsdelf*-gnu)
8896      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8897	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8898      else
8899	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8900      fi
8901      hardcode_libdir_flag_spec='-R$libdir'
8902      hardcode_direct=yes
8903      hardcode_shlibpath_var=no
8904      ;;
8905
8906    newsos6)
8907      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8908      hardcode_direct=yes
8909      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8910      hardcode_libdir_separator=:
8911      hardcode_shlibpath_var=no
8912      ;;
8913
8914    *nto* | *qnx*)
8915      ;;
8916
8917    openbsd*)
8918      if test -f /usr/libexec/ld.so; then
8919	hardcode_direct=yes
8920	hardcode_shlibpath_var=no
8921	hardcode_direct_absolute=yes
8922	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8923	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8924	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8925	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8926	  export_dynamic_flag_spec='${wl}-E'
8927	else
8928	  case $host_os in
8929	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8930	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8931	     hardcode_libdir_flag_spec='-R$libdir'
8932	     ;;
8933	   *)
8934	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8935	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8936	     ;;
8937	  esac
8938	fi
8939      else
8940	ld_shlibs=no
8941      fi
8942      ;;
8943
8944    os2*)
8945      hardcode_libdir_flag_spec='-L$libdir'
8946      hardcode_minus_L=yes
8947      allow_undefined_flag=unsupported
8948      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'
8949      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8950      ;;
8951
8952    osf3*)
8953      if test "$GCC" = yes; then
8954	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8955	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'
8956      else
8957	allow_undefined_flag=' -expect_unresolved \*'
8958	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'
8959      fi
8960      archive_cmds_need_lc='no'
8961      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8962      hardcode_libdir_separator=:
8963      ;;
8964
8965    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8966      if test "$GCC" = yes; then
8967	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8968	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'
8969	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8970      else
8971	allow_undefined_flag=' -expect_unresolved \*'
8972	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'
8973	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~
8974	$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'
8975
8976	# Both c and cxx compiler support -rpath directly
8977	hardcode_libdir_flag_spec='-rpath $libdir'
8978      fi
8979      archive_cmds_need_lc='no'
8980      hardcode_libdir_separator=:
8981      ;;
8982
8983    solaris*)
8984      no_undefined_flag=' -z defs'
8985      if test "$GCC" = yes; then
8986	wlarc='${wl}'
8987	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8988	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8989	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8990      else
8991	case `$CC -V 2>&1` in
8992	*"Compilers 5.0"*)
8993	  wlarc=''
8994	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8995	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8996	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8997	  ;;
8998	*)
8999	  wlarc='${wl}'
9000	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9001	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9002	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9003	  ;;
9004	esac
9005      fi
9006      hardcode_libdir_flag_spec='-R$libdir'
9007      hardcode_shlibpath_var=no
9008      case $host_os in
9009      solaris2.[0-5] | solaris2.[0-5].*) ;;
9010      *)
9011	# The compiler driver will combine and reorder linker options,
9012	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9013	# but is careful enough not to reorder.
9014	# Supported since Solaris 2.6 (maybe 2.5.1?)
9015	if test "$GCC" = yes; then
9016	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9017	else
9018	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9019	fi
9020	;;
9021      esac
9022      link_all_deplibs=yes
9023      ;;
9024
9025    sunos4*)
9026      if test "x$host_vendor" = xsequent; then
9027	# Use $CC to link under sequent, because it throws in some extra .o
9028	# files that make .init and .fini sections work.
9029	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9030      else
9031	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9032      fi
9033      hardcode_libdir_flag_spec='-L$libdir'
9034      hardcode_direct=yes
9035      hardcode_minus_L=yes
9036      hardcode_shlibpath_var=no
9037      ;;
9038
9039    sysv4)
9040      case $host_vendor in
9041	sni)
9042	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9043	  hardcode_direct=yes # is this really true???
9044	;;
9045	siemens)
9046	  ## LD is ld it makes a PLAMLIB
9047	  ## CC just makes a GrossModule.
9048	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9049	  reload_cmds='$CC -r -o $output$reload_objs'
9050	  hardcode_direct=no
9051        ;;
9052	motorola)
9053	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9054	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9055	;;
9056      esac
9057      runpath_var='LD_RUN_PATH'
9058      hardcode_shlibpath_var=no
9059      ;;
9060
9061    sysv4.3*)
9062      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9063      hardcode_shlibpath_var=no
9064      export_dynamic_flag_spec='-Bexport'
9065      ;;
9066
9067    sysv4*MP*)
9068      if test -d /usr/nec; then
9069	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9070	hardcode_shlibpath_var=no
9071	runpath_var=LD_RUN_PATH
9072	hardcode_runpath_var=yes
9073	ld_shlibs=yes
9074      fi
9075      ;;
9076
9077    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9078      no_undefined_flag='${wl}-z,text'
9079      archive_cmds_need_lc=no
9080      hardcode_shlibpath_var=no
9081      runpath_var='LD_RUN_PATH'
9082
9083      if test "$GCC" = yes; then
9084	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9085	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9086      else
9087	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9088	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9089      fi
9090      ;;
9091
9092    sysv5* | sco3.2v5* | sco5v6*)
9093      # Note: We can NOT use -z defs as we might desire, because we do not
9094      # link with -lc, and that would cause any symbols used from libc to
9095      # always be unresolved, which means just about no library would
9096      # ever link correctly.  If we're not using GNU ld we use -z text
9097      # though, which does catch some bad symbols but isn't as heavy-handed
9098      # as -z defs.
9099      no_undefined_flag='${wl}-z,text'
9100      allow_undefined_flag='${wl}-z,nodefs'
9101      archive_cmds_need_lc=no
9102      hardcode_shlibpath_var=no
9103      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9104      hardcode_libdir_separator=':'
9105      link_all_deplibs=yes
9106      export_dynamic_flag_spec='${wl}-Bexport'
9107      runpath_var='LD_RUN_PATH'
9108
9109      if test "$GCC" = yes; then
9110	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9111	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9112      else
9113	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9114	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9115      fi
9116      ;;
9117
9118    uts4*)
9119      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9120      hardcode_libdir_flag_spec='-L$libdir'
9121      hardcode_shlibpath_var=no
9122      ;;
9123
9124    *)
9125      ld_shlibs=no
9126      ;;
9127    esac
9128
9129    if test x$host_vendor = xsni; then
9130      case $host in
9131      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9132	export_dynamic_flag_spec='${wl}-Blargedynsym'
9133	;;
9134      esac
9135    fi
9136  fi
9137
9138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9139$as_echo "$ld_shlibs" >&6; }
9140test "$ld_shlibs" = no && can_build_shared=no
9141
9142with_gnu_ld=$with_gnu_ld
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158#
9159# Do we need to explicitly link libc?
9160#
9161case "x$archive_cmds_need_lc" in
9162x|xyes)
9163  # Assume -lc should be added
9164  archive_cmds_need_lc=yes
9165
9166  if test "$enable_shared" = yes && test "$GCC" = yes; then
9167    case $archive_cmds in
9168    *'~'*)
9169      # FIXME: we may have to deal with multi-command sequences.
9170      ;;
9171    '$CC '*)
9172      # Test whether the compiler implicitly links with -lc since on some
9173      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9174      # to ld, don't add -lc before -lgcc.
9175      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9176$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9177      $RM conftest*
9178      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9179
9180      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9181  (eval $ac_compile) 2>&5
9182  ac_status=$?
9183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9184  test $ac_status = 0; } 2>conftest.err; then
9185        soname=conftest
9186        lib=conftest
9187        libobjs=conftest.$ac_objext
9188        deplibs=
9189        wl=$lt_prog_compiler_wl
9190	pic_flag=$lt_prog_compiler_pic
9191        compiler_flags=-v
9192        linker_flags=-v
9193        verstring=
9194        output_objdir=.
9195        libname=conftest
9196        lt_save_allow_undefined_flag=$allow_undefined_flag
9197        allow_undefined_flag=
9198        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9199  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9200  ac_status=$?
9201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9202  test $ac_status = 0; }
9203        then
9204	  archive_cmds_need_lc=no
9205        else
9206	  archive_cmds_need_lc=yes
9207        fi
9208        allow_undefined_flag=$lt_save_allow_undefined_flag
9209      else
9210        cat conftest.err 1>&5
9211      fi
9212      $RM conftest*
9213      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9214$as_echo "$archive_cmds_need_lc" >&6; }
9215      ;;
9216    esac
9217  fi
9218  ;;
9219esac
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
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9378$as_echo_n "checking dynamic linker characteristics... " >&6; }
9379
9380if test "$GCC" = yes; then
9381  case $host_os in
9382    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9383    *) lt_awk_arg="/^libraries:/" ;;
9384  esac
9385  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9386  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9387    # if the path contains ";" then we assume it to be the separator
9388    # otherwise default to the standard path separator (i.e. ":") - it is
9389    # assumed that no part of a normal pathname contains ";" but that should
9390    # okay in the real world where ";" in dirpaths is itself problematic.
9391    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9392  else
9393    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9394  fi
9395  # Ok, now we have the path, separated by spaces, we can step through it
9396  # and add multilib dir if necessary.
9397  lt_tmp_lt_search_path_spec=
9398  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9399  for lt_sys_path in $lt_search_path_spec; do
9400    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9401      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9402    else
9403      test -d "$lt_sys_path" && \
9404	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9405    fi
9406  done
9407  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9408BEGIN {RS=" "; FS="/|\n";} {
9409  lt_foo="";
9410  lt_count=0;
9411  for (lt_i = NF; lt_i > 0; lt_i--) {
9412    if ($lt_i != "" && $lt_i != ".") {
9413      if ($lt_i == "..") {
9414        lt_count++;
9415      } else {
9416        if (lt_count == 0) {
9417          lt_foo="/" $lt_i lt_foo;
9418        } else {
9419          lt_count--;
9420        }
9421      }
9422    }
9423  }
9424  if (lt_foo != "") { lt_freq[lt_foo]++; }
9425  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9426}'`
9427  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9428else
9429  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9430fi
9431library_names_spec=
9432libname_spec='lib$name'
9433soname_spec=
9434shrext_cmds=".so"
9435postinstall_cmds=
9436postuninstall_cmds=
9437finish_cmds=
9438finish_eval=
9439shlibpath_var=
9440shlibpath_overrides_runpath=unknown
9441version_type=none
9442dynamic_linker="$host_os ld.so"
9443sys_lib_dlsearch_path_spec="/lib /usr/lib"
9444need_lib_prefix=unknown
9445hardcode_into_libs=no
9446
9447# when you set need_version to no, make sure it does not cause -set_version
9448# flags to be left without arguments
9449need_version=unknown
9450
9451case $host_os in
9452aix3*)
9453  version_type=linux
9454  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9455  shlibpath_var=LIBPATH
9456
9457  # AIX 3 has no versioning support, so we append a major version to the name.
9458  soname_spec='${libname}${release}${shared_ext}$major'
9459  ;;
9460
9461aix[4-9]*)
9462  version_type=linux
9463  need_lib_prefix=no
9464  need_version=no
9465  hardcode_into_libs=yes
9466  if test "$host_cpu" = ia64; then
9467    # AIX 5 supports IA64
9468    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9469    shlibpath_var=LD_LIBRARY_PATH
9470  else
9471    # With GCC up to 2.95.x, collect2 would create an import file
9472    # for dependence libraries.  The import file would start with
9473    # the line `#! .'.  This would cause the generated library to
9474    # depend on `.', always an invalid library.  This was fixed in
9475    # development snapshots of GCC prior to 3.0.
9476    case $host_os in
9477      aix4 | aix4.[01] | aix4.[01].*)
9478      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9479	   echo ' yes '
9480	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9481	:
9482      else
9483	can_build_shared=no
9484      fi
9485      ;;
9486    esac
9487    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9488    # soname into executable. Probably we can add versioning support to
9489    # collect2, so additional links can be useful in future.
9490    if test "$aix_use_runtimelinking" = yes; then
9491      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9492      # instead of lib<name>.a to let people know that these are not
9493      # typical AIX shared libraries.
9494      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9495    else
9496      # We preserve .a as extension for shared libraries through AIX4.2
9497      # and later when we are not doing run time linking.
9498      library_names_spec='${libname}${release}.a $libname.a'
9499      soname_spec='${libname}${release}${shared_ext}$major'
9500    fi
9501    shlibpath_var=LIBPATH
9502  fi
9503  ;;
9504
9505amigaos*)
9506  case $host_cpu in
9507  powerpc)
9508    # Since July 2007 AmigaOS4 officially supports .so libraries.
9509    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9510    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9511    ;;
9512  m68k)
9513    library_names_spec='$libname.ixlibrary $libname.a'
9514    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9515    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'
9516    ;;
9517  esac
9518  ;;
9519
9520beos*)
9521  library_names_spec='${libname}${shared_ext}'
9522  dynamic_linker="$host_os ld.so"
9523  shlibpath_var=LIBRARY_PATH
9524  ;;
9525
9526bsdi[45]*)
9527  version_type=linux
9528  need_version=no
9529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9530  soname_spec='${libname}${release}${shared_ext}$major'
9531  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9532  shlibpath_var=LD_LIBRARY_PATH
9533  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9534  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9535  # the default ld.so.conf also contains /usr/contrib/lib and
9536  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9537  # libtool to hard-code these into programs
9538  ;;
9539
9540cygwin* | mingw* | pw32* | cegcc*)
9541  version_type=windows
9542  shrext_cmds=".dll"
9543  need_version=no
9544  need_lib_prefix=no
9545
9546  case $GCC,$host_os in
9547  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9548    library_names_spec='$libname.dll.a'
9549    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9550    postinstall_cmds='base_file=`basename \${file}`~
9551      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9552      dldir=$destdir/`dirname \$dlpath`~
9553      test -d \$dldir || mkdir -p \$dldir~
9554      $install_prog $dir/$dlname \$dldir/$dlname~
9555      chmod a+x \$dldir/$dlname~
9556      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9557        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9558      fi'
9559    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9560      dlpath=$dir/\$dldll~
9561       $RM \$dlpath'
9562    shlibpath_overrides_runpath=yes
9563
9564    case $host_os in
9565    cygwin*)
9566      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9567      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9568      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9569      ;;
9570    mingw* | cegcc*)
9571      # MinGW DLLs use traditional 'lib' prefix
9572      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9573      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9574      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9575        # It is most probably a Windows format PATH printed by
9576        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9577        # path with ; separators, and with drive letters. We can handle the
9578        # drive letters (cygwin fileutils understands them), so leave them,
9579        # especially as we might pass files found there to a mingw objdump,
9580        # which wouldn't understand a cygwinified path. Ahh.
9581        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9582      else
9583        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9584      fi
9585      ;;
9586    pw32*)
9587      # pw32 DLLs use 'pw' prefix rather than 'lib'
9588      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9589      ;;
9590    esac
9591    ;;
9592
9593  *)
9594    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9595    ;;
9596  esac
9597  dynamic_linker='Win32 ld.exe'
9598  # FIXME: first we should search . and the directory the executable is in
9599  shlibpath_var=PATH
9600  ;;
9601
9602darwin* | rhapsody*)
9603  dynamic_linker="$host_os dyld"
9604  version_type=darwin
9605  need_lib_prefix=no
9606  need_version=no
9607  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9608  soname_spec='${libname}${release}${major}$shared_ext'
9609  shlibpath_overrides_runpath=yes
9610  shlibpath_var=DYLD_LIBRARY_PATH
9611  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9612
9613  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9614  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9615  ;;
9616
9617dgux*)
9618  version_type=linux
9619  need_lib_prefix=no
9620  need_version=no
9621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9622  soname_spec='${libname}${release}${shared_ext}$major'
9623  shlibpath_var=LD_LIBRARY_PATH
9624  ;;
9625
9626freebsd1*)
9627  dynamic_linker=no
9628  ;;
9629
9630freebsd* | dragonfly*)
9631  # DragonFly does not have aout.  When/if they implement a new
9632  # versioning mechanism, adjust this.
9633  if test -x /usr/bin/objformat; then
9634    objformat=`/usr/bin/objformat`
9635  else
9636    case $host_os in
9637    freebsd[123]*) objformat=aout ;;
9638    *) objformat=elf ;;
9639    esac
9640  fi
9641  version_type=freebsd-$objformat
9642  case $version_type in
9643    freebsd-elf*)
9644      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9645      need_version=no
9646      need_lib_prefix=no
9647      ;;
9648    freebsd-*)
9649      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9650      need_version=yes
9651      ;;
9652  esac
9653  shlibpath_var=LD_LIBRARY_PATH
9654  case $host_os in
9655  freebsd2*)
9656    shlibpath_overrides_runpath=yes
9657    ;;
9658  freebsd3.[01]* | freebsdelf3.[01]*)
9659    shlibpath_overrides_runpath=yes
9660    hardcode_into_libs=yes
9661    ;;
9662  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9663  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9664    shlibpath_overrides_runpath=no
9665    hardcode_into_libs=yes
9666    ;;
9667  *) # from 4.6 on, and DragonFly
9668    shlibpath_overrides_runpath=yes
9669    hardcode_into_libs=yes
9670    ;;
9671  esac
9672  ;;
9673
9674gnu*)
9675  version_type=linux
9676  need_lib_prefix=no
9677  need_version=no
9678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9679  soname_spec='${libname}${release}${shared_ext}$major'
9680  shlibpath_var=LD_LIBRARY_PATH
9681  hardcode_into_libs=yes
9682  ;;
9683
9684hpux9* | hpux10* | hpux11*)
9685  # Give a soname corresponding to the major version so that dld.sl refuses to
9686  # link against other versions.
9687  version_type=sunos
9688  need_lib_prefix=no
9689  need_version=no
9690  case $host_cpu in
9691  ia64*)
9692    shrext_cmds='.so'
9693    hardcode_into_libs=yes
9694    dynamic_linker="$host_os dld.so"
9695    shlibpath_var=LD_LIBRARY_PATH
9696    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9697    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9698    soname_spec='${libname}${release}${shared_ext}$major'
9699    if test "X$HPUX_IA64_MODE" = X32; then
9700      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9701    else
9702      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9703    fi
9704    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9705    ;;
9706  hppa*64*)
9707    shrext_cmds='.sl'
9708    hardcode_into_libs=yes
9709    dynamic_linker="$host_os dld.sl"
9710    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9711    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9712    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713    soname_spec='${libname}${release}${shared_ext}$major'
9714    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9715    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9716    ;;
9717  *)
9718    shrext_cmds='.sl'
9719    dynamic_linker="$host_os dld.sl"
9720    shlibpath_var=SHLIB_PATH
9721    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9722    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723    soname_spec='${libname}${release}${shared_ext}$major'
9724    ;;
9725  esac
9726  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9727  postinstall_cmds='chmod 555 $lib'
9728  ;;
9729
9730interix[3-9]*)
9731  version_type=linux
9732  need_lib_prefix=no
9733  need_version=no
9734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9735  soname_spec='${libname}${release}${shared_ext}$major'
9736  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9737  shlibpath_var=LD_LIBRARY_PATH
9738  shlibpath_overrides_runpath=no
9739  hardcode_into_libs=yes
9740  ;;
9741
9742irix5* | irix6* | nonstopux*)
9743  case $host_os in
9744    nonstopux*) version_type=nonstopux ;;
9745    *)
9746	if test "$lt_cv_prog_gnu_ld" = yes; then
9747		version_type=linux
9748	else
9749		version_type=irix
9750	fi ;;
9751  esac
9752  need_lib_prefix=no
9753  need_version=no
9754  soname_spec='${libname}${release}${shared_ext}$major'
9755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9756  case $host_os in
9757  irix5* | nonstopux*)
9758    libsuff= shlibsuff=
9759    ;;
9760  *)
9761    case $LD in # libtool.m4 will add one of these switches to LD
9762    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9763      libsuff= shlibsuff= libmagic=32-bit;;
9764    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9765      libsuff=32 shlibsuff=N32 libmagic=N32;;
9766    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9767      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9768    *) libsuff= shlibsuff= libmagic=never-match;;
9769    esac
9770    ;;
9771  esac
9772  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9773  shlibpath_overrides_runpath=no
9774  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9775  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9776  hardcode_into_libs=yes
9777  ;;
9778
9779# No shared lib support for Linux oldld, aout, or coff.
9780linux*oldld* | linux*aout* | linux*coff*)
9781  dynamic_linker=no
9782  ;;
9783
9784# This must be Linux ELF.
9785linux* | k*bsd*-gnu | kopensolaris*-gnu)
9786  version_type=linux
9787  need_lib_prefix=no
9788  need_version=no
9789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790  soname_spec='${libname}${release}${shared_ext}$major'
9791  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9792  shlibpath_var=LD_LIBRARY_PATH
9793  shlibpath_overrides_runpath=no
9794  # Some binutils ld are patched to set DT_RUNPATH
9795  save_LDFLAGS=$LDFLAGS
9796  save_libdir=$libdir
9797  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9798       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800/* end confdefs.h.  */
9801
9802int
9803main ()
9804{
9805
9806  ;
9807  return 0;
9808}
9809_ACEOF
9810if ac_fn_c_try_link "$LINENO"; then :
9811  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9812  shlibpath_overrides_runpath=yes
9813fi
9814fi
9815rm -f core conftest.err conftest.$ac_objext \
9816    conftest$ac_exeext conftest.$ac_ext
9817  LDFLAGS=$save_LDFLAGS
9818  libdir=$save_libdir
9819
9820  # This implies no fast_install, which is unacceptable.
9821  # Some rework will be needed to allow for fast_install
9822  # before this can be enabled.
9823  hardcode_into_libs=yes
9824
9825  # Append ld.so.conf contents to the search path
9826  if test -f /etc/ld.so.conf; then
9827    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' ' '`
9828    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9829  fi
9830
9831  # We used to test for /lib/ld.so.1 and disable shared libraries on
9832  # powerpc, because MkLinux only supported shared libraries with the
9833  # GNU dynamic linker.  Since this was broken with cross compilers,
9834  # most powerpc-linux boxes support dynamic linking these days and
9835  # people can always --disable-shared, the test was removed, and we
9836  # assume the GNU/Linux dynamic linker is in use.
9837  dynamic_linker='GNU/Linux ld.so'
9838  ;;
9839
9840netbsdelf*-gnu)
9841  version_type=linux
9842  need_lib_prefix=no
9843  need_version=no
9844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9845  soname_spec='${libname}${release}${shared_ext}$major'
9846  shlibpath_var=LD_LIBRARY_PATH
9847  shlibpath_overrides_runpath=no
9848  hardcode_into_libs=yes
9849  dynamic_linker='NetBSD ld.elf_so'
9850  ;;
9851
9852netbsd*)
9853  version_type=sunos
9854  need_lib_prefix=no
9855  need_version=no
9856  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9857    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9858    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9859    dynamic_linker='NetBSD (a.out) ld.so'
9860  else
9861    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9862    soname_spec='${libname}${release}${shared_ext}$major'
9863    dynamic_linker='NetBSD ld.elf_so'
9864  fi
9865  shlibpath_var=LD_LIBRARY_PATH
9866  shlibpath_overrides_runpath=yes
9867  hardcode_into_libs=yes
9868  ;;
9869
9870newsos6)
9871  version_type=linux
9872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873  shlibpath_var=LD_LIBRARY_PATH
9874  shlibpath_overrides_runpath=yes
9875  ;;
9876
9877*nto* | *qnx*)
9878  version_type=qnx
9879  need_lib_prefix=no
9880  need_version=no
9881  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9882  soname_spec='${libname}${release}${shared_ext}$major'
9883  shlibpath_var=LD_LIBRARY_PATH
9884  shlibpath_overrides_runpath=no
9885  hardcode_into_libs=yes
9886  dynamic_linker='ldqnx.so'
9887  ;;
9888
9889openbsd*)
9890  version_type=sunos
9891  sys_lib_dlsearch_path_spec="/usr/lib"
9892  need_lib_prefix=no
9893  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9894  case $host_os in
9895    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9896    *)				need_version=no  ;;
9897  esac
9898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9899  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9900  shlibpath_var=LD_LIBRARY_PATH
9901  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9902    case $host_os in
9903      openbsd2.[89] | openbsd2.[89].*)
9904	shlibpath_overrides_runpath=no
9905	;;
9906      *)
9907	shlibpath_overrides_runpath=yes
9908	;;
9909      esac
9910  else
9911    shlibpath_overrides_runpath=yes
9912  fi
9913  ;;
9914
9915os2*)
9916  libname_spec='$name'
9917  shrext_cmds=".dll"
9918  need_lib_prefix=no
9919  library_names_spec='$libname${shared_ext} $libname.a'
9920  dynamic_linker='OS/2 ld.exe'
9921  shlibpath_var=LIBPATH
9922  ;;
9923
9924osf3* | osf4* | osf5*)
9925  version_type=osf
9926  need_lib_prefix=no
9927  need_version=no
9928  soname_spec='${libname}${release}${shared_ext}$major'
9929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930  shlibpath_var=LD_LIBRARY_PATH
9931  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9932  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9933  ;;
9934
9935rdos*)
9936  dynamic_linker=no
9937  ;;
9938
9939solaris*)
9940  version_type=linux
9941  need_lib_prefix=no
9942  need_version=no
9943  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9944  soname_spec='${libname}${release}${shared_ext}$major'
9945  shlibpath_var=LD_LIBRARY_PATH
9946  shlibpath_overrides_runpath=yes
9947  hardcode_into_libs=yes
9948  # ldd complains unless libraries are executable
9949  postinstall_cmds='chmod +x $lib'
9950  ;;
9951
9952sunos4*)
9953  version_type=sunos
9954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9955  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9956  shlibpath_var=LD_LIBRARY_PATH
9957  shlibpath_overrides_runpath=yes
9958  if test "$with_gnu_ld" = yes; then
9959    need_lib_prefix=no
9960  fi
9961  need_version=yes
9962  ;;
9963
9964sysv4 | sysv4.3*)
9965  version_type=linux
9966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9967  soname_spec='${libname}${release}${shared_ext}$major'
9968  shlibpath_var=LD_LIBRARY_PATH
9969  case $host_vendor in
9970    sni)
9971      shlibpath_overrides_runpath=no
9972      need_lib_prefix=no
9973      runpath_var=LD_RUN_PATH
9974      ;;
9975    siemens)
9976      need_lib_prefix=no
9977      ;;
9978    motorola)
9979      need_lib_prefix=no
9980      need_version=no
9981      shlibpath_overrides_runpath=no
9982      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9983      ;;
9984  esac
9985  ;;
9986
9987sysv4*MP*)
9988  if test -d /usr/nec ;then
9989    version_type=linux
9990    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9991    soname_spec='$libname${shared_ext}.$major'
9992    shlibpath_var=LD_LIBRARY_PATH
9993  fi
9994  ;;
9995
9996sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9997  version_type=freebsd-elf
9998  need_lib_prefix=no
9999  need_version=no
10000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10001  soname_spec='${libname}${release}${shared_ext}$major'
10002  shlibpath_var=LD_LIBRARY_PATH
10003  shlibpath_overrides_runpath=yes
10004  hardcode_into_libs=yes
10005  if test "$with_gnu_ld" = yes; then
10006    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10007  else
10008    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10009    case $host_os in
10010      sco3.2v5*)
10011        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10012	;;
10013    esac
10014  fi
10015  sys_lib_dlsearch_path_spec='/usr/lib'
10016  ;;
10017
10018tpf*)
10019  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10020  version_type=linux
10021  need_lib_prefix=no
10022  need_version=no
10023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024  shlibpath_var=LD_LIBRARY_PATH
10025  shlibpath_overrides_runpath=no
10026  hardcode_into_libs=yes
10027  ;;
10028
10029uts4*)
10030  version_type=linux
10031  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10032  soname_spec='${libname}${release}${shared_ext}$major'
10033  shlibpath_var=LD_LIBRARY_PATH
10034  ;;
10035
10036*)
10037  dynamic_linker=no
10038  ;;
10039esac
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10041$as_echo "$dynamic_linker" >&6; }
10042test "$dynamic_linker" = no && can_build_shared=no
10043
10044variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10045if test "$GCC" = yes; then
10046  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10047fi
10048
10049if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10050  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10051fi
10052if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10053  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10054fi
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10143$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10144hardcode_action=
10145if test -n "$hardcode_libdir_flag_spec" ||
10146   test -n "$runpath_var" ||
10147   test "X$hardcode_automatic" = "Xyes" ; then
10148
10149  # We can hardcode non-existent directories.
10150  if test "$hardcode_direct" != no &&
10151     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10152     # have to relink, otherwise we might link with an installed library
10153     # when we should be linking with a yet-to-be-installed one
10154     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10155     test "$hardcode_minus_L" != no; then
10156    # Linking always hardcodes the temporary library directory.
10157    hardcode_action=relink
10158  else
10159    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10160    hardcode_action=immediate
10161  fi
10162else
10163  # We cannot hardcode anything, or else we can only hardcode existing
10164  # directories.
10165  hardcode_action=unsupported
10166fi
10167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10168$as_echo "$hardcode_action" >&6; }
10169
10170if test "$hardcode_action" = relink ||
10171   test "$inherit_rpath" = yes; then
10172  # Fast installation is not supported
10173  enable_fast_install=no
10174elif test "$shlibpath_overrides_runpath" = yes ||
10175     test "$enable_shared" = no; then
10176  # Fast installation is not necessary
10177  enable_fast_install=needless
10178fi
10179
10180
10181
10182
10183
10184
10185  if test "x$enable_dlopen" != xyes; then
10186  enable_dlopen=unknown
10187  enable_dlopen_self=unknown
10188  enable_dlopen_self_static=unknown
10189else
10190  lt_cv_dlopen=no
10191  lt_cv_dlopen_libs=
10192
10193  case $host_os in
10194  beos*)
10195    lt_cv_dlopen="load_add_on"
10196    lt_cv_dlopen_libs=
10197    lt_cv_dlopen_self=yes
10198    ;;
10199
10200  mingw* | pw32* | cegcc*)
10201    lt_cv_dlopen="LoadLibrary"
10202    lt_cv_dlopen_libs=
10203    ;;
10204
10205  cygwin*)
10206    lt_cv_dlopen="dlopen"
10207    lt_cv_dlopen_libs=
10208    ;;
10209
10210  darwin*)
10211  # if libdl is installed we need to link against it
10212    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10213$as_echo_n "checking for dlopen in -ldl... " >&6; }
10214if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10215  $as_echo_n "(cached) " >&6
10216else
10217  ac_check_lib_save_LIBS=$LIBS
10218LIBS="-ldl  $LIBS"
10219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220/* end confdefs.h.  */
10221
10222/* Override any GCC internal prototype to avoid an error.
10223   Use char because int might match the return type of a GCC
10224   builtin and then its argument prototype would still apply.  */
10225#ifdef __cplusplus
10226extern "C"
10227#endif
10228char dlopen ();
10229int
10230main ()
10231{
10232return dlopen ();
10233  ;
10234  return 0;
10235}
10236_ACEOF
10237if ac_fn_c_try_link "$LINENO"; then :
10238  ac_cv_lib_dl_dlopen=yes
10239else
10240  ac_cv_lib_dl_dlopen=no
10241fi
10242rm -f core conftest.err conftest.$ac_objext \
10243    conftest$ac_exeext conftest.$ac_ext
10244LIBS=$ac_check_lib_save_LIBS
10245fi
10246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10247$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10248if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10249  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10250else
10251
10252    lt_cv_dlopen="dyld"
10253    lt_cv_dlopen_libs=
10254    lt_cv_dlopen_self=yes
10255
10256fi
10257
10258    ;;
10259
10260  *)
10261    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10262if test "x$ac_cv_func_shl_load" = x""yes; then :
10263  lt_cv_dlopen="shl_load"
10264else
10265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10266$as_echo_n "checking for shl_load in -ldld... " >&6; }
10267if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10268  $as_echo_n "(cached) " >&6
10269else
10270  ac_check_lib_save_LIBS=$LIBS
10271LIBS="-ldld  $LIBS"
10272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273/* end confdefs.h.  */
10274
10275/* Override any GCC internal prototype to avoid an error.
10276   Use char because int might match the return type of a GCC
10277   builtin and then its argument prototype would still apply.  */
10278#ifdef __cplusplus
10279extern "C"
10280#endif
10281char shl_load ();
10282int
10283main ()
10284{
10285return shl_load ();
10286  ;
10287  return 0;
10288}
10289_ACEOF
10290if ac_fn_c_try_link "$LINENO"; then :
10291  ac_cv_lib_dld_shl_load=yes
10292else
10293  ac_cv_lib_dld_shl_load=no
10294fi
10295rm -f core conftest.err conftest.$ac_objext \
10296    conftest$ac_exeext conftest.$ac_ext
10297LIBS=$ac_check_lib_save_LIBS
10298fi
10299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10300$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10301if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10302  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10303else
10304  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10305if test "x$ac_cv_func_dlopen" = x""yes; then :
10306  lt_cv_dlopen="dlopen"
10307else
10308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10309$as_echo_n "checking for dlopen in -ldl... " >&6; }
10310if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10311  $as_echo_n "(cached) " >&6
10312else
10313  ac_check_lib_save_LIBS=$LIBS
10314LIBS="-ldl  $LIBS"
10315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316/* end confdefs.h.  */
10317
10318/* Override any GCC internal prototype to avoid an error.
10319   Use char because int might match the return type of a GCC
10320   builtin and then its argument prototype would still apply.  */
10321#ifdef __cplusplus
10322extern "C"
10323#endif
10324char dlopen ();
10325int
10326main ()
10327{
10328return dlopen ();
10329  ;
10330  return 0;
10331}
10332_ACEOF
10333if ac_fn_c_try_link "$LINENO"; then :
10334  ac_cv_lib_dl_dlopen=yes
10335else
10336  ac_cv_lib_dl_dlopen=no
10337fi
10338rm -f core conftest.err conftest.$ac_objext \
10339    conftest$ac_exeext conftest.$ac_ext
10340LIBS=$ac_check_lib_save_LIBS
10341fi
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10343$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10344if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10345  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10346else
10347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10348$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10349if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10350  $as_echo_n "(cached) " >&6
10351else
10352  ac_check_lib_save_LIBS=$LIBS
10353LIBS="-lsvld  $LIBS"
10354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355/* end confdefs.h.  */
10356
10357/* Override any GCC internal prototype to avoid an error.
10358   Use char because int might match the return type of a GCC
10359   builtin and then its argument prototype would still apply.  */
10360#ifdef __cplusplus
10361extern "C"
10362#endif
10363char dlopen ();
10364int
10365main ()
10366{
10367return dlopen ();
10368  ;
10369  return 0;
10370}
10371_ACEOF
10372if ac_fn_c_try_link "$LINENO"; then :
10373  ac_cv_lib_svld_dlopen=yes
10374else
10375  ac_cv_lib_svld_dlopen=no
10376fi
10377rm -f core conftest.err conftest.$ac_objext \
10378    conftest$ac_exeext conftest.$ac_ext
10379LIBS=$ac_check_lib_save_LIBS
10380fi
10381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10382$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10383if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10384  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10385else
10386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10387$as_echo_n "checking for dld_link in -ldld... " >&6; }
10388if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10389  $as_echo_n "(cached) " >&6
10390else
10391  ac_check_lib_save_LIBS=$LIBS
10392LIBS="-ldld  $LIBS"
10393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394/* end confdefs.h.  */
10395
10396/* Override any GCC internal prototype to avoid an error.
10397   Use char because int might match the return type of a GCC
10398   builtin and then its argument prototype would still apply.  */
10399#ifdef __cplusplus
10400extern "C"
10401#endif
10402char dld_link ();
10403int
10404main ()
10405{
10406return dld_link ();
10407  ;
10408  return 0;
10409}
10410_ACEOF
10411if ac_fn_c_try_link "$LINENO"; then :
10412  ac_cv_lib_dld_dld_link=yes
10413else
10414  ac_cv_lib_dld_dld_link=no
10415fi
10416rm -f core conftest.err conftest.$ac_objext \
10417    conftest$ac_exeext conftest.$ac_ext
10418LIBS=$ac_check_lib_save_LIBS
10419fi
10420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10421$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10422if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10423  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10424fi
10425
10426
10427fi
10428
10429
10430fi
10431
10432
10433fi
10434
10435
10436fi
10437
10438
10439fi
10440
10441    ;;
10442  esac
10443
10444  if test "x$lt_cv_dlopen" != xno; then
10445    enable_dlopen=yes
10446  else
10447    enable_dlopen=no
10448  fi
10449
10450  case $lt_cv_dlopen in
10451  dlopen)
10452    save_CPPFLAGS="$CPPFLAGS"
10453    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10454
10455    save_LDFLAGS="$LDFLAGS"
10456    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10457
10458    save_LIBS="$LIBS"
10459    LIBS="$lt_cv_dlopen_libs $LIBS"
10460
10461    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10462$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10463if test "${lt_cv_dlopen_self+set}" = set; then :
10464  $as_echo_n "(cached) " >&6
10465else
10466  	  if test "$cross_compiling" = yes; then :
10467  lt_cv_dlopen_self=cross
10468else
10469  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10470  lt_status=$lt_dlunknown
10471  cat > conftest.$ac_ext <<_LT_EOF
10472#line 10472 "configure"
10473#include "confdefs.h"
10474
10475#if HAVE_DLFCN_H
10476#include <dlfcn.h>
10477#endif
10478
10479#include <stdio.h>
10480
10481#ifdef RTLD_GLOBAL
10482#  define LT_DLGLOBAL		RTLD_GLOBAL
10483#else
10484#  ifdef DL_GLOBAL
10485#    define LT_DLGLOBAL		DL_GLOBAL
10486#  else
10487#    define LT_DLGLOBAL		0
10488#  endif
10489#endif
10490
10491/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10492   find out it does not work in some platform. */
10493#ifndef LT_DLLAZY_OR_NOW
10494#  ifdef RTLD_LAZY
10495#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10496#  else
10497#    ifdef DL_LAZY
10498#      define LT_DLLAZY_OR_NOW		DL_LAZY
10499#    else
10500#      ifdef RTLD_NOW
10501#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10502#      else
10503#        ifdef DL_NOW
10504#          define LT_DLLAZY_OR_NOW	DL_NOW
10505#        else
10506#          define LT_DLLAZY_OR_NOW	0
10507#        endif
10508#      endif
10509#    endif
10510#  endif
10511#endif
10512
10513void fnord() { int i=42;}
10514int main ()
10515{
10516  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10517  int status = $lt_dlunknown;
10518
10519  if (self)
10520    {
10521      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10522      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10523      /* dlclose (self); */
10524    }
10525  else
10526    puts (dlerror ());
10527
10528  return status;
10529}
10530_LT_EOF
10531  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10532  (eval $ac_link) 2>&5
10533  ac_status=$?
10534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10535  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10536    (./conftest; exit; ) >&5 2>/dev/null
10537    lt_status=$?
10538    case x$lt_status in
10539      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10540      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10541      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10542    esac
10543  else :
10544    # compilation failed
10545    lt_cv_dlopen_self=no
10546  fi
10547fi
10548rm -fr conftest*
10549
10550
10551fi
10552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10553$as_echo "$lt_cv_dlopen_self" >&6; }
10554
10555    if test "x$lt_cv_dlopen_self" = xyes; then
10556      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10557      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10558$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10559if test "${lt_cv_dlopen_self_static+set}" = set; then :
10560  $as_echo_n "(cached) " >&6
10561else
10562  	  if test "$cross_compiling" = yes; then :
10563  lt_cv_dlopen_self_static=cross
10564else
10565  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10566  lt_status=$lt_dlunknown
10567  cat > conftest.$ac_ext <<_LT_EOF
10568#line 10568 "configure"
10569#include "confdefs.h"
10570
10571#if HAVE_DLFCN_H
10572#include <dlfcn.h>
10573#endif
10574
10575#include <stdio.h>
10576
10577#ifdef RTLD_GLOBAL
10578#  define LT_DLGLOBAL		RTLD_GLOBAL
10579#else
10580#  ifdef DL_GLOBAL
10581#    define LT_DLGLOBAL		DL_GLOBAL
10582#  else
10583#    define LT_DLGLOBAL		0
10584#  endif
10585#endif
10586
10587/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10588   find out it does not work in some platform. */
10589#ifndef LT_DLLAZY_OR_NOW
10590#  ifdef RTLD_LAZY
10591#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10592#  else
10593#    ifdef DL_LAZY
10594#      define LT_DLLAZY_OR_NOW		DL_LAZY
10595#    else
10596#      ifdef RTLD_NOW
10597#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10598#      else
10599#        ifdef DL_NOW
10600#          define LT_DLLAZY_OR_NOW	DL_NOW
10601#        else
10602#          define LT_DLLAZY_OR_NOW	0
10603#        endif
10604#      endif
10605#    endif
10606#  endif
10607#endif
10608
10609void fnord() { int i=42;}
10610int main ()
10611{
10612  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10613  int status = $lt_dlunknown;
10614
10615  if (self)
10616    {
10617      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10618      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10619      /* dlclose (self); */
10620    }
10621  else
10622    puts (dlerror ());
10623
10624  return status;
10625}
10626_LT_EOF
10627  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10628  (eval $ac_link) 2>&5
10629  ac_status=$?
10630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10631  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10632    (./conftest; exit; ) >&5 2>/dev/null
10633    lt_status=$?
10634    case x$lt_status in
10635      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10636      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10637      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10638    esac
10639  else :
10640    # compilation failed
10641    lt_cv_dlopen_self_static=no
10642  fi
10643fi
10644rm -fr conftest*
10645
10646
10647fi
10648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10649$as_echo "$lt_cv_dlopen_self_static" >&6; }
10650    fi
10651
10652    CPPFLAGS="$save_CPPFLAGS"
10653    LDFLAGS="$save_LDFLAGS"
10654    LIBS="$save_LIBS"
10655    ;;
10656  esac
10657
10658  case $lt_cv_dlopen_self in
10659  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10660  *) enable_dlopen_self=unknown ;;
10661  esac
10662
10663  case $lt_cv_dlopen_self_static in
10664  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10665  *) enable_dlopen_self_static=unknown ;;
10666  esac
10667fi
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685striplib=
10686old_striplib=
10687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10688$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10689if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10690  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10691  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10693$as_echo "yes" >&6; }
10694else
10695# FIXME - insert some real tests, host_os isn't really good enough
10696  case $host_os in
10697  darwin*)
10698    if test -n "$STRIP" ; then
10699      striplib="$STRIP -x"
10700      old_striplib="$STRIP -S"
10701      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10702$as_echo "yes" >&6; }
10703    else
10704      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10705$as_echo "no" >&6; }
10706    fi
10707    ;;
10708  *)
10709    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710$as_echo "no" >&6; }
10711    ;;
10712  esac
10713fi
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726  # Report which library types will actually be built
10727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10728$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10730$as_echo "$can_build_shared" >&6; }
10731
10732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10733$as_echo_n "checking whether to build shared libraries... " >&6; }
10734  test "$can_build_shared" = "no" && enable_shared=no
10735
10736  # On AIX, shared libraries and static libraries use the same namespace, and
10737  # are all built from PIC.
10738  case $host_os in
10739  aix3*)
10740    test "$enable_shared" = yes && enable_static=no
10741    if test -n "$RANLIB"; then
10742      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10743      postinstall_cmds='$RANLIB $lib'
10744    fi
10745    ;;
10746
10747  aix[4-9]*)
10748    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10749      test "$enable_shared" = yes && enable_static=no
10750    fi
10751    ;;
10752  esac
10753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10754$as_echo "$enable_shared" >&6; }
10755
10756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10757$as_echo_n "checking whether to build static libraries... " >&6; }
10758  # Make sure either enable_shared or enable_static is yes.
10759  test "$enable_shared" = yes || enable_static=yes
10760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10761$as_echo "$enable_static" >&6; }
10762
10763
10764
10765
10766fi
10767ac_ext=c
10768ac_cpp='$CPP $CPPFLAGS'
10769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10771ac_compiler_gnu=$ac_cv_c_compiler_gnu
10772
10773CC="$lt_save_CC"
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787        ac_config_commands="$ac_config_commands libtool"
10788
10789
10790
10791
10792# Only expand once:
10793
10794
10795
10796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10797$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10798if test "${ac_cv_c_const+set}" = set; then :
10799  $as_echo_n "(cached) " >&6
10800else
10801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802/* end confdefs.h.  */
10803
10804int
10805main ()
10806{
10807/* FIXME: Include the comments suggested by Paul. */
10808#ifndef __cplusplus
10809  /* Ultrix mips cc rejects this.  */
10810  typedef int charset[2];
10811  const charset cs;
10812  /* SunOS 4.1.1 cc rejects this.  */
10813  char const *const *pcpcc;
10814  char **ppc;
10815  /* NEC SVR4.0.2 mips cc rejects this.  */
10816  struct point {int x, y;};
10817  static struct point const zero = {0,0};
10818  /* AIX XL C 1.02.0.0 rejects this.
10819     It does not let you subtract one const X* pointer from another in
10820     an arm of an if-expression whose if-part is not a constant
10821     expression */
10822  const char *g = "string";
10823  pcpcc = &g + (g ? g-g : 0);
10824  /* HPUX 7.0 cc rejects these. */
10825  ++pcpcc;
10826  ppc = (char**) pcpcc;
10827  pcpcc = (char const *const *) ppc;
10828  { /* SCO 3.2v4 cc rejects this.  */
10829    char *t;
10830    char const *s = 0 ? (char *) 0 : (char const *) 0;
10831
10832    *t++ = 0;
10833    if (s) return 0;
10834  }
10835  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10836    int x[] = {25, 17};
10837    const int *foo = &x[0];
10838    ++foo;
10839  }
10840  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10841    typedef const int *iptr;
10842    iptr p = 0;
10843    ++p;
10844  }
10845  { /* AIX XL C 1.02.0.0 rejects this saying
10846       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10847    struct s { int j; const int *ap[3]; };
10848    struct s *b; b->j = 5;
10849  }
10850  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10851    const int foo = 10;
10852    if (!foo) return 0;
10853  }
10854  return !cs[0] && !zero.x;
10855#endif
10856
10857  ;
10858  return 0;
10859}
10860_ACEOF
10861if ac_fn_c_try_compile "$LINENO"; then :
10862  ac_cv_c_const=yes
10863else
10864  ac_cv_c_const=no
10865fi
10866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10867fi
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10869$as_echo "$ac_cv_c_const" >&6; }
10870if test $ac_cv_c_const = no; then
10871
10872$as_echo "#define const /**/" >>confdefs.h
10873
10874fi
10875
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10877$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10878if test "${ac_cv_c_bigendian+set}" = set; then :
10879  $as_echo_n "(cached) " >&6
10880else
10881  ac_cv_c_bigendian=unknown
10882    # See if we're dealing with a universal compiler.
10883    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884/* end confdefs.h.  */
10885#ifndef __APPLE_CC__
10886	       not a universal capable compiler
10887	     #endif
10888	     typedef int dummy;
10889
10890_ACEOF
10891if ac_fn_c_try_compile "$LINENO"; then :
10892
10893	# Check for potential -arch flags.  It is not universal unless
10894	# there are at least two -arch flags with different values.
10895	ac_arch=
10896	ac_prev=
10897	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10898	 if test -n "$ac_prev"; then
10899	   case $ac_word in
10900	     i?86 | x86_64 | ppc | ppc64)
10901	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10902		 ac_arch=$ac_word
10903	       else
10904		 ac_cv_c_bigendian=universal
10905		 break
10906	       fi
10907	       ;;
10908	   esac
10909	   ac_prev=
10910	 elif test "x$ac_word" = "x-arch"; then
10911	   ac_prev=arch
10912	 fi
10913       done
10914fi
10915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10916    if test $ac_cv_c_bigendian = unknown; then
10917      # See if sys/param.h defines the BYTE_ORDER macro.
10918      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919/* end confdefs.h.  */
10920#include <sys/types.h>
10921	     #include <sys/param.h>
10922
10923int
10924main ()
10925{
10926#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10927		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10928		     && LITTLE_ENDIAN)
10929	      bogus endian macros
10930	     #endif
10931
10932  ;
10933  return 0;
10934}
10935_ACEOF
10936if ac_fn_c_try_compile "$LINENO"; then :
10937  # It does; now see whether it defined to BIG_ENDIAN or not.
10938	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939/* end confdefs.h.  */
10940#include <sys/types.h>
10941		#include <sys/param.h>
10942
10943int
10944main ()
10945{
10946#if BYTE_ORDER != BIG_ENDIAN
10947		 not big endian
10948		#endif
10949
10950  ;
10951  return 0;
10952}
10953_ACEOF
10954if ac_fn_c_try_compile "$LINENO"; then :
10955  ac_cv_c_bigendian=yes
10956else
10957  ac_cv_c_bigendian=no
10958fi
10959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960fi
10961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10962    fi
10963    if test $ac_cv_c_bigendian = unknown; then
10964      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10965      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966/* end confdefs.h.  */
10967#include <limits.h>
10968
10969int
10970main ()
10971{
10972#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10973	      bogus endian macros
10974	     #endif
10975
10976  ;
10977  return 0;
10978}
10979_ACEOF
10980if ac_fn_c_try_compile "$LINENO"; then :
10981  # It does; now see whether it defined to _BIG_ENDIAN or not.
10982	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983/* end confdefs.h.  */
10984#include <limits.h>
10985
10986int
10987main ()
10988{
10989#ifndef _BIG_ENDIAN
10990		 not big endian
10991		#endif
10992
10993  ;
10994  return 0;
10995}
10996_ACEOF
10997if ac_fn_c_try_compile "$LINENO"; then :
10998  ac_cv_c_bigendian=yes
10999else
11000  ac_cv_c_bigendian=no
11001fi
11002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11003fi
11004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005    fi
11006    if test $ac_cv_c_bigendian = unknown; then
11007      # Compile a test program.
11008      if test "$cross_compiling" = yes; then :
11009  # Try to guess by grepping values from an object file.
11010	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11011/* end confdefs.h.  */
11012short int ascii_mm[] =
11013		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11014		short int ascii_ii[] =
11015		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11016		int use_ascii (int i) {
11017		  return ascii_mm[i] + ascii_ii[i];
11018		}
11019		short int ebcdic_ii[] =
11020		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11021		short int ebcdic_mm[] =
11022		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11023		int use_ebcdic (int i) {
11024		  return ebcdic_mm[i] + ebcdic_ii[i];
11025		}
11026		extern int foo;
11027
11028int
11029main ()
11030{
11031return use_ascii (foo) == use_ebcdic (foo);
11032  ;
11033  return 0;
11034}
11035_ACEOF
11036if ac_fn_c_try_compile "$LINENO"; then :
11037  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11038	      ac_cv_c_bigendian=yes
11039	    fi
11040	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11041	      if test "$ac_cv_c_bigendian" = unknown; then
11042		ac_cv_c_bigendian=no
11043	      else
11044		# finding both strings is unlikely to happen, but who knows?
11045		ac_cv_c_bigendian=unknown
11046	      fi
11047	    fi
11048fi
11049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11050else
11051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052/* end confdefs.h.  */
11053$ac_includes_default
11054int
11055main ()
11056{
11057
11058	     /* Are we little or big endian?  From Harbison&Steele.  */
11059	     union
11060	     {
11061	       long int l;
11062	       char c[sizeof (long int)];
11063	     } u;
11064	     u.l = 1;
11065	     return u.c[sizeof (long int) - 1] == 1;
11066
11067  ;
11068  return 0;
11069}
11070_ACEOF
11071if ac_fn_c_try_run "$LINENO"; then :
11072  ac_cv_c_bigendian=no
11073else
11074  ac_cv_c_bigendian=yes
11075fi
11076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11077  conftest.$ac_objext conftest.beam conftest.$ac_ext
11078fi
11079
11080    fi
11081fi
11082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11083$as_echo "$ac_cv_c_bigendian" >&6; }
11084 case $ac_cv_c_bigendian in #(
11085   yes)
11086     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11087;; #(
11088   no)
11089      ;; #(
11090   universal)
11091
11092$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11093
11094     ;; #(
11095   *)
11096     as_fn_error "unknown endianness
11097 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11098 esac
11099
11100
11101ACLOCAL_AMFLAGS="-I m4"
11102
11103
11104# Checks for header files.
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11106$as_echo_n "checking for ANSI C header files... " >&6; }
11107if test "${ac_cv_header_stdc+set}" = set; then :
11108  $as_echo_n "(cached) " >&6
11109else
11110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111/* end confdefs.h.  */
11112#include <stdlib.h>
11113#include <stdarg.h>
11114#include <string.h>
11115#include <float.h>
11116
11117int
11118main ()
11119{
11120
11121  ;
11122  return 0;
11123}
11124_ACEOF
11125if ac_fn_c_try_compile "$LINENO"; then :
11126  ac_cv_header_stdc=yes
11127else
11128  ac_cv_header_stdc=no
11129fi
11130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11131
11132if test $ac_cv_header_stdc = yes; then
11133  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135/* end confdefs.h.  */
11136#include <string.h>
11137
11138_ACEOF
11139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11140  $EGREP "memchr" >/dev/null 2>&1; then :
11141
11142else
11143  ac_cv_header_stdc=no
11144fi
11145rm -f conftest*
11146
11147fi
11148
11149if test $ac_cv_header_stdc = yes; then
11150  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11152/* end confdefs.h.  */
11153#include <stdlib.h>
11154
11155_ACEOF
11156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11157  $EGREP "free" >/dev/null 2>&1; then :
11158
11159else
11160  ac_cv_header_stdc=no
11161fi
11162rm -f conftest*
11163
11164fi
11165
11166if test $ac_cv_header_stdc = yes; then
11167  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11168  if test "$cross_compiling" = yes; then :
11169  :
11170else
11171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172/* end confdefs.h.  */
11173#include <ctype.h>
11174#include <stdlib.h>
11175#if ((' ' & 0x0FF) == 0x020)
11176# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11177# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11178#else
11179# define ISLOWER(c) \
11180		   (('a' <= (c) && (c) <= 'i') \
11181		     || ('j' <= (c) && (c) <= 'r') \
11182		     || ('s' <= (c) && (c) <= 'z'))
11183# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11184#endif
11185
11186#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11187int
11188main ()
11189{
11190  int i;
11191  for (i = 0; i < 256; i++)
11192    if (XOR (islower (i), ISLOWER (i))
11193	|| toupper (i) != TOUPPER (i))
11194      return 2;
11195  return 0;
11196}
11197_ACEOF
11198if ac_fn_c_try_run "$LINENO"; then :
11199
11200else
11201  ac_cv_header_stdc=no
11202fi
11203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11204  conftest.$ac_objext conftest.beam conftest.$ac_ext
11205fi
11206
11207fi
11208fi
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11210$as_echo "$ac_cv_header_stdc" >&6; }
11211if test $ac_cv_header_stdc = yes; then
11212
11213$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11214
11215fi
11216
11217for ac_header in fcntl.h inttypes.h stdlib.h string.h sys/types.h unistd.h
11218do :
11219  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11220ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11221eval as_val=\$$as_ac_Header
11222   if test "x$as_val" = x""yes; then :
11223  cat >>confdefs.h <<_ACEOF
11224#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11225_ACEOF
11226
11227fi
11228
11229done
11230
11231
11232# Checks for typedefs, structures, and compiler characteristics.
11233ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11234if test "x$ac_cv_type_off_t" = x""yes; then :
11235
11236else
11237
11238cat >>confdefs.h <<_ACEOF
11239#define off_t long int
11240_ACEOF
11241
11242fi
11243
11244ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11245if test "x$ac_cv_type_size_t" = x""yes; then :
11246
11247else
11248
11249cat >>confdefs.h <<_ACEOF
11250#define size_t unsigned int
11251_ACEOF
11252
11253fi
11254
11255
11256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC allows signed enums" >&5
11257$as_echo_n "checking if $CC allows signed enums... " >&6; }
11258
11259ac_save_CFLAGS="$CFLAGS"
11260CFLAGS="$CFLAGS -Wall -Wextra -Werror"
11261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11262/* end confdefs.h.  */
11263
11264int
11265main ()
11266{
11267
11268               void t (void)
11269               {
11270                 enum {A, B} a=A;
11271                 if (a < 0) {}
11272               }
11273  ;
11274  return 0;
11275}
11276_ACEOF
11277if ac_fn_c_try_compile "$LINENO"; then :
11278
11279$as_echo "#define ALLOW_SIGNED_ENUMS /**/" >>confdefs.h
11280
11281                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11282$as_echo "yes" >&6; }
11283else
11284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285$as_echo "no" >&6; }
11286fi
11287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11288CFLAGS="$ac_save_CFLAGS"
11289
11290# Checks for library functions.
11291for ac_func in memmove
11292do :
11293  ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
11294if test "x$ac_cv_func_memmove" = x""yes; then :
11295  cat >>confdefs.h <<_ACEOF
11296#define HAVE_MEMMOVE 1
11297_ACEOF
11298
11299fi
11300done
11301
11302
11303# Check for pkg-config
11304# Extract the first word of "pkg-config", so it can be a program name with args.
11305set dummy pkg-config; ac_word=$2
11306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11307$as_echo_n "checking for $ac_word... " >&6; }
11308if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then :
11309  $as_echo_n "(cached) " >&6
11310else
11311  if test -n "$HAVE_PKG_CONFIG"; then
11312  ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
11313else
11314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11315for as_dir in $PATH
11316do
11317  IFS=$as_save_IFS
11318  test -z "$as_dir" && as_dir=.
11319    for ac_exec_ext in '' $ac_executable_extensions; do
11320  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11321    ac_cv_prog_HAVE_PKG_CONFIG="yes"
11322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11323    break 2
11324  fi
11325done
11326  done
11327IFS=$as_save_IFS
11328
11329fi
11330fi
11331HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
11332if test -n "$HAVE_PKG_CONFIG"; then
11333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PKG_CONFIG" >&5
11334$as_echo "$HAVE_PKG_CONFIG" >&6; }
11335else
11336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337$as_echo "no" >&6; }
11338fi
11339
11340
11341
11342# Check for doxygen
11343# Extract the first word of "doxygen", so it can be a program name with args.
11344set dummy doxygen; ac_word=$2
11345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11346$as_echo_n "checking for $ac_word... " >&6; }
11347if test "${ac_cv_prog_HAVE_DOXYGEN+set}" = set; then :
11348  $as_echo_n "(cached) " >&6
11349else
11350  if test -n "$HAVE_DOXYGEN"; then
11351  ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
11352else
11353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11354for as_dir in $PATH
11355do
11356  IFS=$as_save_IFS
11357  test -z "$as_dir" && as_dir=.
11358    for ac_exec_ext in '' $ac_executable_extensions; do
11359  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11360    ac_cv_prog_HAVE_DOXYGEN="true"
11361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11362    break 2
11363  fi
11364done
11365  done
11366IFS=$as_save_IFS
11367
11368  test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false"
11369fi
11370fi
11371HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
11372if test -n "$HAVE_DOXYGEN"; then
11373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
11374$as_echo "$HAVE_DOXYGEN" >&6; }
11375else
11376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377$as_echo "no" >&6; }
11378fi
11379
11380
11381 if $HAVE_DOXYGEN; then
11382  HAVE_DOXYGEN_TRUE=
11383  HAVE_DOXYGEN_FALSE='#'
11384else
11385  HAVE_DOXYGEN_TRUE='#'
11386  HAVE_DOXYGEN_FALSE=
11387fi
11388
11389if test $HAVE_DOXYGEN = "false"; then
11390             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** doxygen not found, docs will not be built" >&5
11391$as_echo "$as_me: WARNING: *** doxygen not found, docs will not be built" >&2;}
11392fi
11393
11394# Check for man2html
11395# Extract the first word of "man2html", so it can be a program name with args.
11396set dummy man2html; ac_word=$2
11397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398$as_echo_n "checking for $ac_word... " >&6; }
11399if test "${ac_cv_prog_HAVE_MAN2HTML+set}" = set; then :
11400  $as_echo_n "(cached) " >&6
11401else
11402  if test -n "$HAVE_MAN2HTML"; then
11403  ac_cv_prog_HAVE_MAN2HTML="$HAVE_MAN2HTML" # Let the user override the test.
11404else
11405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406for as_dir in $PATH
11407do
11408  IFS=$as_save_IFS
11409  test -z "$as_dir" && as_dir=.
11410    for ac_exec_ext in '' $ac_executable_extensions; do
11411  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11412    ac_cv_prog_HAVE_MAN2HTML="true"
11413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11414    break 2
11415  fi
11416done
11417  done
11418IFS=$as_save_IFS
11419
11420  test -z "$ac_cv_prog_HAVE_MAN2HTML" && ac_cv_prog_HAVE_MAN2HTML="false"
11421fi
11422fi
11423HAVE_MAN2HTML=$ac_cv_prog_HAVE_MAN2HTML
11424if test -n "$HAVE_MAN2HTML"; then
11425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_MAN2HTML" >&5
11426$as_echo "$HAVE_MAN2HTML" >&6; }
11427else
11428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11429$as_echo "no" >&6; }
11430fi
11431
11432
11433 if $HAVE_MAN2HTML; then
11434  HAVE_MAN2HTML_TRUE=
11435  HAVE_MAN2HTML_FALSE='#'
11436else
11437  HAVE_MAN2HTML_TRUE='#'
11438  HAVE_MAN2HTML_FALSE=
11439fi
11440
11441
11442# Check for valgrind
11443VALGRIND_ENVIRONMENT=""
11444ac_enable_valgrind=no
11445# Check whether --enable-valgrind-testing was given.
11446if test "${enable_valgrind_testing+set}" = set; then :
11447  enableval=$enable_valgrind_testing;  ac_enable_valgrind=yes
11448else
11449   ac_enable_valgrind=no
11450fi
11451
11452
11453if test "x${ac_enable_valgrind}" = xyes ; then
11454  if test "x${enable_shared}" = xyes ; then
11455    VALGRIND_ENVIRONMENT="libtool --mode=execute "
11456  fi
11457
11458  # Extract the first word of "valgrind", so it can be a program name with args.
11459set dummy valgrind; ac_word=$2
11460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11461$as_echo_n "checking for $ac_word... " >&6; }
11462if test "${ac_cv_prog_HAVE_VALGRIND+set}" = set; then :
11463  $as_echo_n "(cached) " >&6
11464else
11465  if test -n "$HAVE_VALGRIND"; then
11466  ac_cv_prog_HAVE_VALGRIND="$HAVE_VALGRIND" # Let the user override the test.
11467else
11468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11469for as_dir in $PATH
11470do
11471  IFS=$as_save_IFS
11472  test -z "$as_dir" && as_dir=.
11473    for ac_exec_ext in '' $ac_executable_extensions; do
11474  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11475    ac_cv_prog_HAVE_VALGRIND="yes"
11476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11477    break 2
11478  fi
11479done
11480  done
11481IFS=$as_save_IFS
11482
11483  test -z "$ac_cv_prog_HAVE_VALGRIND" && ac_cv_prog_HAVE_VALGRIND="no"
11484fi
11485fi
11486HAVE_VALGRIND=$ac_cv_prog_HAVE_VALGRIND
11487if test -n "$HAVE_VALGRIND"; then
11488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_VALGRIND" >&5
11489$as_echo "$HAVE_VALGRIND" >&6; }
11490else
11491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492$as_echo "no" >&6; }
11493fi
11494
11495
11496  if test "x$HAVE_VALGRIND" = xyes ; then
11497    VALGRIND_ENVIRONMENT="$VALGRIND_ENVIRONMENT valgrind -q --leak-check=yes --show-reachable=yes --num-callers=50"
11498
11499    TESTS_INFO="Test suite will be run under:
11500    ${VALGRIND_ENVIRONMENT}"
11501  else
11502    TESTS_INFO="(Valgrind not found)"
11503  fi
11504else
11505  TESTS_INFO="(Valgrind testing not enabled)"
11506fi
11507
11508LIBS=""
11509
11510# check for getopt in a separate library
11511HAVE_GETOPT=no
11512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt in -lgetopt" >&5
11513$as_echo_n "checking for getopt in -lgetopt... " >&6; }
11514if test "${ac_cv_lib_getopt_getopt+set}" = set; then :
11515  $as_echo_n "(cached) " >&6
11516else
11517  ac_check_lib_save_LIBS=$LIBS
11518LIBS="-lgetopt  $LIBS"
11519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520/* end confdefs.h.  */
11521
11522/* Override any GCC internal prototype to avoid an error.
11523   Use char because int might match the return type of a GCC
11524   builtin and then its argument prototype would still apply.  */
11525#ifdef __cplusplus
11526extern "C"
11527#endif
11528char getopt ();
11529int
11530main ()
11531{
11532return getopt ();
11533  ;
11534  return 0;
11535}
11536_ACEOF
11537if ac_fn_c_try_link "$LINENO"; then :
11538  ac_cv_lib_getopt_getopt=yes
11539else
11540  ac_cv_lib_getopt_getopt=no
11541fi
11542rm -f core conftest.err conftest.$ac_objext \
11543    conftest$ac_exeext conftest.$ac_ext
11544LIBS=$ac_check_lib_save_LIBS
11545fi
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getopt_getopt" >&5
11547$as_echo "$ac_cv_lib_getopt_getopt" >&6; }
11548if test "x$ac_cv_lib_getopt_getopt" = x""yes; then :
11549  HAVE_GETOPT="yes"
11550fi
11551
11552if test "x$HAVE_GETOPT" = xyes ; then
11553  GETOPT_LIBS="-lgetopt"
11554
11555fi
11556
11557# check for getopt_long in standard library
11558HAVE_GETOPT_LONG=no
11559ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
11560if test "x$ac_cv_func_getopt_long" = x""yes; then :
11561  HAVE_GETOPT_LONG="yes"
11562fi
11563
11564if test "x$HAVE_GETOPT_LONG" = xyes ; then
11565
11566$as_echo "#define HAVE_GETOPT_LONG /**/" >>confdefs.h
11567
11568fi
11569
11570oggz_config_ok=yes
11571
11572oggz_read_programs=""
11573oggz_rw_programs=""
11574
11575
11576ac_enable_experimental=no
11577# Check whether --enable-experimental was given.
11578if test "${enable_experimental+set}" = set; then :
11579  enableval=$enable_experimental;  ac_enable_experimental=yes
11580fi
11581
11582
11583if test "x${ac_enable_experimental}" = xyes ; then
11584
11585$as_echo "#define OGGZ_CONFIG_EXPERIMENTAL /**/" >>confdefs.h
11586
11587fi
11588
11589
11590ac_enable_read=yes
11591# Check whether --enable-read was given.
11592if test "${enable_read+set}" = set; then :
11593  enableval=$enable_read;  ac_enable_read=no
11594else
11595   ac_enable_read=yes
11596fi
11597
11598
11599if test "x${ac_enable_read}" = xyes ; then
11600
11601$as_echo "#define OGGZ_CONFIG_READ 1" >>confdefs.h
11602
11603    oggz_read_programs="oggz-dump oggz-info oggz-scan oggz-codecs"
11604else
11605
11606$as_echo "#define OGGZ_CONFIG_READ 0" >>confdefs.h
11607
11608fi
11609 if test "x${ac_enable_read}" = xyes; then
11610  OGGZ_CONFIG_READ_TRUE=
11611  OGGZ_CONFIG_READ_FALSE='#'
11612else
11613  OGGZ_CONFIG_READ_TRUE='#'
11614  OGGZ_CONFIG_READ_FALSE=
11615fi
11616
11617
11618
11619ac_enable_write=yes
11620# Check whether --enable-write was given.
11621if test "${enable_write+set}" = set; then :
11622  enableval=$enable_write;  ac_enable_write=no
11623else
11624   ac_enable_write=yes
11625fi
11626
11627
11628if test "x${ac_enable_write}" = xyes ; then
11629
11630$as_echo "#define OGGZ_CONFIG_WRITE 1" >>confdefs.h
11631
11632    if test "x${ac_enable_read}" = xyes ; then
11633      oggz_rw_programs="oggz-rip oggz-merge oggz-chop oggz-comment oggz-sort oggz-validate"
11634    fi
11635else
11636
11637$as_echo "#define OGGZ_CONFIG_WRITE 0" >>confdefs.h
11638
11639fi
11640 if test "x${ac_enable_write}" = xyes; then
11641  OGGZ_CONFIG_WRITE_TRUE=
11642  OGGZ_CONFIG_WRITE_FALSE='#'
11643else
11644  OGGZ_CONFIG_WRITE_TRUE='#'
11645  OGGZ_CONFIG_WRITE_FALSE=
11646fi
11647
11648
11649if test "x${ac_enable_read}" = xno && test "x${ac_enable_write}" = xno ; then
11650  as_fn_error "
11651***
11652*** You have attempted to explicitly disable both writing and reading.
11653***
11654" "$LINENO" 5
11655fi
11656
11657
11658HAVE_OGG=no
11659if test "x$HAVE_PKG_CONFIG" = "xyes" ; then
11660
11661
11662if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11663	if test -n "$ac_tool_prefix"; then
11664  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11665set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11667$as_echo_n "checking for $ac_word... " >&6; }
11668if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11669  $as_echo_n "(cached) " >&6
11670else
11671  case $PKG_CONFIG in
11672  [\\/]* | ?:[\\/]*)
11673  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11674  ;;
11675  *)
11676  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11677for as_dir in $PATH
11678do
11679  IFS=$as_save_IFS
11680  test -z "$as_dir" && as_dir=.
11681    for ac_exec_ext in '' $ac_executable_extensions; do
11682  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11683    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11685    break 2
11686  fi
11687done
11688  done
11689IFS=$as_save_IFS
11690
11691  ;;
11692esac
11693fi
11694PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11695if test -n "$PKG_CONFIG"; then
11696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11697$as_echo "$PKG_CONFIG" >&6; }
11698else
11699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11700$as_echo "no" >&6; }
11701fi
11702
11703
11704fi
11705if test -z "$ac_cv_path_PKG_CONFIG"; then
11706  ac_pt_PKG_CONFIG=$PKG_CONFIG
11707  # Extract the first word of "pkg-config", so it can be a program name with args.
11708set dummy pkg-config; ac_word=$2
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11710$as_echo_n "checking for $ac_word... " >&6; }
11711if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11712  $as_echo_n "(cached) " >&6
11713else
11714  case $ac_pt_PKG_CONFIG in
11715  [\\/]* | ?:[\\/]*)
11716  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11717  ;;
11718  *)
11719  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720for as_dir in $PATH
11721do
11722  IFS=$as_save_IFS
11723  test -z "$as_dir" && as_dir=.
11724    for ac_exec_ext in '' $ac_executable_extensions; do
11725  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11726    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728    break 2
11729  fi
11730done
11731  done
11732IFS=$as_save_IFS
11733
11734  ;;
11735esac
11736fi
11737ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11738if test -n "$ac_pt_PKG_CONFIG"; then
11739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11740$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11741else
11742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743$as_echo "no" >&6; }
11744fi
11745
11746  if test "x$ac_pt_PKG_CONFIG" = x; then
11747    PKG_CONFIG=""
11748  else
11749    case $cross_compiling:$ac_tool_warned in
11750yes:)
11751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11753ac_tool_warned=yes ;;
11754esac
11755    PKG_CONFIG=$ac_pt_PKG_CONFIG
11756  fi
11757else
11758  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11759fi
11760
11761fi
11762if test -n "$PKG_CONFIG"; then
11763	_pkg_min_version=0.9.0
11764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11765$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11766	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11767		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11768$as_echo "yes" >&6; }
11769	else
11770		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771$as_echo "no" >&6; }
11772		PKG_CONFIG=""
11773	fi
11774
11775fi
11776
11777pkg_failed=no
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OGG" >&5
11779$as_echo_n "checking for OGG... " >&6; }
11780
11781if test -n "$PKG_CONFIG"; then
11782    if test -n "$OGG_CFLAGS"; then
11783        pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
11784    else
11785        if test -n "$PKG_CONFIG" && \
11786    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5
11787  ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
11788  ac_status=$?
11789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11790  test $ac_status = 0; }; then
11791  pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0" 2>/dev/null`
11792else
11793  pkg_failed=yes
11794fi
11795    fi
11796else
11797	pkg_failed=untried
11798fi
11799if test -n "$PKG_CONFIG"; then
11800    if test -n "$OGG_LIBS"; then
11801        pkg_cv_OGG_LIBS="$OGG_LIBS"
11802    else
11803        if test -n "$PKG_CONFIG" && \
11804    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5
11805  ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
11806  ac_status=$?
11807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11808  test $ac_status = 0; }; then
11809  pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0" 2>/dev/null`
11810else
11811  pkg_failed=yes
11812fi
11813    fi
11814else
11815	pkg_failed=untried
11816fi
11817
11818
11819
11820if test $pkg_failed = yes; then
11821
11822if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11823        _pkg_short_errors_supported=yes
11824else
11825        _pkg_short_errors_supported=no
11826fi
11827        if test $_pkg_short_errors_supported = yes; then
11828	        OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.0"`
11829        else
11830	        OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.0"`
11831        fi
11832	# Put the nasty error message in config.log where it belongs
11833	echo "$OGG_PKG_ERRORS" >&5
11834
11835	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836$as_echo "no" >&6; }
11837                HAVE_OGG=no
11838elif test $pkg_failed = untried; then
11839	HAVE_OGG=no
11840else
11841	OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
11842	OGG_LIBS=$pkg_cv_OGG_LIBS
11843        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11844$as_echo "yes" >&6; }
11845	HAVE_OGG=yes
11846fi
11847fi
11848
11849if test "x$HAVE_OGG" = "xno" ; then
11850
11851# Check whether --with-ogg was given.
11852if test "${with_ogg+set}" = set; then :
11853  withval=$with_ogg; ogg_prefix="$withval"
11854else
11855  ogg_prefix=""
11856fi
11857
11858
11859# Check whether --with-ogg-libraries was given.
11860if test "${with_ogg_libraries+set}" = set; then :
11861  withval=$with_ogg_libraries; ogg_libraries="$withval"
11862else
11863  ogg_libraries=""
11864fi
11865
11866
11867# Check whether --with-ogg-includes was given.
11868if test "${with_ogg_includes+set}" = set; then :
11869  withval=$with_ogg_includes; ogg_includes="$withval"
11870else
11871  ogg_includes=""
11872fi
11873
11874# Check whether --enable-oggtest was given.
11875if test "${enable_oggtest+set}" = set; then :
11876  enableval=$enable_oggtest;
11877else
11878  enable_oggtest=yes
11879fi
11880
11881
11882  if test "x$ogg_libraries" != "x" ; then
11883    OGG_LIBS="-L$ogg_libraries"
11884  elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
11885    OGG_LIBS=""
11886  elif test "x$ogg_prefix" != "x" ; then
11887    OGG_LIBS="-L$ogg_prefix/lib"
11888  elif test "x$prefix" != "xNONE" ; then
11889    OGG_LIBS="-L$prefix/lib"
11890  fi
11891
11892  if test "x$ogg_prefix" != "xno" ; then
11893    OGG_LIBS="$OGG_LIBS -logg"
11894  fi
11895
11896  if test "x$ogg_includes" != "x" ; then
11897    OGG_CFLAGS="-I$ogg_includes"
11898  elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
11899    OGG_CFLAGS=""
11900  elif test "x$ogg_prefix" != "x" ; then
11901    OGG_CFLAGS="-I$ogg_prefix/include"
11902  elif test "x$prefix" != "xNONE"; then
11903    OGG_CFLAGS="-I$prefix/include"
11904  fi
11905
11906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ogg" >&5
11907$as_echo_n "checking for Ogg... " >&6; }
11908  if test "x$ogg_prefix" = "xno" ; then
11909    no_ogg="disabled"
11910    enable_oggtest="no"
11911  else
11912    no_ogg=""
11913  fi
11914
11915
11916  if test "x$enable_oggtest" = "xyes" ; then
11917    ac_save_CFLAGS="$CFLAGS"
11918    ac_save_LIBS="$LIBS"
11919    CFLAGS="$CFLAGS $OGG_CFLAGS"
11920    LIBS="$LIBS $OGG_LIBS"
11921      rm -f conf.oggtest
11922      if test "$cross_compiling" = yes; then :
11923  echo $ac_n "cross compiling; assumed OK... $ac_c"
11924else
11925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11926/* end confdefs.h.  */
11927
11928#include <stdio.h>
11929#include <stdlib.h>
11930#include <string.h>
11931#include <ogg/ogg.h>
11932
11933int main ()
11934{
11935  system("touch conf.oggtest");
11936  return 0;
11937}
11938
11939
11940_ACEOF
11941if ac_fn_c_try_run "$LINENO"; then :
11942
11943else
11944  no_ogg=yes
11945fi
11946rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11947  conftest.$ac_objext conftest.beam conftest.$ac_ext
11948fi
11949
11950       CFLAGS="$ac_save_CFLAGS"
11951       LIBS="$ac_save_LIBS"
11952  fi
11953
11954  if test "x$no_ogg" = "xdisabled" ; then
11955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956$as_echo "no" >&6; }
11957     HAVE_OGG="no"
11958  elif test "x$no_ogg" = "x" ; then
11959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11960$as_echo "yes" >&6; }
11961     HAVE_OGG="yes"
11962  else
11963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964$as_echo "no" >&6; }
11965     if test -f conf.oggtest ; then
11966       :
11967     else
11968       echo "*** Could not run Ogg test program, checking why..."
11969       CFLAGS="$CFLAGS $OGG_CFLAGS"
11970       LIBS="$LIBS $OGG_LIBS"
11971       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972/* end confdefs.h.  */
11973
11974#include <stdio.h>
11975#include <ogg/ogg.h>
11976
11977int
11978main ()
11979{
11980 return 0;
11981  ;
11982  return 0;
11983}
11984_ACEOF
11985if ac_fn_c_try_link "$LINENO"; then :
11986   echo "*** The test program compiled, but did not run. This usually means"
11987       echo "*** that the run-time linker is not finding Ogg or finding the wrong"
11988       echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
11989       echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11990       echo "*** to the installed location  Also, make sure you have run ldconfig if that"
11991       echo "*** is required on your system"
11992       echo "***"
11993       echo "*** If you have an old version installed, it is best to remove it, although"
11994       echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11995else
11996   echo "*** The test program failed to compile or link. See the file config.log for the"
11997       echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
11998       echo "*** or that you have moved Ogg since it was installed."
11999fi
12000rm -f core conftest.err conftest.$ac_objext \
12001    conftest$ac_exeext conftest.$ac_ext
12002       CFLAGS="$ac_save_CFLAGS"
12003       LIBS="$ac_save_LIBS"
12004     fi
12005     OGG_CFLAGS=""
12006     OGG_LIBS=""
12007     HAVE_OGG="no"
12008  fi
12009
12010
12011  rm -f conf.oggtest
12012
12013  if test "x$HAVE_OGG" = xno ; then
12014    oggz_config_ok="no"
12015    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ogg_stream_init in -logg" >&5
12016$as_echo_n "checking for ogg_stream_init in -logg... " >&6; }
12017if test "${ac_cv_lib_ogg_ogg_stream_init+set}" = set; then :
12018  $as_echo_n "(cached) " >&6
12019else
12020  ac_check_lib_save_LIBS=$LIBS
12021LIBS="-logg  $LIBS"
12022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023/* end confdefs.h.  */
12024
12025/* Override any GCC internal prototype to avoid an error.
12026   Use char because int might match the return type of a GCC
12027   builtin and then its argument prototype would still apply.  */
12028#ifdef __cplusplus
12029extern "C"
12030#endif
12031char ogg_stream_init ();
12032int
12033main ()
12034{
12035return ogg_stream_init ();
12036  ;
12037  return 0;
12038}
12039_ACEOF
12040if ac_fn_c_try_link "$LINENO"; then :
12041  ac_cv_lib_ogg_ogg_stream_init=yes
12042else
12043  ac_cv_lib_ogg_ogg_stream_init=no
12044fi
12045rm -f core conftest.err conftest.$ac_objext \
12046    conftest$ac_exeext conftest.$ac_ext
12047LIBS=$ac_check_lib_save_LIBS
12048fi
12049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ogg_ogg_stream_init" >&5
12050$as_echo "$ac_cv_lib_ogg_ogg_stream_init" >&6; }
12051if test "x$ac_cv_lib_ogg_ogg_stream_init" = x""yes; then :
12052  HAVE_OGG="maybe"
12053fi
12054
12055  fi
12056fi
12057
12058 if test "x$HAVE_OGG" = "xyes"; then
12059  HAVE_OGG_TRUE=
12060  HAVE_OGG_FALSE='#'
12061else
12062  HAVE_OGG_TRUE='#'
12063  HAVE_OGG_FALSE=
12064fi
12065
12066
12067if test "x$HAVE_OGG" = "xyes" ; then
12068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ogg_page_bos() takes a const argument" >&5
12069$as_echo_n "checking if ogg_page_bos() takes a const argument... " >&6; }
12070    ac_save_CFLAGS="$CFLAGS"
12071    ac_save_LIBS="$LIBS"
12072    CFLAGS="$CFLAGS -Wall -Werror $OGG_CFLAGS"
12073    LIBS="$LIBS $OGG_LIBS"
12074
12075    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076/* end confdefs.h.  */
12077#include <ogg/ogg.h>
12078int
12079main ()
12080{
12081int f(const ogg_page * cog){return ogg_page_bos(cog);}
12082  ;
12083  return 0;
12084}
12085_ACEOF
12086if ac_fn_c_try_compile "$LINENO"; then :
12087
12088$as_echo "#define OGG_H_CONST_CORRECT /**/" >>confdefs.h
12089
12090                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12091$as_echo "yes" >&6; }
12092else
12093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094$as_echo "no" >&6; }
12095fi
12096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12097
12098    CFLAGS="$ac_save_CFLAGS"
12099    LIBS="$ac_save_LIBS"
12100fi
12101
12102
12103unset ac_cv_sizeof_off_t
12104
12105# The cast to long int works around a bug in the HP C Compiler
12106# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12107# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12108# This bug is HP SR number 8606223364.
12109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12110$as_echo_n "checking size of off_t... " >&6; }
12111if test "${ac_cv_sizeof_off_t+set}" = set; then :
12112  $as_echo_n "(cached) " >&6
12113else
12114  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12115
12116else
12117  if test "$ac_cv_type_off_t" = yes; then
12118     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12120{ as_fn_set_status 77
12121as_fn_error "cannot compute sizeof (off_t)
12122See \`config.log' for more details." "$LINENO" 5; }; }
12123   else
12124     ac_cv_sizeof_off_t=0
12125   fi
12126fi
12127
12128fi
12129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12130$as_echo "$ac_cv_sizeof_off_t" >&6; }
12131
12132
12133
12134cat >>confdefs.h <<_ACEOF
12135#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12136_ACEOF
12137
12138
12139
12140case "$host_os" in
12141    mingw*)
12142        TYPEOF_OGGZ_OFF_T="__int64"
12143        OGGZ_OFF_MAX="0x7FFFFFFFFFFFFFFFLL"
12144        SIZEOF_OGGZ_OFF_T=8
12145        ;;
12146    *)
12147        if test "x$ac_cv_sizeof_off_t" = "x8" ; then
12148            # If sizeof (off_t) is 8, no further checking is needed.
12149            TYPEOF_OGGZ_OFF_T="off_t"
12150            OGGZ_OFF_MAX="0x7FFFFFFFFFFFFFFFLL"
12151            SIZEOF_OGGZ_OFF_T=8
12152        else
12153            # Check for common 64 bit file offset types.
12154            # The cast to long int works around a bug in the HP C Compiler
12155# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12156# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12157# This bug is HP SR number 8606223364.
12158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of loff_t" >&5
12159$as_echo_n "checking size of loff_t... " >&6; }
12160if test "${ac_cv_sizeof_loff_t+set}" = set; then :
12161  $as_echo_n "(cached) " >&6
12162else
12163  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (loff_t))" "ac_cv_sizeof_loff_t"        "$ac_includes_default"; then :
12164
12165else
12166  if test "$ac_cv_type_loff_t" = yes; then
12167     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12169{ as_fn_set_status 77
12170as_fn_error "cannot compute sizeof (loff_t)
12171See \`config.log' for more details." "$LINENO" 5; }; }
12172   else
12173     ac_cv_sizeof_loff_t=0
12174   fi
12175fi
12176
12177fi
12178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_loff_t" >&5
12179$as_echo "$ac_cv_sizeof_loff_t" >&6; }
12180
12181
12182
12183cat >>confdefs.h <<_ACEOF
12184#define SIZEOF_LOFF_T $ac_cv_sizeof_loff_t
12185_ACEOF
12186
12187       # Fake default value.
12188            # The cast to long int works around a bug in the HP C Compiler
12189# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12190# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12191# This bug is HP SR number 8606223364.
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
12193$as_echo_n "checking size of off64_t... " >&6; }
12194if test "${ac_cv_sizeof_off64_t+set}" = set; then :
12195  $as_echo_n "(cached) " >&6
12196else
12197  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t"        "$ac_includes_default"; then :
12198
12199else
12200  if test "$ac_cv_type_off64_t" = yes; then
12201     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12203{ as_fn_set_status 77
12204as_fn_error "cannot compute sizeof (off64_t)
12205See \`config.log' for more details." "$LINENO" 5; }; }
12206   else
12207     ac_cv_sizeof_off64_t=0
12208   fi
12209fi
12210
12211fi
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
12213$as_echo "$ac_cv_sizeof_off64_t" >&6; }
12214
12215
12216
12217cat >>confdefs.h <<_ACEOF
12218#define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
12219_ACEOF
12220
12221      # Fake default value.
12222
12223            TYPEOF_OGGZ_OFF_T="unknown"
12224            if test "x$ac_cv_sizeof_loff_t" = "x8" ; then
12225                TYPEOF_OGGZ_OFF_T="loff_t"
12226                SIZEOF_OGGZ_OFF_T=8
12227            elif test "x$ac_cv_sizeof_off64_t" = "x8" ; then
12228                TYPEOF_OGGZ_OFF_T="off64_t"
12229                SIZEOF_OGGZ_OFF_T=8
12230            fi
12231
12232            # Save the old sizeof (off_t) value  and then unset it to see if it
12233            # changes when Large File Support is enabled.
12234
12235            pre_largefile_sizeof_off_t=$ac_cv_sizeof_off_t
12236            unset ac_cv_sizeof_off_t
12237
12238
12239   # Check whether --enable-largefile was given.
12240if test "${enable_largefile+set}" = set; then :
12241  enableval=$enable_largefile;
12242fi
12243
12244   if test "$enable_largefile" != no; then
12245     if test -n "$ac_tool_prefix"; then
12246  # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
12247set dummy ${ac_tool_prefix}getconf; ac_word=$2
12248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12249$as_echo_n "checking for $ac_word... " >&6; }
12250if test "${ac_cv_prog_GETCONF+set}" = set; then :
12251  $as_echo_n "(cached) " >&6
12252else
12253  if test -n "$GETCONF"; then
12254  ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
12255else
12256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12257for as_dir in $PATH
12258do
12259  IFS=$as_save_IFS
12260  test -z "$as_dir" && as_dir=.
12261    for ac_exec_ext in '' $ac_executable_extensions; do
12262  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12263    ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
12264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12265    break 2
12266  fi
12267done
12268  done
12269IFS=$as_save_IFS
12270
12271fi
12272fi
12273GETCONF=$ac_cv_prog_GETCONF
12274if test -n "$GETCONF"; then
12275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
12276$as_echo "$GETCONF" >&6; }
12277else
12278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279$as_echo "no" >&6; }
12280fi
12281
12282
12283fi
12284if test -z "$ac_cv_prog_GETCONF"; then
12285  ac_ct_GETCONF=$GETCONF
12286  # Extract the first word of "getconf", so it can be a program name with args.
12287set dummy getconf; ac_word=$2
12288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12289$as_echo_n "checking for $ac_word... " >&6; }
12290if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
12291  $as_echo_n "(cached) " >&6
12292else
12293  if test -n "$ac_ct_GETCONF"; then
12294  ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
12295else
12296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12297for as_dir in $PATH
12298do
12299  IFS=$as_save_IFS
12300  test -z "$as_dir" && as_dir=.
12301    for ac_exec_ext in '' $ac_executable_extensions; do
12302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12303    ac_cv_prog_ac_ct_GETCONF="getconf"
12304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12305    break 2
12306  fi
12307done
12308  done
12309IFS=$as_save_IFS
12310
12311fi
12312fi
12313ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
12314if test -n "$ac_ct_GETCONF"; then
12315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
12316$as_echo "$ac_ct_GETCONF" >&6; }
12317else
12318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12319$as_echo "no" >&6; }
12320fi
12321
12322  if test "x$ac_ct_GETCONF" = x; then
12323    GETCONF=""
12324  else
12325    case $cross_compiling:$ac_tool_warned in
12326yes:)
12327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12329ac_tool_warned=yes ;;
12330esac
12331    GETCONF=$ac_ct_GETCONF
12332  fi
12333else
12334  GETCONF="$ac_cv_prog_GETCONF"
12335fi
12336
12337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
12338$as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
12339if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
12340  $as_echo_n "(cached) " >&6
12341else
12342  ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
12343	ac_cv_sys_largefile_CFLAGS=no
12344	case "$host_os" in
12345	   # IRIX 6.2 and later require cc -n32.
12346	   irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
12347	     if test "$GCC" != yes; then
12348	       ac_cv_sys_largefile_CFLAGS=-n32
12349	     fi
12350	     ac_save_CC="$CC"
12351	     CC="$CC $ac_cv_sys_largefile_CFLAGS"
12352	     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353/* end confdefs.h.  */
12354
12355int
12356main ()
12357{
12358
12359  ;
12360  return 0;
12361}
12362_ACEOF
12363if ac_fn_c_try_link "$LINENO"; then :
12364
12365else
12366  ac_cv_sys_largefile_CFLAGS=no
12367fi
12368rm -f core conftest.err conftest.$ac_objext \
12369    conftest$ac_exeext conftest.$ac_ext
12370	     CC="$ac_save_CC"
12371	   esac
12372      }
12373fi
12374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
12375$as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
12376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
12377$as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
12378if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
12379  $as_echo_n "(cached) " >&6
12380else
12381  ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
12382	ac_cv_sys_largefile_LDFLAGS=no
12383
12384      }
12385fi
12386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
12387$as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
12388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
12389$as_echo_n "checking for LIBS value to request large file support... " >&6; }
12390if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
12391  $as_echo_n "(cached) " >&6
12392else
12393  ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
12394	ac_cv_sys_largefile_LIBS=no
12395
12396      }
12397fi
12398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
12399$as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
12400
12401     for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
12402       case "$ac_flag" in
12403       no) ;;
12404       -D_FILE_OFFSET_BITS=*) ;;
12405       -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
12406       -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
12407       -D?* | -I?*)
12408	 case "$ac_flag" in
12409   no) ;;
12410   ?*)
12411     case "$CPPFLAGS" in
12412     '') CPPFLAGS="$ac_flag" ;;
12413     *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
12414     esac ;;
12415   esac ;;
12416       *)
12417	 case "$ac_flag" in
12418   no) ;;
12419   ?*)
12420     case "$CFLAGS" in
12421     '') CFLAGS="$ac_flag" ;;
12422     *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
12423     esac ;;
12424   esac ;;
12425       esac
12426     done
12427     case "$ac_cv_sys_largefile_LDFLAGS" in
12428   no) ;;
12429   ?*)
12430     case "$LDFLAGS" in
12431     '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
12432     *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
12433     esac ;;
12434   esac
12435     case "$ac_cv_sys_largefile_LIBS" in
12436   no) ;;
12437   ?*)
12438     case "$LIBS" in
12439     '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
12440     *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
12441     esac ;;
12442   esac
12443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
12444$as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
12445if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
12446  $as_echo_n "(cached) " >&6
12447else
12448  ac_cv_sys_file_offset_bits=no
12449
12450      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
12451	case "$ac_flag" in
12452	-D_FILE_OFFSET_BITS)
12453	  ac_cv_sys_file_offset_bits=1 ;;
12454	-D_FILE_OFFSET_BITS=*)
12455	  ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
12456	esac
12457      done
12458
12459fi
12460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12461$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12462   if test "$ac_cv_sys_file_offset_bits" != no; then
12463
12464cat >>confdefs.h <<_ACEOF
12465#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12466_ACEOF
12467
12468   fi
12469       case "$host_os" in
12470	# HP-UX 10.20 and later
12471	hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
12472	  ac_cv_sys_file_offset_bits=64 ;;
12473	esac
12474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
12475$as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
12476if test "${ac_cv_sys_largefile_source+set}" = set; then :
12477  $as_echo_n "(cached) " >&6
12478else
12479  ac_cv_sys_largefile_source=no
12480      case "$host_os" in
12481	# HP-UX 10.20 and later
12482	hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
12483	  ac_cv_sys_largefile_source=1 ;;
12484	esac
12485      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
12486	case "$ac_flag" in
12487	-D_LARGEFILE_SOURCE)
12488	  ac_cv_sys_largefile_source=1 ;;
12489	-D_LARGEFILE_SOURCE=*)
12490	  ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
12491	esac
12492      done
12493
12494fi
12495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12496$as_echo "$ac_cv_sys_largefile_source" >&6; }
12497   if test "$ac_cv_sys_largefile_source" != no; then
12498
12499cat >>confdefs.h <<_ACEOF
12500#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12501_ACEOF
12502
12503   fi
12504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
12505$as_echo_n "checking for _LARGE_FILES... " >&6; }
12506if test "${ac_cv_sys_large_files+set}" = set; then :
12507  $as_echo_n "(cached) " >&6
12508else
12509  ac_cv_sys_large_files=no
12510      case "$host_os" in
12511	# AIX 4.2 and later
12512	aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
12513	  ac_cv_sys_large_files=1 ;;
12514	esac
12515      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
12516	case "$ac_flag" in
12517	-D_LARGE_FILES)
12518	  ac_cv_sys_large_files=1 ;;
12519	-D_LARGE_FILES=*)
12520	  ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
12521	esac
12522      done
12523
12524fi
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12526$as_echo "$ac_cv_sys_large_files" >&6; }
12527   if test "$ac_cv_sys_large_files" != no; then
12528
12529cat >>confdefs.h <<_ACEOF
12530#define _LARGE_FILES $ac_cv_sys_large_files
12531_ACEOF
12532
12533   fi
12534   fi
12535
12536
12537            if test "x$ac_cv_sys_largefile_CFLAGS" = "xno" ; then
12538                ac_cv_sys_largefile_CFLAGS=""
12539            fi
12540            if test "x$ac_cv_sys_largefile_LDFLAGS" = "xno" ; then
12541                ac_cv_sys_largefile_LDFLAGS=""
12542            fi
12543            if test "x$ac_cv_sys_largefile_LIBS" = "xno" ; then
12544                ac_cv_sys_largefile_LIBS=""
12545            fi
12546
12547            # The cast to long int works around a bug in the HP C Compiler
12548# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12549# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12550# This bug is HP SR number 8606223364.
12551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12552$as_echo_n "checking size of off_t... " >&6; }
12553if test "${ac_cv_sizeof_off_t+set}" = set; then :
12554  $as_echo_n "(cached) " >&6
12555else
12556  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
12557
12558else
12559  if test "$ac_cv_type_off_t" = yes; then
12560     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12562{ as_fn_set_status 77
12563as_fn_error "cannot compute sizeof (off_t)
12564See \`config.log' for more details." "$LINENO" 5; }; }
12565   else
12566     ac_cv_sizeof_off_t=0
12567   fi
12568fi
12569
12570fi
12571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12572$as_echo "$ac_cv_sizeof_off_t" >&6; }
12573
12574
12575
12576cat >>confdefs.h <<_ACEOF
12577#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12578_ACEOF
12579
12580        # Fake default value.
12581
12582            if test "x$ac_cv_sizeof_off_t" = "x8" ; then
12583                    OGGZ_OFF_MAX="0x7FFFFFFFFFFFFFFFLL"
12584            elif test "x$ac_cv_sizeof_off_t" = "x$pre_largefile_sizeof_off_t" ; then
12585                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This machine does not seem to support 64 bit file offsets." >&5
12586$as_echo "$as_me: WARNING: This machine does not seem to support 64 bit file offsets." >&2;}
12587                TYPEOF_OGGZ_OFF_T="off_t"
12588                SIZEOF_OGGZ_OFF_T=$ac_cv_sizeof_off_t
12589            elif test "x$TYPEOF_OGGZ_OFF_T" = "xunknown" ; then
12590                echo
12591                echo "*** The configure process has determined that this system is capable"
12592                echo "*** of Large File Support but has not been able to find a type which"
12593                echo "*** is an unambiguous 64 bit file offset."
12594                echo "*** Please contact the author to help resolve this problem."
12595                echo
12596                as_fn_error "Bad file offset type." "$LINENO" 5
12597            fi
12598        fi
12599    ;;
12600    esac
12601
12602if test $SIZEOF_OGGZ_OFF_T = 4 ; then
12603    OGGZ_OFF_MAX="0x7FFFFFFF"
12604    PRI_OGGZ_OFF_T="l"
12605elif test $SIZEOF_OGGZ_OFF_T = 8 ; then
12606    PRI_OGGZ_OFF_T="ll"
12607fi
12608
12609
12610
12611
12612
12613
12614cat >>confdefs.h <<_ACEOF
12615#define SIZEOF_OGGZ_OFF_T ${SIZEOF_OGGZ_OFF_T}
12616_ACEOF
12617
12618
12619
12620
12621cat >>confdefs.h <<_ACEOF
12622#define OGGZ_OFF_MAX ${OGGZ_OFF_MAX}
12623_ACEOF
12624
12625
12626
12627ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12628if test "x$ac_cv_type_ssize_t" = x""yes; then :
12629
12630cat >>confdefs.h <<_ACEOF
12631#define HAVE_SSIZE_T 1
12632_ACEOF
12633
12634
12635fi
12636
12637# The cast to long int works around a bug in the HP C Compiler
12638# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12639# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12640# This bug is HP SR number 8606223364.
12641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
12642$as_echo_n "checking size of ssize_t... " >&6; }
12643if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
12644  $as_echo_n "(cached) " >&6
12645else
12646  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
12647
12648else
12649  if test "$ac_cv_type_ssize_t" = yes; then
12650     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12652{ as_fn_set_status 77
12653as_fn_error "cannot compute sizeof (ssize_t)
12654See \`config.log' for more details." "$LINENO" 5; }; }
12655   else
12656     ac_cv_sizeof_ssize_t=0
12657   fi
12658fi
12659
12660fi
12661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
12662$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
12663
12664
12665
12666cat >>confdefs.h <<_ACEOF
12667#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
12668_ACEOF
12669
12670
12671
12672# MacOS 10.4 only declares timezone for _XOPEN_SOURCE. Check for this.
12673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5
12674$as_echo_n "checking for timezone... " >&6; }
12675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676/* end confdefs.h.  */
12677#include <time.h>
12678int
12679main ()
12680{
12681
12682    int seconds = 1234567;
12683    seconds -= timezone;
12684
12685  ;
12686  return 0;
12687}
12688_ACEOF
12689if ac_fn_c_try_compile "$LINENO"; then :
12690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12691$as_echo "ok" >&6; }
12692else
12693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694$as_echo "no" >&6; }
12695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone with _XOPEN_SOURCE" >&5
12696$as_echo_n "checking for timezone with _XOPEN_SOURCE... " >&6; }
12697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12698/* end confdefs.h.  */
12699
12700#define _XOPEN_SOURCE
12701#include <time.h>
12702
12703int
12704main ()
12705{
12706
12707      int seconds = 1234567;
12708      seconds -= timezone;
12709
12710  ;
12711  return 0;
12712}
12713_ACEOF
12714if ac_fn_c_try_compile "$LINENO"; then :
12715      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12716$as_echo "ok" >&6; }
12717
12718$as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h
12719
12720else
12721      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722$as_echo "no" >&6; }
12723
12724fi
12725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12726
12727fi
12728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12729
12730# Checks for typedefs, structures, and compiler characteristics.
12731
12732if test "x$ac_cv_c_compiler_gnu" = xyes ; then
12733  CFLAGS="$CFLAGS -Wall -Wextra -g -std=gnu99 -Wdeclaration-after-statement -Wno-unused"
12734fi
12735
12736
12737# Check whether --enable-gcc-werror was given.
12738if test "${enable_gcc_werror+set}" = set; then :
12739  enableval=$enable_gcc_werror;  ac_enable_gcc_werror=yes
12740else
12741   ac_enable_gcc_werror=no
12742fi
12743
12744
12745if test "x${ac_enable_gcc_werror}" = xyes ; then
12746  CFLAGS="-Werror $CFLAGS"
12747fi
12748
12749
12750case "$target_os" in
12751  linux* | solaris*|k*bsd*-gnu*|gnu*)
12752    SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"
12753    ;;
12754  *)
12755    ;;
12756esac
12757
12758# Checks for library functions.
12759
12760
12761if test $oggz_config_ok = no ; then
12762
12763{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
12764**************************************************************
12765
12766*** $PACKAGE $VERSION: Automatic configuration FAILED.
12767
12768*** The file config.log has full details.
12769
12770*** The following required libraries are missing or
12771*** misconfigured on your system:
12772" >&5
12773$as_echo "
12774**************************************************************
12775
12776*** $PACKAGE $VERSION: Automatic configuration FAILED.
12777
12778*** The file config.log has full details.
12779
12780*** The following required libraries are missing or
12781*** misconfigured on your system:
12782" >&6; }
12783
12784if test "x$HAVE_OGG" != xyes ; then
12785    { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** libogg, available from  http://www.xiph.org/ogg/" >&5
12786$as_echo "*** libogg, available from  http://www.xiph.org/ogg/" >&6; }
12787fi
12788if test "x$HAVE_OGG" = xmaybe ; then
12789    { $as_echo "$as_me:${as_lineno-$LINENO}: result:       Development files missing: The libogg library binary seems to be
12790      installed, but building of a test program failed.
12791" >&5
12792$as_echo "      Development files missing: The libogg library binary seems to be
12793      installed, but building of a test program failed.
12794" >&6; }
12795fi
12796
12797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** If you install the required libraries from source, you
12798*** need to inform the dynamic linker of their location. If
12799*** you install them in a system-wide directory such as
12800*** /usr/local (the default), you must ensure that
12801*** /usr/local/lib is listed in /etc/ld.so.conf, then run
12802*** ldconfig to update the dynamic linking system.
12803*** Alternatively, you can set your LD_LIBRARY_PATH environment
12804*** variable to include the library installation directory.
12805" >&5
12806$as_echo "*** If you install the required libraries from source, you
12807*** need to inform the dynamic linker of their location. If
12808*** you install them in a system-wide directory such as
12809*** /usr/local (the default), you must ensure that
12810*** /usr/local/lib is listed in /etc/ld.so.conf, then run
12811*** ldconfig to update the dynamic linking system.
12812*** Alternatively, you can set your LD_LIBRARY_PATH environment
12813*** variable to include the library installation directory.
12814" >&6; }
12815
12816
12817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: **************************************************************
12818" >&5
12819$as_echo "**************************************************************
12820" >&6; }
12821
12822
12823as_fn_error "
12824***
12825*** After fixing the above problems, you must run ./configure again.
12826***
12827" "$LINENO" 5
12828
12829else
12830
12831
12832  EXP_VAR=LIBDIR
12833  FROM_VAR=${libdir}
12834
12835    prefix_save=$prefix
12836  exec_prefix_save=$exec_prefix
12837
12838    if test "x$prefix" = "xNONE"; then
12839    prefix="$ac_default_prefix"
12840  fi
12841    if test "x$exec_prefix" = "xNONE"; then
12842    exec_prefix=$prefix
12843  fi
12844
12845  full_var="$FROM_VAR"
12846    while true; do
12847    new_full_var="`eval echo $full_var`"
12848    if test "x$new_full_var" = "x$full_var"; then break; fi
12849    full_var=$new_full_var
12850  done
12851
12852    full_var=$new_full_var
12853  LIBDIR="$full_var"
12854
12855
12856    prefix=$prefix_save
12857  exec_prefix=$exec_prefix_save
12858
12859
12860  EXP_VAR=INCLUDEDIR
12861  FROM_VAR=${includedir}
12862
12863    prefix_save=$prefix
12864  exec_prefix_save=$exec_prefix
12865
12866    if test "x$prefix" = "xNONE"; then
12867    prefix="$ac_default_prefix"
12868  fi
12869    if test "x$exec_prefix" = "xNONE"; then
12870    exec_prefix=$prefix
12871  fi
12872
12873  full_var="$FROM_VAR"
12874    while true; do
12875    new_full_var="`eval echo $full_var`"
12876    if test "x$new_full_var" = "x$full_var"; then break; fi
12877    full_var=$new_full_var
12878  done
12879
12880    full_var=$new_full_var
12881  INCLUDEDIR="$full_var"
12882
12883
12884    prefix=$prefix_save
12885  exec_prefix=$exec_prefix_save
12886
12887
12888  EXP_VAR=BINDIR
12889  FROM_VAR=${bindir}
12890
12891    prefix_save=$prefix
12892  exec_prefix_save=$exec_prefix
12893
12894    if test "x$prefix" = "xNONE"; then
12895    prefix="$ac_default_prefix"
12896  fi
12897    if test "x$exec_prefix" = "xNONE"; then
12898    exec_prefix=$prefix
12899  fi
12900
12901  full_var="$FROM_VAR"
12902    while true; do
12903    new_full_var="`eval echo $full_var`"
12904    if test "x$new_full_var" = "x$full_var"; then break; fi
12905    full_var=$new_full_var
12906  done
12907
12908    full_var=$new_full_var
12909  BINDIR="$full_var"
12910
12911
12912    prefix=$prefix_save
12913  exec_prefix=$exec_prefix_save
12914
12915
12916  EXP_VAR=DOCDIR
12917  FROM_VAR=${datadir}/doc
12918
12919    prefix_save=$prefix
12920  exec_prefix_save=$exec_prefix
12921
12922    if test "x$prefix" = "xNONE"; then
12923    prefix="$ac_default_prefix"
12924  fi
12925    if test "x$exec_prefix" = "xNONE"; then
12926    exec_prefix=$prefix
12927  fi
12928
12929  full_var="$FROM_VAR"
12930    while true; do
12931    new_full_var="`eval echo $full_var`"
12932    if test "x$new_full_var" = "x$full_var"; then break; fi
12933    full_var=$new_full_var
12934  done
12935
12936    full_var=$new_full_var
12937  DOCDIR="$full_var"
12938
12939
12940    prefix=$prefix_save
12941  exec_prefix=$exec_prefix_save
12942
12943
12944
12945
12946
12947
12948
12949ac_config_files="$ac_config_files Makefile doc/Makefile doc/Doxyfile include/Makefile include/oggz/Makefile include/oggz/oggz_off_t_generated.h src/Makefile src/liboggz/Version_script src/liboggz/Makefile src/tools/Makefile src/tools/oggz-diff src/tools/oggz-chop/Makefile src/tests/Makefile src/examples/Makefile apache/oggz-chop.conf oggz.pc oggz-uninstalled.pc"
12950
12951cat >confcache <<\_ACEOF
12952# This file is a shell script that caches the results of configure
12953# tests run on this system so they can be shared between configure
12954# scripts and configure runs, see configure's option --config-cache.
12955# It is not useful on other systems.  If it contains results you don't
12956# want to keep, you may remove or edit it.
12957#
12958# config.status only pays attention to the cache file if you give it
12959# the --recheck option to rerun configure.
12960#
12961# `ac_cv_env_foo' variables (set or unset) will be overridden when
12962# loading this file, other *unset* `ac_cv_foo' will be assigned the
12963# following values.
12964
12965_ACEOF
12966
12967# The following way of writing the cache mishandles newlines in values,
12968# but we know of no workaround that is simple, portable, and efficient.
12969# So, we kill variables containing newlines.
12970# Ultrix sh set writes to stderr and can't be redirected directly,
12971# and sets the high bit in the cache file unless we assign to the vars.
12972(
12973  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12974    eval ac_val=\$$ac_var
12975    case $ac_val in #(
12976    *${as_nl}*)
12977      case $ac_var in #(
12978      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12979$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12980      esac
12981      case $ac_var in #(
12982      _ | IFS | as_nl) ;; #(
12983      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12984      *) { eval $ac_var=; unset $ac_var;} ;;
12985      esac ;;
12986    esac
12987  done
12988
12989  (set) 2>&1 |
12990    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12991    *${as_nl}ac_space=\ *)
12992      # `set' does not quote correctly, so add quotes: double-quote
12993      # substitution turns \\\\ into \\, and sed turns \\ into \.
12994      sed -n \
12995	"s/'/'\\\\''/g;
12996	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12997      ;; #(
12998    *)
12999      # `set' quotes correctly as required by POSIX, so do not add quotes.
13000      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13001      ;;
13002    esac |
13003    sort
13004) |
13005  sed '
13006     /^ac_cv_env_/b end
13007     t clear
13008     :clear
13009     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13010     t end
13011     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13012     :end' >>confcache
13013if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13014  if test -w "$cache_file"; then
13015    test "x$cache_file" != "x/dev/null" &&
13016      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13017$as_echo "$as_me: updating cache $cache_file" >&6;}
13018    cat confcache >$cache_file
13019  else
13020    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13021$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13022  fi
13023fi
13024rm -f confcache
13025
13026test "x$prefix" = xNONE && prefix=$ac_default_prefix
13027# Let make expand exec_prefix.
13028test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13029
13030DEFS=-DHAVE_CONFIG_H
13031
13032ac_libobjs=
13033ac_ltlibobjs=
13034for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13035  # 1. Remove the extension, and $U if already installed.
13036  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13037  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13038  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13039  #    will be set to the directory where LIBOBJS objects are built.
13040  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13041  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13042done
13043LIBOBJS=$ac_libobjs
13044
13045LTLIBOBJS=$ac_ltlibobjs
13046
13047
13048 if test -n "$EXEEXT"; then
13049  am__EXEEXT_TRUE=
13050  am__EXEEXT_FALSE='#'
13051else
13052  am__EXEEXT_TRUE='#'
13053  am__EXEEXT_FALSE=
13054fi
13055
13056if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13057  as_fn_error "conditional \"AMDEP\" was never defined.
13058Usually this means the macro was only invoked conditionally." "$LINENO" 5
13059fi
13060if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13061  as_fn_error "conditional \"am__fastdepCC\" was never defined.
13062Usually this means the macro was only invoked conditionally." "$LINENO" 5
13063fi
13064
13065if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
13066  as_fn_error "conditional \"HAVE_DOXYGEN\" was never defined.
13067Usually this means the macro was only invoked conditionally." "$LINENO" 5
13068fi
13069if test -z "${HAVE_MAN2HTML_TRUE}" && test -z "${HAVE_MAN2HTML_FALSE}"; then
13070  as_fn_error "conditional \"HAVE_MAN2HTML\" was never defined.
13071Usually this means the macro was only invoked conditionally." "$LINENO" 5
13072fi
13073if test -z "${OGGZ_CONFIG_READ_TRUE}" && test -z "${OGGZ_CONFIG_READ_FALSE}"; then
13074  as_fn_error "conditional \"OGGZ_CONFIG_READ\" was never defined.
13075Usually this means the macro was only invoked conditionally." "$LINENO" 5
13076fi
13077if test -z "${OGGZ_CONFIG_WRITE_TRUE}" && test -z "${OGGZ_CONFIG_WRITE_FALSE}"; then
13078  as_fn_error "conditional \"OGGZ_CONFIG_WRITE\" was never defined.
13079Usually this means the macro was only invoked conditionally." "$LINENO" 5
13080fi
13081if test -z "${HAVE_OGG_TRUE}" && test -z "${HAVE_OGG_FALSE}"; then
13082  as_fn_error "conditional \"HAVE_OGG\" was never defined.
13083Usually this means the macro was only invoked conditionally." "$LINENO" 5
13084fi
13085
13086: ${CONFIG_STATUS=./config.status}
13087ac_write_fail=0
13088ac_clean_files_save=$ac_clean_files
13089ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13090{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13091$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13092as_write_fail=0
13093cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13094#! $SHELL
13095# Generated by $as_me.
13096# Run this file to recreate the current configuration.
13097# Compiler output produced by configure, useful for debugging
13098# configure, is in config.log if it exists.
13099
13100debug=false
13101ac_cs_recheck=false
13102ac_cs_silent=false
13103
13104SHELL=\${CONFIG_SHELL-$SHELL}
13105export SHELL
13106_ASEOF
13107cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13108## -------------------- ##
13109## M4sh Initialization. ##
13110## -------------------- ##
13111
13112# Be more Bourne compatible
13113DUALCASE=1; export DUALCASE # for MKS sh
13114if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13115  emulate sh
13116  NULLCMD=:
13117  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13118  # is contrary to our usage.  Disable this feature.
13119  alias -g '${1+"$@"}'='"$@"'
13120  setopt NO_GLOB_SUBST
13121else
13122  case `(set -o) 2>/dev/null` in #(
13123  *posix*) :
13124    set -o posix ;; #(
13125  *) :
13126     ;;
13127esac
13128fi
13129
13130
13131as_nl='
13132'
13133export as_nl
13134# Printing a long string crashes Solaris 7 /usr/bin/printf.
13135as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13136as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13137as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13138# Prefer a ksh shell builtin over an external printf program on Solaris,
13139# but without wasting forks for bash or zsh.
13140if test -z "$BASH_VERSION$ZSH_VERSION" \
13141    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13142  as_echo='print -r --'
13143  as_echo_n='print -rn --'
13144elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13145  as_echo='printf %s\n'
13146  as_echo_n='printf %s'
13147else
13148  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13149    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13150    as_echo_n='/usr/ucb/echo -n'
13151  else
13152    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13153    as_echo_n_body='eval
13154      arg=$1;
13155      case $arg in #(
13156      *"$as_nl"*)
13157	expr "X$arg" : "X\\(.*\\)$as_nl";
13158	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13159      esac;
13160      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13161    '
13162    export as_echo_n_body
13163    as_echo_n='sh -c $as_echo_n_body as_echo'
13164  fi
13165  export as_echo_body
13166  as_echo='sh -c $as_echo_body as_echo'
13167fi
13168
13169# The user is always right.
13170if test "${PATH_SEPARATOR+set}" != set; then
13171  PATH_SEPARATOR=:
13172  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13173    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13174      PATH_SEPARATOR=';'
13175  }
13176fi
13177
13178
13179# IFS
13180# We need space, tab and new line, in precisely that order.  Quoting is
13181# there to prevent editors from complaining about space-tab.
13182# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13183# splitting by setting IFS to empty value.)
13184IFS=" ""	$as_nl"
13185
13186# Find who we are.  Look in the path if we contain no directory separator.
13187case $0 in #((
13188  *[\\/]* ) as_myself=$0 ;;
13189  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190for as_dir in $PATH
13191do
13192  IFS=$as_save_IFS
13193  test -z "$as_dir" && as_dir=.
13194    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13195  done
13196IFS=$as_save_IFS
13197
13198     ;;
13199esac
13200# We did not find ourselves, most probably we were run as `sh COMMAND'
13201# in which case we are not to be found in the path.
13202if test "x$as_myself" = x; then
13203  as_myself=$0
13204fi
13205if test ! -f "$as_myself"; then
13206  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13207  exit 1
13208fi
13209
13210# Unset variables that we do not need and which cause bugs (e.g. in
13211# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13212# suppresses any "Segmentation fault" message there.  '((' could
13213# trigger a bug in pdksh 5.2.14.
13214for as_var in BASH_ENV ENV MAIL MAILPATH
13215do eval test x\${$as_var+set} = xset \
13216  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13217done
13218PS1='$ '
13219PS2='> '
13220PS4='+ '
13221
13222# NLS nuisances.
13223LC_ALL=C
13224export LC_ALL
13225LANGUAGE=C
13226export LANGUAGE
13227
13228# CDPATH.
13229(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13230
13231
13232# as_fn_error ERROR [LINENO LOG_FD]
13233# ---------------------------------
13234# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13235# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13236# script with status $?, using 1 if that was 0.
13237as_fn_error ()
13238{
13239  as_status=$?; test $as_status -eq 0 && as_status=1
13240  if test "$3"; then
13241    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13242    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13243  fi
13244  $as_echo "$as_me: error: $1" >&2
13245  as_fn_exit $as_status
13246} # as_fn_error
13247
13248
13249# as_fn_set_status STATUS
13250# -----------------------
13251# Set $? to STATUS, without forking.
13252as_fn_set_status ()
13253{
13254  return $1
13255} # as_fn_set_status
13256
13257# as_fn_exit STATUS
13258# -----------------
13259# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13260as_fn_exit ()
13261{
13262  set +e
13263  as_fn_set_status $1
13264  exit $1
13265} # as_fn_exit
13266
13267# as_fn_unset VAR
13268# ---------------
13269# Portably unset VAR.
13270as_fn_unset ()
13271{
13272  { eval $1=; unset $1;}
13273}
13274as_unset=as_fn_unset
13275# as_fn_append VAR VALUE
13276# ----------------------
13277# Append the text in VALUE to the end of the definition contained in VAR. Take
13278# advantage of any shell optimizations that allow amortized linear growth over
13279# repeated appends, instead of the typical quadratic growth present in naive
13280# implementations.
13281if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13282  eval 'as_fn_append ()
13283  {
13284    eval $1+=\$2
13285  }'
13286else
13287  as_fn_append ()
13288  {
13289    eval $1=\$$1\$2
13290  }
13291fi # as_fn_append
13292
13293# as_fn_arith ARG...
13294# ------------------
13295# Perform arithmetic evaluation on the ARGs, and store the result in the
13296# global $as_val. Take advantage of shells that can avoid forks. The arguments
13297# must be portable across $(()) and expr.
13298if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13299  eval 'as_fn_arith ()
13300  {
13301    as_val=$(( $* ))
13302  }'
13303else
13304  as_fn_arith ()
13305  {
13306    as_val=`expr "$@" || test $? -eq 1`
13307  }
13308fi # as_fn_arith
13309
13310
13311if expr a : '\(a\)' >/dev/null 2>&1 &&
13312   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13313  as_expr=expr
13314else
13315  as_expr=false
13316fi
13317
13318if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13319  as_basename=basename
13320else
13321  as_basename=false
13322fi
13323
13324if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13325  as_dirname=dirname
13326else
13327  as_dirname=false
13328fi
13329
13330as_me=`$as_basename -- "$0" ||
13331$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13332	 X"$0" : 'X\(//\)$' \| \
13333	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13334$as_echo X/"$0" |
13335    sed '/^.*\/\([^/][^/]*\)\/*$/{
13336	    s//\1/
13337	    q
13338	  }
13339	  /^X\/\(\/\/\)$/{
13340	    s//\1/
13341	    q
13342	  }
13343	  /^X\/\(\/\).*/{
13344	    s//\1/
13345	    q
13346	  }
13347	  s/.*/./; q'`
13348
13349# Avoid depending upon Character Ranges.
13350as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13351as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13352as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13353as_cr_digits='0123456789'
13354as_cr_alnum=$as_cr_Letters$as_cr_digits
13355
13356ECHO_C= ECHO_N= ECHO_T=
13357case `echo -n x` in #(((((
13358-n*)
13359  case `echo 'xy\c'` in
13360  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13361  xy)  ECHO_C='\c';;
13362  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13363       ECHO_T='	';;
13364  esac;;
13365*)
13366  ECHO_N='-n';;
13367esac
13368
13369rm -f conf$$ conf$$.exe conf$$.file
13370if test -d conf$$.dir; then
13371  rm -f conf$$.dir/conf$$.file
13372else
13373  rm -f conf$$.dir
13374  mkdir conf$$.dir 2>/dev/null
13375fi
13376if (echo >conf$$.file) 2>/dev/null; then
13377  if ln -s conf$$.file conf$$ 2>/dev/null; then
13378    as_ln_s='ln -s'
13379    # ... but there are two gotchas:
13380    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13381    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13382    # In both cases, we have to default to `cp -p'.
13383    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13384      as_ln_s='cp -p'
13385  elif ln conf$$.file conf$$ 2>/dev/null; then
13386    as_ln_s=ln
13387  else
13388    as_ln_s='cp -p'
13389  fi
13390else
13391  as_ln_s='cp -p'
13392fi
13393rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13394rmdir conf$$.dir 2>/dev/null
13395
13396
13397# as_fn_mkdir_p
13398# -------------
13399# Create "$as_dir" as a directory, including parents if necessary.
13400as_fn_mkdir_p ()
13401{
13402
13403  case $as_dir in #(
13404  -*) as_dir=./$as_dir;;
13405  esac
13406  test -d "$as_dir" || eval $as_mkdir_p || {
13407    as_dirs=
13408    while :; do
13409      case $as_dir in #(
13410      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13411      *) as_qdir=$as_dir;;
13412      esac
13413      as_dirs="'$as_qdir' $as_dirs"
13414      as_dir=`$as_dirname -- "$as_dir" ||
13415$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13416	 X"$as_dir" : 'X\(//\)[^/]' \| \
13417	 X"$as_dir" : 'X\(//\)$' \| \
13418	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13419$as_echo X"$as_dir" |
13420    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13421	    s//\1/
13422	    q
13423	  }
13424	  /^X\(\/\/\)[^/].*/{
13425	    s//\1/
13426	    q
13427	  }
13428	  /^X\(\/\/\)$/{
13429	    s//\1/
13430	    q
13431	  }
13432	  /^X\(\/\).*/{
13433	    s//\1/
13434	    q
13435	  }
13436	  s/.*/./; q'`
13437      test -d "$as_dir" && break
13438    done
13439    test -z "$as_dirs" || eval "mkdir $as_dirs"
13440  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13441
13442
13443} # as_fn_mkdir_p
13444if mkdir -p . 2>/dev/null; then
13445  as_mkdir_p='mkdir -p "$as_dir"'
13446else
13447  test -d ./-p && rmdir ./-p
13448  as_mkdir_p=false
13449fi
13450
13451if test -x / >/dev/null 2>&1; then
13452  as_test_x='test -x'
13453else
13454  if ls -dL / >/dev/null 2>&1; then
13455    as_ls_L_option=L
13456  else
13457    as_ls_L_option=
13458  fi
13459  as_test_x='
13460    eval sh -c '\''
13461      if test -d "$1"; then
13462	test -d "$1/.";
13463      else
13464	case $1 in #(
13465	-*)set "./$1";;
13466	esac;
13467	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13468	???[sx]*):;;*)false;;esac;fi
13469    '\'' sh
13470  '
13471fi
13472as_executable_p=$as_test_x
13473
13474# Sed expression to map a string onto a valid CPP name.
13475as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13476
13477# Sed expression to map a string onto a valid variable name.
13478as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13479
13480
13481exec 6>&1
13482## ----------------------------------- ##
13483## Main body of $CONFIG_STATUS script. ##
13484## ----------------------------------- ##
13485_ASEOF
13486test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13487
13488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13489# Save the log message, to keep $0 and so on meaningful, and to
13490# report actual input values of CONFIG_FILES etc. instead of their
13491# values after options handling.
13492ac_log="
13493This file was extended by $as_me, which was
13494generated by GNU Autoconf 2.65.  Invocation command line was
13495
13496  CONFIG_FILES    = $CONFIG_FILES
13497  CONFIG_HEADERS  = $CONFIG_HEADERS
13498  CONFIG_LINKS    = $CONFIG_LINKS
13499  CONFIG_COMMANDS = $CONFIG_COMMANDS
13500  $ $0 $@
13501
13502on `(hostname || uname -n) 2>/dev/null | sed 1q`
13503"
13504
13505_ACEOF
13506
13507case $ac_config_files in *"
13508"*) set x $ac_config_files; shift; ac_config_files=$*;;
13509esac
13510
13511case $ac_config_headers in *"
13512"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13513esac
13514
13515
13516cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13517# Files that config.status was made for.
13518config_files="$ac_config_files"
13519config_headers="$ac_config_headers"
13520config_commands="$ac_config_commands"
13521
13522_ACEOF
13523
13524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13525ac_cs_usage="\
13526\`$as_me' instantiates files and other configuration actions
13527from templates according to the current configuration.  Unless the files
13528and actions are specified as TAGs, all are instantiated by default.
13529
13530Usage: $0 [OPTION]... [TAG]...
13531
13532  -h, --help       print this help, then exit
13533  -V, --version    print version number and configuration settings, then exit
13534      --config     print configuration, then exit
13535  -q, --quiet, --silent
13536                   do not print progress messages
13537  -d, --debug      don't remove temporary files
13538      --recheck    update $as_me by reconfiguring in the same conditions
13539      --file=FILE[:TEMPLATE]
13540                   instantiate the configuration file FILE
13541      --header=FILE[:TEMPLATE]
13542                   instantiate the configuration header FILE
13543
13544Configuration files:
13545$config_files
13546
13547Configuration headers:
13548$config_headers
13549
13550Configuration commands:
13551$config_commands
13552
13553Report bugs to the package provider."
13554
13555_ACEOF
13556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13557ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13558ac_cs_version="\\
13559config.status
13560configured by $0, generated by GNU Autoconf 2.65,
13561  with options \\"\$ac_cs_config\\"
13562
13563Copyright (C) 2009 Free Software Foundation, Inc.
13564This config.status script is free software; the Free Software Foundation
13565gives unlimited permission to copy, distribute and modify it."
13566
13567ac_pwd='$ac_pwd'
13568srcdir='$srcdir'
13569INSTALL='$INSTALL'
13570MKDIR_P='$MKDIR_P'
13571AWK='$AWK'
13572test -n "\$AWK" || AWK=awk
13573_ACEOF
13574
13575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13576# The default lists apply if the user does not specify any file.
13577ac_need_defaults=:
13578while test $# != 0
13579do
13580  case $1 in
13581  --*=*)
13582    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13583    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13584    ac_shift=:
13585    ;;
13586  *)
13587    ac_option=$1
13588    ac_optarg=$2
13589    ac_shift=shift
13590    ;;
13591  esac
13592
13593  case $ac_option in
13594  # Handling of the options.
13595  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13596    ac_cs_recheck=: ;;
13597  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13598    $as_echo "$ac_cs_version"; exit ;;
13599  --config | --confi | --conf | --con | --co | --c )
13600    $as_echo "$ac_cs_config"; exit ;;
13601  --debug | --debu | --deb | --de | --d | -d )
13602    debug=: ;;
13603  --file | --fil | --fi | --f )
13604    $ac_shift
13605    case $ac_optarg in
13606    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13607    esac
13608    as_fn_append CONFIG_FILES " '$ac_optarg'"
13609    ac_need_defaults=false;;
13610  --header | --heade | --head | --hea )
13611    $ac_shift
13612    case $ac_optarg in
13613    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13614    esac
13615    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13616    ac_need_defaults=false;;
13617  --he | --h)
13618    # Conflict between --help and --header
13619    as_fn_error "ambiguous option: \`$1'
13620Try \`$0 --help' for more information.";;
13621  --help | --hel | -h )
13622    $as_echo "$ac_cs_usage"; exit ;;
13623  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13624  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13625    ac_cs_silent=: ;;
13626
13627  # This is an error.
13628  -*) as_fn_error "unrecognized option: \`$1'
13629Try \`$0 --help' for more information." ;;
13630
13631  *) as_fn_append ac_config_targets " $1"
13632     ac_need_defaults=false ;;
13633
13634  esac
13635  shift
13636done
13637
13638ac_configure_extra_args=
13639
13640if $ac_cs_silent; then
13641  exec 6>/dev/null
13642  ac_configure_extra_args="$ac_configure_extra_args --silent"
13643fi
13644
13645_ACEOF
13646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13647if \$ac_cs_recheck; then
13648  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13649  shift
13650  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13651  CONFIG_SHELL='$SHELL'
13652  export CONFIG_SHELL
13653  exec "\$@"
13654fi
13655
13656_ACEOF
13657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13658exec 5>>config.log
13659{
13660  echo
13661  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13662## Running $as_me. ##
13663_ASBOX
13664  $as_echo "$ac_log"
13665} >&5
13666
13667_ACEOF
13668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13669#
13670# INIT-COMMANDS
13671#
13672AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13673
13674
13675# The HP-UX ksh and POSIX shell print the target directory to stdout
13676# if CDPATH is set.
13677(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13678
13679sed_quote_subst='$sed_quote_subst'
13680double_quote_subst='$double_quote_subst'
13681delay_variable_subst='$delay_variable_subst'
13682macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13683macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13684enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13685enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13686pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13687enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13688host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13689host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13690host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13691build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13692build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13693build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13694SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13695Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13696GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13697EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13698FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13699LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13700NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13701LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13702max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13703ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13704exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13705lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13706lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13707lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13708reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13709reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13710OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13711deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13712file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13713AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13714AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13715STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13716RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13717old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13718old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13719old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13720CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13721CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13722compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13723GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13724lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13725lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13726lt_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"`'
13727lt_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"`'
13728objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13729SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13730ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13731MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13732lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13733lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13734lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13735lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13736lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13737need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13738DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13739NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13740LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13741OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13742OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13743libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13744shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13745extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13746archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13747enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13748export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13749whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13750compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13751old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13752old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13753archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13754archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13755module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13756module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13757with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13758allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13759no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13760hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13761hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13762hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13763hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13764hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13765hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13766hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13767hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13768inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13769link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13770fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13771always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13772export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13773exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13774include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13775prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13776file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13777variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13778need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13779need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13780version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13781runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13782shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13783shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13784libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13785library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13786soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13787postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13788postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13789finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13790finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13791hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13792sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13793sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13794hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13795enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13796enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13797enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13798old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13799striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13800
13801LTCC='$LTCC'
13802LTCFLAGS='$LTCFLAGS'
13803compiler='$compiler_DEFAULT'
13804
13805# Quote evaled strings.
13806for var in SED \
13807GREP \
13808EGREP \
13809FGREP \
13810LD \
13811NM \
13812LN_S \
13813lt_SP2NL \
13814lt_NL2SP \
13815reload_flag \
13816OBJDUMP \
13817deplibs_check_method \
13818file_magic_cmd \
13819AR \
13820AR_FLAGS \
13821STRIP \
13822RANLIB \
13823CC \
13824CFLAGS \
13825compiler \
13826lt_cv_sys_global_symbol_pipe \
13827lt_cv_sys_global_symbol_to_cdecl \
13828lt_cv_sys_global_symbol_to_c_name_address \
13829lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13830SHELL \
13831ECHO \
13832lt_prog_compiler_no_builtin_flag \
13833lt_prog_compiler_wl \
13834lt_prog_compiler_pic \
13835lt_prog_compiler_static \
13836lt_cv_prog_compiler_c_o \
13837need_locks \
13838DSYMUTIL \
13839NMEDIT \
13840LIPO \
13841OTOOL \
13842OTOOL64 \
13843shrext_cmds \
13844export_dynamic_flag_spec \
13845whole_archive_flag_spec \
13846compiler_needs_object \
13847with_gnu_ld \
13848allow_undefined_flag \
13849no_undefined_flag \
13850hardcode_libdir_flag_spec \
13851hardcode_libdir_flag_spec_ld \
13852hardcode_libdir_separator \
13853fix_srcfile_path \
13854exclude_expsyms \
13855include_expsyms \
13856file_list_spec \
13857variables_saved_for_relink \
13858libname_spec \
13859library_names_spec \
13860soname_spec \
13861finish_eval \
13862old_striplib \
13863striplib; do
13864    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13865    *[\\\\\\\`\\"\\\$]*)
13866      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13867      ;;
13868    *)
13869      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13870      ;;
13871    esac
13872done
13873
13874# Double-quote double-evaled strings.
13875for var in reload_cmds \
13876old_postinstall_cmds \
13877old_postuninstall_cmds \
13878old_archive_cmds \
13879extract_expsyms_cmds \
13880old_archive_from_new_cmds \
13881old_archive_from_expsyms_cmds \
13882archive_cmds \
13883archive_expsym_cmds \
13884module_cmds \
13885module_expsym_cmds \
13886export_symbols_cmds \
13887prelink_cmds \
13888postinstall_cmds \
13889postuninstall_cmds \
13890finish_cmds \
13891sys_lib_search_path_spec \
13892sys_lib_dlsearch_path_spec; do
13893    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13894    *[\\\\\\\`\\"\\\$]*)
13895      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13896      ;;
13897    *)
13898      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13899      ;;
13900    esac
13901done
13902
13903# Fix-up fallback echo if it was mangled by the above quoting rules.
13904case \$lt_ECHO in
13905*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13906  ;;
13907esac
13908
13909ac_aux_dir='$ac_aux_dir'
13910xsi_shell='$xsi_shell'
13911lt_shell_append='$lt_shell_append'
13912
13913# See if we are running on zsh, and set the options which allow our
13914# commands through without removal of \ escapes INIT.
13915if test -n "\${ZSH_VERSION+set}" ; then
13916   setopt NO_GLOB_SUBST
13917fi
13918
13919
13920    PACKAGE='$PACKAGE'
13921    VERSION='$VERSION'
13922    TIMESTAMP='$TIMESTAMP'
13923    RM='$RM'
13924    ofile='$ofile'
13925
13926
13927
13928
13929_ACEOF
13930
13931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13932
13933# Handling of arguments.
13934for ac_config_target in $ac_config_targets
13935do
13936  case $ac_config_target in
13937    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13938    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13939    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13940    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13941    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13942    "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
13943    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13944    "include/oggz/Makefile") CONFIG_FILES="$CONFIG_FILES include/oggz/Makefile" ;;
13945    "include/oggz/oggz_off_t_generated.h") CONFIG_FILES="$CONFIG_FILES include/oggz/oggz_off_t_generated.h" ;;
13946    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13947    "src/liboggz/Version_script") CONFIG_FILES="$CONFIG_FILES src/liboggz/Version_script" ;;
13948    "src/liboggz/Makefile") CONFIG_FILES="$CONFIG_FILES src/liboggz/Makefile" ;;
13949    "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
13950    "src/tools/oggz-diff") CONFIG_FILES="$CONFIG_FILES src/tools/oggz-diff" ;;
13951    "src/tools/oggz-chop/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/oggz-chop/Makefile" ;;
13952    "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
13953    "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
13954    "apache/oggz-chop.conf") CONFIG_FILES="$CONFIG_FILES apache/oggz-chop.conf" ;;
13955    "oggz.pc") CONFIG_FILES="$CONFIG_FILES oggz.pc" ;;
13956    "oggz-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES oggz-uninstalled.pc" ;;
13957
13958  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13959  esac
13960done
13961
13962
13963# If the user did not use the arguments to specify the items to instantiate,
13964# then the envvar interface is used.  Set only those that are not.
13965# We use the long form for the default assignment because of an extremely
13966# bizarre bug on SunOS 4.1.3.
13967if $ac_need_defaults; then
13968  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13969  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13970  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13971fi
13972
13973# Have a temporary directory for convenience.  Make it in the build tree
13974# simply because there is no reason against having it here, and in addition,
13975# creating and moving files from /tmp can sometimes cause problems.
13976# Hook for its removal unless debugging.
13977# Note that there is a small window in which the directory will not be cleaned:
13978# after its creation but before its name has been assigned to `$tmp'.
13979$debug ||
13980{
13981  tmp=
13982  trap 'exit_status=$?
13983  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13984' 0
13985  trap 'as_fn_exit 1' 1 2 13 15
13986}
13987# Create a (secure) tmp directory for tmp files.
13988
13989{
13990  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13991  test -n "$tmp" && test -d "$tmp"
13992}  ||
13993{
13994  tmp=./conf$$-$RANDOM
13995  (umask 077 && mkdir "$tmp")
13996} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13997
13998# Set up the scripts for CONFIG_FILES section.
13999# No need to generate them if there are no CONFIG_FILES.
14000# This happens for instance with `./config.status config.h'.
14001if test -n "$CONFIG_FILES"; then
14002
14003
14004ac_cr=`echo X | tr X '\015'`
14005# On cygwin, bash can eat \r inside `` if the user requested igncr.
14006# But we know of no other shell where ac_cr would be empty at this
14007# point, so we can use a bashism as a fallback.
14008if test "x$ac_cr" = x; then
14009  eval ac_cr=\$\'\\r\'
14010fi
14011ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14012if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14013  ac_cs_awk_cr='\r'
14014else
14015  ac_cs_awk_cr=$ac_cr
14016fi
14017
14018echo 'BEGIN {' >"$tmp/subs1.awk" &&
14019_ACEOF
14020
14021
14022{
14023  echo "cat >conf$$subs.awk <<_ACEOF" &&
14024  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14025  echo "_ACEOF"
14026} >conf$$subs.sh ||
14027  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14028ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14029ac_delim='%!_!# '
14030for ac_last_try in false false false false false :; do
14031  . ./conf$$subs.sh ||
14032    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14033
14034  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14035  if test $ac_delim_n = $ac_delim_num; then
14036    break
14037  elif $ac_last_try; then
14038    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14039  else
14040    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14041  fi
14042done
14043rm -f conf$$subs.sh
14044
14045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14046cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14047_ACEOF
14048sed -n '
14049h
14050s/^/S["/; s/!.*/"]=/
14051p
14052g
14053s/^[^!]*!//
14054:repl
14055t repl
14056s/'"$ac_delim"'$//
14057t delim
14058:nl
14059h
14060s/\(.\{148\}\)..*/\1/
14061t more1
14062s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14063p
14064n
14065b repl
14066:more1
14067s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14068p
14069g
14070s/.\{148\}//
14071t nl
14072:delim
14073h
14074s/\(.\{148\}\)..*/\1/
14075t more2
14076s/["\\]/\\&/g; s/^/"/; s/$/"/
14077p
14078b
14079:more2
14080s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14081p
14082g
14083s/.\{148\}//
14084t delim
14085' <conf$$subs.awk | sed '
14086/^[^""]/{
14087  N
14088  s/\n//
14089}
14090' >>$CONFIG_STATUS || ac_write_fail=1
14091rm -f conf$$subs.awk
14092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14093_ACAWK
14094cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14095  for (key in S) S_is_set[key] = 1
14096  FS = ""
14097
14098}
14099{
14100  line = $ 0
14101  nfields = split(line, field, "@")
14102  substed = 0
14103  len = length(field[1])
14104  for (i = 2; i < nfields; i++) {
14105    key = field[i]
14106    keylen = length(key)
14107    if (S_is_set[key]) {
14108      value = S[key]
14109      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14110      len += length(value) + length(field[++i])
14111      substed = 1
14112    } else
14113      len += 1 + keylen
14114  }
14115
14116  print line
14117}
14118
14119_ACAWK
14120_ACEOF
14121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14122if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14123  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14124else
14125  cat
14126fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14127  || as_fn_error "could not setup config files machinery" "$LINENO" 5
14128_ACEOF
14129
14130# VPATH may cause trouble with some makes, so we remove $(srcdir),
14131# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14132# trailing colons and then remove the whole line if VPATH becomes empty
14133# (actually we leave an empty line to preserve line numbers).
14134if test "x$srcdir" = x.; then
14135  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14136s/:*\$(srcdir):*/:/
14137s/:*\${srcdir}:*/:/
14138s/:*@srcdir@:*/:/
14139s/^\([^=]*=[	 ]*\):*/\1/
14140s/:*$//
14141s/^[^=]*=[	 ]*$//
14142}'
14143fi
14144
14145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14146fi # test -n "$CONFIG_FILES"
14147
14148# Set up the scripts for CONFIG_HEADERS section.
14149# No need to generate them if there are no CONFIG_HEADERS.
14150# This happens for instance with `./config.status Makefile'.
14151if test -n "$CONFIG_HEADERS"; then
14152cat >"$tmp/defines.awk" <<\_ACAWK ||
14153BEGIN {
14154_ACEOF
14155
14156# Transform confdefs.h into an awk script `defines.awk', embedded as
14157# here-document in config.status, that substitutes the proper values into
14158# config.h.in to produce config.h.
14159
14160# Create a delimiter string that does not exist in confdefs.h, to ease
14161# handling of long lines.
14162ac_delim='%!_!# '
14163for ac_last_try in false false :; do
14164  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14165  if test -z "$ac_t"; then
14166    break
14167  elif $ac_last_try; then
14168    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14169  else
14170    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14171  fi
14172done
14173
14174# For the awk script, D is an array of macro values keyed by name,
14175# likewise P contains macro parameters if any.  Preserve backslash
14176# newline sequences.
14177
14178ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14179sed -n '
14180s/.\{148\}/&'"$ac_delim"'/g
14181t rset
14182:rset
14183s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14184t def
14185d
14186:def
14187s/\\$//
14188t bsnl
14189s/["\\]/\\&/g
14190s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14191D["\1"]=" \3"/p
14192s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14193d
14194:bsnl
14195s/["\\]/\\&/g
14196s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14197D["\1"]=" \3\\\\\\n"\\/p
14198t cont
14199s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14200t cont
14201d
14202:cont
14203n
14204s/.\{148\}/&'"$ac_delim"'/g
14205t clear
14206:clear
14207s/\\$//
14208t bsnlc
14209s/["\\]/\\&/g; s/^/"/; s/$/"/p
14210d
14211:bsnlc
14212s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14213b cont
14214' <confdefs.h | sed '
14215s/'"$ac_delim"'/"\\\
14216"/g' >>$CONFIG_STATUS || ac_write_fail=1
14217
14218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14219  for (key in D) D_is_set[key] = 1
14220  FS = ""
14221}
14222/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14223  line = \$ 0
14224  split(line, arg, " ")
14225  if (arg[1] == "#") {
14226    defundef = arg[2]
14227    mac1 = arg[3]
14228  } else {
14229    defundef = substr(arg[1], 2)
14230    mac1 = arg[2]
14231  }
14232  split(mac1, mac2, "(") #)
14233  macro = mac2[1]
14234  prefix = substr(line, 1, index(line, defundef) - 1)
14235  if (D_is_set[macro]) {
14236    # Preserve the white space surrounding the "#".
14237    print prefix "define", macro P[macro] D[macro]
14238    next
14239  } else {
14240    # Replace #undef with comments.  This is necessary, for example,
14241    # in the case of _POSIX_SOURCE, which is predefined and required
14242    # on some systems where configure will not decide to define it.
14243    if (defundef == "undef") {
14244      print "/*", prefix defundef, macro, "*/"
14245      next
14246    }
14247  }
14248}
14249{ print }
14250_ACAWK
14251_ACEOF
14252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14253  as_fn_error "could not setup config headers machinery" "$LINENO" 5
14254fi # test -n "$CONFIG_HEADERS"
14255
14256
14257eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14258shift
14259for ac_tag
14260do
14261  case $ac_tag in
14262  :[FHLC]) ac_mode=$ac_tag; continue;;
14263  esac
14264  case $ac_mode$ac_tag in
14265  :[FHL]*:*);;
14266  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14267  :[FH]-) ac_tag=-:-;;
14268  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14269  esac
14270  ac_save_IFS=$IFS
14271  IFS=:
14272  set x $ac_tag
14273  IFS=$ac_save_IFS
14274  shift
14275  ac_file=$1
14276  shift
14277
14278  case $ac_mode in
14279  :L) ac_source=$1;;
14280  :[FH])
14281    ac_file_inputs=
14282    for ac_f
14283    do
14284      case $ac_f in
14285      -) ac_f="$tmp/stdin";;
14286      *) # Look for the file first in the build tree, then in the source tree
14287	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14288	 # because $ac_f cannot contain `:'.
14289	 test -f "$ac_f" ||
14290	   case $ac_f in
14291	   [\\/$]*) false;;
14292	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14293	   esac ||
14294	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14295      esac
14296      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14297      as_fn_append ac_file_inputs " '$ac_f'"
14298    done
14299
14300    # Let's still pretend it is `configure' which instantiates (i.e., don't
14301    # use $as_me), people would be surprised to read:
14302    #    /* config.h.  Generated by config.status.  */
14303    configure_input='Generated from '`
14304	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14305	`' by configure.'
14306    if test x"$ac_file" != x-; then
14307      configure_input="$ac_file.  $configure_input"
14308      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14309$as_echo "$as_me: creating $ac_file" >&6;}
14310    fi
14311    # Neutralize special characters interpreted by sed in replacement strings.
14312    case $configure_input in #(
14313    *\&* | *\|* | *\\* )
14314       ac_sed_conf_input=`$as_echo "$configure_input" |
14315       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14316    *) ac_sed_conf_input=$configure_input;;
14317    esac
14318
14319    case $ac_tag in
14320    *:-:* | *:-) cat >"$tmp/stdin" \
14321      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14322    esac
14323    ;;
14324  esac
14325
14326  ac_dir=`$as_dirname -- "$ac_file" ||
14327$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14328	 X"$ac_file" : 'X\(//\)[^/]' \| \
14329	 X"$ac_file" : 'X\(//\)$' \| \
14330	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14331$as_echo X"$ac_file" |
14332    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14333	    s//\1/
14334	    q
14335	  }
14336	  /^X\(\/\/\)[^/].*/{
14337	    s//\1/
14338	    q
14339	  }
14340	  /^X\(\/\/\)$/{
14341	    s//\1/
14342	    q
14343	  }
14344	  /^X\(\/\).*/{
14345	    s//\1/
14346	    q
14347	  }
14348	  s/.*/./; q'`
14349  as_dir="$ac_dir"; as_fn_mkdir_p
14350  ac_builddir=.
14351
14352case "$ac_dir" in
14353.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14354*)
14355  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14356  # A ".." for each directory in $ac_dir_suffix.
14357  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14358  case $ac_top_builddir_sub in
14359  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14360  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14361  esac ;;
14362esac
14363ac_abs_top_builddir=$ac_pwd
14364ac_abs_builddir=$ac_pwd$ac_dir_suffix
14365# for backward compatibility:
14366ac_top_builddir=$ac_top_build_prefix
14367
14368case $srcdir in
14369  .)  # We are building in place.
14370    ac_srcdir=.
14371    ac_top_srcdir=$ac_top_builddir_sub
14372    ac_abs_top_srcdir=$ac_pwd ;;
14373  [\\/]* | ?:[\\/]* )  # Absolute name.
14374    ac_srcdir=$srcdir$ac_dir_suffix;
14375    ac_top_srcdir=$srcdir
14376    ac_abs_top_srcdir=$srcdir ;;
14377  *) # Relative name.
14378    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14379    ac_top_srcdir=$ac_top_build_prefix$srcdir
14380    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14381esac
14382ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14383
14384
14385  case $ac_mode in
14386  :F)
14387  #
14388  # CONFIG_FILE
14389  #
14390
14391  case $INSTALL in
14392  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14393  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14394  esac
14395  ac_MKDIR_P=$MKDIR_P
14396  case $MKDIR_P in
14397  [\\/$]* | ?:[\\/]* ) ;;
14398  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14399  esac
14400_ACEOF
14401
14402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14403# If the template does not know about datarootdir, expand it.
14404# FIXME: This hack should be removed a few years after 2.60.
14405ac_datarootdir_hack=; ac_datarootdir_seen=
14406ac_sed_dataroot='
14407/datarootdir/ {
14408  p
14409  q
14410}
14411/@datadir@/p
14412/@docdir@/p
14413/@infodir@/p
14414/@localedir@/p
14415/@mandir@/p'
14416case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14417*datarootdir*) ac_datarootdir_seen=yes;;
14418*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14419  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14420$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14421_ACEOF
14422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14423  ac_datarootdir_hack='
14424  s&@datadir@&$datadir&g
14425  s&@docdir@&$docdir&g
14426  s&@infodir@&$infodir&g
14427  s&@localedir@&$localedir&g
14428  s&@mandir@&$mandir&g
14429  s&\\\${datarootdir}&$datarootdir&g' ;;
14430esac
14431_ACEOF
14432
14433# Neutralize VPATH when `$srcdir' = `.'.
14434# Shell code in configure.ac might set extrasub.
14435# FIXME: do we really want to maintain this feature?
14436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14437ac_sed_extra="$ac_vpsub
14438$extrasub
14439_ACEOF
14440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14441:t
14442/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14443s|@configure_input@|$ac_sed_conf_input|;t t
14444s&@top_builddir@&$ac_top_builddir_sub&;t t
14445s&@top_build_prefix@&$ac_top_build_prefix&;t t
14446s&@srcdir@&$ac_srcdir&;t t
14447s&@abs_srcdir@&$ac_abs_srcdir&;t t
14448s&@top_srcdir@&$ac_top_srcdir&;t t
14449s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14450s&@builddir@&$ac_builddir&;t t
14451s&@abs_builddir@&$ac_abs_builddir&;t t
14452s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14453s&@INSTALL@&$ac_INSTALL&;t t
14454s&@MKDIR_P@&$ac_MKDIR_P&;t t
14455$ac_datarootdir_hack
14456"
14457eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14458  || as_fn_error "could not create $ac_file" "$LINENO" 5
14459
14460test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14461  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14462  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14463  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14464which seems to be undefined.  Please make sure it is defined." >&5
14465$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14466which seems to be undefined.  Please make sure it is defined." >&2;}
14467
14468  rm -f "$tmp/stdin"
14469  case $ac_file in
14470  -) cat "$tmp/out" && rm -f "$tmp/out";;
14471  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14472  esac \
14473  || as_fn_error "could not create $ac_file" "$LINENO" 5
14474 ;;
14475  :H)
14476  #
14477  # CONFIG_HEADER
14478  #
14479  if test x"$ac_file" != x-; then
14480    {
14481      $as_echo "/* $configure_input  */" \
14482      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14483    } >"$tmp/config.h" \
14484      || as_fn_error "could not create $ac_file" "$LINENO" 5
14485    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14486      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14487$as_echo "$as_me: $ac_file is unchanged" >&6;}
14488    else
14489      rm -f "$ac_file"
14490      mv "$tmp/config.h" "$ac_file" \
14491	|| as_fn_error "could not create $ac_file" "$LINENO" 5
14492    fi
14493  else
14494    $as_echo "/* $configure_input  */" \
14495      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14496      || as_fn_error "could not create -" "$LINENO" 5
14497  fi
14498# Compute "$ac_file"'s index in $config_headers.
14499_am_arg="$ac_file"
14500_am_stamp_count=1
14501for _am_header in $config_headers :; do
14502  case $_am_header in
14503    $_am_arg | $_am_arg:* )
14504      break ;;
14505    * )
14506      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14507  esac
14508done
14509echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14510$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14511	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14512	 X"$_am_arg" : 'X\(//\)$' \| \
14513	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14514$as_echo X"$_am_arg" |
14515    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14516	    s//\1/
14517	    q
14518	  }
14519	  /^X\(\/\/\)[^/].*/{
14520	    s//\1/
14521	    q
14522	  }
14523	  /^X\(\/\/\)$/{
14524	    s//\1/
14525	    q
14526	  }
14527	  /^X\(\/\).*/{
14528	    s//\1/
14529	    q
14530	  }
14531	  s/.*/./; q'`/stamp-h$_am_stamp_count
14532 ;;
14533
14534  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14535$as_echo "$as_me: executing $ac_file commands" >&6;}
14536 ;;
14537  esac
14538
14539
14540  case $ac_file$ac_mode in
14541    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14542  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14543  # are listed without --file.  Let's play safe and only enable the eval
14544  # if we detect the quoting.
14545  case $CONFIG_FILES in
14546  *\'*) eval set x "$CONFIG_FILES" ;;
14547  *)   set x $CONFIG_FILES ;;
14548  esac
14549  shift
14550  for mf
14551  do
14552    # Strip MF so we end up with the name of the file.
14553    mf=`echo "$mf" | sed -e 's/:.*$//'`
14554    # Check whether this is an Automake generated Makefile or not.
14555    # We used to match only the files named `Makefile.in', but
14556    # some people rename them; so instead we look at the file content.
14557    # Grep'ing the first line is not enough: some people post-process
14558    # each Makefile.in and add a new line on top of each file to say so.
14559    # Grep'ing the whole file is not good either: AIX grep has a line
14560    # limit of 2048, but all sed's we know have understand at least 4000.
14561    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14562      dirpart=`$as_dirname -- "$mf" ||
14563$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14564	 X"$mf" : 'X\(//\)[^/]' \| \
14565	 X"$mf" : 'X\(//\)$' \| \
14566	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14567$as_echo X"$mf" |
14568    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14569	    s//\1/
14570	    q
14571	  }
14572	  /^X\(\/\/\)[^/].*/{
14573	    s//\1/
14574	    q
14575	  }
14576	  /^X\(\/\/\)$/{
14577	    s//\1/
14578	    q
14579	  }
14580	  /^X\(\/\).*/{
14581	    s//\1/
14582	    q
14583	  }
14584	  s/.*/./; q'`
14585    else
14586      continue
14587    fi
14588    # Extract the definition of DEPDIR, am__include, and am__quote
14589    # from the Makefile without running `make'.
14590    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14591    test -z "$DEPDIR" && continue
14592    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14593    test -z "am__include" && continue
14594    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14595    # When using ansi2knr, U may be empty or an underscore; expand it
14596    U=`sed -n 's/^U = //p' < "$mf"`
14597    # Find all dependency output files, they are included files with
14598    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14599    # simplest approach to changing $(DEPDIR) to its actual value in the
14600    # expansion.
14601    for file in `sed -n "
14602      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14603	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14604      # Make sure the directory exists.
14605      test -f "$dirpart/$file" && continue
14606      fdir=`$as_dirname -- "$file" ||
14607$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14608	 X"$file" : 'X\(//\)[^/]' \| \
14609	 X"$file" : 'X\(//\)$' \| \
14610	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14611$as_echo X"$file" |
14612    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14613	    s//\1/
14614	    q
14615	  }
14616	  /^X\(\/\/\)[^/].*/{
14617	    s//\1/
14618	    q
14619	  }
14620	  /^X\(\/\/\)$/{
14621	    s//\1/
14622	    q
14623	  }
14624	  /^X\(\/\).*/{
14625	    s//\1/
14626	    q
14627	  }
14628	  s/.*/./; q'`
14629      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14630      # echo "creating $dirpart/$file"
14631      echo '# dummy' > "$dirpart/$file"
14632    done
14633  done
14634}
14635 ;;
14636    "libtool":C)
14637
14638    # See if we are running on zsh, and set the options which allow our
14639    # commands through without removal of \ escapes.
14640    if test -n "${ZSH_VERSION+set}" ; then
14641      setopt NO_GLOB_SUBST
14642    fi
14643
14644    cfgfile="${ofile}T"
14645    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14646    $RM "$cfgfile"
14647
14648    cat <<_LT_EOF >> "$cfgfile"
14649#! $SHELL
14650
14651# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14652# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14653# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14654# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14655#
14656#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14657#                 2006, 2007, 2008 Free Software Foundation, Inc.
14658#   Written by Gordon Matzigkeit, 1996
14659#
14660#   This file is part of GNU Libtool.
14661#
14662# GNU Libtool is free software; you can redistribute it and/or
14663# modify it under the terms of the GNU General Public License as
14664# published by the Free Software Foundation; either version 2 of
14665# the License, or (at your option) any later version.
14666#
14667# As a special exception to the GNU General Public License,
14668# if you distribute this file as part of a program or library that
14669# is built using GNU Libtool, you may include this file under the
14670# same distribution terms that you use for the rest of that program.
14671#
14672# GNU Libtool is distributed in the hope that it will be useful,
14673# but WITHOUT ANY WARRANTY; without even the implied warranty of
14674# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14675# GNU General Public License for more details.
14676#
14677# You should have received a copy of the GNU General Public License
14678# along with GNU Libtool; see the file COPYING.  If not, a copy
14679# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14680# obtained by writing to the Free Software Foundation, Inc.,
14681# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14682
14683
14684# The names of the tagged configurations supported by this script.
14685available_tags=""
14686
14687# ### BEGIN LIBTOOL CONFIG
14688
14689# Which release of libtool.m4 was used?
14690macro_version=$macro_version
14691macro_revision=$macro_revision
14692
14693# Whether or not to build shared libraries.
14694build_libtool_libs=$enable_shared
14695
14696# Whether or not to build static libraries.
14697build_old_libs=$enable_static
14698
14699# What type of objects to build.
14700pic_mode=$pic_mode
14701
14702# Whether or not to optimize for fast installation.
14703fast_install=$enable_fast_install
14704
14705# The host system.
14706host_alias=$host_alias
14707host=$host
14708host_os=$host_os
14709
14710# The build system.
14711build_alias=$build_alias
14712build=$build
14713build_os=$build_os
14714
14715# A sed program that does not truncate output.
14716SED=$lt_SED
14717
14718# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14719Xsed="\$SED -e 1s/^X//"
14720
14721# A grep program that handles long lines.
14722GREP=$lt_GREP
14723
14724# An ERE matcher.
14725EGREP=$lt_EGREP
14726
14727# A literal string matcher.
14728FGREP=$lt_FGREP
14729
14730# A BSD- or MS-compatible name lister.
14731NM=$lt_NM
14732
14733# Whether we need soft or hard links.
14734LN_S=$lt_LN_S
14735
14736# What is the maximum length of a command?
14737max_cmd_len=$max_cmd_len
14738
14739# Object file suffix (normally "o").
14740objext=$ac_objext
14741
14742# Executable file suffix (normally "").
14743exeext=$exeext
14744
14745# whether the shell understands "unset".
14746lt_unset=$lt_unset
14747
14748# turn spaces into newlines.
14749SP2NL=$lt_lt_SP2NL
14750
14751# turn newlines into spaces.
14752NL2SP=$lt_lt_NL2SP
14753
14754# How to create reloadable object files.
14755reload_flag=$lt_reload_flag
14756reload_cmds=$lt_reload_cmds
14757
14758# An object symbol dumper.
14759OBJDUMP=$lt_OBJDUMP
14760
14761# Method to check whether dependent libraries are shared objects.
14762deplibs_check_method=$lt_deplibs_check_method
14763
14764# Command to use when deplibs_check_method == "file_magic".
14765file_magic_cmd=$lt_file_magic_cmd
14766
14767# The archiver.
14768AR=$lt_AR
14769AR_FLAGS=$lt_AR_FLAGS
14770
14771# A symbol stripping program.
14772STRIP=$lt_STRIP
14773
14774# Commands used to install an old-style archive.
14775RANLIB=$lt_RANLIB
14776old_postinstall_cmds=$lt_old_postinstall_cmds
14777old_postuninstall_cmds=$lt_old_postuninstall_cmds
14778
14779# A C compiler.
14780LTCC=$lt_CC
14781
14782# LTCC compiler flags.
14783LTCFLAGS=$lt_CFLAGS
14784
14785# Take the output of nm and produce a listing of raw symbols and C names.
14786global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14787
14788# Transform the output of nm in a proper C declaration.
14789global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14790
14791# Transform the output of nm in a C name address pair.
14792global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14793
14794# Transform the output of nm in a C name address pair when lib prefix is needed.
14795global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14796
14797# The name of the directory that contains temporary libtool files.
14798objdir=$objdir
14799
14800# Shell to use when invoking shell scripts.
14801SHELL=$lt_SHELL
14802
14803# An echo program that does not interpret backslashes.
14804ECHO=$lt_ECHO
14805
14806# Used to examine libraries when file_magic_cmd begins with "file".
14807MAGIC_CMD=$MAGIC_CMD
14808
14809# Must we lock files when doing compilation?
14810need_locks=$lt_need_locks
14811
14812# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14813DSYMUTIL=$lt_DSYMUTIL
14814
14815# Tool to change global to local symbols on Mac OS X.
14816NMEDIT=$lt_NMEDIT
14817
14818# Tool to manipulate fat objects and archives on Mac OS X.
14819LIPO=$lt_LIPO
14820
14821# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14822OTOOL=$lt_OTOOL
14823
14824# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14825OTOOL64=$lt_OTOOL64
14826
14827# Old archive suffix (normally "a").
14828libext=$libext
14829
14830# Shared library suffix (normally ".so").
14831shrext_cmds=$lt_shrext_cmds
14832
14833# The commands to extract the exported symbol list from a shared archive.
14834extract_expsyms_cmds=$lt_extract_expsyms_cmds
14835
14836# Variables whose values should be saved in libtool wrapper scripts and
14837# restored at link time.
14838variables_saved_for_relink=$lt_variables_saved_for_relink
14839
14840# Do we need the "lib" prefix for modules?
14841need_lib_prefix=$need_lib_prefix
14842
14843# Do we need a version for libraries?
14844need_version=$need_version
14845
14846# Library versioning type.
14847version_type=$version_type
14848
14849# Shared library runtime path variable.
14850runpath_var=$runpath_var
14851
14852# Shared library path variable.
14853shlibpath_var=$shlibpath_var
14854
14855# Is shlibpath searched before the hard-coded library search path?
14856shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14857
14858# Format of library name prefix.
14859libname_spec=$lt_libname_spec
14860
14861# List of archive names.  First name is the real one, the rest are links.
14862# The last name is the one that the linker finds with -lNAME
14863library_names_spec=$lt_library_names_spec
14864
14865# The coded name of the library, if different from the real name.
14866soname_spec=$lt_soname_spec
14867
14868# Command to use after installation of a shared archive.
14869postinstall_cmds=$lt_postinstall_cmds
14870
14871# Command to use after uninstallation of a shared archive.
14872postuninstall_cmds=$lt_postuninstall_cmds
14873
14874# Commands used to finish a libtool library installation in a directory.
14875finish_cmds=$lt_finish_cmds
14876
14877# As "finish_cmds", except a single script fragment to be evaled but
14878# not shown.
14879finish_eval=$lt_finish_eval
14880
14881# Whether we should hardcode library paths into libraries.
14882hardcode_into_libs=$hardcode_into_libs
14883
14884# Compile-time system search path for libraries.
14885sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14886
14887# Run-time system search path for libraries.
14888sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14889
14890# Whether dlopen is supported.
14891dlopen_support=$enable_dlopen
14892
14893# Whether dlopen of programs is supported.
14894dlopen_self=$enable_dlopen_self
14895
14896# Whether dlopen of statically linked programs is supported.
14897dlopen_self_static=$enable_dlopen_self_static
14898
14899# Commands to strip libraries.
14900old_striplib=$lt_old_striplib
14901striplib=$lt_striplib
14902
14903
14904# The linker used to build libraries.
14905LD=$lt_LD
14906
14907# Commands used to build an old-style archive.
14908old_archive_cmds=$lt_old_archive_cmds
14909
14910# A language specific compiler.
14911CC=$lt_compiler
14912
14913# Is the compiler the GNU compiler?
14914with_gcc=$GCC
14915
14916# Compiler flag to turn off builtin functions.
14917no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14918
14919# How to pass a linker flag through the compiler.
14920wl=$lt_lt_prog_compiler_wl
14921
14922# Additional compiler flags for building library objects.
14923pic_flag=$lt_lt_prog_compiler_pic
14924
14925# Compiler flag to prevent dynamic linking.
14926link_static_flag=$lt_lt_prog_compiler_static
14927
14928# Does compiler simultaneously support -c and -o options?
14929compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14930
14931# Whether or not to add -lc for building shared libraries.
14932build_libtool_need_lc=$archive_cmds_need_lc
14933
14934# Whether or not to disallow shared libs when runtime libs are static.
14935allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14936
14937# Compiler flag to allow reflexive dlopens.
14938export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14939
14940# Compiler flag to generate shared objects directly from archives.
14941whole_archive_flag_spec=$lt_whole_archive_flag_spec
14942
14943# Whether the compiler copes with passing no objects directly.
14944compiler_needs_object=$lt_compiler_needs_object
14945
14946# Create an old-style archive from a shared archive.
14947old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14948
14949# Create a temporary old-style archive to link instead of a shared archive.
14950old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14951
14952# Commands used to build a shared archive.
14953archive_cmds=$lt_archive_cmds
14954archive_expsym_cmds=$lt_archive_expsym_cmds
14955
14956# Commands used to build a loadable module if different from building
14957# a shared archive.
14958module_cmds=$lt_module_cmds
14959module_expsym_cmds=$lt_module_expsym_cmds
14960
14961# Whether we are building with GNU ld or not.
14962with_gnu_ld=$lt_with_gnu_ld
14963
14964# Flag that allows shared libraries with undefined symbols to be built.
14965allow_undefined_flag=$lt_allow_undefined_flag
14966
14967# Flag that enforces no undefined symbols.
14968no_undefined_flag=$lt_no_undefined_flag
14969
14970# Flag to hardcode \$libdir into a binary during linking.
14971# This must work even if \$libdir does not exist
14972hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14973
14974# If ld is used when linking, flag to hardcode \$libdir into a binary
14975# during linking.  This must work even if \$libdir does not exist.
14976hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14977
14978# Whether we need a single "-rpath" flag with a separated argument.
14979hardcode_libdir_separator=$lt_hardcode_libdir_separator
14980
14981# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14982# DIR into the resulting binary.
14983hardcode_direct=$hardcode_direct
14984
14985# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14986# DIR into the resulting binary and the resulting library dependency is
14987# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14988# library is relocated.
14989hardcode_direct_absolute=$hardcode_direct_absolute
14990
14991# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14992# into the resulting binary.
14993hardcode_minus_L=$hardcode_minus_L
14994
14995# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14996# into the resulting binary.
14997hardcode_shlibpath_var=$hardcode_shlibpath_var
14998
14999# Set to "yes" if building a shared library automatically hardcodes DIR
15000# into the library and all subsequent libraries and executables linked
15001# against it.
15002hardcode_automatic=$hardcode_automatic
15003
15004# Set to yes if linker adds runtime paths of dependent libraries
15005# to runtime path list.
15006inherit_rpath=$inherit_rpath
15007
15008# Whether libtool must link a program against all its dependency libraries.
15009link_all_deplibs=$link_all_deplibs
15010
15011# Fix the shell variable \$srcfile for the compiler.
15012fix_srcfile_path=$lt_fix_srcfile_path
15013
15014# Set to "yes" if exported symbols are required.
15015always_export_symbols=$always_export_symbols
15016
15017# The commands to list exported symbols.
15018export_symbols_cmds=$lt_export_symbols_cmds
15019
15020# Symbols that should not be listed in the preloaded symbols.
15021exclude_expsyms=$lt_exclude_expsyms
15022
15023# Symbols that must always be exported.
15024include_expsyms=$lt_include_expsyms
15025
15026# Commands necessary for linking programs (against libraries) with templates.
15027prelink_cmds=$lt_prelink_cmds
15028
15029# Specify filename containing input files.
15030file_list_spec=$lt_file_list_spec
15031
15032# How to hardcode a shared library path into an executable.
15033hardcode_action=$hardcode_action
15034
15035# ### END LIBTOOL CONFIG
15036
15037_LT_EOF
15038
15039  case $host_os in
15040  aix3*)
15041    cat <<\_LT_EOF >> "$cfgfile"
15042# AIX sometimes has problems with the GCC collect2 program.  For some
15043# reason, if we set the COLLECT_NAMES environment variable, the problems
15044# vanish in a puff of smoke.
15045if test "X${COLLECT_NAMES+set}" != Xset; then
15046  COLLECT_NAMES=
15047  export COLLECT_NAMES
15048fi
15049_LT_EOF
15050    ;;
15051  esac
15052
15053
15054ltmain="$ac_aux_dir/ltmain.sh"
15055
15056
15057  # We use sed instead of cat because bash on DJGPP gets confused if
15058  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15059  # text mode, it properly converts lines to CR/LF.  This bash problem
15060  # is reportedly fixed, but why not run on old versions too?
15061  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15062    || (rm -f "$cfgfile"; exit 1)
15063
15064  case $xsi_shell in
15065  yes)
15066    cat << \_LT_EOF >> "$cfgfile"
15067
15068# func_dirname file append nondir_replacement
15069# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15070# otherwise set result to NONDIR_REPLACEMENT.
15071func_dirname ()
15072{
15073  case ${1} in
15074    */*) func_dirname_result="${1%/*}${2}" ;;
15075    *  ) func_dirname_result="${3}" ;;
15076  esac
15077}
15078
15079# func_basename file
15080func_basename ()
15081{
15082  func_basename_result="${1##*/}"
15083}
15084
15085# func_dirname_and_basename file append nondir_replacement
15086# perform func_basename and func_dirname in a single function
15087# call:
15088#   dirname:  Compute the dirname of FILE.  If nonempty,
15089#             add APPEND to the result, otherwise set result
15090#             to NONDIR_REPLACEMENT.
15091#             value returned in "$func_dirname_result"
15092#   basename: Compute filename of FILE.
15093#             value retuned in "$func_basename_result"
15094# Implementation must be kept synchronized with func_dirname
15095# and func_basename. For efficiency, we do not delegate to
15096# those functions but instead duplicate the functionality here.
15097func_dirname_and_basename ()
15098{
15099  case ${1} in
15100    */*) func_dirname_result="${1%/*}${2}" ;;
15101    *  ) func_dirname_result="${3}" ;;
15102  esac
15103  func_basename_result="${1##*/}"
15104}
15105
15106# func_stripname prefix suffix name
15107# strip PREFIX and SUFFIX off of NAME.
15108# PREFIX and SUFFIX must not contain globbing or regex special
15109# characters, hashes, percent signs, but SUFFIX may contain a leading
15110# dot (in which case that matches only a dot).
15111func_stripname ()
15112{
15113  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15114  # positional parameters, so assign one to ordinary parameter first.
15115  func_stripname_result=${3}
15116  func_stripname_result=${func_stripname_result#"${1}"}
15117  func_stripname_result=${func_stripname_result%"${2}"}
15118}
15119
15120# func_opt_split
15121func_opt_split ()
15122{
15123  func_opt_split_opt=${1%%=*}
15124  func_opt_split_arg=${1#*=}
15125}
15126
15127# func_lo2o object
15128func_lo2o ()
15129{
15130  case ${1} in
15131    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15132    *)    func_lo2o_result=${1} ;;
15133  esac
15134}
15135
15136# func_xform libobj-or-source
15137func_xform ()
15138{
15139  func_xform_result=${1%.*}.lo
15140}
15141
15142# func_arith arithmetic-term...
15143func_arith ()
15144{
15145  func_arith_result=$(( $* ))
15146}
15147
15148# func_len string
15149# STRING may not start with a hyphen.
15150func_len ()
15151{
15152  func_len_result=${#1}
15153}
15154
15155_LT_EOF
15156    ;;
15157  *) # Bourne compatible functions.
15158    cat << \_LT_EOF >> "$cfgfile"
15159
15160# func_dirname file append nondir_replacement
15161# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15162# otherwise set result to NONDIR_REPLACEMENT.
15163func_dirname ()
15164{
15165  # Extract subdirectory from the argument.
15166  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15167  if test "X$func_dirname_result" = "X${1}"; then
15168    func_dirname_result="${3}"
15169  else
15170    func_dirname_result="$func_dirname_result${2}"
15171  fi
15172}
15173
15174# func_basename file
15175func_basename ()
15176{
15177  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15178}
15179
15180
15181# func_stripname prefix suffix name
15182# strip PREFIX and SUFFIX off of NAME.
15183# PREFIX and SUFFIX must not contain globbing or regex special
15184# characters, hashes, percent signs, but SUFFIX may contain a leading
15185# dot (in which case that matches only a dot).
15186# func_strip_suffix prefix name
15187func_stripname ()
15188{
15189  case ${2} in
15190    .*) func_stripname_result=`$ECHO "X${3}" \
15191           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15192    *)  func_stripname_result=`$ECHO "X${3}" \
15193           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15194  esac
15195}
15196
15197# sed scripts:
15198my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15199my_sed_long_arg='1s/^-[^=]*=//'
15200
15201# func_opt_split
15202func_opt_split ()
15203{
15204  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15205  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15206}
15207
15208# func_lo2o object
15209func_lo2o ()
15210{
15211  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15212}
15213
15214# func_xform libobj-or-source
15215func_xform ()
15216{
15217  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15218}
15219
15220# func_arith arithmetic-term...
15221func_arith ()
15222{
15223  func_arith_result=`expr "$@"`
15224}
15225
15226# func_len string
15227# STRING may not start with a hyphen.
15228func_len ()
15229{
15230  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15231}
15232
15233_LT_EOF
15234esac
15235
15236case $lt_shell_append in
15237  yes)
15238    cat << \_LT_EOF >> "$cfgfile"
15239
15240# func_append var value
15241# Append VALUE to the end of shell variable VAR.
15242func_append ()
15243{
15244  eval "$1+=\$2"
15245}
15246_LT_EOF
15247    ;;
15248  *)
15249    cat << \_LT_EOF >> "$cfgfile"
15250
15251# func_append var value
15252# Append VALUE to the end of shell variable VAR.
15253func_append ()
15254{
15255  eval "$1=\$$1\$2"
15256}
15257
15258_LT_EOF
15259    ;;
15260  esac
15261
15262
15263  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15264    || (rm -f "$cfgfile"; exit 1)
15265
15266  mv -f "$cfgfile" "$ofile" ||
15267    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15268  chmod +x "$ofile"
15269
15270 ;;
15271
15272  esac
15273done # for ac_tag
15274
15275
15276as_fn_exit 0
15277_ACEOF
15278ac_clean_files=$ac_clean_files_save
15279
15280test $ac_write_fail = 0 ||
15281  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15282
15283
15284# configure is writing to config.log, and then calls config.status.
15285# config.status does its own redirection, appending to config.log.
15286# Unfortunately, on DOS this fails, as config.log is still kept open
15287# by configure, so config.status won't be able to write to it; its
15288# output is simply discarded.  So we exec the FD to /dev/null,
15289# effectively closing config.log, so it can be properly (re)opened and
15290# appended to by config.status.  When coming back to configure, we
15291# need to make the FD available again.
15292if test "$no_create" != yes; then
15293  ac_cs_success=:
15294  ac_config_status_args=
15295  test "$silent" = yes &&
15296    ac_config_status_args="$ac_config_status_args --quiet"
15297  exec 5>/dev/null
15298  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15299  exec 5>>config.log
15300  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15301  # would make configure fail if this is the last instruction.
15302  $ac_cs_success || as_fn_exit $?
15303fi
15304if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15305  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15306$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15307fi
15308
15309
15310{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
15311------------------------------------------------------------------------
15312  $PACKAGE $VERSION:  Automatic configuration OK.
15313
15314  General configuration:
15315
15316    Experimental code: ........... ${ac_enable_experimental}
15317    Reading support: ............. ${ac_enable_read}
15318    Writing support: ............. ${ac_enable_write}
15319
15320  Tools:
15321
15322    ${oggz_read_programs}
15323    ${oggz_rw_programs}
15324
15325  Installation paths:
15326
15327    liboggz: ..................... ${LIBDIR}
15328    Tools: ....................... ${BINDIR}
15329    C header files: .............. ${INCLUDEDIR}/oggz
15330    Documentation: ............... ${DOCDIR}/$PACKAGE
15331
15332  Building:
15333
15334    Type 'make' to compile $PACKAGE.
15335
15336    Type 'make install' to install $PACKAGE.
15337
15338    Type 'make check' to test $PACKAGE using the unit and functional tests
15339    contained in the src/tests directory.
15340    ${TESTS_INFO}
15341
15342  Example programs will be built but not installed.
15343------------------------------------------------------------------------
15344" >&5
15345$as_echo "
15346------------------------------------------------------------------------
15347  $PACKAGE $VERSION:  Automatic configuration OK.
15348
15349  General configuration:
15350
15351    Experimental code: ........... ${ac_enable_experimental}
15352    Reading support: ............. ${ac_enable_read}
15353    Writing support: ............. ${ac_enable_write}
15354
15355  Tools:
15356
15357    ${oggz_read_programs}
15358    ${oggz_rw_programs}
15359
15360  Installation paths:
15361
15362    liboggz: ..................... ${LIBDIR}
15363    Tools: ....................... ${BINDIR}
15364    C header files: .............. ${INCLUDEDIR}/oggz
15365    Documentation: ............... ${DOCDIR}/$PACKAGE
15366
15367  Building:
15368
15369    Type 'make' to compile $PACKAGE.
15370
15371    Type 'make install' to install $PACKAGE.
15372
15373    Type 'make check' to test $PACKAGE using the unit and functional tests
15374    contained in the src/tests directory.
15375    ${TESTS_INFO}
15376
15377  Example programs will be built but not installed.
15378------------------------------------------------------------------------
15379" >&6; }
15380
15381
15382fi
15383