1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235  fi
236  exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254  { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263  return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271  set +e
272  as_fn_set_status $1
273  exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282  case $as_dir in #(
283  -*) as_dir=./$as_dir;;
284  esac
285  test -d "$as_dir" || eval $as_mkdir_p || {
286    as_dirs=
287    while :; do
288      case $as_dir in #(
289      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290      *) as_qdir=$as_dir;;
291      esac
292      as_dirs="'$as_qdir' $as_dirs"
293      as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295	 X"$as_dir" : 'X\(//\)[^/]' \| \
296	 X"$as_dir" : 'X\(//\)$' \| \
297	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300	    s//\1/
301	    q
302	  }
303	  /^X\(\/\/\)[^/].*/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\).*/{
312	    s//\1/
313	    q
314	  }
315	  s/.*/./; q'`
316      test -d "$as_dir" && break
317    done
318    test -z "$as_dirs" || eval "mkdir $as_dirs"
319  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330  eval 'as_fn_append ()
331  {
332    eval $1+=\$2
333  }'
334else
335  as_fn_append ()
336  {
337    eval $1=\$$1\$2
338  }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347  eval 'as_fn_arith ()
348  {
349    as_val=$(( $* ))
350  }'
351else
352  as_fn_arith ()
353  {
354    as_val=`expr "$@" || test $? -eq 1`
355  }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366  as_status=$?; test $as_status -eq 0 && as_status=1
367  if test "$3"; then
368    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370  fi
371  $as_echo "$as_me: error: $1" >&2
372  as_fn_exit $as_status
373} # as_fn_error
374
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376   test "X`expr 00001 : '.*\(...\)'`" = X001; then
377  as_expr=expr
378else
379  as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383  as_basename=basename
384else
385  as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389  as_dirname=dirname
390else
391  as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396	 X"$0" : 'X\(//\)$' \| \
397	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399    sed '/^.*\/\([^/][^/]*\)\/*$/{
400	    s//\1/
401	    q
402	  }
403	  /^X\/\(\/\/\)$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\).*/{
408	    s//\1/
409	    q
410	  }
411	  s/.*/./; q'`
412
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421  as_lineno_1=$LINENO as_lineno_1a=$LINENO
422  as_lineno_2=$LINENO as_lineno_2a=$LINENO
423  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426  sed -n '
427    p
428    /[$]LINENO/=
429  ' <$as_myself |
430    sed '
431      s/[$]LINENO.*/&-/
432      t lineno
433      b
434      :lineno
435      N
436      :loop
437      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438      t loop
439      s/-\n.*//
440    ' >$as_me.lineno &&
441  chmod +x "$as_me.lineno" ||
442    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444  # Don't try to exec as it changes $[0], causing all sort of problems
445  # (the dirname of $[0] is not the place where we might find the
446  # original and so on.  Autoconf is especially sensitive to this).
447  . "./$as_me.lineno"
448  # Exit status is that of the last command.
449  exit
450}
451
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455  case `echo 'xy\c'` in
456  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
457  xy)  ECHO_C='\c';;
458  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459       ECHO_T='	';;
460  esac;;
461*)
462  ECHO_N='-n';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467  rm -f conf$$.dir/conf$$.file
468else
469  rm -f conf$$.dir
470  mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473  if ln -s conf$$.file conf$$ 2>/dev/null; then
474    as_ln_s='ln -s'
475    # ... but there are two gotchas:
476    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478    # In both cases, we have to default to `cp -p'.
479    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480      as_ln_s='cp -p'
481  elif ln conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s=ln
483  else
484    as_ln_s='cp -p'
485  fi
486else
487  as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493  as_mkdir_p='mkdir -p "$as_dir"'
494else
495  test -d ./-p && rmdir ./-p
496  as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500  as_test_x='test -x'
501else
502  if ls -dL / >/dev/null 2>&1; then
503    as_ls_L_option=L
504  else
505    as_ls_L_option=
506  fi
507  as_test_x='
508    eval sh -c '\''
509      if test -d "$1"; then
510	test -d "$1/.";
511      else
512	case $1 in #(
513	-*)set "./$1";;
514	esac;
515	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516	???[sx]*):;;*)false;;esac;fi
517    '\'' sh
518  '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530# Check that we are running under the correct shell.
531SHELL=${CONFIG_SHELL-/bin/sh}
532
533case X$lt_ECHO in
534X*--fallback-echo)
535  # Remove one level of quotation (which was required for Make).
536  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537  ;;
538esac
539
540ECHO=${lt_ECHO-echo}
541if test "X$1" = X--no-reexec; then
542  # Discard the --no-reexec flag, and continue.
543  shift
544elif test "X$1" = X--fallback-echo; then
545  # Avoid inline document here, it may be left over
546  :
547elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548  # Yippee, $ECHO works!
549  :
550else
551  # Restart under the correct shell.
552  exec $SHELL "$0" --no-reexec ${1+"$@"}
553fi
554
555if test "X$1" = X--fallback-echo; then
556  # used as fallback echo
557  shift
558  cat <<_LT_EOF
559$*
560_LT_EOF
561  exit 0
562fi
563
564# The HP-UX ksh and POSIX shell print the target directory to stdout
565# if CDPATH is set.
566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568if test -z "$lt_ECHO"; then
569  if test "X${echo_test_string+set}" != Xset; then
570    # find a string as large as possible, as long as the shell can cope with it
571    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575      then
576        break
577      fi
578    done
579  fi
580
581  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583     test "X$echo_testing_string" = "X$echo_test_string"; then
584    :
585  else
586    # The Solaris, AIX, and Digital Unix default echo programs unquote
587    # backslashes.  This makes it impossible to quote backslashes using
588    #   echo "$something" | sed 's/\\/\\\\/g'
589    #
590    # So, first we look for a working echo in the user's PATH.
591
592    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593    for dir in $PATH /usr/ucb; do
594      IFS="$lt_save_ifs"
595      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598         test "X$echo_testing_string" = "X$echo_test_string"; then
599        ECHO="$dir/echo"
600        break
601      fi
602    done
603    IFS="$lt_save_ifs"
604
605    if test "X$ECHO" = Xecho; then
606      # We didn't find a better echo, so look for alternatives.
607      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609         test "X$echo_testing_string" = "X$echo_test_string"; then
610        # This shell has a builtin print -r that does the trick.
611        ECHO='print -r'
612      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613	   test "X$CONFIG_SHELL" != X/bin/ksh; then
614        # If we have ksh, try running configure again with it.
615        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616        export ORIGINAL_CONFIG_SHELL
617        CONFIG_SHELL=/bin/ksh
618        export CONFIG_SHELL
619        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620      else
621        # Try using printf.
622        ECHO='printf %s\n'
623        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625	   test "X$echo_testing_string" = "X$echo_test_string"; then
626	  # Cool, printf works
627	  :
628        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629	     test "X$echo_testing_string" = 'X\t' &&
630	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631	     test "X$echo_testing_string" = "X$echo_test_string"; then
632	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633	  export CONFIG_SHELL
634	  SHELL="$CONFIG_SHELL"
635	  export SHELL
636	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
637        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638	     test "X$echo_testing_string" = 'X\t' &&
639	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640	     test "X$echo_testing_string" = "X$echo_test_string"; then
641	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
642        else
643	  # maybe with a smaller string...
644	  prev=:
645
646	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648	    then
649	      break
650	    fi
651	    prev="$cmd"
652	  done
653
654	  if test "$prev" != 'sed 50q "$0"'; then
655	    echo_test_string=`eval $prev`
656	    export echo_test_string
657	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658	  else
659	    # Oops.  We lost completely, so just stick with echo.
660	    ECHO=echo
661	  fi
662        fi
663      fi
664    fi
665  fi
666fi
667
668# Copy echo and quote the copy suitably for passing to libtool from
669# the Makefile, instead of quoting the original, which is used later.
670lt_ECHO=$ECHO
671if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673fi
674
675
676
677
678test -n "$DJDIR" || exec 7<&0 </dev/null
679exec 6>&1
680
681# Name of the host.
682# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683# so uname gets run too.
684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686#
687# Initializations.
688#
689ac_default_prefix=/usr/local
690ac_clean_files=
691ac_config_libobj_dir=.
692LIBOBJS=
693cross_compiling=no
694subdirs=
695MFLAGS=
696MAKEFLAGS=
697
698# Identity of this package.
699PACKAGE_NAME=
700PACKAGE_TARNAME=
701PACKAGE_VERSION=
702PACKAGE_STRING=
703PACKAGE_BUGREPORT=
704PACKAGE_URL=
705
706ac_unique_file="brighton/brightonhelp.h"
707# Factoring default headers for most tests.
708ac_includes_default="\
709#include <stdio.h>
710#ifdef HAVE_SYS_TYPES_H
711# include <sys/types.h>
712#endif
713#ifdef HAVE_SYS_STAT_H
714# include <sys/stat.h>
715#endif
716#ifdef STDC_HEADERS
717# include <stdlib.h>
718# include <stddef.h>
719#else
720# ifdef HAVE_STDLIB_H
721#  include <stdlib.h>
722# endif
723#endif
724#ifdef HAVE_STRING_H
725# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726#  include <memory.h>
727# endif
728# include <string.h>
729#endif
730#ifdef HAVE_STRINGS_H
731# include <strings.h>
732#endif
733#ifdef HAVE_INTTYPES_H
734# include <inttypes.h>
735#endif
736#ifdef HAVE_STDINT_H
737# include <stdint.h>
738#endif
739#ifdef HAVE_UNISTD_H
740# include <unistd.h>
741#endif"
742
743ac_subst_vars='am__EXEEXT_FALSE
744am__EXEEXT_TRUE
745LTLIBOBJS
746LIBOBJS
747BRISTOL_DIR
748BRISTOL_LIBPALIBS
749BRISTOL_LIB_PA
750BRISTOL_PA_DIR
751BRISTOL_HAS_PA
752BRISTOL_JACK_MULTI_CLOSE
753DEFAULT_AUDIO_FLAG
754HAVE_JACK_FALSE
755HAVE_JACK_TRUE
756BRISTOL_JACK_DEFAULT_MIDI
757BRISTOL_JACK_DEFAULT
758HAVE_JACK_MIDI_FALSE
759HAVE_JACK_MIDI_TRUE
760BRISTOL_HAS_JACK_MIDI
761BRISTOL_HAS_JACK_SESSION
762BRISTOL_HAS_JACK
763JACK_LIBS
764JACK_CFLAGS
765BRISTOL_HAS_LIBLO
766LIBLO_LIBS
767LIBLO_CFLAGS
768BRISTOL_HAS_ALSA
769ALSA_LIBS
770ALSA_CFLAGS
771PKG_CONFIG
772BRISTOL_HAS_DRAIN
773BRIGHTON_HAS_AUTOZOOM
774BRISTOL_BARRIER
775BRISTOL_SEMAPHORE
776BRISTOL_SEM_OPEN
777BRISTOL_LIN_ATTACK
778_BRISTOL_VOICES
779BRR
780BRIGHTON_LIBXLIBS
781BRIGHTON_LIBXEXT
782BRIGHTON_LIBB11
783BRIGHTON_LIBX11
784BRIGHTON_HAS_X11
785BRIGHTON_X11_DIR
786BRIGHTON_HAS_SHMIMAGE
787BRIGHTON_HAS_XIMAGE
788BRISTOL_HAS_OSS
789CPP
790OTOOL64
791OTOOL
792LIPO
793NMEDIT
794DSYMUTIL
795lt_ECHO
796RANLIB
797AR
798OBJDUMP
799LN_S
800NM
801ac_ct_DUMPBIN
802DUMPBIN
803LD
804FGREP
805EGREP
806GREP
807SED
808am__fastdepCC_FALSE
809am__fastdepCC_TRUE
810CCDEPMODE
811AMDEPBACKSLASH
812AMDEP_FALSE
813AMDEP_TRUE
814am__quote
815am__include
816DEPDIR
817OBJEXT
818EXEEXT
819ac_ct_CC
820CPPFLAGS
821LDFLAGS
822CFLAGS
823CC
824host_os
825host_vendor
826host_cpu
827host
828build_os
829build_vendor
830build_cpu
831build
832LIBTOOL
833am__untar
834am__tar
835AMTAR
836am__leading_dot
837SET_MAKE
838AWK
839mkdir_p
840MKDIR_P
841INSTALL_STRIP_PROGRAM
842STRIP
843install_sh
844MAKEINFO
845AUTOHEADER
846AUTOMAKE
847AUTOCONF
848ACLOCAL
849VERSION
850PACKAGE
851CYGPATH_W
852am__isrc
853INSTALL_DATA
854INSTALL_SCRIPT
855INSTALL_PROGRAM
856BRISTOL_SO_VERSION
857BRISTOL_VERSION
858BRISTOL_MICRO_VERSION
859BRISTOL_MINOR_VERSION
860BRISTOL_MAJOR_VERSION
861target_alias
862host_alias
863build_alias
864LIBS
865ECHO_T
866ECHO_N
867ECHO_C
868DEFS
869mandir
870localedir
871libdir
872psdir
873pdfdir
874dvidir
875htmldir
876infodir
877docdir
878oldincludedir
879includedir
880localstatedir
881sharedstatedir
882sysconfdir
883datadir
884datarootdir
885libexecdir
886sbindir
887bindir
888program_transform_name
889prefix
890exec_prefix
891PACKAGE_URL
892PACKAGE_BUGREPORT
893PACKAGE_STRING
894PACKAGE_VERSION
895PACKAGE_TARNAME
896PACKAGE_NAME
897PATH_SEPARATOR
898SHELL'
899ac_subst_files=''
900ac_user_opts='
901enable_option_checking
902enable_shared
903enable_static
904with_pic
905enable_fast_install
906enable_dependency_tracking
907with_gnu_ld
908enable_libtool_lock
909enable_version_check
910enable_oss
911enable_x11
912enable_ximage
913enable_shmimage
914enable_exp_attack
915enable_semaphore
916enable_sem_open
917enable_memory_barrier
918enable_autozoom
919enable_drain
920enable_alsa
921enable_liblo
922enable_jack
923enable_jack_midi
924enable_jack_single_close
925enable_jack_default_audio
926enable_jack_default_midi
927enable_pulseaudio
928'
929      ac_precious_vars='build_alias
930host_alias
931target_alias
932CC
933CFLAGS
934LDFLAGS
935LIBS
936CPPFLAGS
937CPP
938PKG_CONFIG
939ALSA_CFLAGS
940ALSA_LIBS
941LIBLO_CFLAGS
942LIBLO_LIBS
943JACK_CFLAGS
944JACK_LIBS'
945
946
947# Initialize some variables set by options.
948ac_init_help=
949ac_init_version=false
950ac_unrecognized_opts=
951ac_unrecognized_sep=
952# The variables have the same names as the options, with
953# dashes changed to underlines.
954cache_file=/dev/null
955exec_prefix=NONE
956no_create=
957no_recursion=
958prefix=NONE
959program_prefix=NONE
960program_suffix=NONE
961program_transform_name=s,x,x,
962silent=
963site=
964srcdir=
965verbose=
966x_includes=NONE
967x_libraries=NONE
968
969# Installation directory options.
970# These are left unexpanded so users can "make install exec_prefix=/foo"
971# and all the variables that are supposed to be based on exec_prefix
972# by default will actually change.
973# Use braces instead of parens because sh, perl, etc. also accept them.
974# (The list follows the same order as the GNU Coding Standards.)
975bindir='${exec_prefix}/bin'
976sbindir='${exec_prefix}/sbin'
977libexecdir='${exec_prefix}/libexec'
978datarootdir='${prefix}/share'
979datadir='${datarootdir}'
980sysconfdir='${prefix}/etc'
981sharedstatedir='${prefix}/com'
982localstatedir='${prefix}/var'
983includedir='${prefix}/include'
984oldincludedir='/usr/include'
985docdir='${datarootdir}/doc/${PACKAGE}'
986infodir='${datarootdir}/info'
987htmldir='${docdir}'
988dvidir='${docdir}'
989pdfdir='${docdir}'
990psdir='${docdir}'
991libdir='${exec_prefix}/lib'
992localedir='${datarootdir}/locale'
993mandir='${datarootdir}/man'
994
995ac_prev=
996ac_dashdash=
997for ac_option
998do
999  # If the previous option needs an argument, assign it.
1000  if test -n "$ac_prev"; then
1001    eval $ac_prev=\$ac_option
1002    ac_prev=
1003    continue
1004  fi
1005
1006  case $ac_option in
1007  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008  *)	ac_optarg=yes ;;
1009  esac
1010
1011  # Accept the important Cygnus configure options, so we can diagnose typos.
1012
1013  case $ac_dashdash$ac_option in
1014  --)
1015    ac_dashdash=yes ;;
1016
1017  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018    ac_prev=bindir ;;
1019  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020    bindir=$ac_optarg ;;
1021
1022  -build | --build | --buil | --bui | --bu)
1023    ac_prev=build_alias ;;
1024  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025    build_alias=$ac_optarg ;;
1026
1027  -cache-file | --cache-file | --cache-fil | --cache-fi \
1028  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029    ac_prev=cache_file ;;
1030  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032    cache_file=$ac_optarg ;;
1033
1034  --config-cache | -C)
1035    cache_file=config.cache ;;
1036
1037  -datadir | --datadir | --datadi | --datad)
1038    ac_prev=datadir ;;
1039  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040    datadir=$ac_optarg ;;
1041
1042  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043  | --dataroo | --dataro | --datar)
1044    ac_prev=datarootdir ;;
1045  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047    datarootdir=$ac_optarg ;;
1048
1049  -disable-* | --disable-*)
1050    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051    # Reject names that are not valid shell variable names.
1052    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053      as_fn_error "invalid feature name: $ac_useropt"
1054    ac_useropt_orig=$ac_useropt
1055    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056    case $ac_user_opts in
1057      *"
1058"enable_$ac_useropt"
1059"*) ;;
1060      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061	 ac_unrecognized_sep=', ';;
1062    esac
1063    eval enable_$ac_useropt=no ;;
1064
1065  -docdir | --docdir | --docdi | --doc | --do)
1066    ac_prev=docdir ;;
1067  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068    docdir=$ac_optarg ;;
1069
1070  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071    ac_prev=dvidir ;;
1072  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073    dvidir=$ac_optarg ;;
1074
1075  -enable-* | --enable-*)
1076    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077    # Reject names that are not valid shell variable names.
1078    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079      as_fn_error "invalid feature name: $ac_useropt"
1080    ac_useropt_orig=$ac_useropt
1081    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082    case $ac_user_opts in
1083      *"
1084"enable_$ac_useropt"
1085"*) ;;
1086      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087	 ac_unrecognized_sep=', ';;
1088    esac
1089    eval enable_$ac_useropt=\$ac_optarg ;;
1090
1091  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093  | --exec | --exe | --ex)
1094    ac_prev=exec_prefix ;;
1095  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097  | --exec=* | --exe=* | --ex=*)
1098    exec_prefix=$ac_optarg ;;
1099
1100  -gas | --gas | --ga | --g)
1101    # Obsolete; use --with-gas.
1102    with_gas=yes ;;
1103
1104  -help | --help | --hel | --he | -h)
1105    ac_init_help=long ;;
1106  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107    ac_init_help=recursive ;;
1108  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109    ac_init_help=short ;;
1110
1111  -host | --host | --hos | --ho)
1112    ac_prev=host_alias ;;
1113  -host=* | --host=* | --hos=* | --ho=*)
1114    host_alias=$ac_optarg ;;
1115
1116  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117    ac_prev=htmldir ;;
1118  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119  | --ht=*)
1120    htmldir=$ac_optarg ;;
1121
1122  -includedir | --includedir | --includedi | --included | --include \
1123  | --includ | --inclu | --incl | --inc)
1124    ac_prev=includedir ;;
1125  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126  | --includ=* | --inclu=* | --incl=* | --inc=*)
1127    includedir=$ac_optarg ;;
1128
1129  -infodir | --infodir | --infodi | --infod | --info | --inf)
1130    ac_prev=infodir ;;
1131  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132    infodir=$ac_optarg ;;
1133
1134  -libdir | --libdir | --libdi | --libd)
1135    ac_prev=libdir ;;
1136  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137    libdir=$ac_optarg ;;
1138
1139  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140  | --libexe | --libex | --libe)
1141    ac_prev=libexecdir ;;
1142  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143  | --libexe=* | --libex=* | --libe=*)
1144    libexecdir=$ac_optarg ;;
1145
1146  -localedir | --localedir | --localedi | --localed | --locale)
1147    ac_prev=localedir ;;
1148  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149    localedir=$ac_optarg ;;
1150
1151  -localstatedir | --localstatedir | --localstatedi | --localstated \
1152  | --localstate | --localstat | --localsta | --localst | --locals)
1153    ac_prev=localstatedir ;;
1154  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156    localstatedir=$ac_optarg ;;
1157
1158  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159    ac_prev=mandir ;;
1160  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161    mandir=$ac_optarg ;;
1162
1163  -nfp | --nfp | --nf)
1164    # Obsolete; use --without-fp.
1165    with_fp=no ;;
1166
1167  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168  | --no-cr | --no-c | -n)
1169    no_create=yes ;;
1170
1171  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173    no_recursion=yes ;;
1174
1175  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177  | --oldin | --oldi | --old | --ol | --o)
1178    ac_prev=oldincludedir ;;
1179  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182    oldincludedir=$ac_optarg ;;
1183
1184  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185    ac_prev=prefix ;;
1186  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187    prefix=$ac_optarg ;;
1188
1189  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190  | --program-pre | --program-pr | --program-p)
1191    ac_prev=program_prefix ;;
1192  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194    program_prefix=$ac_optarg ;;
1195
1196  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197  | --program-suf | --program-su | --program-s)
1198    ac_prev=program_suffix ;;
1199  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201    program_suffix=$ac_optarg ;;
1202
1203  -program-transform-name | --program-transform-name \
1204  | --program-transform-nam | --program-transform-na \
1205  | --program-transform-n | --program-transform- \
1206  | --program-transform | --program-transfor \
1207  | --program-transfo | --program-transf \
1208  | --program-trans | --program-tran \
1209  | --progr-tra | --program-tr | --program-t)
1210    ac_prev=program_transform_name ;;
1211  -program-transform-name=* | --program-transform-name=* \
1212  | --program-transform-nam=* | --program-transform-na=* \
1213  | --program-transform-n=* | --program-transform-=* \
1214  | --program-transform=* | --program-transfor=* \
1215  | --program-transfo=* | --program-transf=* \
1216  | --program-trans=* | --program-tran=* \
1217  | --progr-tra=* | --program-tr=* | --program-t=*)
1218    program_transform_name=$ac_optarg ;;
1219
1220  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221    ac_prev=pdfdir ;;
1222  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223    pdfdir=$ac_optarg ;;
1224
1225  -psdir | --psdir | --psdi | --psd | --ps)
1226    ac_prev=psdir ;;
1227  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228    psdir=$ac_optarg ;;
1229
1230  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231  | -silent | --silent | --silen | --sile | --sil)
1232    silent=yes ;;
1233
1234  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235    ac_prev=sbindir ;;
1236  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237  | --sbi=* | --sb=*)
1238    sbindir=$ac_optarg ;;
1239
1240  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242  | --sharedst | --shareds | --shared | --share | --shar \
1243  | --sha | --sh)
1244    ac_prev=sharedstatedir ;;
1245  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248  | --sha=* | --sh=*)
1249    sharedstatedir=$ac_optarg ;;
1250
1251  -site | --site | --sit)
1252    ac_prev=site ;;
1253  -site=* | --site=* | --sit=*)
1254    site=$ac_optarg ;;
1255
1256  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257    ac_prev=srcdir ;;
1258  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259    srcdir=$ac_optarg ;;
1260
1261  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262  | --syscon | --sysco | --sysc | --sys | --sy)
1263    ac_prev=sysconfdir ;;
1264  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266    sysconfdir=$ac_optarg ;;
1267
1268  -target | --target | --targe | --targ | --tar | --ta | --t)
1269    ac_prev=target_alias ;;
1270  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271    target_alias=$ac_optarg ;;
1272
1273  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274    verbose=yes ;;
1275
1276  -version | --version | --versio | --versi | --vers | -V)
1277    ac_init_version=: ;;
1278
1279  -with-* | --with-*)
1280    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281    # Reject names that are not valid shell variable names.
1282    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283      as_fn_error "invalid package name: $ac_useropt"
1284    ac_useropt_orig=$ac_useropt
1285    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286    case $ac_user_opts in
1287      *"
1288"with_$ac_useropt"
1289"*) ;;
1290      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291	 ac_unrecognized_sep=', ';;
1292    esac
1293    eval with_$ac_useropt=\$ac_optarg ;;
1294
1295  -without-* | --without-*)
1296    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297    # Reject names that are not valid shell variable names.
1298    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299      as_fn_error "invalid package name: $ac_useropt"
1300    ac_useropt_orig=$ac_useropt
1301    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302    case $ac_user_opts in
1303      *"
1304"with_$ac_useropt"
1305"*) ;;
1306      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307	 ac_unrecognized_sep=', ';;
1308    esac
1309    eval with_$ac_useropt=no ;;
1310
1311  --x)
1312    # Obsolete; use --with-x.
1313    with_x=yes ;;
1314
1315  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316  | --x-incl | --x-inc | --x-in | --x-i)
1317    ac_prev=x_includes ;;
1318  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320    x_includes=$ac_optarg ;;
1321
1322  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324    ac_prev=x_libraries ;;
1325  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327    x_libraries=$ac_optarg ;;
1328
1329  -*) as_fn_error "unrecognized option: \`$ac_option'
1330Try \`$0 --help' for more information."
1331    ;;
1332
1333  *=*)
1334    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335    # Reject names that are not valid shell variable names.
1336    case $ac_envvar in #(
1337      '' | [0-9]* | *[!_$as_cr_alnum]* )
1338      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1339    esac
1340    eval $ac_envvar=\$ac_optarg
1341    export $ac_envvar ;;
1342
1343  *)
1344    # FIXME: should be removed in autoconf 3.0.
1345    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349    ;;
1350
1351  esac
1352done
1353
1354if test -n "$ac_prev"; then
1355  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356  as_fn_error "missing argument to $ac_option"
1357fi
1358
1359if test -n "$ac_unrecognized_opts"; then
1360  case $enable_option_checking in
1361    no) ;;
1362    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1363    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364  esac
1365fi
1366
1367# Check all directory arguments for consistency.
1368for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369		datadir sysconfdir sharedstatedir localstatedir includedir \
1370		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371		libdir localedir mandir
1372do
1373  eval ac_val=\$$ac_var
1374  # Remove trailing slashes.
1375  case $ac_val in
1376    */ )
1377      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378      eval $ac_var=\$ac_val;;
1379  esac
1380  # Be sure to have absolute directory names.
1381  case $ac_val in
1382    [\\/$]* | ?:[\\/]* )  continue;;
1383    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384  esac
1385  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1386done
1387
1388# There might be people who depend on the old broken behavior: `$host'
1389# used to hold the argument of --host etc.
1390# FIXME: To remove some day.
1391build=$build_alias
1392host=$host_alias
1393target=$target_alias
1394
1395# FIXME: To remove some day.
1396if test "x$host_alias" != x; then
1397  if test "x$build_alias" = x; then
1398    cross_compiling=maybe
1399    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400    If a cross compiler is detected then cross compile mode will be used." >&2
1401  elif test "x$build_alias" != "x$host_alias"; then
1402    cross_compiling=yes
1403  fi
1404fi
1405
1406ac_tool_prefix=
1407test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408
1409test "$silent" = yes && exec 6>/dev/null
1410
1411
1412ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413ac_ls_di=`ls -di .` &&
1414ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415  as_fn_error "working directory cannot be determined"
1416test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417  as_fn_error "pwd does not report name of working directory"
1418
1419
1420# Find the source files, if location was not specified.
1421if test -z "$srcdir"; then
1422  ac_srcdir_defaulted=yes
1423  # Try the directory containing this script, then the parent directory.
1424  ac_confdir=`$as_dirname -- "$as_myself" ||
1425$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426	 X"$as_myself" : 'X\(//\)[^/]' \| \
1427	 X"$as_myself" : 'X\(//\)$' \| \
1428	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429$as_echo X"$as_myself" |
1430    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431	    s//\1/
1432	    q
1433	  }
1434	  /^X\(\/\/\)[^/].*/{
1435	    s//\1/
1436	    q
1437	  }
1438	  /^X\(\/\/\)$/{
1439	    s//\1/
1440	    q
1441	  }
1442	  /^X\(\/\).*/{
1443	    s//\1/
1444	    q
1445	  }
1446	  s/.*/./; q'`
1447  srcdir=$ac_confdir
1448  if test ! -r "$srcdir/$ac_unique_file"; then
1449    srcdir=..
1450  fi
1451else
1452  ac_srcdir_defaulted=no
1453fi
1454if test ! -r "$srcdir/$ac_unique_file"; then
1455  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1457fi
1458ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459ac_abs_confdir=`(
1460	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1461	pwd)`
1462# When building in place, set srcdir=.
1463if test "$ac_abs_confdir" = "$ac_pwd"; then
1464  srcdir=.
1465fi
1466# Remove unnecessary trailing slashes from srcdir.
1467# Double slashes in file names in object file debugging info
1468# mess up M-x gdb in Emacs.
1469case $srcdir in
1470*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471esac
1472for ac_var in $ac_precious_vars; do
1473  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474  eval ac_env_${ac_var}_value=\$${ac_var}
1475  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477done
1478
1479#
1480# Report the --help message.
1481#
1482if test "$ac_init_help" = "long"; then
1483  # Omit some internal or obsolete options to make the list less imposing.
1484  # This message is too long to be a string in the A/UX 3.1 sh.
1485  cat <<_ACEOF
1486\`configure' configures this package to adapt to many kinds of systems.
1487
1488Usage: $0 [OPTION]... [VAR=VALUE]...
1489
1490To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491VAR=VALUE.  See below for descriptions of some of the useful variables.
1492
1493Defaults for the options are specified in brackets.
1494
1495Configuration:
1496  -h, --help              display this help and exit
1497      --help=short        display options specific to this package
1498      --help=recursive    display the short help of all the included packages
1499  -V, --version           display version information and exit
1500  -q, --quiet, --silent   do not print \`checking...' messages
1501      --cache-file=FILE   cache test results in FILE [disabled]
1502  -C, --config-cache      alias for \`--cache-file=config.cache'
1503  -n, --no-create         do not create output files
1504      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1505
1506Installation directories:
1507  --prefix=PREFIX         install architecture-independent files in PREFIX
1508                          [$ac_default_prefix]
1509  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1510                          [PREFIX]
1511
1512By default, \`make install' will install all the files in
1513\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1514an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515for instance \`--prefix=\$HOME'.
1516
1517For better control, use the options below.
1518
1519Fine tuning of the installation directories:
1520  --bindir=DIR            user executables [EPREFIX/bin]
1521  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1522  --libexecdir=DIR        program executables [EPREFIX/libexec]
1523  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1524  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1525  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1526  --libdir=DIR            object code libraries [EPREFIX/lib]
1527  --includedir=DIR        C header files [PREFIX/include]
1528  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1529  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1530  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1531  --infodir=DIR           info documentation [DATAROOTDIR/info]
1532  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1533  --mandir=DIR            man documentation [DATAROOTDIR/man]
1534  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1535  --htmldir=DIR           html documentation [DOCDIR]
1536  --dvidir=DIR            dvi documentation [DOCDIR]
1537  --pdfdir=DIR            pdf documentation [DOCDIR]
1538  --psdir=DIR             ps documentation [DOCDIR]
1539_ACEOF
1540
1541  cat <<\_ACEOF
1542
1543Program names:
1544  --program-prefix=PREFIX            prepend PREFIX to installed program names
1545  --program-suffix=SUFFIX            append SUFFIX to installed program names
1546  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1547
1548System types:
1549  --build=BUILD     configure for building on BUILD [guessed]
1550  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1551_ACEOF
1552fi
1553
1554if test -n "$ac_init_help"; then
1555
1556  cat <<\_ACEOF
1557
1558Optional Features:
1559  --disable-option-checking  ignore unrecognized --enable/--with options
1560  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1561  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1562  --enable-shared[=PKGS]  build shared libraries [default=yes]
1563  --enable-static[=PKGS]  build static libraries [default=yes]
1564  --enable-fast-install[=PKGS]
1565                          optimize for fast installation [default=yes]
1566  --disable-dependency-tracking  speeds up one-time build
1567  --enable-dependency-tracking   do not reject slow dependency extractors
1568  --disable-libtool-lock  avoid locking (might break parallel builds)
1569  --disable-version-check	ignore preinstalled versions
1570  --disable-oss			ignore OSS driver
1571  --disable-x11			disable X11 interface
1572  --disable-ximage		ignore XImage interface
1573  --disable-shmimage		ignore XShmImage interface
1574  --enable-exp-attack		enable exponential attack
1575  --enable-semaphore		enable engine semaphores
1576  --enable-sem-open		use sem_open interface
1577  --enable-memory-barrier	enable ringbuffer barrier
1578  --disable-autozoom		disable window autozoom on Enter
1579  --disable-drain		no reopen of audio dev on error
1580  --disable-alsa		ignore ALSA driver
1581  --disable-liblo		ignore LIBLO driver
1582  --disable-jack		ignore JACK driver
1583  --disable-jack-midi		ignore JACK MIDI driver
1584  --disable-jack-single-close	disable Jack selective closedown
1585  --enable-jack-default-audio	enable Jack as default Audio driver
1586  --enable-jack-default-midi	enable Jack as default Midi driver
1587  --enable-pulseaudio		enable pulse audio drivers
1588
1589Optional Packages:
1590  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1591  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1592  --with-pic              try to use only PIC/non-PIC objects [default=use
1593                          both]
1594  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1595
1596Some influential environment variables:
1597  CC          C compiler command
1598  CFLAGS      C compiler flags
1599  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1600              nonstandard directory <lib dir>
1601  LIBS        libraries to pass to the linker, e.g. -l<library>
1602  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1603              you have headers in a nonstandard directory <include dir>
1604  CPP         C preprocessor
1605  PKG_CONFIG  path to pkg-config utility
1606  ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1607  ALSA_LIBS   linker flags for ALSA, overriding pkg-config
1608  LIBLO_CFLAGS
1609              C compiler flags for LIBLO, overriding pkg-config
1610  LIBLO_LIBS  linker flags for LIBLO, overriding pkg-config
1611  JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
1612  JACK_LIBS   linker flags for JACK, overriding pkg-config
1613
1614Use these variables to override the choices made by `configure' or to help
1615it to find libraries and programs with nonstandard names/locations.
1616
1617Report bugs to the package provider.
1618_ACEOF
1619ac_status=$?
1620fi
1621
1622if test "$ac_init_help" = "recursive"; then
1623  # If there are subdirs, report their specific --help.
1624  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1625    test -d "$ac_dir" ||
1626      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1627      continue
1628    ac_builddir=.
1629
1630case "$ac_dir" in
1631.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632*)
1633  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1634  # A ".." for each directory in $ac_dir_suffix.
1635  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1636  case $ac_top_builddir_sub in
1637  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1639  esac ;;
1640esac
1641ac_abs_top_builddir=$ac_pwd
1642ac_abs_builddir=$ac_pwd$ac_dir_suffix
1643# for backward compatibility:
1644ac_top_builddir=$ac_top_build_prefix
1645
1646case $srcdir in
1647  .)  # We are building in place.
1648    ac_srcdir=.
1649    ac_top_srcdir=$ac_top_builddir_sub
1650    ac_abs_top_srcdir=$ac_pwd ;;
1651  [\\/]* | ?:[\\/]* )  # Absolute name.
1652    ac_srcdir=$srcdir$ac_dir_suffix;
1653    ac_top_srcdir=$srcdir
1654    ac_abs_top_srcdir=$srcdir ;;
1655  *) # Relative name.
1656    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1657    ac_top_srcdir=$ac_top_build_prefix$srcdir
1658    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1659esac
1660ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1661
1662    cd "$ac_dir" || { ac_status=$?; continue; }
1663    # Check for guested configure.
1664    if test -f "$ac_srcdir/configure.gnu"; then
1665      echo &&
1666      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1667    elif test -f "$ac_srcdir/configure"; then
1668      echo &&
1669      $SHELL "$ac_srcdir/configure" --help=recursive
1670    else
1671      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1672    fi || ac_status=$?
1673    cd "$ac_pwd" || { ac_status=$?; break; }
1674  done
1675fi
1676
1677test -n "$ac_init_help" && exit $ac_status
1678if $ac_init_version; then
1679  cat <<\_ACEOF
1680configure
1681generated by GNU Autoconf 2.65
1682
1683Copyright (C) 2009 Free Software Foundation, Inc.
1684This configure script is free software; the Free Software Foundation
1685gives unlimited permission to copy, distribute and modify it.
1686_ACEOF
1687  exit
1688fi
1689
1690## ------------------------ ##
1691## Autoconf initialization. ##
1692## ------------------------ ##
1693
1694# ac_fn_c_try_compile LINENO
1695# --------------------------
1696# Try to compile conftest.$ac_ext, and return whether this succeeded.
1697ac_fn_c_try_compile ()
1698{
1699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700  rm -f conftest.$ac_objext
1701  if { { ac_try="$ac_compile"
1702case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708  (eval "$ac_compile") 2>conftest.err
1709  ac_status=$?
1710  if test -s conftest.err; then
1711    grep -v '^ *+' conftest.err >conftest.er1
1712    cat conftest.er1 >&5
1713    mv -f conftest.er1 conftest.err
1714  fi
1715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716  test $ac_status = 0; } && {
1717	 test -z "$ac_c_werror_flag" ||
1718	 test ! -s conftest.err
1719       } && test -s conftest.$ac_objext; then :
1720  ac_retval=0
1721else
1722  $as_echo "$as_me: failed program was:" >&5
1723sed 's/^/| /' conftest.$ac_ext >&5
1724
1725	ac_retval=1
1726fi
1727  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728  as_fn_set_status $ac_retval
1729
1730} # ac_fn_c_try_compile
1731
1732# ac_fn_c_try_link LINENO
1733# -----------------------
1734# Try to link conftest.$ac_ext, and return whether this succeeded.
1735ac_fn_c_try_link ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  rm -f conftest.$ac_objext conftest$ac_exeext
1739  if { { ac_try="$ac_link"
1740case "(($ac_try" in
1741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742  *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745$as_echo "$ac_try_echo"; } >&5
1746  (eval "$ac_link") 2>conftest.err
1747  ac_status=$?
1748  if test -s conftest.err; then
1749    grep -v '^ *+' conftest.err >conftest.er1
1750    cat conftest.er1 >&5
1751    mv -f conftest.er1 conftest.err
1752  fi
1753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754  test $ac_status = 0; } && {
1755	 test -z "$ac_c_werror_flag" ||
1756	 test ! -s conftest.err
1757       } && test -s conftest$ac_exeext && {
1758	 test "$cross_compiling" = yes ||
1759	 $as_test_x conftest$ac_exeext
1760       }; then :
1761  ac_retval=0
1762else
1763  $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766	ac_retval=1
1767fi
1768  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1769  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1770  # interfere with the next link command; also delete a directory that is
1771  # left behind by Apple's compiler.  We do this before executing the actions.
1772  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774  as_fn_set_status $ac_retval
1775
1776} # ac_fn_c_try_link
1777
1778# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1779# -------------------------------------------------------
1780# Tests whether HEADER exists and can be compiled using the include files in
1781# INCLUDES, setting the cache variable VAR accordingly.
1782ac_fn_c_check_header_compile ()
1783{
1784  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786$as_echo_n "checking for $2... " >&6; }
1787if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1788  $as_echo_n "(cached) " >&6
1789else
1790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h.  */
1792$4
1793#include <$2>
1794_ACEOF
1795if ac_fn_c_try_compile "$LINENO"; then :
1796  eval "$3=yes"
1797else
1798  eval "$3=no"
1799fi
1800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801fi
1802eval ac_res=\$$3
1803	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804$as_echo "$ac_res" >&6; }
1805  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806
1807} # ac_fn_c_check_header_compile
1808
1809# ac_fn_c_try_cpp LINENO
1810# ----------------------
1811# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1812ac_fn_c_try_cpp ()
1813{
1814  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815  if { { ac_try="$ac_cpp conftest.$ac_ext"
1816case "(($ac_try" in
1817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818  *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
1822  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1823  ac_status=$?
1824  if test -s conftest.err; then
1825    grep -v '^ *+' conftest.err >conftest.er1
1826    cat conftest.er1 >&5
1827    mv -f conftest.er1 conftest.err
1828  fi
1829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830  test $ac_status = 0; } >/dev/null && {
1831	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1832	 test ! -s conftest.err
1833       }; then :
1834  ac_retval=0
1835else
1836  $as_echo "$as_me: failed program was:" >&5
1837sed 's/^/| /' conftest.$ac_ext >&5
1838
1839    ac_retval=1
1840fi
1841  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842  as_fn_set_status $ac_retval
1843
1844} # ac_fn_c_try_cpp
1845
1846# ac_fn_c_try_run LINENO
1847# ----------------------
1848# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1849# that executables *can* be run.
1850ac_fn_c_try_run ()
1851{
1852  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853  if { { ac_try="$ac_link"
1854case "(($ac_try" in
1855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856  *) ac_try_echo=$ac_try;;
1857esac
1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859$as_echo "$ac_try_echo"; } >&5
1860  (eval "$ac_link") 2>&5
1861  ac_status=$?
1862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1864  { { case "(($ac_try" in
1865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866  *) ac_try_echo=$ac_try;;
1867esac
1868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869$as_echo "$ac_try_echo"; } >&5
1870  (eval "$ac_try") 2>&5
1871  ac_status=$?
1872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873  test $ac_status = 0; }; }; then :
1874  ac_retval=0
1875else
1876  $as_echo "$as_me: program exited with status $ac_status" >&5
1877       $as_echo "$as_me: failed program was:" >&5
1878sed 's/^/| /' conftest.$ac_ext >&5
1879
1880       ac_retval=$ac_status
1881fi
1882  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884  as_fn_set_status $ac_retval
1885
1886} # ac_fn_c_try_run
1887
1888# ac_fn_c_check_func LINENO FUNC VAR
1889# ----------------------------------
1890# Tests whether FUNC exists, setting the cache variable VAR accordingly
1891ac_fn_c_check_func ()
1892{
1893  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895$as_echo_n "checking for $2... " >&6; }
1896if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897  $as_echo_n "(cached) " >&6
1898else
1899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900/* end confdefs.h.  */
1901/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1902   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1903#define $2 innocuous_$2
1904
1905/* System header to define __stub macros and hopefully few prototypes,
1906    which can conflict with char $2 (); below.
1907    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1908    <limits.h> exists even on freestanding compilers.  */
1909
1910#ifdef __STDC__
1911# include <limits.h>
1912#else
1913# include <assert.h>
1914#endif
1915
1916#undef $2
1917
1918/* Override any GCC internal prototype to avoid an error.
1919   Use char because int might match the return type of a GCC
1920   builtin and then its argument prototype would still apply.  */
1921#ifdef __cplusplus
1922extern "C"
1923#endif
1924char $2 ();
1925/* The GNU C library defines this for functions which it implements
1926    to always fail with ENOSYS.  Some functions are actually named
1927    something starting with __ and the normal name is an alias.  */
1928#if defined __stub_$2 || defined __stub___$2
1929choke me
1930#endif
1931
1932int
1933main ()
1934{
1935return $2 ();
1936  ;
1937  return 0;
1938}
1939_ACEOF
1940if ac_fn_c_try_link "$LINENO"; then :
1941  eval "$3=yes"
1942else
1943  eval "$3=no"
1944fi
1945rm -f core conftest.err conftest.$ac_objext \
1946    conftest$ac_exeext conftest.$ac_ext
1947fi
1948eval ac_res=\$$3
1949	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950$as_echo "$ac_res" >&6; }
1951  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952
1953} # ac_fn_c_check_func
1954
1955# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1956# -------------------------------------------------------
1957# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1958# the include files in INCLUDES and setting the cache variable VAR
1959# accordingly.
1960ac_fn_c_check_header_mongrel ()
1961{
1962  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965$as_echo_n "checking for $2... " >&6; }
1966if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1967  $as_echo_n "(cached) " >&6
1968fi
1969eval ac_res=\$$3
1970	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971$as_echo "$ac_res" >&6; }
1972else
1973  # Is the header compilable?
1974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1975$as_echo_n "checking $2 usability... " >&6; }
1976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977/* end confdefs.h.  */
1978$4
1979#include <$2>
1980_ACEOF
1981if ac_fn_c_try_compile "$LINENO"; then :
1982  ac_header_compiler=yes
1983else
1984  ac_header_compiler=no
1985fi
1986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1988$as_echo "$ac_header_compiler" >&6; }
1989
1990# Is the header present?
1991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1992$as_echo_n "checking $2 presence... " >&6; }
1993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994/* end confdefs.h.  */
1995#include <$2>
1996_ACEOF
1997if ac_fn_c_try_cpp "$LINENO"; then :
1998  ac_header_preproc=yes
1999else
2000  ac_header_preproc=no
2001fi
2002rm -f conftest.err conftest.$ac_ext
2003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2004$as_echo "$ac_header_preproc" >&6; }
2005
2006# So?  What about this header?
2007case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2008  yes:no: )
2009    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2010$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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    ;;
2014  no:yes:* )
2015    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2016$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2017    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2018$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2019    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2020$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2021    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2022$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2023    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025    ;;
2026esac
2027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028$as_echo_n "checking for $2... " >&6; }
2029if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2030  $as_echo_n "(cached) " >&6
2031else
2032  eval "$3=\$ac_header_compiler"
2033fi
2034eval ac_res=\$$3
2035	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036$as_echo "$ac_res" >&6; }
2037fi
2038  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039
2040} # ac_fn_c_check_header_mongrel
2041cat >config.log <<_ACEOF
2042This file contains any messages produced by compilers while
2043running configure, to aid debugging if configure makes a mistake.
2044
2045It was created by $as_me, which was
2046generated by GNU Autoconf 2.65.  Invocation command line was
2047
2048  $ $0 $@
2049
2050_ACEOF
2051exec 5>>config.log
2052{
2053cat <<_ASUNAME
2054## --------- ##
2055## Platform. ##
2056## --------- ##
2057
2058hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2059uname -m = `(uname -m) 2>/dev/null || echo unknown`
2060uname -r = `(uname -r) 2>/dev/null || echo unknown`
2061uname -s = `(uname -s) 2>/dev/null || echo unknown`
2062uname -v = `(uname -v) 2>/dev/null || echo unknown`
2063
2064/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2065/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2066
2067/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2068/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2069/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2070/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2071/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2072/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2073/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2074
2075_ASUNAME
2076
2077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078for as_dir in $PATH
2079do
2080  IFS=$as_save_IFS
2081  test -z "$as_dir" && as_dir=.
2082    $as_echo "PATH: $as_dir"
2083  done
2084IFS=$as_save_IFS
2085
2086} >&5
2087
2088cat >&5 <<_ACEOF
2089
2090
2091## ----------- ##
2092## Core tests. ##
2093## ----------- ##
2094
2095_ACEOF
2096
2097
2098# Keep a trace of the command line.
2099# Strip out --no-create and --no-recursion so they do not pile up.
2100# Strip out --silent because we don't want to record it for future runs.
2101# Also quote any args containing shell meta-characters.
2102# Make two passes to allow for proper duplicate-argument suppression.
2103ac_configure_args=
2104ac_configure_args0=
2105ac_configure_args1=
2106ac_must_keep_next=false
2107for ac_pass in 1 2
2108do
2109  for ac_arg
2110  do
2111    case $ac_arg in
2112    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2113    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2114    | -silent | --silent | --silen | --sile | --sil)
2115      continue ;;
2116    *\'*)
2117      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2118    esac
2119    case $ac_pass in
2120    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2121    2)
2122      as_fn_append ac_configure_args1 " '$ac_arg'"
2123      if test $ac_must_keep_next = true; then
2124	ac_must_keep_next=false # Got value, back to normal.
2125      else
2126	case $ac_arg in
2127	  *=* | --config-cache | -C | -disable-* | --disable-* \
2128	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2129	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2130	  | -with-* | --with-* | -without-* | --without-* | --x)
2131	    case "$ac_configure_args0 " in
2132	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2133	    esac
2134	    ;;
2135	  -* ) ac_must_keep_next=true ;;
2136	esac
2137      fi
2138      as_fn_append ac_configure_args " '$ac_arg'"
2139      ;;
2140    esac
2141  done
2142done
2143{ ac_configure_args0=; unset ac_configure_args0;}
2144{ ac_configure_args1=; unset ac_configure_args1;}
2145
2146# When interrupted or exit'd, cleanup temporary files, and complete
2147# config.log.  We remove comments because anyway the quotes in there
2148# would cause problems or look ugly.
2149# WARNING: Use '\'' to represent an apostrophe within the trap.
2150# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2151trap 'exit_status=$?
2152  # Save into config.log some information that might help in debugging.
2153  {
2154    echo
2155
2156    cat <<\_ASBOX
2157## ---------------- ##
2158## Cache variables. ##
2159## ---------------- ##
2160_ASBOX
2161    echo
2162    # The following way of writing the cache mishandles newlines in values,
2163(
2164  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2165    eval ac_val=\$$ac_var
2166    case $ac_val in #(
2167    *${as_nl}*)
2168      case $ac_var in #(
2169      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2170$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2171      esac
2172      case $ac_var in #(
2173      _ | IFS | as_nl) ;; #(
2174      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2175      *) { eval $ac_var=; unset $ac_var;} ;;
2176      esac ;;
2177    esac
2178  done
2179  (set) 2>&1 |
2180    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2181    *${as_nl}ac_space=\ *)
2182      sed -n \
2183	"s/'\''/'\''\\\\'\'''\''/g;
2184	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2185      ;; #(
2186    *)
2187      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2188      ;;
2189    esac |
2190    sort
2191)
2192    echo
2193
2194    cat <<\_ASBOX
2195## ----------------- ##
2196## Output variables. ##
2197## ----------------- ##
2198_ASBOX
2199    echo
2200    for ac_var in $ac_subst_vars
2201    do
2202      eval ac_val=\$$ac_var
2203      case $ac_val in
2204      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2205      esac
2206      $as_echo "$ac_var='\''$ac_val'\''"
2207    done | sort
2208    echo
2209
2210    if test -n "$ac_subst_files"; then
2211      cat <<\_ASBOX
2212## ------------------- ##
2213## File substitutions. ##
2214## ------------------- ##
2215_ASBOX
2216      echo
2217      for ac_var in $ac_subst_files
2218      do
2219	eval ac_val=\$$ac_var
2220	case $ac_val in
2221	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2222	esac
2223	$as_echo "$ac_var='\''$ac_val'\''"
2224      done | sort
2225      echo
2226    fi
2227
2228    if test -s confdefs.h; then
2229      cat <<\_ASBOX
2230## ----------- ##
2231## confdefs.h. ##
2232## ----------- ##
2233_ASBOX
2234      echo
2235      cat confdefs.h
2236      echo
2237    fi
2238    test "$ac_signal" != 0 &&
2239      $as_echo "$as_me: caught signal $ac_signal"
2240    $as_echo "$as_me: exit $exit_status"
2241  } >&5
2242  rm -f core *.core core.conftest.* &&
2243    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2244    exit $exit_status
2245' 0
2246for ac_signal in 1 2 13 15; do
2247  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2248done
2249ac_signal=0
2250
2251# confdefs.h avoids OS command line length limits that DEFS can exceed.
2252rm -f -r conftest* confdefs.h
2253
2254$as_echo "/* confdefs.h */" > confdefs.h
2255
2256# Predefined preprocessor variables.
2257
2258cat >>confdefs.h <<_ACEOF
2259#define PACKAGE_NAME "$PACKAGE_NAME"
2260_ACEOF
2261
2262cat >>confdefs.h <<_ACEOF
2263#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2264_ACEOF
2265
2266cat >>confdefs.h <<_ACEOF
2267#define PACKAGE_VERSION "$PACKAGE_VERSION"
2268_ACEOF
2269
2270cat >>confdefs.h <<_ACEOF
2271#define PACKAGE_STRING "$PACKAGE_STRING"
2272_ACEOF
2273
2274cat >>confdefs.h <<_ACEOF
2275#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2276_ACEOF
2277
2278cat >>confdefs.h <<_ACEOF
2279#define PACKAGE_URL "$PACKAGE_URL"
2280_ACEOF
2281
2282
2283# Let the site file select an alternate cache file if it wants to.
2284# Prefer an explicitly selected file to automatically selected ones.
2285ac_site_file1=NONE
2286ac_site_file2=NONE
2287if test -n "$CONFIG_SITE"; then
2288  ac_site_file1=$CONFIG_SITE
2289elif test "x$prefix" != xNONE; then
2290  ac_site_file1=$prefix/share/config.site
2291  ac_site_file2=$prefix/etc/config.site
2292else
2293  ac_site_file1=$ac_default_prefix/share/config.site
2294  ac_site_file2=$ac_default_prefix/etc/config.site
2295fi
2296for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2297do
2298  test "x$ac_site_file" = xNONE && continue
2299  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2300    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2301$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2302    sed 's/^/| /' "$ac_site_file" >&5
2303    . "$ac_site_file"
2304  fi
2305done
2306
2307if test -r "$cache_file"; then
2308  # Some versions of bash will fail to source /dev/null (special files
2309  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2310  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2311    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2312$as_echo "$as_me: loading cache $cache_file" >&6;}
2313    case $cache_file in
2314      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2315      *)                      . "./$cache_file";;
2316    esac
2317  fi
2318else
2319  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2320$as_echo "$as_me: creating cache $cache_file" >&6;}
2321  >$cache_file
2322fi
2323
2324# Check that the precious variables saved in the cache have kept the same
2325# value.
2326ac_cache_corrupted=false
2327for ac_var in $ac_precious_vars; do
2328  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2329  eval ac_new_set=\$ac_env_${ac_var}_set
2330  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2331  eval ac_new_val=\$ac_env_${ac_var}_value
2332  case $ac_old_set,$ac_new_set in
2333    set,)
2334      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2335$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2336      ac_cache_corrupted=: ;;
2337    ,set)
2338      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2339$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2340      ac_cache_corrupted=: ;;
2341    ,);;
2342    *)
2343      if test "x$ac_old_val" != "x$ac_new_val"; then
2344	# differences in whitespace do not lead to failure.
2345	ac_old_val_w=`echo x $ac_old_val`
2346	ac_new_val_w=`echo x $ac_new_val`
2347	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2348	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2349$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2350	  ac_cache_corrupted=:
2351	else
2352	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2353$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2354	  eval $ac_var=\$ac_old_val
2355	fi
2356	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2357$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2358	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2359$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2360      fi;;
2361  esac
2362  # Pass precious variables to config.status.
2363  if test "$ac_new_set" = set; then
2364    case $ac_new_val in
2365    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2366    *) ac_arg=$ac_var=$ac_new_val ;;
2367    esac
2368    case " $ac_configure_args " in
2369      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2370      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2371    esac
2372  fi
2373done
2374if $ac_cache_corrupted; then
2375  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2378$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2379  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2380fi
2381## -------------------- ##
2382## Main body of script. ##
2383## -------------------- ##
2384
2385ac_ext=c
2386ac_cpp='$CPP $CPPFLAGS'
2387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390
2391
2392
2393BRISTOL_MAJOR_VERSION=0
2394BRISTOL_MINOR_VERSION=60
2395BRISTOL_MICRO_VERSION=10
2396
2397BRISTOL_API_CURRENT=0
2398BRISTOL_API_REVISION=610
2399BRISTOL_API_AGE=0
2400
2401
2402
2403
2404
2405BRISTOL_VERSION=${BRISTOL_MAJOR_VERSION}.${BRISTOL_MINOR_VERSION}.${BRISTOL_MICRO_VERSION}
2406
2407
2408BRISTOL_SO_VERSION=${BRISTOL_API_CURRENT}:${BRISTOL_API_REVISION}:${BRISTOL_API_AGE}
2409
2410
2411#AM_INIT_AUTOMAKE([-Wall -Werror foreign])
2412am__api_version='1.11'
2413
2414ac_aux_dir=
2415for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2416  for ac_t in install-sh install.sh shtool; do
2417    if test -f "$ac_dir/$ac_t"; then
2418      ac_aux_dir=$ac_dir
2419      ac_install_sh="$ac_aux_dir/$ac_t -c"
2420      break 2
2421    fi
2422  done
2423done
2424if test -z "$ac_aux_dir"; then
2425  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2426fi
2427
2428# These three variables are undocumented and unsupported,
2429# and are intended to be withdrawn in a future Autoconf release.
2430# They can cause serious problems if a builder's source tree is in a directory
2431# whose full name contains unusual characters.
2432ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2433ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2434ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2435
2436
2437# Find a good install program.  We prefer a C program (faster),
2438# so one script is as good as another.  But avoid the broken or
2439# incompatible versions:
2440# SysV /etc/install, /usr/sbin/install
2441# SunOS /usr/etc/install
2442# IRIX /sbin/install
2443# AIX /bin/install
2444# AmigaOS /C/install, which installs bootblocks on floppy discs
2445# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2446# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2447# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2448# OS/2's system install, which has a completely different semantic
2449# ./install, which can be erroneously created by make from ./install.sh.
2450# Reject install programs that cannot install multiple files.
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2452$as_echo_n "checking for a BSD-compatible install... " >&6; }
2453if test -z "$INSTALL"; then
2454if test "${ac_cv_path_install+set}" = set; then :
2455  $as_echo_n "(cached) " >&6
2456else
2457  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458for as_dir in $PATH
2459do
2460  IFS=$as_save_IFS
2461  test -z "$as_dir" && as_dir=.
2462    # Account for people who put trailing slashes in PATH elements.
2463case $as_dir/ in #((
2464  ./ | .// | /[cC]/* | \
2465  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2466  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2467  /usr/ucb/* ) ;;
2468  *)
2469    # OSF1 and SCO ODT 3.0 have their own names for install.
2470    # Don't use installbsd from OSF since it installs stuff as root
2471    # by default.
2472    for ac_prog in ginstall scoinst install; do
2473      for ac_exec_ext in '' $ac_executable_extensions; do
2474	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2475	  if test $ac_prog = install &&
2476	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2477	    # AIX install.  It has an incompatible calling convention.
2478	    :
2479	  elif test $ac_prog = install &&
2480	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2481	    # program-specific install script used by HP pwplus--don't use.
2482	    :
2483	  else
2484	    rm -rf conftest.one conftest.two conftest.dir
2485	    echo one > conftest.one
2486	    echo two > conftest.two
2487	    mkdir conftest.dir
2488	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2489	      test -s conftest.one && test -s conftest.two &&
2490	      test -s conftest.dir/conftest.one &&
2491	      test -s conftest.dir/conftest.two
2492	    then
2493	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2494	      break 3
2495	    fi
2496	  fi
2497	fi
2498      done
2499    done
2500    ;;
2501esac
2502
2503  done
2504IFS=$as_save_IFS
2505
2506rm -rf conftest.one conftest.two conftest.dir
2507
2508fi
2509  if test "${ac_cv_path_install+set}" = set; then
2510    INSTALL=$ac_cv_path_install
2511  else
2512    # As a last resort, use the slow shell script.  Don't cache a
2513    # value for INSTALL within a source directory, because that will
2514    # break other packages using the cache if that directory is
2515    # removed, or if the value is a relative name.
2516    INSTALL=$ac_install_sh
2517  fi
2518fi
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2520$as_echo "$INSTALL" >&6; }
2521
2522# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2523# It thinks the first close brace ends the variable substitution.
2524test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2525
2526test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2527
2528test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2529
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2531$as_echo_n "checking whether build environment is sane... " >&6; }
2532# Just in case
2533sleep 1
2534echo timestamp > conftest.file
2535# Reject unsafe characters in $srcdir or the absolute working directory
2536# name.  Accept space and tab only in the latter.
2537am_lf='
2538'
2539case `pwd` in
2540  *[\\\"\#\$\&\'\`$am_lf]*)
2541    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2542esac
2543case $srcdir in
2544  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2545    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2546esac
2547
2548# Do `set' in a subshell so we don't clobber the current shell's
2549# arguments.  Must try -L first in case configure is actually a
2550# symlink; some systems play weird games with the mod time of symlinks
2551# (eg FreeBSD returns the mod time of the symlink's containing
2552# directory).
2553if (
2554   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2555   if test "$*" = "X"; then
2556      # -L didn't work.
2557      set X `ls -t "$srcdir/configure" conftest.file`
2558   fi
2559   rm -f conftest.file
2560   if test "$*" != "X $srcdir/configure conftest.file" \
2561      && test "$*" != "X conftest.file $srcdir/configure"; then
2562
2563      # If neither matched, then we have a broken ls.  This can happen
2564      # if, for instance, CONFIG_SHELL is bash and it inherits a
2565      # broken ls alias from the environment.  This has actually
2566      # happened.  Such a system could not be considered "sane".
2567      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2568alias in your environment" "$LINENO" 5
2569   fi
2570
2571   test "$2" = conftest.file
2572   )
2573then
2574   # Ok.
2575   :
2576else
2577   as_fn_error "newly created file is older than distributed files!
2578Check your system clock" "$LINENO" 5
2579fi
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2581$as_echo "yes" >&6; }
2582test "$program_prefix" != NONE &&
2583  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2584# Use a double $ so make ignores it.
2585test "$program_suffix" != NONE &&
2586  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2587# Double any \ or $.
2588# By default was `s,x,x', remove it if useless.
2589ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2590program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2591
2592# expand $ac_aux_dir to an absolute path
2593am_aux_dir=`cd $ac_aux_dir && pwd`
2594
2595if test x"${MISSING+set}" != xset; then
2596  case $am_aux_dir in
2597  *\ * | *\	*)
2598    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2599  *)
2600    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2601  esac
2602fi
2603# Use eval to expand $SHELL
2604if eval "$MISSING --run true"; then
2605  am_missing_run="$MISSING --run "
2606else
2607  am_missing_run=
2608  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2609$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2610fi
2611
2612if test x"${install_sh}" != xset; then
2613  case $am_aux_dir in
2614  *\ * | *\	*)
2615    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2616  *)
2617    install_sh="\${SHELL} $am_aux_dir/install-sh"
2618  esac
2619fi
2620
2621# Installed binaries are usually stripped using `strip' when the user
2622# run `make install-strip'.  However `strip' might not be the right
2623# tool to use in cross-compilation environments, therefore Automake
2624# will honor the `STRIP' environment variable to overrule this program.
2625if test "$cross_compiling" != no; then
2626  if test -n "$ac_tool_prefix"; then
2627  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2628set dummy ${ac_tool_prefix}strip; ac_word=$2
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2630$as_echo_n "checking for $ac_word... " >&6; }
2631if test "${ac_cv_prog_STRIP+set}" = set; then :
2632  $as_echo_n "(cached) " >&6
2633else
2634  if test -n "$STRIP"; then
2635  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2636else
2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638for as_dir in $PATH
2639do
2640  IFS=$as_save_IFS
2641  test -z "$as_dir" && as_dir=.
2642    for ac_exec_ext in '' $ac_executable_extensions; do
2643  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2644    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646    break 2
2647  fi
2648done
2649  done
2650IFS=$as_save_IFS
2651
2652fi
2653fi
2654STRIP=$ac_cv_prog_STRIP
2655if test -n "$STRIP"; then
2656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2657$as_echo "$STRIP" >&6; }
2658else
2659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660$as_echo "no" >&6; }
2661fi
2662
2663
2664fi
2665if test -z "$ac_cv_prog_STRIP"; then
2666  ac_ct_STRIP=$STRIP
2667  # Extract the first word of "strip", so it can be a program name with args.
2668set dummy strip; ac_word=$2
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670$as_echo_n "checking for $ac_word... " >&6; }
2671if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2672  $as_echo_n "(cached) " >&6
2673else
2674  if test -n "$ac_ct_STRIP"; then
2675  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680  IFS=$as_save_IFS
2681  test -z "$as_dir" && as_dir=.
2682    for ac_exec_ext in '' $ac_executable_extensions; do
2683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684    ac_cv_prog_ac_ct_STRIP="strip"
2685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686    break 2
2687  fi
2688done
2689  done
2690IFS=$as_save_IFS
2691
2692fi
2693fi
2694ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2695if test -n "$ac_ct_STRIP"; then
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2697$as_echo "$ac_ct_STRIP" >&6; }
2698else
2699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700$as_echo "no" >&6; }
2701fi
2702
2703  if test "x$ac_ct_STRIP" = x; then
2704    STRIP=":"
2705  else
2706    case $cross_compiling:$ac_tool_warned in
2707yes:)
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2710ac_tool_warned=yes ;;
2711esac
2712    STRIP=$ac_ct_STRIP
2713  fi
2714else
2715  STRIP="$ac_cv_prog_STRIP"
2716fi
2717
2718fi
2719INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2720
2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2722$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2723if test -z "$MKDIR_P"; then
2724  if test "${ac_cv_path_mkdir+set}" = set; then :
2725  $as_echo_n "(cached) " >&6
2726else
2727  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732    for ac_prog in mkdir gmkdir; do
2733	 for ac_exec_ext in '' $ac_executable_extensions; do
2734	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2735	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2736	     'mkdir (GNU coreutils) '* | \
2737	     'mkdir (coreutils) '* | \
2738	     'mkdir (fileutils) '4.1*)
2739	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2740	       break 3;;
2741	   esac
2742	 done
2743       done
2744  done
2745IFS=$as_save_IFS
2746
2747fi
2748
2749  test -d ./--version && rmdir ./--version
2750  if test "${ac_cv_path_mkdir+set}" = set; then
2751    MKDIR_P="$ac_cv_path_mkdir -p"
2752  else
2753    # As a last resort, use the slow shell script.  Don't cache a
2754    # value for MKDIR_P within a source directory, because that will
2755    # break other packages using the cache if that directory is
2756    # removed, or if the value is a relative name.
2757    MKDIR_P="$ac_install_sh -d"
2758  fi
2759fi
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2761$as_echo "$MKDIR_P" >&6; }
2762
2763mkdir_p="$MKDIR_P"
2764case $mkdir_p in
2765  [\\/$]* | ?:[\\/]*) ;;
2766  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2767esac
2768
2769for ac_prog in gawk mawk nawk awk
2770do
2771  # Extract the first word of "$ac_prog", so it can be a program name with args.
2772set dummy $ac_prog; ac_word=$2
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774$as_echo_n "checking for $ac_word... " >&6; }
2775if test "${ac_cv_prog_AWK+set}" = set; then :
2776  $as_echo_n "(cached) " >&6
2777else
2778  if test -n "$AWK"; then
2779  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2780else
2781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782for as_dir in $PATH
2783do
2784  IFS=$as_save_IFS
2785  test -z "$as_dir" && as_dir=.
2786    for ac_exec_ext in '' $ac_executable_extensions; do
2787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788    ac_cv_prog_AWK="$ac_prog"
2789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790    break 2
2791  fi
2792done
2793  done
2794IFS=$as_save_IFS
2795
2796fi
2797fi
2798AWK=$ac_cv_prog_AWK
2799if test -n "$AWK"; then
2800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2801$as_echo "$AWK" >&6; }
2802else
2803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804$as_echo "no" >&6; }
2805fi
2806
2807
2808  test -n "$AWK" && break
2809done
2810
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2812$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2813set x ${MAKE-make}
2814ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2815if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2816  $as_echo_n "(cached) " >&6
2817else
2818  cat >conftest.make <<\_ACEOF
2819SHELL = /bin/sh
2820all:
2821	@echo '@@@%%%=$(MAKE)=@@@%%%'
2822_ACEOF
2823# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2824case `${MAKE-make} -f conftest.make 2>/dev/null` in
2825  *@@@%%%=?*=@@@%%%*)
2826    eval ac_cv_prog_make_${ac_make}_set=yes;;
2827  *)
2828    eval ac_cv_prog_make_${ac_make}_set=no;;
2829esac
2830rm -f conftest.make
2831fi
2832if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2834$as_echo "yes" >&6; }
2835  SET_MAKE=
2836else
2837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838$as_echo "no" >&6; }
2839  SET_MAKE="MAKE=${MAKE-make}"
2840fi
2841
2842rm -rf .tst 2>/dev/null
2843mkdir .tst 2>/dev/null
2844if test -d .tst; then
2845  am__leading_dot=.
2846else
2847  am__leading_dot=_
2848fi
2849rmdir .tst 2>/dev/null
2850
2851if test "`cd $srcdir && pwd`" != "`pwd`"; then
2852  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2853  # is not polluted with repeated "-I."
2854  am__isrc=' -I$(srcdir)'
2855  # test to see if srcdir already configured
2856  if test -f $srcdir/config.status; then
2857    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2858  fi
2859fi
2860
2861# test whether we have cygpath
2862if test -z "$CYGPATH_W"; then
2863  if (cygpath --version) >/dev/null 2>/dev/null; then
2864    CYGPATH_W='cygpath -w'
2865  else
2866    CYGPATH_W=echo
2867  fi
2868fi
2869
2870
2871# Define the identity of the package.
2872 PACKAGE=bristol
2873 VERSION=${BRISTOL_VERSION}
2874
2875
2876cat >>confdefs.h <<_ACEOF
2877#define PACKAGE "$PACKAGE"
2878_ACEOF
2879
2880
2881cat >>confdefs.h <<_ACEOF
2882#define VERSION "$VERSION"
2883_ACEOF
2884
2885# Some tools Automake needs.
2886
2887ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2888
2889
2890AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2891
2892
2893AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2894
2895
2896AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2897
2898
2899MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2900
2901# We need awk for the "check" target.  The system "awk" is bad on
2902# some platforms.
2903# Always define AMTAR for backward compatibility.
2904
2905AMTAR=${AMTAR-"${am_missing_run}tar"}
2906
2907am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2908
2909
2910
2911
2912
2913
2914ac_config_headers="$ac_config_headers config.h"
2915
2916
2917# Checks for libraries.
2918case `pwd` in
2919  *\ * | *\	*)
2920    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2921$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2922esac
2923
2924
2925
2926macro_version='2.2.6b'
2927macro_revision='1.3017'
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941ltmain="$ac_aux_dir/ltmain.sh"
2942
2943# Make sure we can run config.sub.
2944$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2945  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2946
2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2948$as_echo_n "checking build system type... " >&6; }
2949if test "${ac_cv_build+set}" = set; then :
2950  $as_echo_n "(cached) " >&6
2951else
2952  ac_build_alias=$build_alias
2953test "x$ac_build_alias" = x &&
2954  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2955test "x$ac_build_alias" = x &&
2956  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2957ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2958  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2959
2960fi
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2962$as_echo "$ac_cv_build" >&6; }
2963case $ac_cv_build in
2964*-*-*) ;;
2965*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2966esac
2967build=$ac_cv_build
2968ac_save_IFS=$IFS; IFS='-'
2969set x $ac_cv_build
2970shift
2971build_cpu=$1
2972build_vendor=$2
2973shift; shift
2974# Remember, the first character of IFS is used to create $*,
2975# except with old shells:
2976build_os=$*
2977IFS=$ac_save_IFS
2978case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2979
2980
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2982$as_echo_n "checking host system type... " >&6; }
2983if test "${ac_cv_host+set}" = set; then :
2984  $as_echo_n "(cached) " >&6
2985else
2986  if test "x$host_alias" = x; then
2987  ac_cv_host=$ac_cv_build
2988else
2989  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2990    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2991fi
2992
2993fi
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2995$as_echo "$ac_cv_host" >&6; }
2996case $ac_cv_host in
2997*-*-*) ;;
2998*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2999esac
3000host=$ac_cv_host
3001ac_save_IFS=$IFS; IFS='-'
3002set x $ac_cv_host
3003shift
3004host_cpu=$1
3005host_vendor=$2
3006shift; shift
3007# Remember, the first character of IFS is used to create $*,
3008# except with old shells:
3009host_os=$*
3010IFS=$ac_save_IFS
3011case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3012
3013
3014DEPDIR="${am__leading_dot}deps"
3015
3016ac_config_commands="$ac_config_commands depfiles"
3017
3018
3019am_make=${MAKE-make}
3020cat > confinc << 'END'
3021am__doit:
3022	@echo this is the am__doit target
3023.PHONY: am__doit
3024END
3025# If we don't find an include directive, just comment out the code.
3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3027$as_echo_n "checking for style of include used by $am_make... " >&6; }
3028am__include="#"
3029am__quote=
3030_am_result=none
3031# First try GNU make style include.
3032echo "include confinc" > confmf
3033# Ignore all kinds of additional output from `make'.
3034case `$am_make -s -f confmf 2> /dev/null` in #(
3035*the\ am__doit\ target*)
3036  am__include=include
3037  am__quote=
3038  _am_result=GNU
3039  ;;
3040esac
3041# Now try BSD make style include.
3042if test "$am__include" = "#"; then
3043   echo '.include "confinc"' > confmf
3044   case `$am_make -s -f confmf 2> /dev/null` in #(
3045   *the\ am__doit\ target*)
3046     am__include=.include
3047     am__quote="\""
3048     _am_result=BSD
3049     ;;
3050   esac
3051fi
3052
3053
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3055$as_echo "$_am_result" >&6; }
3056rm -f confinc confmf
3057
3058# Check whether --enable-dependency-tracking was given.
3059if test "${enable_dependency_tracking+set}" = set; then :
3060  enableval=$enable_dependency_tracking;
3061fi
3062
3063if test "x$enable_dependency_tracking" != xno; then
3064  am_depcomp="$ac_aux_dir/depcomp"
3065  AMDEPBACKSLASH='\'
3066fi
3067 if test "x$enable_dependency_tracking" != xno; then
3068  AMDEP_TRUE=
3069  AMDEP_FALSE='#'
3070else
3071  AMDEP_TRUE='#'
3072  AMDEP_FALSE=
3073fi
3074
3075
3076ac_ext=c
3077ac_cpp='$CPP $CPPFLAGS'
3078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080ac_compiler_gnu=$ac_cv_c_compiler_gnu
3081if test -n "$ac_tool_prefix"; then
3082  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3083set dummy ${ac_tool_prefix}gcc; ac_word=$2
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085$as_echo_n "checking for $ac_word... " >&6; }
3086if test "${ac_cv_prog_CC+set}" = set; then :
3087  $as_echo_n "(cached) " >&6
3088else
3089  if test -n "$CC"; then
3090  ac_cv_prog_CC="$CC" # Let the user override the test.
3091else
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095  IFS=$as_save_IFS
3096  test -z "$as_dir" && as_dir=.
3097    for ac_exec_ext in '' $ac_executable_extensions; do
3098  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3099    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101    break 2
3102  fi
3103done
3104  done
3105IFS=$as_save_IFS
3106
3107fi
3108fi
3109CC=$ac_cv_prog_CC
3110if test -n "$CC"; then
3111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112$as_echo "$CC" >&6; }
3113else
3114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115$as_echo "no" >&6; }
3116fi
3117
3118
3119fi
3120if test -z "$ac_cv_prog_CC"; then
3121  ac_ct_CC=$CC
3122  # Extract the first word of "gcc", so it can be a program name with args.
3123set dummy gcc; ac_word=$2
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125$as_echo_n "checking for $ac_word... " >&6; }
3126if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3127  $as_echo_n "(cached) " >&6
3128else
3129  if test -n "$ac_ct_CC"; then
3130  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3131else
3132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133for as_dir in $PATH
3134do
3135  IFS=$as_save_IFS
3136  test -z "$as_dir" && as_dir=.
3137    for ac_exec_ext in '' $ac_executable_extensions; do
3138  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139    ac_cv_prog_ac_ct_CC="gcc"
3140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141    break 2
3142  fi
3143done
3144  done
3145IFS=$as_save_IFS
3146
3147fi
3148fi
3149ac_ct_CC=$ac_cv_prog_ac_ct_CC
3150if test -n "$ac_ct_CC"; then
3151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3152$as_echo "$ac_ct_CC" >&6; }
3153else
3154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155$as_echo "no" >&6; }
3156fi
3157
3158  if test "x$ac_ct_CC" = x; then
3159    CC=""
3160  else
3161    case $cross_compiling:$ac_tool_warned in
3162yes:)
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3165ac_tool_warned=yes ;;
3166esac
3167    CC=$ac_ct_CC
3168  fi
3169else
3170  CC="$ac_cv_prog_CC"
3171fi
3172
3173if test -z "$CC"; then
3174          if test -n "$ac_tool_prefix"; then
3175    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3176set dummy ${ac_tool_prefix}cc; ac_word=$2
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178$as_echo_n "checking for $ac_word... " >&6; }
3179if test "${ac_cv_prog_CC+set}" = set; then :
3180  $as_echo_n "(cached) " >&6
3181else
3182  if test -n "$CC"; then
3183  ac_cv_prog_CC="$CC" # Let the user override the test.
3184else
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188  IFS=$as_save_IFS
3189  test -z "$as_dir" && as_dir=.
3190    for ac_exec_ext in '' $ac_executable_extensions; do
3191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192    ac_cv_prog_CC="${ac_tool_prefix}cc"
3193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194    break 2
3195  fi
3196done
3197  done
3198IFS=$as_save_IFS
3199
3200fi
3201fi
3202CC=$ac_cv_prog_CC
3203if test -n "$CC"; then
3204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205$as_echo "$CC" >&6; }
3206else
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208$as_echo "no" >&6; }
3209fi
3210
3211
3212  fi
3213fi
3214if test -z "$CC"; then
3215  # Extract the first word of "cc", so it can be a program name with args.
3216set dummy cc; ac_word=$2
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218$as_echo_n "checking for $ac_word... " >&6; }
3219if test "${ac_cv_prog_CC+set}" = set; then :
3220  $as_echo_n "(cached) " >&6
3221else
3222  if test -n "$CC"; then
3223  ac_cv_prog_CC="$CC" # Let the user override the test.
3224else
3225  ac_prog_rejected=no
3226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227for as_dir in $PATH
3228do
3229  IFS=$as_save_IFS
3230  test -z "$as_dir" && as_dir=.
3231    for ac_exec_ext in '' $ac_executable_extensions; do
3232  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3234       ac_prog_rejected=yes
3235       continue
3236     fi
3237    ac_cv_prog_CC="cc"
3238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239    break 2
3240  fi
3241done
3242  done
3243IFS=$as_save_IFS
3244
3245if test $ac_prog_rejected = yes; then
3246  # We found a bogon in the path, so make sure we never use it.
3247  set dummy $ac_cv_prog_CC
3248  shift
3249  if test $# != 0; then
3250    # We chose a different compiler from the bogus one.
3251    # However, it has the same basename, so the bogon will be chosen
3252    # first if we set CC to just the basename; use the full file name.
3253    shift
3254    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3255  fi
3256fi
3257fi
3258fi
3259CC=$ac_cv_prog_CC
3260if test -n "$CC"; then
3261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3262$as_echo "$CC" >&6; }
3263else
3264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265$as_echo "no" >&6; }
3266fi
3267
3268
3269fi
3270if test -z "$CC"; then
3271  if test -n "$ac_tool_prefix"; then
3272  for ac_prog in cl.exe
3273  do
3274    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3275set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277$as_echo_n "checking for $ac_word... " >&6; }
3278if test "${ac_cv_prog_CC+set}" = set; then :
3279  $as_echo_n "(cached) " >&6
3280else
3281  if test -n "$CC"; then
3282  ac_cv_prog_CC="$CC" # Let the user override the test.
3283else
3284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285for as_dir in $PATH
3286do
3287  IFS=$as_save_IFS
3288  test -z "$as_dir" && as_dir=.
3289    for ac_exec_ext in '' $ac_executable_extensions; do
3290  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293    break 2
3294  fi
3295done
3296  done
3297IFS=$as_save_IFS
3298
3299fi
3300fi
3301CC=$ac_cv_prog_CC
3302if test -n "$CC"; then
3303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304$as_echo "$CC" >&6; }
3305else
3306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307$as_echo "no" >&6; }
3308fi
3309
3310
3311    test -n "$CC" && break
3312  done
3313fi
3314if test -z "$CC"; then
3315  ac_ct_CC=$CC
3316  for ac_prog in cl.exe
3317do
3318  # Extract the first word of "$ac_prog", so it can be a program name with args.
3319set dummy $ac_prog; ac_word=$2
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321$as_echo_n "checking for $ac_word... " >&6; }
3322if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3323  $as_echo_n "(cached) " >&6
3324else
3325  if test -n "$ac_ct_CC"; then
3326  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3327else
3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329for as_dir in $PATH
3330do
3331  IFS=$as_save_IFS
3332  test -z "$as_dir" && as_dir=.
3333    for ac_exec_ext in '' $ac_executable_extensions; do
3334  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335    ac_cv_prog_ac_ct_CC="$ac_prog"
3336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337    break 2
3338  fi
3339done
3340  done
3341IFS=$as_save_IFS
3342
3343fi
3344fi
3345ac_ct_CC=$ac_cv_prog_ac_ct_CC
3346if test -n "$ac_ct_CC"; then
3347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3348$as_echo "$ac_ct_CC" >&6; }
3349else
3350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351$as_echo "no" >&6; }
3352fi
3353
3354
3355  test -n "$ac_ct_CC" && break
3356done
3357
3358  if test "x$ac_ct_CC" = x; then
3359    CC=""
3360  else
3361    case $cross_compiling:$ac_tool_warned in
3362yes:)
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3365ac_tool_warned=yes ;;
3366esac
3367    CC=$ac_ct_CC
3368  fi
3369fi
3370
3371fi
3372
3373
3374test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376as_fn_error "no acceptable C compiler found in \$PATH
3377See \`config.log' for more details." "$LINENO" 5; }
3378
3379# Provide some information about the compiler.
3380$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3381set X $ac_compile
3382ac_compiler=$2
3383for ac_option in --version -v -V -qversion; do
3384  { { ac_try="$ac_compiler $ac_option >&5"
3385case "(($ac_try" in
3386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387  *) ac_try_echo=$ac_try;;
3388esac
3389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390$as_echo "$ac_try_echo"; } >&5
3391  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3392  ac_status=$?
3393  if test -s conftest.err; then
3394    sed '10a\
3395... rest of stderr output deleted ...
3396         10q' conftest.err >conftest.er1
3397    cat conftest.er1 >&5
3398  fi
3399  rm -f conftest.er1 conftest.err
3400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401  test $ac_status = 0; }
3402done
3403
3404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405/* end confdefs.h.  */
3406
3407int
3408main ()
3409{
3410
3411  ;
3412  return 0;
3413}
3414_ACEOF
3415ac_clean_files_save=$ac_clean_files
3416ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3417# Try to create an executable without -o first, disregard a.out.
3418# It will help us diagnose broken compilers, and finding out an intuition
3419# of exeext.
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3421$as_echo_n "checking whether the C compiler works... " >&6; }
3422ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3423
3424# The possible output files:
3425ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3426
3427ac_rmfiles=
3428for ac_file in $ac_files
3429do
3430  case $ac_file in
3431    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3432    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3433  esac
3434done
3435rm -f $ac_rmfiles
3436
3437if { { ac_try="$ac_link_default"
3438case "(($ac_try" in
3439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440  *) ac_try_echo=$ac_try;;
3441esac
3442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443$as_echo "$ac_try_echo"; } >&5
3444  (eval "$ac_link_default") 2>&5
3445  ac_status=$?
3446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447  test $ac_status = 0; }; then :
3448  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3449# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3450# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3451# so that the user can short-circuit this test for compilers unknown to
3452# Autoconf.
3453for ac_file in $ac_files ''
3454do
3455  test -f "$ac_file" || continue
3456  case $ac_file in
3457    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3458	;;
3459    [ab].out )
3460	# We found the default executable, but exeext='' is most
3461	# certainly right.
3462	break;;
3463    *.* )
3464	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3465	then :; else
3466	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3467	fi
3468	# We set ac_cv_exeext here because the later test for it is not
3469	# safe: cross compilers may not add the suffix if given an `-o'
3470	# argument, so we may need to know it at that point already.
3471	# Even if this section looks crufty: it has the advantage of
3472	# actually working.
3473	break;;
3474    * )
3475	break;;
3476  esac
3477done
3478test "$ac_cv_exeext" = no && ac_cv_exeext=
3479
3480else
3481  ac_file=''
3482fi
3483if test -z "$ac_file"; then :
3484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485$as_echo "no" >&6; }
3486$as_echo "$as_me: failed program was:" >&5
3487sed 's/^/| /' conftest.$ac_ext >&5
3488
3489{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491{ as_fn_set_status 77
3492as_fn_error "C compiler cannot create executables
3493See \`config.log' for more details." "$LINENO" 5; }; }
3494else
3495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3496$as_echo "yes" >&6; }
3497fi
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3499$as_echo_n "checking for C compiler default output file name... " >&6; }
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3501$as_echo "$ac_file" >&6; }
3502ac_exeext=$ac_cv_exeext
3503
3504rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3505ac_clean_files=$ac_clean_files_save
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3507$as_echo_n "checking for suffix of executables... " >&6; }
3508if { { ac_try="$ac_link"
3509case "(($ac_try" in
3510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511  *) ac_try_echo=$ac_try;;
3512esac
3513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3514$as_echo "$ac_try_echo"; } >&5
3515  (eval "$ac_link") 2>&5
3516  ac_status=$?
3517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3518  test $ac_status = 0; }; then :
3519  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3520# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3521# work properly (i.e., refer to `conftest.exe'), while it won't with
3522# `rm'.
3523for ac_file in conftest.exe conftest conftest.*; do
3524  test -f "$ac_file" || continue
3525  case $ac_file in
3526    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3527    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3528	  break;;
3529    * ) break;;
3530  esac
3531done
3532else
3533  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535as_fn_error "cannot compute suffix of executables: cannot compile and link
3536See \`config.log' for more details." "$LINENO" 5; }
3537fi
3538rm -f conftest conftest$ac_cv_exeext
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3540$as_echo "$ac_cv_exeext" >&6; }
3541
3542rm -f conftest.$ac_ext
3543EXEEXT=$ac_cv_exeext
3544ac_exeext=$EXEEXT
3545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546/* end confdefs.h.  */
3547#include <stdio.h>
3548int
3549main ()
3550{
3551FILE *f = fopen ("conftest.out", "w");
3552 return ferror (f) || fclose (f) != 0;
3553
3554  ;
3555  return 0;
3556}
3557_ACEOF
3558ac_clean_files="$ac_clean_files conftest.out"
3559# Check that the compiler produces executables we can run.  If not, either
3560# the compiler is broken, or we cross compile.
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3562$as_echo_n "checking whether we are cross compiling... " >&6; }
3563if test "$cross_compiling" != yes; then
3564  { { ac_try="$ac_link"
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_link") 2>&5
3572  ac_status=$?
3573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3574  test $ac_status = 0; }
3575  if { ac_try='./conftest$ac_cv_exeext'
3576  { { case "(($ac_try" in
3577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578  *) ac_try_echo=$ac_try;;
3579esac
3580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581$as_echo "$ac_try_echo"; } >&5
3582  (eval "$ac_try") 2>&5
3583  ac_status=$?
3584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585  test $ac_status = 0; }; }; then
3586    cross_compiling=no
3587  else
3588    if test "$cross_compiling" = maybe; then
3589	cross_compiling=yes
3590    else
3591	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593as_fn_error "cannot run C compiled programs.
3594If you meant to cross compile, use \`--host'.
3595See \`config.log' for more details." "$LINENO" 5; }
3596    fi
3597  fi
3598fi
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3600$as_echo "$cross_compiling" >&6; }
3601
3602rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3603ac_clean_files=$ac_clean_files_save
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3605$as_echo_n "checking for suffix of object files... " >&6; }
3606if test "${ac_cv_objext+set}" = set; then :
3607  $as_echo_n "(cached) " >&6
3608else
3609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610/* end confdefs.h.  */
3611
3612int
3613main ()
3614{
3615
3616  ;
3617  return 0;
3618}
3619_ACEOF
3620rm -f conftest.o conftest.obj
3621if { { ac_try="$ac_compile"
3622case "(($ac_try" in
3623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624  *) ac_try_echo=$ac_try;;
3625esac
3626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627$as_echo "$ac_try_echo"; } >&5
3628  (eval "$ac_compile") 2>&5
3629  ac_status=$?
3630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631  test $ac_status = 0; }; then :
3632  for ac_file in conftest.o conftest.obj conftest.*; do
3633  test -f "$ac_file" || continue;
3634  case $ac_file in
3635    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3636    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3637       break;;
3638  esac
3639done
3640else
3641  $as_echo "$as_me: failed program was:" >&5
3642sed 's/^/| /' conftest.$ac_ext >&5
3643
3644{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3646as_fn_error "cannot compute suffix of object files: cannot compile
3647See \`config.log' for more details." "$LINENO" 5; }
3648fi
3649rm -f conftest.$ac_cv_objext conftest.$ac_ext
3650fi
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3652$as_echo "$ac_cv_objext" >&6; }
3653OBJEXT=$ac_cv_objext
3654ac_objext=$OBJEXT
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3656$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3657if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3658  $as_echo_n "(cached) " >&6
3659else
3660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661/* end confdefs.h.  */
3662
3663int
3664main ()
3665{
3666#ifndef __GNUC__
3667       choke me
3668#endif
3669
3670  ;
3671  return 0;
3672}
3673_ACEOF
3674if ac_fn_c_try_compile "$LINENO"; then :
3675  ac_compiler_gnu=yes
3676else
3677  ac_compiler_gnu=no
3678fi
3679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3680ac_cv_c_compiler_gnu=$ac_compiler_gnu
3681
3682fi
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3684$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3685if test $ac_compiler_gnu = yes; then
3686  GCC=yes
3687else
3688  GCC=
3689fi
3690ac_test_CFLAGS=${CFLAGS+set}
3691ac_save_CFLAGS=$CFLAGS
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3693$as_echo_n "checking whether $CC accepts -g... " >&6; }
3694if test "${ac_cv_prog_cc_g+set}" = set; then :
3695  $as_echo_n "(cached) " >&6
3696else
3697  ac_save_c_werror_flag=$ac_c_werror_flag
3698   ac_c_werror_flag=yes
3699   ac_cv_prog_cc_g=no
3700   CFLAGS="-g"
3701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702/* end confdefs.h.  */
3703
3704int
3705main ()
3706{
3707
3708  ;
3709  return 0;
3710}
3711_ACEOF
3712if ac_fn_c_try_compile "$LINENO"; then :
3713  ac_cv_prog_cc_g=yes
3714else
3715  CFLAGS=""
3716      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717/* end confdefs.h.  */
3718
3719int
3720main ()
3721{
3722
3723  ;
3724  return 0;
3725}
3726_ACEOF
3727if ac_fn_c_try_compile "$LINENO"; then :
3728
3729else
3730  ac_c_werror_flag=$ac_save_c_werror_flag
3731	 CFLAGS="-g"
3732	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733/* end confdefs.h.  */
3734
3735int
3736main ()
3737{
3738
3739  ;
3740  return 0;
3741}
3742_ACEOF
3743if ac_fn_c_try_compile "$LINENO"; then :
3744  ac_cv_prog_cc_g=yes
3745fi
3746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747fi
3748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749fi
3750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751   ac_c_werror_flag=$ac_save_c_werror_flag
3752fi
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3754$as_echo "$ac_cv_prog_cc_g" >&6; }
3755if test "$ac_test_CFLAGS" = set; then
3756  CFLAGS=$ac_save_CFLAGS
3757elif test $ac_cv_prog_cc_g = yes; then
3758  if test "$GCC" = yes; then
3759    CFLAGS="-g -O2"
3760  else
3761    CFLAGS="-g"
3762  fi
3763else
3764  if test "$GCC" = yes; then
3765    CFLAGS="-O2"
3766  else
3767    CFLAGS=
3768  fi
3769fi
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3771$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3772if test "${ac_cv_prog_cc_c89+set}" = set; then :
3773  $as_echo_n "(cached) " >&6
3774else
3775  ac_cv_prog_cc_c89=no
3776ac_save_CC=$CC
3777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778/* end confdefs.h.  */
3779#include <stdarg.h>
3780#include <stdio.h>
3781#include <sys/types.h>
3782#include <sys/stat.h>
3783/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3784struct buf { int x; };
3785FILE * (*rcsopen) (struct buf *, struct stat *, int);
3786static char *e (p, i)
3787     char **p;
3788     int i;
3789{
3790  return p[i];
3791}
3792static char *f (char * (*g) (char **, int), char **p, ...)
3793{
3794  char *s;
3795  va_list v;
3796  va_start (v,p);
3797  s = g (p, va_arg (v,int));
3798  va_end (v);
3799  return s;
3800}
3801
3802/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3803   function prototypes and stuff, but not '\xHH' hex character constants.
3804   These don't provoke an error unfortunately, instead are silently treated
3805   as 'x'.  The following induces an error, until -std is added to get
3806   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3807   array size at least.  It's necessary to write '\x00'==0 to get something
3808   that's true only with -std.  */
3809int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3810
3811/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3812   inside strings and character constants.  */
3813#define FOO(x) 'x'
3814int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3815
3816int test (int i, double x);
3817struct s1 {int (*f) (int a);};
3818struct s2 {int (*f) (double a);};
3819int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3820int argc;
3821char **argv;
3822int
3823main ()
3824{
3825return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3826  ;
3827  return 0;
3828}
3829_ACEOF
3830for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3831	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3832do
3833  CC="$ac_save_CC $ac_arg"
3834  if ac_fn_c_try_compile "$LINENO"; then :
3835  ac_cv_prog_cc_c89=$ac_arg
3836fi
3837rm -f core conftest.err conftest.$ac_objext
3838  test "x$ac_cv_prog_cc_c89" != "xno" && break
3839done
3840rm -f conftest.$ac_ext
3841CC=$ac_save_CC
3842
3843fi
3844# AC_CACHE_VAL
3845case "x$ac_cv_prog_cc_c89" in
3846  x)
3847    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3848$as_echo "none needed" >&6; } ;;
3849  xno)
3850    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3851$as_echo "unsupported" >&6; } ;;
3852  *)
3853    CC="$CC $ac_cv_prog_cc_c89"
3854    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3855$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3856esac
3857if test "x$ac_cv_prog_cc_c89" != xno; then :
3858
3859fi
3860
3861ac_ext=c
3862ac_cpp='$CPP $CPPFLAGS'
3863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866
3867depcc="$CC"   am_compiler_list=
3868
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3870$as_echo_n "checking dependency style of $depcc... " >&6; }
3871if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3872  $as_echo_n "(cached) " >&6
3873else
3874  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3875  # We make a subdir and do the tests there.  Otherwise we can end up
3876  # making bogus files that we don't know about and never remove.  For
3877  # instance it was reported that on HP-UX the gcc test will end up
3878  # making a dummy file named `D' -- because `-MD' means `put the output
3879  # in D'.
3880  mkdir conftest.dir
3881  # Copy depcomp to subdir because otherwise we won't find it if we're
3882  # using a relative directory.
3883  cp "$am_depcomp" conftest.dir
3884  cd conftest.dir
3885  # We will build objects and dependencies in a subdirectory because
3886  # it helps to detect inapplicable dependency modes.  For instance
3887  # both Tru64's cc and ICC support -MD to output dependencies as a
3888  # side effect of compilation, but ICC will put the dependencies in
3889  # the current directory while Tru64 will put them in the object
3890  # directory.
3891  mkdir sub
3892
3893  am_cv_CC_dependencies_compiler_type=none
3894  if test "$am_compiler_list" = ""; then
3895     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3896  fi
3897  am__universal=false
3898  case " $depcc " in #(
3899     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3900     esac
3901
3902  for depmode in $am_compiler_list; do
3903    # Setup a source with many dependencies, because some compilers
3904    # like to wrap large dependency lists on column 80 (with \), and
3905    # we should not choose a depcomp mode which is confused by this.
3906    #
3907    # We need to recreate these files for each test, as the compiler may
3908    # overwrite some of them when testing with obscure command lines.
3909    # This happens at least with the AIX C compiler.
3910    : > sub/conftest.c
3911    for i in 1 2 3 4 5 6; do
3912      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3913      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3914      # Solaris 8's {/usr,}/bin/sh.
3915      touch sub/conftst$i.h
3916    done
3917    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3918
3919    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3920    # mode.  It turns out that the SunPro C++ compiler does not properly
3921    # handle `-M -o', and we need to detect this.  Also, some Intel
3922    # versions had trouble with output in subdirs
3923    am__obj=sub/conftest.${OBJEXT-o}
3924    am__minus_obj="-o $am__obj"
3925    case $depmode in
3926    gcc)
3927      # This depmode causes a compiler race in universal mode.
3928      test "$am__universal" = false || continue
3929      ;;
3930    nosideeffect)
3931      # after this tag, mechanisms are not by side-effect, so they'll
3932      # only be used when explicitly requested
3933      if test "x$enable_dependency_tracking" = xyes; then
3934	continue
3935      else
3936	break
3937      fi
3938      ;;
3939    msvisualcpp | msvcmsys)
3940      # This compiler won't grok `-c -o', but also, the minuso test has
3941      # not run yet.  These depmodes are late enough in the game, and
3942      # so weak that their functioning should not be impacted.
3943      am__obj=conftest.${OBJEXT-o}
3944      am__minus_obj=
3945      ;;
3946    none) break ;;
3947    esac
3948    if depmode=$depmode \
3949       source=sub/conftest.c object=$am__obj \
3950       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3951       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3952         >/dev/null 2>conftest.err &&
3953       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3954       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3955       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3956       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3957      # icc doesn't choke on unknown options, it will just issue warnings
3958      # or remarks (even with -Werror).  So we grep stderr for any message
3959      # that says an option was ignored or not supported.
3960      # When given -MP, icc 7.0 and 7.1 complain thusly:
3961      #   icc: Command line warning: ignoring option '-M'; no argument required
3962      # The diagnosis changed in icc 8.0:
3963      #   icc: Command line remark: option '-MP' not supported
3964      if (grep 'ignoring option' conftest.err ||
3965          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3966        am_cv_CC_dependencies_compiler_type=$depmode
3967        break
3968      fi
3969    fi
3970  done
3971
3972  cd ..
3973  rm -rf conftest.dir
3974else
3975  am_cv_CC_dependencies_compiler_type=none
3976fi
3977
3978fi
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3980$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3981CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3982
3983 if
3984  test "x$enable_dependency_tracking" != xno \
3985  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3986  am__fastdepCC_TRUE=
3987  am__fastdepCC_FALSE='#'
3988else
3989  am__fastdepCC_TRUE='#'
3990  am__fastdepCC_FALSE=
3991fi
3992
3993
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3995$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3996if test "${ac_cv_path_SED+set}" = set; then :
3997  $as_echo_n "(cached) " >&6
3998else
3999            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4000     for ac_i in 1 2 3 4 5 6 7; do
4001       ac_script="$ac_script$as_nl$ac_script"
4002     done
4003     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4004     { ac_script=; unset ac_script;}
4005     if test -z "$SED"; then
4006  ac_path_SED_found=false
4007  # Loop through the user's path and test for each of PROGNAME-LIST
4008  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009for as_dir in $PATH
4010do
4011  IFS=$as_save_IFS
4012  test -z "$as_dir" && as_dir=.
4013    for ac_prog in sed gsed; do
4014    for ac_exec_ext in '' $ac_executable_extensions; do
4015      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4016      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4017# Check for GNU ac_path_SED and select it if it is found.
4018  # Check for GNU $ac_path_SED
4019case `"$ac_path_SED" --version 2>&1` in
4020*GNU*)
4021  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4022*)
4023  ac_count=0
4024  $as_echo_n 0123456789 >"conftest.in"
4025  while :
4026  do
4027    cat "conftest.in" "conftest.in" >"conftest.tmp"
4028    mv "conftest.tmp" "conftest.in"
4029    cp "conftest.in" "conftest.nl"
4030    $as_echo '' >> "conftest.nl"
4031    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4032    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4033    as_fn_arith $ac_count + 1 && ac_count=$as_val
4034    if test $ac_count -gt ${ac_path_SED_max-0}; then
4035      # Best one so far, save it but keep looking for a better one
4036      ac_cv_path_SED="$ac_path_SED"
4037      ac_path_SED_max=$ac_count
4038    fi
4039    # 10*(2^10) chars as input seems more than enough
4040    test $ac_count -gt 10 && break
4041  done
4042  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4043esac
4044
4045      $ac_path_SED_found && break 3
4046    done
4047  done
4048  done
4049IFS=$as_save_IFS
4050  if test -z "$ac_cv_path_SED"; then
4051    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4052  fi
4053else
4054  ac_cv_path_SED=$SED
4055fi
4056
4057fi
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4059$as_echo "$ac_cv_path_SED" >&6; }
4060 SED="$ac_cv_path_SED"
4061  rm -f conftest.sed
4062
4063test -z "$SED" && SED=sed
4064Xsed="$SED -e 1s/^X//"
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4077$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4078if test "${ac_cv_path_GREP+set}" = set; then :
4079  $as_echo_n "(cached) " >&6
4080else
4081  if test -z "$GREP"; then
4082  ac_path_GREP_found=false
4083  # Loop through the user's path and test for each of PROGNAME-LIST
4084  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4086do
4087  IFS=$as_save_IFS
4088  test -z "$as_dir" && as_dir=.
4089    for ac_prog in grep ggrep; do
4090    for ac_exec_ext in '' $ac_executable_extensions; do
4091      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4092      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4093# Check for GNU ac_path_GREP and select it if it is found.
4094  # Check for GNU $ac_path_GREP
4095case `"$ac_path_GREP" --version 2>&1` in
4096*GNU*)
4097  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4098*)
4099  ac_count=0
4100  $as_echo_n 0123456789 >"conftest.in"
4101  while :
4102  do
4103    cat "conftest.in" "conftest.in" >"conftest.tmp"
4104    mv "conftest.tmp" "conftest.in"
4105    cp "conftest.in" "conftest.nl"
4106    $as_echo 'GREP' >> "conftest.nl"
4107    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4108    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4109    as_fn_arith $ac_count + 1 && ac_count=$as_val
4110    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4111      # Best one so far, save it but keep looking for a better one
4112      ac_cv_path_GREP="$ac_path_GREP"
4113      ac_path_GREP_max=$ac_count
4114    fi
4115    # 10*(2^10) chars as input seems more than enough
4116    test $ac_count -gt 10 && break
4117  done
4118  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4119esac
4120
4121      $ac_path_GREP_found && break 3
4122    done
4123  done
4124  done
4125IFS=$as_save_IFS
4126  if test -z "$ac_cv_path_GREP"; then
4127    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4128  fi
4129else
4130  ac_cv_path_GREP=$GREP
4131fi
4132
4133fi
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4135$as_echo "$ac_cv_path_GREP" >&6; }
4136 GREP="$ac_cv_path_GREP"
4137
4138
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4140$as_echo_n "checking for egrep... " >&6; }
4141if test "${ac_cv_path_EGREP+set}" = set; then :
4142  $as_echo_n "(cached) " >&6
4143else
4144  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4145   then ac_cv_path_EGREP="$GREP -E"
4146   else
4147     if test -z "$EGREP"; then
4148  ac_path_EGREP_found=false
4149  # Loop through the user's path and test for each of PROGNAME-LIST
4150  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4152do
4153  IFS=$as_save_IFS
4154  test -z "$as_dir" && as_dir=.
4155    for ac_prog in egrep; do
4156    for ac_exec_ext in '' $ac_executable_extensions; do
4157      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4158      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4159# Check for GNU ac_path_EGREP and select it if it is found.
4160  # Check for GNU $ac_path_EGREP
4161case `"$ac_path_EGREP" --version 2>&1` in
4162*GNU*)
4163  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4164*)
4165  ac_count=0
4166  $as_echo_n 0123456789 >"conftest.in"
4167  while :
4168  do
4169    cat "conftest.in" "conftest.in" >"conftest.tmp"
4170    mv "conftest.tmp" "conftest.in"
4171    cp "conftest.in" "conftest.nl"
4172    $as_echo 'EGREP' >> "conftest.nl"
4173    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4174    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4175    as_fn_arith $ac_count + 1 && ac_count=$as_val
4176    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4177      # Best one so far, save it but keep looking for a better one
4178      ac_cv_path_EGREP="$ac_path_EGREP"
4179      ac_path_EGREP_max=$ac_count
4180    fi
4181    # 10*(2^10) chars as input seems more than enough
4182    test $ac_count -gt 10 && break
4183  done
4184  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4185esac
4186
4187      $ac_path_EGREP_found && break 3
4188    done
4189  done
4190  done
4191IFS=$as_save_IFS
4192  if test -z "$ac_cv_path_EGREP"; then
4193    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4194  fi
4195else
4196  ac_cv_path_EGREP=$EGREP
4197fi
4198
4199   fi
4200fi
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4202$as_echo "$ac_cv_path_EGREP" >&6; }
4203 EGREP="$ac_cv_path_EGREP"
4204
4205
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4207$as_echo_n "checking for fgrep... " >&6; }
4208if test "${ac_cv_path_FGREP+set}" = set; then :
4209  $as_echo_n "(cached) " >&6
4210else
4211  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4212   then ac_cv_path_FGREP="$GREP -F"
4213   else
4214     if test -z "$FGREP"; then
4215  ac_path_FGREP_found=false
4216  # Loop through the user's path and test for each of PROGNAME-LIST
4217  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4219do
4220  IFS=$as_save_IFS
4221  test -z "$as_dir" && as_dir=.
4222    for ac_prog in fgrep; do
4223    for ac_exec_ext in '' $ac_executable_extensions; do
4224      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4225      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4226# Check for GNU ac_path_FGREP and select it if it is found.
4227  # Check for GNU $ac_path_FGREP
4228case `"$ac_path_FGREP" --version 2>&1` in
4229*GNU*)
4230  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4231*)
4232  ac_count=0
4233  $as_echo_n 0123456789 >"conftest.in"
4234  while :
4235  do
4236    cat "conftest.in" "conftest.in" >"conftest.tmp"
4237    mv "conftest.tmp" "conftest.in"
4238    cp "conftest.in" "conftest.nl"
4239    $as_echo 'FGREP' >> "conftest.nl"
4240    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4241    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4242    as_fn_arith $ac_count + 1 && ac_count=$as_val
4243    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4244      # Best one so far, save it but keep looking for a better one
4245      ac_cv_path_FGREP="$ac_path_FGREP"
4246      ac_path_FGREP_max=$ac_count
4247    fi
4248    # 10*(2^10) chars as input seems more than enough
4249    test $ac_count -gt 10 && break
4250  done
4251  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4252esac
4253
4254      $ac_path_FGREP_found && break 3
4255    done
4256  done
4257  done
4258IFS=$as_save_IFS
4259  if test -z "$ac_cv_path_FGREP"; then
4260    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4261  fi
4262else
4263  ac_cv_path_FGREP=$FGREP
4264fi
4265
4266   fi
4267fi
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4269$as_echo "$ac_cv_path_FGREP" >&6; }
4270 FGREP="$ac_cv_path_FGREP"
4271
4272
4273test -z "$GREP" && GREP=grep
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293# Check whether --with-gnu-ld was given.
4294if test "${with_gnu_ld+set}" = set; then :
4295  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4296else
4297  with_gnu_ld=no
4298fi
4299
4300ac_prog=ld
4301if test "$GCC" = yes; then
4302  # Check if gcc -print-prog-name=ld gives a path.
4303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4304$as_echo_n "checking for ld used by $CC... " >&6; }
4305  case $host in
4306  *-*-mingw*)
4307    # gcc leaves a trailing carriage return which upsets mingw
4308    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4309  *)
4310    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4311  esac
4312  case $ac_prog in
4313    # Accept absolute paths.
4314    [\\/]* | ?:[\\/]*)
4315      re_direlt='/[^/][^/]*/\.\./'
4316      # Canonicalize the pathname of ld
4317      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4318      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4319	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4320      done
4321      test -z "$LD" && LD="$ac_prog"
4322      ;;
4323  "")
4324    # If it fails, then pretend we aren't using GCC.
4325    ac_prog=ld
4326    ;;
4327  *)
4328    # If it is relative, then search for the first ld in PATH.
4329    with_gnu_ld=unknown
4330    ;;
4331  esac
4332elif test "$with_gnu_ld" = yes; then
4333  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4334$as_echo_n "checking for GNU ld... " >&6; }
4335else
4336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4337$as_echo_n "checking for non-GNU ld... " >&6; }
4338fi
4339if test "${lt_cv_path_LD+set}" = set; then :
4340  $as_echo_n "(cached) " >&6
4341else
4342  if test -z "$LD"; then
4343  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4344  for ac_dir in $PATH; do
4345    IFS="$lt_save_ifs"
4346    test -z "$ac_dir" && ac_dir=.
4347    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4348      lt_cv_path_LD="$ac_dir/$ac_prog"
4349      # Check to see if the program is GNU ld.  I'd rather use --version,
4350      # but apparently some variants of GNU ld only accept -v.
4351      # Break only if it was the GNU/non-GNU ld that we prefer.
4352      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4353      *GNU* | *'with BFD'*)
4354	test "$with_gnu_ld" != no && break
4355	;;
4356      *)
4357	test "$with_gnu_ld" != yes && break
4358	;;
4359      esac
4360    fi
4361  done
4362  IFS="$lt_save_ifs"
4363else
4364  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4365fi
4366fi
4367
4368LD="$lt_cv_path_LD"
4369if test -n "$LD"; then
4370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4371$as_echo "$LD" >&6; }
4372else
4373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374$as_echo "no" >&6; }
4375fi
4376test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4378$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4379if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4380  $as_echo_n "(cached) " >&6
4381else
4382  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4383case `$LD -v 2>&1 </dev/null` in
4384*GNU* | *'with BFD'*)
4385  lt_cv_prog_gnu_ld=yes
4386  ;;
4387*)
4388  lt_cv_prog_gnu_ld=no
4389  ;;
4390esac
4391fi
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4393$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4394with_gnu_ld=$lt_cv_prog_gnu_ld
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4405$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4406if test "${lt_cv_path_NM+set}" = set; then :
4407  $as_echo_n "(cached) " >&6
4408else
4409  if test -n "$NM"; then
4410  # Let the user override the test.
4411  lt_cv_path_NM="$NM"
4412else
4413  lt_nm_to_check="${ac_tool_prefix}nm"
4414  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4415    lt_nm_to_check="$lt_nm_to_check nm"
4416  fi
4417  for lt_tmp_nm in $lt_nm_to_check; do
4418    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4419    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4420      IFS="$lt_save_ifs"
4421      test -z "$ac_dir" && ac_dir=.
4422      tmp_nm="$ac_dir/$lt_tmp_nm"
4423      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4424	# Check to see if the nm accepts a BSD-compat flag.
4425	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4426	#   nm: unknown option "B" ignored
4427	# Tru64's nm complains that /dev/null is an invalid object file
4428	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4429	*/dev/null* | *'Invalid file or object type'*)
4430	  lt_cv_path_NM="$tmp_nm -B"
4431	  break
4432	  ;;
4433	*)
4434	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4435	  */dev/null*)
4436	    lt_cv_path_NM="$tmp_nm -p"
4437	    break
4438	    ;;
4439	  *)
4440	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4441	    continue # so that we can try to find one that supports BSD flags
4442	    ;;
4443	  esac
4444	  ;;
4445	esac
4446      fi
4447    done
4448    IFS="$lt_save_ifs"
4449  done
4450  : ${lt_cv_path_NM=no}
4451fi
4452fi
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4454$as_echo "$lt_cv_path_NM" >&6; }
4455if test "$lt_cv_path_NM" != "no"; then
4456  NM="$lt_cv_path_NM"
4457else
4458  # Didn't find any BSD compatible name lister, look for dumpbin.
4459  if test -n "$ac_tool_prefix"; then
4460  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4461  do
4462    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4463set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4465$as_echo_n "checking for $ac_word... " >&6; }
4466if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4467  $as_echo_n "(cached) " >&6
4468else
4469  if test -n "$DUMPBIN"; then
4470  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4471else
4472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475  IFS=$as_save_IFS
4476  test -z "$as_dir" && as_dir=.
4477    for ac_exec_ext in '' $ac_executable_extensions; do
4478  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481    break 2
4482  fi
4483done
4484  done
4485IFS=$as_save_IFS
4486
4487fi
4488fi
4489DUMPBIN=$ac_cv_prog_DUMPBIN
4490if test -n "$DUMPBIN"; then
4491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4492$as_echo "$DUMPBIN" >&6; }
4493else
4494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4495$as_echo "no" >&6; }
4496fi
4497
4498
4499    test -n "$DUMPBIN" && break
4500  done
4501fi
4502if test -z "$DUMPBIN"; then
4503  ac_ct_DUMPBIN=$DUMPBIN
4504  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4505do
4506  # Extract the first word of "$ac_prog", so it can be a program name with args.
4507set dummy $ac_prog; ac_word=$2
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509$as_echo_n "checking for $ac_word... " >&6; }
4510if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4511  $as_echo_n "(cached) " >&6
4512else
4513  if test -n "$ac_ct_DUMPBIN"; then
4514  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4515else
4516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517for as_dir in $PATH
4518do
4519  IFS=$as_save_IFS
4520  test -z "$as_dir" && as_dir=.
4521    for ac_exec_ext in '' $ac_executable_extensions; do
4522  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4523    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4524    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4525    break 2
4526  fi
4527done
4528  done
4529IFS=$as_save_IFS
4530
4531fi
4532fi
4533ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4534if test -n "$ac_ct_DUMPBIN"; then
4535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4536$as_echo "$ac_ct_DUMPBIN" >&6; }
4537else
4538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539$as_echo "no" >&6; }
4540fi
4541
4542
4543  test -n "$ac_ct_DUMPBIN" && break
4544done
4545
4546  if test "x$ac_ct_DUMPBIN" = x; then
4547    DUMPBIN=":"
4548  else
4549    case $cross_compiling:$ac_tool_warned in
4550yes:)
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4553ac_tool_warned=yes ;;
4554esac
4555    DUMPBIN=$ac_ct_DUMPBIN
4556  fi
4557fi
4558
4559
4560  if test "$DUMPBIN" != ":"; then
4561    NM="$DUMPBIN"
4562  fi
4563fi
4564test -z "$NM" && NM=nm
4565
4566
4567
4568
4569
4570
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4572$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4573if test "${lt_cv_nm_interface+set}" = set; then :
4574  $as_echo_n "(cached) " >&6
4575else
4576  lt_cv_nm_interface="BSD nm"
4577  echo "int some_variable = 0;" > conftest.$ac_ext
4578  (eval echo "\"\$as_me:4578: $ac_compile\"" >&5)
4579  (eval "$ac_compile" 2>conftest.err)
4580  cat conftest.err >&5
4581  (eval echo "\"\$as_me:4581: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4582  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4583  cat conftest.err >&5
4584  (eval echo "\"\$as_me:4584: output\"" >&5)
4585  cat conftest.out >&5
4586  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4587    lt_cv_nm_interface="MS dumpbin"
4588  fi
4589  rm -f conftest*
4590fi
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4592$as_echo "$lt_cv_nm_interface" >&6; }
4593
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4595$as_echo_n "checking whether ln -s works... " >&6; }
4596LN_S=$as_ln_s
4597if test "$LN_S" = "ln -s"; then
4598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4599$as_echo "yes" >&6; }
4600else
4601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4602$as_echo "no, using $LN_S" >&6; }
4603fi
4604
4605# find the maximum length of command line arguments
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4607$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4608if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4609  $as_echo_n "(cached) " >&6
4610else
4611    i=0
4612  teststring="ABCD"
4613
4614  case $build_os in
4615  msdosdjgpp*)
4616    # On DJGPP, this test can blow up pretty badly due to problems in libc
4617    # (any single argument exceeding 2000 bytes causes a buffer overrun
4618    # during glob expansion).  Even if it were fixed, the result of this
4619    # check would be larger than it should be.
4620    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4621    ;;
4622
4623  gnu*)
4624    # Under GNU Hurd, this test is not required because there is
4625    # no limit to the length of command line arguments.
4626    # Libtool will interpret -1 as no limit whatsoever
4627    lt_cv_sys_max_cmd_len=-1;
4628    ;;
4629
4630  cygwin* | mingw* | cegcc*)
4631    # On Win9x/ME, this test blows up -- it succeeds, but takes
4632    # about 5 minutes as the teststring grows exponentially.
4633    # Worse, since 9x/ME are not pre-emptively multitasking,
4634    # you end up with a "frozen" computer, even though with patience
4635    # the test eventually succeeds (with a max line length of 256k).
4636    # Instead, let's just punt: use the minimum linelength reported by
4637    # all of the supported platforms: 8192 (on NT/2K/XP).
4638    lt_cv_sys_max_cmd_len=8192;
4639    ;;
4640
4641  amigaos*)
4642    # On AmigaOS with pdksh, this test takes hours, literally.
4643    # So we just punt and use a minimum line length of 8192.
4644    lt_cv_sys_max_cmd_len=8192;
4645    ;;
4646
4647  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4648    # This has been around since 386BSD, at least.  Likely further.
4649    if test -x /sbin/sysctl; then
4650      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4651    elif test -x /usr/sbin/sysctl; then
4652      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4653    else
4654      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4655    fi
4656    # And add a safety zone
4657    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4658    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4659    ;;
4660
4661  interix*)
4662    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4663    lt_cv_sys_max_cmd_len=196608
4664    ;;
4665
4666  osf*)
4667    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4668    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4669    # nice to cause kernel panics so lets avoid the loop below.
4670    # First set a reasonable default.
4671    lt_cv_sys_max_cmd_len=16384
4672    #
4673    if test -x /sbin/sysconfig; then
4674      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4675        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4676      esac
4677    fi
4678    ;;
4679  sco3.2v5*)
4680    lt_cv_sys_max_cmd_len=102400
4681    ;;
4682  sysv5* | sco5v6* | sysv4.2uw2*)
4683    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4684    if test -n "$kargmax"; then
4685      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4686    else
4687      lt_cv_sys_max_cmd_len=32768
4688    fi
4689    ;;
4690  *)
4691    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4692    if test -n "$lt_cv_sys_max_cmd_len"; then
4693      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4694      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4695    else
4696      # Make teststring a little bigger before we do anything with it.
4697      # a 1K string should be a reasonable start.
4698      for i in 1 2 3 4 5 6 7 8 ; do
4699        teststring=$teststring$teststring
4700      done
4701      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4702      # If test is not a shell built-in, we'll probably end up computing a
4703      # maximum length that is only half of the actual maximum length, but
4704      # we can't tell.
4705      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4706	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4707	      test $i != 17 # 1/2 MB should be enough
4708      do
4709        i=`expr $i + 1`
4710        teststring=$teststring$teststring
4711      done
4712      # Only check the string length outside the loop.
4713      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4714      teststring=
4715      # Add a significant safety factor because C++ compilers can tack on
4716      # massive amounts of additional arguments before passing them to the
4717      # linker.  It appears as though 1/2 is a usable value.
4718      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4719    fi
4720    ;;
4721  esac
4722
4723fi
4724
4725if test -n $lt_cv_sys_max_cmd_len ; then
4726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4727$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4728else
4729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4730$as_echo "none" >&6; }
4731fi
4732max_cmd_len=$lt_cv_sys_max_cmd_len
4733
4734
4735
4736
4737
4738
4739: ${CP="cp -f"}
4740: ${MV="mv -f"}
4741: ${RM="rm -f"}
4742
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4744$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4745# Try some XSI features
4746xsi_shell=no
4747( _lt_dummy="a/b/c"
4748  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4749      = c,a/b,, \
4750    && eval 'test $(( 1 + 1 )) -eq 2 \
4751    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4752  && xsi_shell=yes
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4754$as_echo "$xsi_shell" >&6; }
4755
4756
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4758$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4759lt_shell_append=no
4760( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4761    >/dev/null 2>&1 \
4762  && lt_shell_append=yes
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4764$as_echo "$lt_shell_append" >&6; }
4765
4766
4767if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4768  lt_unset=unset
4769else
4770  lt_unset=false
4771fi
4772
4773
4774
4775
4776
4777# test EBCDIC or ASCII
4778case `echo X|tr X '\101'` in
4779 A) # ASCII based system
4780    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4781  lt_SP2NL='tr \040 \012'
4782  lt_NL2SP='tr \015\012 \040\040'
4783  ;;
4784 *) # EBCDIC based system
4785  lt_SP2NL='tr \100 \n'
4786  lt_NL2SP='tr \r\n \100\100'
4787  ;;
4788esac
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4799$as_echo_n "checking for $LD option to reload object files... " >&6; }
4800if test "${lt_cv_ld_reload_flag+set}" = set; then :
4801  $as_echo_n "(cached) " >&6
4802else
4803  lt_cv_ld_reload_flag='-r'
4804fi
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4806$as_echo "$lt_cv_ld_reload_flag" >&6; }
4807reload_flag=$lt_cv_ld_reload_flag
4808case $reload_flag in
4809"" | " "*) ;;
4810*) reload_flag=" $reload_flag" ;;
4811esac
4812reload_cmds='$LD$reload_flag -o $output$reload_objs'
4813case $host_os in
4814  darwin*)
4815    if test "$GCC" = yes; then
4816      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4817    else
4818      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4819    fi
4820    ;;
4821esac
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831if test -n "$ac_tool_prefix"; then
4832  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4833set dummy ${ac_tool_prefix}objdump; ac_word=$2
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4835$as_echo_n "checking for $ac_word... " >&6; }
4836if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4837  $as_echo_n "(cached) " >&6
4838else
4839  if test -n "$OBJDUMP"; then
4840  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4841else
4842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845  IFS=$as_save_IFS
4846  test -z "$as_dir" && as_dir=.
4847    for ac_exec_ext in '' $ac_executable_extensions; do
4848  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851    break 2
4852  fi
4853done
4854  done
4855IFS=$as_save_IFS
4856
4857fi
4858fi
4859OBJDUMP=$ac_cv_prog_OBJDUMP
4860if test -n "$OBJDUMP"; then
4861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4862$as_echo "$OBJDUMP" >&6; }
4863else
4864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865$as_echo "no" >&6; }
4866fi
4867
4868
4869fi
4870if test -z "$ac_cv_prog_OBJDUMP"; then
4871  ac_ct_OBJDUMP=$OBJDUMP
4872  # Extract the first word of "objdump", so it can be a program name with args.
4873set dummy objdump; ac_word=$2
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875$as_echo_n "checking for $ac_word... " >&6; }
4876if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4877  $as_echo_n "(cached) " >&6
4878else
4879  if test -n "$ac_ct_OBJDUMP"; then
4880  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4881else
4882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH
4884do
4885  IFS=$as_save_IFS
4886  test -z "$as_dir" && as_dir=.
4887    for ac_exec_ext in '' $ac_executable_extensions; do
4888  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891    break 2
4892  fi
4893done
4894  done
4895IFS=$as_save_IFS
4896
4897fi
4898fi
4899ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4900if test -n "$ac_ct_OBJDUMP"; then
4901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4902$as_echo "$ac_ct_OBJDUMP" >&6; }
4903else
4904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905$as_echo "no" >&6; }
4906fi
4907
4908  if test "x$ac_ct_OBJDUMP" = x; then
4909    OBJDUMP="false"
4910  else
4911    case $cross_compiling:$ac_tool_warned in
4912yes:)
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4915ac_tool_warned=yes ;;
4916esac
4917    OBJDUMP=$ac_ct_OBJDUMP
4918  fi
4919else
4920  OBJDUMP="$ac_cv_prog_OBJDUMP"
4921fi
4922
4923test -z "$OBJDUMP" && OBJDUMP=objdump
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4934$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4935if test "${lt_cv_deplibs_check_method+set}" = set; then :
4936  $as_echo_n "(cached) " >&6
4937else
4938  lt_cv_file_magic_cmd='$MAGIC_CMD'
4939lt_cv_file_magic_test_file=
4940lt_cv_deplibs_check_method='unknown'
4941# Need to set the preceding variable on all platforms that support
4942# interlibrary dependencies.
4943# 'none' -- dependencies not supported.
4944# `unknown' -- same as none, but documents that we really don't know.
4945# 'pass_all' -- all dependencies passed with no checks.
4946# 'test_compile' -- check by making test program.
4947# 'file_magic [[regex]]' -- check by looking for files in library path
4948# which responds to the $file_magic_cmd with a given extended regex.
4949# If you have `file' or equivalent on your system and you're not sure
4950# whether `pass_all' will *always* work, you probably want this one.
4951
4952case $host_os in
4953aix[4-9]*)
4954  lt_cv_deplibs_check_method=pass_all
4955  ;;
4956
4957beos*)
4958  lt_cv_deplibs_check_method=pass_all
4959  ;;
4960
4961bsdi[45]*)
4962  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4963  lt_cv_file_magic_cmd='/usr/bin/file -L'
4964  lt_cv_file_magic_test_file=/shlib/libc.so
4965  ;;
4966
4967cygwin*)
4968  # func_win32_libid is a shell function defined in ltmain.sh
4969  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4970  lt_cv_file_magic_cmd='func_win32_libid'
4971  ;;
4972
4973mingw* | pw32*)
4974  # Base MSYS/MinGW do not provide the 'file' command needed by
4975  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4976  # unless we find 'file', for example because we are cross-compiling.
4977  if ( file / ) >/dev/null 2>&1; then
4978    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4979    lt_cv_file_magic_cmd='func_win32_libid'
4980  else
4981    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4982    lt_cv_file_magic_cmd='$OBJDUMP -f'
4983  fi
4984  ;;
4985
4986cegcc)
4987  # use the weaker test based on 'objdump'. See mingw*.
4988  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4989  lt_cv_file_magic_cmd='$OBJDUMP -f'
4990  ;;
4991
4992darwin* | rhapsody*)
4993  lt_cv_deplibs_check_method=pass_all
4994  ;;
4995
4996freebsd* | dragonfly*)
4997  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4998    case $host_cpu in
4999    i*86 )
5000      # Not sure whether the presence of OpenBSD here was a mistake.
5001      # Let's accept both of them until this is cleared up.
5002      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5003      lt_cv_file_magic_cmd=/usr/bin/file
5004      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5005      ;;
5006    esac
5007  else
5008    lt_cv_deplibs_check_method=pass_all
5009  fi
5010  ;;
5011
5012gnu*)
5013  lt_cv_deplibs_check_method=pass_all
5014  ;;
5015
5016hpux10.20* | hpux11*)
5017  lt_cv_file_magic_cmd=/usr/bin/file
5018  case $host_cpu in
5019  ia64*)
5020    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5021    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5022    ;;
5023  hppa*64*)
5024    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]'
5025    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5026    ;;
5027  *)
5028    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5029    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5030    ;;
5031  esac
5032  ;;
5033
5034interix[3-9]*)
5035  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5036  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5037  ;;
5038
5039irix5* | irix6* | nonstopux*)
5040  case $LD in
5041  *-32|*"-32 ") libmagic=32-bit;;
5042  *-n32|*"-n32 ") libmagic=N32;;
5043  *-64|*"-64 ") libmagic=64-bit;;
5044  *) libmagic=never-match;;
5045  esac
5046  lt_cv_deplibs_check_method=pass_all
5047  ;;
5048
5049# This must be Linux ELF.
5050linux* | k*bsd*-gnu | kopensolaris*-gnu)
5051  lt_cv_deplibs_check_method=pass_all
5052  ;;
5053
5054netbsd* | netbsdelf*-gnu)
5055  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5056    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5057  else
5058    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5059  fi
5060  ;;
5061
5062newos6*)
5063  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5064  lt_cv_file_magic_cmd=/usr/bin/file
5065  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5066  ;;
5067
5068*nto* | *qnx*)
5069  lt_cv_deplibs_check_method=pass_all
5070  ;;
5071
5072openbsd*)
5073  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5074    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5075  else
5076    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5077  fi
5078  ;;
5079
5080osf3* | osf4* | osf5*)
5081  lt_cv_deplibs_check_method=pass_all
5082  ;;
5083
5084rdos*)
5085  lt_cv_deplibs_check_method=pass_all
5086  ;;
5087
5088solaris*)
5089  lt_cv_deplibs_check_method=pass_all
5090  ;;
5091
5092sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5093  lt_cv_deplibs_check_method=pass_all
5094  ;;
5095
5096sysv4 | sysv4.3*)
5097  case $host_vendor in
5098  motorola)
5099    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]'
5100    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5101    ;;
5102  ncr)
5103    lt_cv_deplibs_check_method=pass_all
5104    ;;
5105  sequent)
5106    lt_cv_file_magic_cmd='/bin/file'
5107    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5108    ;;
5109  sni)
5110    lt_cv_file_magic_cmd='/bin/file'
5111    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5112    lt_cv_file_magic_test_file=/lib/libc.so
5113    ;;
5114  siemens)
5115    lt_cv_deplibs_check_method=pass_all
5116    ;;
5117  pc)
5118    lt_cv_deplibs_check_method=pass_all
5119    ;;
5120  esac
5121  ;;
5122
5123tpf*)
5124  lt_cv_deplibs_check_method=pass_all
5125  ;;
5126esac
5127
5128fi
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5130$as_echo "$lt_cv_deplibs_check_method" >&6; }
5131file_magic_cmd=$lt_cv_file_magic_cmd
5132deplibs_check_method=$lt_cv_deplibs_check_method
5133test -z "$deplibs_check_method" && deplibs_check_method=unknown
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146if test -n "$ac_tool_prefix"; then
5147  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5148set dummy ${ac_tool_prefix}ar; ac_word=$2
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150$as_echo_n "checking for $ac_word... " >&6; }
5151if test "${ac_cv_prog_AR+set}" = set; then :
5152  $as_echo_n "(cached) " >&6
5153else
5154  if test -n "$AR"; then
5155  ac_cv_prog_AR="$AR" # Let the user override the test.
5156else
5157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH
5159do
5160  IFS=$as_save_IFS
5161  test -z "$as_dir" && as_dir=.
5162    for ac_exec_ext in '' $ac_executable_extensions; do
5163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164    ac_cv_prog_AR="${ac_tool_prefix}ar"
5165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166    break 2
5167  fi
5168done
5169  done
5170IFS=$as_save_IFS
5171
5172fi
5173fi
5174AR=$ac_cv_prog_AR
5175if test -n "$AR"; then
5176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5177$as_echo "$AR" >&6; }
5178else
5179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180$as_echo "no" >&6; }
5181fi
5182
5183
5184fi
5185if test -z "$ac_cv_prog_AR"; then
5186  ac_ct_AR=$AR
5187  # Extract the first word of "ar", so it can be a program name with args.
5188set dummy ar; ac_word=$2
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190$as_echo_n "checking for $ac_word... " >&6; }
5191if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194  if test -n "$ac_ct_AR"; then
5195  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5196else
5197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200  IFS=$as_save_IFS
5201  test -z "$as_dir" && as_dir=.
5202    for ac_exec_ext in '' $ac_executable_extensions; do
5203  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204    ac_cv_prog_ac_ct_AR="ar"
5205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206    break 2
5207  fi
5208done
5209  done
5210IFS=$as_save_IFS
5211
5212fi
5213fi
5214ac_ct_AR=$ac_cv_prog_ac_ct_AR
5215if test -n "$ac_ct_AR"; then
5216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5217$as_echo "$ac_ct_AR" >&6; }
5218else
5219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220$as_echo "no" >&6; }
5221fi
5222
5223  if test "x$ac_ct_AR" = x; then
5224    AR="false"
5225  else
5226    case $cross_compiling:$ac_tool_warned in
5227yes:)
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230ac_tool_warned=yes ;;
5231esac
5232    AR=$ac_ct_AR
5233  fi
5234else
5235  AR="$ac_cv_prog_AR"
5236fi
5237
5238test -z "$AR" && AR=ar
5239test -z "$AR_FLAGS" && AR_FLAGS=cru
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251if test -n "$ac_tool_prefix"; then
5252  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5253set dummy ${ac_tool_prefix}strip; ac_word=$2
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255$as_echo_n "checking for $ac_word... " >&6; }
5256if test "${ac_cv_prog_STRIP+set}" = set; then :
5257  $as_echo_n "(cached) " >&6
5258else
5259  if test -n "$STRIP"; then
5260  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5261else
5262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263for as_dir in $PATH
5264do
5265  IFS=$as_save_IFS
5266  test -z "$as_dir" && as_dir=.
5267    for ac_exec_ext in '' $ac_executable_extensions; do
5268  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271    break 2
5272  fi
5273done
5274  done
5275IFS=$as_save_IFS
5276
5277fi
5278fi
5279STRIP=$ac_cv_prog_STRIP
5280if test -n "$STRIP"; then
5281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5282$as_echo "$STRIP" >&6; }
5283else
5284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285$as_echo "no" >&6; }
5286fi
5287
5288
5289fi
5290if test -z "$ac_cv_prog_STRIP"; then
5291  ac_ct_STRIP=$STRIP
5292  # Extract the first word of "strip", so it can be a program name with args.
5293set dummy strip; ac_word=$2
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295$as_echo_n "checking for $ac_word... " >&6; }
5296if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5297  $as_echo_n "(cached) " >&6
5298else
5299  if test -n "$ac_ct_STRIP"; then
5300  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5301else
5302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303for as_dir in $PATH
5304do
5305  IFS=$as_save_IFS
5306  test -z "$as_dir" && as_dir=.
5307    for ac_exec_ext in '' $ac_executable_extensions; do
5308  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309    ac_cv_prog_ac_ct_STRIP="strip"
5310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311    break 2
5312  fi
5313done
5314  done
5315IFS=$as_save_IFS
5316
5317fi
5318fi
5319ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5320if test -n "$ac_ct_STRIP"; then
5321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5322$as_echo "$ac_ct_STRIP" >&6; }
5323else
5324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325$as_echo "no" >&6; }
5326fi
5327
5328  if test "x$ac_ct_STRIP" = x; then
5329    STRIP=":"
5330  else
5331    case $cross_compiling:$ac_tool_warned in
5332yes:)
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5335ac_tool_warned=yes ;;
5336esac
5337    STRIP=$ac_ct_STRIP
5338  fi
5339else
5340  STRIP="$ac_cv_prog_STRIP"
5341fi
5342
5343test -z "$STRIP" && STRIP=:
5344
5345
5346
5347
5348
5349
5350if test -n "$ac_tool_prefix"; then
5351  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5352set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354$as_echo_n "checking for $ac_word... " >&6; }
5355if test "${ac_cv_prog_RANLIB+set}" = set; then :
5356  $as_echo_n "(cached) " >&6
5357else
5358  if test -n "$RANLIB"; then
5359  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5360else
5361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362for as_dir in $PATH
5363do
5364  IFS=$as_save_IFS
5365  test -z "$as_dir" && as_dir=.
5366    for ac_exec_ext in '' $ac_executable_extensions; do
5367  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370    break 2
5371  fi
5372done
5373  done
5374IFS=$as_save_IFS
5375
5376fi
5377fi
5378RANLIB=$ac_cv_prog_RANLIB
5379if test -n "$RANLIB"; then
5380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5381$as_echo "$RANLIB" >&6; }
5382else
5383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384$as_echo "no" >&6; }
5385fi
5386
5387
5388fi
5389if test -z "$ac_cv_prog_RANLIB"; then
5390  ac_ct_RANLIB=$RANLIB
5391  # Extract the first word of "ranlib", so it can be a program name with args.
5392set dummy ranlib; ac_word=$2
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394$as_echo_n "checking for $ac_word... " >&6; }
5395if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5396  $as_echo_n "(cached) " >&6
5397else
5398  if test -n "$ac_ct_RANLIB"; then
5399  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5400else
5401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402for as_dir in $PATH
5403do
5404  IFS=$as_save_IFS
5405  test -z "$as_dir" && as_dir=.
5406    for ac_exec_ext in '' $ac_executable_extensions; do
5407  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408    ac_cv_prog_ac_ct_RANLIB="ranlib"
5409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410    break 2
5411  fi
5412done
5413  done
5414IFS=$as_save_IFS
5415
5416fi
5417fi
5418ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5419if test -n "$ac_ct_RANLIB"; then
5420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5421$as_echo "$ac_ct_RANLIB" >&6; }
5422else
5423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424$as_echo "no" >&6; }
5425fi
5426
5427  if test "x$ac_ct_RANLIB" = x; then
5428    RANLIB=":"
5429  else
5430    case $cross_compiling:$ac_tool_warned in
5431yes:)
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5434ac_tool_warned=yes ;;
5435esac
5436    RANLIB=$ac_ct_RANLIB
5437  fi
5438else
5439  RANLIB="$ac_cv_prog_RANLIB"
5440fi
5441
5442test -z "$RANLIB" && RANLIB=:
5443
5444
5445
5446
5447
5448
5449# Determine commands to create old-style static archives.
5450old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5451old_postinstall_cmds='chmod 644 $oldlib'
5452old_postuninstall_cmds=
5453
5454if test -n "$RANLIB"; then
5455  case $host_os in
5456  openbsd*)
5457    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5458    ;;
5459  *)
5460    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5461    ;;
5462  esac
5463  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5464fi
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499# If no C compiler was specified, use CC.
5500LTCC=${LTCC-"$CC"}
5501
5502# If no C compiler flags were specified, use CFLAGS.
5503LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5504
5505# Allow CC to be a program name with arguments.
5506compiler=$CC
5507
5508
5509# Check for command to grab the raw symbol name followed by C symbol from nm.
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5511$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5512if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5513  $as_echo_n "(cached) " >&6
5514else
5515
5516# These are sane defaults that work on at least a few old systems.
5517# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5518
5519# Character class describing NM global symbol codes.
5520symcode='[BCDEGRST]'
5521
5522# Regexp to match symbols that can be accessed directly from C.
5523sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5524
5525# Define system-specific variables.
5526case $host_os in
5527aix*)
5528  symcode='[BCDT]'
5529  ;;
5530cygwin* | mingw* | pw32* | cegcc*)
5531  symcode='[ABCDGISTW]'
5532  ;;
5533hpux*)
5534  if test "$host_cpu" = ia64; then
5535    symcode='[ABCDEGRST]'
5536  fi
5537  ;;
5538irix* | nonstopux*)
5539  symcode='[BCDEGRST]'
5540  ;;
5541osf*)
5542  symcode='[BCDEGQRST]'
5543  ;;
5544solaris*)
5545  symcode='[BDRT]'
5546  ;;
5547sco3.2v5*)
5548  symcode='[DT]'
5549  ;;
5550sysv4.2uw2*)
5551  symcode='[DT]'
5552  ;;
5553sysv5* | sco5v6* | unixware* | OpenUNIX*)
5554  symcode='[ABDT]'
5555  ;;
5556sysv4)
5557  symcode='[DFNSTU]'
5558  ;;
5559esac
5560
5561# If we're using GNU nm, then use its standard symbol codes.
5562case `$NM -V 2>&1` in
5563*GNU* | *'with BFD'*)
5564  symcode='[ABCDGIRSTW]' ;;
5565esac
5566
5567# Transform an extracted symbol line into a proper C declaration.
5568# Some systems (esp. on ia64) link data and code symbols differently,
5569# so use this general approach.
5570lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5571
5572# Transform an extracted symbol line into symbol name and symbol address
5573lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5574lt_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'"
5575
5576# Handle CRLF in mingw tool chain
5577opt_cr=
5578case $build_os in
5579mingw*)
5580  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5581  ;;
5582esac
5583
5584# Try without a prefix underscore, then with it.
5585for ac_symprfx in "" "_"; do
5586
5587  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5588  symxfrm="\\1 $ac_symprfx\\2 \\2"
5589
5590  # Write the raw and C identifiers.
5591  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5592    # Fake it for dumpbin and say T for any non-static function
5593    # and D for any global variable.
5594    # Also find C++ and __fastcall symbols from MSVC++,
5595    # which start with @ or ?.
5596    lt_cv_sys_global_symbol_pipe="$AWK '"\
5597"     {last_section=section; section=\$ 3};"\
5598"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5599"     \$ 0!~/External *\|/{next};"\
5600"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5601"     {if(hide[section]) next};"\
5602"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5603"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5604"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5605"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5606"     ' prfx=^$ac_symprfx"
5607  else
5608    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5609  fi
5610
5611  # Check to see that the pipe works correctly.
5612  pipe_works=no
5613
5614  rm -f conftest*
5615  cat > conftest.$ac_ext <<_LT_EOF
5616#ifdef __cplusplus
5617extern "C" {
5618#endif
5619char nm_test_var;
5620void nm_test_func(void);
5621void nm_test_func(void){}
5622#ifdef __cplusplus
5623}
5624#endif
5625int main(){nm_test_var='a';nm_test_func();return(0);}
5626_LT_EOF
5627
5628  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5629  (eval $ac_compile) 2>&5
5630  ac_status=$?
5631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5632  test $ac_status = 0; }; then
5633    # Now try to grab the symbols.
5634    nlist=conftest.nm
5635    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5636  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5637  ac_status=$?
5638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5639  test $ac_status = 0; } && test -s "$nlist"; then
5640      # Try sorting and uniquifying the output.
5641      if sort "$nlist" | uniq > "$nlist"T; then
5642	mv -f "$nlist"T "$nlist"
5643      else
5644	rm -f "$nlist"T
5645      fi
5646
5647      # Make sure that we snagged all the symbols we need.
5648      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5649	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5650	  cat <<_LT_EOF > conftest.$ac_ext
5651#ifdef __cplusplus
5652extern "C" {
5653#endif
5654
5655_LT_EOF
5656	  # Now generate the symbol file.
5657	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5658
5659	  cat <<_LT_EOF >> conftest.$ac_ext
5660
5661/* The mapping between symbol names and symbols.  */
5662const struct {
5663  const char *name;
5664  void       *address;
5665}
5666lt__PROGRAM__LTX_preloaded_symbols[] =
5667{
5668  { "@PROGRAM@", (void *) 0 },
5669_LT_EOF
5670	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5671	  cat <<\_LT_EOF >> conftest.$ac_ext
5672  {0, (void *) 0}
5673};
5674
5675/* This works around a problem in FreeBSD linker */
5676#ifdef FREEBSD_WORKAROUND
5677static const void *lt_preloaded_setup() {
5678  return lt__PROGRAM__LTX_preloaded_symbols;
5679}
5680#endif
5681
5682#ifdef __cplusplus
5683}
5684#endif
5685_LT_EOF
5686	  # Now try linking the two files.
5687	  mv conftest.$ac_objext conftstm.$ac_objext
5688	  lt_save_LIBS="$LIBS"
5689	  lt_save_CFLAGS="$CFLAGS"
5690	  LIBS="conftstm.$ac_objext"
5691	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5692	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5693  (eval $ac_link) 2>&5
5694  ac_status=$?
5695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5696  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5697	    pipe_works=yes
5698	  fi
5699	  LIBS="$lt_save_LIBS"
5700	  CFLAGS="$lt_save_CFLAGS"
5701	else
5702	  echo "cannot find nm_test_func in $nlist" >&5
5703	fi
5704      else
5705	echo "cannot find nm_test_var in $nlist" >&5
5706      fi
5707    else
5708      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5709    fi
5710  else
5711    echo "$progname: failed program was:" >&5
5712    cat conftest.$ac_ext >&5
5713  fi
5714  rm -rf conftest* conftst*
5715
5716  # Do not use the global_symbol_pipe unless it works.
5717  if test "$pipe_works" = yes; then
5718    break
5719  else
5720    lt_cv_sys_global_symbol_pipe=
5721  fi
5722done
5723
5724fi
5725
5726if test -z "$lt_cv_sys_global_symbol_pipe"; then
5727  lt_cv_sys_global_symbol_to_cdecl=
5728fi
5729if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5731$as_echo "failed" >&6; }
5732else
5733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5734$as_echo "ok" >&6; }
5735fi
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759# Check whether --enable-libtool-lock was given.
5760if test "${enable_libtool_lock+set}" = set; then :
5761  enableval=$enable_libtool_lock;
5762fi
5763
5764test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5765
5766# Some flags need to be propagated to the compiler or linker for good
5767# libtool support.
5768case $host in
5769ia64-*-hpux*)
5770  # Find out which ABI we are using.
5771  echo 'int i;' > conftest.$ac_ext
5772  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5773  (eval $ac_compile) 2>&5
5774  ac_status=$?
5775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5776  test $ac_status = 0; }; then
5777    case `/usr/bin/file conftest.$ac_objext` in
5778      *ELF-32*)
5779	HPUX_IA64_MODE="32"
5780	;;
5781      *ELF-64*)
5782	HPUX_IA64_MODE="64"
5783	;;
5784    esac
5785  fi
5786  rm -rf conftest*
5787  ;;
5788*-*-irix6*)
5789  # Find out which ABI we are using.
5790  echo '#line 5790 "configure"' > conftest.$ac_ext
5791  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5792  (eval $ac_compile) 2>&5
5793  ac_status=$?
5794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5795  test $ac_status = 0; }; then
5796    if test "$lt_cv_prog_gnu_ld" = yes; then
5797      case `/usr/bin/file conftest.$ac_objext` in
5798	*32-bit*)
5799	  LD="${LD-ld} -melf32bsmip"
5800	  ;;
5801	*N32*)
5802	  LD="${LD-ld} -melf32bmipn32"
5803	  ;;
5804	*64-bit*)
5805	  LD="${LD-ld} -melf64bmip"
5806	;;
5807      esac
5808    else
5809      case `/usr/bin/file conftest.$ac_objext` in
5810	*32-bit*)
5811	  LD="${LD-ld} -32"
5812	  ;;
5813	*N32*)
5814	  LD="${LD-ld} -n32"
5815	  ;;
5816	*64-bit*)
5817	  LD="${LD-ld} -64"
5818	  ;;
5819      esac
5820    fi
5821  fi
5822  rm -rf conftest*
5823  ;;
5824
5825x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5826s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5827  # Find out which ABI we are using.
5828  echo 'int i;' > conftest.$ac_ext
5829  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5830  (eval $ac_compile) 2>&5
5831  ac_status=$?
5832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5833  test $ac_status = 0; }; then
5834    case `/usr/bin/file conftest.o` in
5835      *32-bit*)
5836	case $host in
5837	  x86_64-*kfreebsd*-gnu)
5838	    LD="${LD-ld} -m elf_i386_fbsd"
5839	    ;;
5840	  x86_64-*linux*)
5841	    LD="${LD-ld} -m elf_i386"
5842	    ;;
5843	  ppc64-*linux*|powerpc64-*linux*)
5844	    LD="${LD-ld} -m elf32ppclinux"
5845	    ;;
5846	  s390x-*linux*)
5847	    LD="${LD-ld} -m elf_s390"
5848	    ;;
5849	  sparc64-*linux*)
5850	    LD="${LD-ld} -m elf32_sparc"
5851	    ;;
5852	esac
5853	;;
5854      *64-bit*)
5855	case $host in
5856	  x86_64-*kfreebsd*-gnu)
5857	    LD="${LD-ld} -m elf_x86_64_fbsd"
5858	    ;;
5859	  x86_64-*linux*)
5860	    LD="${LD-ld} -m elf_x86_64"
5861	    ;;
5862	  ppc*-*linux*|powerpc*-*linux*)
5863	    LD="${LD-ld} -m elf64ppc"
5864	    ;;
5865	  s390*-*linux*|s390*-*tpf*)
5866	    LD="${LD-ld} -m elf64_s390"
5867	    ;;
5868	  sparc*-*linux*)
5869	    LD="${LD-ld} -m elf64_sparc"
5870	    ;;
5871	esac
5872	;;
5873    esac
5874  fi
5875  rm -rf conftest*
5876  ;;
5877
5878*-*-sco3.2v5*)
5879  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5880  SAVE_CFLAGS="$CFLAGS"
5881  CFLAGS="$CFLAGS -belf"
5882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5883$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5884if test "${lt_cv_cc_needs_belf+set}" = set; then :
5885  $as_echo_n "(cached) " >&6
5886else
5887  ac_ext=c
5888ac_cpp='$CPP $CPPFLAGS'
5889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5891ac_compiler_gnu=$ac_cv_c_compiler_gnu
5892
5893     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894/* end confdefs.h.  */
5895
5896int
5897main ()
5898{
5899
5900  ;
5901  return 0;
5902}
5903_ACEOF
5904if ac_fn_c_try_link "$LINENO"; then :
5905  lt_cv_cc_needs_belf=yes
5906else
5907  lt_cv_cc_needs_belf=no
5908fi
5909rm -f core conftest.err conftest.$ac_objext \
5910    conftest$ac_exeext conftest.$ac_ext
5911     ac_ext=c
5912ac_cpp='$CPP $CPPFLAGS'
5913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5915ac_compiler_gnu=$ac_cv_c_compiler_gnu
5916
5917fi
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5919$as_echo "$lt_cv_cc_needs_belf" >&6; }
5920  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5921    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5922    CFLAGS="$SAVE_CFLAGS"
5923  fi
5924  ;;
5925sparc*-*solaris*)
5926  # Find out which ABI we are using.
5927  echo 'int i;' > conftest.$ac_ext
5928  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5929  (eval $ac_compile) 2>&5
5930  ac_status=$?
5931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5932  test $ac_status = 0; }; then
5933    case `/usr/bin/file conftest.o` in
5934    *64-bit*)
5935      case $lt_cv_prog_gnu_ld in
5936      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5937      *)
5938	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5939	  LD="${LD-ld} -64"
5940	fi
5941	;;
5942      esac
5943      ;;
5944    esac
5945  fi
5946  rm -rf conftest*
5947  ;;
5948esac
5949
5950need_locks="$enable_libtool_lock"
5951
5952
5953  case $host_os in
5954    rhapsody* | darwin*)
5955    if test -n "$ac_tool_prefix"; then
5956  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5957set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959$as_echo_n "checking for $ac_word... " >&6; }
5960if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5961  $as_echo_n "(cached) " >&6
5962else
5963  if test -n "$DSYMUTIL"; then
5964  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5965else
5966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967for as_dir in $PATH
5968do
5969  IFS=$as_save_IFS
5970  test -z "$as_dir" && as_dir=.
5971    for ac_exec_ext in '' $ac_executable_extensions; do
5972  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975    break 2
5976  fi
5977done
5978  done
5979IFS=$as_save_IFS
5980
5981fi
5982fi
5983DSYMUTIL=$ac_cv_prog_DSYMUTIL
5984if test -n "$DSYMUTIL"; then
5985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5986$as_echo "$DSYMUTIL" >&6; }
5987else
5988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989$as_echo "no" >&6; }
5990fi
5991
5992
5993fi
5994if test -z "$ac_cv_prog_DSYMUTIL"; then
5995  ac_ct_DSYMUTIL=$DSYMUTIL
5996  # Extract the first word of "dsymutil", so it can be a program name with args.
5997set dummy dsymutil; ac_word=$2
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999$as_echo_n "checking for $ac_word... " >&6; }
6000if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6001  $as_echo_n "(cached) " >&6
6002else
6003  if test -n "$ac_ct_DSYMUTIL"; then
6004  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6005else
6006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007for as_dir in $PATH
6008do
6009  IFS=$as_save_IFS
6010  test -z "$as_dir" && as_dir=.
6011    for ac_exec_ext in '' $ac_executable_extensions; do
6012  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015    break 2
6016  fi
6017done
6018  done
6019IFS=$as_save_IFS
6020
6021fi
6022fi
6023ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6024if test -n "$ac_ct_DSYMUTIL"; then
6025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6026$as_echo "$ac_ct_DSYMUTIL" >&6; }
6027else
6028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029$as_echo "no" >&6; }
6030fi
6031
6032  if test "x$ac_ct_DSYMUTIL" = x; then
6033    DSYMUTIL=":"
6034  else
6035    case $cross_compiling:$ac_tool_warned in
6036yes:)
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039ac_tool_warned=yes ;;
6040esac
6041    DSYMUTIL=$ac_ct_DSYMUTIL
6042  fi
6043else
6044  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6045fi
6046
6047    if test -n "$ac_tool_prefix"; then
6048  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6049set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051$as_echo_n "checking for $ac_word... " >&6; }
6052if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6053  $as_echo_n "(cached) " >&6
6054else
6055  if test -n "$NMEDIT"; then
6056  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6057else
6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059for as_dir in $PATH
6060do
6061  IFS=$as_save_IFS
6062  test -z "$as_dir" && as_dir=.
6063    for ac_exec_ext in '' $ac_executable_extensions; do
6064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067    break 2
6068  fi
6069done
6070  done
6071IFS=$as_save_IFS
6072
6073fi
6074fi
6075NMEDIT=$ac_cv_prog_NMEDIT
6076if test -n "$NMEDIT"; then
6077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6078$as_echo "$NMEDIT" >&6; }
6079else
6080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081$as_echo "no" >&6; }
6082fi
6083
6084
6085fi
6086if test -z "$ac_cv_prog_NMEDIT"; then
6087  ac_ct_NMEDIT=$NMEDIT
6088  # Extract the first word of "nmedit", so it can be a program name with args.
6089set dummy nmedit; ac_word=$2
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091$as_echo_n "checking for $ac_word... " >&6; }
6092if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6093  $as_echo_n "(cached) " >&6
6094else
6095  if test -n "$ac_ct_NMEDIT"; then
6096  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6097else
6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099for as_dir in $PATH
6100do
6101  IFS=$as_save_IFS
6102  test -z "$as_dir" && as_dir=.
6103    for ac_exec_ext in '' $ac_executable_extensions; do
6104  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6105    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107    break 2
6108  fi
6109done
6110  done
6111IFS=$as_save_IFS
6112
6113fi
6114fi
6115ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6116if test -n "$ac_ct_NMEDIT"; then
6117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6118$as_echo "$ac_ct_NMEDIT" >&6; }
6119else
6120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121$as_echo "no" >&6; }
6122fi
6123
6124  if test "x$ac_ct_NMEDIT" = x; then
6125    NMEDIT=":"
6126  else
6127    case $cross_compiling:$ac_tool_warned in
6128yes:)
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6131ac_tool_warned=yes ;;
6132esac
6133    NMEDIT=$ac_ct_NMEDIT
6134  fi
6135else
6136  NMEDIT="$ac_cv_prog_NMEDIT"
6137fi
6138
6139    if test -n "$ac_tool_prefix"; then
6140  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6141set dummy ${ac_tool_prefix}lipo; ac_word=$2
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143$as_echo_n "checking for $ac_word... " >&6; }
6144if test "${ac_cv_prog_LIPO+set}" = set; then :
6145  $as_echo_n "(cached) " >&6
6146else
6147  if test -n "$LIPO"; then
6148  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6149else
6150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151for as_dir in $PATH
6152do
6153  IFS=$as_save_IFS
6154  test -z "$as_dir" && as_dir=.
6155    for ac_exec_ext in '' $ac_executable_extensions; do
6156  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6157    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6158    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6159    break 2
6160  fi
6161done
6162  done
6163IFS=$as_save_IFS
6164
6165fi
6166fi
6167LIPO=$ac_cv_prog_LIPO
6168if test -n "$LIPO"; then
6169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6170$as_echo "$LIPO" >&6; }
6171else
6172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173$as_echo "no" >&6; }
6174fi
6175
6176
6177fi
6178if test -z "$ac_cv_prog_LIPO"; then
6179  ac_ct_LIPO=$LIPO
6180  # Extract the first word of "lipo", so it can be a program name with args.
6181set dummy lipo; ac_word=$2
6182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183$as_echo_n "checking for $ac_word... " >&6; }
6184if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6185  $as_echo_n "(cached) " >&6
6186else
6187  if test -n "$ac_ct_LIPO"; then
6188  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6189else
6190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191for as_dir in $PATH
6192do
6193  IFS=$as_save_IFS
6194  test -z "$as_dir" && as_dir=.
6195    for ac_exec_ext in '' $ac_executable_extensions; do
6196  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6197    ac_cv_prog_ac_ct_LIPO="lipo"
6198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6199    break 2
6200  fi
6201done
6202  done
6203IFS=$as_save_IFS
6204
6205fi
6206fi
6207ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6208if test -n "$ac_ct_LIPO"; then
6209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6210$as_echo "$ac_ct_LIPO" >&6; }
6211else
6212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213$as_echo "no" >&6; }
6214fi
6215
6216  if test "x$ac_ct_LIPO" = x; then
6217    LIPO=":"
6218  else
6219    case $cross_compiling:$ac_tool_warned in
6220yes:)
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6223ac_tool_warned=yes ;;
6224esac
6225    LIPO=$ac_ct_LIPO
6226  fi
6227else
6228  LIPO="$ac_cv_prog_LIPO"
6229fi
6230
6231    if test -n "$ac_tool_prefix"; then
6232  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6233set dummy ${ac_tool_prefix}otool; ac_word=$2
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235$as_echo_n "checking for $ac_word... " >&6; }
6236if test "${ac_cv_prog_OTOOL+set}" = set; then :
6237  $as_echo_n "(cached) " >&6
6238else
6239  if test -n "$OTOOL"; then
6240  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6241else
6242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245  IFS=$as_save_IFS
6246  test -z "$as_dir" && as_dir=.
6247    for ac_exec_ext in '' $ac_executable_extensions; do
6248  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251    break 2
6252  fi
6253done
6254  done
6255IFS=$as_save_IFS
6256
6257fi
6258fi
6259OTOOL=$ac_cv_prog_OTOOL
6260if test -n "$OTOOL"; then
6261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6262$as_echo "$OTOOL" >&6; }
6263else
6264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265$as_echo "no" >&6; }
6266fi
6267
6268
6269fi
6270if test -z "$ac_cv_prog_OTOOL"; then
6271  ac_ct_OTOOL=$OTOOL
6272  # Extract the first word of "otool", so it can be a program name with args.
6273set dummy otool; ac_word=$2
6274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275$as_echo_n "checking for $ac_word... " >&6; }
6276if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6277  $as_echo_n "(cached) " >&6
6278else
6279  if test -n "$ac_ct_OTOOL"; then
6280  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6281else
6282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283for as_dir in $PATH
6284do
6285  IFS=$as_save_IFS
6286  test -z "$as_dir" && as_dir=.
6287    for ac_exec_ext in '' $ac_executable_extensions; do
6288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289    ac_cv_prog_ac_ct_OTOOL="otool"
6290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291    break 2
6292  fi
6293done
6294  done
6295IFS=$as_save_IFS
6296
6297fi
6298fi
6299ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6300if test -n "$ac_ct_OTOOL"; then
6301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6302$as_echo "$ac_ct_OTOOL" >&6; }
6303else
6304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305$as_echo "no" >&6; }
6306fi
6307
6308  if test "x$ac_ct_OTOOL" = x; then
6309    OTOOL=":"
6310  else
6311    case $cross_compiling:$ac_tool_warned in
6312yes:)
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6315ac_tool_warned=yes ;;
6316esac
6317    OTOOL=$ac_ct_OTOOL
6318  fi
6319else
6320  OTOOL="$ac_cv_prog_OTOOL"
6321fi
6322
6323    if test -n "$ac_tool_prefix"; then
6324  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6325set dummy ${ac_tool_prefix}otool64; ac_word=$2
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327$as_echo_n "checking for $ac_word... " >&6; }
6328if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6329  $as_echo_n "(cached) " >&6
6330else
6331  if test -n "$OTOOL64"; then
6332  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6333else
6334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335for as_dir in $PATH
6336do
6337  IFS=$as_save_IFS
6338  test -z "$as_dir" && as_dir=.
6339    for ac_exec_ext in '' $ac_executable_extensions; do
6340  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343    break 2
6344  fi
6345done
6346  done
6347IFS=$as_save_IFS
6348
6349fi
6350fi
6351OTOOL64=$ac_cv_prog_OTOOL64
6352if test -n "$OTOOL64"; then
6353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6354$as_echo "$OTOOL64" >&6; }
6355else
6356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357$as_echo "no" >&6; }
6358fi
6359
6360
6361fi
6362if test -z "$ac_cv_prog_OTOOL64"; then
6363  ac_ct_OTOOL64=$OTOOL64
6364  # Extract the first word of "otool64", so it can be a program name with args.
6365set dummy otool64; ac_word=$2
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367$as_echo_n "checking for $ac_word... " >&6; }
6368if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6369  $as_echo_n "(cached) " >&6
6370else
6371  if test -n "$ac_ct_OTOOL64"; then
6372  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6373else
6374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375for as_dir in $PATH
6376do
6377  IFS=$as_save_IFS
6378  test -z "$as_dir" && as_dir=.
6379    for ac_exec_ext in '' $ac_executable_extensions; do
6380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381    ac_cv_prog_ac_ct_OTOOL64="otool64"
6382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383    break 2
6384  fi
6385done
6386  done
6387IFS=$as_save_IFS
6388
6389fi
6390fi
6391ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6392if test -n "$ac_ct_OTOOL64"; then
6393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6394$as_echo "$ac_ct_OTOOL64" >&6; }
6395else
6396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397$as_echo "no" >&6; }
6398fi
6399
6400  if test "x$ac_ct_OTOOL64" = x; then
6401    OTOOL64=":"
6402  else
6403    case $cross_compiling:$ac_tool_warned in
6404yes:)
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6407ac_tool_warned=yes ;;
6408esac
6409    OTOOL64=$ac_ct_OTOOL64
6410  fi
6411else
6412  OTOOL64="$ac_cv_prog_OTOOL64"
6413fi
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6442$as_echo_n "checking for -single_module linker flag... " >&6; }
6443if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6444  $as_echo_n "(cached) " >&6
6445else
6446  lt_cv_apple_cc_single_mod=no
6447      if test -z "${LT_MULTI_MODULE}"; then
6448	# By default we will add the -single_module flag. You can override
6449	# by either setting the environment variable LT_MULTI_MODULE
6450	# non-empty at configure time, or by adding -multi_module to the
6451	# link flags.
6452	rm -rf libconftest.dylib*
6453	echo "int foo(void){return 1;}" > conftest.c
6454	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6455-dynamiclib -Wl,-single_module conftest.c" >&5
6456	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6457	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6458        _lt_result=$?
6459	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6460	  lt_cv_apple_cc_single_mod=yes
6461	else
6462	  cat conftest.err >&5
6463	fi
6464	rm -rf libconftest.dylib*
6465	rm -f conftest.*
6466      fi
6467fi
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6469$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6471$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6472if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6473  $as_echo_n "(cached) " >&6
6474else
6475  lt_cv_ld_exported_symbols_list=no
6476      save_LDFLAGS=$LDFLAGS
6477      echo "_main" > conftest.sym
6478      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6479      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480/* end confdefs.h.  */
6481
6482int
6483main ()
6484{
6485
6486  ;
6487  return 0;
6488}
6489_ACEOF
6490if ac_fn_c_try_link "$LINENO"; then :
6491  lt_cv_ld_exported_symbols_list=yes
6492else
6493  lt_cv_ld_exported_symbols_list=no
6494fi
6495rm -f core conftest.err conftest.$ac_objext \
6496    conftest$ac_exeext conftest.$ac_ext
6497	LDFLAGS="$save_LDFLAGS"
6498
6499fi
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6501$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6502    case $host_os in
6503    rhapsody* | darwin1.[012])
6504      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6505    darwin1.*)
6506      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6507    darwin*) # darwin 5.x on
6508      # if running on 10.5 or later, the deployment target defaults
6509      # to the OS version, if on x86, and 10.4, the deployment
6510      # target defaults to 10.4. Don't you love it?
6511      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6512	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6513	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6514	10.[012]*)
6515	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6516	10.*)
6517	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6518      esac
6519    ;;
6520  esac
6521    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6522      _lt_dar_single_mod='$single_module'
6523    fi
6524    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6525      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6526    else
6527      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6528    fi
6529    if test "$DSYMUTIL" != ":"; then
6530      _lt_dsymutil='~$DSYMUTIL $lib || :'
6531    else
6532      _lt_dsymutil=
6533    fi
6534    ;;
6535  esac
6536
6537ac_ext=c
6538ac_cpp='$CPP $CPPFLAGS'
6539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6541ac_compiler_gnu=$ac_cv_c_compiler_gnu
6542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6543$as_echo_n "checking how to run the C preprocessor... " >&6; }
6544# On Suns, sometimes $CPP names a directory.
6545if test -n "$CPP" && test -d "$CPP"; then
6546  CPP=
6547fi
6548if test -z "$CPP"; then
6549  if test "${ac_cv_prog_CPP+set}" = set; then :
6550  $as_echo_n "(cached) " >&6
6551else
6552      # Double quotes because CPP needs to be expanded
6553    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6554    do
6555      ac_preproc_ok=false
6556for ac_c_preproc_warn_flag in '' yes
6557do
6558  # Use a header file that comes with gcc, so configuring glibc
6559  # with a fresh cross-compiler works.
6560  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6561  # <limits.h> exists even on freestanding compilers.
6562  # On the NeXT, cc -E runs the code through the compiler's parser,
6563  # not just through cpp. "Syntax error" is here to catch this case.
6564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565/* end confdefs.h.  */
6566#ifdef __STDC__
6567# include <limits.h>
6568#else
6569# include <assert.h>
6570#endif
6571		     Syntax error
6572_ACEOF
6573if ac_fn_c_try_cpp "$LINENO"; then :
6574
6575else
6576  # Broken: fails on valid input.
6577continue
6578fi
6579rm -f conftest.err conftest.$ac_ext
6580
6581  # OK, works on sane cases.  Now check whether nonexistent headers
6582  # can be detected and how.
6583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584/* end confdefs.h.  */
6585#include <ac_nonexistent.h>
6586_ACEOF
6587if ac_fn_c_try_cpp "$LINENO"; then :
6588  # Broken: success on invalid input.
6589continue
6590else
6591  # Passes both tests.
6592ac_preproc_ok=:
6593break
6594fi
6595rm -f conftest.err conftest.$ac_ext
6596
6597done
6598# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6599rm -f conftest.err conftest.$ac_ext
6600if $ac_preproc_ok; then :
6601  break
6602fi
6603
6604    done
6605    ac_cv_prog_CPP=$CPP
6606
6607fi
6608  CPP=$ac_cv_prog_CPP
6609else
6610  ac_cv_prog_CPP=$CPP
6611fi
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6613$as_echo "$CPP" >&6; }
6614ac_preproc_ok=false
6615for ac_c_preproc_warn_flag in '' yes
6616do
6617  # Use a header file that comes with gcc, so configuring glibc
6618  # with a fresh cross-compiler works.
6619  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6620  # <limits.h> exists even on freestanding compilers.
6621  # On the NeXT, cc -E runs the code through the compiler's parser,
6622  # not just through cpp. "Syntax error" is here to catch this case.
6623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624/* end confdefs.h.  */
6625#ifdef __STDC__
6626# include <limits.h>
6627#else
6628# include <assert.h>
6629#endif
6630		     Syntax error
6631_ACEOF
6632if ac_fn_c_try_cpp "$LINENO"; then :
6633
6634else
6635  # Broken: fails on valid input.
6636continue
6637fi
6638rm -f conftest.err conftest.$ac_ext
6639
6640  # OK, works on sane cases.  Now check whether nonexistent headers
6641  # can be detected and how.
6642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643/* end confdefs.h.  */
6644#include <ac_nonexistent.h>
6645_ACEOF
6646if ac_fn_c_try_cpp "$LINENO"; then :
6647  # Broken: success on invalid input.
6648continue
6649else
6650  # Passes both tests.
6651ac_preproc_ok=:
6652break
6653fi
6654rm -f conftest.err conftest.$ac_ext
6655
6656done
6657# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6658rm -f conftest.err conftest.$ac_ext
6659if $ac_preproc_ok; then :
6660
6661else
6662  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6664as_fn_error "C preprocessor \"$CPP\" fails sanity check
6665See \`config.log' for more details." "$LINENO" 5; }
6666fi
6667
6668ac_ext=c
6669ac_cpp='$CPP $CPPFLAGS'
6670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6672ac_compiler_gnu=$ac_cv_c_compiler_gnu
6673
6674
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6676$as_echo_n "checking for ANSI C header files... " >&6; }
6677if test "${ac_cv_header_stdc+set}" = set; then :
6678  $as_echo_n "(cached) " >&6
6679else
6680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681/* end confdefs.h.  */
6682#include <stdlib.h>
6683#include <stdarg.h>
6684#include <string.h>
6685#include <float.h>
6686
6687int
6688main ()
6689{
6690
6691  ;
6692  return 0;
6693}
6694_ACEOF
6695if ac_fn_c_try_compile "$LINENO"; then :
6696  ac_cv_header_stdc=yes
6697else
6698  ac_cv_header_stdc=no
6699fi
6700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6701
6702if test $ac_cv_header_stdc = yes; then
6703  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705/* end confdefs.h.  */
6706#include <string.h>
6707
6708_ACEOF
6709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6710  $EGREP "memchr" >/dev/null 2>&1; then :
6711
6712else
6713  ac_cv_header_stdc=no
6714fi
6715rm -f conftest*
6716
6717fi
6718
6719if test $ac_cv_header_stdc = yes; then
6720  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722/* end confdefs.h.  */
6723#include <stdlib.h>
6724
6725_ACEOF
6726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6727  $EGREP "free" >/dev/null 2>&1; then :
6728
6729else
6730  ac_cv_header_stdc=no
6731fi
6732rm -f conftest*
6733
6734fi
6735
6736if test $ac_cv_header_stdc = yes; then
6737  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6738  if test "$cross_compiling" = yes; then :
6739  :
6740else
6741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742/* end confdefs.h.  */
6743#include <ctype.h>
6744#include <stdlib.h>
6745#if ((' ' & 0x0FF) == 0x020)
6746# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6747# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6748#else
6749# define ISLOWER(c) \
6750		   (('a' <= (c) && (c) <= 'i') \
6751		     || ('j' <= (c) && (c) <= 'r') \
6752		     || ('s' <= (c) && (c) <= 'z'))
6753# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6754#endif
6755
6756#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6757int
6758main ()
6759{
6760  int i;
6761  for (i = 0; i < 256; i++)
6762    if (XOR (islower (i), ISLOWER (i))
6763	|| toupper (i) != TOUPPER (i))
6764      return 2;
6765  return 0;
6766}
6767_ACEOF
6768if ac_fn_c_try_run "$LINENO"; then :
6769
6770else
6771  ac_cv_header_stdc=no
6772fi
6773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6774  conftest.$ac_objext conftest.beam conftest.$ac_ext
6775fi
6776
6777fi
6778fi
6779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6780$as_echo "$ac_cv_header_stdc" >&6; }
6781if test $ac_cv_header_stdc = yes; then
6782
6783$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6784
6785fi
6786
6787# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6788for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6789		  inttypes.h stdint.h unistd.h
6790do :
6791  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6792ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6793"
6794eval as_val=\$$as_ac_Header
6795   if test "x$as_val" = x""yes; then :
6796  cat >>confdefs.h <<_ACEOF
6797#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6798_ACEOF
6799
6800fi
6801
6802done
6803
6804
6805for ac_header in dlfcn.h
6806do :
6807  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6808"
6809if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6810  cat >>confdefs.h <<_ACEOF
6811#define HAVE_DLFCN_H 1
6812_ACEOF
6813
6814fi
6815
6816done
6817
6818
6819
6820# Set options
6821
6822
6823
6824        enable_dlopen=no
6825
6826
6827  enable_win32_dll=no
6828
6829
6830            # Check whether --enable-shared was given.
6831if test "${enable_shared+set}" = set; then :
6832  enableval=$enable_shared; p=${PACKAGE-default}
6833    case $enableval in
6834    yes) enable_shared=yes ;;
6835    no) enable_shared=no ;;
6836    *)
6837      enable_shared=no
6838      # Look at the argument we got.  We use all the common list separators.
6839      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6840      for pkg in $enableval; do
6841	IFS="$lt_save_ifs"
6842	if test "X$pkg" = "X$p"; then
6843	  enable_shared=yes
6844	fi
6845      done
6846      IFS="$lt_save_ifs"
6847      ;;
6848    esac
6849else
6850  enable_shared=yes
6851fi
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861  # Check whether --enable-static was given.
6862if test "${enable_static+set}" = set; then :
6863  enableval=$enable_static; p=${PACKAGE-default}
6864    case $enableval in
6865    yes) enable_static=yes ;;
6866    no) enable_static=no ;;
6867    *)
6868     enable_static=no
6869      # Look at the argument we got.  We use all the common list separators.
6870      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6871      for pkg in $enableval; do
6872	IFS="$lt_save_ifs"
6873	if test "X$pkg" = "X$p"; then
6874	  enable_static=yes
6875	fi
6876      done
6877      IFS="$lt_save_ifs"
6878      ;;
6879    esac
6880else
6881  enable_static=yes
6882fi
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893# Check whether --with-pic was given.
6894if test "${with_pic+set}" = set; then :
6895  withval=$with_pic; pic_mode="$withval"
6896else
6897  pic_mode=default
6898fi
6899
6900
6901test -z "$pic_mode" && pic_mode=default
6902
6903
6904
6905
6906
6907
6908
6909  # Check whether --enable-fast-install was given.
6910if test "${enable_fast_install+set}" = set; then :
6911  enableval=$enable_fast_install; p=${PACKAGE-default}
6912    case $enableval in
6913    yes) enable_fast_install=yes ;;
6914    no) enable_fast_install=no ;;
6915    *)
6916      enable_fast_install=no
6917      # Look at the argument we got.  We use all the common list separators.
6918      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6919      for pkg in $enableval; do
6920	IFS="$lt_save_ifs"
6921	if test "X$pkg" = "X$p"; then
6922	  enable_fast_install=yes
6923	fi
6924      done
6925      IFS="$lt_save_ifs"
6926      ;;
6927    esac
6928else
6929  enable_fast_install=yes
6930fi
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942# This can be used to rebuild libtool when needed
6943LIBTOOL_DEPS="$ltmain"
6944
6945# Always use our own libtool.
6946LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972test -z "$LN_S" && LN_S="ln -s"
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987if test -n "${ZSH_VERSION+set}" ; then
6988   setopt NO_GLOB_SUBST
6989fi
6990
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6992$as_echo_n "checking for objdir... " >&6; }
6993if test "${lt_cv_objdir+set}" = set; then :
6994  $as_echo_n "(cached) " >&6
6995else
6996  rm -f .libs 2>/dev/null
6997mkdir .libs 2>/dev/null
6998if test -d .libs; then
6999  lt_cv_objdir=.libs
7000else
7001  # MS-DOS does not allow filenames that begin with a dot.
7002  lt_cv_objdir=_libs
7003fi
7004rmdir .libs 2>/dev/null
7005fi
7006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7007$as_echo "$lt_cv_objdir" >&6; }
7008objdir=$lt_cv_objdir
7009
7010
7011
7012
7013
7014cat >>confdefs.h <<_ACEOF
7015#define LT_OBJDIR "$lt_cv_objdir/"
7016_ACEOF
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034case $host_os in
7035aix3*)
7036  # AIX sometimes has problems with the GCC collect2 program.  For some
7037  # reason, if we set the COLLECT_NAMES environment variable, the problems
7038  # vanish in a puff of smoke.
7039  if test "X${COLLECT_NAMES+set}" != Xset; then
7040    COLLECT_NAMES=
7041    export COLLECT_NAMES
7042  fi
7043  ;;
7044esac
7045
7046# Sed substitution that helps us do robust quoting.  It backslashifies
7047# metacharacters that are still active within double-quoted strings.
7048sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7049
7050# Same as above, but do not quote variable references.
7051double_quote_subst='s/\(["`\\]\)/\\\1/g'
7052
7053# Sed substitution to delay expansion of an escaped shell variable in a
7054# double_quote_subst'ed string.
7055delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7056
7057# Sed substitution to delay expansion of an escaped single quote.
7058delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7059
7060# Sed substitution to avoid accidental globbing in evaled expressions
7061no_glob_subst='s/\*/\\\*/g'
7062
7063# Global variables:
7064ofile=libtool
7065can_build_shared=yes
7066
7067# All known linkers require a `.a' archive for static linking (except MSVC,
7068# which needs '.lib').
7069libext=a
7070
7071with_gnu_ld="$lt_cv_prog_gnu_ld"
7072
7073old_CC="$CC"
7074old_CFLAGS="$CFLAGS"
7075
7076# Set sane defaults for various variables
7077test -z "$CC" && CC=cc
7078test -z "$LTCC" && LTCC=$CC
7079test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7080test -z "$LD" && LD=ld
7081test -z "$ac_objext" && ac_objext=o
7082
7083for cc_temp in $compiler""; do
7084  case $cc_temp in
7085    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7086    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7087    \-*) ;;
7088    *) break;;
7089  esac
7090done
7091cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7092
7093
7094# Only perform the check for file, if the check method requires it
7095test -z "$MAGIC_CMD" && MAGIC_CMD=file
7096case $deplibs_check_method in
7097file_magic*)
7098  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7099    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7100$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7101if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7102  $as_echo_n "(cached) " >&6
7103else
7104  case $MAGIC_CMD in
7105[\\/*] |  ?:[\\/]*)
7106  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7107  ;;
7108*)
7109  lt_save_MAGIC_CMD="$MAGIC_CMD"
7110  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7111  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7112  for ac_dir in $ac_dummy; do
7113    IFS="$lt_save_ifs"
7114    test -z "$ac_dir" && ac_dir=.
7115    if test -f $ac_dir/${ac_tool_prefix}file; then
7116      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7117      if test -n "$file_magic_test_file"; then
7118	case $deplibs_check_method in
7119	"file_magic "*)
7120	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7121	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7122	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7123	    $EGREP "$file_magic_regex" > /dev/null; then
7124	    :
7125	  else
7126	    cat <<_LT_EOF 1>&2
7127
7128*** Warning: the command libtool uses to detect shared libraries,
7129*** $file_magic_cmd, produces output that libtool cannot recognize.
7130*** The result is that libtool may fail to recognize shared libraries
7131*** as such.  This will affect the creation of libtool libraries that
7132*** depend on shared libraries, but programs linked with such libtool
7133*** libraries will work regardless of this problem.  Nevertheless, you
7134*** may want to report the problem to your system manager and/or to
7135*** bug-libtool@gnu.org
7136
7137_LT_EOF
7138	  fi ;;
7139	esac
7140      fi
7141      break
7142    fi
7143  done
7144  IFS="$lt_save_ifs"
7145  MAGIC_CMD="$lt_save_MAGIC_CMD"
7146  ;;
7147esac
7148fi
7149
7150MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7151if test -n "$MAGIC_CMD"; then
7152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7153$as_echo "$MAGIC_CMD" >&6; }
7154else
7155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156$as_echo "no" >&6; }
7157fi
7158
7159
7160
7161
7162
7163if test -z "$lt_cv_path_MAGIC_CMD"; then
7164  if test -n "$ac_tool_prefix"; then
7165    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7166$as_echo_n "checking for file... " >&6; }
7167if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7168  $as_echo_n "(cached) " >&6
7169else
7170  case $MAGIC_CMD in
7171[\\/*] |  ?:[\\/]*)
7172  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7173  ;;
7174*)
7175  lt_save_MAGIC_CMD="$MAGIC_CMD"
7176  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7177  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7178  for ac_dir in $ac_dummy; do
7179    IFS="$lt_save_ifs"
7180    test -z "$ac_dir" && ac_dir=.
7181    if test -f $ac_dir/file; then
7182      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7183      if test -n "$file_magic_test_file"; then
7184	case $deplibs_check_method in
7185	"file_magic "*)
7186	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7187	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7188	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7189	    $EGREP "$file_magic_regex" > /dev/null; then
7190	    :
7191	  else
7192	    cat <<_LT_EOF 1>&2
7193
7194*** Warning: the command libtool uses to detect shared libraries,
7195*** $file_magic_cmd, produces output that libtool cannot recognize.
7196*** The result is that libtool may fail to recognize shared libraries
7197*** as such.  This will affect the creation of libtool libraries that
7198*** depend on shared libraries, but programs linked with such libtool
7199*** libraries will work regardless of this problem.  Nevertheless, you
7200*** may want to report the problem to your system manager and/or to
7201*** bug-libtool@gnu.org
7202
7203_LT_EOF
7204	  fi ;;
7205	esac
7206      fi
7207      break
7208    fi
7209  done
7210  IFS="$lt_save_ifs"
7211  MAGIC_CMD="$lt_save_MAGIC_CMD"
7212  ;;
7213esac
7214fi
7215
7216MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7217if test -n "$MAGIC_CMD"; then
7218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7219$as_echo "$MAGIC_CMD" >&6; }
7220else
7221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222$as_echo "no" >&6; }
7223fi
7224
7225
7226  else
7227    MAGIC_CMD=:
7228  fi
7229fi
7230
7231  fi
7232  ;;
7233esac
7234
7235# Use C for the default configuration in the libtool script
7236
7237lt_save_CC="$CC"
7238ac_ext=c
7239ac_cpp='$CPP $CPPFLAGS'
7240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7242ac_compiler_gnu=$ac_cv_c_compiler_gnu
7243
7244
7245# Source file extension for C test sources.
7246ac_ext=c
7247
7248# Object file extension for compiled C test sources.
7249objext=o
7250objext=$objext
7251
7252# Code to be used in simple compile tests
7253lt_simple_compile_test_code="int some_variable = 0;"
7254
7255# Code to be used in simple link tests
7256lt_simple_link_test_code='int main(){return(0);}'
7257
7258
7259
7260
7261
7262
7263
7264# If no C compiler was specified, use CC.
7265LTCC=${LTCC-"$CC"}
7266
7267# If no C compiler flags were specified, use CFLAGS.
7268LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7269
7270# Allow CC to be a program name with arguments.
7271compiler=$CC
7272
7273# Save the default compiler, since it gets overwritten when the other
7274# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7275compiler_DEFAULT=$CC
7276
7277# save warnings/boilerplate of simple test code
7278ac_outfile=conftest.$ac_objext
7279echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7280eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7281_lt_compiler_boilerplate=`cat conftest.err`
7282$RM conftest*
7283
7284ac_outfile=conftest.$ac_objext
7285echo "$lt_simple_link_test_code" >conftest.$ac_ext
7286eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7287_lt_linker_boilerplate=`cat conftest.err`
7288$RM -r conftest*
7289
7290
7291## CAVEAT EMPTOR:
7292## There is no encapsulation within the following macros, do not change
7293## the running order or otherwise move them around unless you know exactly
7294## what you are doing...
7295if test -n "$compiler"; then
7296
7297lt_prog_compiler_no_builtin_flag=
7298
7299if test "$GCC" = yes; then
7300  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7301
7302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7303$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7304if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7305  $as_echo_n "(cached) " >&6
7306else
7307  lt_cv_prog_compiler_rtti_exceptions=no
7308   ac_outfile=conftest.$ac_objext
7309   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7310   lt_compiler_flag="-fno-rtti -fno-exceptions"
7311   # Insert the option either (1) after the last *FLAGS variable, or
7312   # (2) before a word containing "conftest.", or (3) at the end.
7313   # Note that $ac_compile itself does not contain backslashes and begins
7314   # with a dollar sign (not a hyphen), so the echo should work correctly.
7315   # The option is referenced via a variable to avoid confusing sed.
7316   lt_compile=`echo "$ac_compile" | $SED \
7317   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7318   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7319   -e 's:$: $lt_compiler_flag:'`
7320   (eval echo "\"\$as_me:7320: $lt_compile\"" >&5)
7321   (eval "$lt_compile" 2>conftest.err)
7322   ac_status=$?
7323   cat conftest.err >&5
7324   echo "$as_me:7324: \$? = $ac_status" >&5
7325   if (exit $ac_status) && test -s "$ac_outfile"; then
7326     # The compiler can only warn and ignore the option if not recognized
7327     # So say no if there are warnings other than the usual output.
7328     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7329     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7330     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7331       lt_cv_prog_compiler_rtti_exceptions=yes
7332     fi
7333   fi
7334   $RM conftest*
7335
7336fi
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7338$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7339
7340if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7341    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7342else
7343    :
7344fi
7345
7346fi
7347
7348
7349
7350
7351
7352
7353  lt_prog_compiler_wl=
7354lt_prog_compiler_pic=
7355lt_prog_compiler_static=
7356
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7358$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7359
7360  if test "$GCC" = yes; then
7361    lt_prog_compiler_wl='-Wl,'
7362    lt_prog_compiler_static='-static'
7363
7364    case $host_os in
7365      aix*)
7366      # All AIX code is PIC.
7367      if test "$host_cpu" = ia64; then
7368	# AIX 5 now supports IA64 processor
7369	lt_prog_compiler_static='-Bstatic'
7370      fi
7371      ;;
7372
7373    amigaos*)
7374      case $host_cpu in
7375      powerpc)
7376            # see comment about AmigaOS4 .so support
7377            lt_prog_compiler_pic='-fPIC'
7378        ;;
7379      m68k)
7380            # FIXME: we need at least 68020 code to build shared libraries, but
7381            # adding the `-m68020' flag to GCC prevents building anything better,
7382            # like `-m68040'.
7383            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7384        ;;
7385      esac
7386      ;;
7387
7388    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7389      # PIC is the default for these OSes.
7390      ;;
7391
7392    mingw* | cygwin* | pw32* | os2* | cegcc*)
7393      # This hack is so that the source file can tell whether it is being
7394      # built for inclusion in a dll (and should export symbols for example).
7395      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7396      # (--disable-auto-import) libraries
7397      lt_prog_compiler_pic='-DDLL_EXPORT'
7398      ;;
7399
7400    darwin* | rhapsody*)
7401      # PIC is the default on this platform
7402      # Common symbols not allowed in MH_DYLIB files
7403      lt_prog_compiler_pic='-fno-common'
7404      ;;
7405
7406    hpux*)
7407      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7408      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7409      # sets the default TLS model and affects inlining.
7410      case $host_cpu in
7411      hppa*64*)
7412	# +Z the default
7413	;;
7414      *)
7415	lt_prog_compiler_pic='-fPIC'
7416	;;
7417      esac
7418      ;;
7419
7420    interix[3-9]*)
7421      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7422      # Instead, we relocate shared libraries at runtime.
7423      ;;
7424
7425    msdosdjgpp*)
7426      # Just because we use GCC doesn't mean we suddenly get shared libraries
7427      # on systems that don't support them.
7428      lt_prog_compiler_can_build_shared=no
7429      enable_shared=no
7430      ;;
7431
7432    *nto* | *qnx*)
7433      # QNX uses GNU C++, but need to define -shared option too, otherwise
7434      # it will coredump.
7435      lt_prog_compiler_pic='-fPIC -shared'
7436      ;;
7437
7438    sysv4*MP*)
7439      if test -d /usr/nec; then
7440	lt_prog_compiler_pic=-Kconform_pic
7441      fi
7442      ;;
7443
7444    *)
7445      lt_prog_compiler_pic='-fPIC'
7446      ;;
7447    esac
7448  else
7449    # PORTME Check for flag to pass linker flags through the system compiler.
7450    case $host_os in
7451    aix*)
7452      lt_prog_compiler_wl='-Wl,'
7453      if test "$host_cpu" = ia64; then
7454	# AIX 5 now supports IA64 processor
7455	lt_prog_compiler_static='-Bstatic'
7456      else
7457	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7458      fi
7459      ;;
7460
7461    mingw* | cygwin* | pw32* | os2* | cegcc*)
7462      # This hack is so that the source file can tell whether it is being
7463      # built for inclusion in a dll (and should export symbols for example).
7464      lt_prog_compiler_pic='-DDLL_EXPORT'
7465      ;;
7466
7467    hpux9* | hpux10* | hpux11*)
7468      lt_prog_compiler_wl='-Wl,'
7469      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7470      # not for PA HP-UX.
7471      case $host_cpu in
7472      hppa*64*|ia64*)
7473	# +Z the default
7474	;;
7475      *)
7476	lt_prog_compiler_pic='+Z'
7477	;;
7478      esac
7479      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7480      lt_prog_compiler_static='${wl}-a ${wl}archive'
7481      ;;
7482
7483    irix5* | irix6* | nonstopux*)
7484      lt_prog_compiler_wl='-Wl,'
7485      # PIC (with -KPIC) is the default.
7486      lt_prog_compiler_static='-non_shared'
7487      ;;
7488
7489    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7490      case $cc_basename in
7491      # old Intel for x86_64 which still supported -KPIC.
7492      ecc*)
7493	lt_prog_compiler_wl='-Wl,'
7494	lt_prog_compiler_pic='-KPIC'
7495	lt_prog_compiler_static='-static'
7496        ;;
7497      # icc used to be incompatible with GCC.
7498      # ICC 10 doesn't accept -KPIC any more.
7499      icc* | ifort*)
7500	lt_prog_compiler_wl='-Wl,'
7501	lt_prog_compiler_pic='-fPIC'
7502	lt_prog_compiler_static='-static'
7503        ;;
7504      # Lahey Fortran 8.1.
7505      lf95*)
7506	lt_prog_compiler_wl='-Wl,'
7507	lt_prog_compiler_pic='--shared'
7508	lt_prog_compiler_static='--static'
7509	;;
7510      pgcc* | pgf77* | pgf90* | pgf95*)
7511        # Portland Group compilers (*not* the Pentium gcc compiler,
7512	# which looks to be a dead project)
7513	lt_prog_compiler_wl='-Wl,'
7514	lt_prog_compiler_pic='-fpic'
7515	lt_prog_compiler_static='-Bstatic'
7516        ;;
7517      ccc*)
7518        lt_prog_compiler_wl='-Wl,'
7519        # All Alpha code is PIC.
7520        lt_prog_compiler_static='-non_shared'
7521        ;;
7522      xl*)
7523	# IBM XL C 8.0/Fortran 10.1 on PPC
7524	lt_prog_compiler_wl='-Wl,'
7525	lt_prog_compiler_pic='-qpic'
7526	lt_prog_compiler_static='-qstaticlink'
7527	;;
7528      *)
7529	case `$CC -V 2>&1 | sed 5q` in
7530	*Sun\ C*)
7531	  # Sun C 5.9
7532	  lt_prog_compiler_pic='-KPIC'
7533	  lt_prog_compiler_static='-Bstatic'
7534	  lt_prog_compiler_wl='-Wl,'
7535	  ;;
7536	*Sun\ F*)
7537	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7538	  lt_prog_compiler_pic='-KPIC'
7539	  lt_prog_compiler_static='-Bstatic'
7540	  lt_prog_compiler_wl=''
7541	  ;;
7542	esac
7543	;;
7544      esac
7545      ;;
7546
7547    newsos6)
7548      lt_prog_compiler_pic='-KPIC'
7549      lt_prog_compiler_static='-Bstatic'
7550      ;;
7551
7552    *nto* | *qnx*)
7553      # QNX uses GNU C++, but need to define -shared option too, otherwise
7554      # it will coredump.
7555      lt_prog_compiler_pic='-fPIC -shared'
7556      ;;
7557
7558    osf3* | osf4* | osf5*)
7559      lt_prog_compiler_wl='-Wl,'
7560      # All OSF/1 code is PIC.
7561      lt_prog_compiler_static='-non_shared'
7562      ;;
7563
7564    rdos*)
7565      lt_prog_compiler_static='-non_shared'
7566      ;;
7567
7568    solaris*)
7569      lt_prog_compiler_pic='-KPIC'
7570      lt_prog_compiler_static='-Bstatic'
7571      case $cc_basename in
7572      f77* | f90* | f95*)
7573	lt_prog_compiler_wl='-Qoption ld ';;
7574      *)
7575	lt_prog_compiler_wl='-Wl,';;
7576      esac
7577      ;;
7578
7579    sunos4*)
7580      lt_prog_compiler_wl='-Qoption ld '
7581      lt_prog_compiler_pic='-PIC'
7582      lt_prog_compiler_static='-Bstatic'
7583      ;;
7584
7585    sysv4 | sysv4.2uw2* | sysv4.3*)
7586      lt_prog_compiler_wl='-Wl,'
7587      lt_prog_compiler_pic='-KPIC'
7588      lt_prog_compiler_static='-Bstatic'
7589      ;;
7590
7591    sysv4*MP*)
7592      if test -d /usr/nec ;then
7593	lt_prog_compiler_pic='-Kconform_pic'
7594	lt_prog_compiler_static='-Bstatic'
7595      fi
7596      ;;
7597
7598    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7599      lt_prog_compiler_wl='-Wl,'
7600      lt_prog_compiler_pic='-KPIC'
7601      lt_prog_compiler_static='-Bstatic'
7602      ;;
7603
7604    unicos*)
7605      lt_prog_compiler_wl='-Wl,'
7606      lt_prog_compiler_can_build_shared=no
7607      ;;
7608
7609    uts4*)
7610      lt_prog_compiler_pic='-pic'
7611      lt_prog_compiler_static='-Bstatic'
7612      ;;
7613
7614    *)
7615      lt_prog_compiler_can_build_shared=no
7616      ;;
7617    esac
7618  fi
7619
7620case $host_os in
7621  # For platforms which do not support PIC, -DPIC is meaningless:
7622  *djgpp*)
7623    lt_prog_compiler_pic=
7624    ;;
7625  *)
7626    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7627    ;;
7628esac
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7630$as_echo "$lt_prog_compiler_pic" >&6; }
7631
7632
7633
7634
7635
7636
7637#
7638# Check to make sure the PIC flag actually works.
7639#
7640if test -n "$lt_prog_compiler_pic"; then
7641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7642$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7643if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7644  $as_echo_n "(cached) " >&6
7645else
7646  lt_cv_prog_compiler_pic_works=no
7647   ac_outfile=conftest.$ac_objext
7648   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7649   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7650   # Insert the option either (1) after the last *FLAGS variable, or
7651   # (2) before a word containing "conftest.", or (3) at the end.
7652   # Note that $ac_compile itself does not contain backslashes and begins
7653   # with a dollar sign (not a hyphen), so the echo should work correctly.
7654   # The option is referenced via a variable to avoid confusing sed.
7655   lt_compile=`echo "$ac_compile" | $SED \
7656   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7657   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7658   -e 's:$: $lt_compiler_flag:'`
7659   (eval echo "\"\$as_me:7659: $lt_compile\"" >&5)
7660   (eval "$lt_compile" 2>conftest.err)
7661   ac_status=$?
7662   cat conftest.err >&5
7663   echo "$as_me:7663: \$? = $ac_status" >&5
7664   if (exit $ac_status) && test -s "$ac_outfile"; then
7665     # The compiler can only warn and ignore the option if not recognized
7666     # So say no if there are warnings other than the usual output.
7667     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7668     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7669     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7670       lt_cv_prog_compiler_pic_works=yes
7671     fi
7672   fi
7673   $RM conftest*
7674
7675fi
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7677$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7678
7679if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7680    case $lt_prog_compiler_pic in
7681     "" | " "*) ;;
7682     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7683     esac
7684else
7685    lt_prog_compiler_pic=
7686     lt_prog_compiler_can_build_shared=no
7687fi
7688
7689fi
7690
7691
7692
7693
7694
7695
7696#
7697# Check to make sure the static flag actually works.
7698#
7699wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7701$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7702if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7703  $as_echo_n "(cached) " >&6
7704else
7705  lt_cv_prog_compiler_static_works=no
7706   save_LDFLAGS="$LDFLAGS"
7707   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7708   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7709   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7710     # The linker can only warn and ignore the option if not recognized
7711     # So say no if there are warnings
7712     if test -s conftest.err; then
7713       # Append any errors to the config.log.
7714       cat conftest.err 1>&5
7715       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7716       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7717       if diff conftest.exp conftest.er2 >/dev/null; then
7718         lt_cv_prog_compiler_static_works=yes
7719       fi
7720     else
7721       lt_cv_prog_compiler_static_works=yes
7722     fi
7723   fi
7724   $RM -r conftest*
7725   LDFLAGS="$save_LDFLAGS"
7726
7727fi
7728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7729$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7730
7731if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7732    :
7733else
7734    lt_prog_compiler_static=
7735fi
7736
7737
7738
7739
7740
7741
7742
7743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7744$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7745if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7746  $as_echo_n "(cached) " >&6
7747else
7748  lt_cv_prog_compiler_c_o=no
7749   $RM -r conftest 2>/dev/null
7750   mkdir conftest
7751   cd conftest
7752   mkdir out
7753   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7754
7755   lt_compiler_flag="-o out/conftest2.$ac_objext"
7756   # Insert the option either (1) after the last *FLAGS variable, or
7757   # (2) before a word containing "conftest.", or (3) at the end.
7758   # Note that $ac_compile itself does not contain backslashes and begins
7759   # with a dollar sign (not a hyphen), so the echo should work correctly.
7760   lt_compile=`echo "$ac_compile" | $SED \
7761   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7762   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7763   -e 's:$: $lt_compiler_flag:'`
7764   (eval echo "\"\$as_me:7764: $lt_compile\"" >&5)
7765   (eval "$lt_compile" 2>out/conftest.err)
7766   ac_status=$?
7767   cat out/conftest.err >&5
7768   echo "$as_me:7768: \$? = $ac_status" >&5
7769   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7770   then
7771     # The compiler can only warn and ignore the option if not recognized
7772     # So say no if there are warnings
7773     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7774     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7775     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7776       lt_cv_prog_compiler_c_o=yes
7777     fi
7778   fi
7779   chmod u+w . 2>&5
7780   $RM conftest*
7781   # SGI C++ compiler will create directory out/ii_files/ for
7782   # template instantiation
7783   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7784   $RM out/* && rmdir out
7785   cd ..
7786   $RM -r conftest
7787   $RM conftest*
7788
7789fi
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7791$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7792
7793
7794
7795
7796
7797
7798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7799$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7800if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7801  $as_echo_n "(cached) " >&6
7802else
7803  lt_cv_prog_compiler_c_o=no
7804   $RM -r conftest 2>/dev/null
7805   mkdir conftest
7806   cd conftest
7807   mkdir out
7808   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7809
7810   lt_compiler_flag="-o out/conftest2.$ac_objext"
7811   # Insert the option either (1) after the last *FLAGS variable, or
7812   # (2) before a word containing "conftest.", or (3) at the end.
7813   # Note that $ac_compile itself does not contain backslashes and begins
7814   # with a dollar sign (not a hyphen), so the echo should work correctly.
7815   lt_compile=`echo "$ac_compile" | $SED \
7816   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7817   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7818   -e 's:$: $lt_compiler_flag:'`
7819   (eval echo "\"\$as_me:7819: $lt_compile\"" >&5)
7820   (eval "$lt_compile" 2>out/conftest.err)
7821   ac_status=$?
7822   cat out/conftest.err >&5
7823   echo "$as_me:7823: \$? = $ac_status" >&5
7824   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7825   then
7826     # The compiler can only warn and ignore the option if not recognized
7827     # So say no if there are warnings
7828     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7829     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7830     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7831       lt_cv_prog_compiler_c_o=yes
7832     fi
7833   fi
7834   chmod u+w . 2>&5
7835   $RM conftest*
7836   # SGI C++ compiler will create directory out/ii_files/ for
7837   # template instantiation
7838   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7839   $RM out/* && rmdir out
7840   cd ..
7841   $RM -r conftest
7842   $RM conftest*
7843
7844fi
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7846$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7847
7848
7849
7850
7851hard_links="nottested"
7852if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7853  # do not overwrite the value of need_locks provided by the user
7854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7855$as_echo_n "checking if we can lock with hard links... " >&6; }
7856  hard_links=yes
7857  $RM conftest*
7858  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7859  touch conftest.a
7860  ln conftest.a conftest.b 2>&5 || hard_links=no
7861  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7863$as_echo "$hard_links" >&6; }
7864  if test "$hard_links" = no; then
7865    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7866$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7867    need_locks=warn
7868  fi
7869else
7870  need_locks=no
7871fi
7872
7873
7874
7875
7876
7877
7878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7879$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7880
7881  runpath_var=
7882  allow_undefined_flag=
7883  always_export_symbols=no
7884  archive_cmds=
7885  archive_expsym_cmds=
7886  compiler_needs_object=no
7887  enable_shared_with_static_runtimes=no
7888  export_dynamic_flag_spec=
7889  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7890  hardcode_automatic=no
7891  hardcode_direct=no
7892  hardcode_direct_absolute=no
7893  hardcode_libdir_flag_spec=
7894  hardcode_libdir_flag_spec_ld=
7895  hardcode_libdir_separator=
7896  hardcode_minus_L=no
7897  hardcode_shlibpath_var=unsupported
7898  inherit_rpath=no
7899  link_all_deplibs=unknown
7900  module_cmds=
7901  module_expsym_cmds=
7902  old_archive_from_new_cmds=
7903  old_archive_from_expsyms_cmds=
7904  thread_safe_flag_spec=
7905  whole_archive_flag_spec=
7906  # include_expsyms should be a list of space-separated symbols to be *always*
7907  # included in the symbol list
7908  include_expsyms=
7909  # exclude_expsyms can be an extended regexp of symbols to exclude
7910  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7911  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7912  # as well as any symbol that contains `d'.
7913  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7914  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7915  # platforms (ab)use it in PIC code, but their linkers get confused if
7916  # the symbol is explicitly referenced.  Since portable code cannot
7917  # rely on this symbol name, it's probably fine to never include it in
7918  # preloaded symbol tables.
7919  # Exclude shared library initialization/finalization symbols.
7920  extract_expsyms_cmds=
7921
7922  case $host_os in
7923  cygwin* | mingw* | pw32* | cegcc*)
7924    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7925    # When not using gcc, we currently assume that we are using
7926    # Microsoft Visual C++.
7927    if test "$GCC" != yes; then
7928      with_gnu_ld=no
7929    fi
7930    ;;
7931  interix*)
7932    # we just hope/assume this is gcc and not c89 (= MSVC++)
7933    with_gnu_ld=yes
7934    ;;
7935  openbsd*)
7936    with_gnu_ld=no
7937    ;;
7938  linux* | k*bsd*-gnu)
7939    link_all_deplibs=no
7940    ;;
7941  esac
7942
7943  ld_shlibs=yes
7944  if test "$with_gnu_ld" = yes; then
7945    # If archive_cmds runs LD, not CC, wlarc should be empty
7946    wlarc='${wl}'
7947
7948    # Set some defaults for GNU ld with shared library support. These
7949    # are reset later if shared libraries are not supported. Putting them
7950    # here allows them to be overridden if necessary.
7951    runpath_var=LD_RUN_PATH
7952    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7953    export_dynamic_flag_spec='${wl}--export-dynamic'
7954    # ancient GNU ld didn't support --whole-archive et. al.
7955    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7956      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7957    else
7958      whole_archive_flag_spec=
7959    fi
7960    supports_anon_versioning=no
7961    case `$LD -v 2>&1` in
7962      *GNU\ gold*) supports_anon_versioning=yes ;;
7963      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7964      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7965      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7966      *\ 2.11.*) ;; # other 2.11 versions
7967      *) supports_anon_versioning=yes ;;
7968    esac
7969
7970    # See if GNU ld supports shared libraries.
7971    case $host_os in
7972    aix[3-9]*)
7973      # On AIX/PPC, the GNU linker is very broken
7974      if test "$host_cpu" != ia64; then
7975	ld_shlibs=no
7976	cat <<_LT_EOF 1>&2
7977
7978*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7979*** to be unable to reliably create shared libraries on AIX.
7980*** Therefore, libtool is disabling shared libraries support.  If you
7981*** really care for shared libraries, you may want to modify your PATH
7982*** so that a non-GNU linker is found, and then restart.
7983
7984_LT_EOF
7985      fi
7986      ;;
7987
7988    amigaos*)
7989      case $host_cpu in
7990      powerpc)
7991            # see comment about AmigaOS4 .so support
7992            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7993            archive_expsym_cmds=''
7994        ;;
7995      m68k)
7996            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)'
7997            hardcode_libdir_flag_spec='-L$libdir'
7998            hardcode_minus_L=yes
7999        ;;
8000      esac
8001      ;;
8002
8003    beos*)
8004      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8005	allow_undefined_flag=unsupported
8006	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8007	# support --undefined.  This deserves some investigation.  FIXME
8008	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8009      else
8010	ld_shlibs=no
8011      fi
8012      ;;
8013
8014    cygwin* | mingw* | pw32* | cegcc*)
8015      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8016      # as there is no search path for DLLs.
8017      hardcode_libdir_flag_spec='-L$libdir'
8018      allow_undefined_flag=unsupported
8019      always_export_symbols=no
8020      enable_shared_with_static_runtimes=yes
8021      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8022
8023      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8024        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8025	# If the export-symbols file already is a .def file (1st line
8026	# is EXPORTS), use it as is; otherwise, prepend...
8027	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8028	  cp $export_symbols $output_objdir/$soname.def;
8029	else
8030	  echo EXPORTS > $output_objdir/$soname.def;
8031	  cat $export_symbols >> $output_objdir/$soname.def;
8032	fi~
8033	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8034      else
8035	ld_shlibs=no
8036      fi
8037      ;;
8038
8039    interix[3-9]*)
8040      hardcode_direct=no
8041      hardcode_shlibpath_var=no
8042      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8043      export_dynamic_flag_spec='${wl}-E'
8044      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8045      # Instead, shared libraries are loaded at an image base (0x10000000 by
8046      # default) and relocated if they conflict, which is a slow very memory
8047      # consuming and fragmenting process.  To avoid this, we pick a random,
8048      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8049      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8050      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8051      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'
8052      ;;
8053
8054    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8055      tmp_diet=no
8056      if test "$host_os" = linux-dietlibc; then
8057	case $cc_basename in
8058	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8059	esac
8060      fi
8061      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8062	 && test "$tmp_diet" = no
8063      then
8064	tmp_addflag=
8065	tmp_sharedflag='-shared'
8066	case $cc_basename,$host_cpu in
8067        pgcc*)				# Portland Group C compiler
8068	  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'
8069	  tmp_addflag=' $pic_flag'
8070	  ;;
8071	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8072	  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'
8073	  tmp_addflag=' $pic_flag -Mnomain' ;;
8074	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8075	  tmp_addflag=' -i_dynamic' ;;
8076	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8077	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8078	ifc* | ifort*)			# Intel Fortran compiler
8079	  tmp_addflag=' -nofor_main' ;;
8080	lf95*)				# Lahey Fortran 8.1
8081	  whole_archive_flag_spec=
8082	  tmp_sharedflag='--shared' ;;
8083	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8084	  tmp_sharedflag='-qmkshrobj'
8085	  tmp_addflag= ;;
8086	esac
8087	case `$CC -V 2>&1 | sed 5q` in
8088	*Sun\ C*)			# Sun C 5.9
8089	  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'
8090	  compiler_needs_object=yes
8091	  tmp_sharedflag='-G' ;;
8092	*Sun\ F*)			# Sun Fortran 8.3
8093	  tmp_sharedflag='-G' ;;
8094	esac
8095	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8096
8097        if test "x$supports_anon_versioning" = xyes; then
8098          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8099	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8100	    echo "local: *; };" >> $output_objdir/$libname.ver~
8101	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8102        fi
8103
8104	case $cc_basename in
8105	xlf*)
8106	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8107	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8108	  hardcode_libdir_flag_spec=
8109	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8110	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8111	  if test "x$supports_anon_versioning" = xyes; then
8112	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8113	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8114	      echo "local: *; };" >> $output_objdir/$libname.ver~
8115	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8116	  fi
8117	  ;;
8118	esac
8119      else
8120        ld_shlibs=no
8121      fi
8122      ;;
8123
8124    netbsd* | netbsdelf*-gnu)
8125      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8126	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8127	wlarc=
8128      else
8129	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8130	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8131      fi
8132      ;;
8133
8134    solaris*)
8135      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8136	ld_shlibs=no
8137	cat <<_LT_EOF 1>&2
8138
8139*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8140*** create shared libraries on Solaris systems.  Therefore, libtool
8141*** is disabling shared libraries support.  We urge you to upgrade GNU
8142*** binutils to release 2.9.1 or newer.  Another option is to modify
8143*** your PATH or compiler configuration so that the native linker is
8144*** used, and then restart.
8145
8146_LT_EOF
8147      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8148	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8149	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8150      else
8151	ld_shlibs=no
8152      fi
8153      ;;
8154
8155    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8156      case `$LD -v 2>&1` in
8157        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8158	ld_shlibs=no
8159	cat <<_LT_EOF 1>&2
8160
8161*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8162*** reliably create shared libraries on SCO systems.  Therefore, libtool
8163*** is disabling shared libraries support.  We urge you to upgrade GNU
8164*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8165*** your PATH or compiler configuration so that the native linker is
8166*** used, and then restart.
8167
8168_LT_EOF
8169	;;
8170	*)
8171	  # For security reasons, it is highly recommended that you always
8172	  # use absolute paths for naming shared libraries, and exclude the
8173	  # DT_RUNPATH tag from executables and libraries.  But doing so
8174	  # requires that you compile everything twice, which is a pain.
8175	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8176	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8177	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8178	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8179	  else
8180	    ld_shlibs=no
8181	  fi
8182	;;
8183      esac
8184      ;;
8185
8186    sunos4*)
8187      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8188      wlarc=
8189      hardcode_direct=yes
8190      hardcode_shlibpath_var=no
8191      ;;
8192
8193    *)
8194      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8195	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8196	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8197      else
8198	ld_shlibs=no
8199      fi
8200      ;;
8201    esac
8202
8203    if test "$ld_shlibs" = no; then
8204      runpath_var=
8205      hardcode_libdir_flag_spec=
8206      export_dynamic_flag_spec=
8207      whole_archive_flag_spec=
8208    fi
8209  else
8210    # PORTME fill in a description of your system's linker (not GNU ld)
8211    case $host_os in
8212    aix3*)
8213      allow_undefined_flag=unsupported
8214      always_export_symbols=yes
8215      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'
8216      # Note: this linker hardcodes the directories in LIBPATH if there
8217      # are no directories specified by -L.
8218      hardcode_minus_L=yes
8219      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8220	# Neither direct hardcoding nor static linking is supported with a
8221	# broken collect2.
8222	hardcode_direct=unsupported
8223      fi
8224      ;;
8225
8226    aix[4-9]*)
8227      if test "$host_cpu" = ia64; then
8228	# On IA64, the linker does run time linking by default, so we don't
8229	# have to do anything special.
8230	aix_use_runtimelinking=no
8231	exp_sym_flag='-Bexport'
8232	no_entry_flag=""
8233      else
8234	# If we're using GNU nm, then we don't want the "-C" option.
8235	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8236	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8237	  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'
8238	else
8239	  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'
8240	fi
8241	aix_use_runtimelinking=no
8242
8243	# Test if we are trying to use run time linking or normal
8244	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8245	# need to do runtime linking.
8246	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8247	  for ld_flag in $LDFLAGS; do
8248	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8249	    aix_use_runtimelinking=yes
8250	    break
8251	  fi
8252	  done
8253	  ;;
8254	esac
8255
8256	exp_sym_flag='-bexport'
8257	no_entry_flag='-bnoentry'
8258      fi
8259
8260      # When large executables or shared objects are built, AIX ld can
8261      # have problems creating the table of contents.  If linking a library
8262      # or program results in "error TOC overflow" add -mminimal-toc to
8263      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8264      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8265
8266      archive_cmds=''
8267      hardcode_direct=yes
8268      hardcode_direct_absolute=yes
8269      hardcode_libdir_separator=':'
8270      link_all_deplibs=yes
8271      file_list_spec='${wl}-f,'
8272
8273      if test "$GCC" = yes; then
8274	case $host_os in aix4.[012]|aix4.[012].*)
8275	# We only want to do this on AIX 4.2 and lower, the check
8276	# below for broken collect2 doesn't work under 4.3+
8277	  collect2name=`${CC} -print-prog-name=collect2`
8278	  if test -f "$collect2name" &&
8279	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8280	  then
8281	  # We have reworked collect2
8282	  :
8283	  else
8284	  # We have old collect2
8285	  hardcode_direct=unsupported
8286	  # It fails to find uninstalled libraries when the uninstalled
8287	  # path is not listed in the libpath.  Setting hardcode_minus_L
8288	  # to unsupported forces relinking
8289	  hardcode_minus_L=yes
8290	  hardcode_libdir_flag_spec='-L$libdir'
8291	  hardcode_libdir_separator=
8292	  fi
8293	  ;;
8294	esac
8295	shared_flag='-shared'
8296	if test "$aix_use_runtimelinking" = yes; then
8297	  shared_flag="$shared_flag "'${wl}-G'
8298	fi
8299	link_all_deplibs=no
8300      else
8301	# not using gcc
8302	if test "$host_cpu" = ia64; then
8303	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8304	# chokes on -Wl,-G. The following line is correct:
8305	  shared_flag='-G'
8306	else
8307	  if test "$aix_use_runtimelinking" = yes; then
8308	    shared_flag='${wl}-G'
8309	  else
8310	    shared_flag='${wl}-bM:SRE'
8311	  fi
8312	fi
8313      fi
8314
8315      export_dynamic_flag_spec='${wl}-bexpall'
8316      # It seems that -bexpall does not export symbols beginning with
8317      # underscore (_), so it is better to generate a list of symbols to export.
8318      always_export_symbols=yes
8319      if test "$aix_use_runtimelinking" = yes; then
8320	# Warning - without using the other runtime loading flags (-brtl),
8321	# -berok will link without error, but may produce a broken library.
8322	allow_undefined_flag='-berok'
8323        # Determine the default libpath from the value encoded in an
8324        # empty executable.
8325        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326/* end confdefs.h.  */
8327
8328int
8329main ()
8330{
8331
8332  ;
8333  return 0;
8334}
8335_ACEOF
8336if ac_fn_c_try_link "$LINENO"; then :
8337
8338lt_aix_libpath_sed='
8339    /Import File Strings/,/^$/ {
8340	/^0/ {
8341	    s/^0  *\(.*\)$/\1/
8342	    p
8343	}
8344    }'
8345aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8346# Check for a 64-bit object if we didn't find anything.
8347if test -z "$aix_libpath"; then
8348  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8349fi
8350fi
8351rm -f core conftest.err conftest.$ac_objext \
8352    conftest$ac_exeext conftest.$ac_ext
8353if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8354
8355        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8356        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"
8357      else
8358	if test "$host_cpu" = ia64; then
8359	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8360	  allow_undefined_flag="-z nodefs"
8361	  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"
8362	else
8363	 # Determine the default libpath from the value encoded in an
8364	 # empty executable.
8365	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366/* end confdefs.h.  */
8367
8368int
8369main ()
8370{
8371
8372  ;
8373  return 0;
8374}
8375_ACEOF
8376if ac_fn_c_try_link "$LINENO"; then :
8377
8378lt_aix_libpath_sed='
8379    /Import File Strings/,/^$/ {
8380	/^0/ {
8381	    s/^0  *\(.*\)$/\1/
8382	    p
8383	}
8384    }'
8385aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8386# Check for a 64-bit object if we didn't find anything.
8387if test -z "$aix_libpath"; then
8388  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8389fi
8390fi
8391rm -f core conftest.err conftest.$ac_objext \
8392    conftest$ac_exeext conftest.$ac_ext
8393if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8394
8395	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8396	  # Warning - without using the other run time loading flags,
8397	  # -berok will link without error, but may produce a broken library.
8398	  no_undefined_flag=' ${wl}-bernotok'
8399	  allow_undefined_flag=' ${wl}-berok'
8400	  # Exported symbols can be pulled into shared objects from archives
8401	  whole_archive_flag_spec='$convenience'
8402	  archive_cmds_need_lc=yes
8403	  # This is similar to how AIX traditionally builds its shared libraries.
8404	  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'
8405	fi
8406      fi
8407      ;;
8408
8409    amigaos*)
8410      case $host_cpu in
8411      powerpc)
8412            # see comment about AmigaOS4 .so support
8413            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8414            archive_expsym_cmds=''
8415        ;;
8416      m68k)
8417            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)'
8418            hardcode_libdir_flag_spec='-L$libdir'
8419            hardcode_minus_L=yes
8420        ;;
8421      esac
8422      ;;
8423
8424    bsdi[45]*)
8425      export_dynamic_flag_spec=-rdynamic
8426      ;;
8427
8428    cygwin* | mingw* | pw32* | cegcc*)
8429      # When not using gcc, we currently assume that we are using
8430      # Microsoft Visual C++.
8431      # hardcode_libdir_flag_spec is actually meaningless, as there is
8432      # no search path for DLLs.
8433      hardcode_libdir_flag_spec=' '
8434      allow_undefined_flag=unsupported
8435      # Tell ltmain to make .lib files, not .a files.
8436      libext=lib
8437      # Tell ltmain to make .dll files, not .so files.
8438      shrext_cmds=".dll"
8439      # FIXME: Setting linknames here is a bad hack.
8440      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8441      # The linker will automatically build a .lib file if we build a DLL.
8442      old_archive_from_new_cmds='true'
8443      # FIXME: Should let the user specify the lib program.
8444      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8445      fix_srcfile_path='`cygpath -w "$srcfile"`'
8446      enable_shared_with_static_runtimes=yes
8447      ;;
8448
8449    darwin* | rhapsody*)
8450
8451
8452  archive_cmds_need_lc=no
8453  hardcode_direct=no
8454  hardcode_automatic=yes
8455  hardcode_shlibpath_var=unsupported
8456  whole_archive_flag_spec=''
8457  link_all_deplibs=yes
8458  allow_undefined_flag="$_lt_dar_allow_undefined"
8459  case $cc_basename in
8460     ifort*) _lt_dar_can_shared=yes ;;
8461     *) _lt_dar_can_shared=$GCC ;;
8462  esac
8463  if test "$_lt_dar_can_shared" = "yes"; then
8464    output_verbose_link_cmd=echo
8465    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8466    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8467    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}"
8468    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}"
8469
8470  else
8471  ld_shlibs=no
8472  fi
8473
8474      ;;
8475
8476    dgux*)
8477      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8478      hardcode_libdir_flag_spec='-L$libdir'
8479      hardcode_shlibpath_var=no
8480      ;;
8481
8482    freebsd1*)
8483      ld_shlibs=no
8484      ;;
8485
8486    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8487    # support.  Future versions do this automatically, but an explicit c++rt0.o
8488    # does not break anything, and helps significantly (at the cost of a little
8489    # extra space).
8490    freebsd2.2*)
8491      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8492      hardcode_libdir_flag_spec='-R$libdir'
8493      hardcode_direct=yes
8494      hardcode_shlibpath_var=no
8495      ;;
8496
8497    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8498    freebsd2*)
8499      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8500      hardcode_direct=yes
8501      hardcode_minus_L=yes
8502      hardcode_shlibpath_var=no
8503      ;;
8504
8505    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8506    freebsd* | dragonfly*)
8507      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8508      hardcode_libdir_flag_spec='-R$libdir'
8509      hardcode_direct=yes
8510      hardcode_shlibpath_var=no
8511      ;;
8512
8513    hpux9*)
8514      if test "$GCC" = yes; then
8515	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'
8516      else
8517	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'
8518      fi
8519      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8520      hardcode_libdir_separator=:
8521      hardcode_direct=yes
8522
8523      # hardcode_minus_L: Not really in the search PATH,
8524      # but as the default location of the library.
8525      hardcode_minus_L=yes
8526      export_dynamic_flag_spec='${wl}-E'
8527      ;;
8528
8529    hpux10*)
8530      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8531	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8532      else
8533	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8534      fi
8535      if test "$with_gnu_ld" = no; then
8536	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8537	hardcode_libdir_flag_spec_ld='+b $libdir'
8538	hardcode_libdir_separator=:
8539	hardcode_direct=yes
8540	hardcode_direct_absolute=yes
8541	export_dynamic_flag_spec='${wl}-E'
8542	# hardcode_minus_L: Not really in the search PATH,
8543	# but as the default location of the library.
8544	hardcode_minus_L=yes
8545      fi
8546      ;;
8547
8548    hpux11*)
8549      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8550	case $host_cpu in
8551	hppa*64*)
8552	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8553	  ;;
8554	ia64*)
8555	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8556	  ;;
8557	*)
8558	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8559	  ;;
8560	esac
8561      else
8562	case $host_cpu in
8563	hppa*64*)
8564	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8565	  ;;
8566	ia64*)
8567	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8568	  ;;
8569	*)
8570	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8571	  ;;
8572	esac
8573      fi
8574      if test "$with_gnu_ld" = no; then
8575	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8576	hardcode_libdir_separator=:
8577
8578	case $host_cpu in
8579	hppa*64*|ia64*)
8580	  hardcode_direct=no
8581	  hardcode_shlibpath_var=no
8582	  ;;
8583	*)
8584	  hardcode_direct=yes
8585	  hardcode_direct_absolute=yes
8586	  export_dynamic_flag_spec='${wl}-E'
8587
8588	  # hardcode_minus_L: Not really in the search PATH,
8589	  # but as the default location of the library.
8590	  hardcode_minus_L=yes
8591	  ;;
8592	esac
8593      fi
8594      ;;
8595
8596    irix5* | irix6* | nonstopux*)
8597      if test "$GCC" = yes; then
8598	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'
8599	# Try to use the -exported_symbol ld option, if it does not
8600	# work, assume that -exports_file does not work either and
8601	# implicitly export all symbols.
8602        save_LDFLAGS="$LDFLAGS"
8603        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8604        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605/* end confdefs.h.  */
8606int foo(void) {}
8607_ACEOF
8608if ac_fn_c_try_link "$LINENO"; then :
8609  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'
8610
8611fi
8612rm -f core conftest.err conftest.$ac_objext \
8613    conftest$ac_exeext conftest.$ac_ext
8614        LDFLAGS="$save_LDFLAGS"
8615      else
8616	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'
8617	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'
8618      fi
8619      archive_cmds_need_lc='no'
8620      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8621      hardcode_libdir_separator=:
8622      inherit_rpath=yes
8623      link_all_deplibs=yes
8624      ;;
8625
8626    netbsd* | netbsdelf*-gnu)
8627      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8628	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8629      else
8630	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8631      fi
8632      hardcode_libdir_flag_spec='-R$libdir'
8633      hardcode_direct=yes
8634      hardcode_shlibpath_var=no
8635      ;;
8636
8637    newsos6)
8638      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8639      hardcode_direct=yes
8640      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8641      hardcode_libdir_separator=:
8642      hardcode_shlibpath_var=no
8643      ;;
8644
8645    *nto* | *qnx*)
8646      ;;
8647
8648    openbsd*)
8649      if test -f /usr/libexec/ld.so; then
8650	hardcode_direct=yes
8651	hardcode_shlibpath_var=no
8652	hardcode_direct_absolute=yes
8653	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8654	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8655	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8656	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8657	  export_dynamic_flag_spec='${wl}-E'
8658	else
8659	  case $host_os in
8660	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8661	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8662	     hardcode_libdir_flag_spec='-R$libdir'
8663	     ;;
8664	   *)
8665	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8666	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8667	     ;;
8668	  esac
8669	fi
8670      else
8671	ld_shlibs=no
8672      fi
8673      ;;
8674
8675    os2*)
8676      hardcode_libdir_flag_spec='-L$libdir'
8677      hardcode_minus_L=yes
8678      allow_undefined_flag=unsupported
8679      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'
8680      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8681      ;;
8682
8683    osf3*)
8684      if test "$GCC" = yes; then
8685	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8686	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'
8687      else
8688	allow_undefined_flag=' -expect_unresolved \*'
8689	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'
8690      fi
8691      archive_cmds_need_lc='no'
8692      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8693      hardcode_libdir_separator=:
8694      ;;
8695
8696    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8697      if test "$GCC" = yes; then
8698	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8699	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'
8700	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8701      else
8702	allow_undefined_flag=' -expect_unresolved \*'
8703	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'
8704	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~
8705	$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'
8706
8707	# Both c and cxx compiler support -rpath directly
8708	hardcode_libdir_flag_spec='-rpath $libdir'
8709      fi
8710      archive_cmds_need_lc='no'
8711      hardcode_libdir_separator=:
8712      ;;
8713
8714    solaris*)
8715      no_undefined_flag=' -z defs'
8716      if test "$GCC" = yes; then
8717	wlarc='${wl}'
8718	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8719	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8720	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8721      else
8722	case `$CC -V 2>&1` in
8723	*"Compilers 5.0"*)
8724	  wlarc=''
8725	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8726	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8727	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8728	  ;;
8729	*)
8730	  wlarc='${wl}'
8731	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8732	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8733	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8734	  ;;
8735	esac
8736      fi
8737      hardcode_libdir_flag_spec='-R$libdir'
8738      hardcode_shlibpath_var=no
8739      case $host_os in
8740      solaris2.[0-5] | solaris2.[0-5].*) ;;
8741      *)
8742	# The compiler driver will combine and reorder linker options,
8743	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8744	# but is careful enough not to reorder.
8745	# Supported since Solaris 2.6 (maybe 2.5.1?)
8746	if test "$GCC" = yes; then
8747	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8748	else
8749	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8750	fi
8751	;;
8752      esac
8753      link_all_deplibs=yes
8754      ;;
8755
8756    sunos4*)
8757      if test "x$host_vendor" = xsequent; then
8758	# Use $CC to link under sequent, because it throws in some extra .o
8759	# files that make .init and .fini sections work.
8760	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8761      else
8762	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8763      fi
8764      hardcode_libdir_flag_spec='-L$libdir'
8765      hardcode_direct=yes
8766      hardcode_minus_L=yes
8767      hardcode_shlibpath_var=no
8768      ;;
8769
8770    sysv4)
8771      case $host_vendor in
8772	sni)
8773	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8774	  hardcode_direct=yes # is this really true???
8775	;;
8776	siemens)
8777	  ## LD is ld it makes a PLAMLIB
8778	  ## CC just makes a GrossModule.
8779	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8780	  reload_cmds='$CC -r -o $output$reload_objs'
8781	  hardcode_direct=no
8782        ;;
8783	motorola)
8784	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8785	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8786	;;
8787      esac
8788      runpath_var='LD_RUN_PATH'
8789      hardcode_shlibpath_var=no
8790      ;;
8791
8792    sysv4.3*)
8793      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8794      hardcode_shlibpath_var=no
8795      export_dynamic_flag_spec='-Bexport'
8796      ;;
8797
8798    sysv4*MP*)
8799      if test -d /usr/nec; then
8800	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8801	hardcode_shlibpath_var=no
8802	runpath_var=LD_RUN_PATH
8803	hardcode_runpath_var=yes
8804	ld_shlibs=yes
8805      fi
8806      ;;
8807
8808    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8809      no_undefined_flag='${wl}-z,text'
8810      archive_cmds_need_lc=no
8811      hardcode_shlibpath_var=no
8812      runpath_var='LD_RUN_PATH'
8813
8814      if test "$GCC" = yes; then
8815	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8816	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8817      else
8818	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8819	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8820      fi
8821      ;;
8822
8823    sysv5* | sco3.2v5* | sco5v6*)
8824      # Note: We can NOT use -z defs as we might desire, because we do not
8825      # link with -lc, and that would cause any symbols used from libc to
8826      # always be unresolved, which means just about no library would
8827      # ever link correctly.  If we're not using GNU ld we use -z text
8828      # though, which does catch some bad symbols but isn't as heavy-handed
8829      # as -z defs.
8830      no_undefined_flag='${wl}-z,text'
8831      allow_undefined_flag='${wl}-z,nodefs'
8832      archive_cmds_need_lc=no
8833      hardcode_shlibpath_var=no
8834      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8835      hardcode_libdir_separator=':'
8836      link_all_deplibs=yes
8837      export_dynamic_flag_spec='${wl}-Bexport'
8838      runpath_var='LD_RUN_PATH'
8839
8840      if test "$GCC" = yes; then
8841	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8842	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8843      else
8844	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8845	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8846      fi
8847      ;;
8848
8849    uts4*)
8850      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8851      hardcode_libdir_flag_spec='-L$libdir'
8852      hardcode_shlibpath_var=no
8853      ;;
8854
8855    *)
8856      ld_shlibs=no
8857      ;;
8858    esac
8859
8860    if test x$host_vendor = xsni; then
8861      case $host in
8862      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8863	export_dynamic_flag_spec='${wl}-Blargedynsym'
8864	;;
8865      esac
8866    fi
8867  fi
8868
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8870$as_echo "$ld_shlibs" >&6; }
8871test "$ld_shlibs" = no && can_build_shared=no
8872
8873with_gnu_ld=$with_gnu_ld
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889#
8890# Do we need to explicitly link libc?
8891#
8892case "x$archive_cmds_need_lc" in
8893x|xyes)
8894  # Assume -lc should be added
8895  archive_cmds_need_lc=yes
8896
8897  if test "$enable_shared" = yes && test "$GCC" = yes; then
8898    case $archive_cmds in
8899    *'~'*)
8900      # FIXME: we may have to deal with multi-command sequences.
8901      ;;
8902    '$CC '*)
8903      # Test whether the compiler implicitly links with -lc since on some
8904      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8905      # to ld, don't add -lc before -lgcc.
8906      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8907$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8908      $RM conftest*
8909      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8910
8911      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8912  (eval $ac_compile) 2>&5
8913  ac_status=$?
8914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8915  test $ac_status = 0; } 2>conftest.err; then
8916        soname=conftest
8917        lib=conftest
8918        libobjs=conftest.$ac_objext
8919        deplibs=
8920        wl=$lt_prog_compiler_wl
8921	pic_flag=$lt_prog_compiler_pic
8922        compiler_flags=-v
8923        linker_flags=-v
8924        verstring=
8925        output_objdir=.
8926        libname=conftest
8927        lt_save_allow_undefined_flag=$allow_undefined_flag
8928        allow_undefined_flag=
8929        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8930  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8931  ac_status=$?
8932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8933  test $ac_status = 0; }
8934        then
8935	  archive_cmds_need_lc=no
8936        else
8937	  archive_cmds_need_lc=yes
8938        fi
8939        allow_undefined_flag=$lt_save_allow_undefined_flag
8940      else
8941        cat conftest.err 1>&5
8942      fi
8943      $RM conftest*
8944      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8945$as_echo "$archive_cmds_need_lc" >&6; }
8946      ;;
8947    esac
8948  fi
8949  ;;
8950esac
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9109$as_echo_n "checking dynamic linker characteristics... " >&6; }
9110
9111if test "$GCC" = yes; then
9112  case $host_os in
9113    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9114    *) lt_awk_arg="/^libraries:/" ;;
9115  esac
9116  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9117  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9118    # if the path contains ";" then we assume it to be the separator
9119    # otherwise default to the standard path separator (i.e. ":") - it is
9120    # assumed that no part of a normal pathname contains ";" but that should
9121    # okay in the real world where ";" in dirpaths is itself problematic.
9122    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9123  else
9124    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9125  fi
9126  # Ok, now we have the path, separated by spaces, we can step through it
9127  # and add multilib dir if necessary.
9128  lt_tmp_lt_search_path_spec=
9129  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9130  for lt_sys_path in $lt_search_path_spec; do
9131    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9132      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9133    else
9134      test -d "$lt_sys_path" && \
9135	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9136    fi
9137  done
9138  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9139BEGIN {RS=" "; FS="/|\n";} {
9140  lt_foo="";
9141  lt_count=0;
9142  for (lt_i = NF; lt_i > 0; lt_i--) {
9143    if ($lt_i != "" && $lt_i != ".") {
9144      if ($lt_i == "..") {
9145        lt_count++;
9146      } else {
9147        if (lt_count == 0) {
9148          lt_foo="/" $lt_i lt_foo;
9149        } else {
9150          lt_count--;
9151        }
9152      }
9153    }
9154  }
9155  if (lt_foo != "") { lt_freq[lt_foo]++; }
9156  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9157}'`
9158  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9159else
9160  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9161fi
9162library_names_spec=
9163libname_spec='lib$name'
9164soname_spec=
9165shrext_cmds=".so"
9166postinstall_cmds=
9167postuninstall_cmds=
9168finish_cmds=
9169finish_eval=
9170shlibpath_var=
9171shlibpath_overrides_runpath=unknown
9172version_type=none
9173dynamic_linker="$host_os ld.so"
9174sys_lib_dlsearch_path_spec="/lib /usr/lib"
9175need_lib_prefix=unknown
9176hardcode_into_libs=no
9177
9178# when you set need_version to no, make sure it does not cause -set_version
9179# flags to be left without arguments
9180need_version=unknown
9181
9182case $host_os in
9183aix3*)
9184  version_type=linux
9185  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9186  shlibpath_var=LIBPATH
9187
9188  # AIX 3 has no versioning support, so we append a major version to the name.
9189  soname_spec='${libname}${release}${shared_ext}$major'
9190  ;;
9191
9192aix[4-9]*)
9193  version_type=linux
9194  need_lib_prefix=no
9195  need_version=no
9196  hardcode_into_libs=yes
9197  if test "$host_cpu" = ia64; then
9198    # AIX 5 supports IA64
9199    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9200    shlibpath_var=LD_LIBRARY_PATH
9201  else
9202    # With GCC up to 2.95.x, collect2 would create an import file
9203    # for dependence libraries.  The import file would start with
9204    # the line `#! .'.  This would cause the generated library to
9205    # depend on `.', always an invalid library.  This was fixed in
9206    # development snapshots of GCC prior to 3.0.
9207    case $host_os in
9208      aix4 | aix4.[01] | aix4.[01].*)
9209      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9210	   echo ' yes '
9211	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9212	:
9213      else
9214	can_build_shared=no
9215      fi
9216      ;;
9217    esac
9218    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9219    # soname into executable. Probably we can add versioning support to
9220    # collect2, so additional links can be useful in future.
9221    if test "$aix_use_runtimelinking" = yes; then
9222      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9223      # instead of lib<name>.a to let people know that these are not
9224      # typical AIX shared libraries.
9225      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226    else
9227      # We preserve .a as extension for shared libraries through AIX4.2
9228      # and later when we are not doing run time linking.
9229      library_names_spec='${libname}${release}.a $libname.a'
9230      soname_spec='${libname}${release}${shared_ext}$major'
9231    fi
9232    shlibpath_var=LIBPATH
9233  fi
9234  ;;
9235
9236amigaos*)
9237  case $host_cpu in
9238  powerpc)
9239    # Since July 2007 AmigaOS4 officially supports .so libraries.
9240    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9241    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9242    ;;
9243  m68k)
9244    library_names_spec='$libname.ixlibrary $libname.a'
9245    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9246    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'
9247    ;;
9248  esac
9249  ;;
9250
9251beos*)
9252  library_names_spec='${libname}${shared_ext}'
9253  dynamic_linker="$host_os ld.so"
9254  shlibpath_var=LIBRARY_PATH
9255  ;;
9256
9257bsdi[45]*)
9258  version_type=linux
9259  need_version=no
9260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9261  soname_spec='${libname}${release}${shared_ext}$major'
9262  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9263  shlibpath_var=LD_LIBRARY_PATH
9264  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9265  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9266  # the default ld.so.conf also contains /usr/contrib/lib and
9267  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9268  # libtool to hard-code these into programs
9269  ;;
9270
9271cygwin* | mingw* | pw32* | cegcc*)
9272  version_type=windows
9273  shrext_cmds=".dll"
9274  need_version=no
9275  need_lib_prefix=no
9276
9277  case $GCC,$host_os in
9278  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9279    library_names_spec='$libname.dll.a'
9280    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9281    postinstall_cmds='base_file=`basename \${file}`~
9282      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9283      dldir=$destdir/`dirname \$dlpath`~
9284      test -d \$dldir || mkdir -p \$dldir~
9285      $install_prog $dir/$dlname \$dldir/$dlname~
9286      chmod a+x \$dldir/$dlname~
9287      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9288        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9289      fi'
9290    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9291      dlpath=$dir/\$dldll~
9292       $RM \$dlpath'
9293    shlibpath_overrides_runpath=yes
9294
9295    case $host_os in
9296    cygwin*)
9297      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9298      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9299      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9300      ;;
9301    mingw* | cegcc*)
9302      # MinGW DLLs use traditional 'lib' prefix
9303      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9304      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9305      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9306        # It is most probably a Windows format PATH printed by
9307        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9308        # path with ; separators, and with drive letters. We can handle the
9309        # drive letters (cygwin fileutils understands them), so leave them,
9310        # especially as we might pass files found there to a mingw objdump,
9311        # which wouldn't understand a cygwinified path. Ahh.
9312        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9313      else
9314        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9315      fi
9316      ;;
9317    pw32*)
9318      # pw32 DLLs use 'pw' prefix rather than 'lib'
9319      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9320      ;;
9321    esac
9322    ;;
9323
9324  *)
9325    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9326    ;;
9327  esac
9328  dynamic_linker='Win32 ld.exe'
9329  # FIXME: first we should search . and the directory the executable is in
9330  shlibpath_var=PATH
9331  ;;
9332
9333darwin* | rhapsody*)
9334  dynamic_linker="$host_os dyld"
9335  version_type=darwin
9336  need_lib_prefix=no
9337  need_version=no
9338  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9339  soname_spec='${libname}${release}${major}$shared_ext'
9340  shlibpath_overrides_runpath=yes
9341  shlibpath_var=DYLD_LIBRARY_PATH
9342  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9343
9344  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9345  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9346  ;;
9347
9348dgux*)
9349  version_type=linux
9350  need_lib_prefix=no
9351  need_version=no
9352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9353  soname_spec='${libname}${release}${shared_ext}$major'
9354  shlibpath_var=LD_LIBRARY_PATH
9355  ;;
9356
9357freebsd1*)
9358  dynamic_linker=no
9359  ;;
9360
9361freebsd* | dragonfly*)
9362  # DragonFly does not have aout.  When/if they implement a new
9363  # versioning mechanism, adjust this.
9364  if test -x /usr/bin/objformat; then
9365    objformat=`/usr/bin/objformat`
9366  else
9367    case $host_os in
9368    freebsd[123]*) objformat=aout ;;
9369    *) objformat=elf ;;
9370    esac
9371  fi
9372  version_type=freebsd-$objformat
9373  case $version_type in
9374    freebsd-elf*)
9375      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9376      need_version=no
9377      need_lib_prefix=no
9378      ;;
9379    freebsd-*)
9380      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9381      need_version=yes
9382      ;;
9383  esac
9384  shlibpath_var=LD_LIBRARY_PATH
9385  case $host_os in
9386  freebsd2*)
9387    shlibpath_overrides_runpath=yes
9388    ;;
9389  freebsd3.[01]* | freebsdelf3.[01]*)
9390    shlibpath_overrides_runpath=yes
9391    hardcode_into_libs=yes
9392    ;;
9393  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9394  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9395    shlibpath_overrides_runpath=no
9396    hardcode_into_libs=yes
9397    ;;
9398  *) # from 4.6 on, and DragonFly
9399    shlibpath_overrides_runpath=yes
9400    hardcode_into_libs=yes
9401    ;;
9402  esac
9403  ;;
9404
9405gnu*)
9406  version_type=linux
9407  need_lib_prefix=no
9408  need_version=no
9409  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9410  soname_spec='${libname}${release}${shared_ext}$major'
9411  shlibpath_var=LD_LIBRARY_PATH
9412  hardcode_into_libs=yes
9413  ;;
9414
9415hpux9* | hpux10* | hpux11*)
9416  # Give a soname corresponding to the major version so that dld.sl refuses to
9417  # link against other versions.
9418  version_type=sunos
9419  need_lib_prefix=no
9420  need_version=no
9421  case $host_cpu in
9422  ia64*)
9423    shrext_cmds='.so'
9424    hardcode_into_libs=yes
9425    dynamic_linker="$host_os dld.so"
9426    shlibpath_var=LD_LIBRARY_PATH
9427    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9428    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9429    soname_spec='${libname}${release}${shared_ext}$major'
9430    if test "X$HPUX_IA64_MODE" = X32; then
9431      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9432    else
9433      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9434    fi
9435    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9436    ;;
9437  hppa*64*)
9438    shrext_cmds='.sl'
9439    hardcode_into_libs=yes
9440    dynamic_linker="$host_os dld.sl"
9441    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9442    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9443    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9444    soname_spec='${libname}${release}${shared_ext}$major'
9445    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9446    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9447    ;;
9448  *)
9449    shrext_cmds='.sl'
9450    dynamic_linker="$host_os dld.sl"
9451    shlibpath_var=SHLIB_PATH
9452    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9453    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454    soname_spec='${libname}${release}${shared_ext}$major'
9455    ;;
9456  esac
9457  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9458  postinstall_cmds='chmod 555 $lib'
9459  ;;
9460
9461interix[3-9]*)
9462  version_type=linux
9463  need_lib_prefix=no
9464  need_version=no
9465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9466  soname_spec='${libname}${release}${shared_ext}$major'
9467  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9468  shlibpath_var=LD_LIBRARY_PATH
9469  shlibpath_overrides_runpath=no
9470  hardcode_into_libs=yes
9471  ;;
9472
9473irix5* | irix6* | nonstopux*)
9474  case $host_os in
9475    nonstopux*) version_type=nonstopux ;;
9476    *)
9477	if test "$lt_cv_prog_gnu_ld" = yes; then
9478		version_type=linux
9479	else
9480		version_type=irix
9481	fi ;;
9482  esac
9483  need_lib_prefix=no
9484  need_version=no
9485  soname_spec='${libname}${release}${shared_ext}$major'
9486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9487  case $host_os in
9488  irix5* | nonstopux*)
9489    libsuff= shlibsuff=
9490    ;;
9491  *)
9492    case $LD in # libtool.m4 will add one of these switches to LD
9493    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9494      libsuff= shlibsuff= libmagic=32-bit;;
9495    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9496      libsuff=32 shlibsuff=N32 libmagic=N32;;
9497    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9498      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9499    *) libsuff= shlibsuff= libmagic=never-match;;
9500    esac
9501    ;;
9502  esac
9503  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9504  shlibpath_overrides_runpath=no
9505  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9506  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9507  hardcode_into_libs=yes
9508  ;;
9509
9510# No shared lib support for Linux oldld, aout, or coff.
9511linux*oldld* | linux*aout* | linux*coff*)
9512  dynamic_linker=no
9513  ;;
9514
9515# This must be Linux ELF.
9516linux* | k*bsd*-gnu | kopensolaris*-gnu)
9517  version_type=linux
9518  need_lib_prefix=no
9519  need_version=no
9520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521  soname_spec='${libname}${release}${shared_ext}$major'
9522  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9523  shlibpath_var=LD_LIBRARY_PATH
9524  shlibpath_overrides_runpath=no
9525  # Some binutils ld are patched to set DT_RUNPATH
9526  save_LDFLAGS=$LDFLAGS
9527  save_libdir=$libdir
9528  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9529       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531/* end confdefs.h.  */
9532
9533int
9534main ()
9535{
9536
9537  ;
9538  return 0;
9539}
9540_ACEOF
9541if ac_fn_c_try_link "$LINENO"; then :
9542  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9543  shlibpath_overrides_runpath=yes
9544fi
9545fi
9546rm -f core conftest.err conftest.$ac_objext \
9547    conftest$ac_exeext conftest.$ac_ext
9548  LDFLAGS=$save_LDFLAGS
9549  libdir=$save_libdir
9550
9551  # This implies no fast_install, which is unacceptable.
9552  # Some rework will be needed to allow for fast_install
9553  # before this can be enabled.
9554  hardcode_into_libs=yes
9555
9556  # Append ld.so.conf contents to the search path
9557  if test -f /etc/ld.so.conf; then
9558    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' ' '`
9559    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9560  fi
9561
9562  # We used to test for /lib/ld.so.1 and disable shared libraries on
9563  # powerpc, because MkLinux only supported shared libraries with the
9564  # GNU dynamic linker.  Since this was broken with cross compilers,
9565  # most powerpc-linux boxes support dynamic linking these days and
9566  # people can always --disable-shared, the test was removed, and we
9567  # assume the GNU/Linux dynamic linker is in use.
9568  dynamic_linker='GNU/Linux ld.so'
9569  ;;
9570
9571netbsdelf*-gnu)
9572  version_type=linux
9573  need_lib_prefix=no
9574  need_version=no
9575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9576  soname_spec='${libname}${release}${shared_ext}$major'
9577  shlibpath_var=LD_LIBRARY_PATH
9578  shlibpath_overrides_runpath=no
9579  hardcode_into_libs=yes
9580  dynamic_linker='NetBSD ld.elf_so'
9581  ;;
9582
9583netbsd*)
9584  version_type=sunos
9585  need_lib_prefix=no
9586  need_version=no
9587  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9588    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9589    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9590    dynamic_linker='NetBSD (a.out) ld.so'
9591  else
9592    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9593    soname_spec='${libname}${release}${shared_ext}$major'
9594    dynamic_linker='NetBSD ld.elf_so'
9595  fi
9596  shlibpath_var=LD_LIBRARY_PATH
9597  shlibpath_overrides_runpath=yes
9598  hardcode_into_libs=yes
9599  ;;
9600
9601newsos6)
9602  version_type=linux
9603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9604  shlibpath_var=LD_LIBRARY_PATH
9605  shlibpath_overrides_runpath=yes
9606  ;;
9607
9608*nto* | *qnx*)
9609  version_type=qnx
9610  need_lib_prefix=no
9611  need_version=no
9612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9613  soname_spec='${libname}${release}${shared_ext}$major'
9614  shlibpath_var=LD_LIBRARY_PATH
9615  shlibpath_overrides_runpath=no
9616  hardcode_into_libs=yes
9617  dynamic_linker='ldqnx.so'
9618  ;;
9619
9620openbsd*)
9621  version_type=sunos
9622  sys_lib_dlsearch_path_spec="/usr/lib"
9623  need_lib_prefix=no
9624  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9625  case $host_os in
9626    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9627    *)				need_version=no  ;;
9628  esac
9629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9630  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9631  shlibpath_var=LD_LIBRARY_PATH
9632  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9633    case $host_os in
9634      openbsd2.[89] | openbsd2.[89].*)
9635	shlibpath_overrides_runpath=no
9636	;;
9637      *)
9638	shlibpath_overrides_runpath=yes
9639	;;
9640      esac
9641  else
9642    shlibpath_overrides_runpath=yes
9643  fi
9644  ;;
9645
9646os2*)
9647  libname_spec='$name'
9648  shrext_cmds=".dll"
9649  need_lib_prefix=no
9650  library_names_spec='$libname${shared_ext} $libname.a'
9651  dynamic_linker='OS/2 ld.exe'
9652  shlibpath_var=LIBPATH
9653  ;;
9654
9655osf3* | osf4* | osf5*)
9656  version_type=osf
9657  need_lib_prefix=no
9658  need_version=no
9659  soname_spec='${libname}${release}${shared_ext}$major'
9660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9661  shlibpath_var=LD_LIBRARY_PATH
9662  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9663  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9664  ;;
9665
9666rdos*)
9667  dynamic_linker=no
9668  ;;
9669
9670solaris*)
9671  version_type=linux
9672  need_lib_prefix=no
9673  need_version=no
9674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675  soname_spec='${libname}${release}${shared_ext}$major'
9676  shlibpath_var=LD_LIBRARY_PATH
9677  shlibpath_overrides_runpath=yes
9678  hardcode_into_libs=yes
9679  # ldd complains unless libraries are executable
9680  postinstall_cmds='chmod +x $lib'
9681  ;;
9682
9683sunos4*)
9684  version_type=sunos
9685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9686  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9687  shlibpath_var=LD_LIBRARY_PATH
9688  shlibpath_overrides_runpath=yes
9689  if test "$with_gnu_ld" = yes; then
9690    need_lib_prefix=no
9691  fi
9692  need_version=yes
9693  ;;
9694
9695sysv4 | sysv4.3*)
9696  version_type=linux
9697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9698  soname_spec='${libname}${release}${shared_ext}$major'
9699  shlibpath_var=LD_LIBRARY_PATH
9700  case $host_vendor in
9701    sni)
9702      shlibpath_overrides_runpath=no
9703      need_lib_prefix=no
9704      runpath_var=LD_RUN_PATH
9705      ;;
9706    siemens)
9707      need_lib_prefix=no
9708      ;;
9709    motorola)
9710      need_lib_prefix=no
9711      need_version=no
9712      shlibpath_overrides_runpath=no
9713      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9714      ;;
9715  esac
9716  ;;
9717
9718sysv4*MP*)
9719  if test -d /usr/nec ;then
9720    version_type=linux
9721    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9722    soname_spec='$libname${shared_ext}.$major'
9723    shlibpath_var=LD_LIBRARY_PATH
9724  fi
9725  ;;
9726
9727sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9728  version_type=freebsd-elf
9729  need_lib_prefix=no
9730  need_version=no
9731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9732  soname_spec='${libname}${release}${shared_ext}$major'
9733  shlibpath_var=LD_LIBRARY_PATH
9734  shlibpath_overrides_runpath=yes
9735  hardcode_into_libs=yes
9736  if test "$with_gnu_ld" = yes; then
9737    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9738  else
9739    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9740    case $host_os in
9741      sco3.2v5*)
9742        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9743	;;
9744    esac
9745  fi
9746  sys_lib_dlsearch_path_spec='/usr/lib'
9747  ;;
9748
9749tpf*)
9750  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9751  version_type=linux
9752  need_lib_prefix=no
9753  need_version=no
9754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755  shlibpath_var=LD_LIBRARY_PATH
9756  shlibpath_overrides_runpath=no
9757  hardcode_into_libs=yes
9758  ;;
9759
9760uts4*)
9761  version_type=linux
9762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763  soname_spec='${libname}${release}${shared_ext}$major'
9764  shlibpath_var=LD_LIBRARY_PATH
9765  ;;
9766
9767*)
9768  dynamic_linker=no
9769  ;;
9770esac
9771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9772$as_echo "$dynamic_linker" >&6; }
9773test "$dynamic_linker" = no && can_build_shared=no
9774
9775variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9776if test "$GCC" = yes; then
9777  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9778fi
9779
9780if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9781  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9782fi
9783if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9784  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9785fi
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9874$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9875hardcode_action=
9876if test -n "$hardcode_libdir_flag_spec" ||
9877   test -n "$runpath_var" ||
9878   test "X$hardcode_automatic" = "Xyes" ; then
9879
9880  # We can hardcode non-existent directories.
9881  if test "$hardcode_direct" != no &&
9882     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9883     # have to relink, otherwise we might link with an installed library
9884     # when we should be linking with a yet-to-be-installed one
9885     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9886     test "$hardcode_minus_L" != no; then
9887    # Linking always hardcodes the temporary library directory.
9888    hardcode_action=relink
9889  else
9890    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9891    hardcode_action=immediate
9892  fi
9893else
9894  # We cannot hardcode anything, or else we can only hardcode existing
9895  # directories.
9896  hardcode_action=unsupported
9897fi
9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9899$as_echo "$hardcode_action" >&6; }
9900
9901if test "$hardcode_action" = relink ||
9902   test "$inherit_rpath" = yes; then
9903  # Fast installation is not supported
9904  enable_fast_install=no
9905elif test "$shlibpath_overrides_runpath" = yes ||
9906     test "$enable_shared" = no; then
9907  # Fast installation is not necessary
9908  enable_fast_install=needless
9909fi
9910
9911
9912
9913
9914
9915
9916  if test "x$enable_dlopen" != xyes; then
9917  enable_dlopen=unknown
9918  enable_dlopen_self=unknown
9919  enable_dlopen_self_static=unknown
9920else
9921  lt_cv_dlopen=no
9922  lt_cv_dlopen_libs=
9923
9924  case $host_os in
9925  beos*)
9926    lt_cv_dlopen="load_add_on"
9927    lt_cv_dlopen_libs=
9928    lt_cv_dlopen_self=yes
9929    ;;
9930
9931  mingw* | pw32* | cegcc*)
9932    lt_cv_dlopen="LoadLibrary"
9933    lt_cv_dlopen_libs=
9934    ;;
9935
9936  cygwin*)
9937    lt_cv_dlopen="dlopen"
9938    lt_cv_dlopen_libs=
9939    ;;
9940
9941  darwin*)
9942  # if libdl is installed we need to link against it
9943    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9944$as_echo_n "checking for dlopen in -ldl... " >&6; }
9945if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9946  $as_echo_n "(cached) " >&6
9947else
9948  ac_check_lib_save_LIBS=$LIBS
9949LIBS="-ldl  $LIBS"
9950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951/* end confdefs.h.  */
9952
9953/* Override any GCC internal prototype to avoid an error.
9954   Use char because int might match the return type of a GCC
9955   builtin and then its argument prototype would still apply.  */
9956#ifdef __cplusplus
9957extern "C"
9958#endif
9959char dlopen ();
9960int
9961main ()
9962{
9963return dlopen ();
9964  ;
9965  return 0;
9966}
9967_ACEOF
9968if ac_fn_c_try_link "$LINENO"; then :
9969  ac_cv_lib_dl_dlopen=yes
9970else
9971  ac_cv_lib_dl_dlopen=no
9972fi
9973rm -f core conftest.err conftest.$ac_objext \
9974    conftest$ac_exeext conftest.$ac_ext
9975LIBS=$ac_check_lib_save_LIBS
9976fi
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9978$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9979if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9980  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9981else
9982
9983    lt_cv_dlopen="dyld"
9984    lt_cv_dlopen_libs=
9985    lt_cv_dlopen_self=yes
9986
9987fi
9988
9989    ;;
9990
9991  *)
9992    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9993if test "x$ac_cv_func_shl_load" = x""yes; then :
9994  lt_cv_dlopen="shl_load"
9995else
9996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9997$as_echo_n "checking for shl_load in -ldld... " >&6; }
9998if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9999  $as_echo_n "(cached) " >&6
10000else
10001  ac_check_lib_save_LIBS=$LIBS
10002LIBS="-ldld  $LIBS"
10003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004/* end confdefs.h.  */
10005
10006/* Override any GCC internal prototype to avoid an error.
10007   Use char because int might match the return type of a GCC
10008   builtin and then its argument prototype would still apply.  */
10009#ifdef __cplusplus
10010extern "C"
10011#endif
10012char shl_load ();
10013int
10014main ()
10015{
10016return shl_load ();
10017  ;
10018  return 0;
10019}
10020_ACEOF
10021if ac_fn_c_try_link "$LINENO"; then :
10022  ac_cv_lib_dld_shl_load=yes
10023else
10024  ac_cv_lib_dld_shl_load=no
10025fi
10026rm -f core conftest.err conftest.$ac_objext \
10027    conftest$ac_exeext conftest.$ac_ext
10028LIBS=$ac_check_lib_save_LIBS
10029fi
10030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10031$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10032if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10033  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10034else
10035  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10036if test "x$ac_cv_func_dlopen" = x""yes; then :
10037  lt_cv_dlopen="dlopen"
10038else
10039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10040$as_echo_n "checking for dlopen in -ldl... " >&6; }
10041if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10042  $as_echo_n "(cached) " >&6
10043else
10044  ac_check_lib_save_LIBS=$LIBS
10045LIBS="-ldl  $LIBS"
10046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047/* end confdefs.h.  */
10048
10049/* Override any GCC internal prototype to avoid an error.
10050   Use char because int might match the return type of a GCC
10051   builtin and then its argument prototype would still apply.  */
10052#ifdef __cplusplus
10053extern "C"
10054#endif
10055char dlopen ();
10056int
10057main ()
10058{
10059return dlopen ();
10060  ;
10061  return 0;
10062}
10063_ACEOF
10064if ac_fn_c_try_link "$LINENO"; then :
10065  ac_cv_lib_dl_dlopen=yes
10066else
10067  ac_cv_lib_dl_dlopen=no
10068fi
10069rm -f core conftest.err conftest.$ac_objext \
10070    conftest$ac_exeext conftest.$ac_ext
10071LIBS=$ac_check_lib_save_LIBS
10072fi
10073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10074$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10075if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10076  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10077else
10078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10079$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10080if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10081  $as_echo_n "(cached) " >&6
10082else
10083  ac_check_lib_save_LIBS=$LIBS
10084LIBS="-lsvld  $LIBS"
10085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086/* end confdefs.h.  */
10087
10088/* Override any GCC internal prototype to avoid an error.
10089   Use char because int might match the return type of a GCC
10090   builtin and then its argument prototype would still apply.  */
10091#ifdef __cplusplus
10092extern "C"
10093#endif
10094char dlopen ();
10095int
10096main ()
10097{
10098return dlopen ();
10099  ;
10100  return 0;
10101}
10102_ACEOF
10103if ac_fn_c_try_link "$LINENO"; then :
10104  ac_cv_lib_svld_dlopen=yes
10105else
10106  ac_cv_lib_svld_dlopen=no
10107fi
10108rm -f core conftest.err conftest.$ac_objext \
10109    conftest$ac_exeext conftest.$ac_ext
10110LIBS=$ac_check_lib_save_LIBS
10111fi
10112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10113$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10114if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10115  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10116else
10117  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10118$as_echo_n "checking for dld_link in -ldld... " >&6; }
10119if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10120  $as_echo_n "(cached) " >&6
10121else
10122  ac_check_lib_save_LIBS=$LIBS
10123LIBS="-ldld  $LIBS"
10124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125/* end confdefs.h.  */
10126
10127/* Override any GCC internal prototype to avoid an error.
10128   Use char because int might match the return type of a GCC
10129   builtin and then its argument prototype would still apply.  */
10130#ifdef __cplusplus
10131extern "C"
10132#endif
10133char dld_link ();
10134int
10135main ()
10136{
10137return dld_link ();
10138  ;
10139  return 0;
10140}
10141_ACEOF
10142if ac_fn_c_try_link "$LINENO"; then :
10143  ac_cv_lib_dld_dld_link=yes
10144else
10145  ac_cv_lib_dld_dld_link=no
10146fi
10147rm -f core conftest.err conftest.$ac_objext \
10148    conftest$ac_exeext conftest.$ac_ext
10149LIBS=$ac_check_lib_save_LIBS
10150fi
10151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10152$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10153if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10154  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10155fi
10156
10157
10158fi
10159
10160
10161fi
10162
10163
10164fi
10165
10166
10167fi
10168
10169
10170fi
10171
10172    ;;
10173  esac
10174
10175  if test "x$lt_cv_dlopen" != xno; then
10176    enable_dlopen=yes
10177  else
10178    enable_dlopen=no
10179  fi
10180
10181  case $lt_cv_dlopen in
10182  dlopen)
10183    save_CPPFLAGS="$CPPFLAGS"
10184    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10185
10186    save_LDFLAGS="$LDFLAGS"
10187    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10188
10189    save_LIBS="$LIBS"
10190    LIBS="$lt_cv_dlopen_libs $LIBS"
10191
10192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10193$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10194if test "${lt_cv_dlopen_self+set}" = set; then :
10195  $as_echo_n "(cached) " >&6
10196else
10197  	  if test "$cross_compiling" = yes; then :
10198  lt_cv_dlopen_self=cross
10199else
10200  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10201  lt_status=$lt_dlunknown
10202  cat > conftest.$ac_ext <<_LT_EOF
10203#line 10203 "configure"
10204#include "confdefs.h"
10205
10206#if HAVE_DLFCN_H
10207#include <dlfcn.h>
10208#endif
10209
10210#include <stdio.h>
10211
10212#ifdef RTLD_GLOBAL
10213#  define LT_DLGLOBAL		RTLD_GLOBAL
10214#else
10215#  ifdef DL_GLOBAL
10216#    define LT_DLGLOBAL		DL_GLOBAL
10217#  else
10218#    define LT_DLGLOBAL		0
10219#  endif
10220#endif
10221
10222/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10223   find out it does not work in some platform. */
10224#ifndef LT_DLLAZY_OR_NOW
10225#  ifdef RTLD_LAZY
10226#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10227#  else
10228#    ifdef DL_LAZY
10229#      define LT_DLLAZY_OR_NOW		DL_LAZY
10230#    else
10231#      ifdef RTLD_NOW
10232#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10233#      else
10234#        ifdef DL_NOW
10235#          define LT_DLLAZY_OR_NOW	DL_NOW
10236#        else
10237#          define LT_DLLAZY_OR_NOW	0
10238#        endif
10239#      endif
10240#    endif
10241#  endif
10242#endif
10243
10244void fnord() { int i=42;}
10245int main ()
10246{
10247  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10248  int status = $lt_dlunknown;
10249
10250  if (self)
10251    {
10252      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10253      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10254      /* dlclose (self); */
10255    }
10256  else
10257    puts (dlerror ());
10258
10259  return status;
10260}
10261_LT_EOF
10262  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10263  (eval $ac_link) 2>&5
10264  ac_status=$?
10265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10266  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10267    (./conftest; exit; ) >&5 2>/dev/null
10268    lt_status=$?
10269    case x$lt_status in
10270      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10271      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10272      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10273    esac
10274  else :
10275    # compilation failed
10276    lt_cv_dlopen_self=no
10277  fi
10278fi
10279rm -fr conftest*
10280
10281
10282fi
10283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10284$as_echo "$lt_cv_dlopen_self" >&6; }
10285
10286    if test "x$lt_cv_dlopen_self" = xyes; then
10287      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10288      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10289$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10290if test "${lt_cv_dlopen_self_static+set}" = set; then :
10291  $as_echo_n "(cached) " >&6
10292else
10293  	  if test "$cross_compiling" = yes; then :
10294  lt_cv_dlopen_self_static=cross
10295else
10296  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10297  lt_status=$lt_dlunknown
10298  cat > conftest.$ac_ext <<_LT_EOF
10299#line 10299 "configure"
10300#include "confdefs.h"
10301
10302#if HAVE_DLFCN_H
10303#include <dlfcn.h>
10304#endif
10305
10306#include <stdio.h>
10307
10308#ifdef RTLD_GLOBAL
10309#  define LT_DLGLOBAL		RTLD_GLOBAL
10310#else
10311#  ifdef DL_GLOBAL
10312#    define LT_DLGLOBAL		DL_GLOBAL
10313#  else
10314#    define LT_DLGLOBAL		0
10315#  endif
10316#endif
10317
10318/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10319   find out it does not work in some platform. */
10320#ifndef LT_DLLAZY_OR_NOW
10321#  ifdef RTLD_LAZY
10322#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10323#  else
10324#    ifdef DL_LAZY
10325#      define LT_DLLAZY_OR_NOW		DL_LAZY
10326#    else
10327#      ifdef RTLD_NOW
10328#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10329#      else
10330#        ifdef DL_NOW
10331#          define LT_DLLAZY_OR_NOW	DL_NOW
10332#        else
10333#          define LT_DLLAZY_OR_NOW	0
10334#        endif
10335#      endif
10336#    endif
10337#  endif
10338#endif
10339
10340void fnord() { int i=42;}
10341int main ()
10342{
10343  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10344  int status = $lt_dlunknown;
10345
10346  if (self)
10347    {
10348      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10349      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10350      /* dlclose (self); */
10351    }
10352  else
10353    puts (dlerror ());
10354
10355  return status;
10356}
10357_LT_EOF
10358  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10359  (eval $ac_link) 2>&5
10360  ac_status=$?
10361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10362  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10363    (./conftest; exit; ) >&5 2>/dev/null
10364    lt_status=$?
10365    case x$lt_status in
10366      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10367      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10368      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10369    esac
10370  else :
10371    # compilation failed
10372    lt_cv_dlopen_self_static=no
10373  fi
10374fi
10375rm -fr conftest*
10376
10377
10378fi
10379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10380$as_echo "$lt_cv_dlopen_self_static" >&6; }
10381    fi
10382
10383    CPPFLAGS="$save_CPPFLAGS"
10384    LDFLAGS="$save_LDFLAGS"
10385    LIBS="$save_LIBS"
10386    ;;
10387  esac
10388
10389  case $lt_cv_dlopen_self in
10390  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10391  *) enable_dlopen_self=unknown ;;
10392  esac
10393
10394  case $lt_cv_dlopen_self_static in
10395  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10396  *) enable_dlopen_self_static=unknown ;;
10397  esac
10398fi
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416striplib=
10417old_striplib=
10418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10419$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10420if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10421  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10422  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10424$as_echo "yes" >&6; }
10425else
10426# FIXME - insert some real tests, host_os isn't really good enough
10427  case $host_os in
10428  darwin*)
10429    if test -n "$STRIP" ; then
10430      striplib="$STRIP -x"
10431      old_striplib="$STRIP -S"
10432      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10433$as_echo "yes" >&6; }
10434    else
10435      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436$as_echo "no" >&6; }
10437    fi
10438    ;;
10439  *)
10440    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441$as_echo "no" >&6; }
10442    ;;
10443  esac
10444fi
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457  # Report which library types will actually be built
10458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10459$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10461$as_echo "$can_build_shared" >&6; }
10462
10463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10464$as_echo_n "checking whether to build shared libraries... " >&6; }
10465  test "$can_build_shared" = "no" && enable_shared=no
10466
10467  # On AIX, shared libraries and static libraries use the same namespace, and
10468  # are all built from PIC.
10469  case $host_os in
10470  aix3*)
10471    test "$enable_shared" = yes && enable_static=no
10472    if test -n "$RANLIB"; then
10473      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10474      postinstall_cmds='$RANLIB $lib'
10475    fi
10476    ;;
10477
10478  aix[4-9]*)
10479    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10480      test "$enable_shared" = yes && enable_static=no
10481    fi
10482    ;;
10483  esac
10484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10485$as_echo "$enable_shared" >&6; }
10486
10487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10488$as_echo_n "checking whether to build static libraries... " >&6; }
10489  # Make sure either enable_shared or enable_static is yes.
10490  test "$enable_shared" = yes || enable_static=yes
10491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10492$as_echo "$enable_static" >&6; }
10493
10494
10495
10496
10497fi
10498ac_ext=c
10499ac_cpp='$CPP $CPPFLAGS'
10500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10502ac_compiler_gnu=$ac_cv_c_compiler_gnu
10503
10504CC="$lt_save_CC"
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518        ac_config_commands="$ac_config_commands libtool"
10519
10520
10521
10522
10523# Only expand once:
10524
10525
10526
10527# Checks for programs.
10528ac_ext=c
10529ac_cpp='$CPP $CPPFLAGS'
10530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10532ac_compiler_gnu=$ac_cv_c_compiler_gnu
10533if test -n "$ac_tool_prefix"; then
10534  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10535set dummy ${ac_tool_prefix}gcc; ac_word=$2
10536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10537$as_echo_n "checking for $ac_word... " >&6; }
10538if test "${ac_cv_prog_CC+set}" = set; then :
10539  $as_echo_n "(cached) " >&6
10540else
10541  if test -n "$CC"; then
10542  ac_cv_prog_CC="$CC" # Let the user override the test.
10543else
10544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10545for as_dir in $PATH
10546do
10547  IFS=$as_save_IFS
10548  test -z "$as_dir" && as_dir=.
10549    for ac_exec_ext in '' $ac_executable_extensions; do
10550  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10551    ac_cv_prog_CC="${ac_tool_prefix}gcc"
10552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10553    break 2
10554  fi
10555done
10556  done
10557IFS=$as_save_IFS
10558
10559fi
10560fi
10561CC=$ac_cv_prog_CC
10562if test -n "$CC"; then
10563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10564$as_echo "$CC" >&6; }
10565else
10566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10567$as_echo "no" >&6; }
10568fi
10569
10570
10571fi
10572if test -z "$ac_cv_prog_CC"; then
10573  ac_ct_CC=$CC
10574  # Extract the first word of "gcc", so it can be a program name with args.
10575set dummy gcc; ac_word=$2
10576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10577$as_echo_n "checking for $ac_word... " >&6; }
10578if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10579  $as_echo_n "(cached) " >&6
10580else
10581  if test -n "$ac_ct_CC"; then
10582  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10583else
10584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585for as_dir in $PATH
10586do
10587  IFS=$as_save_IFS
10588  test -z "$as_dir" && as_dir=.
10589    for ac_exec_ext in '' $ac_executable_extensions; do
10590  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10591    ac_cv_prog_ac_ct_CC="gcc"
10592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10593    break 2
10594  fi
10595done
10596  done
10597IFS=$as_save_IFS
10598
10599fi
10600fi
10601ac_ct_CC=$ac_cv_prog_ac_ct_CC
10602if test -n "$ac_ct_CC"; then
10603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10604$as_echo "$ac_ct_CC" >&6; }
10605else
10606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607$as_echo "no" >&6; }
10608fi
10609
10610  if test "x$ac_ct_CC" = x; then
10611    CC=""
10612  else
10613    case $cross_compiling:$ac_tool_warned in
10614yes:)
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10617ac_tool_warned=yes ;;
10618esac
10619    CC=$ac_ct_CC
10620  fi
10621else
10622  CC="$ac_cv_prog_CC"
10623fi
10624
10625if test -z "$CC"; then
10626          if test -n "$ac_tool_prefix"; then
10627    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10628set dummy ${ac_tool_prefix}cc; ac_word=$2
10629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10630$as_echo_n "checking for $ac_word... " >&6; }
10631if test "${ac_cv_prog_CC+set}" = set; then :
10632  $as_echo_n "(cached) " >&6
10633else
10634  if test -n "$CC"; then
10635  ac_cv_prog_CC="$CC" # Let the user override the test.
10636else
10637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638for as_dir in $PATH
10639do
10640  IFS=$as_save_IFS
10641  test -z "$as_dir" && as_dir=.
10642    for ac_exec_ext in '' $ac_executable_extensions; do
10643  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10644    ac_cv_prog_CC="${ac_tool_prefix}cc"
10645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10646    break 2
10647  fi
10648done
10649  done
10650IFS=$as_save_IFS
10651
10652fi
10653fi
10654CC=$ac_cv_prog_CC
10655if test -n "$CC"; then
10656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10657$as_echo "$CC" >&6; }
10658else
10659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660$as_echo "no" >&6; }
10661fi
10662
10663
10664  fi
10665fi
10666if test -z "$CC"; then
10667  # Extract the first word of "cc", so it can be a program name with args.
10668set dummy cc; ac_word=$2
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10670$as_echo_n "checking for $ac_word... " >&6; }
10671if test "${ac_cv_prog_CC+set}" = set; then :
10672  $as_echo_n "(cached) " >&6
10673else
10674  if test -n "$CC"; then
10675  ac_cv_prog_CC="$CC" # Let the user override the test.
10676else
10677  ac_prog_rejected=no
10678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679for as_dir in $PATH
10680do
10681  IFS=$as_save_IFS
10682  test -z "$as_dir" && as_dir=.
10683    for ac_exec_ext in '' $ac_executable_extensions; do
10684  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10685    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10686       ac_prog_rejected=yes
10687       continue
10688     fi
10689    ac_cv_prog_CC="cc"
10690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10691    break 2
10692  fi
10693done
10694  done
10695IFS=$as_save_IFS
10696
10697if test $ac_prog_rejected = yes; then
10698  # We found a bogon in the path, so make sure we never use it.
10699  set dummy $ac_cv_prog_CC
10700  shift
10701  if test $# != 0; then
10702    # We chose a different compiler from the bogus one.
10703    # However, it has the same basename, so the bogon will be chosen
10704    # first if we set CC to just the basename; use the full file name.
10705    shift
10706    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10707  fi
10708fi
10709fi
10710fi
10711CC=$ac_cv_prog_CC
10712if test -n "$CC"; then
10713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10714$as_echo "$CC" >&6; }
10715else
10716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10717$as_echo "no" >&6; }
10718fi
10719
10720
10721fi
10722if test -z "$CC"; then
10723  if test -n "$ac_tool_prefix"; then
10724  for ac_prog in cl.exe
10725  do
10726    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10727set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10729$as_echo_n "checking for $ac_word... " >&6; }
10730if test "${ac_cv_prog_CC+set}" = set; then :
10731  $as_echo_n "(cached) " >&6
10732else
10733  if test -n "$CC"; then
10734  ac_cv_prog_CC="$CC" # Let the user override the test.
10735else
10736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10737for as_dir in $PATH
10738do
10739  IFS=$as_save_IFS
10740  test -z "$as_dir" && as_dir=.
10741    for ac_exec_ext in '' $ac_executable_extensions; do
10742  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10743    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10745    break 2
10746  fi
10747done
10748  done
10749IFS=$as_save_IFS
10750
10751fi
10752fi
10753CC=$ac_cv_prog_CC
10754if test -n "$CC"; then
10755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10756$as_echo "$CC" >&6; }
10757else
10758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759$as_echo "no" >&6; }
10760fi
10761
10762
10763    test -n "$CC" && break
10764  done
10765fi
10766if test -z "$CC"; then
10767  ac_ct_CC=$CC
10768  for ac_prog in cl.exe
10769do
10770  # Extract the first word of "$ac_prog", so it can be a program name with args.
10771set dummy $ac_prog; ac_word=$2
10772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10773$as_echo_n "checking for $ac_word... " >&6; }
10774if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10775  $as_echo_n "(cached) " >&6
10776else
10777  if test -n "$ac_ct_CC"; then
10778  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10779else
10780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10781for as_dir in $PATH
10782do
10783  IFS=$as_save_IFS
10784  test -z "$as_dir" && as_dir=.
10785    for ac_exec_ext in '' $ac_executable_extensions; do
10786  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10787    ac_cv_prog_ac_ct_CC="$ac_prog"
10788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10789    break 2
10790  fi
10791done
10792  done
10793IFS=$as_save_IFS
10794
10795fi
10796fi
10797ac_ct_CC=$ac_cv_prog_ac_ct_CC
10798if test -n "$ac_ct_CC"; then
10799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10800$as_echo "$ac_ct_CC" >&6; }
10801else
10802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10803$as_echo "no" >&6; }
10804fi
10805
10806
10807  test -n "$ac_ct_CC" && break
10808done
10809
10810  if test "x$ac_ct_CC" = x; then
10811    CC=""
10812  else
10813    case $cross_compiling:$ac_tool_warned in
10814yes:)
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10817ac_tool_warned=yes ;;
10818esac
10819    CC=$ac_ct_CC
10820  fi
10821fi
10822
10823fi
10824
10825
10826test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10828as_fn_error "no acceptable C compiler found in \$PATH
10829See \`config.log' for more details." "$LINENO" 5; }
10830
10831# Provide some information about the compiler.
10832$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10833set X $ac_compile
10834ac_compiler=$2
10835for ac_option in --version -v -V -qversion; do
10836  { { ac_try="$ac_compiler $ac_option >&5"
10837case "(($ac_try" in
10838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10839  *) ac_try_echo=$ac_try;;
10840esac
10841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10842$as_echo "$ac_try_echo"; } >&5
10843  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10844  ac_status=$?
10845  if test -s conftest.err; then
10846    sed '10a\
10847... rest of stderr output deleted ...
10848         10q' conftest.err >conftest.er1
10849    cat conftest.er1 >&5
10850  fi
10851  rm -f conftest.er1 conftest.err
10852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10853  test $ac_status = 0; }
10854done
10855
10856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10857$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10858if test "${ac_cv_c_compiler_gnu+set}" = set; then :
10859  $as_echo_n "(cached) " >&6
10860else
10861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862/* end confdefs.h.  */
10863
10864int
10865main ()
10866{
10867#ifndef __GNUC__
10868       choke me
10869#endif
10870
10871  ;
10872  return 0;
10873}
10874_ACEOF
10875if ac_fn_c_try_compile "$LINENO"; then :
10876  ac_compiler_gnu=yes
10877else
10878  ac_compiler_gnu=no
10879fi
10880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10881ac_cv_c_compiler_gnu=$ac_compiler_gnu
10882
10883fi
10884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10885$as_echo "$ac_cv_c_compiler_gnu" >&6; }
10886if test $ac_compiler_gnu = yes; then
10887  GCC=yes
10888else
10889  GCC=
10890fi
10891ac_test_CFLAGS=${CFLAGS+set}
10892ac_save_CFLAGS=$CFLAGS
10893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10894$as_echo_n "checking whether $CC accepts -g... " >&6; }
10895if test "${ac_cv_prog_cc_g+set}" = set; then :
10896  $as_echo_n "(cached) " >&6
10897else
10898  ac_save_c_werror_flag=$ac_c_werror_flag
10899   ac_c_werror_flag=yes
10900   ac_cv_prog_cc_g=no
10901   CFLAGS="-g"
10902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903/* end confdefs.h.  */
10904
10905int
10906main ()
10907{
10908
10909  ;
10910  return 0;
10911}
10912_ACEOF
10913if ac_fn_c_try_compile "$LINENO"; then :
10914  ac_cv_prog_cc_g=yes
10915else
10916  CFLAGS=""
10917      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918/* end confdefs.h.  */
10919
10920int
10921main ()
10922{
10923
10924  ;
10925  return 0;
10926}
10927_ACEOF
10928if ac_fn_c_try_compile "$LINENO"; then :
10929
10930else
10931  ac_c_werror_flag=$ac_save_c_werror_flag
10932	 CFLAGS="-g"
10933	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934/* end confdefs.h.  */
10935
10936int
10937main ()
10938{
10939
10940  ;
10941  return 0;
10942}
10943_ACEOF
10944if ac_fn_c_try_compile "$LINENO"; then :
10945  ac_cv_prog_cc_g=yes
10946fi
10947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10948fi
10949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950fi
10951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10952   ac_c_werror_flag=$ac_save_c_werror_flag
10953fi
10954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10955$as_echo "$ac_cv_prog_cc_g" >&6; }
10956if test "$ac_test_CFLAGS" = set; then
10957  CFLAGS=$ac_save_CFLAGS
10958elif test $ac_cv_prog_cc_g = yes; then
10959  if test "$GCC" = yes; then
10960    CFLAGS="-g -O2"
10961  else
10962    CFLAGS="-g"
10963  fi
10964else
10965  if test "$GCC" = yes; then
10966    CFLAGS="-O2"
10967  else
10968    CFLAGS=
10969  fi
10970fi
10971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
10972$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10973if test "${ac_cv_prog_cc_c89+set}" = set; then :
10974  $as_echo_n "(cached) " >&6
10975else
10976  ac_cv_prog_cc_c89=no
10977ac_save_CC=$CC
10978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979/* end confdefs.h.  */
10980#include <stdarg.h>
10981#include <stdio.h>
10982#include <sys/types.h>
10983#include <sys/stat.h>
10984/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10985struct buf { int x; };
10986FILE * (*rcsopen) (struct buf *, struct stat *, int);
10987static char *e (p, i)
10988     char **p;
10989     int i;
10990{
10991  return p[i];
10992}
10993static char *f (char * (*g) (char **, int), char **p, ...)
10994{
10995  char *s;
10996  va_list v;
10997  va_start (v,p);
10998  s = g (p, va_arg (v,int));
10999  va_end (v);
11000  return s;
11001}
11002
11003/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11004   function prototypes and stuff, but not '\xHH' hex character constants.
11005   These don't provoke an error unfortunately, instead are silently treated
11006   as 'x'.  The following induces an error, until -std is added to get
11007   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11008   array size at least.  It's necessary to write '\x00'==0 to get something
11009   that's true only with -std.  */
11010int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11011
11012/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11013   inside strings and character constants.  */
11014#define FOO(x) 'x'
11015int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11016
11017int test (int i, double x);
11018struct s1 {int (*f) (int a);};
11019struct s2 {int (*f) (double a);};
11020int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11021int argc;
11022char **argv;
11023int
11024main ()
11025{
11026return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11027  ;
11028  return 0;
11029}
11030_ACEOF
11031for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11032	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11033do
11034  CC="$ac_save_CC $ac_arg"
11035  if ac_fn_c_try_compile "$LINENO"; then :
11036  ac_cv_prog_cc_c89=$ac_arg
11037fi
11038rm -f core conftest.err conftest.$ac_objext
11039  test "x$ac_cv_prog_cc_c89" != "xno" && break
11040done
11041rm -f conftest.$ac_ext
11042CC=$ac_save_CC
11043
11044fi
11045# AC_CACHE_VAL
11046case "x$ac_cv_prog_cc_c89" in
11047  x)
11048    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11049$as_echo "none needed" >&6; } ;;
11050  xno)
11051    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11052$as_echo "unsupported" >&6; } ;;
11053  *)
11054    CC="$CC $ac_cv_prog_cc_c89"
11055    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11056$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11057esac
11058if test "x$ac_cv_prog_cc_c89" != xno; then :
11059
11060fi
11061
11062ac_ext=c
11063ac_cpp='$CPP $CPPFLAGS'
11064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11066ac_compiler_gnu=$ac_cv_c_compiler_gnu
11067
11068depcc="$CC"   am_compiler_list=
11069
11070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11071$as_echo_n "checking dependency style of $depcc... " >&6; }
11072if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11073  $as_echo_n "(cached) " >&6
11074else
11075  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11076  # We make a subdir and do the tests there.  Otherwise we can end up
11077  # making bogus files that we don't know about and never remove.  For
11078  # instance it was reported that on HP-UX the gcc test will end up
11079  # making a dummy file named `D' -- because `-MD' means `put the output
11080  # in D'.
11081  mkdir conftest.dir
11082  # Copy depcomp to subdir because otherwise we won't find it if we're
11083  # using a relative directory.
11084  cp "$am_depcomp" conftest.dir
11085  cd conftest.dir
11086  # We will build objects and dependencies in a subdirectory because
11087  # it helps to detect inapplicable dependency modes.  For instance
11088  # both Tru64's cc and ICC support -MD to output dependencies as a
11089  # side effect of compilation, but ICC will put the dependencies in
11090  # the current directory while Tru64 will put them in the object
11091  # directory.
11092  mkdir sub
11093
11094  am_cv_CC_dependencies_compiler_type=none
11095  if test "$am_compiler_list" = ""; then
11096     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11097  fi
11098  am__universal=false
11099  case " $depcc " in #(
11100     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11101     esac
11102
11103  for depmode in $am_compiler_list; do
11104    # Setup a source with many dependencies, because some compilers
11105    # like to wrap large dependency lists on column 80 (with \), and
11106    # we should not choose a depcomp mode which is confused by this.
11107    #
11108    # We need to recreate these files for each test, as the compiler may
11109    # overwrite some of them when testing with obscure command lines.
11110    # This happens at least with the AIX C compiler.
11111    : > sub/conftest.c
11112    for i in 1 2 3 4 5 6; do
11113      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11114      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11115      # Solaris 8's {/usr,}/bin/sh.
11116      touch sub/conftst$i.h
11117    done
11118    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11119
11120    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11121    # mode.  It turns out that the SunPro C++ compiler does not properly
11122    # handle `-M -o', and we need to detect this.  Also, some Intel
11123    # versions had trouble with output in subdirs
11124    am__obj=sub/conftest.${OBJEXT-o}
11125    am__minus_obj="-o $am__obj"
11126    case $depmode in
11127    gcc)
11128      # This depmode causes a compiler race in universal mode.
11129      test "$am__universal" = false || continue
11130      ;;
11131    nosideeffect)
11132      # after this tag, mechanisms are not by side-effect, so they'll
11133      # only be used when explicitly requested
11134      if test "x$enable_dependency_tracking" = xyes; then
11135	continue
11136      else
11137	break
11138      fi
11139      ;;
11140    msvisualcpp | msvcmsys)
11141      # This compiler won't grok `-c -o', but also, the minuso test has
11142      # not run yet.  These depmodes are late enough in the game, and
11143      # so weak that their functioning should not be impacted.
11144      am__obj=conftest.${OBJEXT-o}
11145      am__minus_obj=
11146      ;;
11147    none) break ;;
11148    esac
11149    if depmode=$depmode \
11150       source=sub/conftest.c object=$am__obj \
11151       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11152       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11153         >/dev/null 2>conftest.err &&
11154       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11155       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11156       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11157       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11158      # icc doesn't choke on unknown options, it will just issue warnings
11159      # or remarks (even with -Werror).  So we grep stderr for any message
11160      # that says an option was ignored or not supported.
11161      # When given -MP, icc 7.0 and 7.1 complain thusly:
11162      #   icc: Command line warning: ignoring option '-M'; no argument required
11163      # The diagnosis changed in icc 8.0:
11164      #   icc: Command line remark: option '-MP' not supported
11165      if (grep 'ignoring option' conftest.err ||
11166          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11167        am_cv_CC_dependencies_compiler_type=$depmode
11168        break
11169      fi
11170    fi
11171  done
11172
11173  cd ..
11174  rm -rf conftest.dir
11175else
11176  am_cv_CC_dependencies_compiler_type=none
11177fi
11178
11179fi
11180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11181$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11182CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11183
11184 if
11185  test "x$enable_dependency_tracking" != xno \
11186  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11187  am__fastdepCC_TRUE=
11188  am__fastdepCC_FALSE='#'
11189else
11190  am__fastdepCC_TRUE='#'
11191  am__fastdepCC_FALSE=
11192fi
11193
11194
11195
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11197$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11198set x ${MAKE-make}
11199ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11200if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11201  $as_echo_n "(cached) " >&6
11202else
11203  cat >conftest.make <<\_ACEOF
11204SHELL = /bin/sh
11205all:
11206	@echo '@@@%%%=$(MAKE)=@@@%%%'
11207_ACEOF
11208# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11209case `${MAKE-make} -f conftest.make 2>/dev/null` in
11210  *@@@%%%=?*=@@@%%%*)
11211    eval ac_cv_prog_make_${ac_make}_set=yes;;
11212  *)
11213    eval ac_cv_prog_make_${ac_make}_set=no;;
11214esac
11215rm -f conftest.make
11216fi
11217if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11219$as_echo "yes" >&6; }
11220  SET_MAKE=
11221else
11222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223$as_echo "no" >&6; }
11224  SET_MAKE="MAKE=${MAKE-make}"
11225fi
11226
11227
11228# if we have a previous version pan the build
11229showErrMsg1()
11230{
11231	echo
11232	echo "*************************************************************"
11233	echo "*                                                           *"
11234	echo "*  A previous bristol installation exists on this system.   *"
11235	echo "*                                                           *"
11236	echo "*  If you have bristol installed from your package manager  *"
11237	echo "*  you really need to remove it first. If you have it from  *"
11238	echo "*  a previous bristol build then you can remove it with a   *"
11239	echo "*  'make uninstall' from the previous build dir.            *"
11240	echo "*                                                           *"
11241	echo "*  If you understand the risks or just want to be lazy then *"
11242	echo "*  you can override this test with --disable-version-check  *"
11243	echo "*  however the author advises against such a workaround.    *"
11244	echo "*                                                           *"
11245	echo "*************************************************************"
11246	echo
11247	exit 1
11248}
11249
11250TRY_VC=yes
11251# Check whether --enable-version_check was given.
11252if test "${enable_version_check+set}" = set; then :
11253  enableval=$enable_version_check; TRY_VC=no
11254else
11255  TRY_VC=yes
11256fi
11257
11258if test "x$TRY_VC" = 'xyes'
11259then
11260	which startBristol > /dev/null 2>&1
11261	if test $? == 0; then showErrMsg1; fi
11262	which bristol > /dev/null 2>&1
11263	if test $? == 0; then showErrMsg1; fi
11264	if test -f ${prefix}/bin/bristol; then showErrMsg1; fi
11265fi
11266
11267# Checks for header files.
11268
11269# Check whether --enable-oss was given.
11270if test "${enable_oss+set}" = set; then :
11271  enableval=$enable_oss; TRY_OSS=$enableval
11272else
11273  TRY_OSS=yes
11274fi
11275
11276
11277if test "x$TRY_OSS" = "xyes"
11278then
11279HAVE_OSS=true
11280BRISTOL_HAS_OSS=1
11281ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11282if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
11283
11284else
11285  HAVE_OSS=false
11286fi
11287
11288
11289
11290if test $HAVE_OSS = "false"; then
11291	BRISTOL_HAS_OSS=0
11292fi
11293else
11294HAVE_OSS=false
11295BRISTOL_HAS_OSS=0
11296fi
11297
11298
11299# The brighton library requires 4 X11 header files and cannot proceed without
11300# them. We should check here for their availability.
11301CFLAGS="$CFLAGS -I/usr/X11R6/include"
11302CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
11303HAVE_XHEADERS=true
11304ac_fn_c_check_header_mongrel "$LINENO" "X11/X.h" "ac_cv_header_X11_X_h" "$ac_includes_default"
11305if test "x$ac_cv_header_X11_X_h" = x""yes; then :
11306
11307else
11308  HAVE_XHEADERS=false
11309fi
11310
11311
11312ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
11313if test "x$ac_cv_header_X11_Xlib_h" = x""yes; then :
11314
11315else
11316  HAVE_XHEADERS=false
11317fi
11318
11319
11320ac_fn_c_check_header_mongrel "$LINENO" "X11/Xutil.h" "ac_cv_header_X11_Xutil_h" "$ac_includes_default"
11321if test "x$ac_cv_header_X11_Xutil_h" = x""yes; then :
11322
11323else
11324  HAVE_XHEADERS=false
11325fi
11326
11327
11328ac_fn_c_check_header_mongrel "$LINENO" "X11/Xos.h" "ac_cv_header_X11_Xos_h" "$ac_includes_default"
11329if test "x$ac_cv_header_X11_Xos_h" = x""yes; then :
11330
11331else
11332  HAVE_XHEADERS=false
11333fi
11334
11335
11336ac_fn_c_check_header_mongrel "$LINENO" "X11/Xatom.h" "ac_cv_header_X11_Xatom_h" "$ac_includes_default"
11337if test "x$ac_cv_header_X11_Xatom_h" = x""yes; then :
11338
11339else
11340  HAVE_XHEADERS=false
11341fi
11342
11343
11344
11345# Checks for typedefs, structures, and compiler characteristics.
11346
11347# Checks for X11 library functions.
11348BRIGHTON_HAS_X11=
11349BRIGHTON_X11_DIR=
11350BRIGHTON_LIBX11=
11351BRIGHTON_LIBB11=-lC11
11352BRIGHTON_LIBXLIBS=-L../libbrightonC11/.libs
11353# Check whether --enable-x11 was given.
11354if test "${enable_x11+set}" = set; then :
11355  enableval=$enable_x11; TRY_X11=$enableval
11356else
11357  TRY_X11=yes
11358fi
11359
11360
11361if test $HAVE_XHEADERS = "false"
11362then
11363	TRY_X11=no
11364fi
11365
11366for ac_header in X11/extensions/XShm.h
11367do :
11368  ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XShm.h" "ac_cv_header_X11_extensions_XShm_h" "
11369#include <X11/Xlib.h>
11370#include <sys/ipc.h>
11371#include <sys/shm.h>
11372
11373"
11374if test "x$ac_cv_header_X11_extensions_XShm_h" = x""yes; then :
11375  cat >>confdefs.h <<_ACEOF
11376#define HAVE_X11_EXTENSIONS_XSHM_H 1
11377_ACEOF
11378 x11_shm_found="true"
11379else
11380  x11_shm_found="false"
11381fi
11382
11383done
11384
11385# Force this for now - pure build time options, no header dependency
11386
11387if test "x$TRY_X11" = "xyes"
11388then
11389	BRIGHTON_HAS_X11=-DBRIGHTON_HAS_X11
11390	BRIGHTON_X11_DIR=libbrightonX11
11391	BRIGHTON_LIBB11=-lB11
11392	BRIGHTON_LIBX11=-lX11
11393	BRIGHTON_LIBXEXT=
11394	BRIGHTON_LIBXLIBS=-L../libbrightonX11/.libs
11395
11396	# Check whether --enable-ximage was given.
11397if test "${enable_ximage+set}" = set; then :
11398  enableval=$enable_ximage; TRY_XIMAGE=$enableval
11399else
11400  TRY_XIMAGE=yes
11401fi
11402
11403	if test "x$TRY_XIMAGE" = "xyes"
11404	then
11405		BRIGHTON_HAS_XIMAGE=-DBRIGHTON_XIMAGE
11406
11407		if test "x$x11_shm_found" = "xtrue"
11408		then
11409		# Check whether --enable-shmimage was given.
11410if test "${enable_shmimage+set}" = set; then :
11411  enableval=$enable_shmimage; TRY_SHMIMAGE=$enableval
11412else
11413  TRY_SHMIMAGE=no
11414fi
11415
11416			if test "x$TRY_SHMIMAGE" = "xyes"
11417			then
11418				BRIGHTON_HAS_SHMIMAGE=-DBRIGHTON_SHMIMAGE
11419				BRIGHTON_LIBXEXT=-lXext
11420
11421			fi
11422		fi
11423	fi
11424fi
11425
11426
11427
11428
11429
11430
11431
11432BRR=${BRISTOL_RAMP_RATE:-10}
11433
11434
11435_BRISTOL_VOICES=${BRISTOL_VOICECOUNT:-32}
11436
11437
11438BRISTOL_LIN_ATTACK=-DBRISTOL_LIN_ATTACK
11439# Check whether --enable-exp-attack was given.
11440if test "${enable_exp_attack+set}" = set; then :
11441  enableval=$enable_exp_attack; USE_EXP_ATTACK=yes
11442else
11443  USE_EXP_ATTACK=no
11444fi
11445
11446if test "x$USE_EXP_ATTACK" == "xyes"
11447then
11448	BRISTOL_LIN_ATTACK=
11449fi
11450
11451
11452BRISTOL_SEM_OPEN=
11453BRISTOL_SEMAPHORE=
11454# Check whether --enable-semaphore was given.
11455if test "${enable_semaphore+set}" = set; then :
11456  enableval=$enable_semaphore; USE_SEMAPHORE=yes
11457else
11458  USE_SEMAPHORE=no
11459fi
11460
11461if test "x$USE_SEMAPHORE" == "xyes"
11462then
11463	BRISTOL_SEMAPHORE=-DBRISTOL_SEMAPHORE
11464
11465	# Checks for sem_open use.
11466	# Check whether --enable-sem-open was given.
11467if test "${enable_sem_open+set}" = set; then :
11468  enableval=$enable_sem_open; USE_SEM_OPEN=yes
11469else
11470  USE_SEM_OPEN=no
11471fi
11472
11473	if test "x$USE_SEM_OPEN" = "xyes"
11474	then
11475		BRISTOL_SEM_OPEN=-DBRISTOL_SEM_OPEN
11476	fi
11477fi
11478
11479
11480
11481BRISTOL_BARRIER=
11482# Check whether --enable-memory-barrier was given.
11483if test "${enable_memory_barrier+set}" = set; then :
11484  enableval=$enable_memory_barrier; USE_BARRIER=yes
11485else
11486  USE_BARRIER=no
11487fi
11488
11489if test "x$USE_BARRIER" == "xyes"
11490then
11491	BRISTOL_BARRIER=-DUSE_MLOCK
11492fi
11493
11494
11495# Checks for autozoom feature requested
11496BRIGHTON_HAS_AUTOZOOM=-DBRIGHTON_HAS_ZOOM=1
11497# Check whether --enable-autozoom was given.
11498if test "${enable_autozoom+set}" = set; then :
11499  enableval=$enable_autozoom; TRY_AZ=no
11500else
11501  TRY_AZ=yes
11502fi
11503
11504if test "x$TRY_AZ" = "xno"
11505then
11506	BRIGHTON_HAS_AUTOZOOM=-DBRIGHTON_HAS_ZOOM=0
11507fi
11508
11509
11510
11511# Checks for old audio device close/open on error.
11512# Check whether --enable-drain was given.
11513if test "${enable_drain+set}" = set; then :
11514  enableval=$enable_drain; TRY_DRAIN=$enableval
11515else
11516  TRY_DRAIN=yes
11517fi
11518
11519if test "x$TRY_DRAIN" = "xyes"
11520then
11521	BRISTOL_HAS_DRAIN=-D_BRISTOL_DRAIN
11522
11523fi
11524
11525
11526
11527if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11528	if test -n "$ac_tool_prefix"; then
11529  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11530set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11532$as_echo_n "checking for $ac_word... " >&6; }
11533if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11534  $as_echo_n "(cached) " >&6
11535else
11536  case $PKG_CONFIG in
11537  [\\/]* | ?:[\\/]*)
11538  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11539  ;;
11540  *)
11541  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542for as_dir in $PATH
11543do
11544  IFS=$as_save_IFS
11545  test -z "$as_dir" && as_dir=.
11546    for ac_exec_ext in '' $ac_executable_extensions; do
11547  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11548    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11550    break 2
11551  fi
11552done
11553  done
11554IFS=$as_save_IFS
11555
11556  ;;
11557esac
11558fi
11559PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11560if test -n "$PKG_CONFIG"; then
11561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11562$as_echo "$PKG_CONFIG" >&6; }
11563else
11564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565$as_echo "no" >&6; }
11566fi
11567
11568
11569fi
11570if test -z "$ac_cv_path_PKG_CONFIG"; then
11571  ac_pt_PKG_CONFIG=$PKG_CONFIG
11572  # Extract the first word of "pkg-config", so it can be a program name with args.
11573set dummy pkg-config; ac_word=$2
11574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575$as_echo_n "checking for $ac_word... " >&6; }
11576if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11577  $as_echo_n "(cached) " >&6
11578else
11579  case $ac_pt_PKG_CONFIG in
11580  [\\/]* | ?:[\\/]*)
11581  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11582  ;;
11583  *)
11584  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585for as_dir in $PATH
11586do
11587  IFS=$as_save_IFS
11588  test -z "$as_dir" && as_dir=.
11589    for ac_exec_ext in '' $ac_executable_extensions; do
11590  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11591    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11593    break 2
11594  fi
11595done
11596  done
11597IFS=$as_save_IFS
11598
11599  ;;
11600esac
11601fi
11602ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11603if test -n "$ac_pt_PKG_CONFIG"; then
11604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11605$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11606else
11607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608$as_echo "no" >&6; }
11609fi
11610
11611  if test "x$ac_pt_PKG_CONFIG" = x; then
11612    PKG_CONFIG=""
11613  else
11614    case $cross_compiling:$ac_tool_warned in
11615yes:)
11616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11618ac_tool_warned=yes ;;
11619esac
11620    PKG_CONFIG=$ac_pt_PKG_CONFIG
11621  fi
11622else
11623  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11624fi
11625
11626fi
11627if test -n "$PKG_CONFIG"; then
11628	_pkg_min_version=0.9.0
11629	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11630$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11631	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11632		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11633$as_echo "yes" >&6; }
11634	else
11635		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636$as_echo "no" >&6; }
11637		PKG_CONFIG=""
11638	fi
11639
11640fi
11641
11642# Checks for library functions.
11643# Check whether --enable-alsa was given.
11644if test "${enable_alsa+set}" = set; then :
11645  enableval=$enable_alsa; TRY_ALSA=$enableval
11646else
11647  TRY_ALSA=yes
11648fi
11649
11650ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
11651if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
11652  alsa_found="true"
11653else
11654  alsa_found="false"
11655fi
11656
11657
11658
11659HAVE_ALSA=false
11660BRISTOL_HAS_ALSA=0
11661if test "x$TRY_ALSA" = "xyes" -a "x$alsa_found" = "xtrue";
11662then
11663	# check for ALSA >= 1.0.0
11664
11665pkg_failed=no
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
11667$as_echo_n "checking for ALSA... " >&6; }
11668
11669if test -n "$PKG_CONFIG"; then
11670    if test -n "$ALSA_CFLAGS"; then
11671        pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
11672    else
11673        if test -n "$PKG_CONFIG" && \
11674    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 1.0.0\""; } >&5
11675  ($PKG_CONFIG --exists --print-errors "alsa >= 1.0.0") 2>&5
11676  ac_status=$?
11677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11678  test $ac_status = 0; }; then
11679  pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 1.0.0" 2>/dev/null`
11680else
11681  pkg_failed=yes
11682fi
11683    fi
11684else
11685	pkg_failed=untried
11686fi
11687if test -n "$PKG_CONFIG"; then
11688    if test -n "$ALSA_LIBS"; then
11689        pkg_cv_ALSA_LIBS="$ALSA_LIBS"
11690    else
11691        if test -n "$PKG_CONFIG" && \
11692    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 1.0.0\""; } >&5
11693  ($PKG_CONFIG --exists --print-errors "alsa >= 1.0.0") 2>&5
11694  ac_status=$?
11695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11696  test $ac_status = 0; }; then
11697  pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 1.0.0" 2>/dev/null`
11698else
11699  pkg_failed=yes
11700fi
11701    fi
11702else
11703	pkg_failed=untried
11704fi
11705
11706
11707
11708if test $pkg_failed = yes; then
11709
11710if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11711        _pkg_short_errors_supported=yes
11712else
11713        _pkg_short_errors_supported=no
11714fi
11715        if test $_pkg_short_errors_supported = yes; then
11716	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa >= 1.0.0"`
11717        else
11718	        ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 1.0.0"`
11719        fi
11720	# Put the nasty error message in config.log where it belongs
11721	echo "$ALSA_PKG_ERRORS" >&5
11722
11723	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724$as_echo "no" >&6; }
11725                true
11726
11727elif test $pkg_failed = untried; then
11728	true
11729
11730else
11731	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
11732	ALSA_LIBS=$pkg_cv_ALSA_LIBS
11733        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11734$as_echo "yes" >&6; }
11735	HAVE_ALSA=true
11736			  BRISTOL_HAS_ALSA=1
11737
11738fi
11739else
11740	ALSA_CFLAGS=
11741	ALSA_LIBS=
11742
11743
11744fi
11745
11746
11747# Check whether --enable-liblo was given.
11748if test "${enable_liblo+set}" = set; then :
11749  enableval=$enable_liblo; TRY_LIBLO=$enableval
11750else
11751  TRY_LIBLO=yes
11752fi
11753
11754
11755# needs liblo and liblo-dev to work - have to see the header files anyway.
11756HAVE_LIBLO=false
11757BRISTOL_HAS_LIBLO=0
11758if test "x$TRY_LIBLO" = "xyes" ;
11759then
11760	# check for LIBLO >= 1.0.0
11761
11762pkg_failed=no
11763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBLO" >&5
11764$as_echo_n "checking for LIBLO... " >&6; }
11765
11766if test -n "$PKG_CONFIG"; then
11767    if test -n "$LIBLO_CFLAGS"; then
11768        pkg_cv_LIBLO_CFLAGS="$LIBLO_CFLAGS"
11769    else
11770        if test -n "$PKG_CONFIG" && \
11771    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblo >= 0.22.0\""; } >&5
11772  ($PKG_CONFIG --exists --print-errors "liblo >= 0.22.0") 2>&5
11773  ac_status=$?
11774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11775  test $ac_status = 0; }; then
11776  pkg_cv_LIBLO_CFLAGS=`$PKG_CONFIG --cflags "liblo >= 0.22.0" 2>/dev/null`
11777else
11778  pkg_failed=yes
11779fi
11780    fi
11781else
11782	pkg_failed=untried
11783fi
11784if test -n "$PKG_CONFIG"; then
11785    if test -n "$LIBLO_LIBS"; then
11786        pkg_cv_LIBLO_LIBS="$LIBLO_LIBS"
11787    else
11788        if test -n "$PKG_CONFIG" && \
11789    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblo >= 0.22.0\""; } >&5
11790  ($PKG_CONFIG --exists --print-errors "liblo >= 0.22.0") 2>&5
11791  ac_status=$?
11792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11793  test $ac_status = 0; }; then
11794  pkg_cv_LIBLO_LIBS=`$PKG_CONFIG --libs "liblo >= 0.22.0" 2>/dev/null`
11795else
11796  pkg_failed=yes
11797fi
11798    fi
11799else
11800	pkg_failed=untried
11801fi
11802
11803
11804
11805if test $pkg_failed = yes; then
11806
11807if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11808        _pkg_short_errors_supported=yes
11809else
11810        _pkg_short_errors_supported=no
11811fi
11812        if test $_pkg_short_errors_supported = yes; then
11813	        LIBLO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "liblo >= 0.22.0"`
11814        else
11815	        LIBLO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "liblo >= 0.22.0"`
11816        fi
11817	# Put the nasty error message in config.log where it belongs
11818	echo "$LIBLO_PKG_ERRORS" >&5
11819
11820	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11821$as_echo "no" >&6; }
11822                true
11823
11824elif test $pkg_failed = untried; then
11825	true
11826
11827else
11828	LIBLO_CFLAGS=$pkg_cv_LIBLO_CFLAGS
11829	LIBLO_LIBS=$pkg_cv_LIBLO_LIBS
11830        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11831$as_echo "yes" >&6; }
11832	HAVE_LIBLO=true
11833			  BRISTOL_HAS_LIBLO=1
11834
11835fi
11836else
11837	LIBLO_CFLAGS=
11838	LIBLO_LIBS=
11839
11840
11841fi
11842
11843
11844jack_session_found="false"
11845HAVE_JACK_MIDI="false"
11846
11847# Check whether --enable-jack was given.
11848if test "${enable_jack+set}" = set; then :
11849  enableval=$enable_jack; TRY_JACK=$enableval
11850else
11851  TRY_JACK=yes
11852fi
11853
11854ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
11855if test "x$ac_cv_header_jack_jack_h" = x""yes; then :
11856  jack_found="true"
11857else
11858  jack_found="false"
11859fi
11860
11861
11862
11863DEFAULT_AUDIO_FLAG=-alsa
11864DEFAULT_JACK=no
11865DEFAULT_JACK_MIDI=no
11866BRISTOL_JACK_DEFAULT=
11867BRISTOL_JACK_DEFAULT_MIDI=
11868BRISTOL_JACK_MULTI_CLOSE=-DBRISTOL_JACK_MULTI_CLOSE
11869HAVE_JACK="false"
11870JACK_SC=yes
11871if test "x$TRY_JACK" = "xyes" -a "x$jack_found" = "xtrue";
11872then
11873	# check for JACK >= 0.99.0
11874
11875pkg_failed=no
11876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
11877$as_echo_n "checking for JACK... " >&6; }
11878
11879if test -n "$PKG_CONFIG"; then
11880    if test -n "$JACK_CFLAGS"; then
11881        pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
11882    else
11883        if test -n "$PKG_CONFIG" && \
11884    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.99.0\""; } >&5
11885  ($PKG_CONFIG --exists --print-errors "jack >= 0.99.0") 2>&5
11886  ac_status=$?
11887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11888  test $ac_status = 0; }; then
11889  pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.99.0" 2>/dev/null`
11890else
11891  pkg_failed=yes
11892fi
11893    fi
11894else
11895	pkg_failed=untried
11896fi
11897if test -n "$PKG_CONFIG"; then
11898    if test -n "$JACK_LIBS"; then
11899        pkg_cv_JACK_LIBS="$JACK_LIBS"
11900    else
11901        if test -n "$PKG_CONFIG" && \
11902    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.99.0\""; } >&5
11903  ($PKG_CONFIG --exists --print-errors "jack >= 0.99.0") 2>&5
11904  ac_status=$?
11905  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11906  test $ac_status = 0; }; then
11907  pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.99.0" 2>/dev/null`
11908else
11909  pkg_failed=yes
11910fi
11911    fi
11912else
11913	pkg_failed=untried
11914fi
11915
11916
11917
11918if test $pkg_failed = yes; then
11919
11920if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11921        _pkg_short_errors_supported=yes
11922else
11923        _pkg_short_errors_supported=no
11924fi
11925        if test $_pkg_short_errors_supported = yes; then
11926	        JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "jack >= 0.99.0"`
11927        else
11928	        JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack >= 0.99.0"`
11929        fi
11930	# Put the nasty error message in config.log where it belongs
11931	echo "$JACK_PKG_ERRORS" >&5
11932
11933	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934$as_echo "no" >&6; }
11935                true
11936
11937elif test $pkg_failed = untried; then
11938	true
11939
11940else
11941	JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
11942	JACK_LIBS=$pkg_cv_JACK_LIBS
11943        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11944$as_echo "yes" >&6; }
11945	HAVE_JACK="true"
11946			  JACK_DEFAULT_DRIVER="jack"
11947			  BRISTOL_HAS_JACK=-D_BRISTOL_JACK
11948
11949fi
11950
11951
11952
11953	ac_fn_c_check_header_mongrel "$LINENO" "jack/session.h" "ac_cv_header_jack_session_h" "$ac_includes_default"
11954if test "x$ac_cv_header_jack_session_h" = x""yes; then :
11955  jack_session_found="true"
11956else
11957  jack_session_found="false"
11958fi
11959
11960
11961 	if test "$jack_session_found" = "true"; then
11962
11963$as_echo "#define JACK_SESSION 1" >>confdefs.h
11964
11965		BRISTOL_HAS_JACK_SESSION=-D_BRISTOL_JACK_SESSION
11966
11967	fi
11968
11969	# Check whether --enable-jack-midi was given.
11970if test "${enable_jack_midi+set}" = set; then :
11971  enableval=$enable_jack_midi; TRY_JACK_MIDI=$enableval
11972else
11973  TRY_JACK_MIDI=yes
11974fi
11975
11976	if test "x$TRY_JACK_MIDI" = "xyes" ;
11977	then
11978		# check for JACK >= 0.99.0
11979
11980pkg_failed=no
11981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
11982$as_echo_n "checking for JACK... " >&6; }
11983
11984if test -n "$PKG_CONFIG"; then
11985    if test -n "$JACK_CFLAGS"; then
11986        pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
11987    else
11988        if test -n "$PKG_CONFIG" && \
11989    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.109.0\""; } >&5
11990  ($PKG_CONFIG --exists --print-errors "jack >= 0.109.0") 2>&5
11991  ac_status=$?
11992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11993  test $ac_status = 0; }; then
11994  pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.109.0" 2>/dev/null`
11995else
11996  pkg_failed=yes
11997fi
11998    fi
11999else
12000	pkg_failed=untried
12001fi
12002if test -n "$PKG_CONFIG"; then
12003    if test -n "$JACK_LIBS"; then
12004        pkg_cv_JACK_LIBS="$JACK_LIBS"
12005    else
12006        if test -n "$PKG_CONFIG" && \
12007    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.109.0\""; } >&5
12008  ($PKG_CONFIG --exists --print-errors "jack >= 0.109.0") 2>&5
12009  ac_status=$?
12010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12011  test $ac_status = 0; }; then
12012  pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.109.0" 2>/dev/null`
12013else
12014  pkg_failed=yes
12015fi
12016    fi
12017else
12018	pkg_failed=untried
12019fi
12020
12021
12022
12023if test $pkg_failed = yes; then
12024
12025if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12026        _pkg_short_errors_supported=yes
12027else
12028        _pkg_short_errors_supported=no
12029fi
12030        if test $_pkg_short_errors_supported = yes; then
12031	        JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "jack >= 0.109.0"`
12032        else
12033	        JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack >= 0.109.0"`
12034        fi
12035	# Put the nasty error message in config.log where it belongs
12036	echo "$JACK_PKG_ERRORS" >&5
12037
12038	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12039$as_echo "no" >&6; }
12040                true
12041
12042elif test $pkg_failed = untried; then
12043	true
12044
12045else
12046	JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
12047	JACK_LIBS=$pkg_cv_JACK_LIBS
12048        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12049$as_echo "yes" >&6; }
12050	HAVE_JACK_MIDI="true"
12051				  BRISTOL_HAS_JACK_MIDI=-D_BRISTOL_JACK_MIDI
12052
12053fi
12054
12055	else
12056		HAVE_JACK_MIDI="false"
12057	fi
12058	 if $HAVE_JACK_MIDI; then
12059  HAVE_JACK_MIDI_TRUE=
12060  HAVE_JACK_MIDI_FALSE='#'
12061else
12062  HAVE_JACK_MIDI_TRUE='#'
12063  HAVE_JACK_MIDI_FALSE=
12064fi
12065
12066
12067	# Check whether --enable-jack-single-close was given.
12068if test "${enable_jack_single_close+set}" = set; then :
12069  enableval=$enable_jack_single_close; JACK_SC=$enableval
12070else
12071  JACK_SC=yes
12072fi
12073
12074	if test "x$JACK_SC" = "xyes"
12075	then
12076		BRISTOL_JACK_MULTI_CLOSE=
12077	fi
12078
12079	# Check whether --enable-jack-default-audio was given.
12080if test "${enable_jack_default_audio+set}" = set; then :
12081  enableval=$enable_jack_default_audio; DEFAULT_JACK=$enableval
12082else
12083  DEFAULT_JACK=no
12084fi
12085
12086	if test "x$DEFAULT_JACK" = "xyes"
12087	then
12088		DEFAULT_AUDIO_FLAG=-jack
12089		BRISTOL_JACK_DEFAULT=-DBRISTOL_JACK_DEFAULT
12090
12091	fi
12092
12093	# Check whether --enable-jack-default-midi was given.
12094if test "${enable_jack_default_midi+set}" = set; then :
12095  enableval=$enable_jack_default_midi; DEFAULT_JACK_MIDI=$enableval
12096else
12097  DEFAULT_JACK_MIDI=no
12098fi
12099
12100	if test "x$DEFAULT_JACK_MIDI" = "xyes"
12101	then
12102		BRISTOL_JACK_DEFAULT_MIDI=-DBRISTOL_JACK_DEFAULT_MIDI
12103
12104	fi
12105
12106else
12107	JACK_CFLAGS=
12108	JACK_LIBS=
12109
12110
12111fi
12112 if $HAVE_JACK; then
12113  HAVE_JACK_TRUE=
12114  HAVE_JACK_FALSE='#'
12115else
12116  HAVE_JACK_TRUE='#'
12117  HAVE_JACK_FALSE=
12118fi
12119
12120 if $HAVE_JACK_MIDI; then
12121  HAVE_JACK_MIDI_TRUE=
12122  HAVE_JACK_MIDI_FALSE='#'
12123else
12124  HAVE_JACK_MIDI_TRUE='#'
12125  HAVE_JACK_MIDI_FALSE=
12126fi
12127
12128
12129
12130
12131## See about pulse audio
12132TRY_PA=no
12133BRISTOL_HAS_PA=
12134BRISTOL_PA_DIR=
12135BRISTOL_LIB_PA=
12136BRISTOL_LIBPALIBS=
12137# Check whether --enable-pulseaudio was given.
12138if test "${enable_pulseaudio+set}" = set; then :
12139  enableval=$enable_pulseaudio; TRY_PA=yes
12140else
12141  TRY_PA=no
12142fi
12143
12144ac_fn_c_check_header_mongrel "$LINENO" "pulse/pulseaudio.h" "ac_cv_header_pulse_pulseaudio_h" "$ac_includes_default"
12145if test "x$ac_cv_header_pulse_pulseaudio_h" = x""yes; then :
12146  HAVE_PA_HEADERS=true
12147else
12148  HAVE_PA_HEADERS=false
12149fi
12150
12151
12152if test x$TRY_PA = 'xyes'
12153then
12154	if test $HAVE_PA_HEADERS = 'true'
12155	then
12156		BRISTOL_HAS_PA=-DBRISTOL_PA
12157		BRISTOL_PA_DIR=libbristolpulse
12158		BRISTOL_LIB_PA='-lbristolpulse -lpulse -lpulse-simple'
12159		BRISTOL_LIBPALIBS=-L$BPALIBS
12160	else
12161		$TRY_PA=no
12162	fi
12163fi
12164
12165
12166
12167
12168
12169if test $prefix = "NONE"; then
12170	prefix=$ac_default_prefix
12171fi
12172
12173BRISTOL_DIR=$prefix/share/bristol
12174
12175
12176ac_config_files="$ac_config_files Makefile libbrightonC11/Makefile libbrightonX11/Makefile libbrighton/Makefile libbvg/Makefile libbristolaudio/Makefile libbristolmidi/Makefile libbristolic/Makefile libbristol/Makefile brighton/Makefile bristol/Makefile bin/startBristol bin/Makefile"
12177
12178cat >confcache <<\_ACEOF
12179# This file is a shell script that caches the results of configure
12180# tests run on this system so they can be shared between configure
12181# scripts and configure runs, see configure's option --config-cache.
12182# It is not useful on other systems.  If it contains results you don't
12183# want to keep, you may remove or edit it.
12184#
12185# config.status only pays attention to the cache file if you give it
12186# the --recheck option to rerun configure.
12187#
12188# `ac_cv_env_foo' variables (set or unset) will be overridden when
12189# loading this file, other *unset* `ac_cv_foo' will be assigned the
12190# following values.
12191
12192_ACEOF
12193
12194# The following way of writing the cache mishandles newlines in values,
12195# but we know of no workaround that is simple, portable, and efficient.
12196# So, we kill variables containing newlines.
12197# Ultrix sh set writes to stderr and can't be redirected directly,
12198# and sets the high bit in the cache file unless we assign to the vars.
12199(
12200  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12201    eval ac_val=\$$ac_var
12202    case $ac_val in #(
12203    *${as_nl}*)
12204      case $ac_var in #(
12205      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12206$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12207      esac
12208      case $ac_var in #(
12209      _ | IFS | as_nl) ;; #(
12210      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12211      *) { eval $ac_var=; unset $ac_var;} ;;
12212      esac ;;
12213    esac
12214  done
12215
12216  (set) 2>&1 |
12217    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12218    *${as_nl}ac_space=\ *)
12219      # `set' does not quote correctly, so add quotes: double-quote
12220      # substitution turns \\\\ into \\, and sed turns \\ into \.
12221      sed -n \
12222	"s/'/'\\\\''/g;
12223	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12224      ;; #(
12225    *)
12226      # `set' quotes correctly as required by POSIX, so do not add quotes.
12227      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12228      ;;
12229    esac |
12230    sort
12231) |
12232  sed '
12233     /^ac_cv_env_/b end
12234     t clear
12235     :clear
12236     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12237     t end
12238     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12239     :end' >>confcache
12240if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12241  if test -w "$cache_file"; then
12242    test "x$cache_file" != "x/dev/null" &&
12243      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12244$as_echo "$as_me: updating cache $cache_file" >&6;}
12245    cat confcache >$cache_file
12246  else
12247    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12248$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12249  fi
12250fi
12251rm -f confcache
12252
12253test "x$prefix" = xNONE && prefix=$ac_default_prefix
12254# Let make expand exec_prefix.
12255test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12256
12257DEFS=-DHAVE_CONFIG_H
12258
12259ac_libobjs=
12260ac_ltlibobjs=
12261for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12262  # 1. Remove the extension, and $U if already installed.
12263  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12264  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12265  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12266  #    will be set to the directory where LIBOBJS objects are built.
12267  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12268  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12269done
12270LIBOBJS=$ac_libobjs
12271
12272LTLIBOBJS=$ac_ltlibobjs
12273
12274
12275 if test -n "$EXEEXT"; then
12276  am__EXEEXT_TRUE=
12277  am__EXEEXT_FALSE='#'
12278else
12279  am__EXEEXT_TRUE='#'
12280  am__EXEEXT_FALSE=
12281fi
12282
12283if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12284  as_fn_error "conditional \"AMDEP\" was never defined.
12285Usually this means the macro was only invoked conditionally." "$LINENO" 5
12286fi
12287if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12288  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12289Usually this means the macro was only invoked conditionally." "$LINENO" 5
12290fi
12291if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12292  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12293Usually this means the macro was only invoked conditionally." "$LINENO" 5
12294fi
12295if test -z "${HAVE_JACK_MIDI_TRUE}" && test -z "${HAVE_JACK_MIDI_FALSE}"; then
12296  as_fn_error "conditional \"HAVE_JACK_MIDI\" was never defined.
12297Usually this means the macro was only invoked conditionally." "$LINENO" 5
12298fi
12299if test -z "${HAVE_JACK_TRUE}" && test -z "${HAVE_JACK_FALSE}"; then
12300  as_fn_error "conditional \"HAVE_JACK\" was never defined.
12301Usually this means the macro was only invoked conditionally." "$LINENO" 5
12302fi
12303if test -z "${HAVE_JACK_MIDI_TRUE}" && test -z "${HAVE_JACK_MIDI_FALSE}"; then
12304  as_fn_error "conditional \"HAVE_JACK_MIDI\" was never defined.
12305Usually this means the macro was only invoked conditionally." "$LINENO" 5
12306fi
12307
12308: ${CONFIG_STATUS=./config.status}
12309ac_write_fail=0
12310ac_clean_files_save=$ac_clean_files
12311ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12313$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12314as_write_fail=0
12315cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12316#! $SHELL
12317# Generated by $as_me.
12318# Run this file to recreate the current configuration.
12319# Compiler output produced by configure, useful for debugging
12320# configure, is in config.log if it exists.
12321
12322debug=false
12323ac_cs_recheck=false
12324ac_cs_silent=false
12325
12326SHELL=\${CONFIG_SHELL-$SHELL}
12327export SHELL
12328_ASEOF
12329cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12330## -------------------- ##
12331## M4sh Initialization. ##
12332## -------------------- ##
12333
12334# Be more Bourne compatible
12335DUALCASE=1; export DUALCASE # for MKS sh
12336if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12337  emulate sh
12338  NULLCMD=:
12339  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12340  # is contrary to our usage.  Disable this feature.
12341  alias -g '${1+"$@"}'='"$@"'
12342  setopt NO_GLOB_SUBST
12343else
12344  case `(set -o) 2>/dev/null` in #(
12345  *posix*) :
12346    set -o posix ;; #(
12347  *) :
12348     ;;
12349esac
12350fi
12351
12352
12353as_nl='
12354'
12355export as_nl
12356# Printing a long string crashes Solaris 7 /usr/bin/printf.
12357as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12358as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12359as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12360# Prefer a ksh shell builtin over an external printf program on Solaris,
12361# but without wasting forks for bash or zsh.
12362if test -z "$BASH_VERSION$ZSH_VERSION" \
12363    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12364  as_echo='print -r --'
12365  as_echo_n='print -rn --'
12366elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12367  as_echo='printf %s\n'
12368  as_echo_n='printf %s'
12369else
12370  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12371    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12372    as_echo_n='/usr/ucb/echo -n'
12373  else
12374    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12375    as_echo_n_body='eval
12376      arg=$1;
12377      case $arg in #(
12378      *"$as_nl"*)
12379	expr "X$arg" : "X\\(.*\\)$as_nl";
12380	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12381      esac;
12382      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12383    '
12384    export as_echo_n_body
12385    as_echo_n='sh -c $as_echo_n_body as_echo'
12386  fi
12387  export as_echo_body
12388  as_echo='sh -c $as_echo_body as_echo'
12389fi
12390
12391# The user is always right.
12392if test "${PATH_SEPARATOR+set}" != set; then
12393  PATH_SEPARATOR=:
12394  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12395    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12396      PATH_SEPARATOR=';'
12397  }
12398fi
12399
12400
12401# IFS
12402# We need space, tab and new line, in precisely that order.  Quoting is
12403# there to prevent editors from complaining about space-tab.
12404# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12405# splitting by setting IFS to empty value.)
12406IFS=" ""	$as_nl"
12407
12408# Find who we are.  Look in the path if we contain no directory separator.
12409case $0 in #((
12410  *[\\/]* ) as_myself=$0 ;;
12411  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412for as_dir in $PATH
12413do
12414  IFS=$as_save_IFS
12415  test -z "$as_dir" && as_dir=.
12416    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12417  done
12418IFS=$as_save_IFS
12419
12420     ;;
12421esac
12422# We did not find ourselves, most probably we were run as `sh COMMAND'
12423# in which case we are not to be found in the path.
12424if test "x$as_myself" = x; then
12425  as_myself=$0
12426fi
12427if test ! -f "$as_myself"; then
12428  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12429  exit 1
12430fi
12431
12432# Unset variables that we do not need and which cause bugs (e.g. in
12433# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12434# suppresses any "Segmentation fault" message there.  '((' could
12435# trigger a bug in pdksh 5.2.14.
12436for as_var in BASH_ENV ENV MAIL MAILPATH
12437do eval test x\${$as_var+set} = xset \
12438  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12439done
12440PS1='$ '
12441PS2='> '
12442PS4='+ '
12443
12444# NLS nuisances.
12445LC_ALL=C
12446export LC_ALL
12447LANGUAGE=C
12448export LANGUAGE
12449
12450# CDPATH.
12451(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12452
12453
12454# as_fn_error ERROR [LINENO LOG_FD]
12455# ---------------------------------
12456# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12457# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12458# script with status $?, using 1 if that was 0.
12459as_fn_error ()
12460{
12461  as_status=$?; test $as_status -eq 0 && as_status=1
12462  if test "$3"; then
12463    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12464    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12465  fi
12466  $as_echo "$as_me: error: $1" >&2
12467  as_fn_exit $as_status
12468} # as_fn_error
12469
12470
12471# as_fn_set_status STATUS
12472# -----------------------
12473# Set $? to STATUS, without forking.
12474as_fn_set_status ()
12475{
12476  return $1
12477} # as_fn_set_status
12478
12479# as_fn_exit STATUS
12480# -----------------
12481# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12482as_fn_exit ()
12483{
12484  set +e
12485  as_fn_set_status $1
12486  exit $1
12487} # as_fn_exit
12488
12489# as_fn_unset VAR
12490# ---------------
12491# Portably unset VAR.
12492as_fn_unset ()
12493{
12494  { eval $1=; unset $1;}
12495}
12496as_unset=as_fn_unset
12497# as_fn_append VAR VALUE
12498# ----------------------
12499# Append the text in VALUE to the end of the definition contained in VAR. Take
12500# advantage of any shell optimizations that allow amortized linear growth over
12501# repeated appends, instead of the typical quadratic growth present in naive
12502# implementations.
12503if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12504  eval 'as_fn_append ()
12505  {
12506    eval $1+=\$2
12507  }'
12508else
12509  as_fn_append ()
12510  {
12511    eval $1=\$$1\$2
12512  }
12513fi # as_fn_append
12514
12515# as_fn_arith ARG...
12516# ------------------
12517# Perform arithmetic evaluation on the ARGs, and store the result in the
12518# global $as_val. Take advantage of shells that can avoid forks. The arguments
12519# must be portable across $(()) and expr.
12520if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12521  eval 'as_fn_arith ()
12522  {
12523    as_val=$(( $* ))
12524  }'
12525else
12526  as_fn_arith ()
12527  {
12528    as_val=`expr "$@" || test $? -eq 1`
12529  }
12530fi # as_fn_arith
12531
12532
12533if expr a : '\(a\)' >/dev/null 2>&1 &&
12534   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12535  as_expr=expr
12536else
12537  as_expr=false
12538fi
12539
12540if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12541  as_basename=basename
12542else
12543  as_basename=false
12544fi
12545
12546if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12547  as_dirname=dirname
12548else
12549  as_dirname=false
12550fi
12551
12552as_me=`$as_basename -- "$0" ||
12553$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12554	 X"$0" : 'X\(//\)$' \| \
12555	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12556$as_echo X/"$0" |
12557    sed '/^.*\/\([^/][^/]*\)\/*$/{
12558	    s//\1/
12559	    q
12560	  }
12561	  /^X\/\(\/\/\)$/{
12562	    s//\1/
12563	    q
12564	  }
12565	  /^X\/\(\/\).*/{
12566	    s//\1/
12567	    q
12568	  }
12569	  s/.*/./; q'`
12570
12571# Avoid depending upon Character Ranges.
12572as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12573as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12574as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12575as_cr_digits='0123456789'
12576as_cr_alnum=$as_cr_Letters$as_cr_digits
12577
12578ECHO_C= ECHO_N= ECHO_T=
12579case `echo -n x` in #(((((
12580-n*)
12581  case `echo 'xy\c'` in
12582  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12583  xy)  ECHO_C='\c';;
12584  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12585       ECHO_T='	';;
12586  esac;;
12587*)
12588  ECHO_N='-n';;
12589esac
12590
12591rm -f conf$$ conf$$.exe conf$$.file
12592if test -d conf$$.dir; then
12593  rm -f conf$$.dir/conf$$.file
12594else
12595  rm -f conf$$.dir
12596  mkdir conf$$.dir 2>/dev/null
12597fi
12598if (echo >conf$$.file) 2>/dev/null; then
12599  if ln -s conf$$.file conf$$ 2>/dev/null; then
12600    as_ln_s='ln -s'
12601    # ... but there are two gotchas:
12602    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12603    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12604    # In both cases, we have to default to `cp -p'.
12605    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12606      as_ln_s='cp -p'
12607  elif ln conf$$.file conf$$ 2>/dev/null; then
12608    as_ln_s=ln
12609  else
12610    as_ln_s='cp -p'
12611  fi
12612else
12613  as_ln_s='cp -p'
12614fi
12615rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12616rmdir conf$$.dir 2>/dev/null
12617
12618
12619# as_fn_mkdir_p
12620# -------------
12621# Create "$as_dir" as a directory, including parents if necessary.
12622as_fn_mkdir_p ()
12623{
12624
12625  case $as_dir in #(
12626  -*) as_dir=./$as_dir;;
12627  esac
12628  test -d "$as_dir" || eval $as_mkdir_p || {
12629    as_dirs=
12630    while :; do
12631      case $as_dir in #(
12632      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12633      *) as_qdir=$as_dir;;
12634      esac
12635      as_dirs="'$as_qdir' $as_dirs"
12636      as_dir=`$as_dirname -- "$as_dir" ||
12637$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12638	 X"$as_dir" : 'X\(//\)[^/]' \| \
12639	 X"$as_dir" : 'X\(//\)$' \| \
12640	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12641$as_echo X"$as_dir" |
12642    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12643	    s//\1/
12644	    q
12645	  }
12646	  /^X\(\/\/\)[^/].*/{
12647	    s//\1/
12648	    q
12649	  }
12650	  /^X\(\/\/\)$/{
12651	    s//\1/
12652	    q
12653	  }
12654	  /^X\(\/\).*/{
12655	    s//\1/
12656	    q
12657	  }
12658	  s/.*/./; q'`
12659      test -d "$as_dir" && break
12660    done
12661    test -z "$as_dirs" || eval "mkdir $as_dirs"
12662  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12663
12664
12665} # as_fn_mkdir_p
12666if mkdir -p . 2>/dev/null; then
12667  as_mkdir_p='mkdir -p "$as_dir"'
12668else
12669  test -d ./-p && rmdir ./-p
12670  as_mkdir_p=false
12671fi
12672
12673if test -x / >/dev/null 2>&1; then
12674  as_test_x='test -x'
12675else
12676  if ls -dL / >/dev/null 2>&1; then
12677    as_ls_L_option=L
12678  else
12679    as_ls_L_option=
12680  fi
12681  as_test_x='
12682    eval sh -c '\''
12683      if test -d "$1"; then
12684	test -d "$1/.";
12685      else
12686	case $1 in #(
12687	-*)set "./$1";;
12688	esac;
12689	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12690	???[sx]*):;;*)false;;esac;fi
12691    '\'' sh
12692  '
12693fi
12694as_executable_p=$as_test_x
12695
12696# Sed expression to map a string onto a valid CPP name.
12697as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12698
12699# Sed expression to map a string onto a valid variable name.
12700as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12701
12702
12703exec 6>&1
12704## ----------------------------------- ##
12705## Main body of $CONFIG_STATUS script. ##
12706## ----------------------------------- ##
12707_ASEOF
12708test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12709
12710cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12711# Save the log message, to keep $0 and so on meaningful, and to
12712# report actual input values of CONFIG_FILES etc. instead of their
12713# values after options handling.
12714ac_log="
12715This file was extended by $as_me, which was
12716generated by GNU Autoconf 2.65.  Invocation command line was
12717
12718  CONFIG_FILES    = $CONFIG_FILES
12719  CONFIG_HEADERS  = $CONFIG_HEADERS
12720  CONFIG_LINKS    = $CONFIG_LINKS
12721  CONFIG_COMMANDS = $CONFIG_COMMANDS
12722  $ $0 $@
12723
12724on `(hostname || uname -n) 2>/dev/null | sed 1q`
12725"
12726
12727_ACEOF
12728
12729case $ac_config_files in *"
12730"*) set x $ac_config_files; shift; ac_config_files=$*;;
12731esac
12732
12733case $ac_config_headers in *"
12734"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12735esac
12736
12737
12738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12739# Files that config.status was made for.
12740config_files="$ac_config_files"
12741config_headers="$ac_config_headers"
12742config_commands="$ac_config_commands"
12743
12744_ACEOF
12745
12746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12747ac_cs_usage="\
12748\`$as_me' instantiates files and other configuration actions
12749from templates according to the current configuration.  Unless the files
12750and actions are specified as TAGs, all are instantiated by default.
12751
12752Usage: $0 [OPTION]... [TAG]...
12753
12754  -h, --help       print this help, then exit
12755  -V, --version    print version number and configuration settings, then exit
12756      --config     print configuration, then exit
12757  -q, --quiet, --silent
12758                   do not print progress messages
12759  -d, --debug      don't remove temporary files
12760      --recheck    update $as_me by reconfiguring in the same conditions
12761      --file=FILE[:TEMPLATE]
12762                   instantiate the configuration file FILE
12763      --header=FILE[:TEMPLATE]
12764                   instantiate the configuration header FILE
12765
12766Configuration files:
12767$config_files
12768
12769Configuration headers:
12770$config_headers
12771
12772Configuration commands:
12773$config_commands
12774
12775Report bugs to the package provider."
12776
12777_ACEOF
12778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12779ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12780ac_cs_version="\\
12781config.status
12782configured by $0, generated by GNU Autoconf 2.65,
12783  with options \\"\$ac_cs_config\\"
12784
12785Copyright (C) 2009 Free Software Foundation, Inc.
12786This config.status script is free software; the Free Software Foundation
12787gives unlimited permission to copy, distribute and modify it."
12788
12789ac_pwd='$ac_pwd'
12790srcdir='$srcdir'
12791INSTALL='$INSTALL'
12792MKDIR_P='$MKDIR_P'
12793AWK='$AWK'
12794test -n "\$AWK" || AWK=awk
12795_ACEOF
12796
12797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12798# The default lists apply if the user does not specify any file.
12799ac_need_defaults=:
12800while test $# != 0
12801do
12802  case $1 in
12803  --*=*)
12804    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12805    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12806    ac_shift=:
12807    ;;
12808  *)
12809    ac_option=$1
12810    ac_optarg=$2
12811    ac_shift=shift
12812    ;;
12813  esac
12814
12815  case $ac_option in
12816  # Handling of the options.
12817  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12818    ac_cs_recheck=: ;;
12819  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12820    $as_echo "$ac_cs_version"; exit ;;
12821  --config | --confi | --conf | --con | --co | --c )
12822    $as_echo "$ac_cs_config"; exit ;;
12823  --debug | --debu | --deb | --de | --d | -d )
12824    debug=: ;;
12825  --file | --fil | --fi | --f )
12826    $ac_shift
12827    case $ac_optarg in
12828    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12829    esac
12830    as_fn_append CONFIG_FILES " '$ac_optarg'"
12831    ac_need_defaults=false;;
12832  --header | --heade | --head | --hea )
12833    $ac_shift
12834    case $ac_optarg in
12835    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12836    esac
12837    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12838    ac_need_defaults=false;;
12839  --he | --h)
12840    # Conflict between --help and --header
12841    as_fn_error "ambiguous option: \`$1'
12842Try \`$0 --help' for more information.";;
12843  --help | --hel | -h )
12844    $as_echo "$ac_cs_usage"; exit ;;
12845  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12846  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12847    ac_cs_silent=: ;;
12848
12849  # This is an error.
12850  -*) as_fn_error "unrecognized option: \`$1'
12851Try \`$0 --help' for more information." ;;
12852
12853  *) as_fn_append ac_config_targets " $1"
12854     ac_need_defaults=false ;;
12855
12856  esac
12857  shift
12858done
12859
12860ac_configure_extra_args=
12861
12862if $ac_cs_silent; then
12863  exec 6>/dev/null
12864  ac_configure_extra_args="$ac_configure_extra_args --silent"
12865fi
12866
12867_ACEOF
12868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12869if \$ac_cs_recheck; then
12870  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12871  shift
12872  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12873  CONFIG_SHELL='$SHELL'
12874  export CONFIG_SHELL
12875  exec "\$@"
12876fi
12877
12878_ACEOF
12879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12880exec 5>>config.log
12881{
12882  echo
12883  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12884## Running $as_me. ##
12885_ASBOX
12886  $as_echo "$ac_log"
12887} >&5
12888
12889_ACEOF
12890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12891#
12892# INIT-COMMANDS
12893#
12894AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12895
12896
12897# The HP-UX ksh and POSIX shell print the target directory to stdout
12898# if CDPATH is set.
12899(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12900
12901sed_quote_subst='$sed_quote_subst'
12902double_quote_subst='$double_quote_subst'
12903delay_variable_subst='$delay_variable_subst'
12904macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12905macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12906enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12907enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12908pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12909enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12910host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12911host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12912host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12913build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12914build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12915build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12916SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12917Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12918GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12919EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12920FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12921LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12922NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12923LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12924max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12925ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12926exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12927lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12928lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12929lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12930reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12931reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12932OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12933deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12934file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12935AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12936AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12937STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12938RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12939old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12940old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12941old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12942CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12943CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12944compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12945GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12946lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12947lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12948lt_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"`'
12949lt_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"`'
12950objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12951SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12952ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12953MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12954lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12955lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12956lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12957lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12958lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12959need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12960DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12961NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12962LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12963OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12964OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12965libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12966shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12967extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12968archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12969enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12970export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12971whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12972compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12973old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12974old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12975archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12976archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12977module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12978module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12979with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12980allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12981no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12982hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12983hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12984hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12985hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12986hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12987hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12988hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12989hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12990inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12991link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12992fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12993always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12994export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12995exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12996include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12997prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12998file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12999variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13000need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13001need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13002version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13003runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13004shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13005shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13006libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13007library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13008soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13009postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13010postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13011finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13012finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13013hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13014sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13015sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13016hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13017enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13018enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13019enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13020old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13021striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13022
13023LTCC='$LTCC'
13024LTCFLAGS='$LTCFLAGS'
13025compiler='$compiler_DEFAULT'
13026
13027# Quote evaled strings.
13028for var in SED \
13029GREP \
13030EGREP \
13031FGREP \
13032LD \
13033NM \
13034LN_S \
13035lt_SP2NL \
13036lt_NL2SP \
13037reload_flag \
13038OBJDUMP \
13039deplibs_check_method \
13040file_magic_cmd \
13041AR \
13042AR_FLAGS \
13043STRIP \
13044RANLIB \
13045CC \
13046CFLAGS \
13047compiler \
13048lt_cv_sys_global_symbol_pipe \
13049lt_cv_sys_global_symbol_to_cdecl \
13050lt_cv_sys_global_symbol_to_c_name_address \
13051lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13052SHELL \
13053ECHO \
13054lt_prog_compiler_no_builtin_flag \
13055lt_prog_compiler_wl \
13056lt_prog_compiler_pic \
13057lt_prog_compiler_static \
13058lt_cv_prog_compiler_c_o \
13059need_locks \
13060DSYMUTIL \
13061NMEDIT \
13062LIPO \
13063OTOOL \
13064OTOOL64 \
13065shrext_cmds \
13066export_dynamic_flag_spec \
13067whole_archive_flag_spec \
13068compiler_needs_object \
13069with_gnu_ld \
13070allow_undefined_flag \
13071no_undefined_flag \
13072hardcode_libdir_flag_spec \
13073hardcode_libdir_flag_spec_ld \
13074hardcode_libdir_separator \
13075fix_srcfile_path \
13076exclude_expsyms \
13077include_expsyms \
13078file_list_spec \
13079variables_saved_for_relink \
13080libname_spec \
13081library_names_spec \
13082soname_spec \
13083finish_eval \
13084old_striplib \
13085striplib; do
13086    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13087    *[\\\\\\\`\\"\\\$]*)
13088      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13089      ;;
13090    *)
13091      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13092      ;;
13093    esac
13094done
13095
13096# Double-quote double-evaled strings.
13097for var in reload_cmds \
13098old_postinstall_cmds \
13099old_postuninstall_cmds \
13100old_archive_cmds \
13101extract_expsyms_cmds \
13102old_archive_from_new_cmds \
13103old_archive_from_expsyms_cmds \
13104archive_cmds \
13105archive_expsym_cmds \
13106module_cmds \
13107module_expsym_cmds \
13108export_symbols_cmds \
13109prelink_cmds \
13110postinstall_cmds \
13111postuninstall_cmds \
13112finish_cmds \
13113sys_lib_search_path_spec \
13114sys_lib_dlsearch_path_spec; do
13115    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13116    *[\\\\\\\`\\"\\\$]*)
13117      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13118      ;;
13119    *)
13120      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13121      ;;
13122    esac
13123done
13124
13125# Fix-up fallback echo if it was mangled by the above quoting rules.
13126case \$lt_ECHO in
13127*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13128  ;;
13129esac
13130
13131ac_aux_dir='$ac_aux_dir'
13132xsi_shell='$xsi_shell'
13133lt_shell_append='$lt_shell_append'
13134
13135# See if we are running on zsh, and set the options which allow our
13136# commands through without removal of \ escapes INIT.
13137if test -n "\${ZSH_VERSION+set}" ; then
13138   setopt NO_GLOB_SUBST
13139fi
13140
13141
13142    PACKAGE='$PACKAGE'
13143    VERSION='$VERSION'
13144    TIMESTAMP='$TIMESTAMP'
13145    RM='$RM'
13146    ofile='$ofile'
13147
13148
13149
13150
13151_ACEOF
13152
13153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13154
13155# Handling of arguments.
13156for ac_config_target in $ac_config_targets
13157do
13158  case $ac_config_target in
13159    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13160    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13161    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13162    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13163    "libbrightonC11/Makefile") CONFIG_FILES="$CONFIG_FILES libbrightonC11/Makefile" ;;
13164    "libbrightonX11/Makefile") CONFIG_FILES="$CONFIG_FILES libbrightonX11/Makefile" ;;
13165    "libbrighton/Makefile") CONFIG_FILES="$CONFIG_FILES libbrighton/Makefile" ;;
13166    "libbvg/Makefile") CONFIG_FILES="$CONFIG_FILES libbvg/Makefile" ;;
13167    "libbristolaudio/Makefile") CONFIG_FILES="$CONFIG_FILES libbristolaudio/Makefile" ;;
13168    "libbristolmidi/Makefile") CONFIG_FILES="$CONFIG_FILES libbristolmidi/Makefile" ;;
13169    "libbristolic/Makefile") CONFIG_FILES="$CONFIG_FILES libbristolic/Makefile" ;;
13170    "libbristol/Makefile") CONFIG_FILES="$CONFIG_FILES libbristol/Makefile" ;;
13171    "brighton/Makefile") CONFIG_FILES="$CONFIG_FILES brighton/Makefile" ;;
13172    "bristol/Makefile") CONFIG_FILES="$CONFIG_FILES bristol/Makefile" ;;
13173    "bin/startBristol") CONFIG_FILES="$CONFIG_FILES bin/startBristol" ;;
13174    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
13175
13176  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13177  esac
13178done
13179
13180
13181# If the user did not use the arguments to specify the items to instantiate,
13182# then the envvar interface is used.  Set only those that are not.
13183# We use the long form for the default assignment because of an extremely
13184# bizarre bug on SunOS 4.1.3.
13185if $ac_need_defaults; then
13186  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13187  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13188  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13189fi
13190
13191# Have a temporary directory for convenience.  Make it in the build tree
13192# simply because there is no reason against having it here, and in addition,
13193# creating and moving files from /tmp can sometimes cause problems.
13194# Hook for its removal unless debugging.
13195# Note that there is a small window in which the directory will not be cleaned:
13196# after its creation but before its name has been assigned to `$tmp'.
13197$debug ||
13198{
13199  tmp=
13200  trap 'exit_status=$?
13201  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13202' 0
13203  trap 'as_fn_exit 1' 1 2 13 15
13204}
13205# Create a (secure) tmp directory for tmp files.
13206
13207{
13208  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13209  test -n "$tmp" && test -d "$tmp"
13210}  ||
13211{
13212  tmp=./conf$$-$RANDOM
13213  (umask 077 && mkdir "$tmp")
13214} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13215
13216# Set up the scripts for CONFIG_FILES section.
13217# No need to generate them if there are no CONFIG_FILES.
13218# This happens for instance with `./config.status config.h'.
13219if test -n "$CONFIG_FILES"; then
13220
13221
13222ac_cr=`echo X | tr X '\015'`
13223# On cygwin, bash can eat \r inside `` if the user requested igncr.
13224# But we know of no other shell where ac_cr would be empty at this
13225# point, so we can use a bashism as a fallback.
13226if test "x$ac_cr" = x; then
13227  eval ac_cr=\$\'\\r\'
13228fi
13229ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13230if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13231  ac_cs_awk_cr='\r'
13232else
13233  ac_cs_awk_cr=$ac_cr
13234fi
13235
13236echo 'BEGIN {' >"$tmp/subs1.awk" &&
13237_ACEOF
13238
13239
13240{
13241  echo "cat >conf$$subs.awk <<_ACEOF" &&
13242  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13243  echo "_ACEOF"
13244} >conf$$subs.sh ||
13245  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13246ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13247ac_delim='%!_!# '
13248for ac_last_try in false false false false false :; do
13249  . ./conf$$subs.sh ||
13250    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13251
13252  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13253  if test $ac_delim_n = $ac_delim_num; then
13254    break
13255  elif $ac_last_try; then
13256    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13257  else
13258    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13259  fi
13260done
13261rm -f conf$$subs.sh
13262
13263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13264cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13265_ACEOF
13266sed -n '
13267h
13268s/^/S["/; s/!.*/"]=/
13269p
13270g
13271s/^[^!]*!//
13272:repl
13273t repl
13274s/'"$ac_delim"'$//
13275t delim
13276:nl
13277h
13278s/\(.\{148\}\)..*/\1/
13279t more1
13280s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13281p
13282n
13283b repl
13284:more1
13285s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13286p
13287g
13288s/.\{148\}//
13289t nl
13290:delim
13291h
13292s/\(.\{148\}\)..*/\1/
13293t more2
13294s/["\\]/\\&/g; s/^/"/; s/$/"/
13295p
13296b
13297:more2
13298s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13299p
13300g
13301s/.\{148\}//
13302t delim
13303' <conf$$subs.awk | sed '
13304/^[^""]/{
13305  N
13306  s/\n//
13307}
13308' >>$CONFIG_STATUS || ac_write_fail=1
13309rm -f conf$$subs.awk
13310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13311_ACAWK
13312cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13313  for (key in S) S_is_set[key] = 1
13314  FS = ""
13315
13316}
13317{
13318  line = $ 0
13319  nfields = split(line, field, "@")
13320  substed = 0
13321  len = length(field[1])
13322  for (i = 2; i < nfields; i++) {
13323    key = field[i]
13324    keylen = length(key)
13325    if (S_is_set[key]) {
13326      value = S[key]
13327      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13328      len += length(value) + length(field[++i])
13329      substed = 1
13330    } else
13331      len += 1 + keylen
13332  }
13333
13334  print line
13335}
13336
13337_ACAWK
13338_ACEOF
13339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13340if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13341  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13342else
13343  cat
13344fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13345  || as_fn_error "could not setup config files machinery" "$LINENO" 5
13346_ACEOF
13347
13348# VPATH may cause trouble with some makes, so we remove $(srcdir),
13349# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13350# trailing colons and then remove the whole line if VPATH becomes empty
13351# (actually we leave an empty line to preserve line numbers).
13352if test "x$srcdir" = x.; then
13353  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13354s/:*\$(srcdir):*/:/
13355s/:*\${srcdir}:*/:/
13356s/:*@srcdir@:*/:/
13357s/^\([^=]*=[	 ]*\):*/\1/
13358s/:*$//
13359s/^[^=]*=[	 ]*$//
13360}'
13361fi
13362
13363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13364fi # test -n "$CONFIG_FILES"
13365
13366# Set up the scripts for CONFIG_HEADERS section.
13367# No need to generate them if there are no CONFIG_HEADERS.
13368# This happens for instance with `./config.status Makefile'.
13369if test -n "$CONFIG_HEADERS"; then
13370cat >"$tmp/defines.awk" <<\_ACAWK ||
13371BEGIN {
13372_ACEOF
13373
13374# Transform confdefs.h into an awk script `defines.awk', embedded as
13375# here-document in config.status, that substitutes the proper values into
13376# config.h.in to produce config.h.
13377
13378# Create a delimiter string that does not exist in confdefs.h, to ease
13379# handling of long lines.
13380ac_delim='%!_!# '
13381for ac_last_try in false false :; do
13382  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13383  if test -z "$ac_t"; then
13384    break
13385  elif $ac_last_try; then
13386    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13387  else
13388    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13389  fi
13390done
13391
13392# For the awk script, D is an array of macro values keyed by name,
13393# likewise P contains macro parameters if any.  Preserve backslash
13394# newline sequences.
13395
13396ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13397sed -n '
13398s/.\{148\}/&'"$ac_delim"'/g
13399t rset
13400:rset
13401s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13402t def
13403d
13404:def
13405s/\\$//
13406t bsnl
13407s/["\\]/\\&/g
13408s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13409D["\1"]=" \3"/p
13410s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13411d
13412:bsnl
13413s/["\\]/\\&/g
13414s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13415D["\1"]=" \3\\\\\\n"\\/p
13416t cont
13417s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13418t cont
13419d
13420:cont
13421n
13422s/.\{148\}/&'"$ac_delim"'/g
13423t clear
13424:clear
13425s/\\$//
13426t bsnlc
13427s/["\\]/\\&/g; s/^/"/; s/$/"/p
13428d
13429:bsnlc
13430s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13431b cont
13432' <confdefs.h | sed '
13433s/'"$ac_delim"'/"\\\
13434"/g' >>$CONFIG_STATUS || ac_write_fail=1
13435
13436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13437  for (key in D) D_is_set[key] = 1
13438  FS = ""
13439}
13440/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13441  line = \$ 0
13442  split(line, arg, " ")
13443  if (arg[1] == "#") {
13444    defundef = arg[2]
13445    mac1 = arg[3]
13446  } else {
13447    defundef = substr(arg[1], 2)
13448    mac1 = arg[2]
13449  }
13450  split(mac1, mac2, "(") #)
13451  macro = mac2[1]
13452  prefix = substr(line, 1, index(line, defundef) - 1)
13453  if (D_is_set[macro]) {
13454    # Preserve the white space surrounding the "#".
13455    print prefix "define", macro P[macro] D[macro]
13456    next
13457  } else {
13458    # Replace #undef with comments.  This is necessary, for example,
13459    # in the case of _POSIX_SOURCE, which is predefined and required
13460    # on some systems where configure will not decide to define it.
13461    if (defundef == "undef") {
13462      print "/*", prefix defundef, macro, "*/"
13463      next
13464    }
13465  }
13466}
13467{ print }
13468_ACAWK
13469_ACEOF
13470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13471  as_fn_error "could not setup config headers machinery" "$LINENO" 5
13472fi # test -n "$CONFIG_HEADERS"
13473
13474
13475eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13476shift
13477for ac_tag
13478do
13479  case $ac_tag in
13480  :[FHLC]) ac_mode=$ac_tag; continue;;
13481  esac
13482  case $ac_mode$ac_tag in
13483  :[FHL]*:*);;
13484  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13485  :[FH]-) ac_tag=-:-;;
13486  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13487  esac
13488  ac_save_IFS=$IFS
13489  IFS=:
13490  set x $ac_tag
13491  IFS=$ac_save_IFS
13492  shift
13493  ac_file=$1
13494  shift
13495
13496  case $ac_mode in
13497  :L) ac_source=$1;;
13498  :[FH])
13499    ac_file_inputs=
13500    for ac_f
13501    do
13502      case $ac_f in
13503      -) ac_f="$tmp/stdin";;
13504      *) # Look for the file first in the build tree, then in the source tree
13505	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13506	 # because $ac_f cannot contain `:'.
13507	 test -f "$ac_f" ||
13508	   case $ac_f in
13509	   [\\/$]*) false;;
13510	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13511	   esac ||
13512	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13513      esac
13514      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13515      as_fn_append ac_file_inputs " '$ac_f'"
13516    done
13517
13518    # Let's still pretend it is `configure' which instantiates (i.e., don't
13519    # use $as_me), people would be surprised to read:
13520    #    /* config.h.  Generated by config.status.  */
13521    configure_input='Generated from '`
13522	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13523	`' by configure.'
13524    if test x"$ac_file" != x-; then
13525      configure_input="$ac_file.  $configure_input"
13526      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13527$as_echo "$as_me: creating $ac_file" >&6;}
13528    fi
13529    # Neutralize special characters interpreted by sed in replacement strings.
13530    case $configure_input in #(
13531    *\&* | *\|* | *\\* )
13532       ac_sed_conf_input=`$as_echo "$configure_input" |
13533       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13534    *) ac_sed_conf_input=$configure_input;;
13535    esac
13536
13537    case $ac_tag in
13538    *:-:* | *:-) cat >"$tmp/stdin" \
13539      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13540    esac
13541    ;;
13542  esac
13543
13544  ac_dir=`$as_dirname -- "$ac_file" ||
13545$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13546	 X"$ac_file" : 'X\(//\)[^/]' \| \
13547	 X"$ac_file" : 'X\(//\)$' \| \
13548	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13549$as_echo X"$ac_file" |
13550    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13551	    s//\1/
13552	    q
13553	  }
13554	  /^X\(\/\/\)[^/].*/{
13555	    s//\1/
13556	    q
13557	  }
13558	  /^X\(\/\/\)$/{
13559	    s//\1/
13560	    q
13561	  }
13562	  /^X\(\/\).*/{
13563	    s//\1/
13564	    q
13565	  }
13566	  s/.*/./; q'`
13567  as_dir="$ac_dir"; as_fn_mkdir_p
13568  ac_builddir=.
13569
13570case "$ac_dir" in
13571.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13572*)
13573  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13574  # A ".." for each directory in $ac_dir_suffix.
13575  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13576  case $ac_top_builddir_sub in
13577  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13578  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13579  esac ;;
13580esac
13581ac_abs_top_builddir=$ac_pwd
13582ac_abs_builddir=$ac_pwd$ac_dir_suffix
13583# for backward compatibility:
13584ac_top_builddir=$ac_top_build_prefix
13585
13586case $srcdir in
13587  .)  # We are building in place.
13588    ac_srcdir=.
13589    ac_top_srcdir=$ac_top_builddir_sub
13590    ac_abs_top_srcdir=$ac_pwd ;;
13591  [\\/]* | ?:[\\/]* )  # Absolute name.
13592    ac_srcdir=$srcdir$ac_dir_suffix;
13593    ac_top_srcdir=$srcdir
13594    ac_abs_top_srcdir=$srcdir ;;
13595  *) # Relative name.
13596    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13597    ac_top_srcdir=$ac_top_build_prefix$srcdir
13598    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13599esac
13600ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13601
13602
13603  case $ac_mode in
13604  :F)
13605  #
13606  # CONFIG_FILE
13607  #
13608
13609  case $INSTALL in
13610  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13611  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13612  esac
13613  ac_MKDIR_P=$MKDIR_P
13614  case $MKDIR_P in
13615  [\\/$]* | ?:[\\/]* ) ;;
13616  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13617  esac
13618_ACEOF
13619
13620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13621# If the template does not know about datarootdir, expand it.
13622# FIXME: This hack should be removed a few years after 2.60.
13623ac_datarootdir_hack=; ac_datarootdir_seen=
13624ac_sed_dataroot='
13625/datarootdir/ {
13626  p
13627  q
13628}
13629/@datadir@/p
13630/@docdir@/p
13631/@infodir@/p
13632/@localedir@/p
13633/@mandir@/p'
13634case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13635*datarootdir*) ac_datarootdir_seen=yes;;
13636*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13637  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13638$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13639_ACEOF
13640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13641  ac_datarootdir_hack='
13642  s&@datadir@&$datadir&g
13643  s&@docdir@&$docdir&g
13644  s&@infodir@&$infodir&g
13645  s&@localedir@&$localedir&g
13646  s&@mandir@&$mandir&g
13647  s&\\\${datarootdir}&$datarootdir&g' ;;
13648esac
13649_ACEOF
13650
13651# Neutralize VPATH when `$srcdir' = `.'.
13652# Shell code in configure.ac might set extrasub.
13653# FIXME: do we really want to maintain this feature?
13654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13655ac_sed_extra="$ac_vpsub
13656$extrasub
13657_ACEOF
13658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13659:t
13660/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13661s|@configure_input@|$ac_sed_conf_input|;t t
13662s&@top_builddir@&$ac_top_builddir_sub&;t t
13663s&@top_build_prefix@&$ac_top_build_prefix&;t t
13664s&@srcdir@&$ac_srcdir&;t t
13665s&@abs_srcdir@&$ac_abs_srcdir&;t t
13666s&@top_srcdir@&$ac_top_srcdir&;t t
13667s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13668s&@builddir@&$ac_builddir&;t t
13669s&@abs_builddir@&$ac_abs_builddir&;t t
13670s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13671s&@INSTALL@&$ac_INSTALL&;t t
13672s&@MKDIR_P@&$ac_MKDIR_P&;t t
13673$ac_datarootdir_hack
13674"
13675eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13676  || as_fn_error "could not create $ac_file" "$LINENO" 5
13677
13678test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13679  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13680  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13681  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13682which seems to be undefined.  Please make sure it is defined." >&5
13683$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13684which seems to be undefined.  Please make sure it is defined." >&2;}
13685
13686  rm -f "$tmp/stdin"
13687  case $ac_file in
13688  -) cat "$tmp/out" && rm -f "$tmp/out";;
13689  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13690  esac \
13691  || as_fn_error "could not create $ac_file" "$LINENO" 5
13692 ;;
13693  :H)
13694  #
13695  # CONFIG_HEADER
13696  #
13697  if test x"$ac_file" != x-; then
13698    {
13699      $as_echo "/* $configure_input  */" \
13700      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13701    } >"$tmp/config.h" \
13702      || as_fn_error "could not create $ac_file" "$LINENO" 5
13703    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13704      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13705$as_echo "$as_me: $ac_file is unchanged" >&6;}
13706    else
13707      rm -f "$ac_file"
13708      mv "$tmp/config.h" "$ac_file" \
13709	|| as_fn_error "could not create $ac_file" "$LINENO" 5
13710    fi
13711  else
13712    $as_echo "/* $configure_input  */" \
13713      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13714      || as_fn_error "could not create -" "$LINENO" 5
13715  fi
13716# Compute "$ac_file"'s index in $config_headers.
13717_am_arg="$ac_file"
13718_am_stamp_count=1
13719for _am_header in $config_headers :; do
13720  case $_am_header in
13721    $_am_arg | $_am_arg:* )
13722      break ;;
13723    * )
13724      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13725  esac
13726done
13727echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13728$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13729	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13730	 X"$_am_arg" : 'X\(//\)$' \| \
13731	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13732$as_echo X"$_am_arg" |
13733    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13734	    s//\1/
13735	    q
13736	  }
13737	  /^X\(\/\/\)[^/].*/{
13738	    s//\1/
13739	    q
13740	  }
13741	  /^X\(\/\/\)$/{
13742	    s//\1/
13743	    q
13744	  }
13745	  /^X\(\/\).*/{
13746	    s//\1/
13747	    q
13748	  }
13749	  s/.*/./; q'`/stamp-h$_am_stamp_count
13750 ;;
13751
13752  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13753$as_echo "$as_me: executing $ac_file commands" >&6;}
13754 ;;
13755  esac
13756
13757
13758  case $ac_file$ac_mode in
13759    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13760  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13761  # are listed without --file.  Let's play safe and only enable the eval
13762  # if we detect the quoting.
13763  case $CONFIG_FILES in
13764  *\'*) eval set x "$CONFIG_FILES" ;;
13765  *)   set x $CONFIG_FILES ;;
13766  esac
13767  shift
13768  for mf
13769  do
13770    # Strip MF so we end up with the name of the file.
13771    mf=`echo "$mf" | sed -e 's/:.*$//'`
13772    # Check whether this is an Automake generated Makefile or not.
13773    # We used to match only the files named `Makefile.in', but
13774    # some people rename them; so instead we look at the file content.
13775    # Grep'ing the first line is not enough: some people post-process
13776    # each Makefile.in and add a new line on top of each file to say so.
13777    # Grep'ing the whole file is not good either: AIX grep has a line
13778    # limit of 2048, but all sed's we know have understand at least 4000.
13779    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13780      dirpart=`$as_dirname -- "$mf" ||
13781$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13782	 X"$mf" : 'X\(//\)[^/]' \| \
13783	 X"$mf" : 'X\(//\)$' \| \
13784	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13785$as_echo X"$mf" |
13786    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13787	    s//\1/
13788	    q
13789	  }
13790	  /^X\(\/\/\)[^/].*/{
13791	    s//\1/
13792	    q
13793	  }
13794	  /^X\(\/\/\)$/{
13795	    s//\1/
13796	    q
13797	  }
13798	  /^X\(\/\).*/{
13799	    s//\1/
13800	    q
13801	  }
13802	  s/.*/./; q'`
13803    else
13804      continue
13805    fi
13806    # Extract the definition of DEPDIR, am__include, and am__quote
13807    # from the Makefile without running `make'.
13808    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13809    test -z "$DEPDIR" && continue
13810    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13811    test -z "am__include" && continue
13812    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13813    # When using ansi2knr, U may be empty or an underscore; expand it
13814    U=`sed -n 's/^U = //p' < "$mf"`
13815    # Find all dependency output files, they are included files with
13816    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13817    # simplest approach to changing $(DEPDIR) to its actual value in the
13818    # expansion.
13819    for file in `sed -n "
13820      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13821	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13822      # Make sure the directory exists.
13823      test -f "$dirpart/$file" && continue
13824      fdir=`$as_dirname -- "$file" ||
13825$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13826	 X"$file" : 'X\(//\)[^/]' \| \
13827	 X"$file" : 'X\(//\)$' \| \
13828	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13829$as_echo X"$file" |
13830    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13831	    s//\1/
13832	    q
13833	  }
13834	  /^X\(\/\/\)[^/].*/{
13835	    s//\1/
13836	    q
13837	  }
13838	  /^X\(\/\/\)$/{
13839	    s//\1/
13840	    q
13841	  }
13842	  /^X\(\/\).*/{
13843	    s//\1/
13844	    q
13845	  }
13846	  s/.*/./; q'`
13847      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13848      # echo "creating $dirpart/$file"
13849      echo '# dummy' > "$dirpart/$file"
13850    done
13851  done
13852}
13853 ;;
13854    "libtool":C)
13855
13856    # See if we are running on zsh, and set the options which allow our
13857    # commands through without removal of \ escapes.
13858    if test -n "${ZSH_VERSION+set}" ; then
13859      setopt NO_GLOB_SUBST
13860    fi
13861
13862    cfgfile="${ofile}T"
13863    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13864    $RM "$cfgfile"
13865
13866    cat <<_LT_EOF >> "$cfgfile"
13867#! $SHELL
13868
13869# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13870# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13871# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13872# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13873#
13874#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13875#                 2006, 2007, 2008 Free Software Foundation, Inc.
13876#   Written by Gordon Matzigkeit, 1996
13877#
13878#   This file is part of GNU Libtool.
13879#
13880# GNU Libtool is free software; you can redistribute it and/or
13881# modify it under the terms of the GNU General Public License as
13882# published by the Free Software Foundation; either version 2 of
13883# the License, or (at your option) any later version.
13884#
13885# As a special exception to the GNU General Public License,
13886# if you distribute this file as part of a program or library that
13887# is built using GNU Libtool, you may include this file under the
13888# same distribution terms that you use for the rest of that program.
13889#
13890# GNU Libtool is distributed in the hope that it will be useful,
13891# but WITHOUT ANY WARRANTY; without even the implied warranty of
13892# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13893# GNU General Public License for more details.
13894#
13895# You should have received a copy of the GNU General Public License
13896# along with GNU Libtool; see the file COPYING.  If not, a copy
13897# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13898# obtained by writing to the Free Software Foundation, Inc.,
13899# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13900
13901
13902# The names of the tagged configurations supported by this script.
13903available_tags=""
13904
13905# ### BEGIN LIBTOOL CONFIG
13906
13907# Which release of libtool.m4 was used?
13908macro_version=$macro_version
13909macro_revision=$macro_revision
13910
13911# Whether or not to build shared libraries.
13912build_libtool_libs=$enable_shared
13913
13914# Whether or not to build static libraries.
13915build_old_libs=$enable_static
13916
13917# What type of objects to build.
13918pic_mode=$pic_mode
13919
13920# Whether or not to optimize for fast installation.
13921fast_install=$enable_fast_install
13922
13923# The host system.
13924host_alias=$host_alias
13925host=$host
13926host_os=$host_os
13927
13928# The build system.
13929build_alias=$build_alias
13930build=$build
13931build_os=$build_os
13932
13933# A sed program that does not truncate output.
13934SED=$lt_SED
13935
13936# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13937Xsed="\$SED -e 1s/^X//"
13938
13939# A grep program that handles long lines.
13940GREP=$lt_GREP
13941
13942# An ERE matcher.
13943EGREP=$lt_EGREP
13944
13945# A literal string matcher.
13946FGREP=$lt_FGREP
13947
13948# A BSD- or MS-compatible name lister.
13949NM=$lt_NM
13950
13951# Whether we need soft or hard links.
13952LN_S=$lt_LN_S
13953
13954# What is the maximum length of a command?
13955max_cmd_len=$max_cmd_len
13956
13957# Object file suffix (normally "o").
13958objext=$ac_objext
13959
13960# Executable file suffix (normally "").
13961exeext=$exeext
13962
13963# whether the shell understands "unset".
13964lt_unset=$lt_unset
13965
13966# turn spaces into newlines.
13967SP2NL=$lt_lt_SP2NL
13968
13969# turn newlines into spaces.
13970NL2SP=$lt_lt_NL2SP
13971
13972# How to create reloadable object files.
13973reload_flag=$lt_reload_flag
13974reload_cmds=$lt_reload_cmds
13975
13976# An object symbol dumper.
13977OBJDUMP=$lt_OBJDUMP
13978
13979# Method to check whether dependent libraries are shared objects.
13980deplibs_check_method=$lt_deplibs_check_method
13981
13982# Command to use when deplibs_check_method == "file_magic".
13983file_magic_cmd=$lt_file_magic_cmd
13984
13985# The archiver.
13986AR=$lt_AR
13987AR_FLAGS=$lt_AR_FLAGS
13988
13989# A symbol stripping program.
13990STRIP=$lt_STRIP
13991
13992# Commands used to install an old-style archive.
13993RANLIB=$lt_RANLIB
13994old_postinstall_cmds=$lt_old_postinstall_cmds
13995old_postuninstall_cmds=$lt_old_postuninstall_cmds
13996
13997# A C compiler.
13998LTCC=$lt_CC
13999
14000# LTCC compiler flags.
14001LTCFLAGS=$lt_CFLAGS
14002
14003# Take the output of nm and produce a listing of raw symbols and C names.
14004global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14005
14006# Transform the output of nm in a proper C declaration.
14007global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14008
14009# Transform the output of nm in a C name address pair.
14010global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14011
14012# Transform the output of nm in a C name address pair when lib prefix is needed.
14013global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14014
14015# The name of the directory that contains temporary libtool files.
14016objdir=$objdir
14017
14018# Shell to use when invoking shell scripts.
14019SHELL=$lt_SHELL
14020
14021# An echo program that does not interpret backslashes.
14022ECHO=$lt_ECHO
14023
14024# Used to examine libraries when file_magic_cmd begins with "file".
14025MAGIC_CMD=$MAGIC_CMD
14026
14027# Must we lock files when doing compilation?
14028need_locks=$lt_need_locks
14029
14030# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14031DSYMUTIL=$lt_DSYMUTIL
14032
14033# Tool to change global to local symbols on Mac OS X.
14034NMEDIT=$lt_NMEDIT
14035
14036# Tool to manipulate fat objects and archives on Mac OS X.
14037LIPO=$lt_LIPO
14038
14039# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14040OTOOL=$lt_OTOOL
14041
14042# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14043OTOOL64=$lt_OTOOL64
14044
14045# Old archive suffix (normally "a").
14046libext=$libext
14047
14048# Shared library suffix (normally ".so").
14049shrext_cmds=$lt_shrext_cmds
14050
14051# The commands to extract the exported symbol list from a shared archive.
14052extract_expsyms_cmds=$lt_extract_expsyms_cmds
14053
14054# Variables whose values should be saved in libtool wrapper scripts and
14055# restored at link time.
14056variables_saved_for_relink=$lt_variables_saved_for_relink
14057
14058# Do we need the "lib" prefix for modules?
14059need_lib_prefix=$need_lib_prefix
14060
14061# Do we need a version for libraries?
14062need_version=$need_version
14063
14064# Library versioning type.
14065version_type=$version_type
14066
14067# Shared library runtime path variable.
14068runpath_var=$runpath_var
14069
14070# Shared library path variable.
14071shlibpath_var=$shlibpath_var
14072
14073# Is shlibpath searched before the hard-coded library search path?
14074shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14075
14076# Format of library name prefix.
14077libname_spec=$lt_libname_spec
14078
14079# List of archive names.  First name is the real one, the rest are links.
14080# The last name is the one that the linker finds with -lNAME
14081library_names_spec=$lt_library_names_spec
14082
14083# The coded name of the library, if different from the real name.
14084soname_spec=$lt_soname_spec
14085
14086# Command to use after installation of a shared archive.
14087postinstall_cmds=$lt_postinstall_cmds
14088
14089# Command to use after uninstallation of a shared archive.
14090postuninstall_cmds=$lt_postuninstall_cmds
14091
14092# Commands used to finish a libtool library installation in a directory.
14093finish_cmds=$lt_finish_cmds
14094
14095# As "finish_cmds", except a single script fragment to be evaled but
14096# not shown.
14097finish_eval=$lt_finish_eval
14098
14099# Whether we should hardcode library paths into libraries.
14100hardcode_into_libs=$hardcode_into_libs
14101
14102# Compile-time system search path for libraries.
14103sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14104
14105# Run-time system search path for libraries.
14106sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14107
14108# Whether dlopen is supported.
14109dlopen_support=$enable_dlopen
14110
14111# Whether dlopen of programs is supported.
14112dlopen_self=$enable_dlopen_self
14113
14114# Whether dlopen of statically linked programs is supported.
14115dlopen_self_static=$enable_dlopen_self_static
14116
14117# Commands to strip libraries.
14118old_striplib=$lt_old_striplib
14119striplib=$lt_striplib
14120
14121
14122# The linker used to build libraries.
14123LD=$lt_LD
14124
14125# Commands used to build an old-style archive.
14126old_archive_cmds=$lt_old_archive_cmds
14127
14128# A language specific compiler.
14129CC=$lt_compiler
14130
14131# Is the compiler the GNU compiler?
14132with_gcc=$GCC
14133
14134# Compiler flag to turn off builtin functions.
14135no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14136
14137# How to pass a linker flag through the compiler.
14138wl=$lt_lt_prog_compiler_wl
14139
14140# Additional compiler flags for building library objects.
14141pic_flag=$lt_lt_prog_compiler_pic
14142
14143# Compiler flag to prevent dynamic linking.
14144link_static_flag=$lt_lt_prog_compiler_static
14145
14146# Does compiler simultaneously support -c and -o options?
14147compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14148
14149# Whether or not to add -lc for building shared libraries.
14150build_libtool_need_lc=$archive_cmds_need_lc
14151
14152# Whether or not to disallow shared libs when runtime libs are static.
14153allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14154
14155# Compiler flag to allow reflexive dlopens.
14156export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14157
14158# Compiler flag to generate shared objects directly from archives.
14159whole_archive_flag_spec=$lt_whole_archive_flag_spec
14160
14161# Whether the compiler copes with passing no objects directly.
14162compiler_needs_object=$lt_compiler_needs_object
14163
14164# Create an old-style archive from a shared archive.
14165old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14166
14167# Create a temporary old-style archive to link instead of a shared archive.
14168old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14169
14170# Commands used to build a shared archive.
14171archive_cmds=$lt_archive_cmds
14172archive_expsym_cmds=$lt_archive_expsym_cmds
14173
14174# Commands used to build a loadable module if different from building
14175# a shared archive.
14176module_cmds=$lt_module_cmds
14177module_expsym_cmds=$lt_module_expsym_cmds
14178
14179# Whether we are building with GNU ld or not.
14180with_gnu_ld=$lt_with_gnu_ld
14181
14182# Flag that allows shared libraries with undefined symbols to be built.
14183allow_undefined_flag=$lt_allow_undefined_flag
14184
14185# Flag that enforces no undefined symbols.
14186no_undefined_flag=$lt_no_undefined_flag
14187
14188# Flag to hardcode \$libdir into a binary during linking.
14189# This must work even if \$libdir does not exist
14190hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14191
14192# If ld is used when linking, flag to hardcode \$libdir into a binary
14193# during linking.  This must work even if \$libdir does not exist.
14194hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14195
14196# Whether we need a single "-rpath" flag with a separated argument.
14197hardcode_libdir_separator=$lt_hardcode_libdir_separator
14198
14199# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14200# DIR into the resulting binary.
14201hardcode_direct=$hardcode_direct
14202
14203# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14204# DIR into the resulting binary and the resulting library dependency is
14205# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14206# library is relocated.
14207hardcode_direct_absolute=$hardcode_direct_absolute
14208
14209# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14210# into the resulting binary.
14211hardcode_minus_L=$hardcode_minus_L
14212
14213# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14214# into the resulting binary.
14215hardcode_shlibpath_var=$hardcode_shlibpath_var
14216
14217# Set to "yes" if building a shared library automatically hardcodes DIR
14218# into the library and all subsequent libraries and executables linked
14219# against it.
14220hardcode_automatic=$hardcode_automatic
14221
14222# Set to yes if linker adds runtime paths of dependent libraries
14223# to runtime path list.
14224inherit_rpath=$inherit_rpath
14225
14226# Whether libtool must link a program against all its dependency libraries.
14227link_all_deplibs=$link_all_deplibs
14228
14229# Fix the shell variable \$srcfile for the compiler.
14230fix_srcfile_path=$lt_fix_srcfile_path
14231
14232# Set to "yes" if exported symbols are required.
14233always_export_symbols=$always_export_symbols
14234
14235# The commands to list exported symbols.
14236export_symbols_cmds=$lt_export_symbols_cmds
14237
14238# Symbols that should not be listed in the preloaded symbols.
14239exclude_expsyms=$lt_exclude_expsyms
14240
14241# Symbols that must always be exported.
14242include_expsyms=$lt_include_expsyms
14243
14244# Commands necessary for linking programs (against libraries) with templates.
14245prelink_cmds=$lt_prelink_cmds
14246
14247# Specify filename containing input files.
14248file_list_spec=$lt_file_list_spec
14249
14250# How to hardcode a shared library path into an executable.
14251hardcode_action=$hardcode_action
14252
14253# ### END LIBTOOL CONFIG
14254
14255_LT_EOF
14256
14257  case $host_os in
14258  aix3*)
14259    cat <<\_LT_EOF >> "$cfgfile"
14260# AIX sometimes has problems with the GCC collect2 program.  For some
14261# reason, if we set the COLLECT_NAMES environment variable, the problems
14262# vanish in a puff of smoke.
14263if test "X${COLLECT_NAMES+set}" != Xset; then
14264  COLLECT_NAMES=
14265  export COLLECT_NAMES
14266fi
14267_LT_EOF
14268    ;;
14269  esac
14270
14271
14272ltmain="$ac_aux_dir/ltmain.sh"
14273
14274
14275  # We use sed instead of cat because bash on DJGPP gets confused if
14276  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14277  # text mode, it properly converts lines to CR/LF.  This bash problem
14278  # is reportedly fixed, but why not run on old versions too?
14279  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14280    || (rm -f "$cfgfile"; exit 1)
14281
14282  case $xsi_shell in
14283  yes)
14284    cat << \_LT_EOF >> "$cfgfile"
14285
14286# func_dirname file append nondir_replacement
14287# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14288# otherwise set result to NONDIR_REPLACEMENT.
14289func_dirname ()
14290{
14291  case ${1} in
14292    */*) func_dirname_result="${1%/*}${2}" ;;
14293    *  ) func_dirname_result="${3}" ;;
14294  esac
14295}
14296
14297# func_basename file
14298func_basename ()
14299{
14300  func_basename_result="${1##*/}"
14301}
14302
14303# func_dirname_and_basename file append nondir_replacement
14304# perform func_basename and func_dirname in a single function
14305# call:
14306#   dirname:  Compute the dirname of FILE.  If nonempty,
14307#             add APPEND to the result, otherwise set result
14308#             to NONDIR_REPLACEMENT.
14309#             value returned in "$func_dirname_result"
14310#   basename: Compute filename of FILE.
14311#             value retuned in "$func_basename_result"
14312# Implementation must be kept synchronized with func_dirname
14313# and func_basename. For efficiency, we do not delegate to
14314# those functions but instead duplicate the functionality here.
14315func_dirname_and_basename ()
14316{
14317  case ${1} in
14318    */*) func_dirname_result="${1%/*}${2}" ;;
14319    *  ) func_dirname_result="${3}" ;;
14320  esac
14321  func_basename_result="${1##*/}"
14322}
14323
14324# func_stripname prefix suffix name
14325# strip PREFIX and SUFFIX off of NAME.
14326# PREFIX and SUFFIX must not contain globbing or regex special
14327# characters, hashes, percent signs, but SUFFIX may contain a leading
14328# dot (in which case that matches only a dot).
14329func_stripname ()
14330{
14331  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14332  # positional parameters, so assign one to ordinary parameter first.
14333  func_stripname_result=${3}
14334  func_stripname_result=${func_stripname_result#"${1}"}
14335  func_stripname_result=${func_stripname_result%"${2}"}
14336}
14337
14338# func_opt_split
14339func_opt_split ()
14340{
14341  func_opt_split_opt=${1%%=*}
14342  func_opt_split_arg=${1#*=}
14343}
14344
14345# func_lo2o object
14346func_lo2o ()
14347{
14348  case ${1} in
14349    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14350    *)    func_lo2o_result=${1} ;;
14351  esac
14352}
14353
14354# func_xform libobj-or-source
14355func_xform ()
14356{
14357  func_xform_result=${1%.*}.lo
14358}
14359
14360# func_arith arithmetic-term...
14361func_arith ()
14362{
14363  func_arith_result=$(( $* ))
14364}
14365
14366# func_len string
14367# STRING may not start with a hyphen.
14368func_len ()
14369{
14370  func_len_result=${#1}
14371}
14372
14373_LT_EOF
14374    ;;
14375  *) # Bourne compatible functions.
14376    cat << \_LT_EOF >> "$cfgfile"
14377
14378# func_dirname file append nondir_replacement
14379# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14380# otherwise set result to NONDIR_REPLACEMENT.
14381func_dirname ()
14382{
14383  # Extract subdirectory from the argument.
14384  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14385  if test "X$func_dirname_result" = "X${1}"; then
14386    func_dirname_result="${3}"
14387  else
14388    func_dirname_result="$func_dirname_result${2}"
14389  fi
14390}
14391
14392# func_basename file
14393func_basename ()
14394{
14395  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14396}
14397
14398
14399# func_stripname prefix suffix name
14400# strip PREFIX and SUFFIX off of NAME.
14401# PREFIX and SUFFIX must not contain globbing or regex special
14402# characters, hashes, percent signs, but SUFFIX may contain a leading
14403# dot (in which case that matches only a dot).
14404# func_strip_suffix prefix name
14405func_stripname ()
14406{
14407  case ${2} in
14408    .*) func_stripname_result=`$ECHO "X${3}" \
14409           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14410    *)  func_stripname_result=`$ECHO "X${3}" \
14411           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14412  esac
14413}
14414
14415# sed scripts:
14416my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14417my_sed_long_arg='1s/^-[^=]*=//'
14418
14419# func_opt_split
14420func_opt_split ()
14421{
14422  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14423  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14424}
14425
14426# func_lo2o object
14427func_lo2o ()
14428{
14429  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14430}
14431
14432# func_xform libobj-or-source
14433func_xform ()
14434{
14435  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14436}
14437
14438# func_arith arithmetic-term...
14439func_arith ()
14440{
14441  func_arith_result=`expr "$@"`
14442}
14443
14444# func_len string
14445# STRING may not start with a hyphen.
14446func_len ()
14447{
14448  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14449}
14450
14451_LT_EOF
14452esac
14453
14454case $lt_shell_append in
14455  yes)
14456    cat << \_LT_EOF >> "$cfgfile"
14457
14458# func_append var value
14459# Append VALUE to the end of shell variable VAR.
14460func_append ()
14461{
14462  eval "$1+=\$2"
14463}
14464_LT_EOF
14465    ;;
14466  *)
14467    cat << \_LT_EOF >> "$cfgfile"
14468
14469# func_append var value
14470# Append VALUE to the end of shell variable VAR.
14471func_append ()
14472{
14473  eval "$1=\$$1\$2"
14474}
14475
14476_LT_EOF
14477    ;;
14478  esac
14479
14480
14481  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14482    || (rm -f "$cfgfile"; exit 1)
14483
14484  mv -f "$cfgfile" "$ofile" ||
14485    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14486  chmod +x "$ofile"
14487
14488 ;;
14489
14490  esac
14491done # for ac_tag
14492
14493
14494as_fn_exit 0
14495_ACEOF
14496ac_clean_files=$ac_clean_files_save
14497
14498test $ac_write_fail = 0 ||
14499  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14500
14501
14502# configure is writing to config.log, and then calls config.status.
14503# config.status does its own redirection, appending to config.log.
14504# Unfortunately, on DOS this fails, as config.log is still kept open
14505# by configure, so config.status won't be able to write to it; its
14506# output is simply discarded.  So we exec the FD to /dev/null,
14507# effectively closing config.log, so it can be properly (re)opened and
14508# appended to by config.status.  When coming back to configure, we
14509# need to make the FD available again.
14510if test "$no_create" != yes; then
14511  ac_cs_success=:
14512  ac_config_status_args=
14513  test "$silent" = yes &&
14514    ac_config_status_args="$ac_config_status_args --quiet"
14515  exec 5>/dev/null
14516  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14517  exec 5>>config.log
14518  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14519  # would make configure fail if this is the last instruction.
14520  $ac_cs_success || as_fn_exit $?
14521fi
14522if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14523  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14524$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14525fi
14526
14527
14528echo
14529echo $PACKAGE $VERSION :
14530echo
14531echo \| Build with OSS support ......................... : $HAVE_OSS
14532echo \| Build with ALSA support ........................ : $HAVE_ALSA
14533if test $HAVE_ALSA = "false" && test $TRY_ALSA = "yes" ; then
14534	echo \| Bristol needs libasound2-dev to be installed for ALSA support.
14535fi
14536echo \| Build with JACK support ........................ : $HAVE_JACK
14537if test $HAVE_JACK = "false" && test $TRY_JACK = "yes" ; then
14538	echo \| Bristol needs jackd and libjack-dev to be installed for JACK support.
14539fi
14540echo \| Build with JACK MIDI support ................... : $HAVE_JACK_MIDI
14541#
14542# This will be 0.50.5
14543echo \| Build with JACK Session support ................ : $jack_session_found
14544
14545if test x$TRY_PA = 'xyes' ; then
14546echo \| Build with PA support .......................... : true
14547fi
14548
14549if test $DEFAULT_JACK = "yes"; then
14550echo \| Default audio drivers .......................... : jack
14551else
14552echo \| Default audio drivers .......................... : alsa
14553fi
14554
14555if test $DEFAULT_JACK_MIDI = "yes"; then
14556echo \| Default MIDI drivers ........................... : jack
14557else
14558echo \| Default MIDI drivers ........................... : alsa
14559fi
14560
14561if test $USE_SEMAPHORE = "yes"; then
14562echo \| Build with semaphore support.................... : true
14563if test $USE_SEM_OPEN = "yes"; then
14564echo \| Build with sem_open ............................ : true
14565fi
14566fi
14567
14568if test $USE_BARRIER == "yes"; then
14569echo \| Build with jrb memory barrier .................. : true
14570fi
14571
14572echo \| Build with Graphical Interface ................. : $HAVE_XHEADERS
14573if test "x$TRY_X11" = "xyes"; then
14574echo \| Compile with GUI support ....................... : true
14575if test "x$TRY_SHMIMAGE" = "xyes"; then
14576echo \| Build with XShmImage support ................... : true
14577fi
14578if test $TRY_XIMAGE != "yes"; then
14579echo \| Build with XImage support ...................... : false
14580else
14581if test $HAVE_XHEADERS = "false"; then
14582	echo \| Bristol needs libX11-dev installed to support a grpahical interface
14583fi
14584fi
14585else
14586echo \| Compile with X11 support ....................... : false
14587fi
14588echo \| Bin directory .................................. : ${prefix}/bin
14589echo \| Lib directory .................................. : ${prefix}/lib
14590echo \| Data directory ................................. : $BRISTOL_DIR
14591echo \| Default voicecount ............................. : BRISTOL_VOICECOUNT=$_BRISTOL_VOICES
14592if test $BRR != 10; then
14593echo \| Envelope max ramp time ......................... : $BRR seconds
14594fi
14595if test x$USE_EXP_ATTACK == "xyes"; then
14596echo \| Envelope attack type ........................... : exponential
14597fi
14598echo \| author ......................................... : Nick Copeland
14599echo \| email .......................................... : nickycopeland@hotmail.com
14600echo \| web ............................................ : http://bristol.sf.net
14601echo
14602echo execute \'make install\' then \'startBristol\'
14603echo
14604if test -f ${BRISTOL_DIR}/bitmaps/blueprints/mini.xpm ; then
14605echo To get the benefits of the compressed bitmaps you are advised to run a
14606echo \'make uninstall\' before building this release.
14607echo
14608fi
14609