1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for libkate 0.4.1.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90case $0 in #((
91  *[\\/]* ) as_myself=$0 ;;
92  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95  IFS=$as_save_IFS
96  test -z "$as_dir" && as_dir=.
97    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there.  '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136  emulate sh
137  NULLCMD=:
138  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139  # is contrary to our usage.  Disable this feature.
140  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141  setopt NO_GLOB_SUBST
142else
143  case \`(set -o) 2>/dev/null\` in #(
144  *posix*) :
145    set -o posix ;; #(
146  *) :
147     ;;
148esac
149fi
150"
151  as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165  exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173  if (eval "$as_required") 2>/dev/null; then :
174  as_have_required=yes
175else
176  as_have_required=no
177fi
178  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185  IFS=$as_save_IFS
186  test -z "$as_dir" && as_dir=.
187  as_found=:
188  case $as_dir in #(
189	 /*)
190	   for as_base in sh bash ksh sh5; do
191	     # Try only shells that exist, to save several forks.
192	     as_shell=$as_dir/$as_base
193	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195  CONFIG_SHELL=$as_shell as_have_required=yes
196		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  break 2
198fi
199fi
200	   done;;
201       esac
202  as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206  CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211      if test "x$CONFIG_SHELL" != x; then :
212  # We cannot yet assume a decent shell, so we have to provide a
213	# neutralization value for shells without unset; and this also
214	# works around shells that cannot unset nonexistent variables.
215	BASH_ENV=/dev/null
216	ENV=/dev/null
217	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218	export CONFIG_SHELL
219	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222    if test x$as_have_required = xno; then :
223  $as_echo "$0: This script requires a shell more modern than all"
224  $as_echo "$0: the shells that I found on your system."
225  if test x${ZSH_VERSION+set} = xset ; then
226    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228  else
229    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233  fi
234  exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252  { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261  return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269  set +e
270  as_fn_set_status $1
271  exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280  case $as_dir in #(
281  -*) as_dir=./$as_dir;;
282  esac
283  test -d "$as_dir" || eval $as_mkdir_p || {
284    as_dirs=
285    while :; do
286      case $as_dir in #(
287      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288      *) as_qdir=$as_dir;;
289      esac
290      as_dirs="'$as_qdir' $as_dirs"
291      as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293	 X"$as_dir" : 'X\(//\)[^/]' \| \
294	 X"$as_dir" : 'X\(//\)$' \| \
295	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298	    s//\1/
299	    q
300	  }
301	  /^X\(\/\/\)[^/].*/{
302	    s//\1/
303	    q
304	  }
305	  /^X\(\/\/\)$/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\).*/{
310	    s//\1/
311	    q
312	  }
313	  s/.*/./; q'`
314      test -d "$as_dir" && break
315    done
316    test -z "$as_dirs" || eval "mkdir $as_dirs"
317  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328  eval 'as_fn_append ()
329  {
330    eval $1+=\$2
331  }'
332else
333  as_fn_append ()
334  {
335    eval $1=\$$1\$2
336  }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345  eval 'as_fn_arith ()
346  {
347    as_val=$(( $* ))
348  }'
349else
350  as_fn_arith ()
351  {
352    as_val=`expr "$@" || test $? -eq 1`
353  }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364  as_status=$?; test $as_status -eq 0 && as_status=1
365  if test "$3"; then
366    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368  fi
369  $as_echo "$as_me: error: $1" >&2
370  as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374   test "X`expr 00001 : '.*\(...\)'`" = X001; then
375  as_expr=expr
376else
377  as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381  as_basename=basename
382else
383  as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387  as_dirname=dirname
388else
389  as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394	 X"$0" : 'X\(//\)$' \| \
395	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397    sed '/^.*\/\([^/][^/]*\)\/*$/{
398	    s//\1/
399	    q
400	  }
401	  /^X\/\(\/\/\)$/{
402	    s//\1/
403	    q
404	  }
405	  /^X\/\(\/\).*/{
406	    s//\1/
407	    q
408	  }
409	  s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419  as_lineno_1=$LINENO as_lineno_1a=$LINENO
420  as_lineno_2=$LINENO as_lineno_2a=$LINENO
421  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424  sed -n '
425    p
426    /[$]LINENO/=
427  ' <$as_myself |
428    sed '
429      s/[$]LINENO.*/&-/
430      t lineno
431      b
432      :lineno
433      N
434      :loop
435      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436      t loop
437      s/-\n.*//
438    ' >$as_me.lineno &&
439  chmod +x "$as_me.lineno" ||
440    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442  # Don't try to exec as it changes $[0], causing all sort of problems
443  # (the dirname of $[0] is not the place where we might find the
444  # original and so on.  Autoconf is especially sensitive to this).
445  . "./$as_me.lineno"
446  # Exit status is that of the last command.
447  exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453  case `echo 'xy\c'` in
454  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
455  xy)  ECHO_C='\c';;
456  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457       ECHO_T='	';;
458  esac;;
459*)
460  ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465  rm -f conf$$.dir/conf$$.file
466else
467  rm -f conf$$.dir
468  mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471  if ln -s conf$$.file conf$$ 2>/dev/null; then
472    as_ln_s='ln -s'
473    # ... but there are two gotchas:
474    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476    # In both cases, we have to default to `cp -p'.
477    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478      as_ln_s='cp -p'
479  elif ln conf$$.file conf$$ 2>/dev/null; then
480    as_ln_s=ln
481  else
482    as_ln_s='cp -p'
483  fi
484else
485  as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491  as_mkdir_p='mkdir -p "$as_dir"'
492else
493  test -d ./-p && rmdir ./-p
494  as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498  as_test_x='test -x'
499else
500  if ls -dL / >/dev/null 2>&1; then
501    as_ls_L_option=L
502  else
503    as_ls_L_option=
504  fi
505  as_test_x='
506    eval sh -c '\''
507      if test -d "$1"; then
508	test -d "$1/.";
509      else
510	case $1 in #(
511	-*)set "./$1";;
512	esac;
513	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514	???[sx]*):;;*)false;;esac;fi
515    '\'' sh
516  '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527
528# Check that we are running under the correct shell.
529SHELL=${CONFIG_SHELL-/bin/sh}
530
531case X$lt_ECHO in
532X*--fallback-echo)
533  # Remove one level of quotation (which was required for Make).
534  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535  ;;
536esac
537
538ECHO=${lt_ECHO-echo}
539if test "X$1" = X--no-reexec; then
540  # Discard the --no-reexec flag, and continue.
541  shift
542elif test "X$1" = X--fallback-echo; then
543  # Avoid inline document here, it may be left over
544  :
545elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546  # Yippee, $ECHO works!
547  :
548else
549  # Restart under the correct shell.
550  exec $SHELL "$0" --no-reexec ${1+"$@"}
551fi
552
553if test "X$1" = X--fallback-echo; then
554  # used as fallback echo
555  shift
556  cat <<_LT_EOF
557$*
558_LT_EOF
559  exit 0
560fi
561
562# The HP-UX ksh and POSIX shell print the target directory to stdout
563# if CDPATH is set.
564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566if test -z "$lt_ECHO"; then
567  if test "X${echo_test_string+set}" != Xset; then
568    # find a string as large as possible, as long as the shell can cope with it
569    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573      then
574        break
575      fi
576    done
577  fi
578
579  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581     test "X$echo_testing_string" = "X$echo_test_string"; then
582    :
583  else
584    # The Solaris, AIX, and Digital Unix default echo programs unquote
585    # backslashes.  This makes it impossible to quote backslashes using
586    #   echo "$something" | sed 's/\\/\\\\/g'
587    #
588    # So, first we look for a working echo in the user's PATH.
589
590    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591    for dir in $PATH /usr/ucb; do
592      IFS="$lt_save_ifs"
593      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596         test "X$echo_testing_string" = "X$echo_test_string"; then
597        ECHO="$dir/echo"
598        break
599      fi
600    done
601    IFS="$lt_save_ifs"
602
603    if test "X$ECHO" = Xecho; then
604      # We didn't find a better echo, so look for alternatives.
605      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607         test "X$echo_testing_string" = "X$echo_test_string"; then
608        # This shell has a builtin print -r that does the trick.
609        ECHO='print -r'
610      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611	   test "X$CONFIG_SHELL" != X/bin/ksh; then
612        # If we have ksh, try running configure again with it.
613        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614        export ORIGINAL_CONFIG_SHELL
615        CONFIG_SHELL=/bin/ksh
616        export CONFIG_SHELL
617        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618      else
619        # Try using printf.
620        ECHO='printf %s\n'
621        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623	   test "X$echo_testing_string" = "X$echo_test_string"; then
624	  # Cool, printf works
625	  :
626        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627	     test "X$echo_testing_string" = 'X\t' &&
628	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629	     test "X$echo_testing_string" = "X$echo_test_string"; then
630	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631	  export CONFIG_SHELL
632	  SHELL="$CONFIG_SHELL"
633	  export SHELL
634	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
635        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636	     test "X$echo_testing_string" = 'X\t' &&
637	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638	     test "X$echo_testing_string" = "X$echo_test_string"; then
639	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
640        else
641	  # maybe with a smaller string...
642	  prev=:
643
644	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646	    then
647	      break
648	    fi
649	    prev="$cmd"
650	  done
651
652	  if test "$prev" != 'sed 50q "$0"'; then
653	    echo_test_string=`eval $prev`
654	    export echo_test_string
655	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656	  else
657	    # Oops.  We lost completely, so just stick with echo.
658	    ECHO=echo
659	  fi
660        fi
661      fi
662    fi
663  fi
664fi
665
666# Copy echo and quote the copy suitably for passing to libtool from
667# the Makefile, instead of quoting the original, which is used later.
668lt_ECHO=$ECHO
669if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671fi
672
673
674
675
676exec 7<&0 </dev/null 6>&1
677
678# Name of the host.
679# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680# so uname gets run too.
681ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
683#
684# Initializations.
685#
686ac_default_prefix=/usr/local
687ac_clean_files=
688ac_config_libobj_dir=.
689LIBOBJS=
690cross_compiling=no
691subdirs=
692MFLAGS=
693MAKEFLAGS=
694
695# Identity of this package.
696PACKAGE_NAME='libkate'
697PACKAGE_TARNAME='libkate'
698PACKAGE_VERSION='0.4.1'
699PACKAGE_STRING='libkate 0.4.1'
700PACKAGE_BUGREPORT=''
701PACKAGE_URL=''
702
703ac_unique_file="include/kate/kate.h.in"
704# Factoring default headers for most tests.
705ac_includes_default="\
706#include <stdio.h>
707#ifdef HAVE_SYS_TYPES_H
708# include <sys/types.h>
709#endif
710#ifdef HAVE_SYS_STAT_H
711# include <sys/stat.h>
712#endif
713#ifdef STDC_HEADERS
714# include <stdlib.h>
715# include <stddef.h>
716#else
717# ifdef HAVE_STDLIB_H
718#  include <stdlib.h>
719# endif
720#endif
721#ifdef HAVE_STRING_H
722# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723#  include <memory.h>
724# endif
725# include <string.h>
726#endif
727#ifdef HAVE_STRINGS_H
728# include <strings.h>
729#endif
730#ifdef HAVE_INTTYPES_H
731# include <inttypes.h>
732#endif
733#ifdef HAVE_STDINT_H
734# include <stdint.h>
735#endif
736#ifdef HAVE_UNISTD_H
737# include <unistd.h>
738#endif"
739
740ac_subst_vars='am__EXEEXT_FALSE
741am__EXEEXT_TRUE
742LTLIBOBJS
743LIBOBJS
744STREAMS
745CFLAGS_FORTIFY_SOURCE
746CFLAGS_DEBUG
747CWARNFLAGS_FULL
748CWARNFLAGS_LIGHT
749CONST
750UINT64_T
751INT64_T
752UINT32_T
753INT32_T
754VERSION_PATCH
755VERSION_MINOR
756VERSION_MAJOR
757INCLUDE_INT_HEADER
758LIBOGGKATE_SHARED_VERSION
759LIBKATE_SHARED_VERSION
760HAVE_PNG_FALSE
761HAVE_PNG_TRUE
762PNG_LIBS
763PNG_CFLAGS
764HAVE_OGG_FALSE
765HAVE_OGG_TRUE
766OGG_LIBS
767OGG_CFLAGS
768PKG_CONFIG
769GENHASH
770HAVE_PYTHON_FALSE
771HAVE_PYTHON_TRUE
772pkgpyexecdir
773pyexecdir
774pkgpythondir
775pythondir
776PYTHON_PLATFORM
777PYTHON_EXEC_PREFIX
778PYTHON_PREFIX
779PYTHON_VERSION
780PYTHON
781HAVE_OGG_MERGE_FALSE
782HAVE_OGG_MERGE_TRUE
783OGG_DIFF
784OGG_MERGE
785OGGZ
786VALGRIND
787HAVE_DOXYGEN_FALSE
788HAVE_DOXYGEN_TRUE
789HAVE_DOXYGEN
790HAVE_PKG_CONFIG
791YFLAGS
792YACC
793LEXLIB
794LEX_OUTPUT_ROOT
795LEX
796CPP
797OTOOL64
798OTOOL
799LIPO
800NMEDIT
801DSYMUTIL
802lt_ECHO
803RANLIB
804AR
805OBJDUMP
806LN_S
807NM
808ac_ct_DUMPBIN
809DUMPBIN
810LD
811FGREP
812EGREP
813GREP
814SED
815LIBTOOL
816am__fastdepCC_FALSE
817am__fastdepCC_TRUE
818CCDEPMODE
819AMDEPBACKSLASH
820AMDEP_FALSE
821AMDEP_TRUE
822am__quote
823am__include
824DEPDIR
825OBJEXT
826EXEEXT
827ac_ct_CC
828CPPFLAGS
829LDFLAGS
830CFLAGS
831CC
832AM_BACKSLASH
833AM_DEFAULT_VERBOSITY
834am__untar
835am__tar
836AMTAR
837am__leading_dot
838SET_MAKE
839AWK
840mkdir_p
841MKDIR_P
842INSTALL_STRIP_PROGRAM
843STRIP
844install_sh
845MAKEINFO
846AUTOHEADER
847AUTOMAKE
848AUTOCONF
849ACLOCAL
850VERSION
851PACKAGE
852CYGPATH_W
853am__isrc
854INSTALL_DATA
855INSTALL_SCRIPT
856INSTALL_PROGRAM
857target_os
858target_vendor
859target_cpu
860target
861host_os
862host_vendor
863host_cpu
864host
865build_os
866build_vendor
867build_cpu
868build
869target_alias
870host_alias
871build_alias
872LIBS
873ECHO_T
874ECHO_N
875ECHO_C
876DEFS
877mandir
878localedir
879libdir
880psdir
881pdfdir
882dvidir
883htmldir
884infodir
885docdir
886oldincludedir
887includedir
888localstatedir
889sharedstatedir
890sysconfdir
891datadir
892datarootdir
893libexecdir
894sbindir
895bindir
896program_transform_name
897prefix
898exec_prefix
899PACKAGE_URL
900PACKAGE_BUGREPORT
901PACKAGE_STRING
902PACKAGE_VERSION
903PACKAGE_TARNAME
904PACKAGE_NAME
905PATH_SEPARATOR
906SHELL'
907ac_subst_files=''
908ac_user_opts='
909enable_option_checking
910enable_silent_rules
911enable_dependency_tracking
912enable_shared
913enable_static
914with_pic
915enable_fast_install
916with_gnu_ld
917enable_libtool_lock
918enable_doc
919enable_valgrind
920enable_more_warnings
921enable_debug
922enable_fortify_source
923'
924      ac_precious_vars='build_alias
925host_alias
926target_alias
927CC
928CFLAGS
929LDFLAGS
930LIBS
931CPPFLAGS
932CPP
933YACC
934YFLAGS
935PKG_CONFIG
936OGG_CFLAGS
937OGG_LIBS
938PNG_CFLAGS
939PNG_LIBS'
940
941
942# Initialize some variables set by options.
943ac_init_help=
944ac_init_version=false
945ac_unrecognized_opts=
946ac_unrecognized_sep=
947# The variables have the same names as the options, with
948# dashes changed to underlines.
949cache_file=/dev/null
950exec_prefix=NONE
951no_create=
952no_recursion=
953prefix=NONE
954program_prefix=NONE
955program_suffix=NONE
956program_transform_name=s,x,x,
957silent=
958site=
959srcdir=
960verbose=
961x_includes=NONE
962x_libraries=NONE
963
964# Installation directory options.
965# These are left unexpanded so users can "make install exec_prefix=/foo"
966# and all the variables that are supposed to be based on exec_prefix
967# by default will actually change.
968# Use braces instead of parens because sh, perl, etc. also accept them.
969# (The list follows the same order as the GNU Coding Standards.)
970bindir='${exec_prefix}/bin'
971sbindir='${exec_prefix}/sbin'
972libexecdir='${exec_prefix}/libexec'
973datarootdir='${prefix}/share'
974datadir='${datarootdir}'
975sysconfdir='${prefix}/etc'
976sharedstatedir='${prefix}/com'
977localstatedir='${prefix}/var'
978includedir='${prefix}/include'
979oldincludedir='/usr/include'
980docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981infodir='${datarootdir}/info'
982htmldir='${docdir}'
983dvidir='${docdir}'
984pdfdir='${docdir}'
985psdir='${docdir}'
986libdir='${exec_prefix}/lib'
987localedir='${datarootdir}/locale'
988mandir='${datarootdir}/man'
989
990ac_prev=
991ac_dashdash=
992for ac_option
993do
994  # If the previous option needs an argument, assign it.
995  if test -n "$ac_prev"; then
996    eval $ac_prev=\$ac_option
997    ac_prev=
998    continue
999  fi
1000
1001  case $ac_option in
1002  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003  *)	ac_optarg=yes ;;
1004  esac
1005
1006  # Accept the important Cygnus configure options, so we can diagnose typos.
1007
1008  case $ac_dashdash$ac_option in
1009  --)
1010    ac_dashdash=yes ;;
1011
1012  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013    ac_prev=bindir ;;
1014  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015    bindir=$ac_optarg ;;
1016
1017  -build | --build | --buil | --bui | --bu)
1018    ac_prev=build_alias ;;
1019  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020    build_alias=$ac_optarg ;;
1021
1022  -cache-file | --cache-file | --cache-fil | --cache-fi \
1023  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024    ac_prev=cache_file ;;
1025  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027    cache_file=$ac_optarg ;;
1028
1029  --config-cache | -C)
1030    cache_file=config.cache ;;
1031
1032  -datadir | --datadir | --datadi | --datad)
1033    ac_prev=datadir ;;
1034  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035    datadir=$ac_optarg ;;
1036
1037  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038  | --dataroo | --dataro | --datar)
1039    ac_prev=datarootdir ;;
1040  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042    datarootdir=$ac_optarg ;;
1043
1044  -disable-* | --disable-*)
1045    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046    # Reject names that are not valid shell variable names.
1047    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048      as_fn_error "invalid feature name: $ac_useropt"
1049    ac_useropt_orig=$ac_useropt
1050    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051    case $ac_user_opts in
1052      *"
1053"enable_$ac_useropt"
1054"*) ;;
1055      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056	 ac_unrecognized_sep=', ';;
1057    esac
1058    eval enable_$ac_useropt=no ;;
1059
1060  -docdir | --docdir | --docdi | --doc | --do)
1061    ac_prev=docdir ;;
1062  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063    docdir=$ac_optarg ;;
1064
1065  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066    ac_prev=dvidir ;;
1067  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068    dvidir=$ac_optarg ;;
1069
1070  -enable-* | --enable-*)
1071    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072    # Reject names that are not valid shell variable names.
1073    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074      as_fn_error "invalid feature name: $ac_useropt"
1075    ac_useropt_orig=$ac_useropt
1076    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077    case $ac_user_opts in
1078      *"
1079"enable_$ac_useropt"
1080"*) ;;
1081      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082	 ac_unrecognized_sep=', ';;
1083    esac
1084    eval enable_$ac_useropt=\$ac_optarg ;;
1085
1086  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088  | --exec | --exe | --ex)
1089    ac_prev=exec_prefix ;;
1090  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092  | --exec=* | --exe=* | --ex=*)
1093    exec_prefix=$ac_optarg ;;
1094
1095  -gas | --gas | --ga | --g)
1096    # Obsolete; use --with-gas.
1097    with_gas=yes ;;
1098
1099  -help | --help | --hel | --he | -h)
1100    ac_init_help=long ;;
1101  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102    ac_init_help=recursive ;;
1103  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104    ac_init_help=short ;;
1105
1106  -host | --host | --hos | --ho)
1107    ac_prev=host_alias ;;
1108  -host=* | --host=* | --hos=* | --ho=*)
1109    host_alias=$ac_optarg ;;
1110
1111  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112    ac_prev=htmldir ;;
1113  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114  | --ht=*)
1115    htmldir=$ac_optarg ;;
1116
1117  -includedir | --includedir | --includedi | --included | --include \
1118  | --includ | --inclu | --incl | --inc)
1119    ac_prev=includedir ;;
1120  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121  | --includ=* | --inclu=* | --incl=* | --inc=*)
1122    includedir=$ac_optarg ;;
1123
1124  -infodir | --infodir | --infodi | --infod | --info | --inf)
1125    ac_prev=infodir ;;
1126  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127    infodir=$ac_optarg ;;
1128
1129  -libdir | --libdir | --libdi | --libd)
1130    ac_prev=libdir ;;
1131  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132    libdir=$ac_optarg ;;
1133
1134  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135  | --libexe | --libex | --libe)
1136    ac_prev=libexecdir ;;
1137  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138  | --libexe=* | --libex=* | --libe=*)
1139    libexecdir=$ac_optarg ;;
1140
1141  -localedir | --localedir | --localedi | --localed | --locale)
1142    ac_prev=localedir ;;
1143  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144    localedir=$ac_optarg ;;
1145
1146  -localstatedir | --localstatedir | --localstatedi | --localstated \
1147  | --localstate | --localstat | --localsta | --localst | --locals)
1148    ac_prev=localstatedir ;;
1149  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151    localstatedir=$ac_optarg ;;
1152
1153  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154    ac_prev=mandir ;;
1155  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156    mandir=$ac_optarg ;;
1157
1158  -nfp | --nfp | --nf)
1159    # Obsolete; use --without-fp.
1160    with_fp=no ;;
1161
1162  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163  | --no-cr | --no-c | -n)
1164    no_create=yes ;;
1165
1166  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168    no_recursion=yes ;;
1169
1170  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172  | --oldin | --oldi | --old | --ol | --o)
1173    ac_prev=oldincludedir ;;
1174  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177    oldincludedir=$ac_optarg ;;
1178
1179  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180    ac_prev=prefix ;;
1181  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182    prefix=$ac_optarg ;;
1183
1184  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185  | --program-pre | --program-pr | --program-p)
1186    ac_prev=program_prefix ;;
1187  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189    program_prefix=$ac_optarg ;;
1190
1191  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192  | --program-suf | --program-su | --program-s)
1193    ac_prev=program_suffix ;;
1194  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196    program_suffix=$ac_optarg ;;
1197
1198  -program-transform-name | --program-transform-name \
1199  | --program-transform-nam | --program-transform-na \
1200  | --program-transform-n | --program-transform- \
1201  | --program-transform | --program-transfor \
1202  | --program-transfo | --program-transf \
1203  | --program-trans | --program-tran \
1204  | --progr-tra | --program-tr | --program-t)
1205    ac_prev=program_transform_name ;;
1206  -program-transform-name=* | --program-transform-name=* \
1207  | --program-transform-nam=* | --program-transform-na=* \
1208  | --program-transform-n=* | --program-transform-=* \
1209  | --program-transform=* | --program-transfor=* \
1210  | --program-transfo=* | --program-transf=* \
1211  | --program-trans=* | --program-tran=* \
1212  | --progr-tra=* | --program-tr=* | --program-t=*)
1213    program_transform_name=$ac_optarg ;;
1214
1215  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216    ac_prev=pdfdir ;;
1217  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218    pdfdir=$ac_optarg ;;
1219
1220  -psdir | --psdir | --psdi | --psd | --ps)
1221    ac_prev=psdir ;;
1222  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223    psdir=$ac_optarg ;;
1224
1225  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226  | -silent | --silent | --silen | --sile | --sil)
1227    silent=yes ;;
1228
1229  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230    ac_prev=sbindir ;;
1231  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232  | --sbi=* | --sb=*)
1233    sbindir=$ac_optarg ;;
1234
1235  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237  | --sharedst | --shareds | --shared | --share | --shar \
1238  | --sha | --sh)
1239    ac_prev=sharedstatedir ;;
1240  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243  | --sha=* | --sh=*)
1244    sharedstatedir=$ac_optarg ;;
1245
1246  -site | --site | --sit)
1247    ac_prev=site ;;
1248  -site=* | --site=* | --sit=*)
1249    site=$ac_optarg ;;
1250
1251  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252    ac_prev=srcdir ;;
1253  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254    srcdir=$ac_optarg ;;
1255
1256  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257  | --syscon | --sysco | --sysc | --sys | --sy)
1258    ac_prev=sysconfdir ;;
1259  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261    sysconfdir=$ac_optarg ;;
1262
1263  -target | --target | --targe | --targ | --tar | --ta | --t)
1264    ac_prev=target_alias ;;
1265  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266    target_alias=$ac_optarg ;;
1267
1268  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269    verbose=yes ;;
1270
1271  -version | --version | --versio | --versi | --vers | -V)
1272    ac_init_version=: ;;
1273
1274  -with-* | --with-*)
1275    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276    # Reject names that are not valid shell variable names.
1277    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278      as_fn_error "invalid package name: $ac_useropt"
1279    ac_useropt_orig=$ac_useropt
1280    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281    case $ac_user_opts in
1282      *"
1283"with_$ac_useropt"
1284"*) ;;
1285      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286	 ac_unrecognized_sep=', ';;
1287    esac
1288    eval with_$ac_useropt=\$ac_optarg ;;
1289
1290  -without-* | --without-*)
1291    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292    # Reject names that are not valid shell variable names.
1293    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294      as_fn_error "invalid package name: $ac_useropt"
1295    ac_useropt_orig=$ac_useropt
1296    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297    case $ac_user_opts in
1298      *"
1299"with_$ac_useropt"
1300"*) ;;
1301      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302	 ac_unrecognized_sep=', ';;
1303    esac
1304    eval with_$ac_useropt=no ;;
1305
1306  --x)
1307    # Obsolete; use --with-x.
1308    with_x=yes ;;
1309
1310  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311  | --x-incl | --x-inc | --x-in | --x-i)
1312    ac_prev=x_includes ;;
1313  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315    x_includes=$ac_optarg ;;
1316
1317  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319    ac_prev=x_libraries ;;
1320  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322    x_libraries=$ac_optarg ;;
1323
1324  -*) as_fn_error "unrecognized option: \`$ac_option'
1325Try \`$0 --help' for more information."
1326    ;;
1327
1328  *=*)
1329    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330    # Reject names that are not valid shell variable names.
1331    case $ac_envvar in #(
1332      '' | [0-9]* | *[!_$as_cr_alnum]* )
1333      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1334    esac
1335    eval $ac_envvar=\$ac_optarg
1336    export $ac_envvar ;;
1337
1338  *)
1339    # FIXME: should be removed in autoconf 3.0.
1340    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344    ;;
1345
1346  esac
1347done
1348
1349if test -n "$ac_prev"; then
1350  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351  as_fn_error "missing argument to $ac_option"
1352fi
1353
1354if test -n "$ac_unrecognized_opts"; then
1355  case $enable_option_checking in
1356    no) ;;
1357    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1358    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359  esac
1360fi
1361
1362# Check all directory arguments for consistency.
1363for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364		datadir sysconfdir sharedstatedir localstatedir includedir \
1365		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366		libdir localedir mandir
1367do
1368  eval ac_val=\$$ac_var
1369  # Remove trailing slashes.
1370  case $ac_val in
1371    */ )
1372      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373      eval $ac_var=\$ac_val;;
1374  esac
1375  # Be sure to have absolute directory names.
1376  case $ac_val in
1377    [\\/$]* | ?:[\\/]* )  continue;;
1378    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379  esac
1380  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1381done
1382
1383# There might be people who depend on the old broken behavior: `$host'
1384# used to hold the argument of --host etc.
1385# FIXME: To remove some day.
1386build=$build_alias
1387host=$host_alias
1388target=$target_alias
1389
1390# FIXME: To remove some day.
1391if test "x$host_alias" != x; then
1392  if test "x$build_alias" = x; then
1393    cross_compiling=maybe
1394    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395    If a cross compiler is detected then cross compile mode will be used." >&2
1396  elif test "x$build_alias" != "x$host_alias"; then
1397    cross_compiling=yes
1398  fi
1399fi
1400
1401ac_tool_prefix=
1402test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404test "$silent" = yes && exec 6>/dev/null
1405
1406
1407ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408ac_ls_di=`ls -di .` &&
1409ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410  as_fn_error "working directory cannot be determined"
1411test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412  as_fn_error "pwd does not report name of working directory"
1413
1414
1415# Find the source files, if location was not specified.
1416if test -z "$srcdir"; then
1417  ac_srcdir_defaulted=yes
1418  # Try the directory containing this script, then the parent directory.
1419  ac_confdir=`$as_dirname -- "$as_myself" ||
1420$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421	 X"$as_myself" : 'X\(//\)[^/]' \| \
1422	 X"$as_myself" : 'X\(//\)$' \| \
1423	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424$as_echo X"$as_myself" |
1425    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426	    s//\1/
1427	    q
1428	  }
1429	  /^X\(\/\/\)[^/].*/{
1430	    s//\1/
1431	    q
1432	  }
1433	  /^X\(\/\/\)$/{
1434	    s//\1/
1435	    q
1436	  }
1437	  /^X\(\/\).*/{
1438	    s//\1/
1439	    q
1440	  }
1441	  s/.*/./; q'`
1442  srcdir=$ac_confdir
1443  if test ! -r "$srcdir/$ac_unique_file"; then
1444    srcdir=..
1445  fi
1446else
1447  ac_srcdir_defaulted=no
1448fi
1449if test ! -r "$srcdir/$ac_unique_file"; then
1450  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1452fi
1453ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454ac_abs_confdir=`(
1455	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456	pwd)`
1457# When building in place, set srcdir=.
1458if test "$ac_abs_confdir" = "$ac_pwd"; then
1459  srcdir=.
1460fi
1461# Remove unnecessary trailing slashes from srcdir.
1462# Double slashes in file names in object file debugging info
1463# mess up M-x gdb in Emacs.
1464case $srcdir in
1465*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466esac
1467for ac_var in $ac_precious_vars; do
1468  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469  eval ac_env_${ac_var}_value=\$${ac_var}
1470  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472done
1473
1474#
1475# Report the --help message.
1476#
1477if test "$ac_init_help" = "long"; then
1478  # Omit some internal or obsolete options to make the list less imposing.
1479  # This message is too long to be a string in the A/UX 3.1 sh.
1480  cat <<_ACEOF
1481\`configure' configures libkate 0.4.1 to adapt to many kinds of systems.
1482
1483Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486VAR=VALUE.  See below for descriptions of some of the useful variables.
1487
1488Defaults for the options are specified in brackets.
1489
1490Configuration:
1491  -h, --help              display this help and exit
1492      --help=short        display options specific to this package
1493      --help=recursive    display the short help of all the included packages
1494  -V, --version           display version information and exit
1495  -q, --quiet, --silent   do not print \`checking...' messages
1496      --cache-file=FILE   cache test results in FILE [disabled]
1497  -C, --config-cache      alias for \`--cache-file=config.cache'
1498  -n, --no-create         do not create output files
1499      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1500
1501Installation directories:
1502  --prefix=PREFIX         install architecture-independent files in PREFIX
1503                          [$ac_default_prefix]
1504  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1505                          [PREFIX]
1506
1507By default, \`make install' will install all the files in
1508\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1509an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510for instance \`--prefix=\$HOME'.
1511
1512For better control, use the options below.
1513
1514Fine tuning of the installation directories:
1515  --bindir=DIR            user executables [EPREFIX/bin]
1516  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1517  --libexecdir=DIR        program executables [EPREFIX/libexec]
1518  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1519  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1520  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1521  --libdir=DIR            object code libraries [EPREFIX/lib]
1522  --includedir=DIR        C header files [PREFIX/include]
1523  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1524  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1525  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1526  --infodir=DIR           info documentation [DATAROOTDIR/info]
1527  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1528  --mandir=DIR            man documentation [DATAROOTDIR/man]
1529  --docdir=DIR            documentation root [DATAROOTDIR/doc/libkate]
1530  --htmldir=DIR           html documentation [DOCDIR]
1531  --dvidir=DIR            dvi documentation [DOCDIR]
1532  --pdfdir=DIR            pdf documentation [DOCDIR]
1533  --psdir=DIR             ps documentation [DOCDIR]
1534_ACEOF
1535
1536  cat <<\_ACEOF
1537
1538Program names:
1539  --program-prefix=PREFIX            prepend PREFIX to installed program names
1540  --program-suffix=SUFFIX            append SUFFIX to installed program names
1541  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1542
1543System types:
1544  --build=BUILD     configure for building on BUILD [guessed]
1545  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1546  --target=TARGET   configure for building compilers for TARGET [HOST]
1547_ACEOF
1548fi
1549
1550if test -n "$ac_init_help"; then
1551  case $ac_init_help in
1552     short | recursive ) echo "Configuration of libkate 0.4.1:";;
1553   esac
1554  cat <<\_ACEOF
1555
1556Optional Features:
1557  --disable-option-checking  ignore unrecognized --enable/--with options
1558  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1559  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1560  --enable-silent-rules          less verbose build output (undo: `make V=1')
1561  --disable-silent-rules         verbose build output (undo: `make V=0')
1562  --disable-dependency-tracking  speeds up one-time build
1563  --enable-dependency-tracking   do not reject slow dependency extractors
1564  --enable-shared[=PKGS]  build shared libraries [default=yes]
1565  --enable-static[=PKGS]  build static libraries [default=yes]
1566  --enable-fast-install[=PKGS]
1567                          optimize for fast installation [default=yes]
1568  --disable-libtool-lock  avoid locking (might break parallel builds)
1569  --disable-doc           Disable building documentation (default enabled)
1570  --enable-valgrind       Run the tests with Valgrind (default disabled)
1571  --enable-more-warnings  Enable more warnings (default disabled)
1572  --enable-debug          Enable debug code and logs (default disabled)
1573  --enable-fortify-source Build with -D_FORTIFY_SOURCE=2 (default disabled)
1574
1575Optional Packages:
1576  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1577  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1578  --with-pic              try to use only PIC/non-PIC objects [default=use
1579                          both]
1580  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1581
1582Some influential environment variables:
1583  CC          C compiler command
1584  CFLAGS      C compiler flags
1585  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1586              nonstandard directory <lib dir>
1587  LIBS        libraries to pass to the linker, e.g. -l<library>
1588  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1589              you have headers in a nonstandard directory <include dir>
1590  CPP         C preprocessor
1591  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1592              the first program found out of: `bison -y', `byacc', `yacc'.
1593  YFLAGS      The list of arguments that will be passed by default to $YACC.
1594              This script will default YFLAGS to the empty string to avoid a
1595              default value of `-d' given by some make applications.
1596  PKG_CONFIG  path to pkg-config utility
1597  OGG_CFLAGS  C compiler flags for OGG, overriding pkg-config
1598  OGG_LIBS    linker flags for OGG, overriding pkg-config
1599  PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
1600  PNG_LIBS    linker flags for PNG, overriding pkg-config
1601
1602Use these variables to override the choices made by `configure' or to help
1603it to find libraries and programs with nonstandard names/locations.
1604
1605Report bugs to the package provider.
1606_ACEOF
1607ac_status=$?
1608fi
1609
1610if test "$ac_init_help" = "recursive"; then
1611  # If there are subdirs, report their specific --help.
1612  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613    test -d "$ac_dir" ||
1614      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1615      continue
1616    ac_builddir=.
1617
1618case "$ac_dir" in
1619.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620*)
1621  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1622  # A ".." for each directory in $ac_dir_suffix.
1623  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1624  case $ac_top_builddir_sub in
1625  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627  esac ;;
1628esac
1629ac_abs_top_builddir=$ac_pwd
1630ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631# for backward compatibility:
1632ac_top_builddir=$ac_top_build_prefix
1633
1634case $srcdir in
1635  .)  # We are building in place.
1636    ac_srcdir=.
1637    ac_top_srcdir=$ac_top_builddir_sub
1638    ac_abs_top_srcdir=$ac_pwd ;;
1639  [\\/]* | ?:[\\/]* )  # Absolute name.
1640    ac_srcdir=$srcdir$ac_dir_suffix;
1641    ac_top_srcdir=$srcdir
1642    ac_abs_top_srcdir=$srcdir ;;
1643  *) # Relative name.
1644    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645    ac_top_srcdir=$ac_top_build_prefix$srcdir
1646    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1647esac
1648ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1649
1650    cd "$ac_dir" || { ac_status=$?; continue; }
1651    # Check for guested configure.
1652    if test -f "$ac_srcdir/configure.gnu"; then
1653      echo &&
1654      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655    elif test -f "$ac_srcdir/configure"; then
1656      echo &&
1657      $SHELL "$ac_srcdir/configure" --help=recursive
1658    else
1659      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660    fi || ac_status=$?
1661    cd "$ac_pwd" || { ac_status=$?; break; }
1662  done
1663fi
1664
1665test -n "$ac_init_help" && exit $ac_status
1666if $ac_init_version; then
1667  cat <<\_ACEOF
1668libkate configure 0.4.1
1669generated by GNU Autoconf 2.64
1670
1671Copyright (C) 2009 Free Software Foundation, Inc.
1672This configure script is free software; the Free Software Foundation
1673gives unlimited permission to copy, distribute and modify it.
1674_ACEOF
1675  exit
1676fi
1677
1678## ------------------------ ##
1679## Autoconf initialization. ##
1680## ------------------------ ##
1681
1682# ac_fn_c_try_compile LINENO
1683# --------------------------
1684# Try to compile conftest.$ac_ext, and return whether this succeeded.
1685ac_fn_c_try_compile ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  rm -f conftest.$ac_objext
1689  if { { ac_try="$ac_compile"
1690case "(($ac_try" in
1691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692  *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696  (eval "$ac_compile") 2>conftest.err
1697  ac_status=$?
1698  if test -s conftest.err; then
1699    grep -v '^ *+' conftest.err >conftest.er1
1700    cat conftest.er1 >&5
1701    mv -f conftest.er1 conftest.err
1702  fi
1703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704  test $ac_status = 0; } && {
1705	 test -z "$ac_c_werror_flag" ||
1706	 test ! -s conftest.err
1707       } && test -s conftest.$ac_objext; then :
1708  ac_retval=0
1709else
1710  $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713	ac_retval=1
1714fi
1715  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716  return $ac_retval
1717
1718} # ac_fn_c_try_compile
1719
1720# ac_fn_c_try_link LINENO
1721# -----------------------
1722# Try to link conftest.$ac_ext, and return whether this succeeded.
1723ac_fn_c_try_link ()
1724{
1725  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726  rm -f conftest.$ac_objext conftest$ac_exeext
1727  if { { ac_try="$ac_link"
1728case "(($ac_try" in
1729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730  *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734  (eval "$ac_link") 2>conftest.err
1735  ac_status=$?
1736  if test -s conftest.err; then
1737    grep -v '^ *+' conftest.err >conftest.er1
1738    cat conftest.er1 >&5
1739    mv -f conftest.er1 conftest.err
1740  fi
1741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742  test $ac_status = 0; } && {
1743	 test -z "$ac_c_werror_flag" ||
1744	 test ! -s conftest.err
1745       } && test -s conftest$ac_exeext && {
1746	 test "$cross_compiling" = yes ||
1747	 $as_test_x conftest$ac_exeext
1748       }; then :
1749  ac_retval=0
1750else
1751  $as_echo "$as_me: failed program was:" >&5
1752sed 's/^/| /' conftest.$ac_ext >&5
1753
1754	ac_retval=1
1755fi
1756  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1757  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1758  # interfere with the next link command; also delete a directory that is
1759  # left behind by Apple's compiler.  We do this before executing the actions.
1760  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762  return $ac_retval
1763
1764} # ac_fn_c_try_link
1765
1766# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1767# -------------------------------------------------------
1768# Tests whether HEADER exists and can be compiled using the include files in
1769# INCLUDES, setting the cache variable VAR accordingly.
1770ac_fn_c_check_header_compile ()
1771{
1772  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774$as_echo_n "checking for $2... " >&6; }
1775if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1776  $as_echo_n "(cached) " >&6
1777else
1778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779/* end confdefs.h.  */
1780$4
1781#include <$2>
1782_ACEOF
1783if ac_fn_c_try_compile "$LINENO"; then :
1784  eval "$3=yes"
1785else
1786  eval "$3=no"
1787fi
1788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789fi
1790eval ac_res=\$$3
1791	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792$as_echo "$ac_res" >&6; }
1793  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1794
1795} # ac_fn_c_check_header_compile
1796
1797# ac_fn_c_try_cpp LINENO
1798# ----------------------
1799# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1800ac_fn_c_try_cpp ()
1801{
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  if { { ac_try="$ac_cpp conftest.$ac_ext"
1804case "(($ac_try" in
1805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806  *) ac_try_echo=$ac_try;;
1807esac
1808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809$as_echo "$ac_try_echo"; } >&5
1810  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1811  ac_status=$?
1812  if test -s conftest.err; then
1813    grep -v '^ *+' conftest.err >conftest.er1
1814    cat conftest.er1 >&5
1815    mv -f conftest.er1 conftest.err
1816  fi
1817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818  test $ac_status = 0; } >/dev/null && {
1819	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1820	 test ! -s conftest.err
1821       }; then :
1822  ac_retval=0
1823else
1824  $as_echo "$as_me: failed program was:" >&5
1825sed 's/^/| /' conftest.$ac_ext >&5
1826
1827    ac_retval=1
1828fi
1829  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830  return $ac_retval
1831
1832} # ac_fn_c_try_cpp
1833
1834# ac_fn_c_try_run LINENO
1835# ----------------------
1836# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1837# that executables *can* be run.
1838ac_fn_c_try_run ()
1839{
1840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841  if { { ac_try="$ac_link"
1842case "(($ac_try" in
1843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844  *) ac_try_echo=$ac_try;;
1845esac
1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847$as_echo "$ac_try_echo"; } >&5
1848  (eval "$ac_link") 2>&5
1849  ac_status=$?
1850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1852  { { case "(($ac_try" in
1853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854  *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858  (eval "$ac_try") 2>&5
1859  ac_status=$?
1860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861  test $ac_status = 0; }; }; then :
1862  ac_retval=0
1863else
1864  $as_echo "$as_me: program exited with status $ac_status" >&5
1865       $as_echo "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5
1867
1868       ac_retval=$ac_status
1869fi
1870  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872  return $ac_retval
1873
1874} # ac_fn_c_try_run
1875
1876# ac_fn_c_check_func LINENO FUNC VAR
1877# ----------------------------------
1878# Tests whether FUNC exists, setting the cache variable VAR accordingly
1879ac_fn_c_check_func ()
1880{
1881  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883$as_echo_n "checking for $2... " >&6; }
1884if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885  $as_echo_n "(cached) " >&6
1886else
1887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888/* end confdefs.h.  */
1889/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1890   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1891#define $2 innocuous_$2
1892
1893/* System header to define __stub macros and hopefully few prototypes,
1894    which can conflict with char $2 (); below.
1895    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1896    <limits.h> exists even on freestanding compilers.  */
1897
1898#ifdef __STDC__
1899# include <limits.h>
1900#else
1901# include <assert.h>
1902#endif
1903
1904#undef $2
1905
1906/* Override any GCC internal prototype to avoid an error.
1907   Use char because int might match the return type of a GCC
1908   builtin and then its argument prototype would still apply.  */
1909#ifdef __cplusplus
1910extern "C"
1911#endif
1912char $2 ();
1913/* The GNU C library defines this for functions which it implements
1914    to always fail with ENOSYS.  Some functions are actually named
1915    something starting with __ and the normal name is an alias.  */
1916#if defined __stub_$2 || defined __stub___$2
1917choke me
1918#endif
1919
1920int
1921main ()
1922{
1923return $2 ();
1924  ;
1925  return 0;
1926}
1927_ACEOF
1928if ac_fn_c_try_link "$LINENO"; then :
1929  eval "$3=yes"
1930else
1931  eval "$3=no"
1932fi
1933rm -f core conftest.err conftest.$ac_objext \
1934    conftest$ac_exeext conftest.$ac_ext
1935fi
1936eval ac_res=\$$3
1937	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938$as_echo "$ac_res" >&6; }
1939  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940
1941} # ac_fn_c_check_func
1942
1943# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1944# -------------------------------------------------------
1945# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1946# the include files in INCLUDES and setting the cache variable VAR
1947# accordingly.
1948ac_fn_c_check_header_mongrel ()
1949{
1950  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953$as_echo_n "checking for $2... " >&6; }
1954if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1955  $as_echo_n "(cached) " >&6
1956fi
1957eval ac_res=\$$3
1958	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959$as_echo "$ac_res" >&6; }
1960else
1961  # Is the header compilable?
1962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1963$as_echo_n "checking $2 usability... " >&6; }
1964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h.  */
1966$4
1967#include <$2>
1968_ACEOF
1969if ac_fn_c_try_compile "$LINENO"; then :
1970  ac_header_compiler=yes
1971else
1972  ac_header_compiler=no
1973fi
1974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1976$as_echo "$ac_header_compiler" >&6; }
1977
1978# Is the header present?
1979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1980$as_echo_n "checking $2 presence... " >&6; }
1981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982/* end confdefs.h.  */
1983#include <$2>
1984_ACEOF
1985if ac_fn_c_try_cpp "$LINENO"; then :
1986  ac_header_preproc=yes
1987else
1988  ac_header_preproc=no
1989fi
1990rm -f conftest.err conftest.$ac_ext
1991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1992$as_echo "$ac_header_preproc" >&6; }
1993
1994# So?  What about this header?
1995case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1996  yes:no: )
1997    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1998$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1999    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2000$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2001    ;;
2002  no:yes:* )
2003    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2004$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2005    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2006$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2007    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2008$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2009    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2010$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2011    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013    ;;
2014esac
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=\$ac_header_compiler"
2021fi
2022eval ac_res=\$$3
2023	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024$as_echo "$ac_res" >&6; }
2025fi
2026  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2027
2028} # ac_fn_c_check_header_mongrel
2029
2030# ac_fn_c_find_intX_t LINENO BITS VAR
2031# -----------------------------------
2032# Finds a signed integer type with width BITS, setting cache variable VAR
2033# accordingly.
2034ac_fn_c_find_intX_t ()
2035{
2036  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2038$as_echo_n "checking for int$2_t... " >&6; }
2039if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2040  $as_echo_n "(cached) " >&6
2041else
2042  eval "$3=no"
2043     for ac_type in int$2_t 'int' 'long int' \
2044	 'long long int' 'short int' 'signed char'; do
2045       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046/* end confdefs.h.  */
2047$ac_includes_default
2048int
2049main ()
2050{
2051static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2052test_array [0] = 0
2053
2054  ;
2055  return 0;
2056}
2057_ACEOF
2058if ac_fn_c_try_compile "$LINENO"; then :
2059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060/* end confdefs.h.  */
2061$ac_includes_default
2062int
2063main ()
2064{
2065static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2066		 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2067test_array [0] = 0
2068
2069  ;
2070  return 0;
2071}
2072_ACEOF
2073if ac_fn_c_try_compile "$LINENO"; then :
2074
2075else
2076  case $ac_type in #(
2077  int$2_t) :
2078    eval "$3=yes" ;; #(
2079  *) :
2080    eval "$3=\$ac_type" ;;
2081esac
2082fi
2083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086       eval as_val=\$$3
2087   if test "x$as_val" = x""no; then :
2088
2089else
2090  break
2091fi
2092     done
2093fi
2094eval ac_res=\$$3
2095	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096$as_echo "$ac_res" >&6; }
2097  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2098
2099} # ac_fn_c_find_intX_t
2100
2101# ac_fn_c_find_uintX_t LINENO BITS VAR
2102# ------------------------------------
2103# Finds an unsigned integer type with width BITS, setting cache variable VAR
2104# accordingly.
2105ac_fn_c_find_uintX_t ()
2106{
2107  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2109$as_echo_n "checking for uint$2_t... " >&6; }
2110if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2111  $as_echo_n "(cached) " >&6
2112else
2113  eval "$3=no"
2114     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2115	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2116       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117/* end confdefs.h.  */
2118$ac_includes_default
2119int
2120main ()
2121{
2122static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2123test_array [0] = 0
2124
2125  ;
2126  return 0;
2127}
2128_ACEOF
2129if ac_fn_c_try_compile "$LINENO"; then :
2130  case $ac_type in #(
2131  uint$2_t) :
2132    eval "$3=yes" ;; #(
2133  *) :
2134    eval "$3=\$ac_type" ;;
2135esac
2136fi
2137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138       eval as_val=\$$3
2139   if test "x$as_val" = x""no; then :
2140
2141else
2142  break
2143fi
2144     done
2145fi
2146eval ac_res=\$$3
2147	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148$as_echo "$ac_res" >&6; }
2149  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150
2151} # ac_fn_c_find_uintX_t
2152
2153# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2154# -------------------------------------------
2155# Tests whether TYPE exists after having included INCLUDES, setting cache
2156# variable VAR accordingly.
2157ac_fn_c_check_type ()
2158{
2159  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161$as_echo_n "checking for $2... " >&6; }
2162if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2163  $as_echo_n "(cached) " >&6
2164else
2165  eval "$3=no"
2166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167/* end confdefs.h.  */
2168$4
2169int
2170main ()
2171{
2172if (sizeof ($2))
2173	 return 0;
2174  ;
2175  return 0;
2176}
2177_ACEOF
2178if ac_fn_c_try_compile "$LINENO"; then :
2179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h.  */
2181$4
2182int
2183main ()
2184{
2185if (sizeof (($2)))
2186	    return 0;
2187  ;
2188  return 0;
2189}
2190_ACEOF
2191if ac_fn_c_try_compile "$LINENO"; then :
2192
2193else
2194  eval "$3=yes"
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197fi
2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199fi
2200eval ac_res=\$$3
2201	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202$as_echo "$ac_res" >&6; }
2203  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2204
2205} # ac_fn_c_check_type
2206cat >config.log <<_ACEOF
2207This file contains any messages produced by compilers while
2208running configure, to aid debugging if configure makes a mistake.
2209
2210It was created by libkate $as_me 0.4.1, which was
2211generated by GNU Autoconf 2.64.  Invocation command line was
2212
2213  $ $0 $@
2214
2215_ACEOF
2216exec 5>>config.log
2217{
2218cat <<_ASUNAME
2219## --------- ##
2220## Platform. ##
2221## --------- ##
2222
2223hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2224uname -m = `(uname -m) 2>/dev/null || echo unknown`
2225uname -r = `(uname -r) 2>/dev/null || echo unknown`
2226uname -s = `(uname -s) 2>/dev/null || echo unknown`
2227uname -v = `(uname -v) 2>/dev/null || echo unknown`
2228
2229/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2230/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2231
2232/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2233/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2234/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2235/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2236/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2237/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2238/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2239
2240_ASUNAME
2241
2242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243for as_dir in $PATH
2244do
2245  IFS=$as_save_IFS
2246  test -z "$as_dir" && as_dir=.
2247    $as_echo "PATH: $as_dir"
2248  done
2249IFS=$as_save_IFS
2250
2251} >&5
2252
2253cat >&5 <<_ACEOF
2254
2255
2256## ----------- ##
2257## Core tests. ##
2258## ----------- ##
2259
2260_ACEOF
2261
2262
2263# Keep a trace of the command line.
2264# Strip out --no-create and --no-recursion so they do not pile up.
2265# Strip out --silent because we don't want to record it for future runs.
2266# Also quote any args containing shell meta-characters.
2267# Make two passes to allow for proper duplicate-argument suppression.
2268ac_configure_args=
2269ac_configure_args0=
2270ac_configure_args1=
2271ac_must_keep_next=false
2272for ac_pass in 1 2
2273do
2274  for ac_arg
2275  do
2276    case $ac_arg in
2277    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2278    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2279    | -silent | --silent | --silen | --sile | --sil)
2280      continue ;;
2281    *\'*)
2282      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2283    esac
2284    case $ac_pass in
2285    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2286    2)
2287      as_fn_append ac_configure_args1 " '$ac_arg'"
2288      if test $ac_must_keep_next = true; then
2289	ac_must_keep_next=false # Got value, back to normal.
2290      else
2291	case $ac_arg in
2292	  *=* | --config-cache | -C | -disable-* | --disable-* \
2293	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2294	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2295	  | -with-* | --with-* | -without-* | --without-* | --x)
2296	    case "$ac_configure_args0 " in
2297	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2298	    esac
2299	    ;;
2300	  -* ) ac_must_keep_next=true ;;
2301	esac
2302      fi
2303      as_fn_append ac_configure_args " '$ac_arg'"
2304      ;;
2305    esac
2306  done
2307done
2308{ ac_configure_args0=; unset ac_configure_args0;}
2309{ ac_configure_args1=; unset ac_configure_args1;}
2310
2311# When interrupted or exit'd, cleanup temporary files, and complete
2312# config.log.  We remove comments because anyway the quotes in there
2313# would cause problems or look ugly.
2314# WARNING: Use '\'' to represent an apostrophe within the trap.
2315# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2316trap 'exit_status=$?
2317  # Save into config.log some information that might help in debugging.
2318  {
2319    echo
2320
2321    cat <<\_ASBOX
2322## ---------------- ##
2323## Cache variables. ##
2324## ---------------- ##
2325_ASBOX
2326    echo
2327    # The following way of writing the cache mishandles newlines in values,
2328(
2329  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2330    eval ac_val=\$$ac_var
2331    case $ac_val in #(
2332    *${as_nl}*)
2333      case $ac_var in #(
2334      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2335$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2336      esac
2337      case $ac_var in #(
2338      _ | IFS | as_nl) ;; #(
2339      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2340      *) { eval $ac_var=; unset $ac_var;} ;;
2341      esac ;;
2342    esac
2343  done
2344  (set) 2>&1 |
2345    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2346    *${as_nl}ac_space=\ *)
2347      sed -n \
2348	"s/'\''/'\''\\\\'\'''\''/g;
2349	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2350      ;; #(
2351    *)
2352      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2353      ;;
2354    esac |
2355    sort
2356)
2357    echo
2358
2359    cat <<\_ASBOX
2360## ----------------- ##
2361## Output variables. ##
2362## ----------------- ##
2363_ASBOX
2364    echo
2365    for ac_var in $ac_subst_vars
2366    do
2367      eval ac_val=\$$ac_var
2368      case $ac_val in
2369      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370      esac
2371      $as_echo "$ac_var='\''$ac_val'\''"
2372    done | sort
2373    echo
2374
2375    if test -n "$ac_subst_files"; then
2376      cat <<\_ASBOX
2377## ------------------- ##
2378## File substitutions. ##
2379## ------------------- ##
2380_ASBOX
2381      echo
2382      for ac_var in $ac_subst_files
2383      do
2384	eval ac_val=\$$ac_var
2385	case $ac_val in
2386	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2387	esac
2388	$as_echo "$ac_var='\''$ac_val'\''"
2389      done | sort
2390      echo
2391    fi
2392
2393    if test -s confdefs.h; then
2394      cat <<\_ASBOX
2395## ----------- ##
2396## confdefs.h. ##
2397## ----------- ##
2398_ASBOX
2399      echo
2400      cat confdefs.h
2401      echo
2402    fi
2403    test "$ac_signal" != 0 &&
2404      $as_echo "$as_me: caught signal $ac_signal"
2405    $as_echo "$as_me: exit $exit_status"
2406  } >&5
2407  rm -f core *.core core.conftest.* &&
2408    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2409    exit $exit_status
2410' 0
2411for ac_signal in 1 2 13 15; do
2412  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2413done
2414ac_signal=0
2415
2416# confdefs.h avoids OS command line length limits that DEFS can exceed.
2417rm -f -r conftest* confdefs.h
2418
2419$as_echo "/* confdefs.h */" > confdefs.h
2420
2421# Predefined preprocessor variables.
2422
2423cat >>confdefs.h <<_ACEOF
2424#define PACKAGE_NAME "$PACKAGE_NAME"
2425_ACEOF
2426
2427cat >>confdefs.h <<_ACEOF
2428#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2429_ACEOF
2430
2431cat >>confdefs.h <<_ACEOF
2432#define PACKAGE_VERSION "$PACKAGE_VERSION"
2433_ACEOF
2434
2435cat >>confdefs.h <<_ACEOF
2436#define PACKAGE_STRING "$PACKAGE_STRING"
2437_ACEOF
2438
2439cat >>confdefs.h <<_ACEOF
2440#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2441_ACEOF
2442
2443cat >>confdefs.h <<_ACEOF
2444#define PACKAGE_URL "$PACKAGE_URL"
2445_ACEOF
2446
2447
2448# Let the site file select an alternate cache file if it wants to.
2449# Prefer an explicitly selected file to automatically selected ones.
2450ac_site_file1=NONE
2451ac_site_file2=NONE
2452if test -n "$CONFIG_SITE"; then
2453  ac_site_file1=$CONFIG_SITE
2454elif test "x$prefix" != xNONE; then
2455  ac_site_file1=$prefix/share/config.site
2456  ac_site_file2=$prefix/etc/config.site
2457else
2458  ac_site_file1=$ac_default_prefix/share/config.site
2459  ac_site_file2=$ac_default_prefix/etc/config.site
2460fi
2461for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2462do
2463  test "x$ac_site_file" = xNONE && continue
2464  if test -r "$ac_site_file"; then
2465    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2466$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2467    sed 's/^/| /' "$ac_site_file" >&5
2468    . "$ac_site_file"
2469  fi
2470done
2471
2472if test -r "$cache_file"; then
2473  # Some versions of bash will fail to source /dev/null (special
2474  # files actually), so we avoid doing that.
2475  if test -f "$cache_file"; then
2476    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2477$as_echo "$as_me: loading cache $cache_file" >&6;}
2478    case $cache_file in
2479      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2480      *)                      . "./$cache_file";;
2481    esac
2482  fi
2483else
2484  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2485$as_echo "$as_me: creating cache $cache_file" >&6;}
2486  >$cache_file
2487fi
2488
2489# Check that the precious variables saved in the cache have kept the same
2490# value.
2491ac_cache_corrupted=false
2492for ac_var in $ac_precious_vars; do
2493  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2494  eval ac_new_set=\$ac_env_${ac_var}_set
2495  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2496  eval ac_new_val=\$ac_env_${ac_var}_value
2497  case $ac_old_set,$ac_new_set in
2498    set,)
2499      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2500$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2501      ac_cache_corrupted=: ;;
2502    ,set)
2503      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2504$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2505      ac_cache_corrupted=: ;;
2506    ,);;
2507    *)
2508      if test "x$ac_old_val" != "x$ac_new_val"; then
2509	# differences in whitespace do not lead to failure.
2510	ac_old_val_w=`echo x $ac_old_val`
2511	ac_new_val_w=`echo x $ac_new_val`
2512	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2513	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2514$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2515	  ac_cache_corrupted=:
2516	else
2517	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2518$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2519	  eval $ac_var=\$ac_old_val
2520	fi
2521	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2522$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2523	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2524$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2525      fi;;
2526  esac
2527  # Pass precious variables to config.status.
2528  if test "$ac_new_set" = set; then
2529    case $ac_new_val in
2530    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2531    *) ac_arg=$ac_var=$ac_new_val ;;
2532    esac
2533    case " $ac_configure_args " in
2534      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2535      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2536    esac
2537  fi
2538done
2539if $ac_cache_corrupted; then
2540  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2542  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2543$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2544  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2545fi
2546## -------------------- ##
2547## Main body of script. ##
2548## -------------------- ##
2549
2550ac_ext=c
2551ac_cpp='$CPP $CPPFLAGS'
2552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2554ac_compiler_gnu=$ac_cv_c_compiler_gnu
2555
2556
2557
2558
2559ac_aux_dir=
2560for ac_dir in misc/autotools "$srcdir"/misc/autotools; do
2561  for ac_t in install-sh install.sh shtool; do
2562    if test -f "$ac_dir/$ac_t"; then
2563      ac_aux_dir=$ac_dir
2564      ac_install_sh="$ac_aux_dir/$ac_t -c"
2565      break 2
2566    fi
2567  done
2568done
2569if test -z "$ac_aux_dir"; then
2570  as_fn_error "cannot find install-sh, install.sh, or shtool in misc/autotools \"$srcdir\"/misc/autotools" "$LINENO" 5
2571fi
2572
2573# These three variables are undocumented and unsupported,
2574# and are intended to be withdrawn in a future Autoconf release.
2575# They can cause serious problems if a builder's source tree is in a directory
2576# whose full name contains unusual characters.
2577ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2578ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2579ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2580
2581
2582
2583
2584
2585# Make sure we can run config.sub.
2586$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2587  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2588
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2590$as_echo_n "checking build system type... " >&6; }
2591if test "${ac_cv_build+set}" = set; then :
2592  $as_echo_n "(cached) " >&6
2593else
2594  ac_build_alias=$build_alias
2595test "x$ac_build_alias" = x &&
2596  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2597test "x$ac_build_alias" = x &&
2598  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2599ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2600  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2601
2602fi
2603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2604$as_echo "$ac_cv_build" >&6; }
2605case $ac_cv_build in
2606*-*-*) ;;
2607*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2608esac
2609build=$ac_cv_build
2610ac_save_IFS=$IFS; IFS='-'
2611set x $ac_cv_build
2612shift
2613build_cpu=$1
2614build_vendor=$2
2615shift; shift
2616# Remember, the first character of IFS is used to create $*,
2617# except with old shells:
2618build_os=$*
2619IFS=$ac_save_IFS
2620case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2621
2622
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2624$as_echo_n "checking host system type... " >&6; }
2625if test "${ac_cv_host+set}" = set; then :
2626  $as_echo_n "(cached) " >&6
2627else
2628  if test "x$host_alias" = x; then
2629  ac_cv_host=$ac_cv_build
2630else
2631  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2632    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2633fi
2634
2635fi
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2637$as_echo "$ac_cv_host" >&6; }
2638case $ac_cv_host in
2639*-*-*) ;;
2640*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2641esac
2642host=$ac_cv_host
2643ac_save_IFS=$IFS; IFS='-'
2644set x $ac_cv_host
2645shift
2646host_cpu=$1
2647host_vendor=$2
2648shift; shift
2649# Remember, the first character of IFS is used to create $*,
2650# except with old shells:
2651host_os=$*
2652IFS=$ac_save_IFS
2653case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2654
2655
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2657$as_echo_n "checking target system type... " >&6; }
2658if test "${ac_cv_target+set}" = set; then :
2659  $as_echo_n "(cached) " >&6
2660else
2661  if test "x$target_alias" = x; then
2662  ac_cv_target=$ac_cv_host
2663else
2664  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2665    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2666fi
2667
2668fi
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2670$as_echo "$ac_cv_target" >&6; }
2671case $ac_cv_target in
2672*-*-*) ;;
2673*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2674esac
2675target=$ac_cv_target
2676ac_save_IFS=$IFS; IFS='-'
2677set x $ac_cv_target
2678shift
2679target_cpu=$1
2680target_vendor=$2
2681shift; shift
2682# Remember, the first character of IFS is used to create $*,
2683# except with old shells:
2684target_os=$*
2685IFS=$ac_save_IFS
2686case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2687
2688
2689# The aliases save the names the user supplied, while $host etc.
2690# will get canonicalized.
2691test -n "$target_alias" &&
2692  test "$program_prefix$program_suffix$program_transform_name" = \
2693    NONENONEs,x,x, &&
2694  program_prefix=${target_alias}-
2695
2696am__api_version='1.11'
2697
2698# Find a good install program.  We prefer a C program (faster),
2699# so one script is as good as another.  But avoid the broken or
2700# incompatible versions:
2701# SysV /etc/install, /usr/sbin/install
2702# SunOS /usr/etc/install
2703# IRIX /sbin/install
2704# AIX /bin/install
2705# AmigaOS /C/install, which installs bootblocks on floppy discs
2706# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2707# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2708# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2709# OS/2's system install, which has a completely different semantic
2710# ./install, which can be erroneously created by make from ./install.sh.
2711# Reject install programs that cannot install multiple files.
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2713$as_echo_n "checking for a BSD-compatible install... " >&6; }
2714if test -z "$INSTALL"; then
2715if test "${ac_cv_path_install+set}" = set; then :
2716  $as_echo_n "(cached) " >&6
2717else
2718  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH
2720do
2721  IFS=$as_save_IFS
2722  test -z "$as_dir" && as_dir=.
2723    # Account for people who put trailing slashes in PATH elements.
2724case $as_dir/ in #((
2725  ./ | .// | /[cC]/* | \
2726  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2727  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2728  /usr/ucb/* ) ;;
2729  *)
2730    # OSF1 and SCO ODT 3.0 have their own names for install.
2731    # Don't use installbsd from OSF since it installs stuff as root
2732    # by default.
2733    for ac_prog in ginstall scoinst install; do
2734      for ac_exec_ext in '' $ac_executable_extensions; do
2735	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2736	  if test $ac_prog = install &&
2737	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2738	    # AIX install.  It has an incompatible calling convention.
2739	    :
2740	  elif test $ac_prog = install &&
2741	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2742	    # program-specific install script used by HP pwplus--don't use.
2743	    :
2744	  else
2745	    rm -rf conftest.one conftest.two conftest.dir
2746	    echo one > conftest.one
2747	    echo two > conftest.two
2748	    mkdir conftest.dir
2749	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2750	      test -s conftest.one && test -s conftest.two &&
2751	      test -s conftest.dir/conftest.one &&
2752	      test -s conftest.dir/conftest.two
2753	    then
2754	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2755	      break 3
2756	    fi
2757	  fi
2758	fi
2759      done
2760    done
2761    ;;
2762esac
2763
2764  done
2765IFS=$as_save_IFS
2766
2767rm -rf conftest.one conftest.two conftest.dir
2768
2769fi
2770  if test "${ac_cv_path_install+set}" = set; then
2771    INSTALL=$ac_cv_path_install
2772  else
2773    # As a last resort, use the slow shell script.  Don't cache a
2774    # value for INSTALL within a source directory, because that will
2775    # break other packages using the cache if that directory is
2776    # removed, or if the value is a relative name.
2777    INSTALL=$ac_install_sh
2778  fi
2779fi
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2781$as_echo "$INSTALL" >&6; }
2782
2783# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2784# It thinks the first close brace ends the variable substitution.
2785test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2786
2787test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2788
2789test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2790
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2792$as_echo_n "checking whether build environment is sane... " >&6; }
2793# Just in case
2794sleep 1
2795echo timestamp > conftest.file
2796# Reject unsafe characters in $srcdir or the absolute working directory
2797# name.  Accept space and tab only in the latter.
2798am_lf='
2799'
2800case `pwd` in
2801  *[\\\"\#\$\&\'\`$am_lf]*)
2802    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2803esac
2804case $srcdir in
2805  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2806    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2807esac
2808
2809# Do `set' in a subshell so we don't clobber the current shell's
2810# arguments.  Must try -L first in case configure is actually a
2811# symlink; some systems play weird games with the mod time of symlinks
2812# (eg FreeBSD returns the mod time of the symlink's containing
2813# directory).
2814if (
2815   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2816   if test "$*" = "X"; then
2817      # -L didn't work.
2818      set X `ls -t "$srcdir/configure" conftest.file`
2819   fi
2820   rm -f conftest.file
2821   if test "$*" != "X $srcdir/configure conftest.file" \
2822      && test "$*" != "X conftest.file $srcdir/configure"; then
2823
2824      # If neither matched, then we have a broken ls.  This can happen
2825      # if, for instance, CONFIG_SHELL is bash and it inherits a
2826      # broken ls alias from the environment.  This has actually
2827      # happened.  Such a system could not be considered "sane".
2828      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2829alias in your environment" "$LINENO" 5
2830   fi
2831
2832   test "$2" = conftest.file
2833   )
2834then
2835   # Ok.
2836   :
2837else
2838   as_fn_error "newly created file is older than distributed files!
2839Check your system clock" "$LINENO" 5
2840fi
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2842$as_echo "yes" >&6; }
2843test "$program_prefix" != NONE &&
2844  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2845# Use a double $ so make ignores it.
2846test "$program_suffix" != NONE &&
2847  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2848# Double any \ or $.
2849# By default was `s,x,x', remove it if useless.
2850ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2851program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2852
2853# expand $ac_aux_dir to an absolute path
2854am_aux_dir=`cd $ac_aux_dir && pwd`
2855
2856if test x"${MISSING+set}" != xset; then
2857  case $am_aux_dir in
2858  *\ * | *\	*)
2859    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2860  *)
2861    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2862  esac
2863fi
2864# Use eval to expand $SHELL
2865if eval "$MISSING --run true"; then
2866  am_missing_run="$MISSING --run "
2867else
2868  am_missing_run=
2869  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2870$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2871fi
2872
2873if test x"${install_sh}" != xset; then
2874  case $am_aux_dir in
2875  *\ * | *\	*)
2876    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2877  *)
2878    install_sh="\${SHELL} $am_aux_dir/install-sh"
2879  esac
2880fi
2881
2882# Installed binaries are usually stripped using `strip' when the user
2883# run `make install-strip'.  However `strip' might not be the right
2884# tool to use in cross-compilation environments, therefore Automake
2885# will honor the `STRIP' environment variable to overrule this program.
2886if test "$cross_compiling" != no; then
2887  if test -n "$ac_tool_prefix"; then
2888  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2889set dummy ${ac_tool_prefix}strip; ac_word=$2
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891$as_echo_n "checking for $ac_word... " >&6; }
2892if test "${ac_cv_prog_STRIP+set}" = set; then :
2893  $as_echo_n "(cached) " >&6
2894else
2895  if test -n "$STRIP"; then
2896  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2897else
2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899for as_dir in $PATH
2900do
2901  IFS=$as_save_IFS
2902  test -z "$as_dir" && as_dir=.
2903    for ac_exec_ext in '' $ac_executable_extensions; do
2904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907    break 2
2908  fi
2909done
2910  done
2911IFS=$as_save_IFS
2912
2913fi
2914fi
2915STRIP=$ac_cv_prog_STRIP
2916if test -n "$STRIP"; then
2917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2918$as_echo "$STRIP" >&6; }
2919else
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921$as_echo "no" >&6; }
2922fi
2923
2924
2925fi
2926if test -z "$ac_cv_prog_STRIP"; then
2927  ac_ct_STRIP=$STRIP
2928  # Extract the first word of "strip", so it can be a program name with args.
2929set dummy strip; ac_word=$2
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931$as_echo_n "checking for $ac_word... " >&6; }
2932if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2933  $as_echo_n "(cached) " >&6
2934else
2935  if test -n "$ac_ct_STRIP"; then
2936  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2937else
2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941  IFS=$as_save_IFS
2942  test -z "$as_dir" && as_dir=.
2943    for ac_exec_ext in '' $ac_executable_extensions; do
2944  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945    ac_cv_prog_ac_ct_STRIP="strip"
2946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947    break 2
2948  fi
2949done
2950  done
2951IFS=$as_save_IFS
2952
2953fi
2954fi
2955ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2956if test -n "$ac_ct_STRIP"; then
2957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2958$as_echo "$ac_ct_STRIP" >&6; }
2959else
2960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961$as_echo "no" >&6; }
2962fi
2963
2964  if test "x$ac_ct_STRIP" = x; then
2965    STRIP=":"
2966  else
2967    case $cross_compiling:$ac_tool_warned in
2968yes:)
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971ac_tool_warned=yes ;;
2972esac
2973    STRIP=$ac_ct_STRIP
2974  fi
2975else
2976  STRIP="$ac_cv_prog_STRIP"
2977fi
2978
2979fi
2980INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2981
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2983$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2984if test -z "$MKDIR_P"; then
2985  if test "${ac_cv_path_mkdir+set}" = set; then :
2986  $as_echo_n "(cached) " >&6
2987else
2988  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2990do
2991  IFS=$as_save_IFS
2992  test -z "$as_dir" && as_dir=.
2993    for ac_prog in mkdir gmkdir; do
2994	 for ac_exec_ext in '' $ac_executable_extensions; do
2995	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2996	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2997	     'mkdir (GNU coreutils) '* | \
2998	     'mkdir (coreutils) '* | \
2999	     'mkdir (fileutils) '4.1*)
3000	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3001	       break 3;;
3002	   esac
3003	 done
3004       done
3005  done
3006IFS=$as_save_IFS
3007
3008fi
3009
3010  if test "${ac_cv_path_mkdir+set}" = set; then
3011    MKDIR_P="$ac_cv_path_mkdir -p"
3012  else
3013    # As a last resort, use the slow shell script.  Don't cache a
3014    # value for MKDIR_P within a source directory, because that will
3015    # break other packages using the cache if that directory is
3016    # removed, or if the value is a relative name.
3017    test -d ./--version && rmdir ./--version
3018    MKDIR_P="$ac_install_sh -d"
3019  fi
3020fi
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3022$as_echo "$MKDIR_P" >&6; }
3023
3024mkdir_p="$MKDIR_P"
3025case $mkdir_p in
3026  [\\/$]* | ?:[\\/]*) ;;
3027  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3028esac
3029
3030for ac_prog in gawk mawk nawk awk
3031do
3032  # Extract the first word of "$ac_prog", so it can be a program name with args.
3033set dummy $ac_prog; ac_word=$2
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035$as_echo_n "checking for $ac_word... " >&6; }
3036if test "${ac_cv_prog_AWK+set}" = set; then :
3037  $as_echo_n "(cached) " >&6
3038else
3039  if test -n "$AWK"; then
3040  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045  IFS=$as_save_IFS
3046  test -z "$as_dir" && as_dir=.
3047    for ac_exec_ext in '' $ac_executable_extensions; do
3048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049    ac_cv_prog_AWK="$ac_prog"
3050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051    break 2
3052  fi
3053done
3054  done
3055IFS=$as_save_IFS
3056
3057fi
3058fi
3059AWK=$ac_cv_prog_AWK
3060if test -n "$AWK"; then
3061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3062$as_echo "$AWK" >&6; }
3063else
3064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065$as_echo "no" >&6; }
3066fi
3067
3068
3069  test -n "$AWK" && break
3070done
3071
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3073$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3074set x ${MAKE-make}
3075ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3076if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3077  $as_echo_n "(cached) " >&6
3078else
3079  cat >conftest.make <<\_ACEOF
3080SHELL = /bin/sh
3081all:
3082	@echo '@@@%%%=$(MAKE)=@@@%%%'
3083_ACEOF
3084# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3085case `${MAKE-make} -f conftest.make 2>/dev/null` in
3086  *@@@%%%=?*=@@@%%%*)
3087    eval ac_cv_prog_make_${ac_make}_set=yes;;
3088  *)
3089    eval ac_cv_prog_make_${ac_make}_set=no;;
3090esac
3091rm -f conftest.make
3092fi
3093if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095$as_echo "yes" >&6; }
3096  SET_MAKE=
3097else
3098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099$as_echo "no" >&6; }
3100  SET_MAKE="MAKE=${MAKE-make}"
3101fi
3102
3103rm -rf .tst 2>/dev/null
3104mkdir .tst 2>/dev/null
3105if test -d .tst; then
3106  am__leading_dot=.
3107else
3108  am__leading_dot=_
3109fi
3110rmdir .tst 2>/dev/null
3111
3112if test "`cd $srcdir && pwd`" != "`pwd`"; then
3113  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3114  # is not polluted with repeated "-I."
3115  am__isrc=' -I$(srcdir)'
3116  # test to see if srcdir already configured
3117  if test -f $srcdir/config.status; then
3118    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3119  fi
3120fi
3121
3122# test whether we have cygpath
3123if test -z "$CYGPATH_W"; then
3124  if (cygpath --version) >/dev/null 2>/dev/null; then
3125    CYGPATH_W='cygpath -w'
3126  else
3127    CYGPATH_W=echo
3128  fi
3129fi
3130
3131
3132# Define the identity of the package.
3133 PACKAGE='libkate'
3134 VERSION='0.4.1'
3135
3136
3137cat >>confdefs.h <<_ACEOF
3138#define PACKAGE "$PACKAGE"
3139_ACEOF
3140
3141
3142cat >>confdefs.h <<_ACEOF
3143#define VERSION "$VERSION"
3144_ACEOF
3145
3146# Some tools Automake needs.
3147
3148ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3149
3150
3151AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3152
3153
3154AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3155
3156
3157AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3158
3159
3160MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3161
3162# We need awk for the "check" target.  The system "awk" is bad on
3163# some platforms.
3164# Always define AMTAR for backward compatibility.
3165
3166AMTAR=${AMTAR-"${am_missing_run}tar"}
3167
3168am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3169
3170
3171
3172
3173
3174ac_config_headers="$ac_config_headers include/config.h"
3175
3176
3177# Check whether --enable-silent-rules was given.
3178if test "${enable_silent_rules+set}" = set; then :
3179  enableval=$enable_silent_rules;
3180fi
3181
3182case $enable_silent_rules in
3183yes) AM_DEFAULT_VERBOSITY=0;;
3184no)  AM_DEFAULT_VERBOSITY=1;;
3185*)   AM_DEFAULT_VERBOSITY=1;;
3186esac
3187AM_BACKSLASH='\'
3188
3189
3190
3191LIBKATE_SHARED_VERSION="4:0:3"
3192LIBOGGKATE_SHARED_VERSION="3:2:2"
3193
3194DEPDIR="${am__leading_dot}deps"
3195
3196ac_config_commands="$ac_config_commands depfiles"
3197
3198
3199am_make=${MAKE-make}
3200cat > confinc << 'END'
3201am__doit:
3202	@echo this is the am__doit target
3203.PHONY: am__doit
3204END
3205# If we don't find an include directive, just comment out the code.
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3207$as_echo_n "checking for style of include used by $am_make... " >&6; }
3208am__include="#"
3209am__quote=
3210_am_result=none
3211# First try GNU make style include.
3212echo "include confinc" > confmf
3213# Ignore all kinds of additional output from `make'.
3214case `$am_make -s -f confmf 2> /dev/null` in #(
3215*the\ am__doit\ target*)
3216  am__include=include
3217  am__quote=
3218  _am_result=GNU
3219  ;;
3220esac
3221# Now try BSD make style include.
3222if test "$am__include" = "#"; then
3223   echo '.include "confinc"' > confmf
3224   case `$am_make -s -f confmf 2> /dev/null` in #(
3225   *the\ am__doit\ target*)
3226     am__include=.include
3227     am__quote="\""
3228     _am_result=BSD
3229     ;;
3230   esac
3231fi
3232
3233
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3235$as_echo "$_am_result" >&6; }
3236rm -f confinc confmf
3237
3238# Check whether --enable-dependency-tracking was given.
3239if test "${enable_dependency_tracking+set}" = set; then :
3240  enableval=$enable_dependency_tracking;
3241fi
3242
3243if test "x$enable_dependency_tracking" != xno; then
3244  am_depcomp="$ac_aux_dir/depcomp"
3245  AMDEPBACKSLASH='\'
3246fi
3247 if test "x$enable_dependency_tracking" != xno; then
3248  AMDEP_TRUE=
3249  AMDEP_FALSE='#'
3250else
3251  AMDEP_TRUE='#'
3252  AMDEP_FALSE=
3253fi
3254
3255
3256ac_ext=c
3257ac_cpp='$CPP $CPPFLAGS'
3258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3260ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261if test -n "$ac_tool_prefix"; then
3262  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3263set dummy ${ac_tool_prefix}gcc; ac_word=$2
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265$as_echo_n "checking for $ac_word... " >&6; }
3266if test "${ac_cv_prog_CC+set}" = set; then :
3267  $as_echo_n "(cached) " >&6
3268else
3269  if test -n "$CC"; then
3270  ac_cv_prog_CC="$CC" # Let the user override the test.
3271else
3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273for as_dir in $PATH
3274do
3275  IFS=$as_save_IFS
3276  test -z "$as_dir" && as_dir=.
3277    for ac_exec_ext in '' $ac_executable_extensions; do
3278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281    break 2
3282  fi
3283done
3284  done
3285IFS=$as_save_IFS
3286
3287fi
3288fi
3289CC=$ac_cv_prog_CC
3290if test -n "$CC"; then
3291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3292$as_echo "$CC" >&6; }
3293else
3294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295$as_echo "no" >&6; }
3296fi
3297
3298
3299fi
3300if test -z "$ac_cv_prog_CC"; then
3301  ac_ct_CC=$CC
3302  # Extract the first word of "gcc", so it can be a program name with args.
3303set dummy gcc; ac_word=$2
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305$as_echo_n "checking for $ac_word... " >&6; }
3306if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3307  $as_echo_n "(cached) " >&6
3308else
3309  if test -n "$ac_ct_CC"; then
3310  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3311else
3312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313for as_dir in $PATH
3314do
3315  IFS=$as_save_IFS
3316  test -z "$as_dir" && as_dir=.
3317    for ac_exec_ext in '' $ac_executable_extensions; do
3318  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319    ac_cv_prog_ac_ct_CC="gcc"
3320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321    break 2
3322  fi
3323done
3324  done
3325IFS=$as_save_IFS
3326
3327fi
3328fi
3329ac_ct_CC=$ac_cv_prog_ac_ct_CC
3330if test -n "$ac_ct_CC"; then
3331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3332$as_echo "$ac_ct_CC" >&6; }
3333else
3334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335$as_echo "no" >&6; }
3336fi
3337
3338  if test "x$ac_ct_CC" = x; then
3339    CC=""
3340  else
3341    case $cross_compiling:$ac_tool_warned in
3342yes:)
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3345ac_tool_warned=yes ;;
3346esac
3347    CC=$ac_ct_CC
3348  fi
3349else
3350  CC="$ac_cv_prog_CC"
3351fi
3352
3353if test -z "$CC"; then
3354          if test -n "$ac_tool_prefix"; then
3355    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3356set dummy ${ac_tool_prefix}cc; ac_word=$2
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358$as_echo_n "checking for $ac_word... " >&6; }
3359if test "${ac_cv_prog_CC+set}" = set; then :
3360  $as_echo_n "(cached) " >&6
3361else
3362  if test -n "$CC"; then
3363  ac_cv_prog_CC="$CC" # Let the user override the test.
3364else
3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH
3367do
3368  IFS=$as_save_IFS
3369  test -z "$as_dir" && as_dir=.
3370    for ac_exec_ext in '' $ac_executable_extensions; do
3371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3372    ac_cv_prog_CC="${ac_tool_prefix}cc"
3373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374    break 2
3375  fi
3376done
3377  done
3378IFS=$as_save_IFS
3379
3380fi
3381fi
3382CC=$ac_cv_prog_CC
3383if test -n "$CC"; then
3384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3385$as_echo "$CC" >&6; }
3386else
3387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388$as_echo "no" >&6; }
3389fi
3390
3391
3392  fi
3393fi
3394if test -z "$CC"; then
3395  # Extract the first word of "cc", so it can be a program name with args.
3396set dummy cc; ac_word=$2
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398$as_echo_n "checking for $ac_word... " >&6; }
3399if test "${ac_cv_prog_CC+set}" = set; then :
3400  $as_echo_n "(cached) " >&6
3401else
3402  if test -n "$CC"; then
3403  ac_cv_prog_CC="$CC" # Let the user override the test.
3404else
3405  ac_prog_rejected=no
3406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407for as_dir in $PATH
3408do
3409  IFS=$as_save_IFS
3410  test -z "$as_dir" && as_dir=.
3411    for ac_exec_ext in '' $ac_executable_extensions; do
3412  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3413    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3414       ac_prog_rejected=yes
3415       continue
3416     fi
3417    ac_cv_prog_CC="cc"
3418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419    break 2
3420  fi
3421done
3422  done
3423IFS=$as_save_IFS
3424
3425if test $ac_prog_rejected = yes; then
3426  # We found a bogon in the path, so make sure we never use it.
3427  set dummy $ac_cv_prog_CC
3428  shift
3429  if test $# != 0; then
3430    # We chose a different compiler from the bogus one.
3431    # However, it has the same basename, so the bogon will be chosen
3432    # first if we set CC to just the basename; use the full file name.
3433    shift
3434    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3435  fi
3436fi
3437fi
3438fi
3439CC=$ac_cv_prog_CC
3440if test -n "$CC"; then
3441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3442$as_echo "$CC" >&6; }
3443else
3444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445$as_echo "no" >&6; }
3446fi
3447
3448
3449fi
3450if test -z "$CC"; then
3451  if test -n "$ac_tool_prefix"; then
3452  for ac_prog in cl.exe
3453  do
3454    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3455set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457$as_echo_n "checking for $ac_word... " >&6; }
3458if test "${ac_cv_prog_CC+set}" = set; then :
3459  $as_echo_n "(cached) " >&6
3460else
3461  if test -n "$CC"; then
3462  ac_cv_prog_CC="$CC" # Let the user override the test.
3463else
3464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465for as_dir in $PATH
3466do
3467  IFS=$as_save_IFS
3468  test -z "$as_dir" && as_dir=.
3469    for ac_exec_ext in '' $ac_executable_extensions; do
3470  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473    break 2
3474  fi
3475done
3476  done
3477IFS=$as_save_IFS
3478
3479fi
3480fi
3481CC=$ac_cv_prog_CC
3482if test -n "$CC"; then
3483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484$as_echo "$CC" >&6; }
3485else
3486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487$as_echo "no" >&6; }
3488fi
3489
3490
3491    test -n "$CC" && break
3492  done
3493fi
3494if test -z "$CC"; then
3495  ac_ct_CC=$CC
3496  for ac_prog in cl.exe
3497do
3498  # Extract the first word of "$ac_prog", so it can be a program name with args.
3499set dummy $ac_prog; ac_word=$2
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501$as_echo_n "checking for $ac_word... " >&6; }
3502if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3503  $as_echo_n "(cached) " >&6
3504else
3505  if test -n "$ac_ct_CC"; then
3506  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3507else
3508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509for as_dir in $PATH
3510do
3511  IFS=$as_save_IFS
3512  test -z "$as_dir" && as_dir=.
3513    for ac_exec_ext in '' $ac_executable_extensions; do
3514  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515    ac_cv_prog_ac_ct_CC="$ac_prog"
3516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517    break 2
3518  fi
3519done
3520  done
3521IFS=$as_save_IFS
3522
3523fi
3524fi
3525ac_ct_CC=$ac_cv_prog_ac_ct_CC
3526if test -n "$ac_ct_CC"; then
3527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528$as_echo "$ac_ct_CC" >&6; }
3529else
3530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531$as_echo "no" >&6; }
3532fi
3533
3534
3535  test -n "$ac_ct_CC" && break
3536done
3537
3538  if test "x$ac_ct_CC" = x; then
3539    CC=""
3540  else
3541    case $cross_compiling:$ac_tool_warned in
3542yes:)
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3545ac_tool_warned=yes ;;
3546esac
3547    CC=$ac_ct_CC
3548  fi
3549fi
3550
3551fi
3552
3553
3554test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556as_fn_error "no acceptable C compiler found in \$PATH
3557See \`config.log' for more details." "$LINENO" 5; }
3558
3559# Provide some information about the compiler.
3560$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3561set X $ac_compile
3562ac_compiler=$2
3563for ac_option in --version -v -V -qversion; do
3564  { { ac_try="$ac_compiler $ac_option >&5"
3565case "(($ac_try" in
3566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567  *) ac_try_echo=$ac_try;;
3568esac
3569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3570$as_echo "$ac_try_echo"; } >&5
3571  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3572  ac_status=$?
3573  if test -s conftest.err; then
3574    sed '10a\
3575... rest of stderr output deleted ...
3576         10q' conftest.err >conftest.er1
3577    cat conftest.er1 >&5
3578    rm -f conftest.er1 conftest.err
3579  fi
3580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581  test $ac_status = 0; }
3582done
3583
3584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585/* end confdefs.h.  */
3586#include <stdio.h>
3587int
3588main ()
3589{
3590FILE *f = fopen ("conftest.out", "w");
3591 return ferror (f) || fclose (f) != 0;
3592
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597ac_clean_files_save=$ac_clean_files
3598ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3599# Try to create an executable without -o first, disregard a.out.
3600# It will help us diagnose broken compilers, and finding out an intuition
3601# of exeext.
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3603$as_echo_n "checking for C compiler default output file name... " >&6; }
3604ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3605
3606# The possible output files:
3607ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3608
3609ac_rmfiles=
3610for ac_file in $ac_files
3611do
3612  case $ac_file in
3613    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3614    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3615  esac
3616done
3617rm -f $ac_rmfiles
3618
3619if { { ac_try="$ac_link_default"
3620case "(($ac_try" in
3621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622  *) ac_try_echo=$ac_try;;
3623esac
3624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625$as_echo "$ac_try_echo"; } >&5
3626  (eval "$ac_link_default") 2>&5
3627  ac_status=$?
3628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629  test $ac_status = 0; }; then :
3630  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3631# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3632# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3633# so that the user can short-circuit this test for compilers unknown to
3634# Autoconf.
3635for ac_file in $ac_files ''
3636do
3637  test -f "$ac_file" || continue
3638  case $ac_file in
3639    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3640	;;
3641    [ab].out )
3642	# We found the default executable, but exeext='' is most
3643	# certainly right.
3644	break;;
3645    *.* )
3646	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3647	then :; else
3648	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3649	fi
3650	# We set ac_cv_exeext here because the later test for it is not
3651	# safe: cross compilers may not add the suffix if given an `-o'
3652	# argument, so we may need to know it at that point already.
3653	# Even if this section looks crufty: it has the advantage of
3654	# actually working.
3655	break;;
3656    * )
3657	break;;
3658  esac
3659done
3660test "$ac_cv_exeext" = no && ac_cv_exeext=
3661
3662else
3663  ac_file=''
3664fi
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3666$as_echo "$ac_file" >&6; }
3667if test -z "$ac_file"; then :
3668  $as_echo "$as_me: failed program was:" >&5
3669sed 's/^/| /' conftest.$ac_ext >&5
3670
3671{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3673{ as_fn_set_status 77
3674as_fn_error "C compiler cannot create executables
3675See \`config.log' for more details." "$LINENO" 5; }; }
3676fi
3677ac_exeext=$ac_cv_exeext
3678
3679# Check that the compiler produces executables we can run.  If not, either
3680# the compiler is broken, or we cross compile.
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3682$as_echo_n "checking whether the C compiler works... " >&6; }
3683# If not cross compiling, check that we can run a simple program.
3684if test "$cross_compiling" != yes; then
3685  if { ac_try='./$ac_file'
3686  { { case "(($ac_try" in
3687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688  *) ac_try_echo=$ac_try;;
3689esac
3690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691$as_echo "$ac_try_echo"; } >&5
3692  (eval "$ac_try") 2>&5
3693  ac_status=$?
3694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695  test $ac_status = 0; }; }; then
3696    cross_compiling=no
3697  else
3698    if test "$cross_compiling" = maybe; then
3699	cross_compiling=yes
3700    else
3701	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3703as_fn_error "cannot run C compiled programs.
3704If you meant to cross compile, use \`--host'.
3705See \`config.log' for more details." "$LINENO" 5; }
3706    fi
3707  fi
3708fi
3709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3710$as_echo "yes" >&6; }
3711
3712rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3713ac_clean_files=$ac_clean_files_save
3714# Check that the compiler produces executables we can run.  If not, either
3715# the compiler is broken, or we cross compile.
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3717$as_echo_n "checking whether we are cross compiling... " >&6; }
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3719$as_echo "$cross_compiling" >&6; }
3720
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3722$as_echo_n "checking for suffix of executables... " >&6; }
3723if { { ac_try="$ac_link"
3724case "(($ac_try" in
3725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726  *) ac_try_echo=$ac_try;;
3727esac
3728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729$as_echo "$ac_try_echo"; } >&5
3730  (eval "$ac_link") 2>&5
3731  ac_status=$?
3732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733  test $ac_status = 0; }; then :
3734  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3735# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3736# work properly (i.e., refer to `conftest.exe'), while it won't with
3737# `rm'.
3738for ac_file in conftest.exe conftest conftest.*; do
3739  test -f "$ac_file" || continue
3740  case $ac_file in
3741    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3742    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3743	  break;;
3744    * ) break;;
3745  esac
3746done
3747else
3748  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750as_fn_error "cannot compute suffix of executables: cannot compile and link
3751See \`config.log' for more details." "$LINENO" 5; }
3752fi
3753rm -f conftest$ac_cv_exeext
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3755$as_echo "$ac_cv_exeext" >&6; }
3756
3757rm -f conftest.$ac_ext
3758EXEEXT=$ac_cv_exeext
3759ac_exeext=$EXEEXT
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3761$as_echo_n "checking for suffix of object files... " >&6; }
3762if test "${ac_cv_objext+set}" = set; then :
3763  $as_echo_n "(cached) " >&6
3764else
3765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766/* end confdefs.h.  */
3767
3768int
3769main ()
3770{
3771
3772  ;
3773  return 0;
3774}
3775_ACEOF
3776rm -f conftest.o conftest.obj
3777if { { ac_try="$ac_compile"
3778case "(($ac_try" in
3779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780  *) ac_try_echo=$ac_try;;
3781esac
3782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783$as_echo "$ac_try_echo"; } >&5
3784  (eval "$ac_compile") 2>&5
3785  ac_status=$?
3786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787  test $ac_status = 0; }; then :
3788  for ac_file in conftest.o conftest.obj conftest.*; do
3789  test -f "$ac_file" || continue;
3790  case $ac_file in
3791    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3792    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3793       break;;
3794  esac
3795done
3796else
3797  $as_echo "$as_me: failed program was:" >&5
3798sed 's/^/| /' conftest.$ac_ext >&5
3799
3800{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802as_fn_error "cannot compute suffix of object files: cannot compile
3803See \`config.log' for more details." "$LINENO" 5; }
3804fi
3805rm -f conftest.$ac_cv_objext conftest.$ac_ext
3806fi
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3808$as_echo "$ac_cv_objext" >&6; }
3809OBJEXT=$ac_cv_objext
3810ac_objext=$OBJEXT
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3812$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3813if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3814  $as_echo_n "(cached) " >&6
3815else
3816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817/* end confdefs.h.  */
3818
3819int
3820main ()
3821{
3822#ifndef __GNUC__
3823       choke me
3824#endif
3825
3826  ;
3827  return 0;
3828}
3829_ACEOF
3830if ac_fn_c_try_compile "$LINENO"; then :
3831  ac_compiler_gnu=yes
3832else
3833  ac_compiler_gnu=no
3834fi
3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836ac_cv_c_compiler_gnu=$ac_compiler_gnu
3837
3838fi
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3840$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3841if test $ac_compiler_gnu = yes; then
3842  GCC=yes
3843else
3844  GCC=
3845fi
3846ac_test_CFLAGS=${CFLAGS+set}
3847ac_save_CFLAGS=$CFLAGS
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3849$as_echo_n "checking whether $CC accepts -g... " >&6; }
3850if test "${ac_cv_prog_cc_g+set}" = set; then :
3851  $as_echo_n "(cached) " >&6
3852else
3853  ac_save_c_werror_flag=$ac_c_werror_flag
3854   ac_c_werror_flag=yes
3855   ac_cv_prog_cc_g=no
3856   CFLAGS="-g"
3857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858/* end confdefs.h.  */
3859
3860int
3861main ()
3862{
3863
3864  ;
3865  return 0;
3866}
3867_ACEOF
3868if ac_fn_c_try_compile "$LINENO"; then :
3869  ac_cv_prog_cc_g=yes
3870else
3871  CFLAGS=""
3872      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873/* end confdefs.h.  */
3874
3875int
3876main ()
3877{
3878
3879  ;
3880  return 0;
3881}
3882_ACEOF
3883if ac_fn_c_try_compile "$LINENO"; then :
3884
3885else
3886  ac_c_werror_flag=$ac_save_c_werror_flag
3887	 CFLAGS="-g"
3888	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889/* end confdefs.h.  */
3890
3891int
3892main ()
3893{
3894
3895  ;
3896  return 0;
3897}
3898_ACEOF
3899if ac_fn_c_try_compile "$LINENO"; then :
3900  ac_cv_prog_cc_g=yes
3901fi
3902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903fi
3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905fi
3906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907   ac_c_werror_flag=$ac_save_c_werror_flag
3908fi
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3910$as_echo "$ac_cv_prog_cc_g" >&6; }
3911if test "$ac_test_CFLAGS" = set; then
3912  CFLAGS=$ac_save_CFLAGS
3913elif test $ac_cv_prog_cc_g = yes; then
3914  if test "$GCC" = yes; then
3915    CFLAGS="-g -O2"
3916  else
3917    CFLAGS="-g"
3918  fi
3919else
3920  if test "$GCC" = yes; then
3921    CFLAGS="-O2"
3922  else
3923    CFLAGS=
3924  fi
3925fi
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3927$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3928if test "${ac_cv_prog_cc_c89+set}" = set; then :
3929  $as_echo_n "(cached) " >&6
3930else
3931  ac_cv_prog_cc_c89=no
3932ac_save_CC=$CC
3933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934/* end confdefs.h.  */
3935#include <stdarg.h>
3936#include <stdio.h>
3937#include <sys/types.h>
3938#include <sys/stat.h>
3939/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3940struct buf { int x; };
3941FILE * (*rcsopen) (struct buf *, struct stat *, int);
3942static char *e (p, i)
3943     char **p;
3944     int i;
3945{
3946  return p[i];
3947}
3948static char *f (char * (*g) (char **, int), char **p, ...)
3949{
3950  char *s;
3951  va_list v;
3952  va_start (v,p);
3953  s = g (p, va_arg (v,int));
3954  va_end (v);
3955  return s;
3956}
3957
3958/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3959   function prototypes and stuff, but not '\xHH' hex character constants.
3960   These don't provoke an error unfortunately, instead are silently treated
3961   as 'x'.  The following induces an error, until -std is added to get
3962   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3963   array size at least.  It's necessary to write '\x00'==0 to get something
3964   that's true only with -std.  */
3965int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3966
3967/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3968   inside strings and character constants.  */
3969#define FOO(x) 'x'
3970int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3971
3972int test (int i, double x);
3973struct s1 {int (*f) (int a);};
3974struct s2 {int (*f) (double a);};
3975int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3976int argc;
3977char **argv;
3978int
3979main ()
3980{
3981return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3982  ;
3983  return 0;
3984}
3985_ACEOF
3986for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3987	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3988do
3989  CC="$ac_save_CC $ac_arg"
3990  if ac_fn_c_try_compile "$LINENO"; then :
3991  ac_cv_prog_cc_c89=$ac_arg
3992fi
3993rm -f core conftest.err conftest.$ac_objext
3994  test "x$ac_cv_prog_cc_c89" != "xno" && break
3995done
3996rm -f conftest.$ac_ext
3997CC=$ac_save_CC
3998
3999fi
4000# AC_CACHE_VAL
4001case "x$ac_cv_prog_cc_c89" in
4002  x)
4003    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4004$as_echo "none needed" >&6; } ;;
4005  xno)
4006    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4007$as_echo "unsupported" >&6; } ;;
4008  *)
4009    CC="$CC $ac_cv_prog_cc_c89"
4010    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4011$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4012esac
4013if test "x$ac_cv_prog_cc_c89" != xno; then :
4014
4015fi
4016
4017ac_ext=c
4018ac_cpp='$CPP $CPPFLAGS'
4019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022
4023depcc="$CC"   am_compiler_list=
4024
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4026$as_echo_n "checking dependency style of $depcc... " >&6; }
4027if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4028  $as_echo_n "(cached) " >&6
4029else
4030  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4031  # We make a subdir and do the tests there.  Otherwise we can end up
4032  # making bogus files that we don't know about and never remove.  For
4033  # instance it was reported that on HP-UX the gcc test will end up
4034  # making a dummy file named `D' -- because `-MD' means `put the output
4035  # in D'.
4036  mkdir conftest.dir
4037  # Copy depcomp to subdir because otherwise we won't find it if we're
4038  # using a relative directory.
4039  cp "$am_depcomp" conftest.dir
4040  cd conftest.dir
4041  # We will build objects and dependencies in a subdirectory because
4042  # it helps to detect inapplicable dependency modes.  For instance
4043  # both Tru64's cc and ICC support -MD to output dependencies as a
4044  # side effect of compilation, but ICC will put the dependencies in
4045  # the current directory while Tru64 will put them in the object
4046  # directory.
4047  mkdir sub
4048
4049  am_cv_CC_dependencies_compiler_type=none
4050  if test "$am_compiler_list" = ""; then
4051     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4052  fi
4053  am__universal=false
4054  case " $depcc " in #(
4055     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4056     esac
4057
4058  for depmode in $am_compiler_list; do
4059    # Setup a source with many dependencies, because some compilers
4060    # like to wrap large dependency lists on column 80 (with \), and
4061    # we should not choose a depcomp mode which is confused by this.
4062    #
4063    # We need to recreate these files for each test, as the compiler may
4064    # overwrite some of them when testing with obscure command lines.
4065    # This happens at least with the AIX C compiler.
4066    : > sub/conftest.c
4067    for i in 1 2 3 4 5 6; do
4068      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4069      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4070      # Solaris 8's {/usr,}/bin/sh.
4071      touch sub/conftst$i.h
4072    done
4073    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4074
4075    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4076    # mode.  It turns out that the SunPro C++ compiler does not properly
4077    # handle `-M -o', and we need to detect this.  Also, some Intel
4078    # versions had trouble with output in subdirs
4079    am__obj=sub/conftest.${OBJEXT-o}
4080    am__minus_obj="-o $am__obj"
4081    case $depmode in
4082    gcc)
4083      # This depmode causes a compiler race in universal mode.
4084      test "$am__universal" = false || continue
4085      ;;
4086    nosideeffect)
4087      # after this tag, mechanisms are not by side-effect, so they'll
4088      # only be used when explicitly requested
4089      if test "x$enable_dependency_tracking" = xyes; then
4090	continue
4091      else
4092	break
4093      fi
4094      ;;
4095    msvisualcpp | msvcmsys)
4096      # This compiler won't grok `-c -o', but also, the minuso test has
4097      # not run yet.  These depmodes are late enough in the game, and
4098      # so weak that their functioning should not be impacted.
4099      am__obj=conftest.${OBJEXT-o}
4100      am__minus_obj=
4101      ;;
4102    none) break ;;
4103    esac
4104    if depmode=$depmode \
4105       source=sub/conftest.c object=$am__obj \
4106       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4107       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4108         >/dev/null 2>conftest.err &&
4109       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4110       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4111       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4112       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4113      # icc doesn't choke on unknown options, it will just issue warnings
4114      # or remarks (even with -Werror).  So we grep stderr for any message
4115      # that says an option was ignored or not supported.
4116      # When given -MP, icc 7.0 and 7.1 complain thusly:
4117      #   icc: Command line warning: ignoring option '-M'; no argument required
4118      # The diagnosis changed in icc 8.0:
4119      #   icc: Command line remark: option '-MP' not supported
4120      if (grep 'ignoring option' conftest.err ||
4121          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4122        am_cv_CC_dependencies_compiler_type=$depmode
4123        break
4124      fi
4125    fi
4126  done
4127
4128  cd ..
4129  rm -rf conftest.dir
4130else
4131  am_cv_CC_dependencies_compiler_type=none
4132fi
4133
4134fi
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4136$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4137CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4138
4139 if
4140  test "x$enable_dependency_tracking" != xno \
4141  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4142  am__fastdepCC_TRUE=
4143  am__fastdepCC_FALSE='#'
4144else
4145  am__fastdepCC_TRUE='#'
4146  am__fastdepCC_FALSE=
4147fi
4148
4149
4150if test "x$CC" != xcc; then
4151  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4152$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4153else
4154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4155$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4156fi
4157set dummy $CC; ac_cc=`$as_echo "$2" |
4158		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4159if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4160  $as_echo_n "(cached) " >&6
4161else
4162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163/* end confdefs.h.  */
4164
4165int
4166main ()
4167{
4168
4169  ;
4170  return 0;
4171}
4172_ACEOF
4173# Make sure it works both with $CC and with simple cc.
4174# We do the test twice because some compilers refuse to overwrite an
4175# existing .o file with -o, though they will create one.
4176ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4177rm -f conftest2.*
4178if { { case "(($ac_try" in
4179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180  *) ac_try_echo=$ac_try;;
4181esac
4182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4183$as_echo "$ac_try_echo"; } >&5
4184  (eval "$ac_try") 2>&5
4185  ac_status=$?
4186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4187  test $ac_status = 0; } &&
4188   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190  *) ac_try_echo=$ac_try;;
4191esac
4192eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4193$as_echo "$ac_try_echo"; } >&5
4194  (eval "$ac_try") 2>&5
4195  ac_status=$?
4196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4197  test $ac_status = 0; };
4198then
4199  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4200  if test "x$CC" != xcc; then
4201    # Test first that cc exists at all.
4202    if { ac_try='cc -c conftest.$ac_ext >&5'
4203  { { case "(($ac_try" in
4204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205  *) ac_try_echo=$ac_try;;
4206esac
4207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4208$as_echo "$ac_try_echo"; } >&5
4209  (eval "$ac_try") 2>&5
4210  ac_status=$?
4211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4212  test $ac_status = 0; }; }; then
4213      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4214      rm -f conftest2.*
4215      if { { case "(($ac_try" in
4216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217  *) ac_try_echo=$ac_try;;
4218esac
4219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4220$as_echo "$ac_try_echo"; } >&5
4221  (eval "$ac_try") 2>&5
4222  ac_status=$?
4223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4224  test $ac_status = 0; } &&
4225	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227  *) ac_try_echo=$ac_try;;
4228esac
4229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4230$as_echo "$ac_try_echo"; } >&5
4231  (eval "$ac_try") 2>&5
4232  ac_status=$?
4233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4234  test $ac_status = 0; };
4235      then
4236	# cc works too.
4237	:
4238      else
4239	# cc exists but doesn't like -o.
4240	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4241      fi
4242    fi
4243  fi
4244else
4245  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4246fi
4247rm -f core conftest*
4248
4249fi
4250if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4252$as_echo "yes" >&6; }
4253else
4254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255$as_echo "no" >&6; }
4256
4257$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4258
4259fi
4260
4261enable_dlopen=yes
4262
4263
4264
4265case `pwd` in
4266  *\ * | *\	*)
4267    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4268$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4269esac
4270
4271
4272
4273macro_version='2.2.6'
4274macro_revision='1.3012'
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288ltmain="$ac_aux_dir/ltmain.sh"
4289
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4291$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4292if test "${ac_cv_path_SED+set}" = set; then :
4293  $as_echo_n "(cached) " >&6
4294else
4295            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4296     for ac_i in 1 2 3 4 5 6 7; do
4297       ac_script="$ac_script$as_nl$ac_script"
4298     done
4299     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4300     { ac_script=; unset ac_script;}
4301     if test -z "$SED"; then
4302  ac_path_SED_found=false
4303  # Loop through the user's path and test for each of PROGNAME-LIST
4304  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305for as_dir in $PATH
4306do
4307  IFS=$as_save_IFS
4308  test -z "$as_dir" && as_dir=.
4309    for ac_prog in sed gsed; do
4310    for ac_exec_ext in '' $ac_executable_extensions; do
4311      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4312      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4313# Check for GNU ac_path_SED and select it if it is found.
4314  # Check for GNU $ac_path_SED
4315case `"$ac_path_SED" --version 2>&1` in
4316*GNU*)
4317  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4318*)
4319  ac_count=0
4320  $as_echo_n 0123456789 >"conftest.in"
4321  while :
4322  do
4323    cat "conftest.in" "conftest.in" >"conftest.tmp"
4324    mv "conftest.tmp" "conftest.in"
4325    cp "conftest.in" "conftest.nl"
4326    $as_echo '' >> "conftest.nl"
4327    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4328    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4329    as_fn_arith $ac_count + 1 && ac_count=$as_val
4330    if test $ac_count -gt ${ac_path_SED_max-0}; then
4331      # Best one so far, save it but keep looking for a better one
4332      ac_cv_path_SED="$ac_path_SED"
4333      ac_path_SED_max=$ac_count
4334    fi
4335    # 10*(2^10) chars as input seems more than enough
4336    test $ac_count -gt 10 && break
4337  done
4338  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4339esac
4340
4341      $ac_path_SED_found && break 3
4342    done
4343  done
4344  done
4345IFS=$as_save_IFS
4346  if test -z "$ac_cv_path_SED"; then
4347    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4348  fi
4349else
4350  ac_cv_path_SED=$SED
4351fi
4352
4353fi
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4355$as_echo "$ac_cv_path_SED" >&6; }
4356 SED="$ac_cv_path_SED"
4357  rm -f conftest.sed
4358
4359test -z "$SED" && SED=sed
4360Xsed="$SED -e 1s/^X//"
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4373$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4374if test "${ac_cv_path_GREP+set}" = set; then :
4375  $as_echo_n "(cached) " >&6
4376else
4377  if test -z "$GREP"; then
4378  ac_path_GREP_found=false
4379  # Loop through the user's path and test for each of PROGNAME-LIST
4380  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4382do
4383  IFS=$as_save_IFS
4384  test -z "$as_dir" && as_dir=.
4385    for ac_prog in grep ggrep; do
4386    for ac_exec_ext in '' $ac_executable_extensions; do
4387      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4388      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4389# Check for GNU ac_path_GREP and select it if it is found.
4390  # Check for GNU $ac_path_GREP
4391case `"$ac_path_GREP" --version 2>&1` in
4392*GNU*)
4393  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4394*)
4395  ac_count=0
4396  $as_echo_n 0123456789 >"conftest.in"
4397  while :
4398  do
4399    cat "conftest.in" "conftest.in" >"conftest.tmp"
4400    mv "conftest.tmp" "conftest.in"
4401    cp "conftest.in" "conftest.nl"
4402    $as_echo 'GREP' >> "conftest.nl"
4403    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4404    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4405    as_fn_arith $ac_count + 1 && ac_count=$as_val
4406    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4407      # Best one so far, save it but keep looking for a better one
4408      ac_cv_path_GREP="$ac_path_GREP"
4409      ac_path_GREP_max=$ac_count
4410    fi
4411    # 10*(2^10) chars as input seems more than enough
4412    test $ac_count -gt 10 && break
4413  done
4414  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4415esac
4416
4417      $ac_path_GREP_found && break 3
4418    done
4419  done
4420  done
4421IFS=$as_save_IFS
4422  if test -z "$ac_cv_path_GREP"; then
4423    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4424  fi
4425else
4426  ac_cv_path_GREP=$GREP
4427fi
4428
4429fi
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4431$as_echo "$ac_cv_path_GREP" >&6; }
4432 GREP="$ac_cv_path_GREP"
4433
4434
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4436$as_echo_n "checking for egrep... " >&6; }
4437if test "${ac_cv_path_EGREP+set}" = set; then :
4438  $as_echo_n "(cached) " >&6
4439else
4440  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4441   then ac_cv_path_EGREP="$GREP -E"
4442   else
4443     if test -z "$EGREP"; then
4444  ac_path_EGREP_found=false
4445  # Loop through the user's path and test for each of PROGNAME-LIST
4446  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4448do
4449  IFS=$as_save_IFS
4450  test -z "$as_dir" && as_dir=.
4451    for ac_prog in egrep; do
4452    for ac_exec_ext in '' $ac_executable_extensions; do
4453      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4454      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4455# Check for GNU ac_path_EGREP and select it if it is found.
4456  # Check for GNU $ac_path_EGREP
4457case `"$ac_path_EGREP" --version 2>&1` in
4458*GNU*)
4459  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4460*)
4461  ac_count=0
4462  $as_echo_n 0123456789 >"conftest.in"
4463  while :
4464  do
4465    cat "conftest.in" "conftest.in" >"conftest.tmp"
4466    mv "conftest.tmp" "conftest.in"
4467    cp "conftest.in" "conftest.nl"
4468    $as_echo 'EGREP' >> "conftest.nl"
4469    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4470    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4471    as_fn_arith $ac_count + 1 && ac_count=$as_val
4472    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4473      # Best one so far, save it but keep looking for a better one
4474      ac_cv_path_EGREP="$ac_path_EGREP"
4475      ac_path_EGREP_max=$ac_count
4476    fi
4477    # 10*(2^10) chars as input seems more than enough
4478    test $ac_count -gt 10 && break
4479  done
4480  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4481esac
4482
4483      $ac_path_EGREP_found && break 3
4484    done
4485  done
4486  done
4487IFS=$as_save_IFS
4488  if test -z "$ac_cv_path_EGREP"; then
4489    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4490  fi
4491else
4492  ac_cv_path_EGREP=$EGREP
4493fi
4494
4495   fi
4496fi
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4498$as_echo "$ac_cv_path_EGREP" >&6; }
4499 EGREP="$ac_cv_path_EGREP"
4500
4501
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4503$as_echo_n "checking for fgrep... " >&6; }
4504if test "${ac_cv_path_FGREP+set}" = set; then :
4505  $as_echo_n "(cached) " >&6
4506else
4507  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4508   then ac_cv_path_FGREP="$GREP -F"
4509   else
4510     if test -z "$FGREP"; then
4511  ac_path_FGREP_found=false
4512  # Loop through the user's path and test for each of PROGNAME-LIST
4513  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4515do
4516  IFS=$as_save_IFS
4517  test -z "$as_dir" && as_dir=.
4518    for ac_prog in fgrep; do
4519    for ac_exec_ext in '' $ac_executable_extensions; do
4520      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4521      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4522# Check for GNU ac_path_FGREP and select it if it is found.
4523  # Check for GNU $ac_path_FGREP
4524case `"$ac_path_FGREP" --version 2>&1` in
4525*GNU*)
4526  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4527*)
4528  ac_count=0
4529  $as_echo_n 0123456789 >"conftest.in"
4530  while :
4531  do
4532    cat "conftest.in" "conftest.in" >"conftest.tmp"
4533    mv "conftest.tmp" "conftest.in"
4534    cp "conftest.in" "conftest.nl"
4535    $as_echo 'FGREP' >> "conftest.nl"
4536    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4537    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4538    as_fn_arith $ac_count + 1 && ac_count=$as_val
4539    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4540      # Best one so far, save it but keep looking for a better one
4541      ac_cv_path_FGREP="$ac_path_FGREP"
4542      ac_path_FGREP_max=$ac_count
4543    fi
4544    # 10*(2^10) chars as input seems more than enough
4545    test $ac_count -gt 10 && break
4546  done
4547  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4548esac
4549
4550      $ac_path_FGREP_found && break 3
4551    done
4552  done
4553  done
4554IFS=$as_save_IFS
4555  if test -z "$ac_cv_path_FGREP"; then
4556    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4557  fi
4558else
4559  ac_cv_path_FGREP=$FGREP
4560fi
4561
4562   fi
4563fi
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4565$as_echo "$ac_cv_path_FGREP" >&6; }
4566 FGREP="$ac_cv_path_FGREP"
4567
4568
4569test -z "$GREP" && GREP=grep
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589# Check whether --with-gnu-ld was given.
4590if test "${with_gnu_ld+set}" = set; then :
4591  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4592else
4593  with_gnu_ld=no
4594fi
4595
4596ac_prog=ld
4597if test "$GCC" = yes; then
4598  # Check if gcc -print-prog-name=ld gives a path.
4599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4600$as_echo_n "checking for ld used by $CC... " >&6; }
4601  case $host in
4602  *-*-mingw*)
4603    # gcc leaves a trailing carriage return which upsets mingw
4604    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4605  *)
4606    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4607  esac
4608  case $ac_prog in
4609    # Accept absolute paths.
4610    [\\/]* | ?:[\\/]*)
4611      re_direlt='/[^/][^/]*/\.\./'
4612      # Canonicalize the pathname of ld
4613      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4614      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4615	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4616      done
4617      test -z "$LD" && LD="$ac_prog"
4618      ;;
4619  "")
4620    # If it fails, then pretend we aren't using GCC.
4621    ac_prog=ld
4622    ;;
4623  *)
4624    # If it is relative, then search for the first ld in PATH.
4625    with_gnu_ld=unknown
4626    ;;
4627  esac
4628elif test "$with_gnu_ld" = yes; then
4629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4630$as_echo_n "checking for GNU ld... " >&6; }
4631else
4632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4633$as_echo_n "checking for non-GNU ld... " >&6; }
4634fi
4635if test "${lt_cv_path_LD+set}" = set; then :
4636  $as_echo_n "(cached) " >&6
4637else
4638  if test -z "$LD"; then
4639  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4640  for ac_dir in $PATH; do
4641    IFS="$lt_save_ifs"
4642    test -z "$ac_dir" && ac_dir=.
4643    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4644      lt_cv_path_LD="$ac_dir/$ac_prog"
4645      # Check to see if the program is GNU ld.  I'd rather use --version,
4646      # but apparently some variants of GNU ld only accept -v.
4647      # Break only if it was the GNU/non-GNU ld that we prefer.
4648      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4649      *GNU* | *'with BFD'*)
4650	test "$with_gnu_ld" != no && break
4651	;;
4652      *)
4653	test "$with_gnu_ld" != yes && break
4654	;;
4655      esac
4656    fi
4657  done
4658  IFS="$lt_save_ifs"
4659else
4660  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4661fi
4662fi
4663
4664LD="$lt_cv_path_LD"
4665if test -n "$LD"; then
4666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4667$as_echo "$LD" >&6; }
4668else
4669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670$as_echo "no" >&6; }
4671fi
4672test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4674$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4675if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4676  $as_echo_n "(cached) " >&6
4677else
4678  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4679case `$LD -v 2>&1 </dev/null` in
4680*GNU* | *'with BFD'*)
4681  lt_cv_prog_gnu_ld=yes
4682  ;;
4683*)
4684  lt_cv_prog_gnu_ld=no
4685  ;;
4686esac
4687fi
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4689$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4690with_gnu_ld=$lt_cv_prog_gnu_ld
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4701$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4702if test "${lt_cv_path_NM+set}" = set; then :
4703  $as_echo_n "(cached) " >&6
4704else
4705  if test -n "$NM"; then
4706  # Let the user override the test.
4707  lt_cv_path_NM="$NM"
4708else
4709  lt_nm_to_check="${ac_tool_prefix}nm"
4710  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4711    lt_nm_to_check="$lt_nm_to_check nm"
4712  fi
4713  for lt_tmp_nm in $lt_nm_to_check; do
4714    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4715    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4716      IFS="$lt_save_ifs"
4717      test -z "$ac_dir" && ac_dir=.
4718      tmp_nm="$ac_dir/$lt_tmp_nm"
4719      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4720	# Check to see if the nm accepts a BSD-compat flag.
4721	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4722	#   nm: unknown option "B" ignored
4723	# Tru64's nm complains that /dev/null is an invalid object file
4724	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4725	*/dev/null* | *'Invalid file or object type'*)
4726	  lt_cv_path_NM="$tmp_nm -B"
4727	  break
4728	  ;;
4729	*)
4730	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4731	  */dev/null*)
4732	    lt_cv_path_NM="$tmp_nm -p"
4733	    break
4734	    ;;
4735	  *)
4736	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4737	    continue # so that we can try to find one that supports BSD flags
4738	    ;;
4739	  esac
4740	  ;;
4741	esac
4742      fi
4743    done
4744    IFS="$lt_save_ifs"
4745  done
4746  : ${lt_cv_path_NM=no}
4747fi
4748fi
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4750$as_echo "$lt_cv_path_NM" >&6; }
4751if test "$lt_cv_path_NM" != "no"; then
4752  NM="$lt_cv_path_NM"
4753else
4754  # Didn't find any BSD compatible name lister, look for dumpbin.
4755  if test -n "$ac_tool_prefix"; then
4756  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4757  do
4758    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4759set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761$as_echo_n "checking for $ac_word... " >&6; }
4762if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4763  $as_echo_n "(cached) " >&6
4764else
4765  if test -n "$DUMPBIN"; then
4766  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4767else
4768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769for as_dir in $PATH
4770do
4771  IFS=$as_save_IFS
4772  test -z "$as_dir" && as_dir=.
4773    for ac_exec_ext in '' $ac_executable_extensions; do
4774  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777    break 2
4778  fi
4779done
4780  done
4781IFS=$as_save_IFS
4782
4783fi
4784fi
4785DUMPBIN=$ac_cv_prog_DUMPBIN
4786if test -n "$DUMPBIN"; then
4787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4788$as_echo "$DUMPBIN" >&6; }
4789else
4790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791$as_echo "no" >&6; }
4792fi
4793
4794
4795    test -n "$DUMPBIN" && break
4796  done
4797fi
4798if test -z "$DUMPBIN"; then
4799  ac_ct_DUMPBIN=$DUMPBIN
4800  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4801do
4802  # Extract the first word of "$ac_prog", so it can be a program name with args.
4803set dummy $ac_prog; ac_word=$2
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805$as_echo_n "checking for $ac_word... " >&6; }
4806if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4807  $as_echo_n "(cached) " >&6
4808else
4809  if test -n "$ac_ct_DUMPBIN"; then
4810  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4811else
4812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813for as_dir in $PATH
4814do
4815  IFS=$as_save_IFS
4816  test -z "$as_dir" && as_dir=.
4817    for ac_exec_ext in '' $ac_executable_extensions; do
4818  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821    break 2
4822  fi
4823done
4824  done
4825IFS=$as_save_IFS
4826
4827fi
4828fi
4829ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4830if test -n "$ac_ct_DUMPBIN"; then
4831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4832$as_echo "$ac_ct_DUMPBIN" >&6; }
4833else
4834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835$as_echo "no" >&6; }
4836fi
4837
4838
4839  test -n "$ac_ct_DUMPBIN" && break
4840done
4841
4842  if test "x$ac_ct_DUMPBIN" = x; then
4843    DUMPBIN=":"
4844  else
4845    case $cross_compiling:$ac_tool_warned in
4846yes:)
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4849ac_tool_warned=yes ;;
4850esac
4851    DUMPBIN=$ac_ct_DUMPBIN
4852  fi
4853fi
4854
4855
4856  if test "$DUMPBIN" != ":"; then
4857    NM="$DUMPBIN"
4858  fi
4859fi
4860test -z "$NM" && NM=nm
4861
4862
4863
4864
4865
4866
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4868$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4869if test "${lt_cv_nm_interface+set}" = set; then :
4870  $as_echo_n "(cached) " >&6
4871else
4872  lt_cv_nm_interface="BSD nm"
4873  echo "int some_variable = 0;" > conftest.$ac_ext
4874  (eval echo "\"\$as_me:4874: $ac_compile\"" >&5)
4875  (eval "$ac_compile" 2>conftest.err)
4876  cat conftest.err >&5
4877  (eval echo "\"\$as_me:4877: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4878  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4879  cat conftest.err >&5
4880  (eval echo "\"\$as_me:4880: output\"" >&5)
4881  cat conftest.out >&5
4882  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4883    lt_cv_nm_interface="MS dumpbin"
4884  fi
4885  rm -f conftest*
4886fi
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4888$as_echo "$lt_cv_nm_interface" >&6; }
4889
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4891$as_echo_n "checking whether ln -s works... " >&6; }
4892LN_S=$as_ln_s
4893if test "$LN_S" = "ln -s"; then
4894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4895$as_echo "yes" >&6; }
4896else
4897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4898$as_echo "no, using $LN_S" >&6; }
4899fi
4900
4901# find the maximum length of command line arguments
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4903$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4904if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4905  $as_echo_n "(cached) " >&6
4906else
4907    i=0
4908  teststring="ABCD"
4909
4910  case $build_os in
4911  msdosdjgpp*)
4912    # On DJGPP, this test can blow up pretty badly due to problems in libc
4913    # (any single argument exceeding 2000 bytes causes a buffer overrun
4914    # during glob expansion).  Even if it were fixed, the result of this
4915    # check would be larger than it should be.
4916    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4917    ;;
4918
4919  gnu*)
4920    # Under GNU Hurd, this test is not required because there is
4921    # no limit to the length of command line arguments.
4922    # Libtool will interpret -1 as no limit whatsoever
4923    lt_cv_sys_max_cmd_len=-1;
4924    ;;
4925
4926  cygwin* | mingw* | cegcc*)
4927    # On Win9x/ME, this test blows up -- it succeeds, but takes
4928    # about 5 minutes as the teststring grows exponentially.
4929    # Worse, since 9x/ME are not pre-emptively multitasking,
4930    # you end up with a "frozen" computer, even though with patience
4931    # the test eventually succeeds (with a max line length of 256k).
4932    # Instead, let's just punt: use the minimum linelength reported by
4933    # all of the supported platforms: 8192 (on NT/2K/XP).
4934    lt_cv_sys_max_cmd_len=8192;
4935    ;;
4936
4937  amigaos*)
4938    # On AmigaOS with pdksh, this test takes hours, literally.
4939    # So we just punt and use a minimum line length of 8192.
4940    lt_cv_sys_max_cmd_len=8192;
4941    ;;
4942
4943  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4944    # This has been around since 386BSD, at least.  Likely further.
4945    if test -x /sbin/sysctl; then
4946      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4947    elif test -x /usr/sbin/sysctl; then
4948      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4949    else
4950      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4951    fi
4952    # And add a safety zone
4953    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4954    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4955    ;;
4956
4957  interix*)
4958    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4959    lt_cv_sys_max_cmd_len=196608
4960    ;;
4961
4962  osf*)
4963    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4964    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4965    # nice to cause kernel panics so lets avoid the loop below.
4966    # First set a reasonable default.
4967    lt_cv_sys_max_cmd_len=16384
4968    #
4969    if test -x /sbin/sysconfig; then
4970      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4971        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4972      esac
4973    fi
4974    ;;
4975  sco3.2v5*)
4976    lt_cv_sys_max_cmd_len=102400
4977    ;;
4978  sysv5* | sco5v6* | sysv4.2uw2*)
4979    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4980    if test -n "$kargmax"; then
4981      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4982    else
4983      lt_cv_sys_max_cmd_len=32768
4984    fi
4985    ;;
4986  *)
4987    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4988    if test -n "$lt_cv_sys_max_cmd_len"; then
4989      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4990      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4991    else
4992      # Make teststring a little bigger before we do anything with it.
4993      # a 1K string should be a reasonable start.
4994      for i in 1 2 3 4 5 6 7 8 ; do
4995        teststring=$teststring$teststring
4996      done
4997      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4998      # If test is not a shell built-in, we'll probably end up computing a
4999      # maximum length that is only half of the actual maximum length, but
5000      # we can't tell.
5001      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5002	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5003	      test $i != 17 # 1/2 MB should be enough
5004      do
5005        i=`expr $i + 1`
5006        teststring=$teststring$teststring
5007      done
5008      # Only check the string length outside the loop.
5009      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5010      teststring=
5011      # Add a significant safety factor because C++ compilers can tack on
5012      # massive amounts of additional arguments before passing them to the
5013      # linker.  It appears as though 1/2 is a usable value.
5014      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5015    fi
5016    ;;
5017  esac
5018
5019fi
5020
5021if test -n $lt_cv_sys_max_cmd_len ; then
5022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5023$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5024else
5025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5026$as_echo "none" >&6; }
5027fi
5028max_cmd_len=$lt_cv_sys_max_cmd_len
5029
5030
5031
5032
5033
5034
5035: ${CP="cp -f"}
5036: ${MV="mv -f"}
5037: ${RM="rm -f"}
5038
5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5040$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5041# Try some XSI features
5042xsi_shell=no
5043( _lt_dummy="a/b/c"
5044  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5045      = c,a/b,, \
5046    && eval 'test $(( 1 + 1 )) -eq 2 \
5047    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5048  && xsi_shell=yes
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5050$as_echo "$xsi_shell" >&6; }
5051
5052
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5054$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5055lt_shell_append=no
5056( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5057    >/dev/null 2>&1 \
5058  && lt_shell_append=yes
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5060$as_echo "$lt_shell_append" >&6; }
5061
5062
5063if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5064  lt_unset=unset
5065else
5066  lt_unset=false
5067fi
5068
5069
5070
5071
5072
5073# test EBCDIC or ASCII
5074case `echo X|tr X '\101'` in
5075 A) # ASCII based system
5076    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5077  lt_SP2NL='tr \040 \012'
5078  lt_NL2SP='tr \015\012 \040\040'
5079  ;;
5080 *) # EBCDIC based system
5081  lt_SP2NL='tr \100 \n'
5082  lt_NL2SP='tr \r\n \100\100'
5083  ;;
5084esac
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5095$as_echo_n "checking for $LD option to reload object files... " >&6; }
5096if test "${lt_cv_ld_reload_flag+set}" = set; then :
5097  $as_echo_n "(cached) " >&6
5098else
5099  lt_cv_ld_reload_flag='-r'
5100fi
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5102$as_echo "$lt_cv_ld_reload_flag" >&6; }
5103reload_flag=$lt_cv_ld_reload_flag
5104case $reload_flag in
5105"" | " "*) ;;
5106*) reload_flag=" $reload_flag" ;;
5107esac
5108reload_cmds='$LD$reload_flag -o $output$reload_objs'
5109case $host_os in
5110  darwin*)
5111    if test "$GCC" = yes; then
5112      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5113    else
5114      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5115    fi
5116    ;;
5117esac
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127if test -n "$ac_tool_prefix"; then
5128  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5129set dummy ${ac_tool_prefix}objdump; ac_word=$2
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5131$as_echo_n "checking for $ac_word... " >&6; }
5132if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5133  $as_echo_n "(cached) " >&6
5134else
5135  if test -n "$OBJDUMP"; then
5136  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5137else
5138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139for as_dir in $PATH
5140do
5141  IFS=$as_save_IFS
5142  test -z "$as_dir" && as_dir=.
5143    for ac_exec_ext in '' $ac_executable_extensions; do
5144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5145    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147    break 2
5148  fi
5149done
5150  done
5151IFS=$as_save_IFS
5152
5153fi
5154fi
5155OBJDUMP=$ac_cv_prog_OBJDUMP
5156if test -n "$OBJDUMP"; then
5157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5158$as_echo "$OBJDUMP" >&6; }
5159else
5160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161$as_echo "no" >&6; }
5162fi
5163
5164
5165fi
5166if test -z "$ac_cv_prog_OBJDUMP"; then
5167  ac_ct_OBJDUMP=$OBJDUMP
5168  # Extract the first word of "objdump", so it can be a program name with args.
5169set dummy objdump; ac_word=$2
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171$as_echo_n "checking for $ac_word... " >&6; }
5172if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5173  $as_echo_n "(cached) " >&6
5174else
5175  if test -n "$ac_ct_OBJDUMP"; then
5176  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5177else
5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH
5180do
5181  IFS=$as_save_IFS
5182  test -z "$as_dir" && as_dir=.
5183    for ac_exec_ext in '' $ac_executable_extensions; do
5184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187    break 2
5188  fi
5189done
5190  done
5191IFS=$as_save_IFS
5192
5193fi
5194fi
5195ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5196if test -n "$ac_ct_OBJDUMP"; then
5197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5198$as_echo "$ac_ct_OBJDUMP" >&6; }
5199else
5200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201$as_echo "no" >&6; }
5202fi
5203
5204  if test "x$ac_ct_OBJDUMP" = x; then
5205    OBJDUMP="false"
5206  else
5207    case $cross_compiling:$ac_tool_warned in
5208yes:)
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5211ac_tool_warned=yes ;;
5212esac
5213    OBJDUMP=$ac_ct_OBJDUMP
5214  fi
5215else
5216  OBJDUMP="$ac_cv_prog_OBJDUMP"
5217fi
5218
5219test -z "$OBJDUMP" && OBJDUMP=objdump
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5230$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5231if test "${lt_cv_deplibs_check_method+set}" = set; then :
5232  $as_echo_n "(cached) " >&6
5233else
5234  lt_cv_file_magic_cmd='$MAGIC_CMD'
5235lt_cv_file_magic_test_file=
5236lt_cv_deplibs_check_method='unknown'
5237# Need to set the preceding variable on all platforms that support
5238# interlibrary dependencies.
5239# 'none' -- dependencies not supported.
5240# `unknown' -- same as none, but documents that we really don't know.
5241# 'pass_all' -- all dependencies passed with no checks.
5242# 'test_compile' -- check by making test program.
5243# 'file_magic [[regex]]' -- check by looking for files in library path
5244# which responds to the $file_magic_cmd with a given extended regex.
5245# If you have `file' or equivalent on your system and you're not sure
5246# whether `pass_all' will *always* work, you probably want this one.
5247
5248case $host_os in
5249aix[4-9]*)
5250  lt_cv_deplibs_check_method=pass_all
5251  ;;
5252
5253beos*)
5254  lt_cv_deplibs_check_method=pass_all
5255  ;;
5256
5257bsdi[45]*)
5258  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5259  lt_cv_file_magic_cmd='/usr/bin/file -L'
5260  lt_cv_file_magic_test_file=/shlib/libc.so
5261  ;;
5262
5263cygwin*)
5264  # func_win32_libid is a shell function defined in ltmain.sh
5265  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5266  lt_cv_file_magic_cmd='func_win32_libid'
5267  ;;
5268
5269mingw* | pw32*)
5270  # Base MSYS/MinGW do not provide the 'file' command needed by
5271  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5272  # unless we find 'file', for example because we are cross-compiling.
5273  if ( file / ) >/dev/null 2>&1; then
5274    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5275    lt_cv_file_magic_cmd='func_win32_libid'
5276  else
5277    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5278    lt_cv_file_magic_cmd='$OBJDUMP -f'
5279  fi
5280  ;;
5281
5282cegcc)
5283  # use the weaker test based on 'objdump'. See mingw*.
5284  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5285  lt_cv_file_magic_cmd='$OBJDUMP -f'
5286  ;;
5287
5288darwin* | rhapsody*)
5289  lt_cv_deplibs_check_method=pass_all
5290  ;;
5291
5292freebsd* | dragonfly*)
5293  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5294    case $host_cpu in
5295    i*86 )
5296      # Not sure whether the presence of OpenBSD here was a mistake.
5297      # Let's accept both of them until this is cleared up.
5298      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5299      lt_cv_file_magic_cmd=/usr/bin/file
5300      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5301      ;;
5302    esac
5303  else
5304    lt_cv_deplibs_check_method=pass_all
5305  fi
5306  ;;
5307
5308gnu*)
5309  lt_cv_deplibs_check_method=pass_all
5310  ;;
5311
5312hpux10.20* | hpux11*)
5313  lt_cv_file_magic_cmd=/usr/bin/file
5314  case $host_cpu in
5315  ia64*)
5316    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5317    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5318    ;;
5319  hppa*64*)
5320    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]'
5321    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5322    ;;
5323  *)
5324    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5325    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5326    ;;
5327  esac
5328  ;;
5329
5330interix[3-9]*)
5331  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5332  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5333  ;;
5334
5335irix5* | irix6* | nonstopux*)
5336  case $LD in
5337  *-32|*"-32 ") libmagic=32-bit;;
5338  *-n32|*"-n32 ") libmagic=N32;;
5339  *-64|*"-64 ") libmagic=64-bit;;
5340  *) libmagic=never-match;;
5341  esac
5342  lt_cv_deplibs_check_method=pass_all
5343  ;;
5344
5345# This must be Linux ELF.
5346linux* | k*bsd*-gnu)
5347  lt_cv_deplibs_check_method=pass_all
5348  ;;
5349
5350netbsd*)
5351  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5352    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5353  else
5354    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5355  fi
5356  ;;
5357
5358newos6*)
5359  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5360  lt_cv_file_magic_cmd=/usr/bin/file
5361  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5362  ;;
5363
5364*nto* | *qnx*)
5365  lt_cv_deplibs_check_method=pass_all
5366  ;;
5367
5368openbsd*)
5369  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5370    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5371  else
5372    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5373  fi
5374  ;;
5375
5376osf3* | osf4* | osf5*)
5377  lt_cv_deplibs_check_method=pass_all
5378  ;;
5379
5380rdos*)
5381  lt_cv_deplibs_check_method=pass_all
5382  ;;
5383
5384solaris*)
5385  lt_cv_deplibs_check_method=pass_all
5386  ;;
5387
5388sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5389  lt_cv_deplibs_check_method=pass_all
5390  ;;
5391
5392sysv4 | sysv4.3*)
5393  case $host_vendor in
5394  motorola)
5395    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]'
5396    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5397    ;;
5398  ncr)
5399    lt_cv_deplibs_check_method=pass_all
5400    ;;
5401  sequent)
5402    lt_cv_file_magic_cmd='/bin/file'
5403    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5404    ;;
5405  sni)
5406    lt_cv_file_magic_cmd='/bin/file'
5407    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5408    lt_cv_file_magic_test_file=/lib/libc.so
5409    ;;
5410  siemens)
5411    lt_cv_deplibs_check_method=pass_all
5412    ;;
5413  pc)
5414    lt_cv_deplibs_check_method=pass_all
5415    ;;
5416  esac
5417  ;;
5418
5419tpf*)
5420  lt_cv_deplibs_check_method=pass_all
5421  ;;
5422esac
5423
5424fi
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5426$as_echo "$lt_cv_deplibs_check_method" >&6; }
5427file_magic_cmd=$lt_cv_file_magic_cmd
5428deplibs_check_method=$lt_cv_deplibs_check_method
5429test -z "$deplibs_check_method" && deplibs_check_method=unknown
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442if test -n "$ac_tool_prefix"; then
5443  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5444set dummy ${ac_tool_prefix}ar; ac_word=$2
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5446$as_echo_n "checking for $ac_word... " >&6; }
5447if test "${ac_cv_prog_AR+set}" = set; then :
5448  $as_echo_n "(cached) " >&6
5449else
5450  if test -n "$AR"; then
5451  ac_cv_prog_AR="$AR" # Let the user override the test.
5452else
5453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454for as_dir in $PATH
5455do
5456  IFS=$as_save_IFS
5457  test -z "$as_dir" && as_dir=.
5458    for ac_exec_ext in '' $ac_executable_extensions; do
5459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5460    ac_cv_prog_AR="${ac_tool_prefix}ar"
5461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462    break 2
5463  fi
5464done
5465  done
5466IFS=$as_save_IFS
5467
5468fi
5469fi
5470AR=$ac_cv_prog_AR
5471if test -n "$AR"; then
5472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5473$as_echo "$AR" >&6; }
5474else
5475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476$as_echo "no" >&6; }
5477fi
5478
5479
5480fi
5481if test -z "$ac_cv_prog_AR"; then
5482  ac_ct_AR=$AR
5483  # Extract the first word of "ar", so it can be a program name with args.
5484set dummy ar; ac_word=$2
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486$as_echo_n "checking for $ac_word... " >&6; }
5487if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5488  $as_echo_n "(cached) " >&6
5489else
5490  if test -n "$ac_ct_AR"; then
5491  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5492else
5493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496  IFS=$as_save_IFS
5497  test -z "$as_dir" && as_dir=.
5498    for ac_exec_ext in '' $ac_executable_extensions; do
5499  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5500    ac_cv_prog_ac_ct_AR="ar"
5501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502    break 2
5503  fi
5504done
5505  done
5506IFS=$as_save_IFS
5507
5508fi
5509fi
5510ac_ct_AR=$ac_cv_prog_ac_ct_AR
5511if test -n "$ac_ct_AR"; then
5512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5513$as_echo "$ac_ct_AR" >&6; }
5514else
5515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516$as_echo "no" >&6; }
5517fi
5518
5519  if test "x$ac_ct_AR" = x; then
5520    AR="false"
5521  else
5522    case $cross_compiling:$ac_tool_warned in
5523yes:)
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5526ac_tool_warned=yes ;;
5527esac
5528    AR=$ac_ct_AR
5529  fi
5530else
5531  AR="$ac_cv_prog_AR"
5532fi
5533
5534test -z "$AR" && AR=ar
5535test -z "$AR_FLAGS" && AR_FLAGS=cru
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547if test -n "$ac_tool_prefix"; then
5548  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5549set dummy ${ac_tool_prefix}strip; ac_word=$2
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5551$as_echo_n "checking for $ac_word... " >&6; }
5552if test "${ac_cv_prog_STRIP+set}" = set; then :
5553  $as_echo_n "(cached) " >&6
5554else
5555  if test -n "$STRIP"; then
5556  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5557else
5558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559for as_dir in $PATH
5560do
5561  IFS=$as_save_IFS
5562  test -z "$as_dir" && as_dir=.
5563    for ac_exec_ext in '' $ac_executable_extensions; do
5564  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5565    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5567    break 2
5568  fi
5569done
5570  done
5571IFS=$as_save_IFS
5572
5573fi
5574fi
5575STRIP=$ac_cv_prog_STRIP
5576if test -n "$STRIP"; then
5577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5578$as_echo "$STRIP" >&6; }
5579else
5580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5581$as_echo "no" >&6; }
5582fi
5583
5584
5585fi
5586if test -z "$ac_cv_prog_STRIP"; then
5587  ac_ct_STRIP=$STRIP
5588  # Extract the first word of "strip", so it can be a program name with args.
5589set dummy strip; ac_word=$2
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591$as_echo_n "checking for $ac_word... " >&6; }
5592if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5593  $as_echo_n "(cached) " >&6
5594else
5595  if test -n "$ac_ct_STRIP"; then
5596  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5597else
5598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599for as_dir in $PATH
5600do
5601  IFS=$as_save_IFS
5602  test -z "$as_dir" && as_dir=.
5603    for ac_exec_ext in '' $ac_executable_extensions; do
5604  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5605    ac_cv_prog_ac_ct_STRIP="strip"
5606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607    break 2
5608  fi
5609done
5610  done
5611IFS=$as_save_IFS
5612
5613fi
5614fi
5615ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5616if test -n "$ac_ct_STRIP"; then
5617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5618$as_echo "$ac_ct_STRIP" >&6; }
5619else
5620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621$as_echo "no" >&6; }
5622fi
5623
5624  if test "x$ac_ct_STRIP" = x; then
5625    STRIP=":"
5626  else
5627    case $cross_compiling:$ac_tool_warned in
5628yes:)
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5631ac_tool_warned=yes ;;
5632esac
5633    STRIP=$ac_ct_STRIP
5634  fi
5635else
5636  STRIP="$ac_cv_prog_STRIP"
5637fi
5638
5639test -z "$STRIP" && STRIP=:
5640
5641
5642
5643
5644
5645
5646if test -n "$ac_tool_prefix"; then
5647  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5648set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650$as_echo_n "checking for $ac_word... " >&6; }
5651if test "${ac_cv_prog_RANLIB+set}" = set; then :
5652  $as_echo_n "(cached) " >&6
5653else
5654  if test -n "$RANLIB"; then
5655  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5656else
5657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658for as_dir in $PATH
5659do
5660  IFS=$as_save_IFS
5661  test -z "$as_dir" && as_dir=.
5662    for ac_exec_ext in '' $ac_executable_extensions; do
5663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666    break 2
5667  fi
5668done
5669  done
5670IFS=$as_save_IFS
5671
5672fi
5673fi
5674RANLIB=$ac_cv_prog_RANLIB
5675if test -n "$RANLIB"; then
5676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5677$as_echo "$RANLIB" >&6; }
5678else
5679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680$as_echo "no" >&6; }
5681fi
5682
5683
5684fi
5685if test -z "$ac_cv_prog_RANLIB"; then
5686  ac_ct_RANLIB=$RANLIB
5687  # Extract the first word of "ranlib", so it can be a program name with args.
5688set dummy ranlib; ac_word=$2
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690$as_echo_n "checking for $ac_word... " >&6; }
5691if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5692  $as_echo_n "(cached) " >&6
5693else
5694  if test -n "$ac_ct_RANLIB"; then
5695  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5696else
5697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698for as_dir in $PATH
5699do
5700  IFS=$as_save_IFS
5701  test -z "$as_dir" && as_dir=.
5702    for ac_exec_ext in '' $ac_executable_extensions; do
5703  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5704    ac_cv_prog_ac_ct_RANLIB="ranlib"
5705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706    break 2
5707  fi
5708done
5709  done
5710IFS=$as_save_IFS
5711
5712fi
5713fi
5714ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5715if test -n "$ac_ct_RANLIB"; then
5716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5717$as_echo "$ac_ct_RANLIB" >&6; }
5718else
5719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720$as_echo "no" >&6; }
5721fi
5722
5723  if test "x$ac_ct_RANLIB" = x; then
5724    RANLIB=":"
5725  else
5726    case $cross_compiling:$ac_tool_warned in
5727yes:)
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5730ac_tool_warned=yes ;;
5731esac
5732    RANLIB=$ac_ct_RANLIB
5733  fi
5734else
5735  RANLIB="$ac_cv_prog_RANLIB"
5736fi
5737
5738test -z "$RANLIB" && RANLIB=:
5739
5740
5741
5742
5743
5744
5745# Determine commands to create old-style static archives.
5746old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5747old_postinstall_cmds='chmod 644 $oldlib'
5748old_postuninstall_cmds=
5749
5750if test -n "$RANLIB"; then
5751  case $host_os in
5752  openbsd*)
5753    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5754    ;;
5755  *)
5756    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5757    ;;
5758  esac
5759  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5760fi
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795# If no C compiler was specified, use CC.
5796LTCC=${LTCC-"$CC"}
5797
5798# If no C compiler flags were specified, use CFLAGS.
5799LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5800
5801# Allow CC to be a program name with arguments.
5802compiler=$CC
5803
5804
5805# Check for command to grab the raw symbol name followed by C symbol from nm.
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5807$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5808if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5809  $as_echo_n "(cached) " >&6
5810else
5811
5812# These are sane defaults that work on at least a few old systems.
5813# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5814
5815# Character class describing NM global symbol codes.
5816symcode='[BCDEGRST]'
5817
5818# Regexp to match symbols that can be accessed directly from C.
5819sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5820
5821# Define system-specific variables.
5822case $host_os in
5823aix*)
5824  symcode='[BCDT]'
5825  ;;
5826cygwin* | mingw* | pw32* | cegcc*)
5827  symcode='[ABCDGISTW]'
5828  ;;
5829hpux*)
5830  if test "$host_cpu" = ia64; then
5831    symcode='[ABCDEGRST]'
5832  fi
5833  ;;
5834irix* | nonstopux*)
5835  symcode='[BCDEGRST]'
5836  ;;
5837osf*)
5838  symcode='[BCDEGQRST]'
5839  ;;
5840solaris*)
5841  symcode='[BDRT]'
5842  ;;
5843sco3.2v5*)
5844  symcode='[DT]'
5845  ;;
5846sysv4.2uw2*)
5847  symcode='[DT]'
5848  ;;
5849sysv5* | sco5v6* | unixware* | OpenUNIX*)
5850  symcode='[ABDT]'
5851  ;;
5852sysv4)
5853  symcode='[DFNSTU]'
5854  ;;
5855esac
5856
5857# If we're using GNU nm, then use its standard symbol codes.
5858case `$NM -V 2>&1` in
5859*GNU* | *'with BFD'*)
5860  symcode='[ABCDGIRSTW]' ;;
5861esac
5862
5863# Transform an extracted symbol line into a proper C declaration.
5864# Some systems (esp. on ia64) link data and code symbols differently,
5865# so use this general approach.
5866lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5867
5868# Transform an extracted symbol line into symbol name and symbol address
5869lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5870lt_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'"
5871
5872# Handle CRLF in mingw tool chain
5873opt_cr=
5874case $build_os in
5875mingw*)
5876  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5877  ;;
5878esac
5879
5880# Try without a prefix underscore, then with it.
5881for ac_symprfx in "" "_"; do
5882
5883  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5884  symxfrm="\\1 $ac_symprfx\\2 \\2"
5885
5886  # Write the raw and C identifiers.
5887  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5888    # Fake it for dumpbin and say T for any non-static function
5889    # and D for any global variable.
5890    # Also find C++ and __fastcall symbols from MSVC++,
5891    # which start with @ or ?.
5892    lt_cv_sys_global_symbol_pipe="$AWK '"\
5893"     {last_section=section; section=\$ 3};"\
5894"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5895"     \$ 0!~/External *\|/{next};"\
5896"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5897"     {if(hide[section]) next};"\
5898"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5899"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5900"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5901"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5902"     ' prfx=^$ac_symprfx"
5903  else
5904    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5905  fi
5906
5907  # Check to see that the pipe works correctly.
5908  pipe_works=no
5909
5910  rm -f conftest*
5911  cat > conftest.$ac_ext <<_LT_EOF
5912#ifdef __cplusplus
5913extern "C" {
5914#endif
5915char nm_test_var;
5916void nm_test_func(void);
5917void nm_test_func(void){}
5918#ifdef __cplusplus
5919}
5920#endif
5921int main(){nm_test_var='a';nm_test_func();return(0);}
5922_LT_EOF
5923
5924  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5925  (eval $ac_compile) 2>&5
5926  ac_status=$?
5927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5928  test $ac_status = 0; }; then
5929    # Now try to grab the symbols.
5930    nlist=conftest.nm
5931    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5932  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5933  ac_status=$?
5934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5935  test $ac_status = 0; } && test -s "$nlist"; then
5936      # Try sorting and uniquifying the output.
5937      if sort "$nlist" | uniq > "$nlist"T; then
5938	mv -f "$nlist"T "$nlist"
5939      else
5940	rm -f "$nlist"T
5941      fi
5942
5943      # Make sure that we snagged all the symbols we need.
5944      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5945	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5946	  cat <<_LT_EOF > conftest.$ac_ext
5947#ifdef __cplusplus
5948extern "C" {
5949#endif
5950
5951_LT_EOF
5952	  # Now generate the symbol file.
5953	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5954
5955	  cat <<_LT_EOF >> conftest.$ac_ext
5956
5957/* The mapping between symbol names and symbols.  */
5958const struct {
5959  const char *name;
5960  void       *address;
5961}
5962lt__PROGRAM__LTX_preloaded_symbols[] =
5963{
5964  { "@PROGRAM@", (void *) 0 },
5965_LT_EOF
5966	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5967	  cat <<\_LT_EOF >> conftest.$ac_ext
5968  {0, (void *) 0}
5969};
5970
5971/* This works around a problem in FreeBSD linker */
5972#ifdef FREEBSD_WORKAROUND
5973static const void *lt_preloaded_setup() {
5974  return lt__PROGRAM__LTX_preloaded_symbols;
5975}
5976#endif
5977
5978#ifdef __cplusplus
5979}
5980#endif
5981_LT_EOF
5982	  # Now try linking the two files.
5983	  mv conftest.$ac_objext conftstm.$ac_objext
5984	  lt_save_LIBS="$LIBS"
5985	  lt_save_CFLAGS="$CFLAGS"
5986	  LIBS="conftstm.$ac_objext"
5987	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5988	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5989  (eval $ac_link) 2>&5
5990  ac_status=$?
5991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5992  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5993	    pipe_works=yes
5994	  fi
5995	  LIBS="$lt_save_LIBS"
5996	  CFLAGS="$lt_save_CFLAGS"
5997	else
5998	  echo "cannot find nm_test_func in $nlist" >&5
5999	fi
6000      else
6001	echo "cannot find nm_test_var in $nlist" >&5
6002      fi
6003    else
6004      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6005    fi
6006  else
6007    echo "$progname: failed program was:" >&5
6008    cat conftest.$ac_ext >&5
6009  fi
6010  rm -rf conftest* conftst*
6011
6012  # Do not use the global_symbol_pipe unless it works.
6013  if test "$pipe_works" = yes; then
6014    break
6015  else
6016    lt_cv_sys_global_symbol_pipe=
6017  fi
6018done
6019
6020fi
6021
6022if test -z "$lt_cv_sys_global_symbol_pipe"; then
6023  lt_cv_sys_global_symbol_to_cdecl=
6024fi
6025if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6027$as_echo "failed" >&6; }
6028else
6029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6030$as_echo "ok" >&6; }
6031fi
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055# Check whether --enable-libtool-lock was given.
6056if test "${enable_libtool_lock+set}" = set; then :
6057  enableval=$enable_libtool_lock;
6058fi
6059
6060test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6061
6062# Some flags need to be propagated to the compiler or linker for good
6063# libtool support.
6064case $host in
6065ia64-*-hpux*)
6066  # Find out which ABI we are using.
6067  echo 'int i;' > conftest.$ac_ext
6068  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6069  (eval $ac_compile) 2>&5
6070  ac_status=$?
6071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6072  test $ac_status = 0; }; then
6073    case `/usr/bin/file conftest.$ac_objext` in
6074      *ELF-32*)
6075	HPUX_IA64_MODE="32"
6076	;;
6077      *ELF-64*)
6078	HPUX_IA64_MODE="64"
6079	;;
6080    esac
6081  fi
6082  rm -rf conftest*
6083  ;;
6084*-*-irix6*)
6085  # Find out which ABI we are using.
6086  echo '#line 6086 "configure"' > conftest.$ac_ext
6087  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6088  (eval $ac_compile) 2>&5
6089  ac_status=$?
6090  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6091  test $ac_status = 0; }; then
6092    if test "$lt_cv_prog_gnu_ld" = yes; then
6093      case `/usr/bin/file conftest.$ac_objext` in
6094	*32-bit*)
6095	  LD="${LD-ld} -melf32bsmip"
6096	  ;;
6097	*N32*)
6098	  LD="${LD-ld} -melf32bmipn32"
6099	  ;;
6100	*64-bit*)
6101	  LD="${LD-ld} -melf64bmip"
6102	;;
6103      esac
6104    else
6105      case `/usr/bin/file conftest.$ac_objext` in
6106	*32-bit*)
6107	  LD="${LD-ld} -32"
6108	  ;;
6109	*N32*)
6110	  LD="${LD-ld} -n32"
6111	  ;;
6112	*64-bit*)
6113	  LD="${LD-ld} -64"
6114	  ;;
6115      esac
6116    fi
6117  fi
6118  rm -rf conftest*
6119  ;;
6120
6121x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6122s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6123  # Find out which ABI we are using.
6124  echo 'int i;' > conftest.$ac_ext
6125  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6126  (eval $ac_compile) 2>&5
6127  ac_status=$?
6128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6129  test $ac_status = 0; }; then
6130    case `/usr/bin/file conftest.o` in
6131      *32-bit*)
6132	case $host in
6133	  x86_64-*kfreebsd*-gnu)
6134	    LD="${LD-ld} -m elf_i386_fbsd"
6135	    ;;
6136	  x86_64-*linux*)
6137	    LD="${LD-ld} -m elf_i386"
6138	    ;;
6139	  ppc64-*linux*|powerpc64-*linux*)
6140	    LD="${LD-ld} -m elf32ppclinux"
6141	    ;;
6142	  s390x-*linux*)
6143	    LD="${LD-ld} -m elf_s390"
6144	    ;;
6145	  sparc64-*linux*)
6146	    LD="${LD-ld} -m elf32_sparc"
6147	    ;;
6148	esac
6149	;;
6150      *64-bit*)
6151	case $host in
6152	  x86_64-*kfreebsd*-gnu)
6153	    LD="${LD-ld} -m elf_x86_64_fbsd"
6154	    ;;
6155	  x86_64-*linux*)
6156	    LD="${LD-ld} -m elf_x86_64"
6157	    ;;
6158	  ppc*-*linux*|powerpc*-*linux*)
6159	    LD="${LD-ld} -m elf64ppc"
6160	    ;;
6161	  s390*-*linux*|s390*-*tpf*)
6162	    LD="${LD-ld} -m elf64_s390"
6163	    ;;
6164	  sparc*-*linux*)
6165	    LD="${LD-ld} -m elf64_sparc"
6166	    ;;
6167	esac
6168	;;
6169    esac
6170  fi
6171  rm -rf conftest*
6172  ;;
6173
6174*-*-sco3.2v5*)
6175  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6176  SAVE_CFLAGS="$CFLAGS"
6177  CFLAGS="$CFLAGS -belf"
6178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6179$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6180if test "${lt_cv_cc_needs_belf+set}" = set; then :
6181  $as_echo_n "(cached) " >&6
6182else
6183  ac_ext=c
6184ac_cpp='$CPP $CPPFLAGS'
6185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6187ac_compiler_gnu=$ac_cv_c_compiler_gnu
6188
6189     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190/* end confdefs.h.  */
6191
6192int
6193main ()
6194{
6195
6196  ;
6197  return 0;
6198}
6199_ACEOF
6200if ac_fn_c_try_link "$LINENO"; then :
6201  lt_cv_cc_needs_belf=yes
6202else
6203  lt_cv_cc_needs_belf=no
6204fi
6205rm -f core conftest.err conftest.$ac_objext \
6206    conftest$ac_exeext conftest.$ac_ext
6207     ac_ext=c
6208ac_cpp='$CPP $CPPFLAGS'
6209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211ac_compiler_gnu=$ac_cv_c_compiler_gnu
6212
6213fi
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6215$as_echo "$lt_cv_cc_needs_belf" >&6; }
6216  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6217    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6218    CFLAGS="$SAVE_CFLAGS"
6219  fi
6220  ;;
6221sparc*-*solaris*)
6222  # Find out which ABI we are using.
6223  echo 'int i;' > conftest.$ac_ext
6224  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6225  (eval $ac_compile) 2>&5
6226  ac_status=$?
6227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6228  test $ac_status = 0; }; then
6229    case `/usr/bin/file conftest.o` in
6230    *64-bit*)
6231      case $lt_cv_prog_gnu_ld in
6232      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6233      *)
6234	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6235	  LD="${LD-ld} -64"
6236	fi
6237	;;
6238      esac
6239      ;;
6240    esac
6241  fi
6242  rm -rf conftest*
6243  ;;
6244esac
6245
6246need_locks="$enable_libtool_lock"
6247
6248
6249  case $host_os in
6250    rhapsody* | darwin*)
6251    if test -n "$ac_tool_prefix"; then
6252  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6253set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255$as_echo_n "checking for $ac_word... " >&6; }
6256if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6257  $as_echo_n "(cached) " >&6
6258else
6259  if test -n "$DSYMUTIL"; then
6260  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6261else
6262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263for as_dir in $PATH
6264do
6265  IFS=$as_save_IFS
6266  test -z "$as_dir" && as_dir=.
6267    for ac_exec_ext in '' $ac_executable_extensions; do
6268  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271    break 2
6272  fi
6273done
6274  done
6275IFS=$as_save_IFS
6276
6277fi
6278fi
6279DSYMUTIL=$ac_cv_prog_DSYMUTIL
6280if test -n "$DSYMUTIL"; then
6281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6282$as_echo "$DSYMUTIL" >&6; }
6283else
6284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285$as_echo "no" >&6; }
6286fi
6287
6288
6289fi
6290if test -z "$ac_cv_prog_DSYMUTIL"; then
6291  ac_ct_DSYMUTIL=$DSYMUTIL
6292  # Extract the first word of "dsymutil", so it can be a program name with args.
6293set dummy dsymutil; ac_word=$2
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295$as_echo_n "checking for $ac_word... " >&6; }
6296if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6297  $as_echo_n "(cached) " >&6
6298else
6299  if test -n "$ac_ct_DSYMUTIL"; then
6300  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6301else
6302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303for as_dir in $PATH
6304do
6305  IFS=$as_save_IFS
6306  test -z "$as_dir" && as_dir=.
6307    for ac_exec_ext in '' $ac_executable_extensions; do
6308  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6309    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311    break 2
6312  fi
6313done
6314  done
6315IFS=$as_save_IFS
6316
6317fi
6318fi
6319ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6320if test -n "$ac_ct_DSYMUTIL"; then
6321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6322$as_echo "$ac_ct_DSYMUTIL" >&6; }
6323else
6324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325$as_echo "no" >&6; }
6326fi
6327
6328  if test "x$ac_ct_DSYMUTIL" = x; then
6329    DSYMUTIL=":"
6330  else
6331    case $cross_compiling:$ac_tool_warned in
6332yes:)
6333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6335ac_tool_warned=yes ;;
6336esac
6337    DSYMUTIL=$ac_ct_DSYMUTIL
6338  fi
6339else
6340  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6341fi
6342
6343    if test -n "$ac_tool_prefix"; then
6344  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6345set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347$as_echo_n "checking for $ac_word... " >&6; }
6348if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6349  $as_echo_n "(cached) " >&6
6350else
6351  if test -n "$NMEDIT"; then
6352  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6353else
6354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355for as_dir in $PATH
6356do
6357  IFS=$as_save_IFS
6358  test -z "$as_dir" && as_dir=.
6359    for ac_exec_ext in '' $ac_executable_extensions; do
6360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363    break 2
6364  fi
6365done
6366  done
6367IFS=$as_save_IFS
6368
6369fi
6370fi
6371NMEDIT=$ac_cv_prog_NMEDIT
6372if test -n "$NMEDIT"; then
6373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6374$as_echo "$NMEDIT" >&6; }
6375else
6376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377$as_echo "no" >&6; }
6378fi
6379
6380
6381fi
6382if test -z "$ac_cv_prog_NMEDIT"; then
6383  ac_ct_NMEDIT=$NMEDIT
6384  # Extract the first word of "nmedit", so it can be a program name with args.
6385set dummy nmedit; ac_word=$2
6386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387$as_echo_n "checking for $ac_word... " >&6; }
6388if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6389  $as_echo_n "(cached) " >&6
6390else
6391  if test -n "$ac_ct_NMEDIT"; then
6392  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6393else
6394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395for as_dir in $PATH
6396do
6397  IFS=$as_save_IFS
6398  test -z "$as_dir" && as_dir=.
6399    for ac_exec_ext in '' $ac_executable_extensions; do
6400  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403    break 2
6404  fi
6405done
6406  done
6407IFS=$as_save_IFS
6408
6409fi
6410fi
6411ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6412if test -n "$ac_ct_NMEDIT"; then
6413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6414$as_echo "$ac_ct_NMEDIT" >&6; }
6415else
6416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417$as_echo "no" >&6; }
6418fi
6419
6420  if test "x$ac_ct_NMEDIT" = x; then
6421    NMEDIT=":"
6422  else
6423    case $cross_compiling:$ac_tool_warned in
6424yes:)
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427ac_tool_warned=yes ;;
6428esac
6429    NMEDIT=$ac_ct_NMEDIT
6430  fi
6431else
6432  NMEDIT="$ac_cv_prog_NMEDIT"
6433fi
6434
6435    if test -n "$ac_tool_prefix"; then
6436  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6437set dummy ${ac_tool_prefix}lipo; ac_word=$2
6438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439$as_echo_n "checking for $ac_word... " >&6; }
6440if test "${ac_cv_prog_LIPO+set}" = set; then :
6441  $as_echo_n "(cached) " >&6
6442else
6443  if test -n "$LIPO"; then
6444  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6445else
6446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447for as_dir in $PATH
6448do
6449  IFS=$as_save_IFS
6450  test -z "$as_dir" && as_dir=.
6451    for ac_exec_ext in '' $ac_executable_extensions; do
6452  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455    break 2
6456  fi
6457done
6458  done
6459IFS=$as_save_IFS
6460
6461fi
6462fi
6463LIPO=$ac_cv_prog_LIPO
6464if test -n "$LIPO"; then
6465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6466$as_echo "$LIPO" >&6; }
6467else
6468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469$as_echo "no" >&6; }
6470fi
6471
6472
6473fi
6474if test -z "$ac_cv_prog_LIPO"; then
6475  ac_ct_LIPO=$LIPO
6476  # Extract the first word of "lipo", so it can be a program name with args.
6477set dummy lipo; ac_word=$2
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479$as_echo_n "checking for $ac_word... " >&6; }
6480if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6481  $as_echo_n "(cached) " >&6
6482else
6483  if test -n "$ac_ct_LIPO"; then
6484  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6485else
6486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487for as_dir in $PATH
6488do
6489  IFS=$as_save_IFS
6490  test -z "$as_dir" && as_dir=.
6491    for ac_exec_ext in '' $ac_executable_extensions; do
6492  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493    ac_cv_prog_ac_ct_LIPO="lipo"
6494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495    break 2
6496  fi
6497done
6498  done
6499IFS=$as_save_IFS
6500
6501fi
6502fi
6503ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6504if test -n "$ac_ct_LIPO"; then
6505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6506$as_echo "$ac_ct_LIPO" >&6; }
6507else
6508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509$as_echo "no" >&6; }
6510fi
6511
6512  if test "x$ac_ct_LIPO" = x; then
6513    LIPO=":"
6514  else
6515    case $cross_compiling:$ac_tool_warned in
6516yes:)
6517{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6518$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6519ac_tool_warned=yes ;;
6520esac
6521    LIPO=$ac_ct_LIPO
6522  fi
6523else
6524  LIPO="$ac_cv_prog_LIPO"
6525fi
6526
6527    if test -n "$ac_tool_prefix"; then
6528  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6529set dummy ${ac_tool_prefix}otool; ac_word=$2
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531$as_echo_n "checking for $ac_word... " >&6; }
6532if test "${ac_cv_prog_OTOOL+set}" = set; then :
6533  $as_echo_n "(cached) " >&6
6534else
6535  if test -n "$OTOOL"; then
6536  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541  IFS=$as_save_IFS
6542  test -z "$as_dir" && as_dir=.
6543    for ac_exec_ext in '' $ac_executable_extensions; do
6544  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6545    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547    break 2
6548  fi
6549done
6550  done
6551IFS=$as_save_IFS
6552
6553fi
6554fi
6555OTOOL=$ac_cv_prog_OTOOL
6556if test -n "$OTOOL"; then
6557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6558$as_echo "$OTOOL" >&6; }
6559else
6560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561$as_echo "no" >&6; }
6562fi
6563
6564
6565fi
6566if test -z "$ac_cv_prog_OTOOL"; then
6567  ac_ct_OTOOL=$OTOOL
6568  # Extract the first word of "otool", so it can be a program name with args.
6569set dummy otool; ac_word=$2
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571$as_echo_n "checking for $ac_word... " >&6; }
6572if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6573  $as_echo_n "(cached) " >&6
6574else
6575  if test -n "$ac_ct_OTOOL"; then
6576  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6577else
6578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579for as_dir in $PATH
6580do
6581  IFS=$as_save_IFS
6582  test -z "$as_dir" && as_dir=.
6583    for ac_exec_ext in '' $ac_executable_extensions; do
6584  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585    ac_cv_prog_ac_ct_OTOOL="otool"
6586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587    break 2
6588  fi
6589done
6590  done
6591IFS=$as_save_IFS
6592
6593fi
6594fi
6595ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6596if test -n "$ac_ct_OTOOL"; then
6597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6598$as_echo "$ac_ct_OTOOL" >&6; }
6599else
6600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601$as_echo "no" >&6; }
6602fi
6603
6604  if test "x$ac_ct_OTOOL" = x; then
6605    OTOOL=":"
6606  else
6607    case $cross_compiling:$ac_tool_warned in
6608yes:)
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6611ac_tool_warned=yes ;;
6612esac
6613    OTOOL=$ac_ct_OTOOL
6614  fi
6615else
6616  OTOOL="$ac_cv_prog_OTOOL"
6617fi
6618
6619    if test -n "$ac_tool_prefix"; then
6620  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6621set dummy ${ac_tool_prefix}otool64; ac_word=$2
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623$as_echo_n "checking for $ac_word... " >&6; }
6624if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6625  $as_echo_n "(cached) " >&6
6626else
6627  if test -n "$OTOOL64"; then
6628  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6629else
6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631for as_dir in $PATH
6632do
6633  IFS=$as_save_IFS
6634  test -z "$as_dir" && as_dir=.
6635    for ac_exec_ext in '' $ac_executable_extensions; do
6636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639    break 2
6640  fi
6641done
6642  done
6643IFS=$as_save_IFS
6644
6645fi
6646fi
6647OTOOL64=$ac_cv_prog_OTOOL64
6648if test -n "$OTOOL64"; then
6649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6650$as_echo "$OTOOL64" >&6; }
6651else
6652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653$as_echo "no" >&6; }
6654fi
6655
6656
6657fi
6658if test -z "$ac_cv_prog_OTOOL64"; then
6659  ac_ct_OTOOL64=$OTOOL64
6660  # Extract the first word of "otool64", so it can be a program name with args.
6661set dummy otool64; ac_word=$2
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663$as_echo_n "checking for $ac_word... " >&6; }
6664if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6665  $as_echo_n "(cached) " >&6
6666else
6667  if test -n "$ac_ct_OTOOL64"; then
6668  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6669else
6670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671for as_dir in $PATH
6672do
6673  IFS=$as_save_IFS
6674  test -z "$as_dir" && as_dir=.
6675    for ac_exec_ext in '' $ac_executable_extensions; do
6676  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677    ac_cv_prog_ac_ct_OTOOL64="otool64"
6678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679    break 2
6680  fi
6681done
6682  done
6683IFS=$as_save_IFS
6684
6685fi
6686fi
6687ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6688if test -n "$ac_ct_OTOOL64"; then
6689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6690$as_echo "$ac_ct_OTOOL64" >&6; }
6691else
6692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693$as_echo "no" >&6; }
6694fi
6695
6696  if test "x$ac_ct_OTOOL64" = x; then
6697    OTOOL64=":"
6698  else
6699    case $cross_compiling:$ac_tool_warned in
6700yes:)
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6703ac_tool_warned=yes ;;
6704esac
6705    OTOOL64=$ac_ct_OTOOL64
6706  fi
6707else
6708  OTOOL64="$ac_cv_prog_OTOOL64"
6709fi
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6738$as_echo_n "checking for -single_module linker flag... " >&6; }
6739if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6740  $as_echo_n "(cached) " >&6
6741else
6742  lt_cv_apple_cc_single_mod=no
6743      if test -z "${LT_MULTI_MODULE}"; then
6744	# By default we will add the -single_module flag. You can override
6745	# by either setting the environment variable LT_MULTI_MODULE
6746	# non-empty at configure time, or by adding -multi_module to the
6747	# link flags.
6748	rm -rf libconftest.dylib*
6749	echo "int foo(void){return 1;}" > conftest.c
6750	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6751-dynamiclib -Wl,-single_module conftest.c" >&5
6752	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6753	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6754        _lt_result=$?
6755	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6756	  lt_cv_apple_cc_single_mod=yes
6757	else
6758	  cat conftest.err >&5
6759	fi
6760	rm -rf libconftest.dylib*
6761	rm -f conftest.*
6762      fi
6763fi
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6765$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6766    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6767$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6768if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6769  $as_echo_n "(cached) " >&6
6770else
6771  lt_cv_ld_exported_symbols_list=no
6772      save_LDFLAGS=$LDFLAGS
6773      echo "_main" > conftest.sym
6774      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6775      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776/* end confdefs.h.  */
6777
6778int
6779main ()
6780{
6781
6782  ;
6783  return 0;
6784}
6785_ACEOF
6786if ac_fn_c_try_link "$LINENO"; then :
6787  lt_cv_ld_exported_symbols_list=yes
6788else
6789  lt_cv_ld_exported_symbols_list=no
6790fi
6791rm -f core conftest.err conftest.$ac_objext \
6792    conftest$ac_exeext conftest.$ac_ext
6793	LDFLAGS="$save_LDFLAGS"
6794
6795fi
6796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6797$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6798    case $host_os in
6799    rhapsody* | darwin1.[012])
6800      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6801    darwin1.*)
6802      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6803    darwin*) # darwin 5.x on
6804      # if running on 10.5 or later, the deployment target defaults
6805      # to the OS version, if on x86, and 10.4, the deployment
6806      # target defaults to 10.4. Don't you love it?
6807      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6808	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6809	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6810	10.[012]*)
6811	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6812	10.*)
6813	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6814      esac
6815    ;;
6816  esac
6817    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6818      _lt_dar_single_mod='$single_module'
6819    fi
6820    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6821      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6822    else
6823      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6824    fi
6825    if test "$DSYMUTIL" != ":"; then
6826      _lt_dsymutil='~$DSYMUTIL $lib || :'
6827    else
6828      _lt_dsymutil=
6829    fi
6830    ;;
6831  esac
6832
6833ac_ext=c
6834ac_cpp='$CPP $CPPFLAGS'
6835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6837ac_compiler_gnu=$ac_cv_c_compiler_gnu
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6839$as_echo_n "checking how to run the C preprocessor... " >&6; }
6840# On Suns, sometimes $CPP names a directory.
6841if test -n "$CPP" && test -d "$CPP"; then
6842  CPP=
6843fi
6844if test -z "$CPP"; then
6845  if test "${ac_cv_prog_CPP+set}" = set; then :
6846  $as_echo_n "(cached) " >&6
6847else
6848      # Double quotes because CPP needs to be expanded
6849    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6850    do
6851      ac_preproc_ok=false
6852for ac_c_preproc_warn_flag in '' yes
6853do
6854  # Use a header file that comes with gcc, so configuring glibc
6855  # with a fresh cross-compiler works.
6856  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6857  # <limits.h> exists even on freestanding compilers.
6858  # On the NeXT, cc -E runs the code through the compiler's parser,
6859  # not just through cpp. "Syntax error" is here to catch this case.
6860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861/* end confdefs.h.  */
6862#ifdef __STDC__
6863# include <limits.h>
6864#else
6865# include <assert.h>
6866#endif
6867		     Syntax error
6868_ACEOF
6869if ac_fn_c_try_cpp "$LINENO"; then :
6870
6871else
6872  # Broken: fails on valid input.
6873continue
6874fi
6875rm -f conftest.err conftest.$ac_ext
6876
6877  # OK, works on sane cases.  Now check whether nonexistent headers
6878  # can be detected and how.
6879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880/* end confdefs.h.  */
6881#include <ac_nonexistent.h>
6882_ACEOF
6883if ac_fn_c_try_cpp "$LINENO"; then :
6884  # Broken: success on invalid input.
6885continue
6886else
6887  # Passes both tests.
6888ac_preproc_ok=:
6889break
6890fi
6891rm -f conftest.err conftest.$ac_ext
6892
6893done
6894# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6895rm -f conftest.err conftest.$ac_ext
6896if $ac_preproc_ok; then :
6897  break
6898fi
6899
6900    done
6901    ac_cv_prog_CPP=$CPP
6902
6903fi
6904  CPP=$ac_cv_prog_CPP
6905else
6906  ac_cv_prog_CPP=$CPP
6907fi
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6909$as_echo "$CPP" >&6; }
6910ac_preproc_ok=false
6911for ac_c_preproc_warn_flag in '' yes
6912do
6913  # Use a header file that comes with gcc, so configuring glibc
6914  # with a fresh cross-compiler works.
6915  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6916  # <limits.h> exists even on freestanding compilers.
6917  # On the NeXT, cc -E runs the code through the compiler's parser,
6918  # not just through cpp. "Syntax error" is here to catch this case.
6919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920/* end confdefs.h.  */
6921#ifdef __STDC__
6922# include <limits.h>
6923#else
6924# include <assert.h>
6925#endif
6926		     Syntax error
6927_ACEOF
6928if ac_fn_c_try_cpp "$LINENO"; then :
6929
6930else
6931  # Broken: fails on valid input.
6932continue
6933fi
6934rm -f conftest.err conftest.$ac_ext
6935
6936  # OK, works on sane cases.  Now check whether nonexistent headers
6937  # can be detected and how.
6938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939/* end confdefs.h.  */
6940#include <ac_nonexistent.h>
6941_ACEOF
6942if ac_fn_c_try_cpp "$LINENO"; then :
6943  # Broken: success on invalid input.
6944continue
6945else
6946  # Passes both tests.
6947ac_preproc_ok=:
6948break
6949fi
6950rm -f conftest.err conftest.$ac_ext
6951
6952done
6953# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6954rm -f conftest.err conftest.$ac_ext
6955if $ac_preproc_ok; then :
6956
6957else
6958  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6960as_fn_error "C preprocessor \"$CPP\" fails sanity check
6961See \`config.log' for more details." "$LINENO" 5; }
6962fi
6963
6964ac_ext=c
6965ac_cpp='$CPP $CPPFLAGS'
6966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6968ac_compiler_gnu=$ac_cv_c_compiler_gnu
6969
6970
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6972$as_echo_n "checking for ANSI C header files... " >&6; }
6973if test "${ac_cv_header_stdc+set}" = set; then :
6974  $as_echo_n "(cached) " >&6
6975else
6976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977/* end confdefs.h.  */
6978#include <stdlib.h>
6979#include <stdarg.h>
6980#include <string.h>
6981#include <float.h>
6982
6983int
6984main ()
6985{
6986
6987  ;
6988  return 0;
6989}
6990_ACEOF
6991if ac_fn_c_try_compile "$LINENO"; then :
6992  ac_cv_header_stdc=yes
6993else
6994  ac_cv_header_stdc=no
6995fi
6996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997
6998if test $ac_cv_header_stdc = yes; then
6999  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001/* end confdefs.h.  */
7002#include <string.h>
7003
7004_ACEOF
7005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7006  $EGREP "memchr" >/dev/null 2>&1; then :
7007
7008else
7009  ac_cv_header_stdc=no
7010fi
7011rm -f conftest*
7012
7013fi
7014
7015if test $ac_cv_header_stdc = yes; then
7016  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018/* end confdefs.h.  */
7019#include <stdlib.h>
7020
7021_ACEOF
7022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7023  $EGREP "free" >/dev/null 2>&1; then :
7024
7025else
7026  ac_cv_header_stdc=no
7027fi
7028rm -f conftest*
7029
7030fi
7031
7032if test $ac_cv_header_stdc = yes; then
7033  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7034  if test "$cross_compiling" = yes; then :
7035  :
7036else
7037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038/* end confdefs.h.  */
7039#include <ctype.h>
7040#include <stdlib.h>
7041#if ((' ' & 0x0FF) == 0x020)
7042# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7043# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7044#else
7045# define ISLOWER(c) \
7046		   (('a' <= (c) && (c) <= 'i') \
7047		     || ('j' <= (c) && (c) <= 'r') \
7048		     || ('s' <= (c) && (c) <= 'z'))
7049# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7050#endif
7051
7052#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7053int
7054main ()
7055{
7056  int i;
7057  for (i = 0; i < 256; i++)
7058    if (XOR (islower (i), ISLOWER (i))
7059	|| toupper (i) != TOUPPER (i))
7060      return 2;
7061  return 0;
7062}
7063_ACEOF
7064if ac_fn_c_try_run "$LINENO"; then :
7065
7066else
7067  ac_cv_header_stdc=no
7068fi
7069rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7070  conftest.$ac_objext conftest.beam conftest.$ac_ext
7071fi
7072
7073fi
7074fi
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7076$as_echo "$ac_cv_header_stdc" >&6; }
7077if test $ac_cv_header_stdc = yes; then
7078
7079$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7080
7081fi
7082
7083# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7084for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7085		  inttypes.h stdint.h unistd.h
7086do :
7087  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7088ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7089"
7090eval as_val=\$$as_ac_Header
7091   if test "x$as_val" = x""yes; then :
7092  cat >>confdefs.h <<_ACEOF
7093#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7094_ACEOF
7095
7096fi
7097
7098done
7099
7100
7101for ac_header in dlfcn.h
7102do :
7103  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7104"
7105if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7106  cat >>confdefs.h <<_ACEOF
7107#define HAVE_DLFCN_H 1
7108_ACEOF
7109
7110fi
7111
7112done
7113
7114
7115
7116# Set options
7117
7118
7119
7120
7121  enable_win32_dll=no
7122
7123
7124            # Check whether --enable-shared was given.
7125if test "${enable_shared+set}" = set; then :
7126  enableval=$enable_shared; p=${PACKAGE-default}
7127    case $enableval in
7128    yes) enable_shared=yes ;;
7129    no) enable_shared=no ;;
7130    *)
7131      enable_shared=no
7132      # Look at the argument we got.  We use all the common list separators.
7133      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7134      for pkg in $enableval; do
7135	IFS="$lt_save_ifs"
7136	if test "X$pkg" = "X$p"; then
7137	  enable_shared=yes
7138	fi
7139      done
7140      IFS="$lt_save_ifs"
7141      ;;
7142    esac
7143else
7144  enable_shared=yes
7145fi
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155  # Check whether --enable-static was given.
7156if test "${enable_static+set}" = set; then :
7157  enableval=$enable_static; p=${PACKAGE-default}
7158    case $enableval in
7159    yes) enable_static=yes ;;
7160    no) enable_static=no ;;
7161    *)
7162     enable_static=no
7163      # Look at the argument we got.  We use all the common list separators.
7164      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7165      for pkg in $enableval; do
7166	IFS="$lt_save_ifs"
7167	if test "X$pkg" = "X$p"; then
7168	  enable_static=yes
7169	fi
7170      done
7171      IFS="$lt_save_ifs"
7172      ;;
7173    esac
7174else
7175  enable_static=yes
7176fi
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187# Check whether --with-pic was given.
7188if test "${with_pic+set}" = set; then :
7189  withval=$with_pic; pic_mode="$withval"
7190else
7191  pic_mode=default
7192fi
7193
7194
7195test -z "$pic_mode" && pic_mode=default
7196
7197
7198
7199
7200
7201
7202
7203  # Check whether --enable-fast-install was given.
7204if test "${enable_fast_install+set}" = set; then :
7205  enableval=$enable_fast_install; p=${PACKAGE-default}
7206    case $enableval in
7207    yes) enable_fast_install=yes ;;
7208    no) enable_fast_install=no ;;
7209    *)
7210      enable_fast_install=no
7211      # Look at the argument we got.  We use all the common list separators.
7212      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7213      for pkg in $enableval; do
7214	IFS="$lt_save_ifs"
7215	if test "X$pkg" = "X$p"; then
7216	  enable_fast_install=yes
7217	fi
7218      done
7219      IFS="$lt_save_ifs"
7220      ;;
7221    esac
7222else
7223  enable_fast_install=yes
7224fi
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236# This can be used to rebuild libtool when needed
7237LIBTOOL_DEPS="$ltmain"
7238
7239# Always use our own libtool.
7240LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266test -z "$LN_S" && LN_S="ln -s"
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281if test -n "${ZSH_VERSION+set}" ; then
7282   setopt NO_GLOB_SUBST
7283fi
7284
7285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7286$as_echo_n "checking for objdir... " >&6; }
7287if test "${lt_cv_objdir+set}" = set; then :
7288  $as_echo_n "(cached) " >&6
7289else
7290  rm -f .libs 2>/dev/null
7291mkdir .libs 2>/dev/null
7292if test -d .libs; then
7293  lt_cv_objdir=.libs
7294else
7295  # MS-DOS does not allow filenames that begin with a dot.
7296  lt_cv_objdir=_libs
7297fi
7298rmdir .libs 2>/dev/null
7299fi
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7301$as_echo "$lt_cv_objdir" >&6; }
7302objdir=$lt_cv_objdir
7303
7304
7305
7306
7307
7308cat >>confdefs.h <<_ACEOF
7309#define LT_OBJDIR "$lt_cv_objdir/"
7310_ACEOF
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328case $host_os in
7329aix3*)
7330  # AIX sometimes has problems with the GCC collect2 program.  For some
7331  # reason, if we set the COLLECT_NAMES environment variable, the problems
7332  # vanish in a puff of smoke.
7333  if test "X${COLLECT_NAMES+set}" != Xset; then
7334    COLLECT_NAMES=
7335    export COLLECT_NAMES
7336  fi
7337  ;;
7338esac
7339
7340# Sed substitution that helps us do robust quoting.  It backslashifies
7341# metacharacters that are still active within double-quoted strings.
7342sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7343
7344# Same as above, but do not quote variable references.
7345double_quote_subst='s/\(["`\\]\)/\\\1/g'
7346
7347# Sed substitution to delay expansion of an escaped shell variable in a
7348# double_quote_subst'ed string.
7349delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7350
7351# Sed substitution to delay expansion of an escaped single quote.
7352delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7353
7354# Sed substitution to avoid accidental globbing in evaled expressions
7355no_glob_subst='s/\*/\\\*/g'
7356
7357# Global variables:
7358ofile=libtool
7359can_build_shared=yes
7360
7361# All known linkers require a `.a' archive for static linking (except MSVC,
7362# which needs '.lib').
7363libext=a
7364
7365with_gnu_ld="$lt_cv_prog_gnu_ld"
7366
7367old_CC="$CC"
7368old_CFLAGS="$CFLAGS"
7369
7370# Set sane defaults for various variables
7371test -z "$CC" && CC=cc
7372test -z "$LTCC" && LTCC=$CC
7373test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7374test -z "$LD" && LD=ld
7375test -z "$ac_objext" && ac_objext=o
7376
7377for cc_temp in $compiler""; do
7378  case $cc_temp in
7379    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7380    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7381    \-*) ;;
7382    *) break;;
7383  esac
7384done
7385cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7386
7387
7388# Only perform the check for file, if the check method requires it
7389test -z "$MAGIC_CMD" && MAGIC_CMD=file
7390case $deplibs_check_method in
7391file_magic*)
7392  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7393    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7394$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7395if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7396  $as_echo_n "(cached) " >&6
7397else
7398  case $MAGIC_CMD in
7399[\\/*] |  ?:[\\/]*)
7400  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7401  ;;
7402*)
7403  lt_save_MAGIC_CMD="$MAGIC_CMD"
7404  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7405  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7406  for ac_dir in $ac_dummy; do
7407    IFS="$lt_save_ifs"
7408    test -z "$ac_dir" && ac_dir=.
7409    if test -f $ac_dir/${ac_tool_prefix}file; then
7410      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7411      if test -n "$file_magic_test_file"; then
7412	case $deplibs_check_method in
7413	"file_magic "*)
7414	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7415	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7416	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7417	    $EGREP "$file_magic_regex" > /dev/null; then
7418	    :
7419	  else
7420	    cat <<_LT_EOF 1>&2
7421
7422*** Warning: the command libtool uses to detect shared libraries,
7423*** $file_magic_cmd, produces output that libtool cannot recognize.
7424*** The result is that libtool may fail to recognize shared libraries
7425*** as such.  This will affect the creation of libtool libraries that
7426*** depend on shared libraries, but programs linked with such libtool
7427*** libraries will work regardless of this problem.  Nevertheless, you
7428*** may want to report the problem to your system manager and/or to
7429*** bug-libtool@gnu.org
7430
7431_LT_EOF
7432	  fi ;;
7433	esac
7434      fi
7435      break
7436    fi
7437  done
7438  IFS="$lt_save_ifs"
7439  MAGIC_CMD="$lt_save_MAGIC_CMD"
7440  ;;
7441esac
7442fi
7443
7444MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7445if test -n "$MAGIC_CMD"; then
7446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7447$as_echo "$MAGIC_CMD" >&6; }
7448else
7449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450$as_echo "no" >&6; }
7451fi
7452
7453
7454
7455
7456
7457if test -z "$lt_cv_path_MAGIC_CMD"; then
7458  if test -n "$ac_tool_prefix"; then
7459    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7460$as_echo_n "checking for file... " >&6; }
7461if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7462  $as_echo_n "(cached) " >&6
7463else
7464  case $MAGIC_CMD in
7465[\\/*] |  ?:[\\/]*)
7466  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7467  ;;
7468*)
7469  lt_save_MAGIC_CMD="$MAGIC_CMD"
7470  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7471  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7472  for ac_dir in $ac_dummy; do
7473    IFS="$lt_save_ifs"
7474    test -z "$ac_dir" && ac_dir=.
7475    if test -f $ac_dir/file; then
7476      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7477      if test -n "$file_magic_test_file"; then
7478	case $deplibs_check_method in
7479	"file_magic "*)
7480	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7481	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7482	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7483	    $EGREP "$file_magic_regex" > /dev/null; then
7484	    :
7485	  else
7486	    cat <<_LT_EOF 1>&2
7487
7488*** Warning: the command libtool uses to detect shared libraries,
7489*** $file_magic_cmd, produces output that libtool cannot recognize.
7490*** The result is that libtool may fail to recognize shared libraries
7491*** as such.  This will affect the creation of libtool libraries that
7492*** depend on shared libraries, but programs linked with such libtool
7493*** libraries will work regardless of this problem.  Nevertheless, you
7494*** may want to report the problem to your system manager and/or to
7495*** bug-libtool@gnu.org
7496
7497_LT_EOF
7498	  fi ;;
7499	esac
7500      fi
7501      break
7502    fi
7503  done
7504  IFS="$lt_save_ifs"
7505  MAGIC_CMD="$lt_save_MAGIC_CMD"
7506  ;;
7507esac
7508fi
7509
7510MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7511if test -n "$MAGIC_CMD"; then
7512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7513$as_echo "$MAGIC_CMD" >&6; }
7514else
7515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516$as_echo "no" >&6; }
7517fi
7518
7519
7520  else
7521    MAGIC_CMD=:
7522  fi
7523fi
7524
7525  fi
7526  ;;
7527esac
7528
7529# Use C for the default configuration in the libtool script
7530
7531lt_save_CC="$CC"
7532ac_ext=c
7533ac_cpp='$CPP $CPPFLAGS'
7534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536ac_compiler_gnu=$ac_cv_c_compiler_gnu
7537
7538
7539# Source file extension for C test sources.
7540ac_ext=c
7541
7542# Object file extension for compiled C test sources.
7543objext=o
7544objext=$objext
7545
7546# Code to be used in simple compile tests
7547lt_simple_compile_test_code="int some_variable = 0;"
7548
7549# Code to be used in simple link tests
7550lt_simple_link_test_code='int main(){return(0);}'
7551
7552
7553
7554
7555
7556
7557
7558# If no C compiler was specified, use CC.
7559LTCC=${LTCC-"$CC"}
7560
7561# If no C compiler flags were specified, use CFLAGS.
7562LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7563
7564# Allow CC to be a program name with arguments.
7565compiler=$CC
7566
7567# Save the default compiler, since it gets overwritten when the other
7568# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7569compiler_DEFAULT=$CC
7570
7571# save warnings/boilerplate of simple test code
7572ac_outfile=conftest.$ac_objext
7573echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7574eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7575_lt_compiler_boilerplate=`cat conftest.err`
7576$RM conftest*
7577
7578ac_outfile=conftest.$ac_objext
7579echo "$lt_simple_link_test_code" >conftest.$ac_ext
7580eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7581_lt_linker_boilerplate=`cat conftest.err`
7582$RM -r conftest*
7583
7584
7585if test -n "$compiler"; then
7586
7587lt_prog_compiler_no_builtin_flag=
7588
7589if test "$GCC" = yes; then
7590  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7591
7592  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7593$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7594if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7595  $as_echo_n "(cached) " >&6
7596else
7597  lt_cv_prog_compiler_rtti_exceptions=no
7598   ac_outfile=conftest.$ac_objext
7599   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7600   lt_compiler_flag="-fno-rtti -fno-exceptions"
7601   # Insert the option either (1) after the last *FLAGS variable, or
7602   # (2) before a word containing "conftest.", or (3) at the end.
7603   # Note that $ac_compile itself does not contain backslashes and begins
7604   # with a dollar sign (not a hyphen), so the echo should work correctly.
7605   # The option is referenced via a variable to avoid confusing sed.
7606   lt_compile=`echo "$ac_compile" | $SED \
7607   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7608   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7609   -e 's:$: $lt_compiler_flag:'`
7610   (eval echo "\"\$as_me:7610: $lt_compile\"" >&5)
7611   (eval "$lt_compile" 2>conftest.err)
7612   ac_status=$?
7613   cat conftest.err >&5
7614   echo "$as_me:7614: \$? = $ac_status" >&5
7615   if (exit $ac_status) && test -s "$ac_outfile"; then
7616     # The compiler can only warn and ignore the option if not recognized
7617     # So say no if there are warnings other than the usual output.
7618     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7619     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7620     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7621       lt_cv_prog_compiler_rtti_exceptions=yes
7622     fi
7623   fi
7624   $RM conftest*
7625
7626fi
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7628$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7629
7630if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7631    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7632else
7633    :
7634fi
7635
7636fi
7637
7638
7639
7640
7641
7642
7643  lt_prog_compiler_wl=
7644lt_prog_compiler_pic=
7645lt_prog_compiler_static=
7646
7647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7648$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7649
7650  if test "$GCC" = yes; then
7651    lt_prog_compiler_wl='-Wl,'
7652    lt_prog_compiler_static='-static'
7653
7654    case $host_os in
7655      aix*)
7656      # All AIX code is PIC.
7657      if test "$host_cpu" = ia64; then
7658	# AIX 5 now supports IA64 processor
7659	lt_prog_compiler_static='-Bstatic'
7660      fi
7661      ;;
7662
7663    amigaos*)
7664      case $host_cpu in
7665      powerpc)
7666            # see comment about AmigaOS4 .so support
7667            lt_prog_compiler_pic='-fPIC'
7668        ;;
7669      m68k)
7670            # FIXME: we need at least 68020 code to build shared libraries, but
7671            # adding the `-m68020' flag to GCC prevents building anything better,
7672            # like `-m68040'.
7673            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7674        ;;
7675      esac
7676      ;;
7677
7678    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7679      # PIC is the default for these OSes.
7680      ;;
7681
7682    mingw* | cygwin* | pw32* | os2* | cegcc*)
7683      # This hack is so that the source file can tell whether it is being
7684      # built for inclusion in a dll (and should export symbols for example).
7685      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7686      # (--disable-auto-import) libraries
7687      lt_prog_compiler_pic='-DDLL_EXPORT'
7688      ;;
7689
7690    darwin* | rhapsody*)
7691      # PIC is the default on this platform
7692      # Common symbols not allowed in MH_DYLIB files
7693      lt_prog_compiler_pic='-fno-common'
7694      ;;
7695
7696    hpux*)
7697      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7698      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7699      # sets the default TLS model and affects inlining.
7700      case $host_cpu in
7701      hppa*64*)
7702	# +Z the default
7703	;;
7704      *)
7705	lt_prog_compiler_pic='-fPIC'
7706	;;
7707      esac
7708      ;;
7709
7710    interix[3-9]*)
7711      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7712      # Instead, we relocate shared libraries at runtime.
7713      ;;
7714
7715    msdosdjgpp*)
7716      # Just because we use GCC doesn't mean we suddenly get shared libraries
7717      # on systems that don't support them.
7718      lt_prog_compiler_can_build_shared=no
7719      enable_shared=no
7720      ;;
7721
7722    *nto* | *qnx*)
7723      # QNX uses GNU C++, but need to define -shared option too, otherwise
7724      # it will coredump.
7725      lt_prog_compiler_pic='-fPIC -shared'
7726      ;;
7727
7728    sysv4*MP*)
7729      if test -d /usr/nec; then
7730	lt_prog_compiler_pic=-Kconform_pic
7731      fi
7732      ;;
7733
7734    *)
7735      lt_prog_compiler_pic='-fPIC'
7736      ;;
7737    esac
7738  else
7739    # PORTME Check for flag to pass linker flags through the system compiler.
7740    case $host_os in
7741    aix*)
7742      lt_prog_compiler_wl='-Wl,'
7743      if test "$host_cpu" = ia64; then
7744	# AIX 5 now supports IA64 processor
7745	lt_prog_compiler_static='-Bstatic'
7746      else
7747	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7748      fi
7749      ;;
7750
7751    mingw* | cygwin* | pw32* | os2* | cegcc*)
7752      # This hack is so that the source file can tell whether it is being
7753      # built for inclusion in a dll (and should export symbols for example).
7754      lt_prog_compiler_pic='-DDLL_EXPORT'
7755      ;;
7756
7757    hpux9* | hpux10* | hpux11*)
7758      lt_prog_compiler_wl='-Wl,'
7759      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7760      # not for PA HP-UX.
7761      case $host_cpu in
7762      hppa*64*|ia64*)
7763	# +Z the default
7764	;;
7765      *)
7766	lt_prog_compiler_pic='+Z'
7767	;;
7768      esac
7769      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7770      lt_prog_compiler_static='${wl}-a ${wl}archive'
7771      ;;
7772
7773    irix5* | irix6* | nonstopux*)
7774      lt_prog_compiler_wl='-Wl,'
7775      # PIC (with -KPIC) is the default.
7776      lt_prog_compiler_static='-non_shared'
7777      ;;
7778
7779    linux* | k*bsd*-gnu)
7780      case $cc_basename in
7781      # old Intel for x86_64 which still supported -KPIC.
7782      ecc*)
7783	lt_prog_compiler_wl='-Wl,'
7784	lt_prog_compiler_pic='-KPIC'
7785	lt_prog_compiler_static='-static'
7786        ;;
7787      # icc used to be incompatible with GCC.
7788      # ICC 10 doesn't accept -KPIC any more.
7789      icc* | ifort*)
7790	lt_prog_compiler_wl='-Wl,'
7791	lt_prog_compiler_pic='-fPIC'
7792	lt_prog_compiler_static='-static'
7793        ;;
7794      # Lahey Fortran 8.1.
7795      lf95*)
7796	lt_prog_compiler_wl='-Wl,'
7797	lt_prog_compiler_pic='--shared'
7798	lt_prog_compiler_static='--static'
7799	;;
7800      pgcc* | pgf77* | pgf90* | pgf95*)
7801        # Portland Group compilers (*not* the Pentium gcc compiler,
7802	# which looks to be a dead project)
7803	lt_prog_compiler_wl='-Wl,'
7804	lt_prog_compiler_pic='-fpic'
7805	lt_prog_compiler_static='-Bstatic'
7806        ;;
7807      ccc*)
7808        lt_prog_compiler_wl='-Wl,'
7809        # All Alpha code is PIC.
7810        lt_prog_compiler_static='-non_shared'
7811        ;;
7812      xl*)
7813	# IBM XL C 8.0/Fortran 10.1 on PPC
7814	lt_prog_compiler_wl='-Wl,'
7815	lt_prog_compiler_pic='-qpic'
7816	lt_prog_compiler_static='-qstaticlink'
7817	;;
7818      *)
7819	case `$CC -V 2>&1 | sed 5q` in
7820	*Sun\ C*)
7821	  # Sun C 5.9
7822	  lt_prog_compiler_pic='-KPIC'
7823	  lt_prog_compiler_static='-Bstatic'
7824	  lt_prog_compiler_wl='-Wl,'
7825	  ;;
7826	*Sun\ F*)
7827	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7828	  lt_prog_compiler_pic='-KPIC'
7829	  lt_prog_compiler_static='-Bstatic'
7830	  lt_prog_compiler_wl=''
7831	  ;;
7832	esac
7833	;;
7834      esac
7835      ;;
7836
7837    newsos6)
7838      lt_prog_compiler_pic='-KPIC'
7839      lt_prog_compiler_static='-Bstatic'
7840      ;;
7841
7842    *nto* | *qnx*)
7843      # QNX uses GNU C++, but need to define -shared option too, otherwise
7844      # it will coredump.
7845      lt_prog_compiler_pic='-fPIC -shared'
7846      ;;
7847
7848    osf3* | osf4* | osf5*)
7849      lt_prog_compiler_wl='-Wl,'
7850      # All OSF/1 code is PIC.
7851      lt_prog_compiler_static='-non_shared'
7852      ;;
7853
7854    rdos*)
7855      lt_prog_compiler_static='-non_shared'
7856      ;;
7857
7858    solaris*)
7859      lt_prog_compiler_pic='-KPIC'
7860      lt_prog_compiler_static='-Bstatic'
7861      case $cc_basename in
7862      f77* | f90* | f95*)
7863	lt_prog_compiler_wl='-Qoption ld ';;
7864      *)
7865	lt_prog_compiler_wl='-Wl,';;
7866      esac
7867      ;;
7868
7869    sunos4*)
7870      lt_prog_compiler_wl='-Qoption ld '
7871      lt_prog_compiler_pic='-PIC'
7872      lt_prog_compiler_static='-Bstatic'
7873      ;;
7874
7875    sysv4 | sysv4.2uw2* | sysv4.3*)
7876      lt_prog_compiler_wl='-Wl,'
7877      lt_prog_compiler_pic='-KPIC'
7878      lt_prog_compiler_static='-Bstatic'
7879      ;;
7880
7881    sysv4*MP*)
7882      if test -d /usr/nec ;then
7883	lt_prog_compiler_pic='-Kconform_pic'
7884	lt_prog_compiler_static='-Bstatic'
7885      fi
7886      ;;
7887
7888    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7889      lt_prog_compiler_wl='-Wl,'
7890      lt_prog_compiler_pic='-KPIC'
7891      lt_prog_compiler_static='-Bstatic'
7892      ;;
7893
7894    unicos*)
7895      lt_prog_compiler_wl='-Wl,'
7896      lt_prog_compiler_can_build_shared=no
7897      ;;
7898
7899    uts4*)
7900      lt_prog_compiler_pic='-pic'
7901      lt_prog_compiler_static='-Bstatic'
7902      ;;
7903
7904    *)
7905      lt_prog_compiler_can_build_shared=no
7906      ;;
7907    esac
7908  fi
7909
7910case $host_os in
7911  # For platforms which do not support PIC, -DPIC is meaningless:
7912  *djgpp*)
7913    lt_prog_compiler_pic=
7914    ;;
7915  *)
7916    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7917    ;;
7918esac
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7920$as_echo "$lt_prog_compiler_pic" >&6; }
7921
7922
7923
7924
7925
7926
7927#
7928# Check to make sure the PIC flag actually works.
7929#
7930if test -n "$lt_prog_compiler_pic"; then
7931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7932$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7933if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7934  $as_echo_n "(cached) " >&6
7935else
7936  lt_cv_prog_compiler_pic_works=no
7937   ac_outfile=conftest.$ac_objext
7938   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7939   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7940   # Insert the option either (1) after the last *FLAGS variable, or
7941   # (2) before a word containing "conftest.", or (3) at the end.
7942   # Note that $ac_compile itself does not contain backslashes and begins
7943   # with a dollar sign (not a hyphen), so the echo should work correctly.
7944   # The option is referenced via a variable to avoid confusing sed.
7945   lt_compile=`echo "$ac_compile" | $SED \
7946   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7947   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7948   -e 's:$: $lt_compiler_flag:'`
7949   (eval echo "\"\$as_me:7949: $lt_compile\"" >&5)
7950   (eval "$lt_compile" 2>conftest.err)
7951   ac_status=$?
7952   cat conftest.err >&5
7953   echo "$as_me:7953: \$? = $ac_status" >&5
7954   if (exit $ac_status) && test -s "$ac_outfile"; then
7955     # The compiler can only warn and ignore the option if not recognized
7956     # So say no if there are warnings other than the usual output.
7957     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7958     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7959     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7960       lt_cv_prog_compiler_pic_works=yes
7961     fi
7962   fi
7963   $RM conftest*
7964
7965fi
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7967$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7968
7969if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7970    case $lt_prog_compiler_pic in
7971     "" | " "*) ;;
7972     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7973     esac
7974else
7975    lt_prog_compiler_pic=
7976     lt_prog_compiler_can_build_shared=no
7977fi
7978
7979fi
7980
7981
7982
7983
7984
7985
7986#
7987# Check to make sure the static flag actually works.
7988#
7989wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7991$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7992if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7993  $as_echo_n "(cached) " >&6
7994else
7995  lt_cv_prog_compiler_static_works=no
7996   save_LDFLAGS="$LDFLAGS"
7997   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7998   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7999   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8000     # The linker can only warn and ignore the option if not recognized
8001     # So say no if there are warnings
8002     if test -s conftest.err; then
8003       # Append any errors to the config.log.
8004       cat conftest.err 1>&5
8005       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8006       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8007       if diff conftest.exp conftest.er2 >/dev/null; then
8008         lt_cv_prog_compiler_static_works=yes
8009       fi
8010     else
8011       lt_cv_prog_compiler_static_works=yes
8012     fi
8013   fi
8014   $RM -r conftest*
8015   LDFLAGS="$save_LDFLAGS"
8016
8017fi
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8019$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8020
8021if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8022    :
8023else
8024    lt_prog_compiler_static=
8025fi
8026
8027
8028
8029
8030
8031
8032
8033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8034$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8035if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8036  $as_echo_n "(cached) " >&6
8037else
8038  lt_cv_prog_compiler_c_o=no
8039   $RM -r conftest 2>/dev/null
8040   mkdir conftest
8041   cd conftest
8042   mkdir out
8043   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8044
8045   lt_compiler_flag="-o out/conftest2.$ac_objext"
8046   # Insert the option either (1) after the last *FLAGS variable, or
8047   # (2) before a word containing "conftest.", or (3) at the end.
8048   # Note that $ac_compile itself does not contain backslashes and begins
8049   # with a dollar sign (not a hyphen), so the echo should work correctly.
8050   lt_compile=`echo "$ac_compile" | $SED \
8051   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8052   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8053   -e 's:$: $lt_compiler_flag:'`
8054   (eval echo "\"\$as_me:8054: $lt_compile\"" >&5)
8055   (eval "$lt_compile" 2>out/conftest.err)
8056   ac_status=$?
8057   cat out/conftest.err >&5
8058   echo "$as_me:8058: \$? = $ac_status" >&5
8059   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8060   then
8061     # The compiler can only warn and ignore the option if not recognized
8062     # So say no if there are warnings
8063     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8064     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8065     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8066       lt_cv_prog_compiler_c_o=yes
8067     fi
8068   fi
8069   chmod u+w . 2>&5
8070   $RM conftest*
8071   # SGI C++ compiler will create directory out/ii_files/ for
8072   # template instantiation
8073   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8074   $RM out/* && rmdir out
8075   cd ..
8076   $RM -r conftest
8077   $RM conftest*
8078
8079fi
8080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8081$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8082
8083
8084
8085
8086
8087
8088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8089$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8090if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8091  $as_echo_n "(cached) " >&6
8092else
8093  lt_cv_prog_compiler_c_o=no
8094   $RM -r conftest 2>/dev/null
8095   mkdir conftest
8096   cd conftest
8097   mkdir out
8098   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8099
8100   lt_compiler_flag="-o out/conftest2.$ac_objext"
8101   # Insert the option either (1) after the last *FLAGS variable, or
8102   # (2) before a word containing "conftest.", or (3) at the end.
8103   # Note that $ac_compile itself does not contain backslashes and begins
8104   # with a dollar sign (not a hyphen), so the echo should work correctly.
8105   lt_compile=`echo "$ac_compile" | $SED \
8106   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8107   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8108   -e 's:$: $lt_compiler_flag:'`
8109   (eval echo "\"\$as_me:8109: $lt_compile\"" >&5)
8110   (eval "$lt_compile" 2>out/conftest.err)
8111   ac_status=$?
8112   cat out/conftest.err >&5
8113   echo "$as_me:8113: \$? = $ac_status" >&5
8114   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8115   then
8116     # The compiler can only warn and ignore the option if not recognized
8117     # So say no if there are warnings
8118     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8119     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8120     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8121       lt_cv_prog_compiler_c_o=yes
8122     fi
8123   fi
8124   chmod u+w . 2>&5
8125   $RM conftest*
8126   # SGI C++ compiler will create directory out/ii_files/ for
8127   # template instantiation
8128   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8129   $RM out/* && rmdir out
8130   cd ..
8131   $RM -r conftest
8132   $RM conftest*
8133
8134fi
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8136$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8137
8138
8139
8140
8141hard_links="nottested"
8142if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8143  # do not overwrite the value of need_locks provided by the user
8144  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8145$as_echo_n "checking if we can lock with hard links... " >&6; }
8146  hard_links=yes
8147  $RM conftest*
8148  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8149  touch conftest.a
8150  ln conftest.a conftest.b 2>&5 || hard_links=no
8151  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8153$as_echo "$hard_links" >&6; }
8154  if test "$hard_links" = no; then
8155    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8156$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8157    need_locks=warn
8158  fi
8159else
8160  need_locks=no
8161fi
8162
8163
8164
8165
8166
8167
8168  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8169$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8170
8171  runpath_var=
8172  allow_undefined_flag=
8173  always_export_symbols=no
8174  archive_cmds=
8175  archive_expsym_cmds=
8176  compiler_needs_object=no
8177  enable_shared_with_static_runtimes=no
8178  export_dynamic_flag_spec=
8179  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8180  hardcode_automatic=no
8181  hardcode_direct=no
8182  hardcode_direct_absolute=no
8183  hardcode_libdir_flag_spec=
8184  hardcode_libdir_flag_spec_ld=
8185  hardcode_libdir_separator=
8186  hardcode_minus_L=no
8187  hardcode_shlibpath_var=unsupported
8188  inherit_rpath=no
8189  link_all_deplibs=unknown
8190  module_cmds=
8191  module_expsym_cmds=
8192  old_archive_from_new_cmds=
8193  old_archive_from_expsyms_cmds=
8194  thread_safe_flag_spec=
8195  whole_archive_flag_spec=
8196  # include_expsyms should be a list of space-separated symbols to be *always*
8197  # included in the symbol list
8198  include_expsyms=
8199  # exclude_expsyms can be an extended regexp of symbols to exclude
8200  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8201  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8202  # as well as any symbol that contains `d'.
8203  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8204  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8205  # platforms (ab)use it in PIC code, but their linkers get confused if
8206  # the symbol is explicitly referenced.  Since portable code cannot
8207  # rely on this symbol name, it's probably fine to never include it in
8208  # preloaded symbol tables.
8209  # Exclude shared library initialization/finalization symbols.
8210  extract_expsyms_cmds=
8211
8212  case $host_os in
8213  cygwin* | mingw* | pw32* | cegcc*)
8214    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8215    # When not using gcc, we currently assume that we are using
8216    # Microsoft Visual C++.
8217    if test "$GCC" != yes; then
8218      with_gnu_ld=no
8219    fi
8220    ;;
8221  interix*)
8222    # we just hope/assume this is gcc and not c89 (= MSVC++)
8223    with_gnu_ld=yes
8224    ;;
8225  openbsd*)
8226    with_gnu_ld=no
8227    ;;
8228  esac
8229
8230  ld_shlibs=yes
8231  if test "$with_gnu_ld" = yes; then
8232    # If archive_cmds runs LD, not CC, wlarc should be empty
8233    wlarc='${wl}'
8234
8235    # Set some defaults for GNU ld with shared library support. These
8236    # are reset later if shared libraries are not supported. Putting them
8237    # here allows them to be overridden if necessary.
8238    runpath_var=LD_RUN_PATH
8239    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8240    export_dynamic_flag_spec='${wl}--export-dynamic'
8241    # ancient GNU ld didn't support --whole-archive et. al.
8242    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8243      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8244    else
8245      whole_archive_flag_spec=
8246    fi
8247    supports_anon_versioning=no
8248    case `$LD -v 2>&1` in
8249      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8250      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8251      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8252      *\ 2.11.*) ;; # other 2.11 versions
8253      *) supports_anon_versioning=yes ;;
8254    esac
8255
8256    # See if GNU ld supports shared libraries.
8257    case $host_os in
8258    aix[3-9]*)
8259      # On AIX/PPC, the GNU linker is very broken
8260      if test "$host_cpu" != ia64; then
8261	ld_shlibs=no
8262	cat <<_LT_EOF 1>&2
8263
8264*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8265*** to be unable to reliably create shared libraries on AIX.
8266*** Therefore, libtool is disabling shared libraries support.  If you
8267*** really care for shared libraries, you may want to modify your PATH
8268*** so that a non-GNU linker is found, and then restart.
8269
8270_LT_EOF
8271      fi
8272      ;;
8273
8274    amigaos*)
8275      case $host_cpu in
8276      powerpc)
8277            # see comment about AmigaOS4 .so support
8278            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8279            archive_expsym_cmds=''
8280        ;;
8281      m68k)
8282            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)'
8283            hardcode_libdir_flag_spec='-L$libdir'
8284            hardcode_minus_L=yes
8285        ;;
8286      esac
8287      ;;
8288
8289    beos*)
8290      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8291	allow_undefined_flag=unsupported
8292	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8293	# support --undefined.  This deserves some investigation.  FIXME
8294	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8295      else
8296	ld_shlibs=no
8297      fi
8298      ;;
8299
8300    cygwin* | mingw* | pw32* | cegcc*)
8301      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8302      # as there is no search path for DLLs.
8303      hardcode_libdir_flag_spec='-L$libdir'
8304      allow_undefined_flag=unsupported
8305      always_export_symbols=no
8306      enable_shared_with_static_runtimes=yes
8307      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8308
8309      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8310        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8311	# If the export-symbols file already is a .def file (1st line
8312	# is EXPORTS), use it as is; otherwise, prepend...
8313	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8314	  cp $export_symbols $output_objdir/$soname.def;
8315	else
8316	  echo EXPORTS > $output_objdir/$soname.def;
8317	  cat $export_symbols >> $output_objdir/$soname.def;
8318	fi~
8319	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8320      else
8321	ld_shlibs=no
8322      fi
8323      ;;
8324
8325    interix[3-9]*)
8326      hardcode_direct=no
8327      hardcode_shlibpath_var=no
8328      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8329      export_dynamic_flag_spec='${wl}-E'
8330      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8331      # Instead, shared libraries are loaded at an image base (0x10000000 by
8332      # default) and relocated if they conflict, which is a slow very memory
8333      # consuming and fragmenting process.  To avoid this, we pick a random,
8334      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8335      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8336      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8337      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'
8338      ;;
8339
8340    gnu* | linux* | tpf* | k*bsd*-gnu)
8341      tmp_diet=no
8342      if test "$host_os" = linux-dietlibc; then
8343	case $cc_basename in
8344	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8345	esac
8346      fi
8347      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8348	 && test "$tmp_diet" = no
8349      then
8350	tmp_addflag=
8351	tmp_sharedflag='-shared'
8352	case $cc_basename,$host_cpu in
8353        pgcc*)				# Portland Group C compiler
8354	  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'
8355	  tmp_addflag=' $pic_flag'
8356	  ;;
8357	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8358	  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'
8359	  tmp_addflag=' $pic_flag -Mnomain' ;;
8360	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8361	  tmp_addflag=' -i_dynamic' ;;
8362	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8363	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8364	ifc* | ifort*)			# Intel Fortran compiler
8365	  tmp_addflag=' -nofor_main' ;;
8366	lf95*)				# Lahey Fortran 8.1
8367	  whole_archive_flag_spec=
8368	  tmp_sharedflag='--shared' ;;
8369	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8370	  tmp_sharedflag='-qmkshrobj'
8371	  tmp_addflag= ;;
8372	esac
8373	case `$CC -V 2>&1 | sed 5q` in
8374	*Sun\ C*)			# Sun C 5.9
8375	  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'
8376	  compiler_needs_object=yes
8377	  tmp_sharedflag='-G' ;;
8378	*Sun\ F*)			# Sun Fortran 8.3
8379	  tmp_sharedflag='-G' ;;
8380	esac
8381	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8382
8383        if test "x$supports_anon_versioning" = xyes; then
8384          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8385	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8386	    echo "local: *; };" >> $output_objdir/$libname.ver~
8387	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8388        fi
8389
8390	case $cc_basename in
8391	xlf*)
8392	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8393	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8394	  hardcode_libdir_flag_spec=
8395	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8396	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8397	  if test "x$supports_anon_versioning" = xyes; then
8398	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8399	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8400	      echo "local: *; };" >> $output_objdir/$libname.ver~
8401	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8402	  fi
8403	  ;;
8404	esac
8405      else
8406        ld_shlibs=no
8407      fi
8408      ;;
8409
8410    netbsd*)
8411      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8412	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8413	wlarc=
8414      else
8415	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8416	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8417      fi
8418      ;;
8419
8420    solaris*)
8421      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8422	ld_shlibs=no
8423	cat <<_LT_EOF 1>&2
8424
8425*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8426*** create shared libraries on Solaris systems.  Therefore, libtool
8427*** is disabling shared libraries support.  We urge you to upgrade GNU
8428*** binutils to release 2.9.1 or newer.  Another option is to modify
8429*** your PATH or compiler configuration so that the native linker is
8430*** used, and then restart.
8431
8432_LT_EOF
8433      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8434	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8435	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8436      else
8437	ld_shlibs=no
8438      fi
8439      ;;
8440
8441    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8442      case `$LD -v 2>&1` in
8443        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8444	ld_shlibs=no
8445	cat <<_LT_EOF 1>&2
8446
8447*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8448*** reliably create shared libraries on SCO systems.  Therefore, libtool
8449*** is disabling shared libraries support.  We urge you to upgrade GNU
8450*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8451*** your PATH or compiler configuration so that the native linker is
8452*** used, and then restart.
8453
8454_LT_EOF
8455	;;
8456	*)
8457	  # For security reasons, it is highly recommended that you always
8458	  # use absolute paths for naming shared libraries, and exclude the
8459	  # DT_RUNPATH tag from executables and libraries.  But doing so
8460	  # requires that you compile everything twice, which is a pain.
8461	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8462	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8463	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8464	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8465	  else
8466	    ld_shlibs=no
8467	  fi
8468	;;
8469      esac
8470      ;;
8471
8472    sunos4*)
8473      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8474      wlarc=
8475      hardcode_direct=yes
8476      hardcode_shlibpath_var=no
8477      ;;
8478
8479    *)
8480      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8481	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8482	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8483      else
8484	ld_shlibs=no
8485      fi
8486      ;;
8487    esac
8488
8489    if test "$ld_shlibs" = no; then
8490      runpath_var=
8491      hardcode_libdir_flag_spec=
8492      export_dynamic_flag_spec=
8493      whole_archive_flag_spec=
8494    fi
8495  else
8496    # PORTME fill in a description of your system's linker (not GNU ld)
8497    case $host_os in
8498    aix3*)
8499      allow_undefined_flag=unsupported
8500      always_export_symbols=yes
8501      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'
8502      # Note: this linker hardcodes the directories in LIBPATH if there
8503      # are no directories specified by -L.
8504      hardcode_minus_L=yes
8505      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8506	# Neither direct hardcoding nor static linking is supported with a
8507	# broken collect2.
8508	hardcode_direct=unsupported
8509      fi
8510      ;;
8511
8512    aix[4-9]*)
8513      if test "$host_cpu" = ia64; then
8514	# On IA64, the linker does run time linking by default, so we don't
8515	# have to do anything special.
8516	aix_use_runtimelinking=no
8517	exp_sym_flag='-Bexport'
8518	no_entry_flag=""
8519      else
8520	# If we're using GNU nm, then we don't want the "-C" option.
8521	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8522	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8523	  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'
8524	else
8525	  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'
8526	fi
8527	aix_use_runtimelinking=no
8528
8529	# Test if we are trying to use run time linking or normal
8530	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8531	# need to do runtime linking.
8532	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8533	  for ld_flag in $LDFLAGS; do
8534	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8535	    aix_use_runtimelinking=yes
8536	    break
8537	  fi
8538	  done
8539	  ;;
8540	esac
8541
8542	exp_sym_flag='-bexport'
8543	no_entry_flag='-bnoentry'
8544      fi
8545
8546      # When large executables or shared objects are built, AIX ld can
8547      # have problems creating the table of contents.  If linking a library
8548      # or program results in "error TOC overflow" add -mminimal-toc to
8549      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8550      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8551
8552      archive_cmds=''
8553      hardcode_direct=yes
8554      hardcode_direct_absolute=yes
8555      hardcode_libdir_separator=':'
8556      link_all_deplibs=yes
8557      file_list_spec='${wl}-f,'
8558
8559      if test "$GCC" = yes; then
8560	case $host_os in aix4.[012]|aix4.[012].*)
8561	# We only want to do this on AIX 4.2 and lower, the check
8562	# below for broken collect2 doesn't work under 4.3+
8563	  collect2name=`${CC} -print-prog-name=collect2`
8564	  if test -f "$collect2name" &&
8565	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8566	  then
8567	  # We have reworked collect2
8568	  :
8569	  else
8570	  # We have old collect2
8571	  hardcode_direct=unsupported
8572	  # It fails to find uninstalled libraries when the uninstalled
8573	  # path is not listed in the libpath.  Setting hardcode_minus_L
8574	  # to unsupported forces relinking
8575	  hardcode_minus_L=yes
8576	  hardcode_libdir_flag_spec='-L$libdir'
8577	  hardcode_libdir_separator=
8578	  fi
8579	  ;;
8580	esac
8581	shared_flag='-shared'
8582	if test "$aix_use_runtimelinking" = yes; then
8583	  shared_flag="$shared_flag "'${wl}-G'
8584	fi
8585      else
8586	# not using gcc
8587	if test "$host_cpu" = ia64; then
8588	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8589	# chokes on -Wl,-G. The following line is correct:
8590	  shared_flag='-G'
8591	else
8592	  if test "$aix_use_runtimelinking" = yes; then
8593	    shared_flag='${wl}-G'
8594	  else
8595	    shared_flag='${wl}-bM:SRE'
8596	  fi
8597	fi
8598      fi
8599
8600      export_dynamic_flag_spec='${wl}-bexpall'
8601      # It seems that -bexpall does not export symbols beginning with
8602      # underscore (_), so it is better to generate a list of symbols to export.
8603      always_export_symbols=yes
8604      if test "$aix_use_runtimelinking" = yes; then
8605	# Warning - without using the other runtime loading flags (-brtl),
8606	# -berok will link without error, but may produce a broken library.
8607	allow_undefined_flag='-berok'
8608        # Determine the default libpath from the value encoded in an
8609        # empty executable.
8610        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611/* end confdefs.h.  */
8612
8613int
8614main ()
8615{
8616
8617  ;
8618  return 0;
8619}
8620_ACEOF
8621if ac_fn_c_try_link "$LINENO"; then :
8622
8623lt_aix_libpath_sed='
8624    /Import File Strings/,/^$/ {
8625	/^0/ {
8626	    s/^0  *\(.*\)$/\1/
8627	    p
8628	}
8629    }'
8630aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8631# Check for a 64-bit object if we didn't find anything.
8632if test -z "$aix_libpath"; then
8633  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8634fi
8635fi
8636rm -f core conftest.err conftest.$ac_objext \
8637    conftest$ac_exeext conftest.$ac_ext
8638if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8639
8640        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8641        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"
8642      else
8643	if test "$host_cpu" = ia64; then
8644	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8645	  allow_undefined_flag="-z nodefs"
8646	  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"
8647	else
8648	 # Determine the default libpath from the value encoded in an
8649	 # empty executable.
8650	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651/* end confdefs.h.  */
8652
8653int
8654main ()
8655{
8656
8657  ;
8658  return 0;
8659}
8660_ACEOF
8661if ac_fn_c_try_link "$LINENO"; then :
8662
8663lt_aix_libpath_sed='
8664    /Import File Strings/,/^$/ {
8665	/^0/ {
8666	    s/^0  *\(.*\)$/\1/
8667	    p
8668	}
8669    }'
8670aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8671# Check for a 64-bit object if we didn't find anything.
8672if test -z "$aix_libpath"; then
8673  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8674fi
8675fi
8676rm -f core conftest.err conftest.$ac_objext \
8677    conftest$ac_exeext conftest.$ac_ext
8678if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8679
8680	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8681	  # Warning - without using the other run time loading flags,
8682	  # -berok will link without error, but may produce a broken library.
8683	  no_undefined_flag=' ${wl}-bernotok'
8684	  allow_undefined_flag=' ${wl}-berok'
8685	  # Exported symbols can be pulled into shared objects from archives
8686	  whole_archive_flag_spec='$convenience'
8687	  archive_cmds_need_lc=yes
8688	  # This is similar to how AIX traditionally builds its shared libraries.
8689	  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'
8690	fi
8691      fi
8692      ;;
8693
8694    amigaos*)
8695      case $host_cpu in
8696      powerpc)
8697            # see comment about AmigaOS4 .so support
8698            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8699            archive_expsym_cmds=''
8700        ;;
8701      m68k)
8702            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)'
8703            hardcode_libdir_flag_spec='-L$libdir'
8704            hardcode_minus_L=yes
8705        ;;
8706      esac
8707      ;;
8708
8709    bsdi[45]*)
8710      export_dynamic_flag_spec=-rdynamic
8711      ;;
8712
8713    cygwin* | mingw* | pw32* | cegcc*)
8714      # When not using gcc, we currently assume that we are using
8715      # Microsoft Visual C++.
8716      # hardcode_libdir_flag_spec is actually meaningless, as there is
8717      # no search path for DLLs.
8718      hardcode_libdir_flag_spec=' '
8719      allow_undefined_flag=unsupported
8720      # Tell ltmain to make .lib files, not .a files.
8721      libext=lib
8722      # Tell ltmain to make .dll files, not .so files.
8723      shrext_cmds=".dll"
8724      # FIXME: Setting linknames here is a bad hack.
8725      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8726      # The linker will automatically build a .lib file if we build a DLL.
8727      old_archive_from_new_cmds='true'
8728      # FIXME: Should let the user specify the lib program.
8729      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8730      fix_srcfile_path='`cygpath -w "$srcfile"`'
8731      enable_shared_with_static_runtimes=yes
8732      ;;
8733
8734    darwin* | rhapsody*)
8735
8736
8737  archive_cmds_need_lc=no
8738  hardcode_direct=no
8739  hardcode_automatic=yes
8740  hardcode_shlibpath_var=unsupported
8741  whole_archive_flag_spec=''
8742  link_all_deplibs=yes
8743  allow_undefined_flag="$_lt_dar_allow_undefined"
8744  case $cc_basename in
8745     ifort*) _lt_dar_can_shared=yes ;;
8746     *) _lt_dar_can_shared=$GCC ;;
8747  esac
8748  if test "$_lt_dar_can_shared" = "yes"; then
8749    output_verbose_link_cmd=echo
8750    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8751    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8752    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}"
8753    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}"
8754
8755  else
8756  ld_shlibs=no
8757  fi
8758
8759      ;;
8760
8761    dgux*)
8762      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8763      hardcode_libdir_flag_spec='-L$libdir'
8764      hardcode_shlibpath_var=no
8765      ;;
8766
8767    freebsd1*)
8768      ld_shlibs=no
8769      ;;
8770
8771    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8772    # support.  Future versions do this automatically, but an explicit c++rt0.o
8773    # does not break anything, and helps significantly (at the cost of a little
8774    # extra space).
8775    freebsd2.2*)
8776      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8777      hardcode_libdir_flag_spec='-R$libdir'
8778      hardcode_direct=yes
8779      hardcode_shlibpath_var=no
8780      ;;
8781
8782    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8783    freebsd2*)
8784      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8785      hardcode_direct=yes
8786      hardcode_minus_L=yes
8787      hardcode_shlibpath_var=no
8788      ;;
8789
8790    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8791    freebsd* | dragonfly*)
8792      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8793      hardcode_libdir_flag_spec='-R$libdir'
8794      hardcode_direct=yes
8795      hardcode_shlibpath_var=no
8796      ;;
8797
8798    hpux9*)
8799      if test "$GCC" = yes; then
8800	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'
8801      else
8802	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'
8803      fi
8804      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8805      hardcode_libdir_separator=:
8806      hardcode_direct=yes
8807
8808      # hardcode_minus_L: Not really in the search PATH,
8809      # but as the default location of the library.
8810      hardcode_minus_L=yes
8811      export_dynamic_flag_spec='${wl}-E'
8812      ;;
8813
8814    hpux10*)
8815      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8816	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8817      else
8818	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8819      fi
8820      if test "$with_gnu_ld" = no; then
8821	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8822	hardcode_libdir_flag_spec_ld='+b $libdir'
8823	hardcode_libdir_separator=:
8824	hardcode_direct=yes
8825	hardcode_direct_absolute=yes
8826	export_dynamic_flag_spec='${wl}-E'
8827	# hardcode_minus_L: Not really in the search PATH,
8828	# but as the default location of the library.
8829	hardcode_minus_L=yes
8830      fi
8831      ;;
8832
8833    hpux11*)
8834      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8835	case $host_cpu in
8836	hppa*64*)
8837	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8838	  ;;
8839	ia64*)
8840	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8841	  ;;
8842	*)
8843	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8844	  ;;
8845	esac
8846      else
8847	case $host_cpu in
8848	hppa*64*)
8849	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8850	  ;;
8851	ia64*)
8852	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8853	  ;;
8854	*)
8855	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8856	  ;;
8857	esac
8858      fi
8859      if test "$with_gnu_ld" = no; then
8860	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8861	hardcode_libdir_separator=:
8862
8863	case $host_cpu in
8864	hppa*64*|ia64*)
8865	  hardcode_direct=no
8866	  hardcode_shlibpath_var=no
8867	  ;;
8868	*)
8869	  hardcode_direct=yes
8870	  hardcode_direct_absolute=yes
8871	  export_dynamic_flag_spec='${wl}-E'
8872
8873	  # hardcode_minus_L: Not really in the search PATH,
8874	  # but as the default location of the library.
8875	  hardcode_minus_L=yes
8876	  ;;
8877	esac
8878      fi
8879      ;;
8880
8881    irix5* | irix6* | nonstopux*)
8882      if test "$GCC" = yes; then
8883	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'
8884	# Try to use the -exported_symbol ld option, if it does not
8885	# work, assume that -exports_file does not work either and
8886	# implicitly export all symbols.
8887        save_LDFLAGS="$LDFLAGS"
8888        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8889        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890/* end confdefs.h.  */
8891int foo(void) {}
8892_ACEOF
8893if ac_fn_c_try_link "$LINENO"; then :
8894  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'
8895
8896fi
8897rm -f core conftest.err conftest.$ac_objext \
8898    conftest$ac_exeext conftest.$ac_ext
8899        LDFLAGS="$save_LDFLAGS"
8900      else
8901	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'
8902	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'
8903      fi
8904      archive_cmds_need_lc='no'
8905      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8906      hardcode_libdir_separator=:
8907      inherit_rpath=yes
8908      link_all_deplibs=yes
8909      ;;
8910
8911    netbsd*)
8912      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8913	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8914      else
8915	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8916      fi
8917      hardcode_libdir_flag_spec='-R$libdir'
8918      hardcode_direct=yes
8919      hardcode_shlibpath_var=no
8920      ;;
8921
8922    newsos6)
8923      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8924      hardcode_direct=yes
8925      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8926      hardcode_libdir_separator=:
8927      hardcode_shlibpath_var=no
8928      ;;
8929
8930    *nto* | *qnx*)
8931      ;;
8932
8933    openbsd*)
8934      if test -f /usr/libexec/ld.so; then
8935	hardcode_direct=yes
8936	hardcode_shlibpath_var=no
8937	hardcode_direct_absolute=yes
8938	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8939	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8940	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8941	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8942	  export_dynamic_flag_spec='${wl}-E'
8943	else
8944	  case $host_os in
8945	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8946	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8947	     hardcode_libdir_flag_spec='-R$libdir'
8948	     ;;
8949	   *)
8950	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8951	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8952	     ;;
8953	  esac
8954	fi
8955      else
8956	ld_shlibs=no
8957      fi
8958      ;;
8959
8960    os2*)
8961      hardcode_libdir_flag_spec='-L$libdir'
8962      hardcode_minus_L=yes
8963      allow_undefined_flag=unsupported
8964      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'
8965      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8966      ;;
8967
8968    osf3*)
8969      if test "$GCC" = yes; then
8970	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8971	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'
8972      else
8973	allow_undefined_flag=' -expect_unresolved \*'
8974	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'
8975      fi
8976      archive_cmds_need_lc='no'
8977      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8978      hardcode_libdir_separator=:
8979      ;;
8980
8981    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8982      if test "$GCC" = yes; then
8983	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8984	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'
8985	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8986      else
8987	allow_undefined_flag=' -expect_unresolved \*'
8988	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'
8989	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~
8990	$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'
8991
8992	# Both c and cxx compiler support -rpath directly
8993	hardcode_libdir_flag_spec='-rpath $libdir'
8994      fi
8995      archive_cmds_need_lc='no'
8996      hardcode_libdir_separator=:
8997      ;;
8998
8999    solaris*)
9000      no_undefined_flag=' -z defs'
9001      if test "$GCC" = yes; then
9002	wlarc='${wl}'
9003	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9004	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9005	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9006      else
9007	case `$CC -V 2>&1` in
9008	*"Compilers 5.0"*)
9009	  wlarc=''
9010	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9011	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9012	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9013	  ;;
9014	*)
9015	  wlarc='${wl}'
9016	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9017	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9018	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9019	  ;;
9020	esac
9021      fi
9022      hardcode_libdir_flag_spec='-R$libdir'
9023      hardcode_shlibpath_var=no
9024      case $host_os in
9025      solaris2.[0-5] | solaris2.[0-5].*) ;;
9026      *)
9027	# The compiler driver will combine and reorder linker options,
9028	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9029	# but is careful enough not to reorder.
9030	# Supported since Solaris 2.6 (maybe 2.5.1?)
9031	if test "$GCC" = yes; then
9032	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9033	else
9034	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9035	fi
9036	;;
9037      esac
9038      link_all_deplibs=yes
9039      ;;
9040
9041    sunos4*)
9042      if test "x$host_vendor" = xsequent; then
9043	# Use $CC to link under sequent, because it throws in some extra .o
9044	# files that make .init and .fini sections work.
9045	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9046      else
9047	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9048      fi
9049      hardcode_libdir_flag_spec='-L$libdir'
9050      hardcode_direct=yes
9051      hardcode_minus_L=yes
9052      hardcode_shlibpath_var=no
9053      ;;
9054
9055    sysv4)
9056      case $host_vendor in
9057	sni)
9058	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9059	  hardcode_direct=yes # is this really true???
9060	;;
9061	siemens)
9062	  ## LD is ld it makes a PLAMLIB
9063	  ## CC just makes a GrossModule.
9064	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9065	  reload_cmds='$CC -r -o $output$reload_objs'
9066	  hardcode_direct=no
9067        ;;
9068	motorola)
9069	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9070	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9071	;;
9072      esac
9073      runpath_var='LD_RUN_PATH'
9074      hardcode_shlibpath_var=no
9075      ;;
9076
9077    sysv4.3*)
9078      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079      hardcode_shlibpath_var=no
9080      export_dynamic_flag_spec='-Bexport'
9081      ;;
9082
9083    sysv4*MP*)
9084      if test -d /usr/nec; then
9085	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9086	hardcode_shlibpath_var=no
9087	runpath_var=LD_RUN_PATH
9088	hardcode_runpath_var=yes
9089	ld_shlibs=yes
9090      fi
9091      ;;
9092
9093    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9094      no_undefined_flag='${wl}-z,text'
9095      archive_cmds_need_lc=no
9096      hardcode_shlibpath_var=no
9097      runpath_var='LD_RUN_PATH'
9098
9099      if test "$GCC" = yes; then
9100	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9101	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9102      else
9103	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9104	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9105      fi
9106      ;;
9107
9108    sysv5* | sco3.2v5* | sco5v6*)
9109      # Note: We can NOT use -z defs as we might desire, because we do not
9110      # link with -lc, and that would cause any symbols used from libc to
9111      # always be unresolved, which means just about no library would
9112      # ever link correctly.  If we're not using GNU ld we use -z text
9113      # though, which does catch some bad symbols but isn't as heavy-handed
9114      # as -z defs.
9115      no_undefined_flag='${wl}-z,text'
9116      allow_undefined_flag='${wl}-z,nodefs'
9117      archive_cmds_need_lc=no
9118      hardcode_shlibpath_var=no
9119      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9120      hardcode_libdir_separator=':'
9121      link_all_deplibs=yes
9122      export_dynamic_flag_spec='${wl}-Bexport'
9123      runpath_var='LD_RUN_PATH'
9124
9125      if test "$GCC" = yes; then
9126	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9127	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9128      else
9129	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9130	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9131      fi
9132      ;;
9133
9134    uts4*)
9135      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9136      hardcode_libdir_flag_spec='-L$libdir'
9137      hardcode_shlibpath_var=no
9138      ;;
9139
9140    *)
9141      ld_shlibs=no
9142      ;;
9143    esac
9144
9145    if test x$host_vendor = xsni; then
9146      case $host in
9147      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9148	export_dynamic_flag_spec='${wl}-Blargedynsym'
9149	;;
9150      esac
9151    fi
9152  fi
9153
9154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9155$as_echo "$ld_shlibs" >&6; }
9156test "$ld_shlibs" = no && can_build_shared=no
9157
9158with_gnu_ld=$with_gnu_ld
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174#
9175# Do we need to explicitly link libc?
9176#
9177case "x$archive_cmds_need_lc" in
9178x|xyes)
9179  # Assume -lc should be added
9180  archive_cmds_need_lc=yes
9181
9182  if test "$enable_shared" = yes && test "$GCC" = yes; then
9183    case $archive_cmds in
9184    *'~'*)
9185      # FIXME: we may have to deal with multi-command sequences.
9186      ;;
9187    '$CC '*)
9188      # Test whether the compiler implicitly links with -lc since on some
9189      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9190      # to ld, don't add -lc before -lgcc.
9191      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9192$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9193      $RM conftest*
9194      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9195
9196      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9197  (eval $ac_compile) 2>&5
9198  ac_status=$?
9199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9200  test $ac_status = 0; } 2>conftest.err; then
9201        soname=conftest
9202        lib=conftest
9203        libobjs=conftest.$ac_objext
9204        deplibs=
9205        wl=$lt_prog_compiler_wl
9206	pic_flag=$lt_prog_compiler_pic
9207        compiler_flags=-v
9208        linker_flags=-v
9209        verstring=
9210        output_objdir=.
9211        libname=conftest
9212        lt_save_allow_undefined_flag=$allow_undefined_flag
9213        allow_undefined_flag=
9214        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9215  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9216  ac_status=$?
9217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9218  test $ac_status = 0; }
9219        then
9220	  archive_cmds_need_lc=no
9221        else
9222	  archive_cmds_need_lc=yes
9223        fi
9224        allow_undefined_flag=$lt_save_allow_undefined_flag
9225      else
9226        cat conftest.err 1>&5
9227      fi
9228      $RM conftest*
9229      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9230$as_echo "$archive_cmds_need_lc" >&6; }
9231      ;;
9232    esac
9233  fi
9234  ;;
9235esac
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
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9394$as_echo_n "checking dynamic linker characteristics... " >&6; }
9395
9396if test "$GCC" = yes; then
9397  case $host_os in
9398    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9399    *) lt_awk_arg="/^libraries:/" ;;
9400  esac
9401  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9402  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9403    # if the path contains ";" then we assume it to be the separator
9404    # otherwise default to the standard path separator (i.e. ":") - it is
9405    # assumed that no part of a normal pathname contains ";" but that should
9406    # okay in the real world where ";" in dirpaths is itself problematic.
9407    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9408  else
9409    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9410  fi
9411  # Ok, now we have the path, separated by spaces, we can step through it
9412  # and add multilib dir if necessary.
9413  lt_tmp_lt_search_path_spec=
9414  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9415  for lt_sys_path in $lt_search_path_spec; do
9416    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9417      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9418    else
9419      test -d "$lt_sys_path" && \
9420	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9421    fi
9422  done
9423  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9424BEGIN {RS=" "; FS="/|\n";} {
9425  lt_foo="";
9426  lt_count=0;
9427  for (lt_i = NF; lt_i > 0; lt_i--) {
9428    if ($lt_i != "" && $lt_i != ".") {
9429      if ($lt_i == "..") {
9430        lt_count++;
9431      } else {
9432        if (lt_count == 0) {
9433          lt_foo="/" $lt_i lt_foo;
9434        } else {
9435          lt_count--;
9436        }
9437      }
9438    }
9439  }
9440  if (lt_foo != "") { lt_freq[lt_foo]++; }
9441  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9442}'`
9443  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9444else
9445  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9446fi
9447library_names_spec=
9448libname_spec='lib$name'
9449soname_spec=
9450shrext_cmds=".so"
9451postinstall_cmds=
9452postuninstall_cmds=
9453finish_cmds=
9454finish_eval=
9455shlibpath_var=
9456shlibpath_overrides_runpath=unknown
9457version_type=none
9458dynamic_linker="$host_os ld.so"
9459sys_lib_dlsearch_path_spec="/lib /usr/lib"
9460need_lib_prefix=unknown
9461hardcode_into_libs=no
9462
9463# when you set need_version to no, make sure it does not cause -set_version
9464# flags to be left without arguments
9465need_version=unknown
9466
9467case $host_os in
9468aix3*)
9469  version_type=linux
9470  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9471  shlibpath_var=LIBPATH
9472
9473  # AIX 3 has no versioning support, so we append a major version to the name.
9474  soname_spec='${libname}${release}${shared_ext}$major'
9475  ;;
9476
9477aix[4-9]*)
9478  version_type=linux
9479  need_lib_prefix=no
9480  need_version=no
9481  hardcode_into_libs=yes
9482  if test "$host_cpu" = ia64; then
9483    # AIX 5 supports IA64
9484    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9485    shlibpath_var=LD_LIBRARY_PATH
9486  else
9487    # With GCC up to 2.95.x, collect2 would create an import file
9488    # for dependence libraries.  The import file would start with
9489    # the line `#! .'.  This would cause the generated library to
9490    # depend on `.', always an invalid library.  This was fixed in
9491    # development snapshots of GCC prior to 3.0.
9492    case $host_os in
9493      aix4 | aix4.[01] | aix4.[01].*)
9494      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9495	   echo ' yes '
9496	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9497	:
9498      else
9499	can_build_shared=no
9500      fi
9501      ;;
9502    esac
9503    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9504    # soname into executable. Probably we can add versioning support to
9505    # collect2, so additional links can be useful in future.
9506    if test "$aix_use_runtimelinking" = yes; then
9507      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9508      # instead of lib<name>.a to let people know that these are not
9509      # typical AIX shared libraries.
9510      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9511    else
9512      # We preserve .a as extension for shared libraries through AIX4.2
9513      # and later when we are not doing run time linking.
9514      library_names_spec='${libname}${release}.a $libname.a'
9515      soname_spec='${libname}${release}${shared_ext}$major'
9516    fi
9517    shlibpath_var=LIBPATH
9518  fi
9519  ;;
9520
9521amigaos*)
9522  case $host_cpu in
9523  powerpc)
9524    # Since July 2007 AmigaOS4 officially supports .so libraries.
9525    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9526    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527    ;;
9528  m68k)
9529    library_names_spec='$libname.ixlibrary $libname.a'
9530    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9531    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'
9532    ;;
9533  esac
9534  ;;
9535
9536beos*)
9537  library_names_spec='${libname}${shared_ext}'
9538  dynamic_linker="$host_os ld.so"
9539  shlibpath_var=LIBRARY_PATH
9540  ;;
9541
9542bsdi[45]*)
9543  version_type=linux
9544  need_version=no
9545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9546  soname_spec='${libname}${release}${shared_ext}$major'
9547  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9548  shlibpath_var=LD_LIBRARY_PATH
9549  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9550  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9551  # the default ld.so.conf also contains /usr/contrib/lib and
9552  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9553  # libtool to hard-code these into programs
9554  ;;
9555
9556cygwin* | mingw* | pw32* | cegcc*)
9557  version_type=windows
9558  shrext_cmds=".dll"
9559  need_version=no
9560  need_lib_prefix=no
9561
9562  case $GCC,$host_os in
9563  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9564    library_names_spec='$libname.dll.a'
9565    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9566    postinstall_cmds='base_file=`basename \${file}`~
9567      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9568      dldir=$destdir/`dirname \$dlpath`~
9569      test -d \$dldir || mkdir -p \$dldir~
9570      $install_prog $dir/$dlname \$dldir/$dlname~
9571      chmod a+x \$dldir/$dlname~
9572      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9573        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9574      fi'
9575    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9576      dlpath=$dir/\$dldll~
9577       $RM \$dlpath'
9578    shlibpath_overrides_runpath=yes
9579
9580    case $host_os in
9581    cygwin*)
9582      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9583      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9584      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9585      ;;
9586    mingw* | cegcc*)
9587      # MinGW DLLs use traditional 'lib' prefix
9588      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9589      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9590      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9591        # It is most probably a Windows format PATH printed by
9592        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9593        # path with ; separators, and with drive letters. We can handle the
9594        # drive letters (cygwin fileutils understands them), so leave them,
9595        # especially as we might pass files found there to a mingw objdump,
9596        # which wouldn't understand a cygwinified path. Ahh.
9597        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9598      else
9599        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9600      fi
9601      ;;
9602    pw32*)
9603      # pw32 DLLs use 'pw' prefix rather than 'lib'
9604      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9605      ;;
9606    esac
9607    ;;
9608
9609  *)
9610    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9611    ;;
9612  esac
9613  dynamic_linker='Win32 ld.exe'
9614  # FIXME: first we should search . and the directory the executable is in
9615  shlibpath_var=PATH
9616  ;;
9617
9618darwin* | rhapsody*)
9619  dynamic_linker="$host_os dyld"
9620  version_type=darwin
9621  need_lib_prefix=no
9622  need_version=no
9623  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9624  soname_spec='${libname}${release}${major}$shared_ext'
9625  shlibpath_overrides_runpath=yes
9626  shlibpath_var=DYLD_LIBRARY_PATH
9627  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9628
9629  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9630  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9631  ;;
9632
9633dgux*)
9634  version_type=linux
9635  need_lib_prefix=no
9636  need_version=no
9637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9638  soname_spec='${libname}${release}${shared_ext}$major'
9639  shlibpath_var=LD_LIBRARY_PATH
9640  ;;
9641
9642freebsd1*)
9643  dynamic_linker=no
9644  ;;
9645
9646freebsd* | dragonfly*)
9647  # DragonFly does not have aout.  When/if they implement a new
9648  # versioning mechanism, adjust this.
9649  if test -x /usr/bin/objformat; then
9650    objformat=`/usr/bin/objformat`
9651  else
9652    case $host_os in
9653    freebsd[123]*) objformat=aout ;;
9654    *) objformat=elf ;;
9655    esac
9656  fi
9657  version_type=freebsd-$objformat
9658  case $version_type in
9659    freebsd-elf*)
9660      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9661      need_version=no
9662      need_lib_prefix=no
9663      ;;
9664    freebsd-*)
9665      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9666      need_version=yes
9667      ;;
9668  esac
9669  shlibpath_var=LD_LIBRARY_PATH
9670  case $host_os in
9671  freebsd2*)
9672    shlibpath_overrides_runpath=yes
9673    ;;
9674  freebsd3.[01]* | freebsdelf3.[01]*)
9675    shlibpath_overrides_runpath=yes
9676    hardcode_into_libs=yes
9677    ;;
9678  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9679  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9680    shlibpath_overrides_runpath=no
9681    hardcode_into_libs=yes
9682    ;;
9683  *) # from 4.6 on, and DragonFly
9684    shlibpath_overrides_runpath=yes
9685    hardcode_into_libs=yes
9686    ;;
9687  esac
9688  ;;
9689
9690gnu*)
9691  version_type=linux
9692  need_lib_prefix=no
9693  need_version=no
9694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9695  soname_spec='${libname}${release}${shared_ext}$major'
9696  shlibpath_var=LD_LIBRARY_PATH
9697  hardcode_into_libs=yes
9698  ;;
9699
9700hpux9* | hpux10* | hpux11*)
9701  # Give a soname corresponding to the major version so that dld.sl refuses to
9702  # link against other versions.
9703  version_type=sunos
9704  need_lib_prefix=no
9705  need_version=no
9706  case $host_cpu in
9707  ia64*)
9708    shrext_cmds='.so'
9709    hardcode_into_libs=yes
9710    dynamic_linker="$host_os dld.so"
9711    shlibpath_var=LD_LIBRARY_PATH
9712    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9713    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9714    soname_spec='${libname}${release}${shared_ext}$major'
9715    if test "X$HPUX_IA64_MODE" = X32; then
9716      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9717    else
9718      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9719    fi
9720    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9721    ;;
9722  hppa*64*)
9723    shrext_cmds='.sl'
9724    hardcode_into_libs=yes
9725    dynamic_linker="$host_os dld.sl"
9726    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9727    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9728    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9729    soname_spec='${libname}${release}${shared_ext}$major'
9730    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9731    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9732    ;;
9733  *)
9734    shrext_cmds='.sl'
9735    dynamic_linker="$host_os dld.sl"
9736    shlibpath_var=SHLIB_PATH
9737    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9738    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9739    soname_spec='${libname}${release}${shared_ext}$major'
9740    ;;
9741  esac
9742  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9743  postinstall_cmds='chmod 555 $lib'
9744  ;;
9745
9746interix[3-9]*)
9747  version_type=linux
9748  need_lib_prefix=no
9749  need_version=no
9750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9751  soname_spec='${libname}${release}${shared_ext}$major'
9752  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9753  shlibpath_var=LD_LIBRARY_PATH
9754  shlibpath_overrides_runpath=no
9755  hardcode_into_libs=yes
9756  ;;
9757
9758irix5* | irix6* | nonstopux*)
9759  case $host_os in
9760    nonstopux*) version_type=nonstopux ;;
9761    *)
9762	if test "$lt_cv_prog_gnu_ld" = yes; then
9763		version_type=linux
9764	else
9765		version_type=irix
9766	fi ;;
9767  esac
9768  need_lib_prefix=no
9769  need_version=no
9770  soname_spec='${libname}${release}${shared_ext}$major'
9771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9772  case $host_os in
9773  irix5* | nonstopux*)
9774    libsuff= shlibsuff=
9775    ;;
9776  *)
9777    case $LD in # libtool.m4 will add one of these switches to LD
9778    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9779      libsuff= shlibsuff= libmagic=32-bit;;
9780    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9781      libsuff=32 shlibsuff=N32 libmagic=N32;;
9782    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9783      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9784    *) libsuff= shlibsuff= libmagic=never-match;;
9785    esac
9786    ;;
9787  esac
9788  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9789  shlibpath_overrides_runpath=no
9790  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9791  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9792  hardcode_into_libs=yes
9793  ;;
9794
9795# No shared lib support for Linux oldld, aout, or coff.
9796linux*oldld* | linux*aout* | linux*coff*)
9797  dynamic_linker=no
9798  ;;
9799
9800# This must be Linux ELF.
9801linux* | k*bsd*-gnu)
9802  version_type=linux
9803  need_lib_prefix=no
9804  need_version=no
9805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806  soname_spec='${libname}${release}${shared_ext}$major'
9807  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9808  shlibpath_var=LD_LIBRARY_PATH
9809  shlibpath_overrides_runpath=no
9810  # Some binutils ld are patched to set DT_RUNPATH
9811  save_LDFLAGS=$LDFLAGS
9812  save_libdir=$libdir
9813  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9814       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816/* end confdefs.h.  */
9817
9818int
9819main ()
9820{
9821
9822  ;
9823  return 0;
9824}
9825_ACEOF
9826if ac_fn_c_try_link "$LINENO"; then :
9827  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9828  shlibpath_overrides_runpath=yes
9829fi
9830fi
9831rm -f core conftest.err conftest.$ac_objext \
9832    conftest$ac_exeext conftest.$ac_ext
9833  LDFLAGS=$save_LDFLAGS
9834  libdir=$save_libdir
9835
9836  # This implies no fast_install, which is unacceptable.
9837  # Some rework will be needed to allow for fast_install
9838  # before this can be enabled.
9839  hardcode_into_libs=yes
9840
9841  # Append ld.so.conf contents to the search path
9842  if test -f /etc/ld.so.conf; then
9843    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' ' '`
9844    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9845  fi
9846
9847  # We used to test for /lib/ld.so.1 and disable shared libraries on
9848  # powerpc, because MkLinux only supported shared libraries with the
9849  # GNU dynamic linker.  Since this was broken with cross compilers,
9850  # most powerpc-linux boxes support dynamic linking these days and
9851  # people can always --disable-shared, the test was removed, and we
9852  # assume the GNU/Linux dynamic linker is in use.
9853  dynamic_linker='GNU/Linux ld.so'
9854  ;;
9855
9856netbsd*)
9857  version_type=sunos
9858  need_lib_prefix=no
9859  need_version=no
9860  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9861    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9862    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9863    dynamic_linker='NetBSD (a.out) ld.so'
9864  else
9865    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9866    soname_spec='${libname}${release}${shared_ext}$major'
9867    dynamic_linker='NetBSD ld.elf_so'
9868  fi
9869  shlibpath_var=LD_LIBRARY_PATH
9870  shlibpath_overrides_runpath=yes
9871  hardcode_into_libs=yes
9872  ;;
9873
9874newsos6)
9875  version_type=linux
9876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9877  shlibpath_var=LD_LIBRARY_PATH
9878  shlibpath_overrides_runpath=yes
9879  ;;
9880
9881*nto* | *qnx*)
9882  version_type=qnx
9883  need_lib_prefix=no
9884  need_version=no
9885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9886  soname_spec='${libname}${release}${shared_ext}$major'
9887  shlibpath_var=LD_LIBRARY_PATH
9888  shlibpath_overrides_runpath=no
9889  hardcode_into_libs=yes
9890  dynamic_linker='ldqnx.so'
9891  ;;
9892
9893openbsd*)
9894  version_type=sunos
9895  sys_lib_dlsearch_path_spec="/usr/lib"
9896  need_lib_prefix=no
9897  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9898  case $host_os in
9899    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9900    *)				need_version=no  ;;
9901  esac
9902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9903  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9904  shlibpath_var=LD_LIBRARY_PATH
9905  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9906    case $host_os in
9907      openbsd2.[89] | openbsd2.[89].*)
9908	shlibpath_overrides_runpath=no
9909	;;
9910      *)
9911	shlibpath_overrides_runpath=yes
9912	;;
9913      esac
9914  else
9915    shlibpath_overrides_runpath=yes
9916  fi
9917  ;;
9918
9919os2*)
9920  libname_spec='$name'
9921  shrext_cmds=".dll"
9922  need_lib_prefix=no
9923  library_names_spec='$libname${shared_ext} $libname.a'
9924  dynamic_linker='OS/2 ld.exe'
9925  shlibpath_var=LIBPATH
9926  ;;
9927
9928osf3* | osf4* | osf5*)
9929  version_type=osf
9930  need_lib_prefix=no
9931  need_version=no
9932  soname_spec='${libname}${release}${shared_ext}$major'
9933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934  shlibpath_var=LD_LIBRARY_PATH
9935  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9936  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9937  ;;
9938
9939rdos*)
9940  dynamic_linker=no
9941  ;;
9942
9943solaris*)
9944  version_type=linux
9945  need_lib_prefix=no
9946  need_version=no
9947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948  soname_spec='${libname}${release}${shared_ext}$major'
9949  shlibpath_var=LD_LIBRARY_PATH
9950  shlibpath_overrides_runpath=yes
9951  hardcode_into_libs=yes
9952  # ldd complains unless libraries are executable
9953  postinstall_cmds='chmod +x $lib'
9954  ;;
9955
9956sunos4*)
9957  version_type=sunos
9958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9959  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9960  shlibpath_var=LD_LIBRARY_PATH
9961  shlibpath_overrides_runpath=yes
9962  if test "$with_gnu_ld" = yes; then
9963    need_lib_prefix=no
9964  fi
9965  need_version=yes
9966  ;;
9967
9968sysv4 | sysv4.3*)
9969  version_type=linux
9970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9971  soname_spec='${libname}${release}${shared_ext}$major'
9972  shlibpath_var=LD_LIBRARY_PATH
9973  case $host_vendor in
9974    sni)
9975      shlibpath_overrides_runpath=no
9976      need_lib_prefix=no
9977      runpath_var=LD_RUN_PATH
9978      ;;
9979    siemens)
9980      need_lib_prefix=no
9981      ;;
9982    motorola)
9983      need_lib_prefix=no
9984      need_version=no
9985      shlibpath_overrides_runpath=no
9986      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9987      ;;
9988  esac
9989  ;;
9990
9991sysv4*MP*)
9992  if test -d /usr/nec ;then
9993    version_type=linux
9994    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9995    soname_spec='$libname${shared_ext}.$major'
9996    shlibpath_var=LD_LIBRARY_PATH
9997  fi
9998  ;;
9999
10000sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10001  version_type=freebsd-elf
10002  need_lib_prefix=no
10003  need_version=no
10004  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10005  soname_spec='${libname}${release}${shared_ext}$major'
10006  shlibpath_var=LD_LIBRARY_PATH
10007  shlibpath_overrides_runpath=yes
10008  hardcode_into_libs=yes
10009  if test "$with_gnu_ld" = yes; then
10010    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10011  else
10012    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10013    case $host_os in
10014      sco3.2v5*)
10015        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10016	;;
10017    esac
10018  fi
10019  sys_lib_dlsearch_path_spec='/usr/lib'
10020  ;;
10021
10022tpf*)
10023  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10024  version_type=linux
10025  need_lib_prefix=no
10026  need_version=no
10027  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028  shlibpath_var=LD_LIBRARY_PATH
10029  shlibpath_overrides_runpath=no
10030  hardcode_into_libs=yes
10031  ;;
10032
10033uts4*)
10034  version_type=linux
10035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10036  soname_spec='${libname}${release}${shared_ext}$major'
10037  shlibpath_var=LD_LIBRARY_PATH
10038  ;;
10039
10040*)
10041  dynamic_linker=no
10042  ;;
10043esac
10044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10045$as_echo "$dynamic_linker" >&6; }
10046test "$dynamic_linker" = no && can_build_shared=no
10047
10048variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10049if test "$GCC" = yes; then
10050  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10051fi
10052
10053if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10054  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10055fi
10056if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10057  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10058fi
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
10143
10144
10145
10146  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10147$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10148hardcode_action=
10149if test -n "$hardcode_libdir_flag_spec" ||
10150   test -n "$runpath_var" ||
10151   test "X$hardcode_automatic" = "Xyes" ; then
10152
10153  # We can hardcode non-existent directories.
10154  if test "$hardcode_direct" != no &&
10155     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10156     # have to relink, otherwise we might link with an installed library
10157     # when we should be linking with a yet-to-be-installed one
10158     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10159     test "$hardcode_minus_L" != no; then
10160    # Linking always hardcodes the temporary library directory.
10161    hardcode_action=relink
10162  else
10163    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10164    hardcode_action=immediate
10165  fi
10166else
10167  # We cannot hardcode anything, or else we can only hardcode existing
10168  # directories.
10169  hardcode_action=unsupported
10170fi
10171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10172$as_echo "$hardcode_action" >&6; }
10173
10174if test "$hardcode_action" = relink ||
10175   test "$inherit_rpath" = yes; then
10176  # Fast installation is not supported
10177  enable_fast_install=no
10178elif test "$shlibpath_overrides_runpath" = yes ||
10179     test "$enable_shared" = no; then
10180  # Fast installation is not necessary
10181  enable_fast_install=needless
10182fi
10183
10184
10185
10186
10187
10188
10189  if test "x$enable_dlopen" != xyes; then
10190  enable_dlopen=unknown
10191  enable_dlopen_self=unknown
10192  enable_dlopen_self_static=unknown
10193else
10194  lt_cv_dlopen=no
10195  lt_cv_dlopen_libs=
10196
10197  case $host_os in
10198  beos*)
10199    lt_cv_dlopen="load_add_on"
10200    lt_cv_dlopen_libs=
10201    lt_cv_dlopen_self=yes
10202    ;;
10203
10204  mingw* | pw32* | cegcc*)
10205    lt_cv_dlopen="LoadLibrary"
10206    lt_cv_dlopen_libs=
10207    ;;
10208
10209  cygwin*)
10210    lt_cv_dlopen="dlopen"
10211    lt_cv_dlopen_libs=
10212    ;;
10213
10214  darwin*)
10215  # if libdl is installed we need to link against it
10216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10217$as_echo_n "checking for dlopen in -ldl... " >&6; }
10218if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10219  $as_echo_n "(cached) " >&6
10220else
10221  ac_check_lib_save_LIBS=$LIBS
10222LIBS="-ldl  $LIBS"
10223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224/* end confdefs.h.  */
10225
10226/* Override any GCC internal prototype to avoid an error.
10227   Use char because int might match the return type of a GCC
10228   builtin and then its argument prototype would still apply.  */
10229#ifdef __cplusplus
10230extern "C"
10231#endif
10232char dlopen ();
10233int
10234main ()
10235{
10236return dlopen ();
10237  ;
10238  return 0;
10239}
10240_ACEOF
10241if ac_fn_c_try_link "$LINENO"; then :
10242  ac_cv_lib_dl_dlopen=yes
10243else
10244  ac_cv_lib_dl_dlopen=no
10245fi
10246rm -f core conftest.err conftest.$ac_objext \
10247    conftest$ac_exeext conftest.$ac_ext
10248LIBS=$ac_check_lib_save_LIBS
10249fi
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10251$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10252if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10253  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10254else
10255
10256    lt_cv_dlopen="dyld"
10257    lt_cv_dlopen_libs=
10258    lt_cv_dlopen_self=yes
10259
10260fi
10261
10262    ;;
10263
10264  *)
10265    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10266if test "x$ac_cv_func_shl_load" = x""yes; then :
10267  lt_cv_dlopen="shl_load"
10268else
10269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10270$as_echo_n "checking for shl_load in -ldld... " >&6; }
10271if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10272  $as_echo_n "(cached) " >&6
10273else
10274  ac_check_lib_save_LIBS=$LIBS
10275LIBS="-ldld  $LIBS"
10276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10277/* end confdefs.h.  */
10278
10279/* Override any GCC internal prototype to avoid an error.
10280   Use char because int might match the return type of a GCC
10281   builtin and then its argument prototype would still apply.  */
10282#ifdef __cplusplus
10283extern "C"
10284#endif
10285char shl_load ();
10286int
10287main ()
10288{
10289return shl_load ();
10290  ;
10291  return 0;
10292}
10293_ACEOF
10294if ac_fn_c_try_link "$LINENO"; then :
10295  ac_cv_lib_dld_shl_load=yes
10296else
10297  ac_cv_lib_dld_shl_load=no
10298fi
10299rm -f core conftest.err conftest.$ac_objext \
10300    conftest$ac_exeext conftest.$ac_ext
10301LIBS=$ac_check_lib_save_LIBS
10302fi
10303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10304$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10305if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10306  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10307else
10308  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10309if test "x$ac_cv_func_dlopen" = x""yes; then :
10310  lt_cv_dlopen="dlopen"
10311else
10312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10313$as_echo_n "checking for dlopen in -ldl... " >&6; }
10314if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10315  $as_echo_n "(cached) " >&6
10316else
10317  ac_check_lib_save_LIBS=$LIBS
10318LIBS="-ldl  $LIBS"
10319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320/* end confdefs.h.  */
10321
10322/* Override any GCC internal prototype to avoid an error.
10323   Use char because int might match the return type of a GCC
10324   builtin and then its argument prototype would still apply.  */
10325#ifdef __cplusplus
10326extern "C"
10327#endif
10328char dlopen ();
10329int
10330main ()
10331{
10332return dlopen ();
10333  ;
10334  return 0;
10335}
10336_ACEOF
10337if ac_fn_c_try_link "$LINENO"; then :
10338  ac_cv_lib_dl_dlopen=yes
10339else
10340  ac_cv_lib_dl_dlopen=no
10341fi
10342rm -f core conftest.err conftest.$ac_objext \
10343    conftest$ac_exeext conftest.$ac_ext
10344LIBS=$ac_check_lib_save_LIBS
10345fi
10346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10347$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10348if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10349  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10350else
10351  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10352$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10353if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10354  $as_echo_n "(cached) " >&6
10355else
10356  ac_check_lib_save_LIBS=$LIBS
10357LIBS="-lsvld  $LIBS"
10358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359/* end confdefs.h.  */
10360
10361/* Override any GCC internal prototype to avoid an error.
10362   Use char because int might match the return type of a GCC
10363   builtin and then its argument prototype would still apply.  */
10364#ifdef __cplusplus
10365extern "C"
10366#endif
10367char dlopen ();
10368int
10369main ()
10370{
10371return dlopen ();
10372  ;
10373  return 0;
10374}
10375_ACEOF
10376if ac_fn_c_try_link "$LINENO"; then :
10377  ac_cv_lib_svld_dlopen=yes
10378else
10379  ac_cv_lib_svld_dlopen=no
10380fi
10381rm -f core conftest.err conftest.$ac_objext \
10382    conftest$ac_exeext conftest.$ac_ext
10383LIBS=$ac_check_lib_save_LIBS
10384fi
10385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10386$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10387if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10388  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10389else
10390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10391$as_echo_n "checking for dld_link in -ldld... " >&6; }
10392if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10393  $as_echo_n "(cached) " >&6
10394else
10395  ac_check_lib_save_LIBS=$LIBS
10396LIBS="-ldld  $LIBS"
10397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398/* end confdefs.h.  */
10399
10400/* Override any GCC internal prototype to avoid an error.
10401   Use char because int might match the return type of a GCC
10402   builtin and then its argument prototype would still apply.  */
10403#ifdef __cplusplus
10404extern "C"
10405#endif
10406char dld_link ();
10407int
10408main ()
10409{
10410return dld_link ();
10411  ;
10412  return 0;
10413}
10414_ACEOF
10415if ac_fn_c_try_link "$LINENO"; then :
10416  ac_cv_lib_dld_dld_link=yes
10417else
10418  ac_cv_lib_dld_dld_link=no
10419fi
10420rm -f core conftest.err conftest.$ac_objext \
10421    conftest$ac_exeext conftest.$ac_ext
10422LIBS=$ac_check_lib_save_LIBS
10423fi
10424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10425$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10426if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10427  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10428fi
10429
10430
10431fi
10432
10433
10434fi
10435
10436
10437fi
10438
10439
10440fi
10441
10442
10443fi
10444
10445    ;;
10446  esac
10447
10448  if test "x$lt_cv_dlopen" != xno; then
10449    enable_dlopen=yes
10450  else
10451    enable_dlopen=no
10452  fi
10453
10454  case $lt_cv_dlopen in
10455  dlopen)
10456    save_CPPFLAGS="$CPPFLAGS"
10457    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10458
10459    save_LDFLAGS="$LDFLAGS"
10460    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10461
10462    save_LIBS="$LIBS"
10463    LIBS="$lt_cv_dlopen_libs $LIBS"
10464
10465    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10466$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10467if test "${lt_cv_dlopen_self+set}" = set; then :
10468  $as_echo_n "(cached) " >&6
10469else
10470  	  if test "$cross_compiling" = yes; then :
10471  lt_cv_dlopen_self=cross
10472else
10473  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10474  lt_status=$lt_dlunknown
10475  cat > conftest.$ac_ext <<_LT_EOF
10476#line 10476 "configure"
10477#include "confdefs.h"
10478
10479#if HAVE_DLFCN_H
10480#include <dlfcn.h>
10481#endif
10482
10483#include <stdio.h>
10484
10485#ifdef RTLD_GLOBAL
10486#  define LT_DLGLOBAL		RTLD_GLOBAL
10487#else
10488#  ifdef DL_GLOBAL
10489#    define LT_DLGLOBAL		DL_GLOBAL
10490#  else
10491#    define LT_DLGLOBAL		0
10492#  endif
10493#endif
10494
10495/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10496   find out it does not work in some platform. */
10497#ifndef LT_DLLAZY_OR_NOW
10498#  ifdef RTLD_LAZY
10499#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10500#  else
10501#    ifdef DL_LAZY
10502#      define LT_DLLAZY_OR_NOW		DL_LAZY
10503#    else
10504#      ifdef RTLD_NOW
10505#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10506#      else
10507#        ifdef DL_NOW
10508#          define LT_DLLAZY_OR_NOW	DL_NOW
10509#        else
10510#          define LT_DLLAZY_OR_NOW	0
10511#        endif
10512#      endif
10513#    endif
10514#  endif
10515#endif
10516
10517void fnord() { int i=42;}
10518int main ()
10519{
10520  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10521  int status = $lt_dlunknown;
10522
10523  if (self)
10524    {
10525      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10526      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10527      /* dlclose (self); */
10528    }
10529  else
10530    puts (dlerror ());
10531
10532  return status;
10533}
10534_LT_EOF
10535  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10536  (eval $ac_link) 2>&5
10537  ac_status=$?
10538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10539  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10540    (./conftest; exit; ) >&5 2>/dev/null
10541    lt_status=$?
10542    case x$lt_status in
10543      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10544      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10545      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10546    esac
10547  else :
10548    # compilation failed
10549    lt_cv_dlopen_self=no
10550  fi
10551fi
10552rm -fr conftest*
10553
10554
10555fi
10556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10557$as_echo "$lt_cv_dlopen_self" >&6; }
10558
10559    if test "x$lt_cv_dlopen_self" = xyes; then
10560      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10561      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10562$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10563if test "${lt_cv_dlopen_self_static+set}" = set; then :
10564  $as_echo_n "(cached) " >&6
10565else
10566  	  if test "$cross_compiling" = yes; then :
10567  lt_cv_dlopen_self_static=cross
10568else
10569  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10570  lt_status=$lt_dlunknown
10571  cat > conftest.$ac_ext <<_LT_EOF
10572#line 10572 "configure"
10573#include "confdefs.h"
10574
10575#if HAVE_DLFCN_H
10576#include <dlfcn.h>
10577#endif
10578
10579#include <stdio.h>
10580
10581#ifdef RTLD_GLOBAL
10582#  define LT_DLGLOBAL		RTLD_GLOBAL
10583#else
10584#  ifdef DL_GLOBAL
10585#    define LT_DLGLOBAL		DL_GLOBAL
10586#  else
10587#    define LT_DLGLOBAL		0
10588#  endif
10589#endif
10590
10591/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10592   find out it does not work in some platform. */
10593#ifndef LT_DLLAZY_OR_NOW
10594#  ifdef RTLD_LAZY
10595#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10596#  else
10597#    ifdef DL_LAZY
10598#      define LT_DLLAZY_OR_NOW		DL_LAZY
10599#    else
10600#      ifdef RTLD_NOW
10601#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10602#      else
10603#        ifdef DL_NOW
10604#          define LT_DLLAZY_OR_NOW	DL_NOW
10605#        else
10606#          define LT_DLLAZY_OR_NOW	0
10607#        endif
10608#      endif
10609#    endif
10610#  endif
10611#endif
10612
10613void fnord() { int i=42;}
10614int main ()
10615{
10616  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10617  int status = $lt_dlunknown;
10618
10619  if (self)
10620    {
10621      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10622      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10623      /* dlclose (self); */
10624    }
10625  else
10626    puts (dlerror ());
10627
10628  return status;
10629}
10630_LT_EOF
10631  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10632  (eval $ac_link) 2>&5
10633  ac_status=$?
10634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10635  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10636    (./conftest; exit; ) >&5 2>/dev/null
10637    lt_status=$?
10638    case x$lt_status in
10639      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10640      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10641      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10642    esac
10643  else :
10644    # compilation failed
10645    lt_cv_dlopen_self_static=no
10646  fi
10647fi
10648rm -fr conftest*
10649
10650
10651fi
10652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10653$as_echo "$lt_cv_dlopen_self_static" >&6; }
10654    fi
10655
10656    CPPFLAGS="$save_CPPFLAGS"
10657    LDFLAGS="$save_LDFLAGS"
10658    LIBS="$save_LIBS"
10659    ;;
10660  esac
10661
10662  case $lt_cv_dlopen_self in
10663  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10664  *) enable_dlopen_self=unknown ;;
10665  esac
10666
10667  case $lt_cv_dlopen_self_static in
10668  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10669  *) enable_dlopen_self_static=unknown ;;
10670  esac
10671fi
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689striplib=
10690old_striplib=
10691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10692$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10693if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10694  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10695  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10697$as_echo "yes" >&6; }
10698else
10699# FIXME - insert some real tests, host_os isn't really good enough
10700  case $host_os in
10701  darwin*)
10702    if test -n "$STRIP" ; then
10703      striplib="$STRIP -x"
10704      old_striplib="$STRIP -S"
10705      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10706$as_echo "yes" >&6; }
10707    else
10708      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709$as_echo "no" >&6; }
10710    fi
10711    ;;
10712  *)
10713    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10714$as_echo "no" >&6; }
10715    ;;
10716  esac
10717fi
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730  # Report which library types will actually be built
10731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10732$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10734$as_echo "$can_build_shared" >&6; }
10735
10736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10737$as_echo_n "checking whether to build shared libraries... " >&6; }
10738  test "$can_build_shared" = "no" && enable_shared=no
10739
10740  # On AIX, shared libraries and static libraries use the same namespace, and
10741  # are all built from PIC.
10742  case $host_os in
10743  aix3*)
10744    test "$enable_shared" = yes && enable_static=no
10745    if test -n "$RANLIB"; then
10746      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10747      postinstall_cmds='$RANLIB $lib'
10748    fi
10749    ;;
10750
10751  aix[4-9]*)
10752    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10753      test "$enable_shared" = yes && enable_static=no
10754    fi
10755    ;;
10756  esac
10757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10758$as_echo "$enable_shared" >&6; }
10759
10760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10761$as_echo_n "checking whether to build static libraries... " >&6; }
10762  # Make sure either enable_shared or enable_static is yes.
10763  test "$enable_shared" = yes || enable_static=yes
10764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10765$as_echo "$enable_static" >&6; }
10766
10767
10768
10769
10770fi
10771ac_ext=c
10772ac_cpp='$CPP $CPPFLAGS'
10773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10775ac_compiler_gnu=$ac_cv_c_compiler_gnu
10776
10777CC="$lt_save_CC"
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791        ac_config_commands="$ac_config_commands libtool"
10792
10793
10794
10795
10796# Only expand once:
10797
10798
10799for ac_prog in flex lex
10800do
10801  # Extract the first word of "$ac_prog", so it can be a program name with args.
10802set dummy $ac_prog; ac_word=$2
10803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10804$as_echo_n "checking for $ac_word... " >&6; }
10805if test "${ac_cv_prog_LEX+set}" = set; then :
10806  $as_echo_n "(cached) " >&6
10807else
10808  if test -n "$LEX"; then
10809  ac_cv_prog_LEX="$LEX" # Let the user override the test.
10810else
10811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10812for as_dir in $PATH
10813do
10814  IFS=$as_save_IFS
10815  test -z "$as_dir" && as_dir=.
10816    for ac_exec_ext in '' $ac_executable_extensions; do
10817  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10818    ac_cv_prog_LEX="$ac_prog"
10819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10820    break 2
10821  fi
10822done
10823  done
10824IFS=$as_save_IFS
10825
10826fi
10827fi
10828LEX=$ac_cv_prog_LEX
10829if test -n "$LEX"; then
10830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10831$as_echo "$LEX" >&6; }
10832else
10833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834$as_echo "no" >&6; }
10835fi
10836
10837
10838  test -n "$LEX" && break
10839done
10840test -n "$LEX" || LEX=":"
10841
10842if test "x$LEX" != "x:"; then
10843  cat >conftest.l <<_ACEOF
10844%%
10845a { ECHO; }
10846b { REJECT; }
10847c { yymore (); }
10848d { yyless (1); }
10849e { yyless (input () != 0); }
10850f { unput (yytext[0]); }
10851. { BEGIN INITIAL; }
10852%%
10853#ifdef YYTEXT_POINTER
10854extern char *yytext;
10855#endif
10856int
10857main (void)
10858{
10859  return ! yylex () + ! yywrap ();
10860}
10861_ACEOF
10862{ { ac_try="$LEX conftest.l"
10863case "(($ac_try" in
10864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865  *) ac_try_echo=$ac_try;;
10866esac
10867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10868$as_echo "$ac_try_echo"; } >&5
10869  (eval "$LEX conftest.l") 2>&5
10870  ac_status=$?
10871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10872  test $ac_status = 0; }
10873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
10874$as_echo_n "checking lex output file root... " >&6; }
10875if test "${ac_cv_prog_lex_root+set}" = set; then :
10876  $as_echo_n "(cached) " >&6
10877else
10878
10879if test -f lex.yy.c; then
10880  ac_cv_prog_lex_root=lex.yy
10881elif test -f lexyy.c; then
10882  ac_cv_prog_lex_root=lexyy
10883else
10884  as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
10885fi
10886fi
10887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
10888$as_echo "$ac_cv_prog_lex_root" >&6; }
10889LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10890
10891if test -z "${LEXLIB+set}"; then
10892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
10893$as_echo_n "checking lex library... " >&6; }
10894if test "${ac_cv_lib_lex+set}" = set; then :
10895  $as_echo_n "(cached) " >&6
10896else
10897
10898    ac_save_LIBS=$LIBS
10899    ac_cv_lib_lex='none needed'
10900    for ac_lib in '' -lfl -ll; do
10901      LIBS="$ac_lib $ac_save_LIBS"
10902      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903/* end confdefs.h.  */
10904`cat $LEX_OUTPUT_ROOT.c`
10905_ACEOF
10906if ac_fn_c_try_link "$LINENO"; then :
10907  ac_cv_lib_lex=$ac_lib
10908fi
10909rm -f core conftest.err conftest.$ac_objext \
10910    conftest$ac_exeext conftest.$ac_ext
10911      test "$ac_cv_lib_lex" != 'none needed' && break
10912    done
10913    LIBS=$ac_save_LIBS
10914
10915fi
10916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
10917$as_echo "$ac_cv_lib_lex" >&6; }
10918  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
10919fi
10920
10921
10922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
10923$as_echo_n "checking whether yytext is a pointer... " >&6; }
10924if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
10925  $as_echo_n "(cached) " >&6
10926else
10927  # POSIX says lex can declare yytext either as a pointer or an array; the
10928# default is implementation-dependent.  Figure out which it is, since
10929# not all implementations provide the %pointer and %array declarations.
10930ac_cv_prog_lex_yytext_pointer=no
10931ac_save_LIBS=$LIBS
10932LIBS="$LEXLIB $ac_save_LIBS"
10933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934/* end confdefs.h.  */
10935#define YYTEXT_POINTER 1
10936`cat $LEX_OUTPUT_ROOT.c`
10937_ACEOF
10938if ac_fn_c_try_link "$LINENO"; then :
10939  ac_cv_prog_lex_yytext_pointer=yes
10940fi
10941rm -f core conftest.err conftest.$ac_objext \
10942    conftest$ac_exeext conftest.$ac_ext
10943LIBS=$ac_save_LIBS
10944
10945fi
10946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
10947$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
10948if test $ac_cv_prog_lex_yytext_pointer = yes; then
10949
10950$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
10951
10952fi
10953rm -f conftest.l $LEX_OUTPUT_ROOT.c
10954
10955fi
10956for ac_prog in 'bison -y' byacc
10957do
10958  # Extract the first word of "$ac_prog", so it can be a program name with args.
10959set dummy $ac_prog; ac_word=$2
10960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10961$as_echo_n "checking for $ac_word... " >&6; }
10962if test "${ac_cv_prog_YACC+set}" = set; then :
10963  $as_echo_n "(cached) " >&6
10964else
10965  if test -n "$YACC"; then
10966  ac_cv_prog_YACC="$YACC" # Let the user override the test.
10967else
10968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969for as_dir in $PATH
10970do
10971  IFS=$as_save_IFS
10972  test -z "$as_dir" && as_dir=.
10973    for ac_exec_ext in '' $ac_executable_extensions; do
10974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10975    ac_cv_prog_YACC="$ac_prog"
10976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10977    break 2
10978  fi
10979done
10980  done
10981IFS=$as_save_IFS
10982
10983fi
10984fi
10985YACC=$ac_cv_prog_YACC
10986if test -n "$YACC"; then
10987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10988$as_echo "$YACC" >&6; }
10989else
10990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991$as_echo "no" >&6; }
10992fi
10993
10994
10995  test -n "$YACC" && break
10996done
10997test -n "$YACC" || YACC="yacc"
10998
10999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11000$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11001if test "${ac_cv_path_GREP+set}" = set; then :
11002  $as_echo_n "(cached) " >&6
11003else
11004  if test -z "$GREP"; then
11005  ac_path_GREP_found=false
11006  # Loop through the user's path and test for each of PROGNAME-LIST
11007  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11008for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11009do
11010  IFS=$as_save_IFS
11011  test -z "$as_dir" && as_dir=.
11012    for ac_prog in grep ggrep; do
11013    for ac_exec_ext in '' $ac_executable_extensions; do
11014      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11015      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
11016# Check for GNU ac_path_GREP and select it if it is found.
11017  # Check for GNU $ac_path_GREP
11018case `"$ac_path_GREP" --version 2>&1` in
11019*GNU*)
11020  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11021*)
11022  ac_count=0
11023  $as_echo_n 0123456789 >"conftest.in"
11024  while :
11025  do
11026    cat "conftest.in" "conftest.in" >"conftest.tmp"
11027    mv "conftest.tmp" "conftest.in"
11028    cp "conftest.in" "conftest.nl"
11029    $as_echo 'GREP' >> "conftest.nl"
11030    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11031    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11032    as_fn_arith $ac_count + 1 && ac_count=$as_val
11033    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11034      # Best one so far, save it but keep looking for a better one
11035      ac_cv_path_GREP="$ac_path_GREP"
11036      ac_path_GREP_max=$ac_count
11037    fi
11038    # 10*(2^10) chars as input seems more than enough
11039    test $ac_count -gt 10 && break
11040  done
11041  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11042esac
11043
11044      $ac_path_GREP_found && break 3
11045    done
11046  done
11047  done
11048IFS=$as_save_IFS
11049  if test -z "$ac_cv_path_GREP"; then
11050    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11051  fi
11052else
11053  ac_cv_path_GREP=$GREP
11054fi
11055
11056fi
11057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11058$as_echo "$ac_cv_path_GREP" >&6; }
11059 GREP="$ac_cv_path_GREP"
11060
11061
11062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11063$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11064if test "${lt_cv_path_NM+set}" = set; then :
11065  $as_echo_n "(cached) " >&6
11066else
11067  if test -n "$NM"; then
11068  # Let the user override the test.
11069  lt_cv_path_NM="$NM"
11070else
11071  lt_nm_to_check="${ac_tool_prefix}nm"
11072  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11073    lt_nm_to_check="$lt_nm_to_check nm"
11074  fi
11075  for lt_tmp_nm in $lt_nm_to_check; do
11076    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11077    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11078      IFS="$lt_save_ifs"
11079      test -z "$ac_dir" && ac_dir=.
11080      tmp_nm="$ac_dir/$lt_tmp_nm"
11081      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11082	# Check to see if the nm accepts a BSD-compat flag.
11083	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11084	#   nm: unknown option "B" ignored
11085	# Tru64's nm complains that /dev/null is an invalid object file
11086	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11087	*/dev/null* | *'Invalid file or object type'*)
11088	  lt_cv_path_NM="$tmp_nm -B"
11089	  break
11090	  ;;
11091	*)
11092	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11093	  */dev/null*)
11094	    lt_cv_path_NM="$tmp_nm -p"
11095	    break
11096	    ;;
11097	  *)
11098	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11099	    continue # so that we can try to find one that supports BSD flags
11100	    ;;
11101	  esac
11102	  ;;
11103	esac
11104      fi
11105    done
11106    IFS="$lt_save_ifs"
11107  done
11108  : ${lt_cv_path_NM=no}
11109fi
11110fi
11111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11112$as_echo "$lt_cv_path_NM" >&6; }
11113if test "$lt_cv_path_NM" != "no"; then
11114  NM="$lt_cv_path_NM"
11115else
11116  # Didn't find any BSD compatible name lister, look for dumpbin.
11117  if test -n "$ac_tool_prefix"; then
11118  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11119  do
11120    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11121set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11123$as_echo_n "checking for $ac_word... " >&6; }
11124if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11125  $as_echo_n "(cached) " >&6
11126else
11127  if test -n "$DUMPBIN"; then
11128  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11129else
11130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11131for as_dir in $PATH
11132do
11133  IFS=$as_save_IFS
11134  test -z "$as_dir" && as_dir=.
11135    for ac_exec_ext in '' $ac_executable_extensions; do
11136  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11137    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11139    break 2
11140  fi
11141done
11142  done
11143IFS=$as_save_IFS
11144
11145fi
11146fi
11147DUMPBIN=$ac_cv_prog_DUMPBIN
11148if test -n "$DUMPBIN"; then
11149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11150$as_echo "$DUMPBIN" >&6; }
11151else
11152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11153$as_echo "no" >&6; }
11154fi
11155
11156
11157    test -n "$DUMPBIN" && break
11158  done
11159fi
11160if test -z "$DUMPBIN"; then
11161  ac_ct_DUMPBIN=$DUMPBIN
11162  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11163do
11164  # Extract the first word of "$ac_prog", so it can be a program name with args.
11165set dummy $ac_prog; ac_word=$2
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167$as_echo_n "checking for $ac_word... " >&6; }
11168if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11169  $as_echo_n "(cached) " >&6
11170else
11171  if test -n "$ac_ct_DUMPBIN"; then
11172  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11173else
11174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175for as_dir in $PATH
11176do
11177  IFS=$as_save_IFS
11178  test -z "$as_dir" && as_dir=.
11179    for ac_exec_ext in '' $ac_executable_extensions; do
11180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11181    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11183    break 2
11184  fi
11185done
11186  done
11187IFS=$as_save_IFS
11188
11189fi
11190fi
11191ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11192if test -n "$ac_ct_DUMPBIN"; then
11193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11194$as_echo "$ac_ct_DUMPBIN" >&6; }
11195else
11196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197$as_echo "no" >&6; }
11198fi
11199
11200
11201  test -n "$ac_ct_DUMPBIN" && break
11202done
11203
11204  if test "x$ac_ct_DUMPBIN" = x; then
11205    DUMPBIN=":"
11206  else
11207    case $cross_compiling:$ac_tool_warned in
11208yes:)
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11211ac_tool_warned=yes ;;
11212esac
11213    DUMPBIN=$ac_ct_DUMPBIN
11214  fi
11215fi
11216
11217
11218  if test "$DUMPBIN" != ":"; then
11219    NM="$DUMPBIN"
11220  fi
11221fi
11222test -z "$NM" && NM=nm
11223
11224
11225
11226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11227$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11228if test "${lt_cv_nm_interface+set}" = set; then :
11229  $as_echo_n "(cached) " >&6
11230else
11231  lt_cv_nm_interface="BSD nm"
11232  echo "int some_variable = 0;" > conftest.$ac_ext
11233  (eval echo "\"\$as_me:11233: $ac_compile\"" >&5)
11234  (eval "$ac_compile" 2>conftest.err)
11235  cat conftest.err >&5
11236  (eval echo "\"\$as_me:11236: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11237  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11238  cat conftest.err >&5
11239  (eval echo "\"\$as_me:11239: output\"" >&5)
11240  cat conftest.out >&5
11241  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11242    lt_cv_nm_interface="MS dumpbin"
11243  fi
11244  rm -f conftest*
11245fi
11246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11247$as_echo "$lt_cv_nm_interface" >&6; }
11248
11249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11250$as_echo_n "checking for a sed that does not truncate output... " >&6; }
11251if test "${ac_cv_path_SED+set}" = set; then :
11252  $as_echo_n "(cached) " >&6
11253else
11254            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11255     for ac_i in 1 2 3 4 5 6 7; do
11256       ac_script="$ac_script$as_nl$ac_script"
11257     done
11258     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11259     { ac_script=; unset ac_script;}
11260     if test -z "$SED"; then
11261  ac_path_SED_found=false
11262  # Loop through the user's path and test for each of PROGNAME-LIST
11263  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264for as_dir in $PATH
11265do
11266  IFS=$as_save_IFS
11267  test -z "$as_dir" && as_dir=.
11268    for ac_prog in sed gsed; do
11269    for ac_exec_ext in '' $ac_executable_extensions; do
11270      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11271      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11272# Check for GNU ac_path_SED and select it if it is found.
11273  # Check for GNU $ac_path_SED
11274case `"$ac_path_SED" --version 2>&1` in
11275*GNU*)
11276  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11277*)
11278  ac_count=0
11279  $as_echo_n 0123456789 >"conftest.in"
11280  while :
11281  do
11282    cat "conftest.in" "conftest.in" >"conftest.tmp"
11283    mv "conftest.tmp" "conftest.in"
11284    cp "conftest.in" "conftest.nl"
11285    $as_echo '' >> "conftest.nl"
11286    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11287    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11288    as_fn_arith $ac_count + 1 && ac_count=$as_val
11289    if test $ac_count -gt ${ac_path_SED_max-0}; then
11290      # Best one so far, save it but keep looking for a better one
11291      ac_cv_path_SED="$ac_path_SED"
11292      ac_path_SED_max=$ac_count
11293    fi
11294    # 10*(2^10) chars as input seems more than enough
11295    test $ac_count -gt 10 && break
11296  done
11297  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11298esac
11299
11300      $ac_path_SED_found && break 3
11301    done
11302  done
11303  done
11304IFS=$as_save_IFS
11305  if test -z "$ac_cv_path_SED"; then
11306    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11307  fi
11308else
11309  ac_cv_path_SED=$SED
11310fi
11311
11312fi
11313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11314$as_echo "$ac_cv_path_SED" >&6; }
11315 SED="$ac_cv_path_SED"
11316  rm -f conftest.sed
11317
11318
11319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11320$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11321if test "${ac_cv_c_const+set}" = set; then :
11322  $as_echo_n "(cached) " >&6
11323else
11324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325/* end confdefs.h.  */
11326
11327int
11328main ()
11329{
11330/* FIXME: Include the comments suggested by Paul. */
11331#ifndef __cplusplus
11332  /* Ultrix mips cc rejects this.  */
11333  typedef int charset[2];
11334  const charset cs;
11335  /* SunOS 4.1.1 cc rejects this.  */
11336  char const *const *pcpcc;
11337  char **ppc;
11338  /* NEC SVR4.0.2 mips cc rejects this.  */
11339  struct point {int x, y;};
11340  static struct point const zero = {0,0};
11341  /* AIX XL C 1.02.0.0 rejects this.
11342     It does not let you subtract one const X* pointer from another in
11343     an arm of an if-expression whose if-part is not a constant
11344     expression */
11345  const char *g = "string";
11346  pcpcc = &g + (g ? g-g : 0);
11347  /* HPUX 7.0 cc rejects these. */
11348  ++pcpcc;
11349  ppc = (char**) pcpcc;
11350  pcpcc = (char const *const *) ppc;
11351  { /* SCO 3.2v4 cc rejects this.  */
11352    char *t;
11353    char const *s = 0 ? (char *) 0 : (char const *) 0;
11354
11355    *t++ = 0;
11356    if (s) return 0;
11357  }
11358  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11359    int x[] = {25, 17};
11360    const int *foo = &x[0];
11361    ++foo;
11362  }
11363  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11364    typedef const int *iptr;
11365    iptr p = 0;
11366    ++p;
11367  }
11368  { /* AIX XL C 1.02.0.0 rejects this saying
11369       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11370    struct s { int j; const int *ap[3]; };
11371    struct s *b; b->j = 5;
11372  }
11373  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11374    const int foo = 10;
11375    if (!foo) return 0;
11376  }
11377  return !cs[0] && !zero.x;
11378#endif
11379
11380  ;
11381  return 0;
11382}
11383_ACEOF
11384if ac_fn_c_try_compile "$LINENO"; then :
11385  ac_cv_c_const=yes
11386else
11387  ac_cv_c_const=no
11388fi
11389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11390fi
11391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11392$as_echo "$ac_cv_c_const" >&6; }
11393if test $ac_cv_c_const = no; then
11394
11395$as_echo "#define const /**/" >>confdefs.h
11396
11397fi
11398
11399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11400$as_echo_n "checking for inline... " >&6; }
11401if test "${ac_cv_c_inline+set}" = set; then :
11402  $as_echo_n "(cached) " >&6
11403else
11404  ac_cv_c_inline=no
11405for ac_kw in inline __inline__ __inline; do
11406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407/* end confdefs.h.  */
11408#ifndef __cplusplus
11409typedef int foo_t;
11410static $ac_kw foo_t static_foo () {return 0; }
11411$ac_kw foo_t foo () {return 0; }
11412#endif
11413
11414_ACEOF
11415if ac_fn_c_try_compile "$LINENO"; then :
11416  ac_cv_c_inline=$ac_kw
11417fi
11418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419  test "$ac_cv_c_inline" != no && break
11420done
11421
11422fi
11423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11424$as_echo "$ac_cv_c_inline" >&6; }
11425
11426case $ac_cv_c_inline in
11427  inline | yes) ;;
11428  *)
11429    case $ac_cv_c_inline in
11430      no) ac_val=;;
11431      *) ac_val=$ac_cv_c_inline;;
11432    esac
11433    cat >>confdefs.h <<_ACEOF
11434#ifndef __cplusplus
11435#define inline $ac_val
11436#endif
11437_ACEOF
11438    ;;
11439esac
11440
11441
11442
11443# headers
11444
11445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11446$as_echo_n "checking for ANSI C header files... " >&6; }
11447if test "${ac_cv_header_stdc+set}" = set; then :
11448  $as_echo_n "(cached) " >&6
11449else
11450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11451/* end confdefs.h.  */
11452#include <stdlib.h>
11453#include <stdarg.h>
11454#include <string.h>
11455#include <float.h>
11456
11457int
11458main ()
11459{
11460
11461  ;
11462  return 0;
11463}
11464_ACEOF
11465if ac_fn_c_try_compile "$LINENO"; then :
11466  ac_cv_header_stdc=yes
11467else
11468  ac_cv_header_stdc=no
11469fi
11470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11471
11472if test $ac_cv_header_stdc = yes; then
11473  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475/* end confdefs.h.  */
11476#include <string.h>
11477
11478_ACEOF
11479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11480  $EGREP "memchr" >/dev/null 2>&1; then :
11481
11482else
11483  ac_cv_header_stdc=no
11484fi
11485rm -f conftest*
11486
11487fi
11488
11489if test $ac_cv_header_stdc = yes; then
11490  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492/* end confdefs.h.  */
11493#include <stdlib.h>
11494
11495_ACEOF
11496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11497  $EGREP "free" >/dev/null 2>&1; then :
11498
11499else
11500  ac_cv_header_stdc=no
11501fi
11502rm -f conftest*
11503
11504fi
11505
11506if test $ac_cv_header_stdc = yes; then
11507  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11508  if test "$cross_compiling" = yes; then :
11509  :
11510else
11511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512/* end confdefs.h.  */
11513#include <ctype.h>
11514#include <stdlib.h>
11515#if ((' ' & 0x0FF) == 0x020)
11516# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11517# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11518#else
11519# define ISLOWER(c) \
11520		   (('a' <= (c) && (c) <= 'i') \
11521		     || ('j' <= (c) && (c) <= 'r') \
11522		     || ('s' <= (c) && (c) <= 'z'))
11523# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11524#endif
11525
11526#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11527int
11528main ()
11529{
11530  int i;
11531  for (i = 0; i < 256; i++)
11532    if (XOR (islower (i), ISLOWER (i))
11533	|| toupper (i) != TOUPPER (i))
11534      return 2;
11535  return 0;
11536}
11537_ACEOF
11538if ac_fn_c_try_run "$LINENO"; then :
11539
11540else
11541  ac_cv_header_stdc=no
11542fi
11543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11544  conftest.$ac_objext conftest.beam conftest.$ac_ext
11545fi
11546
11547fi
11548fi
11549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11550$as_echo "$ac_cv_header_stdc" >&6; }
11551if test $ac_cv_header_stdc = yes; then
11552
11553$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11554
11555fi
11556
11557for ac_header in unistd.h time.h limits.h ctype.h
11558do :
11559  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11560ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11561eval as_val=\$$as_ac_Header
11562   if test "x$as_val" = x""yes; then :
11563  cat >>confdefs.h <<_ACEOF
11564#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11565_ACEOF
11566
11567fi
11568
11569done
11570
11571
11572for ac_header in stdint.h
11573do :
11574  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11575if test "x$ac_cv_header_stdint_h" = x""yes; then :
11576  cat >>confdefs.h <<_ACEOF
11577#define HAVE_STDINT_H 1
11578_ACEOF
11579
11580    INCLUDE_INT_HEADER="#include <stdint.h>"
11581    INT32_T="int32_t"
11582    UINT32_T="uint32_t"
11583    INT64_T="int64_t"
11584    UINT64_T="uint64_t"
11585
11586else
11587
11588    ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
11589case $ac_cv_c_int32_t in #(
11590  no|yes) ;; #(
11591  *)
11592
11593cat >>confdefs.h <<_ACEOF
11594#define int32_t $ac_cv_c_int32_t
11595_ACEOF
11596;;
11597esac
11598
11599    test "x$ac_cv_c_int32_t" = "xyes" && INT32_T="int32_t" || INT32_T=$ac_cv_c_int32_t
11600    ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
11601case $ac_cv_c_uint32_t in #(
11602  no|yes) ;; #(
11603  *)
11604
11605$as_echo "#define _UINT32_T 1" >>confdefs.h
11606
11607
11608cat >>confdefs.h <<_ACEOF
11609#define uint32_t $ac_cv_c_uint32_t
11610_ACEOF
11611;;
11612  esac
11613
11614    test "x$ac_cv_c_uint32_t" = "xyes" && UINT32_T="uint32_t" || INT32_T=$ac_cv_c_uint32_t
11615    ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
11616case $ac_cv_c_int64_t in #(
11617  no|yes) ;; #(
11618  *)
11619
11620cat >>confdefs.h <<_ACEOF
11621#define int64_t $ac_cv_c_int64_t
11622_ACEOF
11623;;
11624esac
11625
11626    test "x$ac_cv_c_int64_t" = "xyes" && INT64_T="int64_t" || INT64_T=$ac_cv_c_int64_t
11627    ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
11628case $ac_cv_c_uint64_t in #(
11629  no|yes) ;; #(
11630  *)
11631
11632$as_echo "#define _UINT64_T 1" >>confdefs.h
11633
11634
11635cat >>confdefs.h <<_ACEOF
11636#define uint64_t $ac_cv_c_uint64_t
11637_ACEOF
11638;;
11639  esac
11640
11641    test "x$ac_cv_c_uint64_t" = "xyes" && UINT64_T="uint64_t" || INT64_T=$ac_cv_c_uint64_t
11642
11643
11644fi
11645
11646done
11647
11648
11649ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11650if test "x$ac_cv_type_size_t" = x""yes; then :
11651
11652else
11653
11654cat >>confdefs.h <<_ACEOF
11655#define size_t unsigned int
11656_ACEOF
11657
11658fi
11659
11660
11661# Extract the first word of "pkg-config", so it can be a program name with args.
11662set dummy pkg-config; ac_word=$2
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664$as_echo_n "checking for $ac_word... " >&6; }
11665if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then :
11666  $as_echo_n "(cached) " >&6
11667else
11668  if test -n "$HAVE_PKG_CONFIG"; then
11669  ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
11670else
11671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672for as_dir in $PATH
11673do
11674  IFS=$as_save_IFS
11675  test -z "$as_dir" && as_dir=.
11676    for ac_exec_ext in '' $ac_executable_extensions; do
11677  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678    ac_cv_prog_HAVE_PKG_CONFIG="yes"
11679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11680    break 2
11681  fi
11682done
11683  done
11684IFS=$as_save_IFS
11685
11686fi
11687fi
11688HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
11689if test -n "$HAVE_PKG_CONFIG"; then
11690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PKG_CONFIG" >&5
11691$as_echo "$HAVE_PKG_CONFIG" >&6; }
11692else
11693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694$as_echo "no" >&6; }
11695fi
11696
11697
11698
11699# Check whether --enable-doc was given.
11700if test "${enable_doc+set}" = set; then :
11701  enableval=$enable_doc;
11702fi
11703
11704if test "x$enable_doc" != "xno"
11705then
11706  # Extract the first word of "doxygen", so it can be a program name with args.
11707set dummy doxygen; ac_word=$2
11708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11709$as_echo_n "checking for $ac_word... " >&6; }
11710if test "${ac_cv_prog_HAVE_DOXYGEN+set}" = set; then :
11711  $as_echo_n "(cached) " >&6
11712else
11713  if test -n "$HAVE_DOXYGEN"; then
11714  ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
11715else
11716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717for as_dir in $PATH
11718do
11719  IFS=$as_save_IFS
11720  test -z "$as_dir" && as_dir=.
11721    for ac_exec_ext in '' $ac_executable_extensions; do
11722  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11723    ac_cv_prog_HAVE_DOXYGEN="yes"
11724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11725    break 2
11726  fi
11727done
11728  done
11729IFS=$as_save_IFS
11730
11731fi
11732fi
11733HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
11734if test -n "$HAVE_DOXYGEN"; then
11735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
11736$as_echo "$HAVE_DOXYGEN" >&6; }
11737else
11738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739$as_echo "no" >&6; }
11740fi
11741
11742
11743else
11744  HAVE_DOXYGEN="no"
11745fi
11746 if test "${HAVE_DOXYGEN}" = "yes"; then
11747  HAVE_DOXYGEN_TRUE=
11748  HAVE_DOXYGEN_FALSE='#'
11749else
11750  HAVE_DOXYGEN_TRUE='#'
11751  HAVE_DOXYGEN_FALSE=
11752fi
11753
11754
11755# Check whether --enable-valgrind was given.
11756if test "${enable_valgrind+set}" = set; then :
11757  enableval=$enable_valgrind;
11758fi
11759
11760if test "x$enable_valgrind" = "xyes"
11761then
11762  # Extract the first word of "valgrind", so it can be a program name with args.
11763set dummy valgrind; ac_word=$2
11764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11765$as_echo_n "checking for $ac_word... " >&6; }
11766if test "${ac_cv_path_VALGRIND+set}" = set; then :
11767  $as_echo_n "(cached) " >&6
11768else
11769  case $VALGRIND in
11770  [\\/]* | ?:[\\/]*)
11771  ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
11772  ;;
11773  *)
11774  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775for as_dir in $PATH
11776do
11777  IFS=$as_save_IFS
11778  test -z "$as_dir" && as_dir=.
11779    for ac_exec_ext in '' $ac_executable_extensions; do
11780  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11781    ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
11782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11783    break 2
11784  fi
11785done
11786  done
11787IFS=$as_save_IFS
11788
11789  ;;
11790esac
11791fi
11792VALGRIND=$ac_cv_path_VALGRIND
11793if test -n "$VALGRIND"; then
11794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
11795$as_echo "$VALGRIND" >&6; }
11796else
11797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798$as_echo "no" >&6; }
11799fi
11800
11801
11802  if test "x$VALGRIND" != "x"
11803  then
11804    VALGRIND="$VALGRIND -q --leak-check=full --show-reachable=yes"
11805  fi
11806fi
11807
11808# Extract the first word of "oggz", so it can be a program name with args.
11809set dummy oggz; ac_word=$2
11810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811$as_echo_n "checking for $ac_word... " >&6; }
11812if test "${ac_cv_path_OGGZ+set}" = set; then :
11813  $as_echo_n "(cached) " >&6
11814else
11815  case $OGGZ in
11816  [\\/]* | ?:[\\/]*)
11817  ac_cv_path_OGGZ="$OGGZ" # Let the user override the test with a path.
11818  ;;
11819  *)
11820  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821for as_dir in $PATH
11822do
11823  IFS=$as_save_IFS
11824  test -z "$as_dir" && as_dir=.
11825    for ac_exec_ext in '' $ac_executable_extensions; do
11826  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11827    ac_cv_path_OGGZ="$as_dir/$ac_word$ac_exec_ext"
11828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11829    break 2
11830  fi
11831done
11832  done
11833IFS=$as_save_IFS
11834
11835  ;;
11836esac
11837fi
11838OGGZ=$ac_cv_path_OGGZ
11839if test -n "$OGGZ"; then
11840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OGGZ" >&5
11841$as_echo "$OGGZ" >&6; }
11842else
11843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844$as_echo "no" >&6; }
11845fi
11846
11847
11848if test "x$OGGZ" != "x"
11849then
11850  OGG_MERGE="oggz merge"
11851  OGG_DIFF="oggz diff"
11852else
11853  # Extract the first word of "oggz-merge", so it can be a program name with args.
11854set dummy oggz-merge; ac_word=$2
11855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856$as_echo_n "checking for $ac_word... " >&6; }
11857if test "${ac_cv_path_OGG_MERGE+set}" = set; then :
11858  $as_echo_n "(cached) " >&6
11859else
11860  case $OGG_MERGE in
11861  [\\/]* | ?:[\\/]*)
11862  ac_cv_path_OGG_MERGE="$OGG_MERGE" # Let the user override the test with a path.
11863  ;;
11864  *)
11865  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866for as_dir in $PATH
11867do
11868  IFS=$as_save_IFS
11869  test -z "$as_dir" && as_dir=.
11870    for ac_exec_ext in '' $ac_executable_extensions; do
11871  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11872    ac_cv_path_OGG_MERGE="$as_dir/$ac_word$ac_exec_ext"
11873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11874    break 2
11875  fi
11876done
11877  done
11878IFS=$as_save_IFS
11879
11880  ;;
11881esac
11882fi
11883OGG_MERGE=$ac_cv_path_OGG_MERGE
11884if test -n "$OGG_MERGE"; then
11885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OGG_MERGE" >&5
11886$as_echo "$OGG_MERGE" >&6; }
11887else
11888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889$as_echo "no" >&6; }
11890fi
11891
11892
11893  if test "x$OGG_MERGE" = "x"
11894  then
11895    # Extract the first word of "oggzmerge", so it can be a program name with args.
11896set dummy oggzmerge; ac_word=$2
11897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11898$as_echo_n "checking for $ac_word... " >&6; }
11899if test "${ac_cv_path_OGG_MERGE+set}" = set; then :
11900  $as_echo_n "(cached) " >&6
11901else
11902  case $OGG_MERGE in
11903  [\\/]* | ?:[\\/]*)
11904  ac_cv_path_OGG_MERGE="$OGG_MERGE" # Let the user override the test with a path.
11905  ;;
11906  *)
11907  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908for as_dir in $PATH
11909do
11910  IFS=$as_save_IFS
11911  test -z "$as_dir" && as_dir=.
11912    for ac_exec_ext in '' $ac_executable_extensions; do
11913  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11914    ac_cv_path_OGG_MERGE="$as_dir/$ac_word$ac_exec_ext"
11915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11916    break 2
11917  fi
11918done
11919  done
11920IFS=$as_save_IFS
11921
11922  ;;
11923esac
11924fi
11925OGG_MERGE=$ac_cv_path_OGG_MERGE
11926if test -n "$OGG_MERGE"; then
11927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OGG_MERGE" >&5
11928$as_echo "$OGG_MERGE" >&6; }
11929else
11930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931$as_echo "no" >&6; }
11932fi
11933
11934
11935    if test "x$OGG_MERGE" = "x"
11936    then
11937      # Extract the first word of "oggmerge", so it can be a program name with args.
11938set dummy oggmerge; ac_word=$2
11939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940$as_echo_n "checking for $ac_word... " >&6; }
11941if test "${ac_cv_path_OGG_MERGE+set}" = set; then :
11942  $as_echo_n "(cached) " >&6
11943else
11944  case $OGG_MERGE in
11945  [\\/]* | ?:[\\/]*)
11946  ac_cv_path_OGG_MERGE="$OGG_MERGE" # Let the user override the test with a path.
11947  ;;
11948  *)
11949  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950for as_dir in $PATH
11951do
11952  IFS=$as_save_IFS
11953  test -z "$as_dir" && as_dir=.
11954    for ac_exec_ext in '' $ac_executable_extensions; do
11955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956    ac_cv_path_OGG_MERGE="$as_dir/$ac_word$ac_exec_ext"
11957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958    break 2
11959  fi
11960done
11961  done
11962IFS=$as_save_IFS
11963
11964  ;;
11965esac
11966fi
11967OGG_MERGE=$ac_cv_path_OGG_MERGE
11968if test -n "$OGG_MERGE"; then
11969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OGG_MERGE" >&5
11970$as_echo "$OGG_MERGE" >&6; }
11971else
11972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973$as_echo "no" >&6; }
11974fi
11975
11976
11977    fi
11978  fi
11979  # Extract the first word of "oggz-diff", so it can be a program name with args.
11980set dummy oggz-diff; ac_word=$2
11981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11982$as_echo_n "checking for $ac_word... " >&6; }
11983if test "${ac_cv_path_OGG_DIFF+set}" = set; then :
11984  $as_echo_n "(cached) " >&6
11985else
11986  case $OGG_DIFF in
11987  [\\/]* | ?:[\\/]*)
11988  ac_cv_path_OGG_DIFF="$OGG_DIFF" # Let the user override the test with a path.
11989  ;;
11990  *)
11991  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992for as_dir in $PATH
11993do
11994  IFS=$as_save_IFS
11995  test -z "$as_dir" && as_dir=.
11996    for ac_exec_ext in '' $ac_executable_extensions; do
11997  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11998    ac_cv_path_OGG_DIFF="$as_dir/$ac_word$ac_exec_ext"
11999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12000    break 2
12001  fi
12002done
12003  done
12004IFS=$as_save_IFS
12005
12006  ;;
12007esac
12008fi
12009OGG_DIFF=$ac_cv_path_OGG_DIFF
12010if test -n "$OGG_DIFF"; then
12011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OGG_DIFF" >&5
12012$as_echo "$OGG_DIFF" >&6; }
12013else
12014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12015$as_echo "no" >&6; }
12016fi
12017
12018
12019  if test "x$OGG_DIFF" = "x"
12020  then
12021    # Extract the first word of "oggzdiff", so it can be a program name with args.
12022set dummy oggzdiff; ac_word=$2
12023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12024$as_echo_n "checking for $ac_word... " >&6; }
12025if test "${ac_cv_path_OGG_DIFF+set}" = set; then :
12026  $as_echo_n "(cached) " >&6
12027else
12028  case $OGG_DIFF in
12029  [\\/]* | ?:[\\/]*)
12030  ac_cv_path_OGG_DIFF="$OGG_DIFF" # Let the user override the test with a path.
12031  ;;
12032  *)
12033  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12034for as_dir in $PATH
12035do
12036  IFS=$as_save_IFS
12037  test -z "$as_dir" && as_dir=.
12038    for ac_exec_ext in '' $ac_executable_extensions; do
12039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12040    ac_cv_path_OGG_DIFF="$as_dir/$ac_word$ac_exec_ext"
12041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12042    break 2
12043  fi
12044done
12045  done
12046IFS=$as_save_IFS
12047
12048  ;;
12049esac
12050fi
12051OGG_DIFF=$ac_cv_path_OGG_DIFF
12052if test -n "$OGG_DIFF"; then
12053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OGG_DIFF" >&5
12054$as_echo "$OGG_DIFF" >&6; }
12055else
12056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12057$as_echo "no" >&6; }
12058fi
12059
12060
12061    if test "x$OGG_DIFF" = "x"
12062    then
12063      # Extract the first word of "cmp", so it can be a program name with args.
12064set dummy cmp; ac_word=$2
12065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12066$as_echo_n "checking for $ac_word... " >&6; }
12067if test "${ac_cv_path_OGG_DIFF+set}" = set; then :
12068  $as_echo_n "(cached) " >&6
12069else
12070  case $OGG_DIFF in
12071  [\\/]* | ?:[\\/]*)
12072  ac_cv_path_OGG_DIFF="$OGG_DIFF" # Let the user override the test with a path.
12073  ;;
12074  *)
12075  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12076for as_dir in $PATH
12077do
12078  IFS=$as_save_IFS
12079  test -z "$as_dir" && as_dir=.
12080    for ac_exec_ext in '' $ac_executable_extensions; do
12081  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12082    ac_cv_path_OGG_DIFF="$as_dir/$ac_word$ac_exec_ext"
12083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12084    break 2
12085  fi
12086done
12087  done
12088IFS=$as_save_IFS
12089
12090  ;;
12091esac
12092fi
12093OGG_DIFF=$ac_cv_path_OGG_DIFF
12094if test -n "$OGG_DIFF"; then
12095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OGG_DIFF" >&5
12096$as_echo "$OGG_DIFF" >&6; }
12097else
12098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12099$as_echo "no" >&6; }
12100fi
12101
12102
12103    fi
12104  fi
12105fi
12106 if test "x${OGG_MERGE}" != "x"; then
12107  HAVE_OGG_MERGE_TRUE=
12108  HAVE_OGG_MERGE_FALSE='#'
12109else
12110  HAVE_OGG_MERGE_TRUE='#'
12111  HAVE_OGG_MERGE_FALSE=
12112fi
12113
12114
12115
12116
12117
12118
12119        # Find any Python interpreter.
12120    if test -z "$PYTHON"; then
12121      for ac_prog in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
12122do
12123  # Extract the first word of "$ac_prog", so it can be a program name with args.
12124set dummy $ac_prog; ac_word=$2
12125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126$as_echo_n "checking for $ac_word... " >&6; }
12127if test "${ac_cv_path_PYTHON+set}" = set; then :
12128  $as_echo_n "(cached) " >&6
12129else
12130  case $PYTHON in
12131  [\\/]* | ?:[\\/]*)
12132  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12133  ;;
12134  *)
12135  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136for as_dir in $PATH
12137do
12138  IFS=$as_save_IFS
12139  test -z "$as_dir" && as_dir=.
12140    for ac_exec_ext in '' $ac_executable_extensions; do
12141  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12142    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12144    break 2
12145  fi
12146done
12147  done
12148IFS=$as_save_IFS
12149
12150  ;;
12151esac
12152fi
12153PYTHON=$ac_cv_path_PYTHON
12154if test -n "$PYTHON"; then
12155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12156$as_echo "$PYTHON" >&6; }
12157else
12158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159$as_echo "no" >&6; }
12160fi
12161
12162
12163  test -n "$PYTHON" && break
12164done
12165test -n "$PYTHON" || PYTHON=":"
12166
12167    fi
12168    am_display_PYTHON=python
12169
12170
12171  if test "$PYTHON" = :; then
12172      HAVE_PYTHON=no
12173  else
12174
12175
12176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12177$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12178if test "${am_cv_python_version+set}" = set; then :
12179  $as_echo_n "(cached) " >&6
12180else
12181  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12182fi
12183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12184$as_echo "$am_cv_python_version" >&6; }
12185  PYTHON_VERSION=$am_cv_python_version
12186
12187
12188
12189  PYTHON_PREFIX='${prefix}'
12190
12191  PYTHON_EXEC_PREFIX='${exec_prefix}'
12192
12193
12194
12195  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12196$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12197if test "${am_cv_python_platform+set}" = set; then :
12198  $as_echo_n "(cached) " >&6
12199else
12200  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12201fi
12202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12203$as_echo "$am_cv_python_platform" >&6; }
12204  PYTHON_PLATFORM=$am_cv_python_platform
12205
12206
12207
12208
12209                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12210$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12211if test "${am_cv_python_pythondir+set}" = set; then :
12212  $as_echo_n "(cached) " >&6
12213else
12214  if test "x$prefix" = xNONE
12215     then
12216       am_py_prefix=$ac_default_prefix
12217     else
12218       am_py_prefix=$prefix
12219     fi
12220     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
12221     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
12222     case $am_cv_python_pythondir in
12223     $am_py_prefix*)
12224       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
12225       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
12226       ;;
12227     esac
12228
12229fi
12230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12231$as_echo "$am_cv_python_pythondir" >&6; }
12232  pythondir=$am_cv_python_pythondir
12233
12234
12235
12236  pkgpythondir=\${pythondir}/$PACKAGE
12237
12238
12239            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12240$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12241if test "${am_cv_python_pyexecdir+set}" = set; then :
12242  $as_echo_n "(cached) " >&6
12243else
12244  if test "x$exec_prefix" = xNONE
12245     then
12246       am_py_exec_prefix=$am_py_prefix
12247     else
12248       am_py_exec_prefix=$exec_prefix
12249     fi
12250     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
12251     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
12252     case $am_cv_python_pyexecdir in
12253     $am_py_exec_prefix*)
12254       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
12255       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
12256       ;;
12257     esac
12258
12259fi
12260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12261$as_echo "$am_cv_python_pyexecdir" >&6; }
12262  pyexecdir=$am_cv_python_pyexecdir
12263
12264
12265
12266  pkgpyexecdir=\${pyexecdir}/$PACKAGE
12267
12268
12269    HAVE_PYTHON=yes
12270  fi
12271
12272
12273 if test "${HAVE_PYTHON}" = "yes"; then
12274  HAVE_PYTHON_TRUE='#'
12275  HAVE_PYTHON_FALSE=
12276else
12277  HAVE_PYTHON_TRUE='#'
12278  HAVE_PYTHON_FALSE=
12279fi
12280
12281
12282for ac_prog in md5sum md5 sha1sum
12283do
12284  # Extract the first word of "$ac_prog", so it can be a program name with args.
12285set dummy $ac_prog; ac_word=$2
12286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12287$as_echo_n "checking for $ac_word... " >&6; }
12288if test "${ac_cv_prog_GENHASH+set}" = set; then :
12289  $as_echo_n "(cached) " >&6
12290else
12291  if test -n "$GENHASH"; then
12292  ac_cv_prog_GENHASH="$GENHASH" # Let the user override the test.
12293else
12294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295for as_dir in $PATH
12296do
12297  IFS=$as_save_IFS
12298  test -z "$as_dir" && as_dir=.
12299    for ac_exec_ext in '' $ac_executable_extensions; do
12300  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12301    ac_cv_prog_GENHASH="$ac_prog"
12302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12303    break 2
12304  fi
12305done
12306  done
12307IFS=$as_save_IFS
12308
12309fi
12310fi
12311GENHASH=$ac_cv_prog_GENHASH
12312if test -n "$GENHASH"; then
12313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHASH" >&5
12314$as_echo "$GENHASH" >&6; }
12315else
12316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12317$as_echo "no" >&6; }
12318fi
12319
12320
12321  test -n "$GENHASH" && break
12322done
12323
12324
12325VERSION_MAJOR=`echo $VERSION | $SED 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
12326VERSION_MINOR=`echo $VERSION | $SED 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
12327VERSION_PATCH=`echo $VERSION | $SED 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
12328
12329if test "x$HAVE_PKG_CONFIG" = "xyes"
12330then
12331
12332
12333if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12334	if test -n "$ac_tool_prefix"; then
12335  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12336set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12338$as_echo_n "checking for $ac_word... " >&6; }
12339if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12340  $as_echo_n "(cached) " >&6
12341else
12342  case $PKG_CONFIG in
12343  [\\/]* | ?:[\\/]*)
12344  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12345  ;;
12346  *)
12347  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348for as_dir in $PATH
12349do
12350  IFS=$as_save_IFS
12351  test -z "$as_dir" && as_dir=.
12352    for ac_exec_ext in '' $ac_executable_extensions; do
12353  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12354    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12356    break 2
12357  fi
12358done
12359  done
12360IFS=$as_save_IFS
12361
12362  ;;
12363esac
12364fi
12365PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12366if test -n "$PKG_CONFIG"; then
12367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12368$as_echo "$PKG_CONFIG" >&6; }
12369else
12370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371$as_echo "no" >&6; }
12372fi
12373
12374
12375fi
12376if test -z "$ac_cv_path_PKG_CONFIG"; then
12377  ac_pt_PKG_CONFIG=$PKG_CONFIG
12378  # Extract the first word of "pkg-config", so it can be a program name with args.
12379set dummy pkg-config; ac_word=$2
12380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12381$as_echo_n "checking for $ac_word... " >&6; }
12382if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
12383  $as_echo_n "(cached) " >&6
12384else
12385  case $ac_pt_PKG_CONFIG in
12386  [\\/]* | ?:[\\/]*)
12387  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12388  ;;
12389  *)
12390  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12391for as_dir in $PATH
12392do
12393  IFS=$as_save_IFS
12394  test -z "$as_dir" && as_dir=.
12395    for ac_exec_ext in '' $ac_executable_extensions; do
12396  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12397    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12399    break 2
12400  fi
12401done
12402  done
12403IFS=$as_save_IFS
12404
12405  ;;
12406esac
12407fi
12408ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12409if test -n "$ac_pt_PKG_CONFIG"; then
12410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12411$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12412else
12413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414$as_echo "no" >&6; }
12415fi
12416
12417  if test "x$ac_pt_PKG_CONFIG" = x; then
12418    PKG_CONFIG=""
12419  else
12420    case $cross_compiling:$ac_tool_warned in
12421yes:)
12422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12424ac_tool_warned=yes ;;
12425esac
12426    PKG_CONFIG=$ac_pt_PKG_CONFIG
12427  fi
12428else
12429  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12430fi
12431
12432fi
12433if test -n "$PKG_CONFIG"; then
12434	_pkg_min_version=0.9.0
12435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12436$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12437	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12438		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12439$as_echo "yes" >&6; }
12440	else
12441		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442$as_echo "no" >&6; }
12443		PKG_CONFIG=""
12444	fi
12445
12446fi
12447
12448pkg_failed=no
12449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OGG" >&5
12450$as_echo_n "checking for OGG... " >&6; }
12451
12452if test -n "$OGG_CFLAGS"; then
12453    pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
12454 elif test -n "$PKG_CONFIG"; then
12455    if test -n "$PKG_CONFIG" && \
12456    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5
12457  ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
12458  ac_status=$?
12459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12460  test $ac_status = 0; }; then
12461  pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0" 2>/dev/null`
12462else
12463  pkg_failed=yes
12464fi
12465 else
12466    pkg_failed=untried
12467fi
12468if test -n "$OGG_LIBS"; then
12469    pkg_cv_OGG_LIBS="$OGG_LIBS"
12470 elif test -n "$PKG_CONFIG"; then
12471    if test -n "$PKG_CONFIG" && \
12472    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\""; } >&5
12473  ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
12474  ac_status=$?
12475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12476  test $ac_status = 0; }; then
12477  pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0" 2>/dev/null`
12478else
12479  pkg_failed=yes
12480fi
12481 else
12482    pkg_failed=untried
12483fi
12484
12485
12486
12487if test $pkg_failed = yes; then
12488
12489if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12490        _pkg_short_errors_supported=yes
12491else
12492        _pkg_short_errors_supported=no
12493fi
12494        if test $_pkg_short_errors_supported = yes; then
12495	        OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ogg >= 1.0" 2>&1`
12496        else
12497	        OGG_PKG_ERRORS=`$PKG_CONFIG --print-errors "ogg >= 1.0" 2>&1`
12498        fi
12499	# Put the nasty error message in config.log where it belongs
12500	echo "$OGG_PKG_ERRORS" >&5
12501
12502	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503$as_echo "no" >&6; }
12504                HAVE_OGG=no
12505elif test $pkg_failed = untried; then
12506	HAVE_OGG=no
12507else
12508	OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
12509	OGG_LIBS=$pkg_cv_OGG_LIBS
12510        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12511$as_echo "yes" >&6; }
12512	HAVE_OGG=yes
12513fi
12514fi
12515if test "x$HAVE_OGG" = "xno"
12516then
12517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ogg_sync_init in -logg" >&5
12518$as_echo_n "checking for ogg_sync_init in -logg... " >&6; }
12519if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then :
12520  $as_echo_n "(cached) " >&6
12521else
12522  ac_check_lib_save_LIBS=$LIBS
12523LIBS="-logg  $LIBS"
12524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525/* end confdefs.h.  */
12526
12527/* Override any GCC internal prototype to avoid an error.
12528   Use char because int might match the return type of a GCC
12529   builtin and then its argument prototype would still apply.  */
12530#ifdef __cplusplus
12531extern "C"
12532#endif
12533char ogg_sync_init ();
12534int
12535main ()
12536{
12537return ogg_sync_init ();
12538  ;
12539  return 0;
12540}
12541_ACEOF
12542if ac_fn_c_try_link "$LINENO"; then :
12543  ac_cv_lib_ogg_ogg_sync_init=yes
12544else
12545  ac_cv_lib_ogg_ogg_sync_init=no
12546fi
12547rm -f core conftest.err conftest.$ac_objext \
12548    conftest$ac_exeext conftest.$ac_ext
12549LIBS=$ac_check_lib_save_LIBS
12550fi
12551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
12552$as_echo "$ac_cv_lib_ogg_ogg_sync_init" >&6; }
12553if test "x$ac_cv_lib_ogg_ogg_sync_init" = x""yes; then :
12554
12555      ac_fn_c_check_header_mongrel "$LINENO" "ogg/ogg.h" "ac_cv_header_ogg_ogg_h" "$ac_includes_default"
12556if test "x$ac_cv_header_ogg_ogg_h" = x""yes; then :
12557  HAVE_OGG=yes
12558else
12559  HAVE_OGG=no
12560fi
12561
12562
12563
12564else
12565  HAVE_OGG=no
12566
12567fi
12568
12569fi
12570 if test "x${HAVE_OGG}" = "xyes"; then
12571  HAVE_OGG_TRUE=
12572  HAVE_OGG_FALSE='#'
12573else
12574  HAVE_OGG_TRUE='#'
12575  HAVE_OGG_FALSE=
12576fi
12577
12578
12579if test "x$HAVE_PKG_CONFIG" = "xyes"
12580then
12581
12582pkg_failed=no
12583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12584$as_echo_n "checking for PNG... " >&6; }
12585
12586if test -n "$PNG_CFLAGS"; then
12587    pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12588 elif test -n "$PKG_CONFIG"; then
12589    if test -n "$PKG_CONFIG" && \
12590    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
12591  ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
12592  ac_status=$?
12593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12594  test $ac_status = 0; }; then
12595  pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
12596else
12597  pkg_failed=yes
12598fi
12599 else
12600    pkg_failed=untried
12601fi
12602if test -n "$PNG_LIBS"; then
12603    pkg_cv_PNG_LIBS="$PNG_LIBS"
12604 elif test -n "$PKG_CONFIG"; then
12605    if test -n "$PKG_CONFIG" && \
12606    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
12607  ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
12608  ac_status=$?
12609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12610  test $ac_status = 0; }; then
12611  pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
12612else
12613  pkg_failed=yes
12614fi
12615 else
12616    pkg_failed=untried
12617fi
12618
12619
12620
12621if test $pkg_failed = yes; then
12622
12623if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12624        _pkg_short_errors_supported=yes
12625else
12626        _pkg_short_errors_supported=no
12627fi
12628        if test $_pkg_short_errors_supported = yes; then
12629	        PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1`
12630        else
12631	        PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1`
12632        fi
12633	# Put the nasty error message in config.log where it belongs
12634	echo "$PNG_PKG_ERRORS" >&5
12635
12636	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637$as_echo "no" >&6; }
12638                HAVE_PNG=no
12639elif test $pkg_failed = untried; then
12640	HAVE_PNG=no
12641else
12642	PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12643	PNG_LIBS=$pkg_cv_PNG_LIBS
12644        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12645$as_echo "yes" >&6; }
12646	HAVE_PNG=yes
12647fi
12648fi
12649if test "x$HAVE_PNG" = "xno"
12650then
12651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_init in -lpng" >&5
12652$as_echo_n "checking for png_read_init in -lpng... " >&6; }
12653if test "${ac_cv_lib_png_png_read_init+set}" = set; then :
12654  $as_echo_n "(cached) " >&6
12655else
12656  ac_check_lib_save_LIBS=$LIBS
12657LIBS="-lpng  $LIBS"
12658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659/* end confdefs.h.  */
12660
12661/* Override any GCC internal prototype to avoid an error.
12662   Use char because int might match the return type of a GCC
12663   builtin and then its argument prototype would still apply.  */
12664#ifdef __cplusplus
12665extern "C"
12666#endif
12667char png_read_init ();
12668int
12669main ()
12670{
12671return png_read_init ();
12672  ;
12673  return 0;
12674}
12675_ACEOF
12676if ac_fn_c_try_link "$LINENO"; then :
12677  ac_cv_lib_png_png_read_init=yes
12678else
12679  ac_cv_lib_png_png_read_init=no
12680fi
12681rm -f core conftest.err conftest.$ac_objext \
12682    conftest$ac_exeext conftest.$ac_ext
12683LIBS=$ac_check_lib_save_LIBS
12684fi
12685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_init" >&5
12686$as_echo "$ac_cv_lib_png_png_read_init" >&6; }
12687if test "x$ac_cv_lib_png_png_read_init" = x""yes; then :
12688
12689      ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
12690if test "x$ac_cv_header_png_h" = x""yes; then :
12691  HAVE_PNG=yes
12692else
12693  HAVE_PNG=no
12694fi
12695
12696
12697
12698else
12699  HAVE_PNG=no
12700
12701fi
12702
12703fi
12704if test "x$HAVE_PNG" = "xyes"
12705then
12706
12707$as_echo "#define HAVE_PNG 1" >>confdefs.h
12708
12709fi
12710 if test "${HAVE_PNG}" = "yes"; then
12711  HAVE_PNG_TRUE=
12712  HAVE_PNG_FALSE='#'
12713else
12714  HAVE_PNG_TRUE='#'
12715  HAVE_PNG_FALSE=
12716fi
12717
12718
12719CWARNFLAGS_LIGHT=""
12720if test "x$GCC" = "xyes"
12721then
12722  CWARNFLAGS_LIGHT="$CWARNFLAGS_LIGHT -Wall -W"
12723fi
12724
12725CWARNFLAGS_FULL="$CWARNFLAGS_LIGHT"
12726
12727# Check whether --enable-more_warnings was given.
12728if test "${enable_more_warnings+set}" = set; then :
12729  enableval=$enable_more_warnings;
12730fi
12731
12732if test "x$enable_more_warnings" = "xyes"
12733then
12734  if test "x$GCC" = "xyes"
12735  then
12736    CWARNFLAGS_LIGHT="$CWARNFLAGS_LIGHT -Wdeclaration-after-statement -Wcast-qual -Wcast-align"
12737    CWARNFLAGS_LIGHT="$CWARNFLAGS_LIGHT -Winit-self -Wcast-align -pedantic -Wformat=2 -Wunused"
12738    CWARNFLAGS_LIGHT="$CWARNFLAGS_LIGHT -Wstrict-aliasing=2 -Wpointer-arith -Wbad-function-cast -Waggregate-return"
12739
12740    CWARNFLAGS_FULL="$CWARNFLAGS_LIGHT"
12741    CWARNFLAGS_FULL="$CWARNFLAGS_FULL -Wshadow -Wsign-compare -Wredundant-decls -Wmissing-prototypes -Wundef -Wmissing-declarations"
12742  fi
12743fi
12744
12745#ifeq ($(SPAMMY_WARNINGS),1)
12746#CWARNFLAGS_FULL="$CWARNFLAGS_FULL -Wconversion"
12747#CWARNFLAGS_LIGHT="$CWARNFLAGS_FULL"
12748#endif
12749
12750# Check whether --enable-debug was given.
12751if test "${enable_debug+set}" = set; then :
12752  enableval=$enable_debug;
12753fi
12754
12755if test "x$enable_debug" = "xyes"
12756then
12757  CFLAGS_DEBUG="-DDEBUG"
12758fi
12759
12760# Check whether --enable-fortify_source was given.
12761if test "${enable_fortify_source+set}" = set; then :
12762  enableval=$enable_fortify_source;
12763fi
12764
12765if test "x$enable_fortify_source" = "xyes"
12766then
12767  CFLAGS_FORTIFY_SOURCE="-D_FORTIFY_SOURCE=2"
12768fi
12769
12770STREAMS="bspline kate empty demo minimal karaoke unicode path bom markup font utf8test z metadata"
12771STREAMS="$STREAMS style periodic granule justify"
12772if test "x$HAVE_PNG" = "xyes"
12773then
12774  STREAMS="$STREAMS png"
12775fi
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796ac_config_files="$ac_config_files Makefile tools/Makefile tools/KateDJ/Makefile tools/KateDJ/kdj/constants.py doc/Makefile doc/man/kateenc.1 doc/man/katedec.1 doc/man/katalyzer.1 doc/man/KateDJ.1 include/kate/kate.h tests/Makefile misc/pkgconfig/kate.pc misc/pkgconfig/kate-uninstalled.pc misc/pkgconfig/oggkate.pc misc/pkgconfig/oggkate-uninstalled.pc doc/kate.doxygen"
12797
12798cat >confcache <<\_ACEOF
12799# This file is a shell script that caches the results of configure
12800# tests run on this system so they can be shared between configure
12801# scripts and configure runs, see configure's option --config-cache.
12802# It is not useful on other systems.  If it contains results you don't
12803# want to keep, you may remove or edit it.
12804#
12805# config.status only pays attention to the cache file if you give it
12806# the --recheck option to rerun configure.
12807#
12808# `ac_cv_env_foo' variables (set or unset) will be overridden when
12809# loading this file, other *unset* `ac_cv_foo' will be assigned the
12810# following values.
12811
12812_ACEOF
12813
12814# The following way of writing the cache mishandles newlines in values,
12815# but we know of no workaround that is simple, portable, and efficient.
12816# So, we kill variables containing newlines.
12817# Ultrix sh set writes to stderr and can't be redirected directly,
12818# and sets the high bit in the cache file unless we assign to the vars.
12819(
12820  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12821    eval ac_val=\$$ac_var
12822    case $ac_val in #(
12823    *${as_nl}*)
12824      case $ac_var in #(
12825      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12826$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12827      esac
12828      case $ac_var in #(
12829      _ | IFS | as_nl) ;; #(
12830      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12831      *) { eval $ac_var=; unset $ac_var;} ;;
12832      esac ;;
12833    esac
12834  done
12835
12836  (set) 2>&1 |
12837    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12838    *${as_nl}ac_space=\ *)
12839      # `set' does not quote correctly, so add quotes: double-quote
12840      # substitution turns \\\\ into \\, and sed turns \\ into \.
12841      sed -n \
12842	"s/'/'\\\\''/g;
12843	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12844      ;; #(
12845    *)
12846      # `set' quotes correctly as required by POSIX, so do not add quotes.
12847      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12848      ;;
12849    esac |
12850    sort
12851) |
12852  sed '
12853     /^ac_cv_env_/b end
12854     t clear
12855     :clear
12856     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12857     t end
12858     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12859     :end' >>confcache
12860if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12861  if test -w "$cache_file"; then
12862    test "x$cache_file" != "x/dev/null" &&
12863      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12864$as_echo "$as_me: updating cache $cache_file" >&6;}
12865    cat confcache >$cache_file
12866  else
12867    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12868$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12869  fi
12870fi
12871rm -f confcache
12872
12873test "x$prefix" = xNONE && prefix=$ac_default_prefix
12874# Let make expand exec_prefix.
12875test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12876
12877DEFS=-DHAVE_CONFIG_H
12878
12879ac_libobjs=
12880ac_ltlibobjs=
12881for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12882  # 1. Remove the extension, and $U if already installed.
12883  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12884  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12885  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12886  #    will be set to the directory where LIBOBJS objects are built.
12887  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12888  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12889done
12890LIBOBJS=$ac_libobjs
12891
12892LTLIBOBJS=$ac_ltlibobjs
12893
12894
12895 if test -n "$EXEEXT"; then
12896  am__EXEEXT_TRUE=
12897  am__EXEEXT_FALSE='#'
12898else
12899  am__EXEEXT_TRUE='#'
12900  am__EXEEXT_FALSE=
12901fi
12902
12903if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12904  as_fn_error "conditional \"AMDEP\" was never defined.
12905Usually this means the macro was only invoked conditionally." "$LINENO" 5
12906fi
12907if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12908  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12909Usually this means the macro was only invoked conditionally." "$LINENO" 5
12910fi
12911if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
12912  as_fn_error "conditional \"HAVE_DOXYGEN\" was never defined.
12913Usually this means the macro was only invoked conditionally." "$LINENO" 5
12914fi
12915if test -z "${HAVE_OGG_MERGE_TRUE}" && test -z "${HAVE_OGG_MERGE_FALSE}"; then
12916  as_fn_error "conditional \"HAVE_OGG_MERGE\" was never defined.
12917Usually this means the macro was only invoked conditionally." "$LINENO" 5
12918fi
12919if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
12920  as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
12921Usually this means the macro was only invoked conditionally." "$LINENO" 5
12922fi
12923if test -z "${HAVE_OGG_TRUE}" && test -z "${HAVE_OGG_FALSE}"; then
12924  as_fn_error "conditional \"HAVE_OGG\" was never defined.
12925Usually this means the macro was only invoked conditionally." "$LINENO" 5
12926fi
12927if test -z "${HAVE_PNG_TRUE}" && test -z "${HAVE_PNG_FALSE}"; then
12928  as_fn_error "conditional \"HAVE_PNG\" was never defined.
12929Usually this means the macro was only invoked conditionally." "$LINENO" 5
12930fi
12931
12932: ${CONFIG_STATUS=./config.status}
12933ac_write_fail=0
12934ac_clean_files_save=$ac_clean_files
12935ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12936{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12937$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12938as_write_fail=0
12939cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12940#! $SHELL
12941# Generated by $as_me.
12942# Run this file to recreate the current configuration.
12943# Compiler output produced by configure, useful for debugging
12944# configure, is in config.log if it exists.
12945
12946debug=false
12947ac_cs_recheck=false
12948ac_cs_silent=false
12949
12950SHELL=\${CONFIG_SHELL-$SHELL}
12951export SHELL
12952_ASEOF
12953cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12954## -------------------- ##
12955## M4sh Initialization. ##
12956## -------------------- ##
12957
12958# Be more Bourne compatible
12959DUALCASE=1; export DUALCASE # for MKS sh
12960if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12961  emulate sh
12962  NULLCMD=:
12963  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12964  # is contrary to our usage.  Disable this feature.
12965  alias -g '${1+"$@"}'='"$@"'
12966  setopt NO_GLOB_SUBST
12967else
12968  case `(set -o) 2>/dev/null` in #(
12969  *posix*) :
12970    set -o posix ;; #(
12971  *) :
12972     ;;
12973esac
12974fi
12975
12976
12977as_nl='
12978'
12979export as_nl
12980# Printing a long string crashes Solaris 7 /usr/bin/printf.
12981as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12982as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12983as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12984# Prefer a ksh shell builtin over an external printf program on Solaris,
12985# but without wasting forks for bash or zsh.
12986if test -z "$BASH_VERSION$ZSH_VERSION" \
12987    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12988  as_echo='print -r --'
12989  as_echo_n='print -rn --'
12990elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12991  as_echo='printf %s\n'
12992  as_echo_n='printf %s'
12993else
12994  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12995    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12996    as_echo_n='/usr/ucb/echo -n'
12997  else
12998    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12999    as_echo_n_body='eval
13000      arg=$1;
13001      case $arg in #(
13002      *"$as_nl"*)
13003	expr "X$arg" : "X\\(.*\\)$as_nl";
13004	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13005      esac;
13006      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13007    '
13008    export as_echo_n_body
13009    as_echo_n='sh -c $as_echo_n_body as_echo'
13010  fi
13011  export as_echo_body
13012  as_echo='sh -c $as_echo_body as_echo'
13013fi
13014
13015# The user is always right.
13016if test "${PATH_SEPARATOR+set}" != set; then
13017  PATH_SEPARATOR=:
13018  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13019    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13020      PATH_SEPARATOR=';'
13021  }
13022fi
13023
13024
13025# IFS
13026# We need space, tab and new line, in precisely that order.  Quoting is
13027# there to prevent editors from complaining about space-tab.
13028# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13029# splitting by setting IFS to empty value.)
13030IFS=" ""	$as_nl"
13031
13032# Find who we are.  Look in the path if we contain no directory separator.
13033case $0 in #((
13034  *[\\/]* ) as_myself=$0 ;;
13035  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13036for as_dir in $PATH
13037do
13038  IFS=$as_save_IFS
13039  test -z "$as_dir" && as_dir=.
13040    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13041  done
13042IFS=$as_save_IFS
13043
13044     ;;
13045esac
13046# We did not find ourselves, most probably we were run as `sh COMMAND'
13047# in which case we are not to be found in the path.
13048if test "x$as_myself" = x; then
13049  as_myself=$0
13050fi
13051if test ! -f "$as_myself"; then
13052  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13053  exit 1
13054fi
13055
13056# Unset variables that we do not need and which cause bugs (e.g. in
13057# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13058# suppresses any "Segmentation fault" message there.  '((' could
13059# trigger a bug in pdksh 5.2.14.
13060for as_var in BASH_ENV ENV MAIL MAILPATH
13061do eval test x\${$as_var+set} = xset \
13062  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13063done
13064PS1='$ '
13065PS2='> '
13066PS4='+ '
13067
13068# NLS nuisances.
13069LC_ALL=C
13070export LC_ALL
13071LANGUAGE=C
13072export LANGUAGE
13073
13074# CDPATH.
13075(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13076
13077
13078# as_fn_error ERROR [LINENO LOG_FD]
13079# ---------------------------------
13080# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13081# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13082# script with status $?, using 1 if that was 0.
13083as_fn_error ()
13084{
13085  as_status=$?; test $as_status -eq 0 && as_status=1
13086  if test "$3"; then
13087    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13088    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13089  fi
13090  $as_echo "$as_me: error: $1" >&2
13091  as_fn_exit $as_status
13092} # as_fn_error
13093
13094
13095# as_fn_set_status STATUS
13096# -----------------------
13097# Set $? to STATUS, without forking.
13098as_fn_set_status ()
13099{
13100  return $1
13101} # as_fn_set_status
13102
13103# as_fn_exit STATUS
13104# -----------------
13105# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13106as_fn_exit ()
13107{
13108  set +e
13109  as_fn_set_status $1
13110  exit $1
13111} # as_fn_exit
13112
13113# as_fn_unset VAR
13114# ---------------
13115# Portably unset VAR.
13116as_fn_unset ()
13117{
13118  { eval $1=; unset $1;}
13119}
13120as_unset=as_fn_unset
13121# as_fn_append VAR VALUE
13122# ----------------------
13123# Append the text in VALUE to the end of the definition contained in VAR. Take
13124# advantage of any shell optimizations that allow amortized linear growth over
13125# repeated appends, instead of the typical quadratic growth present in naive
13126# implementations.
13127if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13128  eval 'as_fn_append ()
13129  {
13130    eval $1+=\$2
13131  }'
13132else
13133  as_fn_append ()
13134  {
13135    eval $1=\$$1\$2
13136  }
13137fi # as_fn_append
13138
13139# as_fn_arith ARG...
13140# ------------------
13141# Perform arithmetic evaluation on the ARGs, and store the result in the
13142# global $as_val. Take advantage of shells that can avoid forks. The arguments
13143# must be portable across $(()) and expr.
13144if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13145  eval 'as_fn_arith ()
13146  {
13147    as_val=$(( $* ))
13148  }'
13149else
13150  as_fn_arith ()
13151  {
13152    as_val=`expr "$@" || test $? -eq 1`
13153  }
13154fi # as_fn_arith
13155
13156
13157if expr a : '\(a\)' >/dev/null 2>&1 &&
13158   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13159  as_expr=expr
13160else
13161  as_expr=false
13162fi
13163
13164if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13165  as_basename=basename
13166else
13167  as_basename=false
13168fi
13169
13170if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13171  as_dirname=dirname
13172else
13173  as_dirname=false
13174fi
13175
13176as_me=`$as_basename -- "$0" ||
13177$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13178	 X"$0" : 'X\(//\)$' \| \
13179	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13180$as_echo X/"$0" |
13181    sed '/^.*\/\([^/][^/]*\)\/*$/{
13182	    s//\1/
13183	    q
13184	  }
13185	  /^X\/\(\/\/\)$/{
13186	    s//\1/
13187	    q
13188	  }
13189	  /^X\/\(\/\).*/{
13190	    s//\1/
13191	    q
13192	  }
13193	  s/.*/./; q'`
13194
13195# Avoid depending upon Character Ranges.
13196as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13197as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13198as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13199as_cr_digits='0123456789'
13200as_cr_alnum=$as_cr_Letters$as_cr_digits
13201
13202ECHO_C= ECHO_N= ECHO_T=
13203case `echo -n x` in #(((((
13204-n*)
13205  case `echo 'xy\c'` in
13206  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13207  xy)  ECHO_C='\c';;
13208  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13209       ECHO_T='	';;
13210  esac;;
13211*)
13212  ECHO_N='-n';;
13213esac
13214
13215rm -f conf$$ conf$$.exe conf$$.file
13216if test -d conf$$.dir; then
13217  rm -f conf$$.dir/conf$$.file
13218else
13219  rm -f conf$$.dir
13220  mkdir conf$$.dir 2>/dev/null
13221fi
13222if (echo >conf$$.file) 2>/dev/null; then
13223  if ln -s conf$$.file conf$$ 2>/dev/null; then
13224    as_ln_s='ln -s'
13225    # ... but there are two gotchas:
13226    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13227    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13228    # In both cases, we have to default to `cp -p'.
13229    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13230      as_ln_s='cp -p'
13231  elif ln conf$$.file conf$$ 2>/dev/null; then
13232    as_ln_s=ln
13233  else
13234    as_ln_s='cp -p'
13235  fi
13236else
13237  as_ln_s='cp -p'
13238fi
13239rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13240rmdir conf$$.dir 2>/dev/null
13241
13242
13243# as_fn_mkdir_p
13244# -------------
13245# Create "$as_dir" as a directory, including parents if necessary.
13246as_fn_mkdir_p ()
13247{
13248
13249  case $as_dir in #(
13250  -*) as_dir=./$as_dir;;
13251  esac
13252  test -d "$as_dir" || eval $as_mkdir_p || {
13253    as_dirs=
13254    while :; do
13255      case $as_dir in #(
13256      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13257      *) as_qdir=$as_dir;;
13258      esac
13259      as_dirs="'$as_qdir' $as_dirs"
13260      as_dir=`$as_dirname -- "$as_dir" ||
13261$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13262	 X"$as_dir" : 'X\(//\)[^/]' \| \
13263	 X"$as_dir" : 'X\(//\)$' \| \
13264	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13265$as_echo X"$as_dir" |
13266    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13267	    s//\1/
13268	    q
13269	  }
13270	  /^X\(\/\/\)[^/].*/{
13271	    s//\1/
13272	    q
13273	  }
13274	  /^X\(\/\/\)$/{
13275	    s//\1/
13276	    q
13277	  }
13278	  /^X\(\/\).*/{
13279	    s//\1/
13280	    q
13281	  }
13282	  s/.*/./; q'`
13283      test -d "$as_dir" && break
13284    done
13285    test -z "$as_dirs" || eval "mkdir $as_dirs"
13286  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13287
13288
13289} # as_fn_mkdir_p
13290if mkdir -p . 2>/dev/null; then
13291  as_mkdir_p='mkdir -p "$as_dir"'
13292else
13293  test -d ./-p && rmdir ./-p
13294  as_mkdir_p=false
13295fi
13296
13297if test -x / >/dev/null 2>&1; then
13298  as_test_x='test -x'
13299else
13300  if ls -dL / >/dev/null 2>&1; then
13301    as_ls_L_option=L
13302  else
13303    as_ls_L_option=
13304  fi
13305  as_test_x='
13306    eval sh -c '\''
13307      if test -d "$1"; then
13308	test -d "$1/.";
13309      else
13310	case $1 in #(
13311	-*)set "./$1";;
13312	esac;
13313	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13314	???[sx]*):;;*)false;;esac;fi
13315    '\'' sh
13316  '
13317fi
13318as_executable_p=$as_test_x
13319
13320# Sed expression to map a string onto a valid CPP name.
13321as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13322
13323# Sed expression to map a string onto a valid variable name.
13324as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13325
13326
13327exec 6>&1
13328## ----------------------------------- ##
13329## Main body of $CONFIG_STATUS script. ##
13330## ----------------------------------- ##
13331_ASEOF
13332test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13333
13334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13335# Save the log message, to keep $0 and so on meaningful, and to
13336# report actual input values of CONFIG_FILES etc. instead of their
13337# values after options handling.
13338ac_log="
13339This file was extended by libkate $as_me 0.4.1, which was
13340generated by GNU Autoconf 2.64.  Invocation command line was
13341
13342  CONFIG_FILES    = $CONFIG_FILES
13343  CONFIG_HEADERS  = $CONFIG_HEADERS
13344  CONFIG_LINKS    = $CONFIG_LINKS
13345  CONFIG_COMMANDS = $CONFIG_COMMANDS
13346  $ $0 $@
13347
13348on `(hostname || uname -n) 2>/dev/null | sed 1q`
13349"
13350
13351_ACEOF
13352
13353case $ac_config_files in *"
13354"*) set x $ac_config_files; shift; ac_config_files=$*;;
13355esac
13356
13357case $ac_config_headers in *"
13358"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13359esac
13360
13361
13362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13363# Files that config.status was made for.
13364config_files="$ac_config_files"
13365config_headers="$ac_config_headers"
13366config_commands="$ac_config_commands"
13367
13368_ACEOF
13369
13370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13371ac_cs_usage="\
13372\`$as_me' instantiates files and other configuration actions
13373from templates according to the current configuration.  Unless the files
13374and actions are specified as TAGs, all are instantiated by default.
13375
13376Usage: $0 [OPTION]... [TAG]...
13377
13378  -h, --help       print this help, then exit
13379  -V, --version    print version number and configuration settings, then exit
13380  -q, --quiet, --silent
13381                   do not print progress messages
13382  -d, --debug      don't remove temporary files
13383      --recheck    update $as_me by reconfiguring in the same conditions
13384      --file=FILE[:TEMPLATE]
13385                   instantiate the configuration file FILE
13386      --header=FILE[:TEMPLATE]
13387                   instantiate the configuration header FILE
13388
13389Configuration files:
13390$config_files
13391
13392Configuration headers:
13393$config_headers
13394
13395Configuration commands:
13396$config_commands
13397
13398Report bugs to the package provider."
13399
13400_ACEOF
13401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13402ac_cs_version="\\
13403libkate config.status 0.4.1
13404configured by $0, generated by GNU Autoconf 2.64,
13405  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13406
13407Copyright (C) 2009 Free Software Foundation, Inc.
13408This config.status script is free software; the Free Software Foundation
13409gives unlimited permission to copy, distribute and modify it."
13410
13411ac_pwd='$ac_pwd'
13412srcdir='$srcdir'
13413INSTALL='$INSTALL'
13414MKDIR_P='$MKDIR_P'
13415AWK='$AWK'
13416test -n "\$AWK" || AWK=awk
13417_ACEOF
13418
13419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13420# The default lists apply if the user does not specify any file.
13421ac_need_defaults=:
13422while test $# != 0
13423do
13424  case $1 in
13425  --*=*)
13426    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13427    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13428    ac_shift=:
13429    ;;
13430  *)
13431    ac_option=$1
13432    ac_optarg=$2
13433    ac_shift=shift
13434    ;;
13435  esac
13436
13437  case $ac_option in
13438  # Handling of the options.
13439  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13440    ac_cs_recheck=: ;;
13441  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13442    $as_echo "$ac_cs_version"; exit ;;
13443  --debug | --debu | --deb | --de | --d | -d )
13444    debug=: ;;
13445  --file | --fil | --fi | --f )
13446    $ac_shift
13447    case $ac_optarg in
13448    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13449    esac
13450    as_fn_append CONFIG_FILES " '$ac_optarg'"
13451    ac_need_defaults=false;;
13452  --header | --heade | --head | --hea )
13453    $ac_shift
13454    case $ac_optarg in
13455    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13456    esac
13457    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13458    ac_need_defaults=false;;
13459  --he | --h)
13460    # Conflict between --help and --header
13461    as_fn_error "ambiguous option: \`$1'
13462Try \`$0 --help' for more information.";;
13463  --help | --hel | -h )
13464    $as_echo "$ac_cs_usage"; exit ;;
13465  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13466  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13467    ac_cs_silent=: ;;
13468
13469  # This is an error.
13470  -*) as_fn_error "unrecognized option: \`$1'
13471Try \`$0 --help' for more information." ;;
13472
13473  *) as_fn_append ac_config_targets " $1"
13474     ac_need_defaults=false ;;
13475
13476  esac
13477  shift
13478done
13479
13480ac_configure_extra_args=
13481
13482if $ac_cs_silent; then
13483  exec 6>/dev/null
13484  ac_configure_extra_args="$ac_configure_extra_args --silent"
13485fi
13486
13487_ACEOF
13488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13489if \$ac_cs_recheck; then
13490  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13491  shift
13492  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13493  CONFIG_SHELL='$SHELL'
13494  export CONFIG_SHELL
13495  exec "\$@"
13496fi
13497
13498_ACEOF
13499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13500exec 5>>config.log
13501{
13502  echo
13503  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13504## Running $as_me. ##
13505_ASBOX
13506  $as_echo "$ac_log"
13507} >&5
13508
13509_ACEOF
13510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13511#
13512# INIT-COMMANDS
13513#
13514AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13515
13516
13517# The HP-UX ksh and POSIX shell print the target directory to stdout
13518# if CDPATH is set.
13519(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13520
13521sed_quote_subst='$sed_quote_subst'
13522double_quote_subst='$double_quote_subst'
13523delay_variable_subst='$delay_variable_subst'
13524macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13525macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13526enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13527enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13528pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13529enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13530host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13531host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13532host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13533build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13534build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13535build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13536SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13537Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13538GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13539EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13540FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13541LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13542NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13543LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13544max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13545ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13546exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13547lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13548lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13549lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13550reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13551reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13552OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13553deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13554file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13555AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13556AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13557STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13558RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13559old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13560old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13561old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13562CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13563CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13564compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13565GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13566lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13567lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13568lt_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"`'
13569lt_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"`'
13570objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13571SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13572ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13573MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13574lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13575lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13576lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13577lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13578lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13579need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13580DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13581NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13582LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13583OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13584OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13585libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13586shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13587extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13588archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13589enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13590export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13591whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13592compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13593old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13594old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13595archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13596archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13597module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13598module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13599with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13600allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13601no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13602hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13603hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13604hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13605hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13606hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13607hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13608hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13609hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13610inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13611link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13612fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13613always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13614export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13615exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13616include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13617prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13618file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13619variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13620need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13621need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13622version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13623runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13624shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13625shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13626libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13627library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13628soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13629postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13630postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13631finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13632finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13633hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13634sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13635sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13636hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13637enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13638enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13639enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13640old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13641striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13642
13643LTCC='$LTCC'
13644LTCFLAGS='$LTCFLAGS'
13645compiler='$compiler_DEFAULT'
13646
13647# Quote evaled strings.
13648for var in SED \
13649GREP \
13650EGREP \
13651FGREP \
13652LD \
13653NM \
13654LN_S \
13655lt_SP2NL \
13656lt_NL2SP \
13657reload_flag \
13658OBJDUMP \
13659deplibs_check_method \
13660file_magic_cmd \
13661AR \
13662AR_FLAGS \
13663STRIP \
13664RANLIB \
13665CC \
13666CFLAGS \
13667compiler \
13668lt_cv_sys_global_symbol_pipe \
13669lt_cv_sys_global_symbol_to_cdecl \
13670lt_cv_sys_global_symbol_to_c_name_address \
13671lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13672SHELL \
13673ECHO \
13674lt_prog_compiler_no_builtin_flag \
13675lt_prog_compiler_wl \
13676lt_prog_compiler_pic \
13677lt_prog_compiler_static \
13678lt_cv_prog_compiler_c_o \
13679need_locks \
13680DSYMUTIL \
13681NMEDIT \
13682LIPO \
13683OTOOL \
13684OTOOL64 \
13685shrext_cmds \
13686export_dynamic_flag_spec \
13687whole_archive_flag_spec \
13688compiler_needs_object \
13689with_gnu_ld \
13690allow_undefined_flag \
13691no_undefined_flag \
13692hardcode_libdir_flag_spec \
13693hardcode_libdir_flag_spec_ld \
13694hardcode_libdir_separator \
13695fix_srcfile_path \
13696exclude_expsyms \
13697include_expsyms \
13698file_list_spec \
13699variables_saved_for_relink \
13700libname_spec \
13701library_names_spec \
13702soname_spec \
13703finish_eval \
13704old_striplib \
13705striplib; do
13706    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13707    *[\\\\\\\`\\"\\\$]*)
13708      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13709      ;;
13710    *)
13711      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13712      ;;
13713    esac
13714done
13715
13716# Double-quote double-evaled strings.
13717for var in reload_cmds \
13718old_postinstall_cmds \
13719old_postuninstall_cmds \
13720old_archive_cmds \
13721extract_expsyms_cmds \
13722old_archive_from_new_cmds \
13723old_archive_from_expsyms_cmds \
13724archive_cmds \
13725archive_expsym_cmds \
13726module_cmds \
13727module_expsym_cmds \
13728export_symbols_cmds \
13729prelink_cmds \
13730postinstall_cmds \
13731postuninstall_cmds \
13732finish_cmds \
13733sys_lib_search_path_spec \
13734sys_lib_dlsearch_path_spec; do
13735    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13736    *[\\\\\\\`\\"\\\$]*)
13737      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13738      ;;
13739    *)
13740      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13741      ;;
13742    esac
13743done
13744
13745# Fix-up fallback echo if it was mangled by the above quoting rules.
13746case \$lt_ECHO in
13747*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13748  ;;
13749esac
13750
13751ac_aux_dir='$ac_aux_dir'
13752xsi_shell='$xsi_shell'
13753lt_shell_append='$lt_shell_append'
13754
13755# See if we are running on zsh, and set the options which allow our
13756# commands through without removal of \ escapes INIT.
13757if test -n "\${ZSH_VERSION+set}" ; then
13758   setopt NO_GLOB_SUBST
13759fi
13760
13761
13762    PACKAGE='$PACKAGE'
13763    VERSION='$VERSION'
13764    TIMESTAMP='$TIMESTAMP'
13765    RM='$RM'
13766    ofile='$ofile'
13767
13768
13769
13770
13771_ACEOF
13772
13773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13774
13775# Handling of arguments.
13776for ac_config_target in $ac_config_targets
13777do
13778  case $ac_config_target in
13779    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13780    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13781    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13782    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13783    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13784    "tools/KateDJ/Makefile") CONFIG_FILES="$CONFIG_FILES tools/KateDJ/Makefile" ;;
13785    "tools/KateDJ/kdj/constants.py") CONFIG_FILES="$CONFIG_FILES tools/KateDJ/kdj/constants.py" ;;
13786    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13787    "doc/man/kateenc.1") CONFIG_FILES="$CONFIG_FILES doc/man/kateenc.1" ;;
13788    "doc/man/katedec.1") CONFIG_FILES="$CONFIG_FILES doc/man/katedec.1" ;;
13789    "doc/man/katalyzer.1") CONFIG_FILES="$CONFIG_FILES doc/man/katalyzer.1" ;;
13790    "doc/man/KateDJ.1") CONFIG_FILES="$CONFIG_FILES doc/man/KateDJ.1" ;;
13791    "include/kate/kate.h") CONFIG_FILES="$CONFIG_FILES include/kate/kate.h" ;;
13792    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13793    "misc/pkgconfig/kate.pc") CONFIG_FILES="$CONFIG_FILES misc/pkgconfig/kate.pc" ;;
13794    "misc/pkgconfig/kate-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES misc/pkgconfig/kate-uninstalled.pc" ;;
13795    "misc/pkgconfig/oggkate.pc") CONFIG_FILES="$CONFIG_FILES misc/pkgconfig/oggkate.pc" ;;
13796    "misc/pkgconfig/oggkate-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES misc/pkgconfig/oggkate-uninstalled.pc" ;;
13797    "doc/kate.doxygen") CONFIG_FILES="$CONFIG_FILES doc/kate.doxygen" ;;
13798
13799  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13800  esac
13801done
13802
13803
13804# If the user did not use the arguments to specify the items to instantiate,
13805# then the envvar interface is used.  Set only those that are not.
13806# We use the long form for the default assignment because of an extremely
13807# bizarre bug on SunOS 4.1.3.
13808if $ac_need_defaults; then
13809  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13810  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13811  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13812fi
13813
13814# Have a temporary directory for convenience.  Make it in the build tree
13815# simply because there is no reason against having it here, and in addition,
13816# creating and moving files from /tmp can sometimes cause problems.
13817# Hook for its removal unless debugging.
13818# Note that there is a small window in which the directory will not be cleaned:
13819# after its creation but before its name has been assigned to `$tmp'.
13820$debug ||
13821{
13822  tmp=
13823  trap 'exit_status=$?
13824  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13825' 0
13826  trap 'as_fn_exit 1' 1 2 13 15
13827}
13828# Create a (secure) tmp directory for tmp files.
13829
13830{
13831  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13832  test -n "$tmp" && test -d "$tmp"
13833}  ||
13834{
13835  tmp=./conf$$-$RANDOM
13836  (umask 077 && mkdir "$tmp")
13837} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13838
13839# Set up the scripts for CONFIG_FILES section.
13840# No need to generate them if there are no CONFIG_FILES.
13841# This happens for instance with `./config.status config.h'.
13842if test -n "$CONFIG_FILES"; then
13843
13844
13845ac_cr=`echo X | tr X '\015'`
13846# On cygwin, bash can eat \r inside `` if the user requested igncr.
13847# But we know of no other shell where ac_cr would be empty at this
13848# point, so we can use a bashism as a fallback.
13849if test "x$ac_cr" = x; then
13850  eval ac_cr=\$\'\\r\'
13851fi
13852ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13853if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13854  ac_cs_awk_cr='\r'
13855else
13856  ac_cs_awk_cr=$ac_cr
13857fi
13858
13859echo 'BEGIN {' >"$tmp/subs1.awk" &&
13860_ACEOF
13861
13862
13863{
13864  echo "cat >conf$$subs.awk <<_ACEOF" &&
13865  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13866  echo "_ACEOF"
13867} >conf$$subs.sh ||
13868  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13869ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13870ac_delim='%!_!# '
13871for ac_last_try in false false false false false :; do
13872  . ./conf$$subs.sh ||
13873    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13874
13875  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13876  if test $ac_delim_n = $ac_delim_num; then
13877    break
13878  elif $ac_last_try; then
13879    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13880  else
13881    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13882  fi
13883done
13884rm -f conf$$subs.sh
13885
13886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13887cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13888_ACEOF
13889sed -n '
13890h
13891s/^/S["/; s/!.*/"]=/
13892p
13893g
13894s/^[^!]*!//
13895:repl
13896t repl
13897s/'"$ac_delim"'$//
13898t delim
13899:nl
13900h
13901s/\(.\{148\}\).*/\1/
13902t more1
13903s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13904p
13905n
13906b repl
13907:more1
13908s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13909p
13910g
13911s/.\{148\}//
13912t nl
13913:delim
13914h
13915s/\(.\{148\}\).*/\1/
13916t more2
13917s/["\\]/\\&/g; s/^/"/; s/$/"/
13918p
13919b
13920:more2
13921s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13922p
13923g
13924s/.\{148\}//
13925t delim
13926' <conf$$subs.awk | sed '
13927/^[^""]/{
13928  N
13929  s/\n//
13930}
13931' >>$CONFIG_STATUS || ac_write_fail=1
13932rm -f conf$$subs.awk
13933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13934_ACAWK
13935cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13936  for (key in S) S_is_set[key] = 1
13937  FS = ""
13938
13939}
13940{
13941  line = $ 0
13942  nfields = split(line, field, "@")
13943  substed = 0
13944  len = length(field[1])
13945  for (i = 2; i < nfields; i++) {
13946    key = field[i]
13947    keylen = length(key)
13948    if (S_is_set[key]) {
13949      value = S[key]
13950      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13951      len += length(value) + length(field[++i])
13952      substed = 1
13953    } else
13954      len += 1 + keylen
13955  }
13956
13957  print line
13958}
13959
13960_ACAWK
13961_ACEOF
13962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13963if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13964  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13965else
13966  cat
13967fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13968  || as_fn_error "could not setup config files machinery" "$LINENO" 5
13969_ACEOF
13970
13971# VPATH may cause trouble with some makes, so we remove $(srcdir),
13972# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13973# trailing colons and then remove the whole line if VPATH becomes empty
13974# (actually we leave an empty line to preserve line numbers).
13975if test "x$srcdir" = x.; then
13976  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13977s/:*\$(srcdir):*/:/
13978s/:*\${srcdir}:*/:/
13979s/:*@srcdir@:*/:/
13980s/^\([^=]*=[	 ]*\):*/\1/
13981s/:*$//
13982s/^[^=]*=[	 ]*$//
13983}'
13984fi
13985
13986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13987fi # test -n "$CONFIG_FILES"
13988
13989# Set up the scripts for CONFIG_HEADERS section.
13990# No need to generate them if there are no CONFIG_HEADERS.
13991# This happens for instance with `./config.status Makefile'.
13992if test -n "$CONFIG_HEADERS"; then
13993cat >"$tmp/defines.awk" <<\_ACAWK ||
13994BEGIN {
13995_ACEOF
13996
13997# Transform confdefs.h into an awk script `defines.awk', embedded as
13998# here-document in config.status, that substitutes the proper values into
13999# config.h.in to produce config.h.
14000
14001# Create a delimiter string that does not exist in confdefs.h, to ease
14002# handling of long lines.
14003ac_delim='%!_!# '
14004for ac_last_try in false false :; do
14005  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14006  if test -z "$ac_t"; then
14007    break
14008  elif $ac_last_try; then
14009    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14010  else
14011    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14012  fi
14013done
14014
14015# For the awk script, D is an array of macro values keyed by name,
14016# likewise P contains macro parameters if any.  Preserve backslash
14017# newline sequences.
14018
14019ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14020sed -n '
14021s/.\{148\}/&'"$ac_delim"'/g
14022t rset
14023:rset
14024s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14025t def
14026d
14027:def
14028s/\\$//
14029t bsnl
14030s/["\\]/\\&/g
14031s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14032D["\1"]=" \3"/p
14033s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14034d
14035:bsnl
14036s/["\\]/\\&/g
14037s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14038D["\1"]=" \3\\\\\\n"\\/p
14039t cont
14040s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14041t cont
14042d
14043:cont
14044n
14045s/.\{148\}/&'"$ac_delim"'/g
14046t clear
14047:clear
14048s/\\$//
14049t bsnlc
14050s/["\\]/\\&/g; s/^/"/; s/$/"/p
14051d
14052:bsnlc
14053s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14054b cont
14055' <confdefs.h | sed '
14056s/'"$ac_delim"'/"\\\
14057"/g' >>$CONFIG_STATUS || ac_write_fail=1
14058
14059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14060  for (key in D) D_is_set[key] = 1
14061  FS = ""
14062}
14063/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14064  line = \$ 0
14065  split(line, arg, " ")
14066  if (arg[1] == "#") {
14067    defundef = arg[2]
14068    mac1 = arg[3]
14069  } else {
14070    defundef = substr(arg[1], 2)
14071    mac1 = arg[2]
14072  }
14073  split(mac1, mac2, "(") #)
14074  macro = mac2[1]
14075  prefix = substr(line, 1, index(line, defundef) - 1)
14076  if (D_is_set[macro]) {
14077    # Preserve the white space surrounding the "#".
14078    print prefix "define", macro P[macro] D[macro]
14079    next
14080  } else {
14081    # Replace #undef with comments.  This is necessary, for example,
14082    # in the case of _POSIX_SOURCE, which is predefined and required
14083    # on some systems where configure will not decide to define it.
14084    if (defundef == "undef") {
14085      print "/*", prefix defundef, macro, "*/"
14086      next
14087    }
14088  }
14089}
14090{ print }
14091_ACAWK
14092_ACEOF
14093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14094  as_fn_error "could not setup config headers machinery" "$LINENO" 5
14095fi # test -n "$CONFIG_HEADERS"
14096
14097
14098eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14099shift
14100for ac_tag
14101do
14102  case $ac_tag in
14103  :[FHLC]) ac_mode=$ac_tag; continue;;
14104  esac
14105  case $ac_mode$ac_tag in
14106  :[FHL]*:*);;
14107  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14108  :[FH]-) ac_tag=-:-;;
14109  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14110  esac
14111  ac_save_IFS=$IFS
14112  IFS=:
14113  set x $ac_tag
14114  IFS=$ac_save_IFS
14115  shift
14116  ac_file=$1
14117  shift
14118
14119  case $ac_mode in
14120  :L) ac_source=$1;;
14121  :[FH])
14122    ac_file_inputs=
14123    for ac_f
14124    do
14125      case $ac_f in
14126      -) ac_f="$tmp/stdin";;
14127      *) # Look for the file first in the build tree, then in the source tree
14128	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14129	 # because $ac_f cannot contain `:'.
14130	 test -f "$ac_f" ||
14131	   case $ac_f in
14132	   [\\/$]*) false;;
14133	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14134	   esac ||
14135	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14136      esac
14137      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14138      as_fn_append ac_file_inputs " '$ac_f'"
14139    done
14140
14141    # Let's still pretend it is `configure' which instantiates (i.e., don't
14142    # use $as_me), people would be surprised to read:
14143    #    /* config.h.  Generated by config.status.  */
14144    configure_input='Generated from '`
14145	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14146	`' by configure.'
14147    if test x"$ac_file" != x-; then
14148      configure_input="$ac_file.  $configure_input"
14149      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14150$as_echo "$as_me: creating $ac_file" >&6;}
14151    fi
14152    # Neutralize special characters interpreted by sed in replacement strings.
14153    case $configure_input in #(
14154    *\&* | *\|* | *\\* )
14155       ac_sed_conf_input=`$as_echo "$configure_input" |
14156       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14157    *) ac_sed_conf_input=$configure_input;;
14158    esac
14159
14160    case $ac_tag in
14161    *:-:* | *:-) cat >"$tmp/stdin" \
14162      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14163    esac
14164    ;;
14165  esac
14166
14167  ac_dir=`$as_dirname -- "$ac_file" ||
14168$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14169	 X"$ac_file" : 'X\(//\)[^/]' \| \
14170	 X"$ac_file" : 'X\(//\)$' \| \
14171	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14172$as_echo X"$ac_file" |
14173    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14174	    s//\1/
14175	    q
14176	  }
14177	  /^X\(\/\/\)[^/].*/{
14178	    s//\1/
14179	    q
14180	  }
14181	  /^X\(\/\/\)$/{
14182	    s//\1/
14183	    q
14184	  }
14185	  /^X\(\/\).*/{
14186	    s//\1/
14187	    q
14188	  }
14189	  s/.*/./; q'`
14190  as_dir="$ac_dir"; as_fn_mkdir_p
14191  ac_builddir=.
14192
14193case "$ac_dir" in
14194.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14195*)
14196  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14197  # A ".." for each directory in $ac_dir_suffix.
14198  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14199  case $ac_top_builddir_sub in
14200  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14201  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14202  esac ;;
14203esac
14204ac_abs_top_builddir=$ac_pwd
14205ac_abs_builddir=$ac_pwd$ac_dir_suffix
14206# for backward compatibility:
14207ac_top_builddir=$ac_top_build_prefix
14208
14209case $srcdir in
14210  .)  # We are building in place.
14211    ac_srcdir=.
14212    ac_top_srcdir=$ac_top_builddir_sub
14213    ac_abs_top_srcdir=$ac_pwd ;;
14214  [\\/]* | ?:[\\/]* )  # Absolute name.
14215    ac_srcdir=$srcdir$ac_dir_suffix;
14216    ac_top_srcdir=$srcdir
14217    ac_abs_top_srcdir=$srcdir ;;
14218  *) # Relative name.
14219    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14220    ac_top_srcdir=$ac_top_build_prefix$srcdir
14221    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14222esac
14223ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14224
14225
14226  case $ac_mode in
14227  :F)
14228  #
14229  # CONFIG_FILE
14230  #
14231
14232  case $INSTALL in
14233  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14234  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14235  esac
14236  ac_MKDIR_P=$MKDIR_P
14237  case $MKDIR_P in
14238  [\\/$]* | ?:[\\/]* ) ;;
14239  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14240  esac
14241_ACEOF
14242
14243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14244# If the template does not know about datarootdir, expand it.
14245# FIXME: This hack should be removed a few years after 2.60.
14246ac_datarootdir_hack=; ac_datarootdir_seen=
14247ac_sed_dataroot='
14248/datarootdir/ {
14249  p
14250  q
14251}
14252/@datadir@/p
14253/@docdir@/p
14254/@infodir@/p
14255/@localedir@/p
14256/@mandir@/p'
14257case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14258*datarootdir*) ac_datarootdir_seen=yes;;
14259*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14260  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14261$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14262_ACEOF
14263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14264  ac_datarootdir_hack='
14265  s&@datadir@&$datadir&g
14266  s&@docdir@&$docdir&g
14267  s&@infodir@&$infodir&g
14268  s&@localedir@&$localedir&g
14269  s&@mandir@&$mandir&g
14270  s&\\\${datarootdir}&$datarootdir&g' ;;
14271esac
14272_ACEOF
14273
14274# Neutralize VPATH when `$srcdir' = `.'.
14275# Shell code in configure.ac might set extrasub.
14276# FIXME: do we really want to maintain this feature?
14277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14278ac_sed_extra="$ac_vpsub
14279$extrasub
14280_ACEOF
14281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14282:t
14283/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14284s|@configure_input@|$ac_sed_conf_input|;t t
14285s&@top_builddir@&$ac_top_builddir_sub&;t t
14286s&@top_build_prefix@&$ac_top_build_prefix&;t t
14287s&@srcdir@&$ac_srcdir&;t t
14288s&@abs_srcdir@&$ac_abs_srcdir&;t t
14289s&@top_srcdir@&$ac_top_srcdir&;t t
14290s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14291s&@builddir@&$ac_builddir&;t t
14292s&@abs_builddir@&$ac_abs_builddir&;t t
14293s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14294s&@INSTALL@&$ac_INSTALL&;t t
14295s&@MKDIR_P@&$ac_MKDIR_P&;t t
14296$ac_datarootdir_hack
14297"
14298eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14299  || as_fn_error "could not create $ac_file" "$LINENO" 5
14300
14301test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14302  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14303  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14304  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14305which seems to be undefined.  Please make sure it is defined." >&5
14306$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14307which seems to be undefined.  Please make sure it is defined." >&2;}
14308
14309  rm -f "$tmp/stdin"
14310  case $ac_file in
14311  -) cat "$tmp/out" && rm -f "$tmp/out";;
14312  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14313  esac \
14314  || as_fn_error "could not create $ac_file" "$LINENO" 5
14315 ;;
14316  :H)
14317  #
14318  # CONFIG_HEADER
14319  #
14320  if test x"$ac_file" != x-; then
14321    {
14322      $as_echo "/* $configure_input  */" \
14323      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14324    } >"$tmp/config.h" \
14325      || as_fn_error "could not create $ac_file" "$LINENO" 5
14326    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14327      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14328$as_echo "$as_me: $ac_file is unchanged" >&6;}
14329    else
14330      rm -f "$ac_file"
14331      mv "$tmp/config.h" "$ac_file" \
14332	|| as_fn_error "could not create $ac_file" "$LINENO" 5
14333    fi
14334  else
14335    $as_echo "/* $configure_input  */" \
14336      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14337      || as_fn_error "could not create -" "$LINENO" 5
14338  fi
14339# Compute "$ac_file"'s index in $config_headers.
14340_am_arg="$ac_file"
14341_am_stamp_count=1
14342for _am_header in $config_headers :; do
14343  case $_am_header in
14344    $_am_arg | $_am_arg:* )
14345      break ;;
14346    * )
14347      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14348  esac
14349done
14350echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14351$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14352	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14353	 X"$_am_arg" : 'X\(//\)$' \| \
14354	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14355$as_echo X"$_am_arg" |
14356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14357	    s//\1/
14358	    q
14359	  }
14360	  /^X\(\/\/\)[^/].*/{
14361	    s//\1/
14362	    q
14363	  }
14364	  /^X\(\/\/\)$/{
14365	    s//\1/
14366	    q
14367	  }
14368	  /^X\(\/\).*/{
14369	    s//\1/
14370	    q
14371	  }
14372	  s/.*/./; q'`/stamp-h$_am_stamp_count
14373 ;;
14374
14375  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14376$as_echo "$as_me: executing $ac_file commands" >&6;}
14377 ;;
14378  esac
14379
14380
14381  case $ac_file$ac_mode in
14382    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14383  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14384  # are listed without --file.  Let's play safe and only enable the eval
14385  # if we detect the quoting.
14386  case $CONFIG_FILES in
14387  *\'*) eval set x "$CONFIG_FILES" ;;
14388  *)   set x $CONFIG_FILES ;;
14389  esac
14390  shift
14391  for mf
14392  do
14393    # Strip MF so we end up with the name of the file.
14394    mf=`echo "$mf" | sed -e 's/:.*$//'`
14395    # Check whether this is an Automake generated Makefile or not.
14396    # We used to match only the files named `Makefile.in', but
14397    # some people rename them; so instead we look at the file content.
14398    # Grep'ing the first line is not enough: some people post-process
14399    # each Makefile.in and add a new line on top of each file to say so.
14400    # Grep'ing the whole file is not good either: AIX grep has a line
14401    # limit of 2048, but all sed's we know have understand at least 4000.
14402    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14403      dirpart=`$as_dirname -- "$mf" ||
14404$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14405	 X"$mf" : 'X\(//\)[^/]' \| \
14406	 X"$mf" : 'X\(//\)$' \| \
14407	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14408$as_echo X"$mf" |
14409    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14410	    s//\1/
14411	    q
14412	  }
14413	  /^X\(\/\/\)[^/].*/{
14414	    s//\1/
14415	    q
14416	  }
14417	  /^X\(\/\/\)$/{
14418	    s//\1/
14419	    q
14420	  }
14421	  /^X\(\/\).*/{
14422	    s//\1/
14423	    q
14424	  }
14425	  s/.*/./; q'`
14426    else
14427      continue
14428    fi
14429    # Extract the definition of DEPDIR, am__include, and am__quote
14430    # from the Makefile without running `make'.
14431    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14432    test -z "$DEPDIR" && continue
14433    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14434    test -z "am__include" && continue
14435    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14436    # When using ansi2knr, U may be empty or an underscore; expand it
14437    U=`sed -n 's/^U = //p' < "$mf"`
14438    # Find all dependency output files, they are included files with
14439    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14440    # simplest approach to changing $(DEPDIR) to its actual value in the
14441    # expansion.
14442    for file in `sed -n "
14443      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14444	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14445      # Make sure the directory exists.
14446      test -f "$dirpart/$file" && continue
14447      fdir=`$as_dirname -- "$file" ||
14448$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14449	 X"$file" : 'X\(//\)[^/]' \| \
14450	 X"$file" : 'X\(//\)$' \| \
14451	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14452$as_echo X"$file" |
14453    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14454	    s//\1/
14455	    q
14456	  }
14457	  /^X\(\/\/\)[^/].*/{
14458	    s//\1/
14459	    q
14460	  }
14461	  /^X\(\/\/\)$/{
14462	    s//\1/
14463	    q
14464	  }
14465	  /^X\(\/\).*/{
14466	    s//\1/
14467	    q
14468	  }
14469	  s/.*/./; q'`
14470      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14471      # echo "creating $dirpart/$file"
14472      echo '# dummy' > "$dirpart/$file"
14473    done
14474  done
14475}
14476 ;;
14477    "libtool":C)
14478
14479    # See if we are running on zsh, and set the options which allow our
14480    # commands through without removal of \ escapes.
14481    if test -n "${ZSH_VERSION+set}" ; then
14482      setopt NO_GLOB_SUBST
14483    fi
14484
14485    cfgfile="${ofile}T"
14486    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14487    $RM "$cfgfile"
14488
14489    cat <<_LT_EOF >> "$cfgfile"
14490#! $SHELL
14491
14492# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14493# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14494# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14495# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14496#
14497#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14498#                 2006, 2007, 2008 Free Software Foundation, Inc.
14499#   Written by Gordon Matzigkeit, 1996
14500#
14501#   This file is part of GNU Libtool.
14502#
14503# GNU Libtool is free software; you can redistribute it and/or
14504# modify it under the terms of the GNU General Public License as
14505# published by the Free Software Foundation; either version 2 of
14506# the License, or (at your option) any later version.
14507#
14508# As a special exception to the GNU General Public License,
14509# if you distribute this file as part of a program or library that
14510# is built using GNU Libtool, you may include this file under the
14511# same distribution terms that you use for the rest of that program.
14512#
14513# GNU Libtool is distributed in the hope that it will be useful,
14514# but WITHOUT ANY WARRANTY; without even the implied warranty of
14515# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14516# GNU General Public License for more details.
14517#
14518# You should have received a copy of the GNU General Public License
14519# along with GNU Libtool; see the file COPYING.  If not, a copy
14520# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14521# obtained by writing to the Free Software Foundation, Inc.,
14522# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14523
14524
14525# The names of the tagged configurations supported by this script.
14526available_tags=""
14527
14528# ### BEGIN LIBTOOL CONFIG
14529
14530# Which release of libtool.m4 was used?
14531macro_version=$macro_version
14532macro_revision=$macro_revision
14533
14534# Whether or not to build shared libraries.
14535build_libtool_libs=$enable_shared
14536
14537# Whether or not to build static libraries.
14538build_old_libs=$enable_static
14539
14540# What type of objects to build.
14541pic_mode=$pic_mode
14542
14543# Whether or not to optimize for fast installation.
14544fast_install=$enable_fast_install
14545
14546# The host system.
14547host_alias=$host_alias
14548host=$host
14549host_os=$host_os
14550
14551# The build system.
14552build_alias=$build_alias
14553build=$build
14554build_os=$build_os
14555
14556# A sed program that does not truncate output.
14557SED=$lt_SED
14558
14559# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14560Xsed="\$SED -e 1s/^X//"
14561
14562# A grep program that handles long lines.
14563GREP=$lt_GREP
14564
14565# An ERE matcher.
14566EGREP=$lt_EGREP
14567
14568# A literal string matcher.
14569FGREP=$lt_FGREP
14570
14571# A BSD- or MS-compatible name lister.
14572NM=$lt_NM
14573
14574# Whether we need soft or hard links.
14575LN_S=$lt_LN_S
14576
14577# What is the maximum length of a command?
14578max_cmd_len=$max_cmd_len
14579
14580# Object file suffix (normally "o").
14581objext=$ac_objext
14582
14583# Executable file suffix (normally "").
14584exeext=$exeext
14585
14586# whether the shell understands "unset".
14587lt_unset=$lt_unset
14588
14589# turn spaces into newlines.
14590SP2NL=$lt_lt_SP2NL
14591
14592# turn newlines into spaces.
14593NL2SP=$lt_lt_NL2SP
14594
14595# How to create reloadable object files.
14596reload_flag=$lt_reload_flag
14597reload_cmds=$lt_reload_cmds
14598
14599# An object symbol dumper.
14600OBJDUMP=$lt_OBJDUMP
14601
14602# Method to check whether dependent libraries are shared objects.
14603deplibs_check_method=$lt_deplibs_check_method
14604
14605# Command to use when deplibs_check_method == "file_magic".
14606file_magic_cmd=$lt_file_magic_cmd
14607
14608# The archiver.
14609AR=$lt_AR
14610AR_FLAGS=$lt_AR_FLAGS
14611
14612# A symbol stripping program.
14613STRIP=$lt_STRIP
14614
14615# Commands used to install an old-style archive.
14616RANLIB=$lt_RANLIB
14617old_postinstall_cmds=$lt_old_postinstall_cmds
14618old_postuninstall_cmds=$lt_old_postuninstall_cmds
14619
14620# A C compiler.
14621LTCC=$lt_CC
14622
14623# LTCC compiler flags.
14624LTCFLAGS=$lt_CFLAGS
14625
14626# Take the output of nm and produce a listing of raw symbols and C names.
14627global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14628
14629# Transform the output of nm in a proper C declaration.
14630global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14631
14632# Transform the output of nm in a C name address pair.
14633global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14634
14635# Transform the output of nm in a C name address pair when lib prefix is needed.
14636global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14637
14638# The name of the directory that contains temporary libtool files.
14639objdir=$objdir
14640
14641# Shell to use when invoking shell scripts.
14642SHELL=$lt_SHELL
14643
14644# An echo program that does not interpret backslashes.
14645ECHO=$lt_ECHO
14646
14647# Used to examine libraries when file_magic_cmd begins with "file".
14648MAGIC_CMD=$MAGIC_CMD
14649
14650# Must we lock files when doing compilation?
14651need_locks=$lt_need_locks
14652
14653# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14654DSYMUTIL=$lt_DSYMUTIL
14655
14656# Tool to change global to local symbols on Mac OS X.
14657NMEDIT=$lt_NMEDIT
14658
14659# Tool to manipulate fat objects and archives on Mac OS X.
14660LIPO=$lt_LIPO
14661
14662# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14663OTOOL=$lt_OTOOL
14664
14665# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14666OTOOL64=$lt_OTOOL64
14667
14668# Old archive suffix (normally "a").
14669libext=$libext
14670
14671# Shared library suffix (normally ".so").
14672shrext_cmds=$lt_shrext_cmds
14673
14674# The commands to extract the exported symbol list from a shared archive.
14675extract_expsyms_cmds=$lt_extract_expsyms_cmds
14676
14677# Variables whose values should be saved in libtool wrapper scripts and
14678# restored at link time.
14679variables_saved_for_relink=$lt_variables_saved_for_relink
14680
14681# Do we need the "lib" prefix for modules?
14682need_lib_prefix=$need_lib_prefix
14683
14684# Do we need a version for libraries?
14685need_version=$need_version
14686
14687# Library versioning type.
14688version_type=$version_type
14689
14690# Shared library runtime path variable.
14691runpath_var=$runpath_var
14692
14693# Shared library path variable.
14694shlibpath_var=$shlibpath_var
14695
14696# Is shlibpath searched before the hard-coded library search path?
14697shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14698
14699# Format of library name prefix.
14700libname_spec=$lt_libname_spec
14701
14702# List of archive names.  First name is the real one, the rest are links.
14703# The last name is the one that the linker finds with -lNAME
14704library_names_spec=$lt_library_names_spec
14705
14706# The coded name of the library, if different from the real name.
14707soname_spec=$lt_soname_spec
14708
14709# Command to use after installation of a shared archive.
14710postinstall_cmds=$lt_postinstall_cmds
14711
14712# Command to use after uninstallation of a shared archive.
14713postuninstall_cmds=$lt_postuninstall_cmds
14714
14715# Commands used to finish a libtool library installation in a directory.
14716finish_cmds=$lt_finish_cmds
14717
14718# As "finish_cmds", except a single script fragment to be evaled but
14719# not shown.
14720finish_eval=$lt_finish_eval
14721
14722# Whether we should hardcode library paths into libraries.
14723hardcode_into_libs=$hardcode_into_libs
14724
14725# Compile-time system search path for libraries.
14726sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14727
14728# Run-time system search path for libraries.
14729sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14730
14731# Whether dlopen is supported.
14732dlopen_support=$enable_dlopen
14733
14734# Whether dlopen of programs is supported.
14735dlopen_self=$enable_dlopen_self
14736
14737# Whether dlopen of statically linked programs is supported.
14738dlopen_self_static=$enable_dlopen_self_static
14739
14740# Commands to strip libraries.
14741old_striplib=$lt_old_striplib
14742striplib=$lt_striplib
14743
14744
14745# The linker used to build libraries.
14746LD=$lt_LD
14747
14748# Commands used to build an old-style archive.
14749old_archive_cmds=$lt_old_archive_cmds
14750
14751# A language specific compiler.
14752CC=$lt_compiler
14753
14754# Is the compiler the GNU compiler?
14755with_gcc=$GCC
14756
14757# Compiler flag to turn off builtin functions.
14758no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14759
14760# How to pass a linker flag through the compiler.
14761wl=$lt_lt_prog_compiler_wl
14762
14763# Additional compiler flags for building library objects.
14764pic_flag=$lt_lt_prog_compiler_pic
14765
14766# Compiler flag to prevent dynamic linking.
14767link_static_flag=$lt_lt_prog_compiler_static
14768
14769# Does compiler simultaneously support -c and -o options?
14770compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14771
14772# Whether or not to add -lc for building shared libraries.
14773build_libtool_need_lc=$archive_cmds_need_lc
14774
14775# Whether or not to disallow shared libs when runtime libs are static.
14776allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14777
14778# Compiler flag to allow reflexive dlopens.
14779export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14780
14781# Compiler flag to generate shared objects directly from archives.
14782whole_archive_flag_spec=$lt_whole_archive_flag_spec
14783
14784# Whether the compiler copes with passing no objects directly.
14785compiler_needs_object=$lt_compiler_needs_object
14786
14787# Create an old-style archive from a shared archive.
14788old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14789
14790# Create a temporary old-style archive to link instead of a shared archive.
14791old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14792
14793# Commands used to build a shared archive.
14794archive_cmds=$lt_archive_cmds
14795archive_expsym_cmds=$lt_archive_expsym_cmds
14796
14797# Commands used to build a loadable module if different from building
14798# a shared archive.
14799module_cmds=$lt_module_cmds
14800module_expsym_cmds=$lt_module_expsym_cmds
14801
14802# Whether we are building with GNU ld or not.
14803with_gnu_ld=$lt_with_gnu_ld
14804
14805# Flag that allows shared libraries with undefined symbols to be built.
14806allow_undefined_flag=$lt_allow_undefined_flag
14807
14808# Flag that enforces no undefined symbols.
14809no_undefined_flag=$lt_no_undefined_flag
14810
14811# Flag to hardcode \$libdir into a binary during linking.
14812# This must work even if \$libdir does not exist
14813hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14814
14815# If ld is used when linking, flag to hardcode \$libdir into a binary
14816# during linking.  This must work even if \$libdir does not exist.
14817hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14818
14819# Whether we need a single "-rpath" flag with a separated argument.
14820hardcode_libdir_separator=$lt_hardcode_libdir_separator
14821
14822# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14823# DIR into the resulting binary.
14824hardcode_direct=$hardcode_direct
14825
14826# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14827# DIR into the resulting binary and the resulting library dependency is
14828# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14829# library is relocated.
14830hardcode_direct_absolute=$hardcode_direct_absolute
14831
14832# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14833# into the resulting binary.
14834hardcode_minus_L=$hardcode_minus_L
14835
14836# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14837# into the resulting binary.
14838hardcode_shlibpath_var=$hardcode_shlibpath_var
14839
14840# Set to "yes" if building a shared library automatically hardcodes DIR
14841# into the library and all subsequent libraries and executables linked
14842# against it.
14843hardcode_automatic=$hardcode_automatic
14844
14845# Set to yes if linker adds runtime paths of dependent libraries
14846# to runtime path list.
14847inherit_rpath=$inherit_rpath
14848
14849# Whether libtool must link a program against all its dependency libraries.
14850link_all_deplibs=$link_all_deplibs
14851
14852# Fix the shell variable \$srcfile for the compiler.
14853fix_srcfile_path=$lt_fix_srcfile_path
14854
14855# Set to "yes" if exported symbols are required.
14856always_export_symbols=$always_export_symbols
14857
14858# The commands to list exported symbols.
14859export_symbols_cmds=$lt_export_symbols_cmds
14860
14861# Symbols that should not be listed in the preloaded symbols.
14862exclude_expsyms=$lt_exclude_expsyms
14863
14864# Symbols that must always be exported.
14865include_expsyms=$lt_include_expsyms
14866
14867# Commands necessary for linking programs (against libraries) with templates.
14868prelink_cmds=$lt_prelink_cmds
14869
14870# Specify filename containing input files.
14871file_list_spec=$lt_file_list_spec
14872
14873# How to hardcode a shared library path into an executable.
14874hardcode_action=$hardcode_action
14875
14876# ### END LIBTOOL CONFIG
14877
14878_LT_EOF
14879
14880  case $host_os in
14881  aix3*)
14882    cat <<\_LT_EOF >> "$cfgfile"
14883# AIX sometimes has problems with the GCC collect2 program.  For some
14884# reason, if we set the COLLECT_NAMES environment variable, the problems
14885# vanish in a puff of smoke.
14886if test "X${COLLECT_NAMES+set}" != Xset; then
14887  COLLECT_NAMES=
14888  export COLLECT_NAMES
14889fi
14890_LT_EOF
14891    ;;
14892  esac
14893
14894
14895ltmain="$ac_aux_dir/ltmain.sh"
14896
14897
14898  # We use sed instead of cat because bash on DJGPP gets confused if
14899  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14900  # text mode, it properly converts lines to CR/LF.  This bash problem
14901  # is reportedly fixed, but why not run on old versions too?
14902  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14903    || (rm -f "$cfgfile"; exit 1)
14904
14905  case $xsi_shell in
14906  yes)
14907    cat << \_LT_EOF >> "$cfgfile"
14908
14909# func_dirname file append nondir_replacement
14910# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14911# otherwise set result to NONDIR_REPLACEMENT.
14912func_dirname ()
14913{
14914  case ${1} in
14915    */*) func_dirname_result="${1%/*}${2}" ;;
14916    *  ) func_dirname_result="${3}" ;;
14917  esac
14918}
14919
14920# func_basename file
14921func_basename ()
14922{
14923  func_basename_result="${1##*/}"
14924}
14925
14926# func_dirname_and_basename file append nondir_replacement
14927# perform func_basename and func_dirname in a single function
14928# call:
14929#   dirname:  Compute the dirname of FILE.  If nonempty,
14930#             add APPEND to the result, otherwise set result
14931#             to NONDIR_REPLACEMENT.
14932#             value returned in "$func_dirname_result"
14933#   basename: Compute filename of FILE.
14934#             value retuned in "$func_basename_result"
14935# Implementation must be kept synchronized with func_dirname
14936# and func_basename. For efficiency, we do not delegate to
14937# those functions but instead duplicate the functionality here.
14938func_dirname_and_basename ()
14939{
14940  case ${1} in
14941    */*) func_dirname_result="${1%/*}${2}" ;;
14942    *  ) func_dirname_result="${3}" ;;
14943  esac
14944  func_basename_result="${1##*/}"
14945}
14946
14947# func_stripname prefix suffix name
14948# strip PREFIX and SUFFIX off of NAME.
14949# PREFIX and SUFFIX must not contain globbing or regex special
14950# characters, hashes, percent signs, but SUFFIX may contain a leading
14951# dot (in which case that matches only a dot).
14952func_stripname ()
14953{
14954  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14955  # positional parameters, so assign one to ordinary parameter first.
14956  func_stripname_result=${3}
14957  func_stripname_result=${func_stripname_result#"${1}"}
14958  func_stripname_result=${func_stripname_result%"${2}"}
14959}
14960
14961# func_opt_split
14962func_opt_split ()
14963{
14964  func_opt_split_opt=${1%%=*}
14965  func_opt_split_arg=${1#*=}
14966}
14967
14968# func_lo2o object
14969func_lo2o ()
14970{
14971  case ${1} in
14972    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14973    *)    func_lo2o_result=${1} ;;
14974  esac
14975}
14976
14977# func_xform libobj-or-source
14978func_xform ()
14979{
14980  func_xform_result=${1%.*}.lo
14981}
14982
14983# func_arith arithmetic-term...
14984func_arith ()
14985{
14986  func_arith_result=$(( $* ))
14987}
14988
14989# func_len string
14990# STRING may not start with a hyphen.
14991func_len ()
14992{
14993  func_len_result=${#1}
14994}
14995
14996_LT_EOF
14997    ;;
14998  *) # Bourne compatible functions.
14999    cat << \_LT_EOF >> "$cfgfile"
15000
15001# func_dirname file append nondir_replacement
15002# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15003# otherwise set result to NONDIR_REPLACEMENT.
15004func_dirname ()
15005{
15006  # Extract subdirectory from the argument.
15007  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15008  if test "X$func_dirname_result" = "X${1}"; then
15009    func_dirname_result="${3}"
15010  else
15011    func_dirname_result="$func_dirname_result${2}"
15012  fi
15013}
15014
15015# func_basename file
15016func_basename ()
15017{
15018  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15019}
15020
15021
15022# func_stripname prefix suffix name
15023# strip PREFIX and SUFFIX off of NAME.
15024# PREFIX and SUFFIX must not contain globbing or regex special
15025# characters, hashes, percent signs, but SUFFIX may contain a leading
15026# dot (in which case that matches only a dot).
15027# func_strip_suffix prefix name
15028func_stripname ()
15029{
15030  case ${2} in
15031    .*) func_stripname_result=`$ECHO "X${3}" \
15032           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15033    *)  func_stripname_result=`$ECHO "X${3}" \
15034           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15035  esac
15036}
15037
15038# sed scripts:
15039my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15040my_sed_long_arg='1s/^-[^=]*=//'
15041
15042# func_opt_split
15043func_opt_split ()
15044{
15045  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15046  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15047}
15048
15049# func_lo2o object
15050func_lo2o ()
15051{
15052  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15053}
15054
15055# func_xform libobj-or-source
15056func_xform ()
15057{
15058  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15059}
15060
15061# func_arith arithmetic-term...
15062func_arith ()
15063{
15064  func_arith_result=`expr "$@"`
15065}
15066
15067# func_len string
15068# STRING may not start with a hyphen.
15069func_len ()
15070{
15071  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15072}
15073
15074_LT_EOF
15075esac
15076
15077case $lt_shell_append in
15078  yes)
15079    cat << \_LT_EOF >> "$cfgfile"
15080
15081# func_append var value
15082# Append VALUE to the end of shell variable VAR.
15083func_append ()
15084{
15085  eval "$1+=\$2"
15086}
15087_LT_EOF
15088    ;;
15089  *)
15090    cat << \_LT_EOF >> "$cfgfile"
15091
15092# func_append var value
15093# Append VALUE to the end of shell variable VAR.
15094func_append ()
15095{
15096  eval "$1=\$$1\$2"
15097}
15098
15099_LT_EOF
15100    ;;
15101  esac
15102
15103
15104  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15105    || (rm -f "$cfgfile"; exit 1)
15106
15107  mv -f "$cfgfile" "$ofile" ||
15108    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15109  chmod +x "$ofile"
15110
15111 ;;
15112
15113  esac
15114done # for ac_tag
15115
15116
15117as_fn_exit 0
15118_ACEOF
15119ac_clean_files=$ac_clean_files_save
15120
15121test $ac_write_fail = 0 ||
15122  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15123
15124
15125# configure is writing to config.log, and then calls config.status.
15126# config.status does its own redirection, appending to config.log.
15127# Unfortunately, on DOS this fails, as config.log is still kept open
15128# by configure, so config.status won't be able to write to it; its
15129# output is simply discarded.  So we exec the FD to /dev/null,
15130# effectively closing config.log, so it can be properly (re)opened and
15131# appended to by config.status.  When coming back to configure, we
15132# need to make the FD available again.
15133if test "$no_create" != yes; then
15134  ac_cs_success=:
15135  ac_config_status_args=
15136  test "$silent" = yes &&
15137    ac_config_status_args="$ac_config_status_args --quiet"
15138  exec 5>/dev/null
15139  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15140  exec 5>>config.log
15141  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15142  # would make configure fail if this is the last instruction.
15143  $ac_cs_success || as_fn_exit $?
15144fi
15145if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15146  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15147$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15148fi
15149
15150
15151