1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libltdl 2.2.6b.
4#
5# Report bugs to <bug-libtool@gnu.org>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: bug-libtool@gnu.org about your system, including any
243$0: error possibly output before this message. Then install
244$0: a modern shell, or manually run the script under such a
245$0: shell if you do have one."
246  fi
247  exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265  { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274  return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282  set +e
283  as_fn_set_status $1
284  exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293  case $as_dir in #(
294  -*) as_dir=./$as_dir;;
295  esac
296  test -d "$as_dir" || eval $as_mkdir_p || {
297    as_dirs=
298    while :; do
299      case $as_dir in #(
300      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301      *) as_qdir=$as_dir;;
302      esac
303      as_dirs="'$as_qdir' $as_dirs"
304      as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306	 X"$as_dir" : 'X\(//\)[^/]' \| \
307	 X"$as_dir" : 'X\(//\)$' \| \
308	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\/\)[^/].*/{
315	    s//\1/
316	    q
317	  }
318	  /^X\(\/\/\)$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\).*/{
323	    s//\1/
324	    q
325	  }
326	  s/.*/./; q'`
327      test -d "$as_dir" && break
328    done
329    test -z "$as_dirs" || eval "mkdir $as_dirs"
330  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341  eval 'as_fn_append ()
342  {
343    eval $1+=\$2
344  }'
345else
346  as_fn_append ()
347  {
348    eval $1=\$$1\$2
349  }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358  eval 'as_fn_arith ()
359  {
360    as_val=$(( $* ))
361  }'
362else
363  as_fn_arith ()
364  {
365    as_val=`expr "$@" || test $? -eq 1`
366  }
367fi # as_fn_arith
368
369
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with STATUS, using 1 if that was 0.
375as_fn_error ()
376{
377  as_status=$1; test $as_status -eq 0 && as_status=1
378  if test "$4"; then
379    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381  fi
382  $as_echo "$as_me: error: $2" >&2
383  as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388  as_expr=expr
389else
390  as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394  as_basename=basename
395else
396  as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400  as_dirname=dirname
401else
402  as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407	 X"$0" : 'X\(//\)$' \| \
408	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410    sed '/^.*\/\([^/][^/]*\)\/*$/{
411	    s//\1/
412	    q
413	  }
414	  /^X\/\(\/\/\)$/{
415	    s//\1/
416	    q
417	  }
418	  /^X\/\(\/\).*/{
419	    s//\1/
420	    q
421	  }
422	  s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437  sed -n '
438    p
439    /[$]LINENO/=
440  ' <$as_myself |
441    sed '
442      s/[$]LINENO.*/&-/
443      t lineno
444      b
445      :lineno
446      N
447      :loop
448      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449      t loop
450      s/-\n.*//
451    ' >$as_me.lineno &&
452  chmod +x "$as_me.lineno" ||
453    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466  case `echo 'xy\c'` in
467  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
468  xy)  ECHO_C='\c';;
469  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470       ECHO_T='	';;
471  esac;;
472*)
473  ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478  rm -f conf$$.dir/conf$$.file
479else
480  rm -f conf$$.dir
481  mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484  if ln -s conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s='ln -s'
486    # ... but there are two gotchas:
487    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489    # In both cases, we have to default to `cp -p'.
490    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491      as_ln_s='cp -p'
492  elif ln conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s=ln
494  else
495    as_ln_s='cp -p'
496  fi
497else
498  as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504  as_mkdir_p='mkdir -p "$as_dir"'
505else
506  test -d ./-p && rmdir ./-p
507  as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511  as_test_x='test -x'
512else
513  if ls -dL / >/dev/null 2>&1; then
514    as_ls_L_option=L
515  else
516    as_ls_L_option=
517  fi
518  as_test_x='
519    eval sh -c '\''
520      if test -d "$1"; then
521	test -d "$1/.";
522      else
523	case $1 in #(
524	-*)set "./$1";;
525	esac;
526	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527	???[sx]*):;;*)false;;esac;fi
528    '\'' sh
529  '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541# Check that we are running under the correct shell.
542SHELL=${CONFIG_SHELL-/bin/sh}
543
544case X$lt_ECHO in
545X*--fallback-echo)
546  # Remove one level of quotation (which was required for Make).
547  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
548  ;;
549esac
550
551ECHO=${lt_ECHO-echo}
552if test "X$1" = X--no-reexec; then
553  # Discard the --no-reexec flag, and continue.
554  shift
555elif test "X$1" = X--fallback-echo; then
556  # Avoid inline document here, it may be left over
557  :
558elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
559  # Yippee, $ECHO works!
560  :
561else
562  # Restart under the correct shell.
563  exec $SHELL "$0" --no-reexec ${1+"$@"}
564fi
565
566if test "X$1" = X--fallback-echo; then
567  # used as fallback echo
568  shift
569  cat <<_LT_EOF
570$*
571_LT_EOF
572  exit 0
573fi
574
575# The HP-UX ksh and POSIX shell print the target directory to stdout
576# if CDPATH is set.
577(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578
579if test -z "$lt_ECHO"; then
580  if test "X${echo_test_string+set}" != Xset; then
581    # find a string as large as possible, as long as the shell can cope with it
582    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
585	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
586      then
587        break
588      fi
589    done
590  fi
591
592  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
593     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
594     test "X$echo_testing_string" = "X$echo_test_string"; then
595    :
596  else
597    # The Solaris, AIX, and Digital Unix default echo programs unquote
598    # backslashes.  This makes it impossible to quote backslashes using
599    #   echo "$something" | sed 's/\\/\\\\/g'
600    #
601    # So, first we look for a working echo in the user's PATH.
602
603    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604    for dir in $PATH /usr/ucb; do
605      IFS="$lt_save_ifs"
606      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609         test "X$echo_testing_string" = "X$echo_test_string"; then
610        ECHO="$dir/echo"
611        break
612      fi
613    done
614    IFS="$lt_save_ifs"
615
616    if test "X$ECHO" = Xecho; then
617      # We didn't find a better echo, so look for alternatives.
618      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
619         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
620         test "X$echo_testing_string" = "X$echo_test_string"; then
621        # This shell has a builtin print -r that does the trick.
622        ECHO='print -r'
623      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
624	   test "X$CONFIG_SHELL" != X/bin/ksh; then
625        # If we have ksh, try running configure again with it.
626        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627        export ORIGINAL_CONFIG_SHELL
628        CONFIG_SHELL=/bin/ksh
629        export CONFIG_SHELL
630        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631      else
632        # Try using printf.
633        ECHO='printf %s\n'
634        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
635	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
636	   test "X$echo_testing_string" = "X$echo_test_string"; then
637	  # Cool, printf works
638	  :
639        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640	     test "X$echo_testing_string" = 'X\t' &&
641	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642	     test "X$echo_testing_string" = "X$echo_test_string"; then
643	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644	  export CONFIG_SHELL
645	  SHELL="$CONFIG_SHELL"
646	  export SHELL
647	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
648        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649	     test "X$echo_testing_string" = 'X\t' &&
650	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651	     test "X$echo_testing_string" = "X$echo_test_string"; then
652	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
653        else
654	  # maybe with a smaller string...
655	  prev=:
656
657	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
659	    then
660	      break
661	    fi
662	    prev="$cmd"
663	  done
664
665	  if test "$prev" != 'sed 50q "$0"'; then
666	    echo_test_string=`eval $prev`
667	    export echo_test_string
668	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669	  else
670	    # Oops.  We lost completely, so just stick with echo.
671	    ECHO=echo
672	  fi
673        fi
674      fi
675    fi
676  fi
677fi
678
679# Copy echo and quote the copy suitably for passing to libtool from
680# the Makefile, instead of quoting the original, which is used later.
681lt_ECHO=$ECHO
682if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684fi
685
686
687
688
689test -n "$DJDIR" || exec 7<&0 </dev/null
690exec 6>&1
691
692# Name of the host.
693# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
694# so uname gets run too.
695ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
696
697#
698# Initializations.
699#
700ac_default_prefix=/usr/local
701ac_clean_files=
702ac_config_libobj_dir=.
703LIBOBJS=
704cross_compiling=no
705subdirs=
706MFLAGS=
707MAKEFLAGS=
708
709# Identity of this package.
710PACKAGE_NAME='libltdl'
711PACKAGE_TARNAME='libltdl'
712PACKAGE_VERSION='2.2.6b'
713PACKAGE_STRING='libltdl 2.2.6b'
714PACKAGE_BUGREPORT='bug-libtool@gnu.org'
715PACKAGE_URL=''
716
717ac_unique_file="ltdl.c"
718# Factoring default headers for most tests.
719ac_includes_default="\
720#include <stdio.h>
721#ifdef HAVE_SYS_TYPES_H
722# include <sys/types.h>
723#endif
724#ifdef HAVE_SYS_STAT_H
725# include <sys/stat.h>
726#endif
727#ifdef STDC_HEADERS
728# include <stdlib.h>
729# include <stddef.h>
730#else
731# ifdef HAVE_STDLIB_H
732#  include <stdlib.h>
733# endif
734#endif
735#ifdef HAVE_STRING_H
736# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
737#  include <memory.h>
738# endif
739# include <string.h>
740#endif
741#ifdef HAVE_STRINGS_H
742# include <strings.h>
743#endif
744#ifdef HAVE_INTTYPES_H
745# include <inttypes.h>
746#endif
747#ifdef HAVE_STDINT_H
748# include <stdint.h>
749#endif
750#ifdef HAVE_UNISTD_H
751# include <unistd.h>
752#endif"
753
754ac_subst_vars='am__EXEEXT_FALSE
755am__EXEEXT_TRUE
756LTLIBOBJS
757LTDLOPEN
758LT_CONFIG_H
759CONVENIENCE_LTDL_FALSE
760CONVENIENCE_LTDL_TRUE
761INSTALL_LTDL_FALSE
762INSTALL_LTDL_TRUE
763ARGZ_H
764LIBOBJS
765sys_symbol_underscore
766LIBADD_DL
767LT_DLPREOPEN
768LIBADD_DLD_LINK
769LIBADD_SHL_LOAD
770LIBADD_DLOPEN
771LT_DLLOADERS
772CPP
773OTOOL64
774OTOOL
775LIPO
776NMEDIT
777DSYMUTIL
778lt_ECHO
779RANLIB
780AR
781LN_S
782NM
783ac_ct_DUMPBIN
784DUMPBIN
785LD
786FGREP
787EGREP
788GREP
789SED
790am__fastdepCC_FALSE
791am__fastdepCC_TRUE
792CCDEPMODE
793AMDEPBACKSLASH
794AMDEP_FALSE
795AMDEP_TRUE
796am__quote
797am__include
798DEPDIR
799OBJEXT
800EXEEXT
801ac_ct_CC
802CPPFLAGS
803LDFLAGS
804CFLAGS
805CC
806host_os
807host_vendor
808host_cpu
809host
810build_os
811build_vendor
812build_cpu
813build
814LIBTOOL
815OBJDUMP
816DLLTOOL
817AS
818am__untar
819am__tar
820AMTAR
821am__leading_dot
822SET_MAKE
823AWK
824mkdir_p
825MKDIR_P
826INSTALL_STRIP_PROGRAM
827STRIP
828install_sh
829MAKEINFO
830AUTOHEADER
831AUTOMAKE
832AUTOCONF
833ACLOCAL
834VERSION
835PACKAGE
836CYGPATH_W
837am__isrc
838INSTALL_DATA
839INSTALL_SCRIPT
840INSTALL_PROGRAM
841target_alias
842host_alias
843build_alias
844LIBS
845ECHO_T
846ECHO_N
847ECHO_C
848DEFS
849mandir
850localedir
851libdir
852psdir
853pdfdir
854dvidir
855htmldir
856infodir
857docdir
858oldincludedir
859includedir
860localstatedir
861sharedstatedir
862sysconfdir
863datadir
864datarootdir
865libexecdir
866sbindir
867bindir
868program_transform_name
869prefix
870exec_prefix
871PACKAGE_URL
872PACKAGE_BUGREPORT
873PACKAGE_STRING
874PACKAGE_VERSION
875PACKAGE_TARNAME
876PACKAGE_NAME
877PATH_SEPARATOR
878SHELL'
879ac_subst_files=''
880ac_user_opts='
881enable_option_checking
882enable_shared
883enable_static
884with_pic
885enable_fast_install
886enable_dependency_tracking
887with_gnu_ld
888enable_libtool_lock
889enable_ltdl_install
890'
891      ac_precious_vars='build_alias
892host_alias
893target_alias
894CC
895CFLAGS
896LDFLAGS
897LIBS
898CPPFLAGS
899CPP'
900
901
902# Initialize some variables set by options.
903ac_init_help=
904ac_init_version=false
905ac_unrecognized_opts=
906ac_unrecognized_sep=
907# The variables have the same names as the options, with
908# dashes changed to underlines.
909cache_file=/dev/null
910exec_prefix=NONE
911no_create=
912no_recursion=
913prefix=NONE
914program_prefix=NONE
915program_suffix=NONE
916program_transform_name=s,x,x,
917silent=
918site=
919srcdir=
920verbose=
921x_includes=NONE
922x_libraries=NONE
923
924# Installation directory options.
925# These are left unexpanded so users can "make install exec_prefix=/foo"
926# and all the variables that are supposed to be based on exec_prefix
927# by default will actually change.
928# Use braces instead of parens because sh, perl, etc. also accept them.
929# (The list follows the same order as the GNU Coding Standards.)
930bindir='${exec_prefix}/bin'
931sbindir='${exec_prefix}/sbin'
932libexecdir='${exec_prefix}/libexec'
933datarootdir='${prefix}/share'
934datadir='${datarootdir}'
935sysconfdir='${prefix}/etc'
936sharedstatedir='${prefix}/com'
937localstatedir='${prefix}/var'
938includedir='${prefix}/include'
939oldincludedir='/usr/include'
940docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
941infodir='${datarootdir}/info'
942htmldir='${docdir}'
943dvidir='${docdir}'
944pdfdir='${docdir}'
945psdir='${docdir}'
946libdir='${exec_prefix}/lib'
947localedir='${datarootdir}/locale'
948mandir='${datarootdir}/man'
949
950ac_prev=
951ac_dashdash=
952for ac_option
953do
954  # If the previous option needs an argument, assign it.
955  if test -n "$ac_prev"; then
956    eval $ac_prev=\$ac_option
957    ac_prev=
958    continue
959  fi
960
961  case $ac_option in
962  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963  *=)   ac_optarg= ;;
964  *)    ac_optarg=yes ;;
965  esac
966
967  # Accept the important Cygnus configure options, so we can diagnose typos.
968
969  case $ac_dashdash$ac_option in
970  --)
971    ac_dashdash=yes ;;
972
973  -bindir | --bindir | --bindi | --bind | --bin | --bi)
974    ac_prev=bindir ;;
975  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976    bindir=$ac_optarg ;;
977
978  -build | --build | --buil | --bui | --bu)
979    ac_prev=build_alias ;;
980  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981    build_alias=$ac_optarg ;;
982
983  -cache-file | --cache-file | --cache-fil | --cache-fi \
984  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985    ac_prev=cache_file ;;
986  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988    cache_file=$ac_optarg ;;
989
990  --config-cache | -C)
991    cache_file=config.cache ;;
992
993  -datadir | --datadir | --datadi | --datad)
994    ac_prev=datadir ;;
995  -datadir=* | --datadir=* | --datadi=* | --datad=*)
996    datadir=$ac_optarg ;;
997
998  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999  | --dataroo | --dataro | --datar)
1000    ac_prev=datarootdir ;;
1001  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003    datarootdir=$ac_optarg ;;
1004
1005  -disable-* | --disable-*)
1006    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007    # Reject names that are not valid shell variable names.
1008    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009      as_fn_error $? "invalid feature name: $ac_useropt"
1010    ac_useropt_orig=$ac_useropt
1011    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012    case $ac_user_opts in
1013      *"
1014"enable_$ac_useropt"
1015"*) ;;
1016      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017	 ac_unrecognized_sep=', ';;
1018    esac
1019    eval enable_$ac_useropt=no ;;
1020
1021  -docdir | --docdir | --docdi | --doc | --do)
1022    ac_prev=docdir ;;
1023  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024    docdir=$ac_optarg ;;
1025
1026  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027    ac_prev=dvidir ;;
1028  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029    dvidir=$ac_optarg ;;
1030
1031  -enable-* | --enable-*)
1032    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033    # Reject names that are not valid shell variable names.
1034    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035      as_fn_error $? "invalid feature name: $ac_useropt"
1036    ac_useropt_orig=$ac_useropt
1037    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038    case $ac_user_opts in
1039      *"
1040"enable_$ac_useropt"
1041"*) ;;
1042      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1043	 ac_unrecognized_sep=', ';;
1044    esac
1045    eval enable_$ac_useropt=\$ac_optarg ;;
1046
1047  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049  | --exec | --exe | --ex)
1050    ac_prev=exec_prefix ;;
1051  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053  | --exec=* | --exe=* | --ex=*)
1054    exec_prefix=$ac_optarg ;;
1055
1056  -gas | --gas | --ga | --g)
1057    # Obsolete; use --with-gas.
1058    with_gas=yes ;;
1059
1060  -help | --help | --hel | --he | -h)
1061    ac_init_help=long ;;
1062  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063    ac_init_help=recursive ;;
1064  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065    ac_init_help=short ;;
1066
1067  -host | --host | --hos | --ho)
1068    ac_prev=host_alias ;;
1069  -host=* | --host=* | --hos=* | --ho=*)
1070    host_alias=$ac_optarg ;;
1071
1072  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073    ac_prev=htmldir ;;
1074  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075  | --ht=*)
1076    htmldir=$ac_optarg ;;
1077
1078  -includedir | --includedir | --includedi | --included | --include \
1079  | --includ | --inclu | --incl | --inc)
1080    ac_prev=includedir ;;
1081  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082  | --includ=* | --inclu=* | --incl=* | --inc=*)
1083    includedir=$ac_optarg ;;
1084
1085  -infodir | --infodir | --infodi | --infod | --info | --inf)
1086    ac_prev=infodir ;;
1087  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1088    infodir=$ac_optarg ;;
1089
1090  -libdir | --libdir | --libdi | --libd)
1091    ac_prev=libdir ;;
1092  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1093    libdir=$ac_optarg ;;
1094
1095  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096  | --libexe | --libex | --libe)
1097    ac_prev=libexecdir ;;
1098  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099  | --libexe=* | --libex=* | --libe=*)
1100    libexecdir=$ac_optarg ;;
1101
1102  -localedir | --localedir | --localedi | --localed | --locale)
1103    ac_prev=localedir ;;
1104  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105    localedir=$ac_optarg ;;
1106
1107  -localstatedir | --localstatedir | --localstatedi | --localstated \
1108  | --localstate | --localstat | --localsta | --localst | --locals)
1109    ac_prev=localstatedir ;;
1110  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1111  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1112    localstatedir=$ac_optarg ;;
1113
1114  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115    ac_prev=mandir ;;
1116  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117    mandir=$ac_optarg ;;
1118
1119  -nfp | --nfp | --nf)
1120    # Obsolete; use --without-fp.
1121    with_fp=no ;;
1122
1123  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124  | --no-cr | --no-c | -n)
1125    no_create=yes ;;
1126
1127  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129    no_recursion=yes ;;
1130
1131  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133  | --oldin | --oldi | --old | --ol | --o)
1134    ac_prev=oldincludedir ;;
1135  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1138    oldincludedir=$ac_optarg ;;
1139
1140  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141    ac_prev=prefix ;;
1142  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143    prefix=$ac_optarg ;;
1144
1145  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146  | --program-pre | --program-pr | --program-p)
1147    ac_prev=program_prefix ;;
1148  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1150    program_prefix=$ac_optarg ;;
1151
1152  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153  | --program-suf | --program-su | --program-s)
1154    ac_prev=program_suffix ;;
1155  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1157    program_suffix=$ac_optarg ;;
1158
1159  -program-transform-name | --program-transform-name \
1160  | --program-transform-nam | --program-transform-na \
1161  | --program-transform-n | --program-transform- \
1162  | --program-transform | --program-transfor \
1163  | --program-transfo | --program-transf \
1164  | --program-trans | --program-tran \
1165  | --progr-tra | --program-tr | --program-t)
1166    ac_prev=program_transform_name ;;
1167  -program-transform-name=* | --program-transform-name=* \
1168  | --program-transform-nam=* | --program-transform-na=* \
1169  | --program-transform-n=* | --program-transform-=* \
1170  | --program-transform=* | --program-transfor=* \
1171  | --program-transfo=* | --program-transf=* \
1172  | --program-trans=* | --program-tran=* \
1173  | --progr-tra=* | --program-tr=* | --program-t=*)
1174    program_transform_name=$ac_optarg ;;
1175
1176  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177    ac_prev=pdfdir ;;
1178  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179    pdfdir=$ac_optarg ;;
1180
1181  -psdir | --psdir | --psdi | --psd | --ps)
1182    ac_prev=psdir ;;
1183  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184    psdir=$ac_optarg ;;
1185
1186  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187  | -silent | --silent | --silen | --sile | --sil)
1188    silent=yes ;;
1189
1190  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191    ac_prev=sbindir ;;
1192  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193  | --sbi=* | --sb=*)
1194    sbindir=$ac_optarg ;;
1195
1196  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1197  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1198  | --sharedst | --shareds | --shared | --share | --shar \
1199  | --sha | --sh)
1200    ac_prev=sharedstatedir ;;
1201  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1202  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1203  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204  | --sha=* | --sh=*)
1205    sharedstatedir=$ac_optarg ;;
1206
1207  -site | --site | --sit)
1208    ac_prev=site ;;
1209  -site=* | --site=* | --sit=*)
1210    site=$ac_optarg ;;
1211
1212  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213    ac_prev=srcdir ;;
1214  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1215    srcdir=$ac_optarg ;;
1216
1217  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1218  | --syscon | --sysco | --sysc | --sys | --sy)
1219    ac_prev=sysconfdir ;;
1220  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1221  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1222    sysconfdir=$ac_optarg ;;
1223
1224  -target | --target | --targe | --targ | --tar | --ta | --t)
1225    ac_prev=target_alias ;;
1226  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1227    target_alias=$ac_optarg ;;
1228
1229  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230    verbose=yes ;;
1231
1232  -version | --version | --versio | --versi | --vers | -V)
1233    ac_init_version=: ;;
1234
1235  -with-* | --with-*)
1236    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237    # Reject names that are not valid shell variable names.
1238    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239      as_fn_error $? "invalid package name: $ac_useropt"
1240    ac_useropt_orig=$ac_useropt
1241    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242    case $ac_user_opts in
1243      *"
1244"with_$ac_useropt"
1245"*) ;;
1246      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247	 ac_unrecognized_sep=', ';;
1248    esac
1249    eval with_$ac_useropt=\$ac_optarg ;;
1250
1251  -without-* | --without-*)
1252    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253    # Reject names that are not valid shell variable names.
1254    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255      as_fn_error $? "invalid package name: $ac_useropt"
1256    ac_useropt_orig=$ac_useropt
1257    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258    case $ac_user_opts in
1259      *"
1260"with_$ac_useropt"
1261"*) ;;
1262      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263	 ac_unrecognized_sep=', ';;
1264    esac
1265    eval with_$ac_useropt=no ;;
1266
1267  --x)
1268    # Obsolete; use --with-x.
1269    with_x=yes ;;
1270
1271  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272  | --x-incl | --x-inc | --x-in | --x-i)
1273    ac_prev=x_includes ;;
1274  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276    x_includes=$ac_optarg ;;
1277
1278  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280    ac_prev=x_libraries ;;
1281  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283    x_libraries=$ac_optarg ;;
1284
1285  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1286Try \`$0 --help' for more information"
1287    ;;
1288
1289  *=*)
1290    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291    # Reject names that are not valid shell variable names.
1292    case $ac_envvar in #(
1293      '' | [0-9]* | *[!_$as_cr_alnum]* )
1294      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1295    esac
1296    eval $ac_envvar=\$ac_optarg
1297    export $ac_envvar ;;
1298
1299  *)
1300    # FIXME: should be removed in autoconf 3.0.
1301    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1305    ;;
1306
1307  esac
1308done
1309
1310if test -n "$ac_prev"; then
1311  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312  as_fn_error $? "missing argument to $ac_option"
1313fi
1314
1315if test -n "$ac_unrecognized_opts"; then
1316  case $enable_option_checking in
1317    no) ;;
1318    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1319    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1320  esac
1321fi
1322
1323# Check all directory arguments for consistency.
1324for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1325		datadir sysconfdir sharedstatedir localstatedir includedir \
1326		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1327		libdir localedir mandir
1328do
1329  eval ac_val=\$$ac_var
1330  # Remove trailing slashes.
1331  case $ac_val in
1332    */ )
1333      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1334      eval $ac_var=\$ac_val;;
1335  esac
1336  # Be sure to have absolute directory names.
1337  case $ac_val in
1338    [\\/$]* | ?:[\\/]* )  continue;;
1339    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1340  esac
1341  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1342done
1343
1344# There might be people who depend on the old broken behavior: `$host'
1345# used to hold the argument of --host etc.
1346# FIXME: To remove some day.
1347build=$build_alias
1348host=$host_alias
1349target=$target_alias
1350
1351# FIXME: To remove some day.
1352if test "x$host_alias" != x; then
1353  if test "x$build_alias" = x; then
1354    cross_compiling=maybe
1355    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1356    If a cross compiler is detected then cross compile mode will be used" >&2
1357  elif test "x$build_alias" != "x$host_alias"; then
1358    cross_compiling=yes
1359  fi
1360fi
1361
1362ac_tool_prefix=
1363test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364
1365test "$silent" = yes && exec 6>/dev/null
1366
1367
1368ac_pwd=`pwd` && test -n "$ac_pwd" &&
1369ac_ls_di=`ls -di .` &&
1370ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1371  as_fn_error $? "working directory cannot be determined"
1372test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373  as_fn_error $? "pwd does not report name of working directory"
1374
1375
1376# Find the source files, if location was not specified.
1377if test -z "$srcdir"; then
1378  ac_srcdir_defaulted=yes
1379  # Try the directory containing this script, then the parent directory.
1380  ac_confdir=`$as_dirname -- "$as_myself" ||
1381$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382	 X"$as_myself" : 'X\(//\)[^/]' \| \
1383	 X"$as_myself" : 'X\(//\)$' \| \
1384	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1385$as_echo X"$as_myself" |
1386    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1387	    s//\1/
1388	    q
1389	  }
1390	  /^X\(\/\/\)[^/].*/{
1391	    s//\1/
1392	    q
1393	  }
1394	  /^X\(\/\/\)$/{
1395	    s//\1/
1396	    q
1397	  }
1398	  /^X\(\/\).*/{
1399	    s//\1/
1400	    q
1401	  }
1402	  s/.*/./; q'`
1403  srcdir=$ac_confdir
1404  if test ! -r "$srcdir/$ac_unique_file"; then
1405    srcdir=..
1406  fi
1407else
1408  ac_srcdir_defaulted=no
1409fi
1410if test ! -r "$srcdir/$ac_unique_file"; then
1411  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1412  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1413fi
1414ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1415ac_abs_confdir=`(
1416	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1417	pwd)`
1418# When building in place, set srcdir=.
1419if test "$ac_abs_confdir" = "$ac_pwd"; then
1420  srcdir=.
1421fi
1422# Remove unnecessary trailing slashes from srcdir.
1423# Double slashes in file names in object file debugging info
1424# mess up M-x gdb in Emacs.
1425case $srcdir in
1426*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1427esac
1428for ac_var in $ac_precious_vars; do
1429  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1430  eval ac_env_${ac_var}_value=\$${ac_var}
1431  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1432  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1433done
1434
1435#
1436# Report the --help message.
1437#
1438if test "$ac_init_help" = "long"; then
1439  # Omit some internal or obsolete options to make the list less imposing.
1440  # This message is too long to be a string in the A/UX 3.1 sh.
1441  cat <<_ACEOF
1442\`configure' configures libltdl 2.2.6b to adapt to many kinds of systems.
1443
1444Usage: $0 [OPTION]... [VAR=VALUE]...
1445
1446To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447VAR=VALUE.  See below for descriptions of some of the useful variables.
1448
1449Defaults for the options are specified in brackets.
1450
1451Configuration:
1452  -h, --help              display this help and exit
1453      --help=short        display options specific to this package
1454      --help=recursive    display the short help of all the included packages
1455  -V, --version           display version information and exit
1456  -q, --quiet, --silent   do not print \`checking ...' messages
1457      --cache-file=FILE   cache test results in FILE [disabled]
1458  -C, --config-cache      alias for \`--cache-file=config.cache'
1459  -n, --no-create         do not create output files
1460      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1461
1462Installation directories:
1463  --prefix=PREFIX         install architecture-independent files in PREFIX
1464                          [$ac_default_prefix]
1465  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1466                          [PREFIX]
1467
1468By default, \`make install' will install all the files in
1469\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1470an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471for instance \`--prefix=\$HOME'.
1472
1473For better control, use the options below.
1474
1475Fine tuning of the installation directories:
1476  --bindir=DIR            user executables [EPREFIX/bin]
1477  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1478  --libexecdir=DIR        program executables [EPREFIX/libexec]
1479  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1480  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1481  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1482  --libdir=DIR            object code libraries [EPREFIX/lib]
1483  --includedir=DIR        C header files [PREFIX/include]
1484  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1485  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1486  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1487  --infodir=DIR           info documentation [DATAROOTDIR/info]
1488  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1489  --mandir=DIR            man documentation [DATAROOTDIR/man]
1490  --docdir=DIR            documentation root [DATAROOTDIR/doc/libltdl]
1491  --htmldir=DIR           html documentation [DOCDIR]
1492  --dvidir=DIR            dvi documentation [DOCDIR]
1493  --pdfdir=DIR            pdf documentation [DOCDIR]
1494  --psdir=DIR             ps documentation [DOCDIR]
1495_ACEOF
1496
1497  cat <<\_ACEOF
1498
1499Program names:
1500  --program-prefix=PREFIX            prepend PREFIX to installed program names
1501  --program-suffix=SUFFIX            append SUFFIX to installed program names
1502  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1503
1504System types:
1505  --build=BUILD     configure for building on BUILD [guessed]
1506  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1507_ACEOF
1508fi
1509
1510if test -n "$ac_init_help"; then
1511  case $ac_init_help in
1512     short | recursive ) echo "Configuration of libltdl 2.2.6b:";;
1513   esac
1514  cat <<\_ACEOF
1515
1516Optional Features:
1517  --disable-option-checking  ignore unrecognized --enable/--with options
1518  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1519  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1520  --enable-shared[=PKGS]  build shared libraries [default=yes]
1521  --enable-static[=PKGS]  build static libraries [default=yes]
1522  --enable-fast-install[=PKGS]
1523                          optimize for fast installation [default=yes]
1524  --disable-dependency-tracking  speeds up one-time build
1525  --enable-dependency-tracking   do not reject slow dependency extractors
1526  --disable-libtool-lock  avoid locking (might break parallel builds)
1527  --enable-ltdl-install   install libltdl
1528
1529Optional Packages:
1530  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1531  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1532  --with-pic              try to use only PIC/non-PIC objects [default=use
1533                          both]
1534  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1535
1536Some influential environment variables:
1537  CC          C compiler command
1538  CFLAGS      C compiler flags
1539  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1540              nonstandard directory <lib dir>
1541  LIBS        libraries to pass to the linker, e.g. -l<library>
1542  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1543              you have headers in a nonstandard directory <include dir>
1544  CPP         C preprocessor
1545
1546Use these variables to override the choices made by `configure' or to help
1547it to find libraries and programs with nonstandard names/locations.
1548
1549Report bugs to <bug-libtool@gnu.org>.
1550_ACEOF
1551ac_status=$?
1552fi
1553
1554if test "$ac_init_help" = "recursive"; then
1555  # If there are subdirs, report their specific --help.
1556  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557    test -d "$ac_dir" ||
1558      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559      continue
1560    ac_builddir=.
1561
1562case "$ac_dir" in
1563.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564*)
1565  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566  # A ".." for each directory in $ac_dir_suffix.
1567  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568  case $ac_top_builddir_sub in
1569  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571  esac ;;
1572esac
1573ac_abs_top_builddir=$ac_pwd
1574ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575# for backward compatibility:
1576ac_top_builddir=$ac_top_build_prefix
1577
1578case $srcdir in
1579  .)  # We are building in place.
1580    ac_srcdir=.
1581    ac_top_srcdir=$ac_top_builddir_sub
1582    ac_abs_top_srcdir=$ac_pwd ;;
1583  [\\/]* | ?:[\\/]* )  # Absolute name.
1584    ac_srcdir=$srcdir$ac_dir_suffix;
1585    ac_top_srcdir=$srcdir
1586    ac_abs_top_srcdir=$srcdir ;;
1587  *) # Relative name.
1588    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589    ac_top_srcdir=$ac_top_build_prefix$srcdir
1590    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591esac
1592ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593
1594    cd "$ac_dir" || { ac_status=$?; continue; }
1595    # Check for guested configure.
1596    if test -f "$ac_srcdir/configure.gnu"; then
1597      echo &&
1598      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599    elif test -f "$ac_srcdir/configure"; then
1600      echo &&
1601      $SHELL "$ac_srcdir/configure" --help=recursive
1602    else
1603      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604    fi || ac_status=$?
1605    cd "$ac_pwd" || { ac_status=$?; break; }
1606  done
1607fi
1608
1609test -n "$ac_init_help" && exit $ac_status
1610if $ac_init_version; then
1611  cat <<\_ACEOF
1612libltdl configure 2.2.6b
1613generated by GNU Autoconf 2.68
1614
1615Copyright (C) 2010 Free Software Foundation, Inc.
1616This configure script is free software; the Free Software Foundation
1617gives unlimited permission to copy, distribute and modify it.
1618_ACEOF
1619  exit
1620fi
1621
1622## ------------------------ ##
1623## Autoconf initialization. ##
1624## ------------------------ ##
1625
1626# ac_fn_c_try_compile LINENO
1627# --------------------------
1628# Try to compile conftest.$ac_ext, and return whether this succeeded.
1629ac_fn_c_try_compile ()
1630{
1631  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632  rm -f conftest.$ac_objext
1633  if { { ac_try="$ac_compile"
1634case "(($ac_try" in
1635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636  *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640  (eval "$ac_compile") 2>conftest.err
1641  ac_status=$?
1642  if test -s conftest.err; then
1643    grep -v '^ *+' conftest.err >conftest.er1
1644    cat conftest.er1 >&5
1645    mv -f conftest.er1 conftest.err
1646  fi
1647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648  test $ac_status = 0; } && {
1649	 test -z "$ac_c_werror_flag" ||
1650	 test ! -s conftest.err
1651       } && test -s conftest.$ac_objext; then :
1652  ac_retval=0
1653else
1654  $as_echo "$as_me: failed program was:" >&5
1655sed 's/^/| /' conftest.$ac_ext >&5
1656
1657	ac_retval=1
1658fi
1659  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660  as_fn_set_status $ac_retval
1661
1662} # ac_fn_c_try_compile
1663
1664# ac_fn_c_try_link LINENO
1665# -----------------------
1666# Try to link conftest.$ac_ext, and return whether this succeeded.
1667ac_fn_c_try_link ()
1668{
1669  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670  rm -f conftest.$ac_objext conftest$ac_exeext
1671  if { { ac_try="$ac_link"
1672case "(($ac_try" in
1673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674  *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678  (eval "$ac_link") 2>conftest.err
1679  ac_status=$?
1680  if test -s conftest.err; then
1681    grep -v '^ *+' conftest.err >conftest.er1
1682    cat conftest.er1 >&5
1683    mv -f conftest.er1 conftest.err
1684  fi
1685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686  test $ac_status = 0; } && {
1687	 test -z "$ac_c_werror_flag" ||
1688	 test ! -s conftest.err
1689       } && test -s conftest$ac_exeext && {
1690	 test "$cross_compiling" = yes ||
1691	 $as_test_x conftest$ac_exeext
1692       }; then :
1693  ac_retval=0
1694else
1695  $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698	ac_retval=1
1699fi
1700  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1701  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1702  # interfere with the next link command; also delete a directory that is
1703  # left behind by Apple's compiler.  We do this before executing the actions.
1704  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706  as_fn_set_status $ac_retval
1707
1708} # ac_fn_c_try_link
1709
1710# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1711# -------------------------------------------------------
1712# Tests whether HEADER exists and can be compiled using the include files in
1713# INCLUDES, setting the cache variable VAR accordingly.
1714ac_fn_c_check_header_compile ()
1715{
1716  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718$as_echo_n "checking for $2... " >&6; }
1719if eval \${$3+:} false; then :
1720  $as_echo_n "(cached) " >&6
1721else
1722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723/* end confdefs.h.  */
1724$4
1725#include <$2>
1726_ACEOF
1727if ac_fn_c_try_compile "$LINENO"; then :
1728  eval "$3=yes"
1729else
1730  eval "$3=no"
1731fi
1732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733fi
1734eval ac_res=\$$3
1735	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736$as_echo "$ac_res" >&6; }
1737  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738
1739} # ac_fn_c_check_header_compile
1740
1741# ac_fn_c_try_cpp LINENO
1742# ----------------------
1743# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1744ac_fn_c_try_cpp ()
1745{
1746  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747  if { { ac_try="$ac_cpp conftest.$ac_ext"
1748case "(($ac_try" in
1749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750  *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753$as_echo "$ac_try_echo"; } >&5
1754  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1755  ac_status=$?
1756  if test -s conftest.err; then
1757    grep -v '^ *+' conftest.err >conftest.er1
1758    cat conftest.er1 >&5
1759    mv -f conftest.er1 conftest.err
1760  fi
1761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762  test $ac_status = 0; } > conftest.i && {
1763	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1764	 test ! -s conftest.err
1765       }; then :
1766  ac_retval=0
1767else
1768  $as_echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771    ac_retval=1
1772fi
1773  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774  as_fn_set_status $ac_retval
1775
1776} # ac_fn_c_try_cpp
1777
1778# ac_fn_c_try_run LINENO
1779# ----------------------
1780# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1781# that executables *can* be run.
1782ac_fn_c_try_run ()
1783{
1784  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785  if { { ac_try="$ac_link"
1786case "(($ac_try" in
1787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788  *) ac_try_echo=$ac_try;;
1789esac
1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791$as_echo "$ac_try_echo"; } >&5
1792  (eval "$ac_link") 2>&5
1793  ac_status=$?
1794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1796  { { case "(($ac_try" in
1797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798  *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802  (eval "$ac_try") 2>&5
1803  ac_status=$?
1804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805  test $ac_status = 0; }; }; then :
1806  ac_retval=0
1807else
1808  $as_echo "$as_me: program exited with status $ac_status" >&5
1809       $as_echo "$as_me: failed program was:" >&5
1810sed 's/^/| /' conftest.$ac_ext >&5
1811
1812       ac_retval=$ac_status
1813fi
1814  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816  as_fn_set_status $ac_retval
1817
1818} # ac_fn_c_try_run
1819
1820# ac_fn_c_check_func LINENO FUNC VAR
1821# ----------------------------------
1822# Tests whether FUNC exists, setting the cache variable VAR accordingly
1823ac_fn_c_check_func ()
1824{
1825  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827$as_echo_n "checking for $2... " >&6; }
1828if eval \${$3+:} false; then :
1829  $as_echo_n "(cached) " >&6
1830else
1831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832/* end confdefs.h.  */
1833/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1834   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1835#define $2 innocuous_$2
1836
1837/* System header to define __stub macros and hopefully few prototypes,
1838    which can conflict with char $2 (); below.
1839    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1840    <limits.h> exists even on freestanding compilers.  */
1841
1842#ifdef __STDC__
1843# include <limits.h>
1844#else
1845# include <assert.h>
1846#endif
1847
1848#undef $2
1849
1850/* Override any GCC internal prototype to avoid an error.
1851   Use char because int might match the return type of a GCC
1852   builtin and then its argument prototype would still apply.  */
1853#ifdef __cplusplus
1854extern "C"
1855#endif
1856char $2 ();
1857/* The GNU C library defines this for functions which it implements
1858    to always fail with ENOSYS.  Some functions are actually named
1859    something starting with __ and the normal name is an alias.  */
1860#if defined __stub_$2 || defined __stub___$2
1861choke me
1862#endif
1863
1864int
1865main ()
1866{
1867return $2 ();
1868  ;
1869  return 0;
1870}
1871_ACEOF
1872if ac_fn_c_try_link "$LINENO"; then :
1873  eval "$3=yes"
1874else
1875  eval "$3=no"
1876fi
1877rm -f core conftest.err conftest.$ac_objext \
1878    conftest$ac_exeext conftest.$ac_ext
1879fi
1880eval ac_res=\$$3
1881	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882$as_echo "$ac_res" >&6; }
1883  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884
1885} # ac_fn_c_check_func
1886
1887# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1888# ---------------------------------------------
1889# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1890# accordingly.
1891ac_fn_c_check_decl ()
1892{
1893  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894  as_decl_name=`echo $2|sed 's/ *(.*//'`
1895  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1897$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1898if eval \${$3+:} false; then :
1899  $as_echo_n "(cached) " >&6
1900else
1901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902/* end confdefs.h.  */
1903$4
1904int
1905main ()
1906{
1907#ifndef $as_decl_name
1908#ifdef __cplusplus
1909  (void) $as_decl_use;
1910#else
1911  (void) $as_decl_name;
1912#endif
1913#endif
1914
1915  ;
1916  return 0;
1917}
1918_ACEOF
1919if ac_fn_c_try_compile "$LINENO"; then :
1920  eval "$3=yes"
1921else
1922  eval "$3=no"
1923fi
1924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925fi
1926eval ac_res=\$$3
1927	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928$as_echo "$ac_res" >&6; }
1929  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931} # ac_fn_c_check_decl
1932
1933# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1934# -------------------------------------------
1935# Tests whether TYPE exists after having included INCLUDES, setting cache
1936# variable VAR accordingly.
1937ac_fn_c_check_type ()
1938{
1939  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941$as_echo_n "checking for $2... " >&6; }
1942if eval \${$3+:} false; then :
1943  $as_echo_n "(cached) " >&6
1944else
1945  eval "$3=no"
1946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h.  */
1948$4
1949int
1950main ()
1951{
1952if (sizeof ($2))
1953	 return 0;
1954  ;
1955  return 0;
1956}
1957_ACEOF
1958if ac_fn_c_try_compile "$LINENO"; then :
1959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h.  */
1961$4
1962int
1963main ()
1964{
1965if (sizeof (($2)))
1966	    return 0;
1967  ;
1968  return 0;
1969}
1970_ACEOF
1971if ac_fn_c_try_compile "$LINENO"; then :
1972
1973else
1974  eval "$3=yes"
1975fi
1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979fi
1980eval ac_res=\$$3
1981	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982$as_echo "$ac_res" >&6; }
1983  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985} # ac_fn_c_check_type
1986cat >config.log <<_ACEOF
1987This file contains any messages produced by compilers while
1988running configure, to aid debugging if configure makes a mistake.
1989
1990It was created by libltdl $as_me 2.2.6b, which was
1991generated by GNU Autoconf 2.68.  Invocation command line was
1992
1993  $ $0 $@
1994
1995_ACEOF
1996exec 5>>config.log
1997{
1998cat <<_ASUNAME
1999## --------- ##
2000## Platform. ##
2001## --------- ##
2002
2003hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2004uname -m = `(uname -m) 2>/dev/null || echo unknown`
2005uname -r = `(uname -r) 2>/dev/null || echo unknown`
2006uname -s = `(uname -s) 2>/dev/null || echo unknown`
2007uname -v = `(uname -v) 2>/dev/null || echo unknown`
2008
2009/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2010/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2011
2012/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2013/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2014/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2015/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2016/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2017/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2018/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2019
2020_ASUNAME
2021
2022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023for as_dir in $PATH
2024do
2025  IFS=$as_save_IFS
2026  test -z "$as_dir" && as_dir=.
2027    $as_echo "PATH: $as_dir"
2028  done
2029IFS=$as_save_IFS
2030
2031} >&5
2032
2033cat >&5 <<_ACEOF
2034
2035
2036## ----------- ##
2037## Core tests. ##
2038## ----------- ##
2039
2040_ACEOF
2041
2042
2043# Keep a trace of the command line.
2044# Strip out --no-create and --no-recursion so they do not pile up.
2045# Strip out --silent because we don't want to record it for future runs.
2046# Also quote any args containing shell meta-characters.
2047# Make two passes to allow for proper duplicate-argument suppression.
2048ac_configure_args=
2049ac_configure_args0=
2050ac_configure_args1=
2051ac_must_keep_next=false
2052for ac_pass in 1 2
2053do
2054  for ac_arg
2055  do
2056    case $ac_arg in
2057    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2058    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2059    | -silent | --silent | --silen | --sile | --sil)
2060      continue ;;
2061    *\'*)
2062      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2063    esac
2064    case $ac_pass in
2065    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2066    2)
2067      as_fn_append ac_configure_args1 " '$ac_arg'"
2068      if test $ac_must_keep_next = true; then
2069	ac_must_keep_next=false # Got value, back to normal.
2070      else
2071	case $ac_arg in
2072	  *=* | --config-cache | -C | -disable-* | --disable-* \
2073	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2074	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2075	  | -with-* | --with-* | -without-* | --without-* | --x)
2076	    case "$ac_configure_args0 " in
2077	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2078	    esac
2079	    ;;
2080	  -* ) ac_must_keep_next=true ;;
2081	esac
2082      fi
2083      as_fn_append ac_configure_args " '$ac_arg'"
2084      ;;
2085    esac
2086  done
2087done
2088{ ac_configure_args0=; unset ac_configure_args0;}
2089{ ac_configure_args1=; unset ac_configure_args1;}
2090
2091# When interrupted or exit'd, cleanup temporary files, and complete
2092# config.log.  We remove comments because anyway the quotes in there
2093# would cause problems or look ugly.
2094# WARNING: Use '\'' to represent an apostrophe within the trap.
2095# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2096trap 'exit_status=$?
2097  # Save into config.log some information that might help in debugging.
2098  {
2099    echo
2100
2101    $as_echo "## ---------------- ##
2102## Cache variables. ##
2103## ---------------- ##"
2104    echo
2105    # The following way of writing the cache mishandles newlines in values,
2106(
2107  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2108    eval ac_val=\$$ac_var
2109    case $ac_val in #(
2110    *${as_nl}*)
2111      case $ac_var in #(
2112      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2113$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2114      esac
2115      case $ac_var in #(
2116      _ | IFS | as_nl) ;; #(
2117      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2118      *) { eval $ac_var=; unset $ac_var;} ;;
2119      esac ;;
2120    esac
2121  done
2122  (set) 2>&1 |
2123    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2124    *${as_nl}ac_space=\ *)
2125      sed -n \
2126	"s/'\''/'\''\\\\'\'''\''/g;
2127	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2128      ;; #(
2129    *)
2130      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2131      ;;
2132    esac |
2133    sort
2134)
2135    echo
2136
2137    $as_echo "## ----------------- ##
2138## Output variables. ##
2139## ----------------- ##"
2140    echo
2141    for ac_var in $ac_subst_vars
2142    do
2143      eval ac_val=\$$ac_var
2144      case $ac_val in
2145      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146      esac
2147      $as_echo "$ac_var='\''$ac_val'\''"
2148    done | sort
2149    echo
2150
2151    if test -n "$ac_subst_files"; then
2152      $as_echo "## ------------------- ##
2153## File substitutions. ##
2154## ------------------- ##"
2155      echo
2156      for ac_var in $ac_subst_files
2157      do
2158	eval ac_val=\$$ac_var
2159	case $ac_val in
2160	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2161	esac
2162	$as_echo "$ac_var='\''$ac_val'\''"
2163      done | sort
2164      echo
2165    fi
2166
2167    if test -s confdefs.h; then
2168      $as_echo "## ----------- ##
2169## confdefs.h. ##
2170## ----------- ##"
2171      echo
2172      cat confdefs.h
2173      echo
2174    fi
2175    test "$ac_signal" != 0 &&
2176      $as_echo "$as_me: caught signal $ac_signal"
2177    $as_echo "$as_me: exit $exit_status"
2178  } >&5
2179  rm -f core *.core core.conftest.* &&
2180    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2181    exit $exit_status
2182' 0
2183for ac_signal in 1 2 13 15; do
2184  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2185done
2186ac_signal=0
2187
2188# confdefs.h avoids OS command line length limits that DEFS can exceed.
2189rm -f -r conftest* confdefs.h
2190
2191$as_echo "/* confdefs.h */" > confdefs.h
2192
2193# Predefined preprocessor variables.
2194
2195cat >>confdefs.h <<_ACEOF
2196#define PACKAGE_NAME "$PACKAGE_NAME"
2197_ACEOF
2198
2199cat >>confdefs.h <<_ACEOF
2200#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2201_ACEOF
2202
2203cat >>confdefs.h <<_ACEOF
2204#define PACKAGE_VERSION "$PACKAGE_VERSION"
2205_ACEOF
2206
2207cat >>confdefs.h <<_ACEOF
2208#define PACKAGE_STRING "$PACKAGE_STRING"
2209_ACEOF
2210
2211cat >>confdefs.h <<_ACEOF
2212#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213_ACEOF
2214
2215cat >>confdefs.h <<_ACEOF
2216#define PACKAGE_URL "$PACKAGE_URL"
2217_ACEOF
2218
2219
2220# Let the site file select an alternate cache file if it wants to.
2221# Prefer an explicitly selected file to automatically selected ones.
2222ac_site_file1=NONE
2223ac_site_file2=NONE
2224if test -n "$CONFIG_SITE"; then
2225  # We do not want a PATH search for config.site.
2226  case $CONFIG_SITE in #((
2227    -*)  ac_site_file1=./$CONFIG_SITE;;
2228    */*) ac_site_file1=$CONFIG_SITE;;
2229    *)   ac_site_file1=./$CONFIG_SITE;;
2230  esac
2231elif test "x$prefix" != xNONE; then
2232  ac_site_file1=$prefix/share/config.site
2233  ac_site_file2=$prefix/etc/config.site
2234else
2235  ac_site_file1=$ac_default_prefix/share/config.site
2236  ac_site_file2=$ac_default_prefix/etc/config.site
2237fi
2238for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2239do
2240  test "x$ac_site_file" = xNONE && continue
2241  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2242    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2243$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2244    sed 's/^/| /' "$ac_site_file" >&5
2245    . "$ac_site_file" \
2246      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248as_fn_error $? "failed to load site script $ac_site_file
2249See \`config.log' for more details" "$LINENO" 5; }
2250  fi
2251done
2252
2253if test -r "$cache_file"; then
2254  # Some versions of bash will fail to source /dev/null (special files
2255  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2256  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2257    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2258$as_echo "$as_me: loading cache $cache_file" >&6;}
2259    case $cache_file in
2260      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2261      *)                      . "./$cache_file";;
2262    esac
2263  fi
2264else
2265  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2266$as_echo "$as_me: creating cache $cache_file" >&6;}
2267  >$cache_file
2268fi
2269
2270# Check that the precious variables saved in the cache have kept the same
2271# value.
2272ac_cache_corrupted=false
2273for ac_var in $ac_precious_vars; do
2274  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2275  eval ac_new_set=\$ac_env_${ac_var}_set
2276  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2277  eval ac_new_val=\$ac_env_${ac_var}_value
2278  case $ac_old_set,$ac_new_set in
2279    set,)
2280      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2281$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2282      ac_cache_corrupted=: ;;
2283    ,set)
2284      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2285$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2286      ac_cache_corrupted=: ;;
2287    ,);;
2288    *)
2289      if test "x$ac_old_val" != "x$ac_new_val"; then
2290	# differences in whitespace do not lead to failure.
2291	ac_old_val_w=`echo x $ac_old_val`
2292	ac_new_val_w=`echo x $ac_new_val`
2293	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2294	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2295$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2296	  ac_cache_corrupted=:
2297	else
2298	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2299$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2300	  eval $ac_var=\$ac_old_val
2301	fi
2302	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2303$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2304	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2305$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2306      fi;;
2307  esac
2308  # Pass precious variables to config.status.
2309  if test "$ac_new_set" = set; then
2310    case $ac_new_val in
2311    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2312    *) ac_arg=$ac_var=$ac_new_val ;;
2313    esac
2314    case " $ac_configure_args " in
2315      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2316      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2317    esac
2318  fi
2319done
2320if $ac_cache_corrupted; then
2321  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2324$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2325  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2326fi
2327## -------------------- ##
2328## Main body of script. ##
2329## -------------------- ##
2330
2331ac_ext=c
2332ac_cpp='$CPP $CPPFLAGS'
2333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336
2337
2338ac_config_headers="$ac_config_headers config.h:config-h.in"
2339
2340
2341ac_aux_dir=
2342for ac_dir in config "$srcdir"/config; do
2343  if test -f "$ac_dir/install-sh"; then
2344    ac_aux_dir=$ac_dir
2345    ac_install_sh="$ac_aux_dir/install-sh -c"
2346    break
2347  elif test -f "$ac_dir/install.sh"; then
2348    ac_aux_dir=$ac_dir
2349    ac_install_sh="$ac_aux_dir/install.sh -c"
2350    break
2351  elif test -f "$ac_dir/shtool"; then
2352    ac_aux_dir=$ac_dir
2353    ac_install_sh="$ac_aux_dir/shtool install -c"
2354    break
2355  fi
2356done
2357if test -z "$ac_aux_dir"; then
2358  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2359fi
2360
2361# These three variables are undocumented and unsupported,
2362# and are intended to be withdrawn in a future Autoconf release.
2363# They can cause serious problems if a builder's source tree is in a directory
2364# whose full name contains unusual characters.
2365ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2366ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2367ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2368
2369
2370
2371
2372
2373
2374
2375
2376 # I am me!
2377
2378
2379## ------------------------ ##
2380## Automake Initialisation. ##
2381## ------------------------ ##
2382
2383am__api_version='1.11'
2384
2385# Find a good install program.  We prefer a C program (faster),
2386# so one script is as good as another.  But avoid the broken or
2387# incompatible versions:
2388# SysV /etc/install, /usr/sbin/install
2389# SunOS /usr/etc/install
2390# IRIX /sbin/install
2391# AIX /bin/install
2392# AmigaOS /C/install, which installs bootblocks on floppy discs
2393# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2394# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2395# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2396# OS/2's system install, which has a completely different semantic
2397# ./install, which can be erroneously created by make from ./install.sh.
2398# Reject install programs that cannot install multiple files.
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2400$as_echo_n "checking for a BSD-compatible install... " >&6; }
2401if test -z "$INSTALL"; then
2402if ${ac_cv_path_install+:} false; then :
2403  $as_echo_n "(cached) " >&6
2404else
2405  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406for as_dir in $PATH
2407do
2408  IFS=$as_save_IFS
2409  test -z "$as_dir" && as_dir=.
2410    # Account for people who put trailing slashes in PATH elements.
2411case $as_dir/ in #((
2412  ./ | .// | /[cC]/* | \
2413  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2414  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2415  /usr/ucb/* ) ;;
2416  *)
2417    # OSF1 and SCO ODT 3.0 have their own names for install.
2418    # Don't use installbsd from OSF since it installs stuff as root
2419    # by default.
2420    for ac_prog in ginstall scoinst install; do
2421      for ac_exec_ext in '' $ac_executable_extensions; do
2422	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2423	  if test $ac_prog = install &&
2424	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2425	    # AIX install.  It has an incompatible calling convention.
2426	    :
2427	  elif test $ac_prog = install &&
2428	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2429	    # program-specific install script used by HP pwplus--don't use.
2430	    :
2431	  else
2432	    rm -rf conftest.one conftest.two conftest.dir
2433	    echo one > conftest.one
2434	    echo two > conftest.two
2435	    mkdir conftest.dir
2436	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2437	      test -s conftest.one && test -s conftest.two &&
2438	      test -s conftest.dir/conftest.one &&
2439	      test -s conftest.dir/conftest.two
2440	    then
2441	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2442	      break 3
2443	    fi
2444	  fi
2445	fi
2446      done
2447    done
2448    ;;
2449esac
2450
2451  done
2452IFS=$as_save_IFS
2453
2454rm -rf conftest.one conftest.two conftest.dir
2455
2456fi
2457  if test "${ac_cv_path_install+set}" = set; then
2458    INSTALL=$ac_cv_path_install
2459  else
2460    # As a last resort, use the slow shell script.  Don't cache a
2461    # value for INSTALL within a source directory, because that will
2462    # break other packages using the cache if that directory is
2463    # removed, or if the value is a relative name.
2464    INSTALL=$ac_install_sh
2465  fi
2466fi
2467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2468$as_echo "$INSTALL" >&6; }
2469
2470# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2471# It thinks the first close brace ends the variable substitution.
2472test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2473
2474test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2475
2476test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2477
2478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2479$as_echo_n "checking whether build environment is sane... " >&6; }
2480# Just in case
2481sleep 1
2482echo timestamp > conftest.file
2483# Reject unsafe characters in $srcdir or the absolute working directory
2484# name.  Accept space and tab only in the latter.
2485am_lf='
2486'
2487case `pwd` in
2488  *[\\\"\#\$\&\'\`$am_lf]*)
2489    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2490esac
2491case $srcdir in
2492  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2493    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2494esac
2495
2496# Do `set' in a subshell so we don't clobber the current shell's
2497# arguments.  Must try -L first in case configure is actually a
2498# symlink; some systems play weird games with the mod time of symlinks
2499# (eg FreeBSD returns the mod time of the symlink's containing
2500# directory).
2501if (
2502   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2503   if test "$*" = "X"; then
2504      # -L didn't work.
2505      set X `ls -t "$srcdir/configure" conftest.file`
2506   fi
2507   rm -f conftest.file
2508   if test "$*" != "X $srcdir/configure conftest.file" \
2509      && test "$*" != "X conftest.file $srcdir/configure"; then
2510
2511      # If neither matched, then we have a broken ls.  This can happen
2512      # if, for instance, CONFIG_SHELL is bash and it inherits a
2513      # broken ls alias from the environment.  This has actually
2514      # happened.  Such a system could not be considered "sane".
2515      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2516alias in your environment" "$LINENO" 5
2517   fi
2518
2519   test "$2" = conftest.file
2520   )
2521then
2522   # Ok.
2523   :
2524else
2525   as_fn_error $? "newly created file is older than distributed files!
2526Check your system clock" "$LINENO" 5
2527fi
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2529$as_echo "yes" >&6; }
2530test "$program_prefix" != NONE &&
2531  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2532# Use a double $ so make ignores it.
2533test "$program_suffix" != NONE &&
2534  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2535# Double any \ or $.
2536# By default was `s,x,x', remove it if useless.
2537ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2538program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2539
2540# expand $ac_aux_dir to an absolute path
2541am_aux_dir=`cd $ac_aux_dir && pwd`
2542
2543if test x"${MISSING+set}" != xset; then
2544  case $am_aux_dir in
2545  *\ * | *\	*)
2546    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2547  *)
2548    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2549  esac
2550fi
2551# Use eval to expand $SHELL
2552if eval "$MISSING --run true"; then
2553  am_missing_run="$MISSING --run "
2554else
2555  am_missing_run=
2556  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2557$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2558fi
2559
2560if test x"${install_sh}" != xset; then
2561  case $am_aux_dir in
2562  *\ * | *\	*)
2563    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2564  *)
2565    install_sh="\${SHELL} $am_aux_dir/install-sh"
2566  esac
2567fi
2568
2569# Installed binaries are usually stripped using `strip' when the user
2570# run `make install-strip'.  However `strip' might not be the right
2571# tool to use in cross-compilation environments, therefore Automake
2572# will honor the `STRIP' environment variable to overrule this program.
2573if test "$cross_compiling" != no; then
2574  if test -n "$ac_tool_prefix"; then
2575  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2576set dummy ${ac_tool_prefix}strip; ac_word=$2
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2578$as_echo_n "checking for $ac_word... " >&6; }
2579if ${ac_cv_prog_STRIP+:} false; then :
2580  $as_echo_n "(cached) " >&6
2581else
2582  if test -n "$STRIP"; then
2583  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2584else
2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH
2587do
2588  IFS=$as_save_IFS
2589  test -z "$as_dir" && as_dir=.
2590    for ac_exec_ext in '' $ac_executable_extensions; do
2591  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2592    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2594    break 2
2595  fi
2596done
2597  done
2598IFS=$as_save_IFS
2599
2600fi
2601fi
2602STRIP=$ac_cv_prog_STRIP
2603if test -n "$STRIP"; then
2604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2605$as_echo "$STRIP" >&6; }
2606else
2607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608$as_echo "no" >&6; }
2609fi
2610
2611
2612fi
2613if test -z "$ac_cv_prog_STRIP"; then
2614  ac_ct_STRIP=$STRIP
2615  # Extract the first word of "strip", so it can be a program name with args.
2616set dummy strip; ac_word=$2
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618$as_echo_n "checking for $ac_word... " >&6; }
2619if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2620  $as_echo_n "(cached) " >&6
2621else
2622  if test -n "$ac_ct_STRIP"; then
2623  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2624else
2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628  IFS=$as_save_IFS
2629  test -z "$as_dir" && as_dir=.
2630    for ac_exec_ext in '' $ac_executable_extensions; do
2631  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632    ac_cv_prog_ac_ct_STRIP="strip"
2633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634    break 2
2635  fi
2636done
2637  done
2638IFS=$as_save_IFS
2639
2640fi
2641fi
2642ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2643if test -n "$ac_ct_STRIP"; then
2644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2645$as_echo "$ac_ct_STRIP" >&6; }
2646else
2647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648$as_echo "no" >&6; }
2649fi
2650
2651  if test "x$ac_ct_STRIP" = x; then
2652    STRIP=":"
2653  else
2654    case $cross_compiling:$ac_tool_warned in
2655yes:)
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2658ac_tool_warned=yes ;;
2659esac
2660    STRIP=$ac_ct_STRIP
2661  fi
2662else
2663  STRIP="$ac_cv_prog_STRIP"
2664fi
2665
2666fi
2667INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2668
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2670$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2671if test -z "$MKDIR_P"; then
2672  if ${ac_cv_path_mkdir+:} false; then :
2673  $as_echo_n "(cached) " >&6
2674else
2675  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2677do
2678  IFS=$as_save_IFS
2679  test -z "$as_dir" && as_dir=.
2680    for ac_prog in mkdir gmkdir; do
2681	 for ac_exec_ext in '' $ac_executable_extensions; do
2682	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2683	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2684	     'mkdir (GNU coreutils) '* | \
2685	     'mkdir (coreutils) '* | \
2686	     'mkdir (fileutils) '4.1*)
2687	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2688	       break 3;;
2689	   esac
2690	 done
2691       done
2692  done
2693IFS=$as_save_IFS
2694
2695fi
2696
2697  test -d ./--version && rmdir ./--version
2698  if test "${ac_cv_path_mkdir+set}" = set; then
2699    MKDIR_P="$ac_cv_path_mkdir -p"
2700  else
2701    # As a last resort, use the slow shell script.  Don't cache a
2702    # value for MKDIR_P within a source directory, because that will
2703    # break other packages using the cache if that directory is
2704    # removed, or if the value is a relative name.
2705    MKDIR_P="$ac_install_sh -d"
2706  fi
2707fi
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2709$as_echo "$MKDIR_P" >&6; }
2710
2711mkdir_p="$MKDIR_P"
2712case $mkdir_p in
2713  [\\/$]* | ?:[\\/]*) ;;
2714  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2715esac
2716
2717for ac_prog in gawk mawk nawk awk
2718do
2719  # Extract the first word of "$ac_prog", so it can be a program name with args.
2720set dummy $ac_prog; ac_word=$2
2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722$as_echo_n "checking for $ac_word... " >&6; }
2723if ${ac_cv_prog_AWK+:} false; then :
2724  $as_echo_n "(cached) " >&6
2725else
2726  if test -n "$AWK"; then
2727  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2728else
2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730for as_dir in $PATH
2731do
2732  IFS=$as_save_IFS
2733  test -z "$as_dir" && as_dir=.
2734    for ac_exec_ext in '' $ac_executable_extensions; do
2735  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736    ac_cv_prog_AWK="$ac_prog"
2737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738    break 2
2739  fi
2740done
2741  done
2742IFS=$as_save_IFS
2743
2744fi
2745fi
2746AWK=$ac_cv_prog_AWK
2747if test -n "$AWK"; then
2748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2749$as_echo "$AWK" >&6; }
2750else
2751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752$as_echo "no" >&6; }
2753fi
2754
2755
2756  test -n "$AWK" && break
2757done
2758
2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2760$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2761set x ${MAKE-make}
2762ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2763if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2764  $as_echo_n "(cached) " >&6
2765else
2766  cat >conftest.make <<\_ACEOF
2767SHELL = /bin/sh
2768all:
2769	@echo '@@@%%%=$(MAKE)=@@@%%%'
2770_ACEOF
2771# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2772case `${MAKE-make} -f conftest.make 2>/dev/null` in
2773  *@@@%%%=?*=@@@%%%*)
2774    eval ac_cv_prog_make_${ac_make}_set=yes;;
2775  *)
2776    eval ac_cv_prog_make_${ac_make}_set=no;;
2777esac
2778rm -f conftest.make
2779fi
2780if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2782$as_echo "yes" >&6; }
2783  SET_MAKE=
2784else
2785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786$as_echo "no" >&6; }
2787  SET_MAKE="MAKE=${MAKE-make}"
2788fi
2789
2790rm -rf .tst 2>/dev/null
2791mkdir .tst 2>/dev/null
2792if test -d .tst; then
2793  am__leading_dot=.
2794else
2795  am__leading_dot=_
2796fi
2797rmdir .tst 2>/dev/null
2798
2799if test "`cd $srcdir && pwd`" != "`pwd`"; then
2800  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2801  # is not polluted with repeated "-I."
2802  am__isrc=' -I$(srcdir)'
2803  # test to see if srcdir already configured
2804  if test -f $srcdir/config.status; then
2805    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2806  fi
2807fi
2808
2809# test whether we have cygpath
2810if test -z "$CYGPATH_W"; then
2811  if (cygpath --version) >/dev/null 2>/dev/null; then
2812    CYGPATH_W='cygpath -w'
2813  else
2814    CYGPATH_W=echo
2815  fi
2816fi
2817
2818
2819# Define the identity of the package.
2820 PACKAGE='libltdl'
2821 VERSION='2.2.6b'
2822
2823
2824cat >>confdefs.h <<_ACEOF
2825#define PACKAGE "$PACKAGE"
2826_ACEOF
2827
2828
2829cat >>confdefs.h <<_ACEOF
2830#define VERSION "$VERSION"
2831_ACEOF
2832
2833# Some tools Automake needs.
2834
2835ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2836
2837
2838AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2839
2840
2841AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2842
2843
2844AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2845
2846
2847MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2848
2849# We need awk for the "check" target.  The system "awk" is bad on
2850# some platforms.
2851# Always define AMTAR for backward compatibility.
2852
2853AMTAR=${AMTAR-"${am_missing_run}tar"}
2854
2855am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2856
2857
2858
2859
2860
2861
2862
2863## ------------------------------- ##
2864## Libtool specific configuration. ##
2865## ------------------------------- ##
2866pkgdatadir='${datadir}'"/${PACKAGE}"
2867
2868
2869## ----------------------- ##
2870## Libtool initialisation. ##
2871## ----------------------- ##
2872case `pwd` in
2873  *\ * | *\	*)
2874    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2875$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2876esac
2877
2878
2879
2880macro_version='2.2.6b'
2881macro_revision='1.3018'
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895ltmain="$ac_aux_dir/ltmain.sh"
2896
2897# Make sure we can run config.sub.
2898$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2899  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2900
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2902$as_echo_n "checking build system type... " >&6; }
2903if ${ac_cv_build+:} false; then :
2904  $as_echo_n "(cached) " >&6
2905else
2906  ac_build_alias=$build_alias
2907test "x$ac_build_alias" = x &&
2908  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2909test "x$ac_build_alias" = x &&
2910  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2911ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2912  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2913
2914fi
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2916$as_echo "$ac_cv_build" >&6; }
2917case $ac_cv_build in
2918*-*-*) ;;
2919*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2920esac
2921build=$ac_cv_build
2922ac_save_IFS=$IFS; IFS='-'
2923set x $ac_cv_build
2924shift
2925build_cpu=$1
2926build_vendor=$2
2927shift; shift
2928# Remember, the first character of IFS is used to create $*,
2929# except with old shells:
2930build_os=$*
2931IFS=$ac_save_IFS
2932case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2933
2934
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2936$as_echo_n "checking host system type... " >&6; }
2937if ${ac_cv_host+:} false; then :
2938  $as_echo_n "(cached) " >&6
2939else
2940  if test "x$host_alias" = x; then
2941  ac_cv_host=$ac_cv_build
2942else
2943  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2944    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2945fi
2946
2947fi
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2949$as_echo "$ac_cv_host" >&6; }
2950case $ac_cv_host in
2951*-*-*) ;;
2952*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2953esac
2954host=$ac_cv_host
2955ac_save_IFS=$IFS; IFS='-'
2956set x $ac_cv_host
2957shift
2958host_cpu=$1
2959host_vendor=$2
2960shift; shift
2961# Remember, the first character of IFS is used to create $*,
2962# except with old shells:
2963host_os=$*
2964IFS=$ac_save_IFS
2965case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2966
2967
2968DEPDIR="${am__leading_dot}deps"
2969
2970ac_config_commands="$ac_config_commands depfiles"
2971
2972
2973am_make=${MAKE-make}
2974cat > confinc << 'END'
2975am__doit:
2976	@echo this is the am__doit target
2977.PHONY: am__doit
2978END
2979# If we don't find an include directive, just comment out the code.
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2981$as_echo_n "checking for style of include used by $am_make... " >&6; }
2982am__include="#"
2983am__quote=
2984_am_result=none
2985# First try GNU make style include.
2986echo "include confinc" > confmf
2987# Ignore all kinds of additional output from `make'.
2988case `$am_make -s -f confmf 2> /dev/null` in #(
2989*the\ am__doit\ target*)
2990  am__include=include
2991  am__quote=
2992  _am_result=GNU
2993  ;;
2994esac
2995# Now try BSD make style include.
2996if test "$am__include" = "#"; then
2997   echo '.include "confinc"' > confmf
2998   case `$am_make -s -f confmf 2> /dev/null` in #(
2999   *the\ am__doit\ target*)
3000     am__include=.include
3001     am__quote="\""
3002     _am_result=BSD
3003     ;;
3004   esac
3005fi
3006
3007
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3009$as_echo "$_am_result" >&6; }
3010rm -f confinc confmf
3011
3012# Check whether --enable-dependency-tracking was given.
3013if test "${enable_dependency_tracking+set}" = set; then :
3014  enableval=$enable_dependency_tracking;
3015fi
3016
3017if test "x$enable_dependency_tracking" != xno; then
3018  am_depcomp="$ac_aux_dir/depcomp"
3019  AMDEPBACKSLASH='\'
3020fi
3021 if test "x$enable_dependency_tracking" != xno; then
3022  AMDEP_TRUE=
3023  AMDEP_FALSE='#'
3024else
3025  AMDEP_TRUE='#'
3026  AMDEP_FALSE=
3027fi
3028
3029
3030ac_ext=c
3031ac_cpp='$CPP $CPPFLAGS'
3032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035if test -n "$ac_tool_prefix"; then
3036  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3037set dummy ${ac_tool_prefix}gcc; ac_word=$2
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039$as_echo_n "checking for $ac_word... " >&6; }
3040if ${ac_cv_prog_CC+:} false; then :
3041  $as_echo_n "(cached) " >&6
3042else
3043  if test -n "$CC"; then
3044  ac_cv_prog_CC="$CC" # Let the user override the test.
3045else
3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047for as_dir in $PATH
3048do
3049  IFS=$as_save_IFS
3050  test -z "$as_dir" && as_dir=.
3051    for ac_exec_ext in '' $ac_executable_extensions; do
3052  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055    break 2
3056  fi
3057done
3058  done
3059IFS=$as_save_IFS
3060
3061fi
3062fi
3063CC=$ac_cv_prog_CC
3064if test -n "$CC"; then
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066$as_echo "$CC" >&6; }
3067else
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069$as_echo "no" >&6; }
3070fi
3071
3072
3073fi
3074if test -z "$ac_cv_prog_CC"; then
3075  ac_ct_CC=$CC
3076  # Extract the first word of "gcc", so it can be a program name with args.
3077set dummy gcc; ac_word=$2
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079$as_echo_n "checking for $ac_word... " >&6; }
3080if ${ac_cv_prog_ac_ct_CC+:} false; then :
3081  $as_echo_n "(cached) " >&6
3082else
3083  if test -n "$ac_ct_CC"; then
3084  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089  IFS=$as_save_IFS
3090  test -z "$as_dir" && as_dir=.
3091    for ac_exec_ext in '' $ac_executable_extensions; do
3092  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093    ac_cv_prog_ac_ct_CC="gcc"
3094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095    break 2
3096  fi
3097done
3098  done
3099IFS=$as_save_IFS
3100
3101fi
3102fi
3103ac_ct_CC=$ac_cv_prog_ac_ct_CC
3104if test -n "$ac_ct_CC"; then
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3106$as_echo "$ac_ct_CC" >&6; }
3107else
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
3111
3112  if test "x$ac_ct_CC" = x; then
3113    CC=""
3114  else
3115    case $cross_compiling:$ac_tool_warned in
3116yes:)
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3119ac_tool_warned=yes ;;
3120esac
3121    CC=$ac_ct_CC
3122  fi
3123else
3124  CC="$ac_cv_prog_CC"
3125fi
3126
3127if test -z "$CC"; then
3128          if test -n "$ac_tool_prefix"; then
3129    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3130set dummy ${ac_tool_prefix}cc; ac_word=$2
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132$as_echo_n "checking for $ac_word... " >&6; }
3133if ${ac_cv_prog_CC+:} false; then :
3134  $as_echo_n "(cached) " >&6
3135else
3136  if test -n "$CC"; then
3137  ac_cv_prog_CC="$CC" # Let the user override the test.
3138else
3139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140for as_dir in $PATH
3141do
3142  IFS=$as_save_IFS
3143  test -z "$as_dir" && as_dir=.
3144    for ac_exec_ext in '' $ac_executable_extensions; do
3145  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146    ac_cv_prog_CC="${ac_tool_prefix}cc"
3147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148    break 2
3149  fi
3150done
3151  done
3152IFS=$as_save_IFS
3153
3154fi
3155fi
3156CC=$ac_cv_prog_CC
3157if test -n "$CC"; then
3158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159$as_echo "$CC" >&6; }
3160else
3161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162$as_echo "no" >&6; }
3163fi
3164
3165
3166  fi
3167fi
3168if test -z "$CC"; then
3169  # Extract the first word of "cc", so it can be a program name with args.
3170set dummy cc; ac_word=$2
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172$as_echo_n "checking for $ac_word... " >&6; }
3173if ${ac_cv_prog_CC+:} false; then :
3174  $as_echo_n "(cached) " >&6
3175else
3176  if test -n "$CC"; then
3177  ac_cv_prog_CC="$CC" # Let the user override the test.
3178else
3179  ac_prog_rejected=no
3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181for as_dir in $PATH
3182do
3183  IFS=$as_save_IFS
3184  test -z "$as_dir" && as_dir=.
3185    for ac_exec_ext in '' $ac_executable_extensions; do
3186  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3188       ac_prog_rejected=yes
3189       continue
3190     fi
3191    ac_cv_prog_CC="cc"
3192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193    break 2
3194  fi
3195done
3196  done
3197IFS=$as_save_IFS
3198
3199if test $ac_prog_rejected = yes; then
3200  # We found a bogon in the path, so make sure we never use it.
3201  set dummy $ac_cv_prog_CC
3202  shift
3203  if test $# != 0; then
3204    # We chose a different compiler from the bogus one.
3205    # However, it has the same basename, so the bogon will be chosen
3206    # first if we set CC to just the basename; use the full file name.
3207    shift
3208    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3209  fi
3210fi
3211fi
3212fi
3213CC=$ac_cv_prog_CC
3214if test -n "$CC"; then
3215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3216$as_echo "$CC" >&6; }
3217else
3218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219$as_echo "no" >&6; }
3220fi
3221
3222
3223fi
3224if test -z "$CC"; then
3225  if test -n "$ac_tool_prefix"; then
3226  for ac_prog in cl.exe
3227  do
3228    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3229set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231$as_echo_n "checking for $ac_word... " >&6; }
3232if ${ac_cv_prog_CC+:} false; then :
3233  $as_echo_n "(cached) " >&6
3234else
3235  if test -n "$CC"; then
3236  ac_cv_prog_CC="$CC" # Let the user override the test.
3237else
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241  IFS=$as_save_IFS
3242  test -z "$as_dir" && as_dir=.
3243    for ac_exec_ext in '' $ac_executable_extensions; do
3244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247    break 2
3248  fi
3249done
3250  done
3251IFS=$as_save_IFS
3252
3253fi
3254fi
3255CC=$ac_cv_prog_CC
3256if test -n "$CC"; then
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258$as_echo "$CC" >&6; }
3259else
3260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262fi
3263
3264
3265    test -n "$CC" && break
3266  done
3267fi
3268if test -z "$CC"; then
3269  ac_ct_CC=$CC
3270  for ac_prog in cl.exe
3271do
3272  # Extract the first word of "$ac_prog", so it can be a program name with args.
3273set dummy $ac_prog; ac_word=$2
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275$as_echo_n "checking for $ac_word... " >&6; }
3276if ${ac_cv_prog_ac_ct_CC+:} false; then :
3277  $as_echo_n "(cached) " >&6
3278else
3279  if test -n "$ac_ct_CC"; then
3280  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3281else
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285  IFS=$as_save_IFS
3286  test -z "$as_dir" && as_dir=.
3287    for ac_exec_ext in '' $ac_executable_extensions; do
3288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289    ac_cv_prog_ac_ct_CC="$ac_prog"
3290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291    break 2
3292  fi
3293done
3294  done
3295IFS=$as_save_IFS
3296
3297fi
3298fi
3299ac_ct_CC=$ac_cv_prog_ac_ct_CC
3300if test -n "$ac_ct_CC"; then
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3302$as_echo "$ac_ct_CC" >&6; }
3303else
3304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305$as_echo "no" >&6; }
3306fi
3307
3308
3309  test -n "$ac_ct_CC" && break
3310done
3311
3312  if test "x$ac_ct_CC" = x; then
3313    CC=""
3314  else
3315    case $cross_compiling:$ac_tool_warned in
3316yes:)
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3319ac_tool_warned=yes ;;
3320esac
3321    CC=$ac_ct_CC
3322  fi
3323fi
3324
3325fi
3326
3327
3328test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3330as_fn_error $? "no acceptable C compiler found in \$PATH
3331See \`config.log' for more details" "$LINENO" 5; }
3332
3333# Provide some information about the compiler.
3334$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3335set X $ac_compile
3336ac_compiler=$2
3337for ac_option in --version -v -V -qversion; do
3338  { { ac_try="$ac_compiler $ac_option >&5"
3339case "(($ac_try" in
3340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341  *) ac_try_echo=$ac_try;;
3342esac
3343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344$as_echo "$ac_try_echo"; } >&5
3345  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3346  ac_status=$?
3347  if test -s conftest.err; then
3348    sed '10a\
3349... rest of stderr output deleted ...
3350         10q' conftest.err >conftest.er1
3351    cat conftest.er1 >&5
3352  fi
3353  rm -f conftest.er1 conftest.err
3354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355  test $ac_status = 0; }
3356done
3357
3358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359/* end confdefs.h.  */
3360
3361int
3362main ()
3363{
3364
3365  ;
3366  return 0;
3367}
3368_ACEOF
3369ac_clean_files_save=$ac_clean_files
3370ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3371# Try to create an executable without -o first, disregard a.out.
3372# It will help us diagnose broken compilers, and finding out an intuition
3373# of exeext.
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3375$as_echo_n "checking whether the C compiler works... " >&6; }
3376ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3377
3378# The possible output files:
3379ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3380
3381ac_rmfiles=
3382for ac_file in $ac_files
3383do
3384  case $ac_file in
3385    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3386    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3387  esac
3388done
3389rm -f $ac_rmfiles
3390
3391if { { ac_try="$ac_link_default"
3392case "(($ac_try" in
3393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394  *) ac_try_echo=$ac_try;;
3395esac
3396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397$as_echo "$ac_try_echo"; } >&5
3398  (eval "$ac_link_default") 2>&5
3399  ac_status=$?
3400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401  test $ac_status = 0; }; then :
3402  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3403# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3404# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3405# so that the user can short-circuit this test for compilers unknown to
3406# Autoconf.
3407for ac_file in $ac_files ''
3408do
3409  test -f "$ac_file" || continue
3410  case $ac_file in
3411    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3412	;;
3413    [ab].out )
3414	# We found the default executable, but exeext='' is most
3415	# certainly right.
3416	break;;
3417    *.* )
3418	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3419	then :; else
3420	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3421	fi
3422	# We set ac_cv_exeext here because the later test for it is not
3423	# safe: cross compilers may not add the suffix if given an `-o'
3424	# argument, so we may need to know it at that point already.
3425	# Even if this section looks crufty: it has the advantage of
3426	# actually working.
3427	break;;
3428    * )
3429	break;;
3430  esac
3431done
3432test "$ac_cv_exeext" = no && ac_cv_exeext=
3433
3434else
3435  ac_file=''
3436fi
3437if test -z "$ac_file"; then :
3438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439$as_echo "no" >&6; }
3440$as_echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
3443{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445as_fn_error 77 "C compiler cannot create executables
3446See \`config.log' for more details" "$LINENO" 5; }
3447else
3448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3449$as_echo "yes" >&6; }
3450fi
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3452$as_echo_n "checking for C compiler default output file name... " >&6; }
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3454$as_echo "$ac_file" >&6; }
3455ac_exeext=$ac_cv_exeext
3456
3457rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3458ac_clean_files=$ac_clean_files_save
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3460$as_echo_n "checking for suffix of executables... " >&6; }
3461if { { ac_try="$ac_link"
3462case "(($ac_try" in
3463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464  *) ac_try_echo=$ac_try;;
3465esac
3466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467$as_echo "$ac_try_echo"; } >&5
3468  (eval "$ac_link") 2>&5
3469  ac_status=$?
3470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471  test $ac_status = 0; }; then :
3472  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3473# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3474# work properly (i.e., refer to `conftest.exe'), while it won't with
3475# `rm'.
3476for ac_file in conftest.exe conftest conftest.*; do
3477  test -f "$ac_file" || continue
3478  case $ac_file in
3479    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3480    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3481	  break;;
3482    * ) break;;
3483  esac
3484done
3485else
3486  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3489See \`config.log' for more details" "$LINENO" 5; }
3490fi
3491rm -f conftest conftest$ac_cv_exeext
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3493$as_echo "$ac_cv_exeext" >&6; }
3494
3495rm -f conftest.$ac_ext
3496EXEEXT=$ac_cv_exeext
3497ac_exeext=$EXEEXT
3498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h.  */
3500#include <stdio.h>
3501int
3502main ()
3503{
3504FILE *f = fopen ("conftest.out", "w");
3505 return ferror (f) || fclose (f) != 0;
3506
3507  ;
3508  return 0;
3509}
3510_ACEOF
3511ac_clean_files="$ac_clean_files conftest.out"
3512# Check that the compiler produces executables we can run.  If not, either
3513# the compiler is broken, or we cross compile.
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3515$as_echo_n "checking whether we are cross compiling... " >&6; }
3516if test "$cross_compiling" != yes; then
3517  { { ac_try="$ac_link"
3518case "(($ac_try" in
3519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520  *) ac_try_echo=$ac_try;;
3521esac
3522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523$as_echo "$ac_try_echo"; } >&5
3524  (eval "$ac_link") 2>&5
3525  ac_status=$?
3526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3527  test $ac_status = 0; }
3528  if { ac_try='./conftest$ac_cv_exeext'
3529  { { case "(($ac_try" in
3530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531  *) ac_try_echo=$ac_try;;
3532esac
3533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534$as_echo "$ac_try_echo"; } >&5
3535  (eval "$ac_try") 2>&5
3536  ac_status=$?
3537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538  test $ac_status = 0; }; }; then
3539    cross_compiling=no
3540  else
3541    if test "$cross_compiling" = maybe; then
3542	cross_compiling=yes
3543    else
3544	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546as_fn_error $? "cannot run C compiled programs.
3547If you meant to cross compile, use \`--host'.
3548See \`config.log' for more details" "$LINENO" 5; }
3549    fi
3550  fi
3551fi
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3553$as_echo "$cross_compiling" >&6; }
3554
3555rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3556ac_clean_files=$ac_clean_files_save
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3558$as_echo_n "checking for suffix of object files... " >&6; }
3559if ${ac_cv_objext+:} false; then :
3560  $as_echo_n "(cached) " >&6
3561else
3562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563/* end confdefs.h.  */
3564
3565int
3566main ()
3567{
3568
3569  ;
3570  return 0;
3571}
3572_ACEOF
3573rm -f conftest.o conftest.obj
3574if { { ac_try="$ac_compile"
3575case "(($ac_try" in
3576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577  *) ac_try_echo=$ac_try;;
3578esac
3579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580$as_echo "$ac_try_echo"; } >&5
3581  (eval "$ac_compile") 2>&5
3582  ac_status=$?
3583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584  test $ac_status = 0; }; then :
3585  for ac_file in conftest.o conftest.obj conftest.*; do
3586  test -f "$ac_file" || continue;
3587  case $ac_file in
3588    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3589    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3590       break;;
3591  esac
3592done
3593else
3594  $as_echo "$as_me: failed program was:" >&5
3595sed 's/^/| /' conftest.$ac_ext >&5
3596
3597{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3599as_fn_error $? "cannot compute suffix of object files: cannot compile
3600See \`config.log' for more details" "$LINENO" 5; }
3601fi
3602rm -f conftest.$ac_cv_objext conftest.$ac_ext
3603fi
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3605$as_echo "$ac_cv_objext" >&6; }
3606OBJEXT=$ac_cv_objext
3607ac_objext=$OBJEXT
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3609$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3610if ${ac_cv_c_compiler_gnu+:} false; then :
3611  $as_echo_n "(cached) " >&6
3612else
3613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614/* end confdefs.h.  */
3615
3616int
3617main ()
3618{
3619#ifndef __GNUC__
3620       choke me
3621#endif
3622
3623  ;
3624  return 0;
3625}
3626_ACEOF
3627if ac_fn_c_try_compile "$LINENO"; then :
3628  ac_compiler_gnu=yes
3629else
3630  ac_compiler_gnu=no
3631fi
3632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633ac_cv_c_compiler_gnu=$ac_compiler_gnu
3634
3635fi
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3637$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3638if test $ac_compiler_gnu = yes; then
3639  GCC=yes
3640else
3641  GCC=
3642fi
3643ac_test_CFLAGS=${CFLAGS+set}
3644ac_save_CFLAGS=$CFLAGS
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3646$as_echo_n "checking whether $CC accepts -g... " >&6; }
3647if ${ac_cv_prog_cc_g+:} false; then :
3648  $as_echo_n "(cached) " >&6
3649else
3650  ac_save_c_werror_flag=$ac_c_werror_flag
3651   ac_c_werror_flag=yes
3652   ac_cv_prog_cc_g=no
3653   CFLAGS="-g"
3654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655/* end confdefs.h.  */
3656
3657int
3658main ()
3659{
3660
3661  ;
3662  return 0;
3663}
3664_ACEOF
3665if ac_fn_c_try_compile "$LINENO"; then :
3666  ac_cv_prog_cc_g=yes
3667else
3668  CFLAGS=""
3669      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670/* end confdefs.h.  */
3671
3672int
3673main ()
3674{
3675
3676  ;
3677  return 0;
3678}
3679_ACEOF
3680if ac_fn_c_try_compile "$LINENO"; then :
3681
3682else
3683  ac_c_werror_flag=$ac_save_c_werror_flag
3684	 CFLAGS="-g"
3685	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686/* end confdefs.h.  */
3687
3688int
3689main ()
3690{
3691
3692  ;
3693  return 0;
3694}
3695_ACEOF
3696if ac_fn_c_try_compile "$LINENO"; then :
3697  ac_cv_prog_cc_g=yes
3698fi
3699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700fi
3701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702fi
3703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704   ac_c_werror_flag=$ac_save_c_werror_flag
3705fi
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3707$as_echo "$ac_cv_prog_cc_g" >&6; }
3708if test "$ac_test_CFLAGS" = set; then
3709  CFLAGS=$ac_save_CFLAGS
3710elif test $ac_cv_prog_cc_g = yes; then
3711  if test "$GCC" = yes; then
3712    CFLAGS="-g -O2"
3713  else
3714    CFLAGS="-g"
3715  fi
3716else
3717  if test "$GCC" = yes; then
3718    CFLAGS="-O2"
3719  else
3720    CFLAGS=
3721  fi
3722fi
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3724$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3725if ${ac_cv_prog_cc_c89+:} false; then :
3726  $as_echo_n "(cached) " >&6
3727else
3728  ac_cv_prog_cc_c89=no
3729ac_save_CC=$CC
3730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h.  */
3732#include <stdarg.h>
3733#include <stdio.h>
3734#include <sys/types.h>
3735#include <sys/stat.h>
3736/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3737struct buf { int x; };
3738FILE * (*rcsopen) (struct buf *, struct stat *, int);
3739static char *e (p, i)
3740     char **p;
3741     int i;
3742{
3743  return p[i];
3744}
3745static char *f (char * (*g) (char **, int), char **p, ...)
3746{
3747  char *s;
3748  va_list v;
3749  va_start (v,p);
3750  s = g (p, va_arg (v,int));
3751  va_end (v);
3752  return s;
3753}
3754
3755/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3756   function prototypes and stuff, but not '\xHH' hex character constants.
3757   These don't provoke an error unfortunately, instead are silently treated
3758   as 'x'.  The following induces an error, until -std is added to get
3759   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3760   array size at least.  It's necessary to write '\x00'==0 to get something
3761   that's true only with -std.  */
3762int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3763
3764/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3765   inside strings and character constants.  */
3766#define FOO(x) 'x'
3767int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3768
3769int test (int i, double x);
3770struct s1 {int (*f) (int a);};
3771struct s2 {int (*f) (double a);};
3772int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3773int argc;
3774char **argv;
3775int
3776main ()
3777{
3778return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3779  ;
3780  return 0;
3781}
3782_ACEOF
3783for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3784	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3785do
3786  CC="$ac_save_CC $ac_arg"
3787  if ac_fn_c_try_compile "$LINENO"; then :
3788  ac_cv_prog_cc_c89=$ac_arg
3789fi
3790rm -f core conftest.err conftest.$ac_objext
3791  test "x$ac_cv_prog_cc_c89" != "xno" && break
3792done
3793rm -f conftest.$ac_ext
3794CC=$ac_save_CC
3795
3796fi
3797# AC_CACHE_VAL
3798case "x$ac_cv_prog_cc_c89" in
3799  x)
3800    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3801$as_echo "none needed" >&6; } ;;
3802  xno)
3803    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3804$as_echo "unsupported" >&6; } ;;
3805  *)
3806    CC="$CC $ac_cv_prog_cc_c89"
3807    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3808$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3809esac
3810if test "x$ac_cv_prog_cc_c89" != xno; then :
3811
3812fi
3813
3814ac_ext=c
3815ac_cpp='$CPP $CPPFLAGS'
3816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818ac_compiler_gnu=$ac_cv_c_compiler_gnu
3819
3820depcc="$CC"   am_compiler_list=
3821
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3823$as_echo_n "checking dependency style of $depcc... " >&6; }
3824if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3825  $as_echo_n "(cached) " >&6
3826else
3827  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3828  # We make a subdir and do the tests there.  Otherwise we can end up
3829  # making bogus files that we don't know about and never remove.  For
3830  # instance it was reported that on HP-UX the gcc test will end up
3831  # making a dummy file named `D' -- because `-MD' means `put the output
3832  # in D'.
3833  mkdir conftest.dir
3834  # Copy depcomp to subdir because otherwise we won't find it if we're
3835  # using a relative directory.
3836  cp "$am_depcomp" conftest.dir
3837  cd conftest.dir
3838  # We will build objects and dependencies in a subdirectory because
3839  # it helps to detect inapplicable dependency modes.  For instance
3840  # both Tru64's cc and ICC support -MD to output dependencies as a
3841  # side effect of compilation, but ICC will put the dependencies in
3842  # the current directory while Tru64 will put them in the object
3843  # directory.
3844  mkdir sub
3845
3846  am_cv_CC_dependencies_compiler_type=none
3847  if test "$am_compiler_list" = ""; then
3848     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3849  fi
3850  am__universal=false
3851  case " $depcc " in #(
3852     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3853     esac
3854
3855  for depmode in $am_compiler_list; do
3856    # Setup a source with many dependencies, because some compilers
3857    # like to wrap large dependency lists on column 80 (with \), and
3858    # we should not choose a depcomp mode which is confused by this.
3859    #
3860    # We need to recreate these files for each test, as the compiler may
3861    # overwrite some of them when testing with obscure command lines.
3862    # This happens at least with the AIX C compiler.
3863    : > sub/conftest.c
3864    for i in 1 2 3 4 5 6; do
3865      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3866      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3867      # Solaris 8's {/usr,}/bin/sh.
3868      touch sub/conftst$i.h
3869    done
3870    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3871
3872    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3873    # mode.  It turns out that the SunPro C++ compiler does not properly
3874    # handle `-M -o', and we need to detect this.  Also, some Intel
3875    # versions had trouble with output in subdirs
3876    am__obj=sub/conftest.${OBJEXT-o}
3877    am__minus_obj="-o $am__obj"
3878    case $depmode in
3879    gcc)
3880      # This depmode causes a compiler race in universal mode.
3881      test "$am__universal" = false || continue
3882      ;;
3883    nosideeffect)
3884      # after this tag, mechanisms are not by side-effect, so they'll
3885      # only be used when explicitly requested
3886      if test "x$enable_dependency_tracking" = xyes; then
3887	continue
3888      else
3889	break
3890      fi
3891      ;;
3892    msvisualcpp | msvcmsys)
3893      # This compiler won't grok `-c -o', but also, the minuso test has
3894      # not run yet.  These depmodes are late enough in the game, and
3895      # so weak that their functioning should not be impacted.
3896      am__obj=conftest.${OBJEXT-o}
3897      am__minus_obj=
3898      ;;
3899    none) break ;;
3900    esac
3901    if depmode=$depmode \
3902       source=sub/conftest.c object=$am__obj \
3903       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3904       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3905         >/dev/null 2>conftest.err &&
3906       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3907       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3908       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3909       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3910      # icc doesn't choke on unknown options, it will just issue warnings
3911      # or remarks (even with -Werror).  So we grep stderr for any message
3912      # that says an option was ignored or not supported.
3913      # When given -MP, icc 7.0 and 7.1 complain thusly:
3914      #   icc: Command line warning: ignoring option '-M'; no argument required
3915      # The diagnosis changed in icc 8.0:
3916      #   icc: Command line remark: option '-MP' not supported
3917      if (grep 'ignoring option' conftest.err ||
3918          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3919        am_cv_CC_dependencies_compiler_type=$depmode
3920        break
3921      fi
3922    fi
3923  done
3924
3925  cd ..
3926  rm -rf conftest.dir
3927else
3928  am_cv_CC_dependencies_compiler_type=none
3929fi
3930
3931fi
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3933$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3934CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3935
3936 if
3937  test "x$enable_dependency_tracking" != xno \
3938  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3939  am__fastdepCC_TRUE=
3940  am__fastdepCC_FALSE='#'
3941else
3942  am__fastdepCC_TRUE='#'
3943  am__fastdepCC_FALSE=
3944fi
3945
3946
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3948$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3949if ${ac_cv_path_SED+:} false; then :
3950  $as_echo_n "(cached) " >&6
3951else
3952            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3953     for ac_i in 1 2 3 4 5 6 7; do
3954       ac_script="$ac_script$as_nl$ac_script"
3955     done
3956     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3957     { ac_script=; unset ac_script;}
3958     if test -z "$SED"; then
3959  ac_path_SED_found=false
3960  # Loop through the user's path and test for each of PROGNAME-LIST
3961  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH
3963do
3964  IFS=$as_save_IFS
3965  test -z "$as_dir" && as_dir=.
3966    for ac_prog in sed gsed; do
3967    for ac_exec_ext in '' $ac_executable_extensions; do
3968      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3969      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3970# Check for GNU ac_path_SED and select it if it is found.
3971  # Check for GNU $ac_path_SED
3972case `"$ac_path_SED" --version 2>&1` in
3973*GNU*)
3974  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3975*)
3976  ac_count=0
3977  $as_echo_n 0123456789 >"conftest.in"
3978  while :
3979  do
3980    cat "conftest.in" "conftest.in" >"conftest.tmp"
3981    mv "conftest.tmp" "conftest.in"
3982    cp "conftest.in" "conftest.nl"
3983    $as_echo '' >> "conftest.nl"
3984    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3985    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3986    as_fn_arith $ac_count + 1 && ac_count=$as_val
3987    if test $ac_count -gt ${ac_path_SED_max-0}; then
3988      # Best one so far, save it but keep looking for a better one
3989      ac_cv_path_SED="$ac_path_SED"
3990      ac_path_SED_max=$ac_count
3991    fi
3992    # 10*(2^10) chars as input seems more than enough
3993    test $ac_count -gt 10 && break
3994  done
3995  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3996esac
3997
3998      $ac_path_SED_found && break 3
3999    done
4000  done
4001  done
4002IFS=$as_save_IFS
4003  if test -z "$ac_cv_path_SED"; then
4004    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4005  fi
4006else
4007  ac_cv_path_SED=$SED
4008fi
4009
4010fi
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4012$as_echo "$ac_cv_path_SED" >&6; }
4013 SED="$ac_cv_path_SED"
4014  rm -f conftest.sed
4015
4016test -z "$SED" && SED=sed
4017Xsed="$SED -e 1s/^X//"
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4030$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4031if ${ac_cv_path_GREP+:} false; then :
4032  $as_echo_n "(cached) " >&6
4033else
4034  if test -z "$GREP"; then
4035  ac_path_GREP_found=false
4036  # Loop through the user's path and test for each of PROGNAME-LIST
4037  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4039do
4040  IFS=$as_save_IFS
4041  test -z "$as_dir" && as_dir=.
4042    for ac_prog in grep ggrep; do
4043    for ac_exec_ext in '' $ac_executable_extensions; do
4044      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4045      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4046# Check for GNU ac_path_GREP and select it if it is found.
4047  # Check for GNU $ac_path_GREP
4048case `"$ac_path_GREP" --version 2>&1` in
4049*GNU*)
4050  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4051*)
4052  ac_count=0
4053  $as_echo_n 0123456789 >"conftest.in"
4054  while :
4055  do
4056    cat "conftest.in" "conftest.in" >"conftest.tmp"
4057    mv "conftest.tmp" "conftest.in"
4058    cp "conftest.in" "conftest.nl"
4059    $as_echo 'GREP' >> "conftest.nl"
4060    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4061    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4062    as_fn_arith $ac_count + 1 && ac_count=$as_val
4063    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4064      # Best one so far, save it but keep looking for a better one
4065      ac_cv_path_GREP="$ac_path_GREP"
4066      ac_path_GREP_max=$ac_count
4067    fi
4068    # 10*(2^10) chars as input seems more than enough
4069    test $ac_count -gt 10 && break
4070  done
4071  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4072esac
4073
4074      $ac_path_GREP_found && break 3
4075    done
4076  done
4077  done
4078IFS=$as_save_IFS
4079  if test -z "$ac_cv_path_GREP"; then
4080    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4081  fi
4082else
4083  ac_cv_path_GREP=$GREP
4084fi
4085
4086fi
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4088$as_echo "$ac_cv_path_GREP" >&6; }
4089 GREP="$ac_cv_path_GREP"
4090
4091
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4093$as_echo_n "checking for egrep... " >&6; }
4094if ${ac_cv_path_EGREP+:} false; then :
4095  $as_echo_n "(cached) " >&6
4096else
4097  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4098   then ac_cv_path_EGREP="$GREP -E"
4099   else
4100     if test -z "$EGREP"; then
4101  ac_path_EGREP_found=false
4102  # Loop through the user's path and test for each of PROGNAME-LIST
4103  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4105do
4106  IFS=$as_save_IFS
4107  test -z "$as_dir" && as_dir=.
4108    for ac_prog in egrep; do
4109    for ac_exec_ext in '' $ac_executable_extensions; do
4110      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4111      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4112# Check for GNU ac_path_EGREP and select it if it is found.
4113  # Check for GNU $ac_path_EGREP
4114case `"$ac_path_EGREP" --version 2>&1` in
4115*GNU*)
4116  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4117*)
4118  ac_count=0
4119  $as_echo_n 0123456789 >"conftest.in"
4120  while :
4121  do
4122    cat "conftest.in" "conftest.in" >"conftest.tmp"
4123    mv "conftest.tmp" "conftest.in"
4124    cp "conftest.in" "conftest.nl"
4125    $as_echo 'EGREP' >> "conftest.nl"
4126    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4127    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4128    as_fn_arith $ac_count + 1 && ac_count=$as_val
4129    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4130      # Best one so far, save it but keep looking for a better one
4131      ac_cv_path_EGREP="$ac_path_EGREP"
4132      ac_path_EGREP_max=$ac_count
4133    fi
4134    # 10*(2^10) chars as input seems more than enough
4135    test $ac_count -gt 10 && break
4136  done
4137  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4138esac
4139
4140      $ac_path_EGREP_found && break 3
4141    done
4142  done
4143  done
4144IFS=$as_save_IFS
4145  if test -z "$ac_cv_path_EGREP"; then
4146    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4147  fi
4148else
4149  ac_cv_path_EGREP=$EGREP
4150fi
4151
4152   fi
4153fi
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4155$as_echo "$ac_cv_path_EGREP" >&6; }
4156 EGREP="$ac_cv_path_EGREP"
4157
4158
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4160$as_echo_n "checking for fgrep... " >&6; }
4161if ${ac_cv_path_FGREP+:} false; then :
4162  $as_echo_n "(cached) " >&6
4163else
4164  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4165   then ac_cv_path_FGREP="$GREP -F"
4166   else
4167     if test -z "$FGREP"; then
4168  ac_path_FGREP_found=false
4169  # Loop through the user's path and test for each of PROGNAME-LIST
4170  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4172do
4173  IFS=$as_save_IFS
4174  test -z "$as_dir" && as_dir=.
4175    for ac_prog in fgrep; do
4176    for ac_exec_ext in '' $ac_executable_extensions; do
4177      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4178      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4179# Check for GNU ac_path_FGREP and select it if it is found.
4180  # Check for GNU $ac_path_FGREP
4181case `"$ac_path_FGREP" --version 2>&1` in
4182*GNU*)
4183  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4184*)
4185  ac_count=0
4186  $as_echo_n 0123456789 >"conftest.in"
4187  while :
4188  do
4189    cat "conftest.in" "conftest.in" >"conftest.tmp"
4190    mv "conftest.tmp" "conftest.in"
4191    cp "conftest.in" "conftest.nl"
4192    $as_echo 'FGREP' >> "conftest.nl"
4193    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4194    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4195    as_fn_arith $ac_count + 1 && ac_count=$as_val
4196    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4197      # Best one so far, save it but keep looking for a better one
4198      ac_cv_path_FGREP="$ac_path_FGREP"
4199      ac_path_FGREP_max=$ac_count
4200    fi
4201    # 10*(2^10) chars as input seems more than enough
4202    test $ac_count -gt 10 && break
4203  done
4204  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205esac
4206
4207      $ac_path_FGREP_found && break 3
4208    done
4209  done
4210  done
4211IFS=$as_save_IFS
4212  if test -z "$ac_cv_path_FGREP"; then
4213    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4214  fi
4215else
4216  ac_cv_path_FGREP=$FGREP
4217fi
4218
4219   fi
4220fi
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4222$as_echo "$ac_cv_path_FGREP" >&6; }
4223 FGREP="$ac_cv_path_FGREP"
4224
4225
4226test -z "$GREP" && GREP=grep
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246# Check whether --with-gnu-ld was given.
4247if test "${with_gnu_ld+set}" = set; then :
4248  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4249else
4250  with_gnu_ld=no
4251fi
4252
4253ac_prog=ld
4254if test "$GCC" = yes; then
4255  # Check if gcc -print-prog-name=ld gives a path.
4256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4257$as_echo_n "checking for ld used by $CC... " >&6; }
4258  case $host in
4259  *-*-mingw*)
4260    # gcc leaves a trailing carriage return which upsets mingw
4261    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4262  *)
4263    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4264  esac
4265  case $ac_prog in
4266    # Accept absolute paths.
4267    [\\/]* | ?:[\\/]*)
4268      re_direlt='/[^/][^/]*/\.\./'
4269      # Canonicalize the pathname of ld
4270      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4271      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4272	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4273      done
4274      test -z "$LD" && LD="$ac_prog"
4275      ;;
4276  "")
4277    # If it fails, then pretend we aren't using GCC.
4278    ac_prog=ld
4279    ;;
4280  *)
4281    # If it is relative, then search for the first ld in PATH.
4282    with_gnu_ld=unknown
4283    ;;
4284  esac
4285elif test "$with_gnu_ld" = yes; then
4286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4287$as_echo_n "checking for GNU ld... " >&6; }
4288else
4289  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4290$as_echo_n "checking for non-GNU ld... " >&6; }
4291fi
4292if ${lt_cv_path_LD+:} false; then :
4293  $as_echo_n "(cached) " >&6
4294else
4295  if test -z "$LD"; then
4296  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4297  for ac_dir in $PATH; do
4298    IFS="$lt_save_ifs"
4299    test -z "$ac_dir" && ac_dir=.
4300    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4301      lt_cv_path_LD="$ac_dir/$ac_prog"
4302      # Check to see if the program is GNU ld.  I'd rather use --version,
4303      # but apparently some variants of GNU ld only accept -v.
4304      # Break only if it was the GNU/non-GNU ld that we prefer.
4305      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4306      *GNU* | *'with BFD'*)
4307	test "$with_gnu_ld" != no && break
4308	;;
4309      *)
4310	test "$with_gnu_ld" != yes && break
4311	;;
4312      esac
4313    fi
4314  done
4315  IFS="$lt_save_ifs"
4316else
4317  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4318fi
4319fi
4320
4321LD="$lt_cv_path_LD"
4322if test -n "$LD"; then
4323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4324$as_echo "$LD" >&6; }
4325else
4326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327$as_echo "no" >&6; }
4328fi
4329test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4331$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4332if ${lt_cv_prog_gnu_ld+:} false; then :
4333  $as_echo_n "(cached) " >&6
4334else
4335  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4336case `$LD -v 2>&1 </dev/null` in
4337*GNU* | *'with BFD'*)
4338  lt_cv_prog_gnu_ld=yes
4339  ;;
4340*)
4341  lt_cv_prog_gnu_ld=no
4342  ;;
4343esac
4344fi
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4346$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4347with_gnu_ld=$lt_cv_prog_gnu_ld
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4358$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4359if ${lt_cv_path_NM+:} false; then :
4360  $as_echo_n "(cached) " >&6
4361else
4362  if test -n "$NM"; then
4363  # Let the user override the test.
4364  lt_cv_path_NM="$NM"
4365else
4366  lt_nm_to_check="${ac_tool_prefix}nm"
4367  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4368    lt_nm_to_check="$lt_nm_to_check nm"
4369  fi
4370  for lt_tmp_nm in $lt_nm_to_check; do
4371    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4372    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4373      IFS="$lt_save_ifs"
4374      test -z "$ac_dir" && ac_dir=.
4375      tmp_nm="$ac_dir/$lt_tmp_nm"
4376      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4377	# Check to see if the nm accepts a BSD-compat flag.
4378	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4379	#   nm: unknown option "B" ignored
4380	# Tru64's nm complains that /dev/null is an invalid object file
4381	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4382	*/dev/null* | *'Invalid file or object type'*)
4383	  lt_cv_path_NM="$tmp_nm -B"
4384	  break
4385	  ;;
4386	*)
4387	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4388	  */dev/null*)
4389	    lt_cv_path_NM="$tmp_nm -p"
4390	    break
4391	    ;;
4392	  *)
4393	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4394	    continue # so that we can try to find one that supports BSD flags
4395	    ;;
4396	  esac
4397	  ;;
4398	esac
4399      fi
4400    done
4401    IFS="$lt_save_ifs"
4402  done
4403  : ${lt_cv_path_NM=no}
4404fi
4405fi
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4407$as_echo "$lt_cv_path_NM" >&6; }
4408if test "$lt_cv_path_NM" != "no"; then
4409  NM="$lt_cv_path_NM"
4410else
4411  # Didn't find any BSD compatible name lister, look for dumpbin.
4412  if test -n "$ac_tool_prefix"; then
4413  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4414  do
4415    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4416set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418$as_echo_n "checking for $ac_word... " >&6; }
4419if ${ac_cv_prog_DUMPBIN+:} false; then :
4420  $as_echo_n "(cached) " >&6
4421else
4422  if test -n "$DUMPBIN"; then
4423  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4424else
4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
4427do
4428  IFS=$as_save_IFS
4429  test -z "$as_dir" && as_dir=.
4430    for ac_exec_ext in '' $ac_executable_extensions; do
4431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4434    break 2
4435  fi
4436done
4437  done
4438IFS=$as_save_IFS
4439
4440fi
4441fi
4442DUMPBIN=$ac_cv_prog_DUMPBIN
4443if test -n "$DUMPBIN"; then
4444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4445$as_echo "$DUMPBIN" >&6; }
4446else
4447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448$as_echo "no" >&6; }
4449fi
4450
4451
4452    test -n "$DUMPBIN" && break
4453  done
4454fi
4455if test -z "$DUMPBIN"; then
4456  ac_ct_DUMPBIN=$DUMPBIN
4457  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4458do
4459  # Extract the first word of "$ac_prog", so it can be a program name with args.
4460set dummy $ac_prog; ac_word=$2
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4462$as_echo_n "checking for $ac_word... " >&6; }
4463if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4464  $as_echo_n "(cached) " >&6
4465else
4466  if test -n "$ac_ct_DUMPBIN"; then
4467  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4468else
4469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470for as_dir in $PATH
4471do
4472  IFS=$as_save_IFS
4473  test -z "$as_dir" && as_dir=.
4474    for ac_exec_ext in '' $ac_executable_extensions; do
4475  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4476    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4478    break 2
4479  fi
4480done
4481  done
4482IFS=$as_save_IFS
4483
4484fi
4485fi
4486ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4487if test -n "$ac_ct_DUMPBIN"; then
4488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4489$as_echo "$ac_ct_DUMPBIN" >&6; }
4490else
4491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492$as_echo "no" >&6; }
4493fi
4494
4495
4496  test -n "$ac_ct_DUMPBIN" && break
4497done
4498
4499  if test "x$ac_ct_DUMPBIN" = x; then
4500    DUMPBIN=":"
4501  else
4502    case $cross_compiling:$ac_tool_warned in
4503yes:)
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4506ac_tool_warned=yes ;;
4507esac
4508    DUMPBIN=$ac_ct_DUMPBIN
4509  fi
4510fi
4511
4512
4513  if test "$DUMPBIN" != ":"; then
4514    NM="$DUMPBIN"
4515  fi
4516fi
4517test -z "$NM" && NM=nm
4518
4519
4520
4521
4522
4523
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4525$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4526if ${lt_cv_nm_interface+:} false; then :
4527  $as_echo_n "(cached) " >&6
4528else
4529  lt_cv_nm_interface="BSD nm"
4530  echo "int some_variable = 0;" > conftest.$ac_ext
4531  (eval echo "\"\$as_me:4531: $ac_compile\"" >&5)
4532  (eval "$ac_compile" 2>conftest.err)
4533  cat conftest.err >&5
4534  (eval echo "\"\$as_me:4534: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4535  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4536  cat conftest.err >&5
4537  (eval echo "\"\$as_me:4537: output\"" >&5)
4538  cat conftest.out >&5
4539  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4540    lt_cv_nm_interface="MS dumpbin"
4541  fi
4542  rm -f conftest*
4543fi
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4545$as_echo "$lt_cv_nm_interface" >&6; }
4546
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4548$as_echo_n "checking whether ln -s works... " >&6; }
4549LN_S=$as_ln_s
4550if test "$LN_S" = "ln -s"; then
4551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4552$as_echo "yes" >&6; }
4553else
4554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4555$as_echo "no, using $LN_S" >&6; }
4556fi
4557
4558# find the maximum length of command line arguments
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4560$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4561if ${lt_cv_sys_max_cmd_len+:} false; then :
4562  $as_echo_n "(cached) " >&6
4563else
4564    i=0
4565  teststring="ABCD"
4566
4567  case $build_os in
4568  msdosdjgpp*)
4569    # On DJGPP, this test can blow up pretty badly due to problems in libc
4570    # (any single argument exceeding 2000 bytes causes a buffer overrun
4571    # during glob expansion).  Even if it were fixed, the result of this
4572    # check would be larger than it should be.
4573    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4574    ;;
4575
4576  gnu*)
4577    # Under GNU Hurd, this test is not required because there is
4578    # no limit to the length of command line arguments.
4579    # Libtool will interpret -1 as no limit whatsoever
4580    lt_cv_sys_max_cmd_len=-1;
4581    ;;
4582
4583  cygwin* | mingw* | cegcc*)
4584    # On Win9x/ME, this test blows up -- it succeeds, but takes
4585    # about 5 minutes as the teststring grows exponentially.
4586    # Worse, since 9x/ME are not pre-emptively multitasking,
4587    # you end up with a "frozen" computer, even though with patience
4588    # the test eventually succeeds (with a max line length of 256k).
4589    # Instead, let's just punt: use the minimum linelength reported by
4590    # all of the supported platforms: 8192 (on NT/2K/XP).
4591    lt_cv_sys_max_cmd_len=8192;
4592    ;;
4593
4594  amigaos*)
4595    # On AmigaOS with pdksh, this test takes hours, literally.
4596    # So we just punt and use a minimum line length of 8192.
4597    lt_cv_sys_max_cmd_len=8192;
4598    ;;
4599
4600  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4601    # This has been around since 386BSD, at least.  Likely further.
4602    if test -x /sbin/sysctl; then
4603      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4604    elif test -x /usr/sbin/sysctl; then
4605      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4606    else
4607      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4608    fi
4609    # And add a safety zone
4610    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4611    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4612    ;;
4613
4614  interix*)
4615    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4616    lt_cv_sys_max_cmd_len=196608
4617    ;;
4618
4619  osf*)
4620    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4621    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4622    # nice to cause kernel panics so lets avoid the loop below.
4623    # First set a reasonable default.
4624    lt_cv_sys_max_cmd_len=16384
4625    #
4626    if test -x /sbin/sysconfig; then
4627      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4628        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4629      esac
4630    fi
4631    ;;
4632  sco3.2v5*)
4633    lt_cv_sys_max_cmd_len=102400
4634    ;;
4635  sysv5* | sco5v6* | sysv4.2uw2*)
4636    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4637    if test -n "$kargmax"; then
4638      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4639    else
4640      lt_cv_sys_max_cmd_len=32768
4641    fi
4642    ;;
4643  *)
4644    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4645    if test -n "$lt_cv_sys_max_cmd_len"; then
4646      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4647      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4648    else
4649      # Make teststring a little bigger before we do anything with it.
4650      # a 1K string should be a reasonable start.
4651      for i in 1 2 3 4 5 6 7 8 ; do
4652        teststring=$teststring$teststring
4653      done
4654      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4655      # If test is not a shell built-in, we'll probably end up computing a
4656      # maximum length that is only half of the actual maximum length, but
4657      # we can't tell.
4658      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4659	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4660	      test $i != 17 # 1/2 MB should be enough
4661      do
4662        i=`expr $i + 1`
4663        teststring=$teststring$teststring
4664      done
4665      # Only check the string length outside the loop.
4666      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4667      teststring=
4668      # Add a significant safety factor because C++ compilers can tack on
4669      # massive amounts of additional arguments before passing them to the
4670      # linker.  It appears as though 1/2 is a usable value.
4671      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4672    fi
4673    ;;
4674  esac
4675
4676fi
4677
4678if test -n $lt_cv_sys_max_cmd_len ; then
4679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4680$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4681else
4682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4683$as_echo "none" >&6; }
4684fi
4685max_cmd_len=$lt_cv_sys_max_cmd_len
4686
4687
4688
4689
4690
4691
4692: ${CP="cp -f"}
4693: ${MV="mv -f"}
4694: ${RM="rm -f"}
4695
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4697$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4698# Try some XSI features
4699xsi_shell=no
4700( _lt_dummy="a/b/c"
4701  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4702      = c,a/b,, \
4703    && eval 'test $(( 1 + 1 )) -eq 2 \
4704    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4705  && xsi_shell=yes
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4707$as_echo "$xsi_shell" >&6; }
4708
4709
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4711$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4712lt_shell_append=no
4713( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4714    >/dev/null 2>&1 \
4715  && lt_shell_append=yes
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4717$as_echo "$lt_shell_append" >&6; }
4718
4719
4720if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4721  lt_unset=unset
4722else
4723  lt_unset=false
4724fi
4725
4726
4727
4728
4729
4730# test EBCDIC or ASCII
4731case `echo X|tr X '\101'` in
4732 A) # ASCII based system
4733    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4734  lt_SP2NL='tr \040 \012'
4735  lt_NL2SP='tr \015\012 \040\040'
4736  ;;
4737 *) # EBCDIC based system
4738  lt_SP2NL='tr \100 \n'
4739  lt_NL2SP='tr \r\n \100\100'
4740  ;;
4741esac
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4752$as_echo_n "checking for $LD option to reload object files... " >&6; }
4753if ${lt_cv_ld_reload_flag+:} false; then :
4754  $as_echo_n "(cached) " >&6
4755else
4756  lt_cv_ld_reload_flag='-r'
4757fi
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4759$as_echo "$lt_cv_ld_reload_flag" >&6; }
4760reload_flag=$lt_cv_ld_reload_flag
4761case $reload_flag in
4762"" | " "*) ;;
4763*) reload_flag=" $reload_flag" ;;
4764esac
4765reload_cmds='$LD$reload_flag -o $output$reload_objs'
4766case $host_os in
4767  darwin*)
4768    if test "$GCC" = yes; then
4769      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4770    else
4771      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4772    fi
4773    ;;
4774esac
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784if test -n "$ac_tool_prefix"; then
4785  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4786set dummy ${ac_tool_prefix}objdump; ac_word=$2
4787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4788$as_echo_n "checking for $ac_word... " >&6; }
4789if ${ac_cv_prog_OBJDUMP+:} false; then :
4790  $as_echo_n "(cached) " >&6
4791else
4792  if test -n "$OBJDUMP"; then
4793  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4794else
4795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796for as_dir in $PATH
4797do
4798  IFS=$as_save_IFS
4799  test -z "$as_dir" && as_dir=.
4800    for ac_exec_ext in '' $ac_executable_extensions; do
4801  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4802    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804    break 2
4805  fi
4806done
4807  done
4808IFS=$as_save_IFS
4809
4810fi
4811fi
4812OBJDUMP=$ac_cv_prog_OBJDUMP
4813if test -n "$OBJDUMP"; then
4814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4815$as_echo "$OBJDUMP" >&6; }
4816else
4817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818$as_echo "no" >&6; }
4819fi
4820
4821
4822fi
4823if test -z "$ac_cv_prog_OBJDUMP"; then
4824  ac_ct_OBJDUMP=$OBJDUMP
4825  # Extract the first word of "objdump", so it can be a program name with args.
4826set dummy objdump; ac_word=$2
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4828$as_echo_n "checking for $ac_word... " >&6; }
4829if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4830  $as_echo_n "(cached) " >&6
4831else
4832  if test -n "$ac_ct_OBJDUMP"; then
4833  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4834else
4835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH
4837do
4838  IFS=$as_save_IFS
4839  test -z "$as_dir" && as_dir=.
4840    for ac_exec_ext in '' $ac_executable_extensions; do
4841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4842    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844    break 2
4845  fi
4846done
4847  done
4848IFS=$as_save_IFS
4849
4850fi
4851fi
4852ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4853if test -n "$ac_ct_OBJDUMP"; then
4854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4855$as_echo "$ac_ct_OBJDUMP" >&6; }
4856else
4857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858$as_echo "no" >&6; }
4859fi
4860
4861  if test "x$ac_ct_OBJDUMP" = x; then
4862    OBJDUMP="false"
4863  else
4864    case $cross_compiling:$ac_tool_warned in
4865yes:)
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4868ac_tool_warned=yes ;;
4869esac
4870    OBJDUMP=$ac_ct_OBJDUMP
4871  fi
4872else
4873  OBJDUMP="$ac_cv_prog_OBJDUMP"
4874fi
4875
4876test -z "$OBJDUMP" && OBJDUMP=objdump
4877
4878
4879
4880
4881
4882
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4884$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4885if ${lt_cv_deplibs_check_method+:} false; then :
4886  $as_echo_n "(cached) " >&6
4887else
4888  lt_cv_file_magic_cmd='$MAGIC_CMD'
4889lt_cv_file_magic_test_file=
4890lt_cv_deplibs_check_method='unknown'
4891# Need to set the preceding variable on all platforms that support
4892# interlibrary dependencies.
4893# 'none' -- dependencies not supported.
4894# `unknown' -- same as none, but documents that we really don't know.
4895# 'pass_all' -- all dependencies passed with no checks.
4896# 'test_compile' -- check by making test program.
4897# 'file_magic [[regex]]' -- check by looking for files in library path
4898# which responds to the $file_magic_cmd with a given extended regex.
4899# If you have `file' or equivalent on your system and you're not sure
4900# whether `pass_all' will *always* work, you probably want this one.
4901
4902case $host_os in
4903aix[4-9]*)
4904  lt_cv_deplibs_check_method=pass_all
4905  ;;
4906
4907beos*)
4908  lt_cv_deplibs_check_method=pass_all
4909  ;;
4910
4911bsdi[45]*)
4912  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4913  lt_cv_file_magic_cmd='/usr/bin/file -L'
4914  lt_cv_file_magic_test_file=/shlib/libc.so
4915  ;;
4916
4917cygwin*)
4918  # func_win32_libid is a shell function defined in ltmain.sh
4919  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4920  lt_cv_file_magic_cmd='func_win32_libid'
4921  ;;
4922
4923mingw* | pw32*)
4924  # Base MSYS/MinGW do not provide the 'file' command needed by
4925  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4926  # unless we find 'file', for example because we are cross-compiling.
4927  if ( file / ) >/dev/null 2>&1; then
4928    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4929    lt_cv_file_magic_cmd='func_win32_libid'
4930  else
4931    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4932    lt_cv_file_magic_cmd='$OBJDUMP -f'
4933  fi
4934  ;;
4935
4936cegcc)
4937  # use the weaker test based on 'objdump'. See mingw*.
4938  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4939  lt_cv_file_magic_cmd='$OBJDUMP -f'
4940  ;;
4941
4942darwin* | rhapsody*)
4943  lt_cv_deplibs_check_method=pass_all
4944  ;;
4945
4946freebsd* | dragonfly*)
4947  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4948    case $host_cpu in
4949    i*86 )
4950      # Not sure whether the presence of OpenBSD here was a mistake.
4951      # Let's accept both of them until this is cleared up.
4952      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4953      lt_cv_file_magic_cmd=/usr/bin/file
4954      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4955      ;;
4956    esac
4957  else
4958    lt_cv_deplibs_check_method=pass_all
4959  fi
4960  ;;
4961
4962gnu*)
4963  lt_cv_deplibs_check_method=pass_all
4964  ;;
4965
4966hpux10.20* | hpux11*)
4967  lt_cv_file_magic_cmd=/usr/bin/file
4968  case $host_cpu in
4969  ia64*)
4970    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4971    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4972    ;;
4973  hppa*64*)
4974    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]'
4975    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4976    ;;
4977  *)
4978    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4979    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4980    ;;
4981  esac
4982  ;;
4983
4984interix[3-9]*)
4985  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4986  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4987  ;;
4988
4989irix5* | irix6* | nonstopux*)
4990  case $LD in
4991  *-32|*"-32 ") libmagic=32-bit;;
4992  *-n32|*"-n32 ") libmagic=N32;;
4993  *-64|*"-64 ") libmagic=64-bit;;
4994  *) libmagic=never-match;;
4995  esac
4996  lt_cv_deplibs_check_method=pass_all
4997  ;;
4998
4999# This must be Linux ELF.
5000linux* | k*bsd*-gnu)
5001  lt_cv_deplibs_check_method=pass_all
5002  ;;
5003
5004netbsd*)
5005  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5006    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5007  else
5008    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5009  fi
5010  ;;
5011
5012newos6*)
5013  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5014  lt_cv_file_magic_cmd=/usr/bin/file
5015  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5016  ;;
5017
5018*nto* | *qnx*)
5019  lt_cv_deplibs_check_method=pass_all
5020  ;;
5021
5022openbsd*)
5023  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5024    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5025  else
5026    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5027  fi
5028  ;;
5029
5030osf3* | osf4* | osf5*)
5031  lt_cv_deplibs_check_method=pass_all
5032  ;;
5033
5034rdos*)
5035  lt_cv_deplibs_check_method=pass_all
5036  ;;
5037
5038solaris*)
5039  lt_cv_deplibs_check_method=pass_all
5040  ;;
5041
5042sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5043  lt_cv_deplibs_check_method=pass_all
5044  ;;
5045
5046sysv4 | sysv4.3*)
5047  case $host_vendor in
5048  motorola)
5049    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]'
5050    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5051    ;;
5052  ncr)
5053    lt_cv_deplibs_check_method=pass_all
5054    ;;
5055  sequent)
5056    lt_cv_file_magic_cmd='/bin/file'
5057    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5058    ;;
5059  sni)
5060    lt_cv_file_magic_cmd='/bin/file'
5061    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5062    lt_cv_file_magic_test_file=/lib/libc.so
5063    ;;
5064  siemens)
5065    lt_cv_deplibs_check_method=pass_all
5066    ;;
5067  pc)
5068    lt_cv_deplibs_check_method=pass_all
5069    ;;
5070  esac
5071  ;;
5072
5073tpf*)
5074  lt_cv_deplibs_check_method=pass_all
5075  ;;
5076esac
5077
5078fi
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5080$as_echo "$lt_cv_deplibs_check_method" >&6; }
5081file_magic_cmd=$lt_cv_file_magic_cmd
5082deplibs_check_method=$lt_cv_deplibs_check_method
5083test -z "$deplibs_check_method" && deplibs_check_method=unknown
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096if test -n "$ac_tool_prefix"; then
5097  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5098set dummy ${ac_tool_prefix}ar; ac_word=$2
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100$as_echo_n "checking for $ac_word... " >&6; }
5101if ${ac_cv_prog_AR+:} false; then :
5102  $as_echo_n "(cached) " >&6
5103else
5104  if test -n "$AR"; then
5105  ac_cv_prog_AR="$AR" # Let the user override the test.
5106else
5107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108for as_dir in $PATH
5109do
5110  IFS=$as_save_IFS
5111  test -z "$as_dir" && as_dir=.
5112    for ac_exec_ext in '' $ac_executable_extensions; do
5113  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5114    ac_cv_prog_AR="${ac_tool_prefix}ar"
5115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116    break 2
5117  fi
5118done
5119  done
5120IFS=$as_save_IFS
5121
5122fi
5123fi
5124AR=$ac_cv_prog_AR
5125if test -n "$AR"; then
5126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5127$as_echo "$AR" >&6; }
5128else
5129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130$as_echo "no" >&6; }
5131fi
5132
5133
5134fi
5135if test -z "$ac_cv_prog_AR"; then
5136  ac_ct_AR=$AR
5137  # Extract the first word of "ar", so it can be a program name with args.
5138set dummy ar; ac_word=$2
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140$as_echo_n "checking for $ac_word... " >&6; }
5141if ${ac_cv_prog_ac_ct_AR+:} false; then :
5142  $as_echo_n "(cached) " >&6
5143else
5144  if test -n "$ac_ct_AR"; then
5145  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5146else
5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150  IFS=$as_save_IFS
5151  test -z "$as_dir" && as_dir=.
5152    for ac_exec_ext in '' $ac_executable_extensions; do
5153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5154    ac_cv_prog_ac_ct_AR="ar"
5155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156    break 2
5157  fi
5158done
5159  done
5160IFS=$as_save_IFS
5161
5162fi
5163fi
5164ac_ct_AR=$ac_cv_prog_ac_ct_AR
5165if test -n "$ac_ct_AR"; then
5166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5167$as_echo "$ac_ct_AR" >&6; }
5168else
5169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170$as_echo "no" >&6; }
5171fi
5172
5173  if test "x$ac_ct_AR" = x; then
5174    AR="false"
5175  else
5176    case $cross_compiling:$ac_tool_warned in
5177yes:)
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5180ac_tool_warned=yes ;;
5181esac
5182    AR=$ac_ct_AR
5183  fi
5184else
5185  AR="$ac_cv_prog_AR"
5186fi
5187
5188test -z "$AR" && AR=ar
5189test -z "$AR_FLAGS" && AR_FLAGS=cru
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201if test -n "$ac_tool_prefix"; then
5202  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5203set dummy ${ac_tool_prefix}strip; ac_word=$2
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205$as_echo_n "checking for $ac_word... " >&6; }
5206if ${ac_cv_prog_STRIP+:} false; then :
5207  $as_echo_n "(cached) " >&6
5208else
5209  if test -n "$STRIP"; then
5210  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5211else
5212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213for as_dir in $PATH
5214do
5215  IFS=$as_save_IFS
5216  test -z "$as_dir" && as_dir=.
5217    for ac_exec_ext in '' $ac_executable_extensions; do
5218  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221    break 2
5222  fi
5223done
5224  done
5225IFS=$as_save_IFS
5226
5227fi
5228fi
5229STRIP=$ac_cv_prog_STRIP
5230if test -n "$STRIP"; then
5231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5232$as_echo "$STRIP" >&6; }
5233else
5234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235$as_echo "no" >&6; }
5236fi
5237
5238
5239fi
5240if test -z "$ac_cv_prog_STRIP"; then
5241  ac_ct_STRIP=$STRIP
5242  # Extract the first word of "strip", so it can be a program name with args.
5243set dummy strip; ac_word=$2
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245$as_echo_n "checking for $ac_word... " >&6; }
5246if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  if test -n "$ac_ct_STRIP"; then
5250  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5251else
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255  IFS=$as_save_IFS
5256  test -z "$as_dir" && as_dir=.
5257    for ac_exec_ext in '' $ac_executable_extensions; do
5258  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259    ac_cv_prog_ac_ct_STRIP="strip"
5260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261    break 2
5262  fi
5263done
5264  done
5265IFS=$as_save_IFS
5266
5267fi
5268fi
5269ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5270if test -n "$ac_ct_STRIP"; then
5271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5272$as_echo "$ac_ct_STRIP" >&6; }
5273else
5274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275$as_echo "no" >&6; }
5276fi
5277
5278  if test "x$ac_ct_STRIP" = x; then
5279    STRIP=":"
5280  else
5281    case $cross_compiling:$ac_tool_warned in
5282yes:)
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5285ac_tool_warned=yes ;;
5286esac
5287    STRIP=$ac_ct_STRIP
5288  fi
5289else
5290  STRIP="$ac_cv_prog_STRIP"
5291fi
5292
5293test -z "$STRIP" && STRIP=:
5294
5295
5296
5297
5298
5299
5300if test -n "$ac_tool_prefix"; then
5301  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5302set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5304$as_echo_n "checking for $ac_word... " >&6; }
5305if ${ac_cv_prog_RANLIB+:} false; then :
5306  $as_echo_n "(cached) " >&6
5307else
5308  if test -n "$RANLIB"; then
5309  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5310else
5311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312for as_dir in $PATH
5313do
5314  IFS=$as_save_IFS
5315  test -z "$as_dir" && as_dir=.
5316    for ac_exec_ext in '' $ac_executable_extensions; do
5317  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5318    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5320    break 2
5321  fi
5322done
5323  done
5324IFS=$as_save_IFS
5325
5326fi
5327fi
5328RANLIB=$ac_cv_prog_RANLIB
5329if test -n "$RANLIB"; then
5330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5331$as_echo "$RANLIB" >&6; }
5332else
5333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334$as_echo "no" >&6; }
5335fi
5336
5337
5338fi
5339if test -z "$ac_cv_prog_RANLIB"; then
5340  ac_ct_RANLIB=$RANLIB
5341  # Extract the first word of "ranlib", so it can be a program name with args.
5342set dummy ranlib; ac_word=$2
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344$as_echo_n "checking for $ac_word... " >&6; }
5345if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5346  $as_echo_n "(cached) " >&6
5347else
5348  if test -n "$ac_ct_RANLIB"; then
5349  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5350else
5351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352for as_dir in $PATH
5353do
5354  IFS=$as_save_IFS
5355  test -z "$as_dir" && as_dir=.
5356    for ac_exec_ext in '' $ac_executable_extensions; do
5357  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358    ac_cv_prog_ac_ct_RANLIB="ranlib"
5359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5360    break 2
5361  fi
5362done
5363  done
5364IFS=$as_save_IFS
5365
5366fi
5367fi
5368ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5369if test -n "$ac_ct_RANLIB"; then
5370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5371$as_echo "$ac_ct_RANLIB" >&6; }
5372else
5373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374$as_echo "no" >&6; }
5375fi
5376
5377  if test "x$ac_ct_RANLIB" = x; then
5378    RANLIB=":"
5379  else
5380    case $cross_compiling:$ac_tool_warned in
5381yes:)
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5384ac_tool_warned=yes ;;
5385esac
5386    RANLIB=$ac_ct_RANLIB
5387  fi
5388else
5389  RANLIB="$ac_cv_prog_RANLIB"
5390fi
5391
5392test -z "$RANLIB" && RANLIB=:
5393
5394
5395
5396
5397
5398
5399# Determine commands to create old-style static archives.
5400old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5401old_postinstall_cmds='chmod 644 $oldlib'
5402old_postuninstall_cmds=
5403
5404if test -n "$RANLIB"; then
5405  case $host_os in
5406  openbsd*)
5407    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5408    ;;
5409  *)
5410    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5411    ;;
5412  esac
5413  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5414fi
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449# If no C compiler was specified, use CC.
5450LTCC=${LTCC-"$CC"}
5451
5452# If no C compiler flags were specified, use CFLAGS.
5453LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5454
5455# Allow CC to be a program name with arguments.
5456compiler=$CC
5457
5458
5459# Check for command to grab the raw symbol name followed by C symbol from nm.
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5461$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5462if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5463  $as_echo_n "(cached) " >&6
5464else
5465
5466# These are sane defaults that work on at least a few old systems.
5467# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5468
5469# Character class describing NM global symbol codes.
5470symcode='[BCDEGRST]'
5471
5472# Regexp to match symbols that can be accessed directly from C.
5473sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5474
5475# Define system-specific variables.
5476case $host_os in
5477aix*)
5478  symcode='[BCDT]'
5479  ;;
5480cygwin* | mingw* | pw32* | cegcc*)
5481  symcode='[ABCDGISTW]'
5482  ;;
5483hpux*)
5484  if test "$host_cpu" = ia64; then
5485    symcode='[ABCDEGRST]'
5486  fi
5487  ;;
5488irix* | nonstopux*)
5489  symcode='[BCDEGRST]'
5490  ;;
5491osf*)
5492  symcode='[BCDEGQRST]'
5493  ;;
5494solaris*)
5495  symcode='[BDRT]'
5496  ;;
5497sco3.2v5*)
5498  symcode='[DT]'
5499  ;;
5500sysv4.2uw2*)
5501  symcode='[DT]'
5502  ;;
5503sysv5* | sco5v6* | unixware* | OpenUNIX*)
5504  symcode='[ABDT]'
5505  ;;
5506sysv4)
5507  symcode='[DFNSTU]'
5508  ;;
5509esac
5510
5511# If we're using GNU nm, then use its standard symbol codes.
5512case `$NM -V 2>&1` in
5513*GNU* | *'with BFD'*)
5514  symcode='[ABCDGIRSTW]' ;;
5515esac
5516
5517# Transform an extracted symbol line into a proper C declaration.
5518# Some systems (esp. on ia64) link data and code symbols differently,
5519# so use this general approach.
5520lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5521
5522# Transform an extracted symbol line into symbol name and symbol address
5523lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5524lt_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'"
5525
5526# Handle CRLF in mingw tool chain
5527opt_cr=
5528case $build_os in
5529mingw*)
5530  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5531  ;;
5532esac
5533
5534# Try without a prefix underscore, then with it.
5535for ac_symprfx in "" "_"; do
5536
5537  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5538  symxfrm="\\1 $ac_symprfx\\2 \\2"
5539
5540  # Write the raw and C identifiers.
5541  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5542    # Fake it for dumpbin and say T for any non-static function
5543    # and D for any global variable.
5544    # Also find C++ and __fastcall symbols from MSVC++,
5545    # which start with @ or ?.
5546    lt_cv_sys_global_symbol_pipe="$AWK '"\
5547"     {last_section=section; section=\$ 3};"\
5548"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5549"     \$ 0!~/External *\|/{next};"\
5550"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5551"     {if(hide[section]) next};"\
5552"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5553"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5554"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5555"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5556"     ' prfx=^$ac_symprfx"
5557  else
5558    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5559  fi
5560
5561  # Check to see that the pipe works correctly.
5562  pipe_works=no
5563
5564  rm -f conftest*
5565  cat > conftest.$ac_ext <<_LT_EOF
5566#ifdef __cplusplus
5567extern "C" {
5568#endif
5569char nm_test_var;
5570void nm_test_func(void);
5571void nm_test_func(void){}
5572#ifdef __cplusplus
5573}
5574#endif
5575int main(){nm_test_var='a';nm_test_func();return(0);}
5576_LT_EOF
5577
5578  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5579  (eval $ac_compile) 2>&5
5580  ac_status=$?
5581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5582  test $ac_status = 0; }; then
5583    # Now try to grab the symbols.
5584    nlist=conftest.nm
5585    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5586  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5587  ac_status=$?
5588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5589  test $ac_status = 0; } && test -s "$nlist"; then
5590      # Try sorting and uniquifying the output.
5591      if sort "$nlist" | uniq > "$nlist"T; then
5592	mv -f "$nlist"T "$nlist"
5593      else
5594	rm -f "$nlist"T
5595      fi
5596
5597      # Make sure that we snagged all the symbols we need.
5598      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5599	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5600	  cat <<_LT_EOF > conftest.$ac_ext
5601#ifdef __cplusplus
5602extern "C" {
5603#endif
5604
5605_LT_EOF
5606	  # Now generate the symbol file.
5607	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5608
5609	  cat <<_LT_EOF >> conftest.$ac_ext
5610
5611/* The mapping between symbol names and symbols.  */
5612const struct {
5613  const char *name;
5614  void       *address;
5615}
5616lt__PROGRAM__LTX_preloaded_symbols[] =
5617{
5618  { "@PROGRAM@", (void *) 0 },
5619_LT_EOF
5620	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5621	  cat <<\_LT_EOF >> conftest.$ac_ext
5622  {0, (void *) 0}
5623};
5624
5625/* This works around a problem in FreeBSD linker */
5626#ifdef FREEBSD_WORKAROUND
5627static const void *lt_preloaded_setup() {
5628  return lt__PROGRAM__LTX_preloaded_symbols;
5629}
5630#endif
5631
5632#ifdef __cplusplus
5633}
5634#endif
5635_LT_EOF
5636	  # Now try linking the two files.
5637	  mv conftest.$ac_objext conftstm.$ac_objext
5638	  lt_save_LIBS="$LIBS"
5639	  lt_save_CFLAGS="$CFLAGS"
5640	  LIBS="conftstm.$ac_objext"
5641	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5642	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5643  (eval $ac_link) 2>&5
5644  ac_status=$?
5645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5646  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5647	    pipe_works=yes
5648	  fi
5649	  LIBS="$lt_save_LIBS"
5650	  CFLAGS="$lt_save_CFLAGS"
5651	else
5652	  echo "cannot find nm_test_func in $nlist" >&5
5653	fi
5654      else
5655	echo "cannot find nm_test_var in $nlist" >&5
5656      fi
5657    else
5658      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5659    fi
5660  else
5661    echo "$progname: failed program was:" >&5
5662    cat conftest.$ac_ext >&5
5663  fi
5664  rm -rf conftest* conftst*
5665
5666  # Do not use the global_symbol_pipe unless it works.
5667  if test "$pipe_works" = yes; then
5668    break
5669  else
5670    lt_cv_sys_global_symbol_pipe=
5671  fi
5672done
5673
5674fi
5675
5676if test -z "$lt_cv_sys_global_symbol_pipe"; then
5677  lt_cv_sys_global_symbol_to_cdecl=
5678fi
5679if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5681$as_echo "failed" >&6; }
5682else
5683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5684$as_echo "ok" >&6; }
5685fi
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709# Check whether --enable-libtool-lock was given.
5710if test "${enable_libtool_lock+set}" = set; then :
5711  enableval=$enable_libtool_lock;
5712fi
5713
5714test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5715
5716# Some flags need to be propagated to the compiler or linker for good
5717# libtool support.
5718case $host in
5719ia64-*-hpux*)
5720  # Find out which ABI we are using.
5721  echo 'int i;' > conftest.$ac_ext
5722  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5723  (eval $ac_compile) 2>&5
5724  ac_status=$?
5725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5726  test $ac_status = 0; }; then
5727    case `/usr/bin/file conftest.$ac_objext` in
5728      *ELF-32*)
5729	HPUX_IA64_MODE="32"
5730	;;
5731      *ELF-64*)
5732	HPUX_IA64_MODE="64"
5733	;;
5734    esac
5735  fi
5736  rm -rf conftest*
5737  ;;
5738*-*-irix6*)
5739  # Find out which ABI we are using.
5740  echo '#line 5740 "configure"' > conftest.$ac_ext
5741  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5742  (eval $ac_compile) 2>&5
5743  ac_status=$?
5744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5745  test $ac_status = 0; }; then
5746    if test "$lt_cv_prog_gnu_ld" = yes; then
5747      case `/usr/bin/file conftest.$ac_objext` in
5748	*32-bit*)
5749	  LD="${LD-ld} -melf32bsmip"
5750	  ;;
5751	*N32*)
5752	  LD="${LD-ld} -melf32bmipn32"
5753	  ;;
5754	*64-bit*)
5755	  LD="${LD-ld} -melf64bmip"
5756	;;
5757      esac
5758    else
5759      case `/usr/bin/file conftest.$ac_objext` in
5760	*32-bit*)
5761	  LD="${LD-ld} -32"
5762	  ;;
5763	*N32*)
5764	  LD="${LD-ld} -n32"
5765	  ;;
5766	*64-bit*)
5767	  LD="${LD-ld} -64"
5768	  ;;
5769      esac
5770    fi
5771  fi
5772  rm -rf conftest*
5773  ;;
5774
5775x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5776s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5777  # Find out which ABI we are using.
5778  echo 'int i;' > conftest.$ac_ext
5779  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5780  (eval $ac_compile) 2>&5
5781  ac_status=$?
5782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5783  test $ac_status = 0; }; then
5784    case `/usr/bin/file conftest.o` in
5785      *32-bit*)
5786	case $host in
5787	  x86_64-*kfreebsd*-gnu)
5788	    LD="${LD-ld} -m elf_i386_fbsd"
5789	    ;;
5790	  x86_64-*linux*)
5791	    LD="${LD-ld} -m elf_i386"
5792	    ;;
5793	  ppc64-*linux*|powerpc64-*linux*)
5794	    LD="${LD-ld} -m elf32ppclinux"
5795	    ;;
5796	  s390x-*linux*)
5797	    LD="${LD-ld} -m elf_s390"
5798	    ;;
5799	  sparc64-*linux*)
5800	    LD="${LD-ld} -m elf32_sparc"
5801	    ;;
5802	esac
5803	;;
5804      *64-bit*)
5805	case $host in
5806	  x86_64-*kfreebsd*-gnu)
5807	    LD="${LD-ld} -m elf_x86_64_fbsd"
5808	    ;;
5809	  x86_64-*linux*)
5810	    LD="${LD-ld} -m elf_x86_64"
5811	    ;;
5812	  ppc*-*linux*|powerpc*-*linux*)
5813	    LD="${LD-ld} -m elf64ppc"
5814	    ;;
5815	  s390*-*linux*|s390*-*tpf*)
5816	    LD="${LD-ld} -m elf64_s390"
5817	    ;;
5818	  sparc*-*linux*)
5819	    LD="${LD-ld} -m elf64_sparc"
5820	    ;;
5821	esac
5822	;;
5823    esac
5824  fi
5825  rm -rf conftest*
5826  ;;
5827
5828*-*-sco3.2v5*)
5829  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5830  SAVE_CFLAGS="$CFLAGS"
5831  CFLAGS="$CFLAGS -belf"
5832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5833$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5834if ${lt_cv_cc_needs_belf+:} false; then :
5835  $as_echo_n "(cached) " >&6
5836else
5837  ac_ext=c
5838ac_cpp='$CPP $CPPFLAGS'
5839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5841ac_compiler_gnu=$ac_cv_c_compiler_gnu
5842
5843     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844/* end confdefs.h.  */
5845
5846int
5847main ()
5848{
5849
5850  ;
5851  return 0;
5852}
5853_ACEOF
5854if ac_fn_c_try_link "$LINENO"; then :
5855  lt_cv_cc_needs_belf=yes
5856else
5857  lt_cv_cc_needs_belf=no
5858fi
5859rm -f core conftest.err conftest.$ac_objext \
5860    conftest$ac_exeext conftest.$ac_ext
5861     ac_ext=c
5862ac_cpp='$CPP $CPPFLAGS'
5863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5865ac_compiler_gnu=$ac_cv_c_compiler_gnu
5866
5867fi
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5869$as_echo "$lt_cv_cc_needs_belf" >&6; }
5870  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5871    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5872    CFLAGS="$SAVE_CFLAGS"
5873  fi
5874  ;;
5875sparc*-*solaris*)
5876  # Find out which ABI we are using.
5877  echo 'int i;' > conftest.$ac_ext
5878  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5879  (eval $ac_compile) 2>&5
5880  ac_status=$?
5881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5882  test $ac_status = 0; }; then
5883    case `/usr/bin/file conftest.o` in
5884    *64-bit*)
5885      case $lt_cv_prog_gnu_ld in
5886      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5887      *)
5888	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5889	  LD="${LD-ld} -64"
5890	fi
5891	;;
5892      esac
5893      ;;
5894    esac
5895  fi
5896  rm -rf conftest*
5897  ;;
5898esac
5899
5900need_locks="$enable_libtool_lock"
5901
5902
5903  case $host_os in
5904    rhapsody* | darwin*)
5905    if test -n "$ac_tool_prefix"; then
5906  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5907set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909$as_echo_n "checking for $ac_word... " >&6; }
5910if ${ac_cv_prog_DSYMUTIL+:} false; then :
5911  $as_echo_n "(cached) " >&6
5912else
5913  if test -n "$DSYMUTIL"; then
5914  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5915else
5916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917for as_dir in $PATH
5918do
5919  IFS=$as_save_IFS
5920  test -z "$as_dir" && as_dir=.
5921    for ac_exec_ext in '' $ac_executable_extensions; do
5922  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5923    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925    break 2
5926  fi
5927done
5928  done
5929IFS=$as_save_IFS
5930
5931fi
5932fi
5933DSYMUTIL=$ac_cv_prog_DSYMUTIL
5934if test -n "$DSYMUTIL"; then
5935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5936$as_echo "$DSYMUTIL" >&6; }
5937else
5938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939$as_echo "no" >&6; }
5940fi
5941
5942
5943fi
5944if test -z "$ac_cv_prog_DSYMUTIL"; then
5945  ac_ct_DSYMUTIL=$DSYMUTIL
5946  # Extract the first word of "dsymutil", so it can be a program name with args.
5947set dummy dsymutil; ac_word=$2
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5949$as_echo_n "checking for $ac_word... " >&6; }
5950if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5951  $as_echo_n "(cached) " >&6
5952else
5953  if test -n "$ac_ct_DSYMUTIL"; then
5954  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5955else
5956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957for as_dir in $PATH
5958do
5959  IFS=$as_save_IFS
5960  test -z "$as_dir" && as_dir=.
5961    for ac_exec_ext in '' $ac_executable_extensions; do
5962  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5963    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5965    break 2
5966  fi
5967done
5968  done
5969IFS=$as_save_IFS
5970
5971fi
5972fi
5973ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5974if test -n "$ac_ct_DSYMUTIL"; then
5975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5976$as_echo "$ac_ct_DSYMUTIL" >&6; }
5977else
5978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979$as_echo "no" >&6; }
5980fi
5981
5982  if test "x$ac_ct_DSYMUTIL" = x; then
5983    DSYMUTIL=":"
5984  else
5985    case $cross_compiling:$ac_tool_warned in
5986yes:)
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5989ac_tool_warned=yes ;;
5990esac
5991    DSYMUTIL=$ac_ct_DSYMUTIL
5992  fi
5993else
5994  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5995fi
5996
5997    if test -n "$ac_tool_prefix"; then
5998  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5999set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001$as_echo_n "checking for $ac_word... " >&6; }
6002if ${ac_cv_prog_NMEDIT+:} false; then :
6003  $as_echo_n "(cached) " >&6
6004else
6005  if test -n "$NMEDIT"; then
6006  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6007else
6008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009for as_dir in $PATH
6010do
6011  IFS=$as_save_IFS
6012  test -z "$as_dir" && as_dir=.
6013    for ac_exec_ext in '' $ac_executable_extensions; do
6014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017    break 2
6018  fi
6019done
6020  done
6021IFS=$as_save_IFS
6022
6023fi
6024fi
6025NMEDIT=$ac_cv_prog_NMEDIT
6026if test -n "$NMEDIT"; then
6027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6028$as_echo "$NMEDIT" >&6; }
6029else
6030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031$as_echo "no" >&6; }
6032fi
6033
6034
6035fi
6036if test -z "$ac_cv_prog_NMEDIT"; then
6037  ac_ct_NMEDIT=$NMEDIT
6038  # Extract the first word of "nmedit", so it can be a program name with args.
6039set dummy nmedit; ac_word=$2
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041$as_echo_n "checking for $ac_word... " >&6; }
6042if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6043  $as_echo_n "(cached) " >&6
6044else
6045  if test -n "$ac_ct_NMEDIT"; then
6046  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6047else
6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049for as_dir in $PATH
6050do
6051  IFS=$as_save_IFS
6052  test -z "$as_dir" && as_dir=.
6053    for ac_exec_ext in '' $ac_executable_extensions; do
6054  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057    break 2
6058  fi
6059done
6060  done
6061IFS=$as_save_IFS
6062
6063fi
6064fi
6065ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6066if test -n "$ac_ct_NMEDIT"; then
6067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6068$as_echo "$ac_ct_NMEDIT" >&6; }
6069else
6070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071$as_echo "no" >&6; }
6072fi
6073
6074  if test "x$ac_ct_NMEDIT" = x; then
6075    NMEDIT=":"
6076  else
6077    case $cross_compiling:$ac_tool_warned in
6078yes:)
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6081ac_tool_warned=yes ;;
6082esac
6083    NMEDIT=$ac_ct_NMEDIT
6084  fi
6085else
6086  NMEDIT="$ac_cv_prog_NMEDIT"
6087fi
6088
6089    if test -n "$ac_tool_prefix"; then
6090  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6091set dummy ${ac_tool_prefix}lipo; ac_word=$2
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093$as_echo_n "checking for $ac_word... " >&6; }
6094if ${ac_cv_prog_LIPO+:} false; then :
6095  $as_echo_n "(cached) " >&6
6096else
6097  if test -n "$LIPO"; then
6098  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6099else
6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103  IFS=$as_save_IFS
6104  test -z "$as_dir" && as_dir=.
6105    for ac_exec_ext in '' $ac_executable_extensions; do
6106  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6107    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109    break 2
6110  fi
6111done
6112  done
6113IFS=$as_save_IFS
6114
6115fi
6116fi
6117LIPO=$ac_cv_prog_LIPO
6118if test -n "$LIPO"; then
6119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6120$as_echo "$LIPO" >&6; }
6121else
6122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123$as_echo "no" >&6; }
6124fi
6125
6126
6127fi
6128if test -z "$ac_cv_prog_LIPO"; then
6129  ac_ct_LIPO=$LIPO
6130  # Extract the first word of "lipo", so it can be a program name with args.
6131set dummy lipo; ac_word=$2
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133$as_echo_n "checking for $ac_word... " >&6; }
6134if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6135  $as_echo_n "(cached) " >&6
6136else
6137  if test -n "$ac_ct_LIPO"; then
6138  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6139else
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143  IFS=$as_save_IFS
6144  test -z "$as_dir" && as_dir=.
6145    for ac_exec_ext in '' $ac_executable_extensions; do
6146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147    ac_cv_prog_ac_ct_LIPO="lipo"
6148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149    break 2
6150  fi
6151done
6152  done
6153IFS=$as_save_IFS
6154
6155fi
6156fi
6157ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6158if test -n "$ac_ct_LIPO"; then
6159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6160$as_echo "$ac_ct_LIPO" >&6; }
6161else
6162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163$as_echo "no" >&6; }
6164fi
6165
6166  if test "x$ac_ct_LIPO" = x; then
6167    LIPO=":"
6168  else
6169    case $cross_compiling:$ac_tool_warned in
6170yes:)
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6173ac_tool_warned=yes ;;
6174esac
6175    LIPO=$ac_ct_LIPO
6176  fi
6177else
6178  LIPO="$ac_cv_prog_LIPO"
6179fi
6180
6181    if test -n "$ac_tool_prefix"; then
6182  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6183set dummy ${ac_tool_prefix}otool; ac_word=$2
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185$as_echo_n "checking for $ac_word... " >&6; }
6186if ${ac_cv_prog_OTOOL+:} false; then :
6187  $as_echo_n "(cached) " >&6
6188else
6189  if test -n "$OTOOL"; then
6190  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6191else
6192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193for as_dir in $PATH
6194do
6195  IFS=$as_save_IFS
6196  test -z "$as_dir" && as_dir=.
6197    for ac_exec_ext in '' $ac_executable_extensions; do
6198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201    break 2
6202  fi
6203done
6204  done
6205IFS=$as_save_IFS
6206
6207fi
6208fi
6209OTOOL=$ac_cv_prog_OTOOL
6210if test -n "$OTOOL"; then
6211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6212$as_echo "$OTOOL" >&6; }
6213else
6214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215$as_echo "no" >&6; }
6216fi
6217
6218
6219fi
6220if test -z "$ac_cv_prog_OTOOL"; then
6221  ac_ct_OTOOL=$OTOOL
6222  # Extract the first word of "otool", so it can be a program name with args.
6223set dummy otool; ac_word=$2
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225$as_echo_n "checking for $ac_word... " >&6; }
6226if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6227  $as_echo_n "(cached) " >&6
6228else
6229  if test -n "$ac_ct_OTOOL"; then
6230  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6231else
6232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235  IFS=$as_save_IFS
6236  test -z "$as_dir" && as_dir=.
6237    for ac_exec_ext in '' $ac_executable_extensions; do
6238  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239    ac_cv_prog_ac_ct_OTOOL="otool"
6240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241    break 2
6242  fi
6243done
6244  done
6245IFS=$as_save_IFS
6246
6247fi
6248fi
6249ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6250if test -n "$ac_ct_OTOOL"; then
6251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6252$as_echo "$ac_ct_OTOOL" >&6; }
6253else
6254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255$as_echo "no" >&6; }
6256fi
6257
6258  if test "x$ac_ct_OTOOL" = x; then
6259    OTOOL=":"
6260  else
6261    case $cross_compiling:$ac_tool_warned in
6262yes:)
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265ac_tool_warned=yes ;;
6266esac
6267    OTOOL=$ac_ct_OTOOL
6268  fi
6269else
6270  OTOOL="$ac_cv_prog_OTOOL"
6271fi
6272
6273    if test -n "$ac_tool_prefix"; then
6274  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6275set dummy ${ac_tool_prefix}otool64; ac_word=$2
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277$as_echo_n "checking for $ac_word... " >&6; }
6278if ${ac_cv_prog_OTOOL64+:} false; then :
6279  $as_echo_n "(cached) " >&6
6280else
6281  if test -n "$OTOOL64"; then
6282  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6283else
6284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285for as_dir in $PATH
6286do
6287  IFS=$as_save_IFS
6288  test -z "$as_dir" && as_dir=.
6289    for ac_exec_ext in '' $ac_executable_extensions; do
6290  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293    break 2
6294  fi
6295done
6296  done
6297IFS=$as_save_IFS
6298
6299fi
6300fi
6301OTOOL64=$ac_cv_prog_OTOOL64
6302if test -n "$OTOOL64"; then
6303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6304$as_echo "$OTOOL64" >&6; }
6305else
6306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307$as_echo "no" >&6; }
6308fi
6309
6310
6311fi
6312if test -z "$ac_cv_prog_OTOOL64"; then
6313  ac_ct_OTOOL64=$OTOOL64
6314  # Extract the first word of "otool64", so it can be a program name with args.
6315set dummy otool64; ac_word=$2
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317$as_echo_n "checking for $ac_word... " >&6; }
6318if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6319  $as_echo_n "(cached) " >&6
6320else
6321  if test -n "$ac_ct_OTOOL64"; then
6322  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6323else
6324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327  IFS=$as_save_IFS
6328  test -z "$as_dir" && as_dir=.
6329    for ac_exec_ext in '' $ac_executable_extensions; do
6330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331    ac_cv_prog_ac_ct_OTOOL64="otool64"
6332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333    break 2
6334  fi
6335done
6336  done
6337IFS=$as_save_IFS
6338
6339fi
6340fi
6341ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6342if test -n "$ac_ct_OTOOL64"; then
6343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6344$as_echo "$ac_ct_OTOOL64" >&6; }
6345else
6346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347$as_echo "no" >&6; }
6348fi
6349
6350  if test "x$ac_ct_OTOOL64" = x; then
6351    OTOOL64=":"
6352  else
6353    case $cross_compiling:$ac_tool_warned in
6354yes:)
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357ac_tool_warned=yes ;;
6358esac
6359    OTOOL64=$ac_ct_OTOOL64
6360  fi
6361else
6362  OTOOL64="$ac_cv_prog_OTOOL64"
6363fi
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6392$as_echo_n "checking for -single_module linker flag... " >&6; }
6393if ${lt_cv_apple_cc_single_mod+:} false; then :
6394  $as_echo_n "(cached) " >&6
6395else
6396  lt_cv_apple_cc_single_mod=no
6397      if test -z "${LT_MULTI_MODULE}"; then
6398	# By default we will add the -single_module flag. You can override
6399	# by either setting the environment variable LT_MULTI_MODULE
6400	# non-empty at configure time, or by adding -multi_module to the
6401	# link flags.
6402	rm -rf libconftest.dylib*
6403	echo "int foo(void){return 1;}" > conftest.c
6404	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6405-dynamiclib -Wl,-single_module conftest.c" >&5
6406	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6407	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6408        _lt_result=$?
6409	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6410	  lt_cv_apple_cc_single_mod=yes
6411	else
6412	  cat conftest.err >&5
6413	fi
6414	rm -rf libconftest.dylib*
6415	rm -f conftest.*
6416      fi
6417fi
6418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6419$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6420    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6421$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6422if ${lt_cv_ld_exported_symbols_list+:} false; then :
6423  $as_echo_n "(cached) " >&6
6424else
6425  lt_cv_ld_exported_symbols_list=no
6426      save_LDFLAGS=$LDFLAGS
6427      echo "_main" > conftest.sym
6428      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6429      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h.  */
6431
6432int
6433main ()
6434{
6435
6436  ;
6437  return 0;
6438}
6439_ACEOF
6440if ac_fn_c_try_link "$LINENO"; then :
6441  lt_cv_ld_exported_symbols_list=yes
6442else
6443  lt_cv_ld_exported_symbols_list=no
6444fi
6445rm -f core conftest.err conftest.$ac_objext \
6446    conftest$ac_exeext conftest.$ac_ext
6447	LDFLAGS="$save_LDFLAGS"
6448
6449fi
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6451$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6452    case $host_os in
6453    rhapsody* | darwin1.[012])
6454      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6455    darwin1.*)
6456      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6457    darwin*) # darwin 5.x on
6458      # if running on 10.5 or later, the deployment target defaults
6459      # to the OS version, if on x86, and 10.4, the deployment
6460      # target defaults to 10.4. Don't you love it?
6461      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6462	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6463	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6464	10.[012]*)
6465	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6466	10.*)
6467	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6468      esac
6469    ;;
6470  esac
6471    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6472      _lt_dar_single_mod='$single_module'
6473    fi
6474    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6475      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6476    else
6477      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6478    fi
6479    if test "$DSYMUTIL" != ":"; then
6480      _lt_dsymutil='~$DSYMUTIL $lib || :'
6481    else
6482      _lt_dsymutil=
6483    fi
6484    ;;
6485  esac
6486
6487ac_ext=c
6488ac_cpp='$CPP $CPPFLAGS'
6489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6491ac_compiler_gnu=$ac_cv_c_compiler_gnu
6492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6493$as_echo_n "checking how to run the C preprocessor... " >&6; }
6494# On Suns, sometimes $CPP names a directory.
6495if test -n "$CPP" && test -d "$CPP"; then
6496  CPP=
6497fi
6498if test -z "$CPP"; then
6499  if ${ac_cv_prog_CPP+:} false; then :
6500  $as_echo_n "(cached) " >&6
6501else
6502      # Double quotes because CPP needs to be expanded
6503    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6504    do
6505      ac_preproc_ok=false
6506for ac_c_preproc_warn_flag in '' yes
6507do
6508  # Use a header file that comes with gcc, so configuring glibc
6509  # with a fresh cross-compiler works.
6510  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6511  # <limits.h> exists even on freestanding compilers.
6512  # On the NeXT, cc -E runs the code through the compiler's parser,
6513  # not just through cpp. "Syntax error" is here to catch this case.
6514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515/* end confdefs.h.  */
6516#ifdef __STDC__
6517# include <limits.h>
6518#else
6519# include <assert.h>
6520#endif
6521		     Syntax error
6522_ACEOF
6523if ac_fn_c_try_cpp "$LINENO"; then :
6524
6525else
6526  # Broken: fails on valid input.
6527continue
6528fi
6529rm -f conftest.err conftest.i conftest.$ac_ext
6530
6531  # OK, works on sane cases.  Now check whether nonexistent headers
6532  # can be detected and how.
6533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534/* end confdefs.h.  */
6535#include <ac_nonexistent.h>
6536_ACEOF
6537if ac_fn_c_try_cpp "$LINENO"; then :
6538  # Broken: success on invalid input.
6539continue
6540else
6541  # Passes both tests.
6542ac_preproc_ok=:
6543break
6544fi
6545rm -f conftest.err conftest.i conftest.$ac_ext
6546
6547done
6548# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6549rm -f conftest.i conftest.err conftest.$ac_ext
6550if $ac_preproc_ok; then :
6551  break
6552fi
6553
6554    done
6555    ac_cv_prog_CPP=$CPP
6556
6557fi
6558  CPP=$ac_cv_prog_CPP
6559else
6560  ac_cv_prog_CPP=$CPP
6561fi
6562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6563$as_echo "$CPP" >&6; }
6564ac_preproc_ok=false
6565for ac_c_preproc_warn_flag in '' yes
6566do
6567  # Use a header file that comes with gcc, so configuring glibc
6568  # with a fresh cross-compiler works.
6569  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6570  # <limits.h> exists even on freestanding compilers.
6571  # On the NeXT, cc -E runs the code through the compiler's parser,
6572  # not just through cpp. "Syntax error" is here to catch this case.
6573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574/* end confdefs.h.  */
6575#ifdef __STDC__
6576# include <limits.h>
6577#else
6578# include <assert.h>
6579#endif
6580		     Syntax error
6581_ACEOF
6582if ac_fn_c_try_cpp "$LINENO"; then :
6583
6584else
6585  # Broken: fails on valid input.
6586continue
6587fi
6588rm -f conftest.err conftest.i conftest.$ac_ext
6589
6590  # OK, works on sane cases.  Now check whether nonexistent headers
6591  # can be detected and how.
6592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593/* end confdefs.h.  */
6594#include <ac_nonexistent.h>
6595_ACEOF
6596if ac_fn_c_try_cpp "$LINENO"; then :
6597  # Broken: success on invalid input.
6598continue
6599else
6600  # Passes both tests.
6601ac_preproc_ok=:
6602break
6603fi
6604rm -f conftest.err conftest.i conftest.$ac_ext
6605
6606done
6607# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6608rm -f conftest.i conftest.err conftest.$ac_ext
6609if $ac_preproc_ok; then :
6610
6611else
6612  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6614as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6615See \`config.log' for more details" "$LINENO" 5; }
6616fi
6617
6618ac_ext=c
6619ac_cpp='$CPP $CPPFLAGS'
6620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6622ac_compiler_gnu=$ac_cv_c_compiler_gnu
6623
6624
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6626$as_echo_n "checking for ANSI C header files... " >&6; }
6627if ${ac_cv_header_stdc+:} false; then :
6628  $as_echo_n "(cached) " >&6
6629else
6630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631/* end confdefs.h.  */
6632#include <stdlib.h>
6633#include <stdarg.h>
6634#include <string.h>
6635#include <float.h>
6636
6637int
6638main ()
6639{
6640
6641  ;
6642  return 0;
6643}
6644_ACEOF
6645if ac_fn_c_try_compile "$LINENO"; then :
6646  ac_cv_header_stdc=yes
6647else
6648  ac_cv_header_stdc=no
6649fi
6650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6651
6652if test $ac_cv_header_stdc = yes; then
6653  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655/* end confdefs.h.  */
6656#include <string.h>
6657
6658_ACEOF
6659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6660  $EGREP "memchr" >/dev/null 2>&1; then :
6661
6662else
6663  ac_cv_header_stdc=no
6664fi
6665rm -f conftest*
6666
6667fi
6668
6669if test $ac_cv_header_stdc = yes; then
6670  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672/* end confdefs.h.  */
6673#include <stdlib.h>
6674
6675_ACEOF
6676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6677  $EGREP "free" >/dev/null 2>&1; then :
6678
6679else
6680  ac_cv_header_stdc=no
6681fi
6682rm -f conftest*
6683
6684fi
6685
6686if test $ac_cv_header_stdc = yes; then
6687  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6688  if test "$cross_compiling" = yes; then :
6689  :
6690else
6691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692/* end confdefs.h.  */
6693#include <ctype.h>
6694#include <stdlib.h>
6695#if ((' ' & 0x0FF) == 0x020)
6696# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6697# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6698#else
6699# define ISLOWER(c) \
6700		   (('a' <= (c) && (c) <= 'i') \
6701		     || ('j' <= (c) && (c) <= 'r') \
6702		     || ('s' <= (c) && (c) <= 'z'))
6703# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6704#endif
6705
6706#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6707int
6708main ()
6709{
6710  int i;
6711  for (i = 0; i < 256; i++)
6712    if (XOR (islower (i), ISLOWER (i))
6713	|| toupper (i) != TOUPPER (i))
6714      return 2;
6715  return 0;
6716}
6717_ACEOF
6718if ac_fn_c_try_run "$LINENO"; then :
6719
6720else
6721  ac_cv_header_stdc=no
6722fi
6723rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6724  conftest.$ac_objext conftest.beam conftest.$ac_ext
6725fi
6726
6727fi
6728fi
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6730$as_echo "$ac_cv_header_stdc" >&6; }
6731if test $ac_cv_header_stdc = yes; then
6732
6733$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6734
6735fi
6736
6737# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6738for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6739		  inttypes.h stdint.h unistd.h
6740do :
6741  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6742ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6743"
6744if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6745  cat >>confdefs.h <<_ACEOF
6746#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6747_ACEOF
6748
6749fi
6750
6751done
6752
6753
6754for ac_header in dlfcn.h
6755do :
6756  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6757"
6758if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6759  cat >>confdefs.h <<_ACEOF
6760#define HAVE_DLFCN_H 1
6761_ACEOF
6762
6763fi
6764
6765done
6766
6767
6768
6769# Set options
6770enable_dlopen=yes
6771enable_win32_dll=yes
6772
6773case $host in
6774*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6775  if test -n "$ac_tool_prefix"; then
6776  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6777set dummy ${ac_tool_prefix}as; ac_word=$2
6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779$as_echo_n "checking for $ac_word... " >&6; }
6780if ${ac_cv_prog_AS+:} false; then :
6781  $as_echo_n "(cached) " >&6
6782else
6783  if test -n "$AS"; then
6784  ac_cv_prog_AS="$AS" # Let the user override the test.
6785else
6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789  IFS=$as_save_IFS
6790  test -z "$as_dir" && as_dir=.
6791    for ac_exec_ext in '' $ac_executable_extensions; do
6792  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793    ac_cv_prog_AS="${ac_tool_prefix}as"
6794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795    break 2
6796  fi
6797done
6798  done
6799IFS=$as_save_IFS
6800
6801fi
6802fi
6803AS=$ac_cv_prog_AS
6804if test -n "$AS"; then
6805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6806$as_echo "$AS" >&6; }
6807else
6808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809$as_echo "no" >&6; }
6810fi
6811
6812
6813fi
6814if test -z "$ac_cv_prog_AS"; then
6815  ac_ct_AS=$AS
6816  # Extract the first word of "as", so it can be a program name with args.
6817set dummy as; ac_word=$2
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819$as_echo_n "checking for $ac_word... " >&6; }
6820if ${ac_cv_prog_ac_ct_AS+:} false; then :
6821  $as_echo_n "(cached) " >&6
6822else
6823  if test -n "$ac_ct_AS"; then
6824  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6825else
6826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827for as_dir in $PATH
6828do
6829  IFS=$as_save_IFS
6830  test -z "$as_dir" && as_dir=.
6831    for ac_exec_ext in '' $ac_executable_extensions; do
6832  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833    ac_cv_prog_ac_ct_AS="as"
6834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835    break 2
6836  fi
6837done
6838  done
6839IFS=$as_save_IFS
6840
6841fi
6842fi
6843ac_ct_AS=$ac_cv_prog_ac_ct_AS
6844if test -n "$ac_ct_AS"; then
6845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6846$as_echo "$ac_ct_AS" >&6; }
6847else
6848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849$as_echo "no" >&6; }
6850fi
6851
6852  if test "x$ac_ct_AS" = x; then
6853    AS="false"
6854  else
6855    case $cross_compiling:$ac_tool_warned in
6856yes:)
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6859ac_tool_warned=yes ;;
6860esac
6861    AS=$ac_ct_AS
6862  fi
6863else
6864  AS="$ac_cv_prog_AS"
6865fi
6866
6867  if test -n "$ac_tool_prefix"; then
6868  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6869set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6871$as_echo_n "checking for $ac_word... " >&6; }
6872if ${ac_cv_prog_DLLTOOL+:} false; then :
6873  $as_echo_n "(cached) " >&6
6874else
6875  if test -n "$DLLTOOL"; then
6876  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6877else
6878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879for as_dir in $PATH
6880do
6881  IFS=$as_save_IFS
6882  test -z "$as_dir" && as_dir=.
6883    for ac_exec_ext in '' $ac_executable_extensions; do
6884  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6885    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6887    break 2
6888  fi
6889done
6890  done
6891IFS=$as_save_IFS
6892
6893fi
6894fi
6895DLLTOOL=$ac_cv_prog_DLLTOOL
6896if test -n "$DLLTOOL"; then
6897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6898$as_echo "$DLLTOOL" >&6; }
6899else
6900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901$as_echo "no" >&6; }
6902fi
6903
6904
6905fi
6906if test -z "$ac_cv_prog_DLLTOOL"; then
6907  ac_ct_DLLTOOL=$DLLTOOL
6908  # Extract the first word of "dlltool", so it can be a program name with args.
6909set dummy dlltool; ac_word=$2
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911$as_echo_n "checking for $ac_word... " >&6; }
6912if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6913  $as_echo_n "(cached) " >&6
6914else
6915  if test -n "$ac_ct_DLLTOOL"; then
6916  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6917else
6918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919for as_dir in $PATH
6920do
6921  IFS=$as_save_IFS
6922  test -z "$as_dir" && as_dir=.
6923    for ac_exec_ext in '' $ac_executable_extensions; do
6924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927    break 2
6928  fi
6929done
6930  done
6931IFS=$as_save_IFS
6932
6933fi
6934fi
6935ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6936if test -n "$ac_ct_DLLTOOL"; then
6937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6938$as_echo "$ac_ct_DLLTOOL" >&6; }
6939else
6940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941$as_echo "no" >&6; }
6942fi
6943
6944  if test "x$ac_ct_DLLTOOL" = x; then
6945    DLLTOOL="false"
6946  else
6947    case $cross_compiling:$ac_tool_warned in
6948yes:)
6949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6951ac_tool_warned=yes ;;
6952esac
6953    DLLTOOL=$ac_ct_DLLTOOL
6954  fi
6955else
6956  DLLTOOL="$ac_cv_prog_DLLTOOL"
6957fi
6958
6959  if test -n "$ac_tool_prefix"; then
6960  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6961set dummy ${ac_tool_prefix}objdump; ac_word=$2
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963$as_echo_n "checking for $ac_word... " >&6; }
6964if ${ac_cv_prog_OBJDUMP+:} false; then :
6965  $as_echo_n "(cached) " >&6
6966else
6967  if test -n "$OBJDUMP"; then
6968  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6969else
6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971for as_dir in $PATH
6972do
6973  IFS=$as_save_IFS
6974  test -z "$as_dir" && as_dir=.
6975    for ac_exec_ext in '' $ac_executable_extensions; do
6976  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6977    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979    break 2
6980  fi
6981done
6982  done
6983IFS=$as_save_IFS
6984
6985fi
6986fi
6987OBJDUMP=$ac_cv_prog_OBJDUMP
6988if test -n "$OBJDUMP"; then
6989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6990$as_echo "$OBJDUMP" >&6; }
6991else
6992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993$as_echo "no" >&6; }
6994fi
6995
6996
6997fi
6998if test -z "$ac_cv_prog_OBJDUMP"; then
6999  ac_ct_OBJDUMP=$OBJDUMP
7000  # Extract the first word of "objdump", so it can be a program name with args.
7001set dummy objdump; ac_word=$2
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003$as_echo_n "checking for $ac_word... " >&6; }
7004if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7005  $as_echo_n "(cached) " >&6
7006else
7007  if test -n "$ac_ct_OBJDUMP"; then
7008  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7009else
7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011for as_dir in $PATH
7012do
7013  IFS=$as_save_IFS
7014  test -z "$as_dir" && as_dir=.
7015    for ac_exec_ext in '' $ac_executable_extensions; do
7016  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019    break 2
7020  fi
7021done
7022  done
7023IFS=$as_save_IFS
7024
7025fi
7026fi
7027ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7028if test -n "$ac_ct_OBJDUMP"; then
7029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7030$as_echo "$ac_ct_OBJDUMP" >&6; }
7031else
7032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033$as_echo "no" >&6; }
7034fi
7035
7036  if test "x$ac_ct_OBJDUMP" = x; then
7037    OBJDUMP="false"
7038  else
7039    case $cross_compiling:$ac_tool_warned in
7040yes:)
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7043ac_tool_warned=yes ;;
7044esac
7045    OBJDUMP=$ac_ct_OBJDUMP
7046  fi
7047else
7048  OBJDUMP="$ac_cv_prog_OBJDUMP"
7049fi
7050
7051  ;;
7052esac
7053
7054test -z "$AS" && AS=as
7055
7056
7057
7058
7059
7060test -z "$DLLTOOL" && DLLTOOL=dlltool
7061
7062
7063
7064
7065
7066test -z "$OBJDUMP" && OBJDUMP=objdump
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076            # Check whether --enable-shared was given.
7077if test "${enable_shared+set}" = set; then :
7078  enableval=$enable_shared; p=${PACKAGE-default}
7079    case $enableval in
7080    yes) enable_shared=yes ;;
7081    no) enable_shared=no ;;
7082    *)
7083      enable_shared=no
7084      # Look at the argument we got.  We use all the common list separators.
7085      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7086      for pkg in $enableval; do
7087	IFS="$lt_save_ifs"
7088	if test "X$pkg" = "X$p"; then
7089	  enable_shared=yes
7090	fi
7091      done
7092      IFS="$lt_save_ifs"
7093      ;;
7094    esac
7095else
7096  enable_shared=yes
7097fi
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107  # Check whether --enable-static was given.
7108if test "${enable_static+set}" = set; then :
7109  enableval=$enable_static; p=${PACKAGE-default}
7110    case $enableval in
7111    yes) enable_static=yes ;;
7112    no) enable_static=no ;;
7113    *)
7114     enable_static=no
7115      # Look at the argument we got.  We use all the common list separators.
7116      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7117      for pkg in $enableval; do
7118	IFS="$lt_save_ifs"
7119	if test "X$pkg" = "X$p"; then
7120	  enable_static=yes
7121	fi
7122      done
7123      IFS="$lt_save_ifs"
7124      ;;
7125    esac
7126else
7127  enable_static=yes
7128fi
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139# Check whether --with-pic was given.
7140if test "${with_pic+set}" = set; then :
7141  withval=$with_pic; pic_mode="$withval"
7142else
7143  pic_mode=default
7144fi
7145
7146
7147test -z "$pic_mode" && pic_mode=default
7148
7149
7150
7151
7152
7153
7154
7155  # Check whether --enable-fast-install was given.
7156if test "${enable_fast_install+set}" = set; then :
7157  enableval=$enable_fast_install; p=${PACKAGE-default}
7158    case $enableval in
7159    yes) enable_fast_install=yes ;;
7160    no) enable_fast_install=no ;;
7161    *)
7162      enable_fast_install=no
7163      # Look at the argument we got.  We use all the common list separators.
7164      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7165      for pkg in $enableval; do
7166	IFS="$lt_save_ifs"
7167	if test "X$pkg" = "X$p"; then
7168	  enable_fast_install=yes
7169	fi
7170      done
7171      IFS="$lt_save_ifs"
7172      ;;
7173    esac
7174else
7175  enable_fast_install=yes
7176fi
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188# This can be used to rebuild libtool when needed
7189LIBTOOL_DEPS="$ltmain"
7190
7191# Always use our own libtool.
7192LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218test -z "$LN_S" && LN_S="ln -s"
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233if test -n "${ZSH_VERSION+set}" ; then
7234   setopt NO_GLOB_SUBST
7235fi
7236
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7238$as_echo_n "checking for objdir... " >&6; }
7239if ${lt_cv_objdir+:} false; then :
7240  $as_echo_n "(cached) " >&6
7241else
7242  rm -f .libs 2>/dev/null
7243mkdir .libs 2>/dev/null
7244if test -d .libs; then
7245  lt_cv_objdir=.libs
7246else
7247  # MS-DOS does not allow filenames that begin with a dot.
7248  lt_cv_objdir=_libs
7249fi
7250rmdir .libs 2>/dev/null
7251fi
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7253$as_echo "$lt_cv_objdir" >&6; }
7254objdir=$lt_cv_objdir
7255
7256
7257
7258
7259
7260cat >>confdefs.h <<_ACEOF
7261#define LT_OBJDIR "$lt_cv_objdir/"
7262_ACEOF
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280case $host_os in
7281aix3*)
7282  # AIX sometimes has problems with the GCC collect2 program.  For some
7283  # reason, if we set the COLLECT_NAMES environment variable, the problems
7284  # vanish in a puff of smoke.
7285  if test "X${COLLECT_NAMES+set}" != Xset; then
7286    COLLECT_NAMES=
7287    export COLLECT_NAMES
7288  fi
7289  ;;
7290esac
7291
7292# Sed substitution that helps us do robust quoting.  It backslashifies
7293# metacharacters that are still active within double-quoted strings.
7294sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7295
7296# Same as above, but do not quote variable references.
7297double_quote_subst='s/\(["`\\]\)/\\\1/g'
7298
7299# Sed substitution to delay expansion of an escaped shell variable in a
7300# double_quote_subst'ed string.
7301delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7302
7303# Sed substitution to delay expansion of an escaped single quote.
7304delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7305
7306# Sed substitution to avoid accidental globbing in evaled expressions
7307no_glob_subst='s/\*/\\\*/g'
7308
7309# Global variables:
7310ofile=libtool
7311can_build_shared=yes
7312
7313# All known linkers require a `.a' archive for static linking (except MSVC,
7314# which needs '.lib').
7315libext=a
7316
7317with_gnu_ld="$lt_cv_prog_gnu_ld"
7318
7319old_CC="$CC"
7320old_CFLAGS="$CFLAGS"
7321
7322# Set sane defaults for various variables
7323test -z "$CC" && CC=cc
7324test -z "$LTCC" && LTCC=$CC
7325test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7326test -z "$LD" && LD=ld
7327test -z "$ac_objext" && ac_objext=o
7328
7329for cc_temp in $compiler""; do
7330  case $cc_temp in
7331    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7332    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7333    \-*) ;;
7334    *) break;;
7335  esac
7336done
7337cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7338
7339
7340# Only perform the check for file, if the check method requires it
7341test -z "$MAGIC_CMD" && MAGIC_CMD=file
7342case $deplibs_check_method in
7343file_magic*)
7344  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7345    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7346$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7347if ${lt_cv_path_MAGIC_CMD+:} false; then :
7348  $as_echo_n "(cached) " >&6
7349else
7350  case $MAGIC_CMD in
7351[\\/*] |  ?:[\\/]*)
7352  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7353  ;;
7354*)
7355  lt_save_MAGIC_CMD="$MAGIC_CMD"
7356  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7357  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7358  for ac_dir in $ac_dummy; do
7359    IFS="$lt_save_ifs"
7360    test -z "$ac_dir" && ac_dir=.
7361    if test -f $ac_dir/${ac_tool_prefix}file; then
7362      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7363      if test -n "$file_magic_test_file"; then
7364	case $deplibs_check_method in
7365	"file_magic "*)
7366	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7367	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7368	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7369	    $EGREP "$file_magic_regex" > /dev/null; then
7370	    :
7371	  else
7372	    cat <<_LT_EOF 1>&2
7373
7374*** Warning: the command libtool uses to detect shared libraries,
7375*** $file_magic_cmd, produces output that libtool cannot recognize.
7376*** The result is that libtool may fail to recognize shared libraries
7377*** as such.  This will affect the creation of libtool libraries that
7378*** depend on shared libraries, but programs linked with such libtool
7379*** libraries will work regardless of this problem.  Nevertheless, you
7380*** may want to report the problem to your system manager and/or to
7381*** bug-libtool@gnu.org
7382
7383_LT_EOF
7384	  fi ;;
7385	esac
7386      fi
7387      break
7388    fi
7389  done
7390  IFS="$lt_save_ifs"
7391  MAGIC_CMD="$lt_save_MAGIC_CMD"
7392  ;;
7393esac
7394fi
7395
7396MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7397if test -n "$MAGIC_CMD"; then
7398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7399$as_echo "$MAGIC_CMD" >&6; }
7400else
7401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402$as_echo "no" >&6; }
7403fi
7404
7405
7406
7407
7408
7409if test -z "$lt_cv_path_MAGIC_CMD"; then
7410  if test -n "$ac_tool_prefix"; then
7411    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7412$as_echo_n "checking for file... " >&6; }
7413if ${lt_cv_path_MAGIC_CMD+:} false; then :
7414  $as_echo_n "(cached) " >&6
7415else
7416  case $MAGIC_CMD in
7417[\\/*] |  ?:[\\/]*)
7418  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7419  ;;
7420*)
7421  lt_save_MAGIC_CMD="$MAGIC_CMD"
7422  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7423  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7424  for ac_dir in $ac_dummy; do
7425    IFS="$lt_save_ifs"
7426    test -z "$ac_dir" && ac_dir=.
7427    if test -f $ac_dir/file; then
7428      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7429      if test -n "$file_magic_test_file"; then
7430	case $deplibs_check_method in
7431	"file_magic "*)
7432	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7433	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7434	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7435	    $EGREP "$file_magic_regex" > /dev/null; then
7436	    :
7437	  else
7438	    cat <<_LT_EOF 1>&2
7439
7440*** Warning: the command libtool uses to detect shared libraries,
7441*** $file_magic_cmd, produces output that libtool cannot recognize.
7442*** The result is that libtool may fail to recognize shared libraries
7443*** as such.  This will affect the creation of libtool libraries that
7444*** depend on shared libraries, but programs linked with such libtool
7445*** libraries will work regardless of this problem.  Nevertheless, you
7446*** may want to report the problem to your system manager and/or to
7447*** bug-libtool@gnu.org
7448
7449_LT_EOF
7450	  fi ;;
7451	esac
7452      fi
7453      break
7454    fi
7455  done
7456  IFS="$lt_save_ifs"
7457  MAGIC_CMD="$lt_save_MAGIC_CMD"
7458  ;;
7459esac
7460fi
7461
7462MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7463if test -n "$MAGIC_CMD"; then
7464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7465$as_echo "$MAGIC_CMD" >&6; }
7466else
7467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468$as_echo "no" >&6; }
7469fi
7470
7471
7472  else
7473    MAGIC_CMD=:
7474  fi
7475fi
7476
7477  fi
7478  ;;
7479esac
7480
7481# Use C for the default configuration in the libtool script
7482
7483lt_save_CC="$CC"
7484ac_ext=c
7485ac_cpp='$CPP $CPPFLAGS'
7486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7488ac_compiler_gnu=$ac_cv_c_compiler_gnu
7489
7490
7491# Source file extension for C test sources.
7492ac_ext=c
7493
7494# Object file extension for compiled C test sources.
7495objext=o
7496objext=$objext
7497
7498# Code to be used in simple compile tests
7499lt_simple_compile_test_code="int some_variable = 0;"
7500
7501# Code to be used in simple link tests
7502lt_simple_link_test_code='int main(){return(0);}'
7503
7504
7505
7506
7507
7508
7509
7510# If no C compiler was specified, use CC.
7511LTCC=${LTCC-"$CC"}
7512
7513# If no C compiler flags were specified, use CFLAGS.
7514LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7515
7516# Allow CC to be a program name with arguments.
7517compiler=$CC
7518
7519# Save the default compiler, since it gets overwritten when the other
7520# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7521compiler_DEFAULT=$CC
7522
7523# save warnings/boilerplate of simple test code
7524ac_outfile=conftest.$ac_objext
7525echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7526eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7527_lt_compiler_boilerplate=`cat conftest.err`
7528$RM conftest*
7529
7530ac_outfile=conftest.$ac_objext
7531echo "$lt_simple_link_test_code" >conftest.$ac_ext
7532eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7533_lt_linker_boilerplate=`cat conftest.err`
7534$RM -r conftest*
7535
7536
7537## CAVEAT EMPTOR:
7538## There is no encapsulation within the following macros, do not change
7539## the running order or otherwise move them around unless you know exactly
7540## what you are doing...
7541if test -n "$compiler"; then
7542
7543lt_prog_compiler_no_builtin_flag=
7544
7545if test "$GCC" = yes; then
7546  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7547
7548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7549$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7550if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7551  $as_echo_n "(cached) " >&6
7552else
7553  lt_cv_prog_compiler_rtti_exceptions=no
7554   ac_outfile=conftest.$ac_objext
7555   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7556   lt_compiler_flag="-fno-rtti -fno-exceptions"
7557   # Insert the option either (1) after the last *FLAGS variable, or
7558   # (2) before a word containing "conftest.", or (3) at the end.
7559   # Note that $ac_compile itself does not contain backslashes and begins
7560   # with a dollar sign (not a hyphen), so the echo should work correctly.
7561   # The option is referenced via a variable to avoid confusing sed.
7562   lt_compile=`echo "$ac_compile" | $SED \
7563   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7564   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7565   -e 's:$: $lt_compiler_flag:'`
7566   (eval echo "\"\$as_me:7566: $lt_compile\"" >&5)
7567   (eval "$lt_compile" 2>conftest.err)
7568   ac_status=$?
7569   cat conftest.err >&5
7570   echo "$as_me:7570: \$? = $ac_status" >&5
7571   if (exit $ac_status) && test -s "$ac_outfile"; then
7572     # The compiler can only warn and ignore the option if not recognized
7573     # So say no if there are warnings other than the usual output.
7574     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7575     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7576     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7577       lt_cv_prog_compiler_rtti_exceptions=yes
7578     fi
7579   fi
7580   $RM conftest*
7581
7582fi
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7584$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7585
7586if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7587    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7588else
7589    :
7590fi
7591
7592fi
7593
7594
7595
7596
7597
7598
7599  lt_prog_compiler_wl=
7600lt_prog_compiler_pic=
7601lt_prog_compiler_static=
7602
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7604$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7605
7606  if test "$GCC" = yes; then
7607    lt_prog_compiler_wl='-Wl,'
7608    lt_prog_compiler_static='-static'
7609
7610    case $host_os in
7611      aix*)
7612      # All AIX code is PIC.
7613      if test "$host_cpu" = ia64; then
7614	# AIX 5 now supports IA64 processor
7615	lt_prog_compiler_static='-Bstatic'
7616      fi
7617      ;;
7618
7619    amigaos*)
7620      case $host_cpu in
7621      powerpc)
7622            # see comment about AmigaOS4 .so support
7623            lt_prog_compiler_pic='-fPIC'
7624        ;;
7625      m68k)
7626            # FIXME: we need at least 68020 code to build shared libraries, but
7627            # adding the `-m68020' flag to GCC prevents building anything better,
7628            # like `-m68040'.
7629            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7630        ;;
7631      esac
7632      ;;
7633
7634    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7635      # PIC is the default for these OSes.
7636      ;;
7637
7638    mingw* | cygwin* | pw32* | os2* | cegcc*)
7639      # This hack is so that the source file can tell whether it is being
7640      # built for inclusion in a dll (and should export symbols for example).
7641      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7642      # (--disable-auto-import) libraries
7643      lt_prog_compiler_pic='-DDLL_EXPORT'
7644      ;;
7645
7646    darwin* | rhapsody*)
7647      # PIC is the default on this platform
7648      # Common symbols not allowed in MH_DYLIB files
7649      lt_prog_compiler_pic='-fno-common'
7650      ;;
7651
7652    hpux*)
7653      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7654      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7655      # sets the default TLS model and affects inlining.
7656      case $host_cpu in
7657      hppa*64*)
7658	# +Z the default
7659	;;
7660      *)
7661	lt_prog_compiler_pic='-fPIC'
7662	;;
7663      esac
7664      ;;
7665
7666    interix[3-9]*)
7667      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7668      # Instead, we relocate shared libraries at runtime.
7669      ;;
7670
7671    msdosdjgpp*)
7672      # Just because we use GCC doesn't mean we suddenly get shared libraries
7673      # on systems that don't support them.
7674      lt_prog_compiler_can_build_shared=no
7675      enable_shared=no
7676      ;;
7677
7678    *nto* | *qnx*)
7679      # QNX uses GNU C++, but need to define -shared option too, otherwise
7680      # it will coredump.
7681      lt_prog_compiler_pic='-fPIC -shared'
7682      ;;
7683
7684    sysv4*MP*)
7685      if test -d /usr/nec; then
7686	lt_prog_compiler_pic=-Kconform_pic
7687      fi
7688      ;;
7689
7690    *)
7691      lt_prog_compiler_pic='-fPIC'
7692      ;;
7693    esac
7694  else
7695    # PORTME Check for flag to pass linker flags through the system compiler.
7696    case $host_os in
7697    aix*)
7698      lt_prog_compiler_wl='-Wl,'
7699      if test "$host_cpu" = ia64; then
7700	# AIX 5 now supports IA64 processor
7701	lt_prog_compiler_static='-Bstatic'
7702      else
7703	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7704      fi
7705      ;;
7706
7707    mingw* | cygwin* | pw32* | os2* | cegcc*)
7708      # This hack is so that the source file can tell whether it is being
7709      # built for inclusion in a dll (and should export symbols for example).
7710      lt_prog_compiler_pic='-DDLL_EXPORT'
7711      ;;
7712
7713    hpux9* | hpux10* | hpux11*)
7714      lt_prog_compiler_wl='-Wl,'
7715      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7716      # not for PA HP-UX.
7717      case $host_cpu in
7718      hppa*64*|ia64*)
7719	# +Z the default
7720	;;
7721      *)
7722	lt_prog_compiler_pic='+Z'
7723	;;
7724      esac
7725      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7726      lt_prog_compiler_static='${wl}-a ${wl}archive'
7727      ;;
7728
7729    irix5* | irix6* | nonstopux*)
7730      lt_prog_compiler_wl='-Wl,'
7731      # PIC (with -KPIC) is the default.
7732      lt_prog_compiler_static='-non_shared'
7733      ;;
7734
7735    linux* | k*bsd*-gnu)
7736      case $cc_basename in
7737      # old Intel for x86_64 which still supported -KPIC.
7738      ecc*)
7739	lt_prog_compiler_wl='-Wl,'
7740	lt_prog_compiler_pic='-KPIC'
7741	lt_prog_compiler_static='-static'
7742        ;;
7743      # icc used to be incompatible with GCC.
7744      # ICC 10 doesn't accept -KPIC any more.
7745      icc* | ifort*)
7746	lt_prog_compiler_wl='-Wl,'
7747	lt_prog_compiler_pic='-fPIC'
7748	lt_prog_compiler_static='-static'
7749        ;;
7750      # Lahey Fortran 8.1.
7751      lf95*)
7752	lt_prog_compiler_wl='-Wl,'
7753	lt_prog_compiler_pic='--shared'
7754	lt_prog_compiler_static='--static'
7755	;;
7756      pgcc* | pgf77* | pgf90* | pgf95*)
7757        # Portland Group compilers (*not* the Pentium gcc compiler,
7758	# which looks to be a dead project)
7759	lt_prog_compiler_wl='-Wl,'
7760	lt_prog_compiler_pic='-fpic'
7761	lt_prog_compiler_static='-Bstatic'
7762        ;;
7763      ccc*)
7764        lt_prog_compiler_wl='-Wl,'
7765        # All Alpha code is PIC.
7766        lt_prog_compiler_static='-non_shared'
7767        ;;
7768      xl*)
7769	# IBM XL C 8.0/Fortran 10.1 on PPC
7770	lt_prog_compiler_wl='-Wl,'
7771	lt_prog_compiler_pic='-qpic'
7772	lt_prog_compiler_static='-qstaticlink'
7773	;;
7774      *)
7775	case `$CC -V 2>&1 | sed 5q` in
7776	*Sun\ C*)
7777	  # Sun C 5.9
7778	  lt_prog_compiler_pic='-KPIC'
7779	  lt_prog_compiler_static='-Bstatic'
7780	  lt_prog_compiler_wl='-Wl,'
7781	  ;;
7782	*Sun\ F*)
7783	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7784	  lt_prog_compiler_pic='-KPIC'
7785	  lt_prog_compiler_static='-Bstatic'
7786	  lt_prog_compiler_wl=''
7787	  ;;
7788	esac
7789	;;
7790      esac
7791      ;;
7792
7793    newsos6)
7794      lt_prog_compiler_pic='-KPIC'
7795      lt_prog_compiler_static='-Bstatic'
7796      ;;
7797
7798    *nto* | *qnx*)
7799      # QNX uses GNU C++, but need to define -shared option too, otherwise
7800      # it will coredump.
7801      lt_prog_compiler_pic='-fPIC -shared'
7802      ;;
7803
7804    osf3* | osf4* | osf5*)
7805      lt_prog_compiler_wl='-Wl,'
7806      # All OSF/1 code is PIC.
7807      lt_prog_compiler_static='-non_shared'
7808      ;;
7809
7810    rdos*)
7811      lt_prog_compiler_static='-non_shared'
7812      ;;
7813
7814    solaris*)
7815      lt_prog_compiler_pic='-KPIC'
7816      lt_prog_compiler_static='-Bstatic'
7817      case $cc_basename in
7818      f77* | f90* | f95*)
7819	lt_prog_compiler_wl='-Qoption ld ';;
7820      *)
7821	lt_prog_compiler_wl='-Wl,';;
7822      esac
7823      ;;
7824
7825    sunos4*)
7826      lt_prog_compiler_wl='-Qoption ld '
7827      lt_prog_compiler_pic='-PIC'
7828      lt_prog_compiler_static='-Bstatic'
7829      ;;
7830
7831    sysv4 | sysv4.2uw2* | sysv4.3*)
7832      lt_prog_compiler_wl='-Wl,'
7833      lt_prog_compiler_pic='-KPIC'
7834      lt_prog_compiler_static='-Bstatic'
7835      ;;
7836
7837    sysv4*MP*)
7838      if test -d /usr/nec ;then
7839	lt_prog_compiler_pic='-Kconform_pic'
7840	lt_prog_compiler_static='-Bstatic'
7841      fi
7842      ;;
7843
7844    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7845      lt_prog_compiler_wl='-Wl,'
7846      lt_prog_compiler_pic='-KPIC'
7847      lt_prog_compiler_static='-Bstatic'
7848      ;;
7849
7850    unicos*)
7851      lt_prog_compiler_wl='-Wl,'
7852      lt_prog_compiler_can_build_shared=no
7853      ;;
7854
7855    uts4*)
7856      lt_prog_compiler_pic='-pic'
7857      lt_prog_compiler_static='-Bstatic'
7858      ;;
7859
7860    *)
7861      lt_prog_compiler_can_build_shared=no
7862      ;;
7863    esac
7864  fi
7865
7866case $host_os in
7867  # For platforms which do not support PIC, -DPIC is meaningless:
7868  *djgpp*)
7869    lt_prog_compiler_pic=
7870    ;;
7871  *)
7872    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7873    ;;
7874esac
7875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7876$as_echo "$lt_prog_compiler_pic" >&6; }
7877
7878
7879
7880
7881
7882
7883#
7884# Check to make sure the PIC flag actually works.
7885#
7886if test -n "$lt_prog_compiler_pic"; then
7887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7888$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7889if ${lt_cv_prog_compiler_pic_works+:} false; then :
7890  $as_echo_n "(cached) " >&6
7891else
7892  lt_cv_prog_compiler_pic_works=no
7893   ac_outfile=conftest.$ac_objext
7894   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7895   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7896   # Insert the option either (1) after the last *FLAGS variable, or
7897   # (2) before a word containing "conftest.", or (3) at the end.
7898   # Note that $ac_compile itself does not contain backslashes and begins
7899   # with a dollar sign (not a hyphen), so the echo should work correctly.
7900   # The option is referenced via a variable to avoid confusing sed.
7901   lt_compile=`echo "$ac_compile" | $SED \
7902   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7903   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7904   -e 's:$: $lt_compiler_flag:'`
7905   (eval echo "\"\$as_me:7905: $lt_compile\"" >&5)
7906   (eval "$lt_compile" 2>conftest.err)
7907   ac_status=$?
7908   cat conftest.err >&5
7909   echo "$as_me:7909: \$? = $ac_status" >&5
7910   if (exit $ac_status) && test -s "$ac_outfile"; then
7911     # The compiler can only warn and ignore the option if not recognized
7912     # So say no if there are warnings other than the usual output.
7913     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7914     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7915     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7916       lt_cv_prog_compiler_pic_works=yes
7917     fi
7918   fi
7919   $RM conftest*
7920
7921fi
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7923$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7924
7925if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7926    case $lt_prog_compiler_pic in
7927     "" | " "*) ;;
7928     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7929     esac
7930else
7931    lt_prog_compiler_pic=
7932     lt_prog_compiler_can_build_shared=no
7933fi
7934
7935fi
7936
7937
7938
7939
7940
7941
7942#
7943# Check to make sure the static flag actually works.
7944#
7945wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7947$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7948if ${lt_cv_prog_compiler_static_works+:} false; then :
7949  $as_echo_n "(cached) " >&6
7950else
7951  lt_cv_prog_compiler_static_works=no
7952   save_LDFLAGS="$LDFLAGS"
7953   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7954   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7955   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7956     # The linker can only warn and ignore the option if not recognized
7957     # So say no if there are warnings
7958     if test -s conftest.err; then
7959       # Append any errors to the config.log.
7960       cat conftest.err 1>&5
7961       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7962       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7963       if diff conftest.exp conftest.er2 >/dev/null; then
7964         lt_cv_prog_compiler_static_works=yes
7965       fi
7966     else
7967       lt_cv_prog_compiler_static_works=yes
7968     fi
7969   fi
7970   $RM -r conftest*
7971   LDFLAGS="$save_LDFLAGS"
7972
7973fi
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7975$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7976
7977if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7978    :
7979else
7980    lt_prog_compiler_static=
7981fi
7982
7983
7984
7985
7986
7987
7988
7989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7990$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7991if ${lt_cv_prog_compiler_c_o+:} false; then :
7992  $as_echo_n "(cached) " >&6
7993else
7994  lt_cv_prog_compiler_c_o=no
7995   $RM -r conftest 2>/dev/null
7996   mkdir conftest
7997   cd conftest
7998   mkdir out
7999   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8000
8001   lt_compiler_flag="-o out/conftest2.$ac_objext"
8002   # Insert the option either (1) after the last *FLAGS variable, or
8003   # (2) before a word containing "conftest.", or (3) at the end.
8004   # Note that $ac_compile itself does not contain backslashes and begins
8005   # with a dollar sign (not a hyphen), so the echo should work correctly.
8006   lt_compile=`echo "$ac_compile" | $SED \
8007   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8008   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8009   -e 's:$: $lt_compiler_flag:'`
8010   (eval echo "\"\$as_me:8010: $lt_compile\"" >&5)
8011   (eval "$lt_compile" 2>out/conftest.err)
8012   ac_status=$?
8013   cat out/conftest.err >&5
8014   echo "$as_me:8014: \$? = $ac_status" >&5
8015   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8016   then
8017     # The compiler can only warn and ignore the option if not recognized
8018     # So say no if there are warnings
8019     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8020     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8021     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8022       lt_cv_prog_compiler_c_o=yes
8023     fi
8024   fi
8025   chmod u+w . 2>&5
8026   $RM conftest*
8027   # SGI C++ compiler will create directory out/ii_files/ for
8028   # template instantiation
8029   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8030   $RM out/* && rmdir out
8031   cd ..
8032   $RM -r conftest
8033   $RM conftest*
8034
8035fi
8036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8037$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8038
8039
8040
8041
8042
8043
8044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8045$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8046if ${lt_cv_prog_compiler_c_o+:} false; then :
8047  $as_echo_n "(cached) " >&6
8048else
8049  lt_cv_prog_compiler_c_o=no
8050   $RM -r conftest 2>/dev/null
8051   mkdir conftest
8052   cd conftest
8053   mkdir out
8054   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8055
8056   lt_compiler_flag="-o out/conftest2.$ac_objext"
8057   # Insert the option either (1) after the last *FLAGS variable, or
8058   # (2) before a word containing "conftest.", or (3) at the end.
8059   # Note that $ac_compile itself does not contain backslashes and begins
8060   # with a dollar sign (not a hyphen), so the echo should work correctly.
8061   lt_compile=`echo "$ac_compile" | $SED \
8062   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8063   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8064   -e 's:$: $lt_compiler_flag:'`
8065   (eval echo "\"\$as_me:8065: $lt_compile\"" >&5)
8066   (eval "$lt_compile" 2>out/conftest.err)
8067   ac_status=$?
8068   cat out/conftest.err >&5
8069   echo "$as_me:8069: \$? = $ac_status" >&5
8070   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8071   then
8072     # The compiler can only warn and ignore the option if not recognized
8073     # So say no if there are warnings
8074     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8075     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8076     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8077       lt_cv_prog_compiler_c_o=yes
8078     fi
8079   fi
8080   chmod u+w . 2>&5
8081   $RM conftest*
8082   # SGI C++ compiler will create directory out/ii_files/ for
8083   # template instantiation
8084   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8085   $RM out/* && rmdir out
8086   cd ..
8087   $RM -r conftest
8088   $RM conftest*
8089
8090fi
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8092$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8093
8094
8095
8096
8097hard_links="nottested"
8098if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8099  # do not overwrite the value of need_locks provided by the user
8100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8101$as_echo_n "checking if we can lock with hard links... " >&6; }
8102  hard_links=yes
8103  $RM conftest*
8104  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8105  touch conftest.a
8106  ln conftest.a conftest.b 2>&5 || hard_links=no
8107  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8109$as_echo "$hard_links" >&6; }
8110  if test "$hard_links" = no; then
8111    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8112$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8113    need_locks=warn
8114  fi
8115else
8116  need_locks=no
8117fi
8118
8119
8120
8121
8122
8123
8124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8125$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8126
8127  runpath_var=
8128  allow_undefined_flag=
8129  always_export_symbols=no
8130  archive_cmds=
8131  archive_expsym_cmds=
8132  compiler_needs_object=no
8133  enable_shared_with_static_runtimes=no
8134  export_dynamic_flag_spec=
8135  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8136  hardcode_automatic=no
8137  hardcode_direct=no
8138  hardcode_direct_absolute=no
8139  hardcode_libdir_flag_spec=
8140  hardcode_libdir_flag_spec_ld=
8141  hardcode_libdir_separator=
8142  hardcode_minus_L=no
8143  hardcode_shlibpath_var=unsupported
8144  inherit_rpath=no
8145  link_all_deplibs=unknown
8146  module_cmds=
8147  module_expsym_cmds=
8148  old_archive_from_new_cmds=
8149  old_archive_from_expsyms_cmds=
8150  thread_safe_flag_spec=
8151  whole_archive_flag_spec=
8152  # include_expsyms should be a list of space-separated symbols to be *always*
8153  # included in the symbol list
8154  include_expsyms=
8155  # exclude_expsyms can be an extended regexp of symbols to exclude
8156  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8157  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8158  # as well as any symbol that contains `d'.
8159  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8160  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8161  # platforms (ab)use it in PIC code, but their linkers get confused if
8162  # the symbol is explicitly referenced.  Since portable code cannot
8163  # rely on this symbol name, it's probably fine to never include it in
8164  # preloaded symbol tables.
8165  # Exclude shared library initialization/finalization symbols.
8166  extract_expsyms_cmds=
8167
8168  case $host_os in
8169  cygwin* | mingw* | pw32* | cegcc*)
8170    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8171    # When not using gcc, we currently assume that we are using
8172    # Microsoft Visual C++.
8173    if test "$GCC" != yes; then
8174      with_gnu_ld=no
8175    fi
8176    ;;
8177  interix*)
8178    # we just hope/assume this is gcc and not c89 (= MSVC++)
8179    with_gnu_ld=yes
8180    ;;
8181  openbsd*)
8182    with_gnu_ld=no
8183    ;;
8184  esac
8185
8186  ld_shlibs=yes
8187  if test "$with_gnu_ld" = yes; then
8188    # If archive_cmds runs LD, not CC, wlarc should be empty
8189    wlarc='${wl}'
8190
8191    # Set some defaults for GNU ld with shared library support. These
8192    # are reset later if shared libraries are not supported. Putting them
8193    # here allows them to be overridden if necessary.
8194    runpath_var=LD_RUN_PATH
8195    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8196    export_dynamic_flag_spec='${wl}--export-dynamic'
8197    # ancient GNU ld didn't support --whole-archive et. al.
8198    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8199      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8200    else
8201      whole_archive_flag_spec=
8202    fi
8203    supports_anon_versioning=no
8204    case `$LD -v 2>&1` in
8205      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8206      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8207      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8208      *\ 2.11.*) ;; # other 2.11 versions
8209      *) supports_anon_versioning=yes ;;
8210    esac
8211
8212    # See if GNU ld supports shared libraries.
8213    case $host_os in
8214    aix[3-9]*)
8215      # On AIX/PPC, the GNU linker is very broken
8216      if test "$host_cpu" != ia64; then
8217	ld_shlibs=no
8218	cat <<_LT_EOF 1>&2
8219
8220*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8221*** to be unable to reliably create shared libraries on AIX.
8222*** Therefore, libtool is disabling shared libraries support.  If you
8223*** really care for shared libraries, you may want to modify your PATH
8224*** so that a non-GNU linker is found, and then restart.
8225
8226_LT_EOF
8227      fi
8228      ;;
8229
8230    amigaos*)
8231      case $host_cpu in
8232      powerpc)
8233            # see comment about AmigaOS4 .so support
8234            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8235            archive_expsym_cmds=''
8236        ;;
8237      m68k)
8238            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)'
8239            hardcode_libdir_flag_spec='-L$libdir'
8240            hardcode_minus_L=yes
8241        ;;
8242      esac
8243      ;;
8244
8245    beos*)
8246      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8247	allow_undefined_flag=unsupported
8248	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8249	# support --undefined.  This deserves some investigation.  FIXME
8250	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8251      else
8252	ld_shlibs=no
8253      fi
8254      ;;
8255
8256    cygwin* | mingw* | pw32* | cegcc*)
8257      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8258      # as there is no search path for DLLs.
8259      hardcode_libdir_flag_spec='-L$libdir'
8260      allow_undefined_flag=unsupported
8261      always_export_symbols=no
8262      enable_shared_with_static_runtimes=yes
8263      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8264
8265      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8266        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8267	# If the export-symbols file already is a .def file (1st line
8268	# is EXPORTS), use it as is; otherwise, prepend...
8269	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8270	  cp $export_symbols $output_objdir/$soname.def;
8271	else
8272	  echo EXPORTS > $output_objdir/$soname.def;
8273	  cat $export_symbols >> $output_objdir/$soname.def;
8274	fi~
8275	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8276      else
8277	ld_shlibs=no
8278      fi
8279      ;;
8280
8281    interix[3-9]*)
8282      hardcode_direct=no
8283      hardcode_shlibpath_var=no
8284      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8285      export_dynamic_flag_spec='${wl}-E'
8286      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8287      # Instead, shared libraries are loaded at an image base (0x10000000 by
8288      # default) and relocated if they conflict, which is a slow very memory
8289      # consuming and fragmenting process.  To avoid this, we pick a random,
8290      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8291      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8292      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8293      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'
8294      ;;
8295
8296    gnu* | linux* | tpf* | k*bsd*-gnu)
8297      tmp_diet=no
8298      if test "$host_os" = linux-dietlibc; then
8299	case $cc_basename in
8300	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8301	esac
8302      fi
8303      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8304	 && test "$tmp_diet" = no
8305      then
8306	tmp_addflag=
8307	tmp_sharedflag='-shared'
8308	case $cc_basename,$host_cpu in
8309        pgcc*)				# Portland Group C compiler
8310	  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'
8311	  tmp_addflag=' $pic_flag'
8312	  ;;
8313	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8314	  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'
8315	  tmp_addflag=' $pic_flag -Mnomain' ;;
8316	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8317	  tmp_addflag=' -i_dynamic' ;;
8318	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8319	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8320	ifc* | ifort*)			# Intel Fortran compiler
8321	  tmp_addflag=' -nofor_main' ;;
8322	lf95*)				# Lahey Fortran 8.1
8323	  whole_archive_flag_spec=
8324	  tmp_sharedflag='--shared' ;;
8325	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8326	  tmp_sharedflag='-qmkshrobj'
8327	  tmp_addflag= ;;
8328	esac
8329	case `$CC -V 2>&1 | sed 5q` in
8330	*Sun\ C*)			# Sun C 5.9
8331	  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'
8332	  compiler_needs_object=yes
8333	  tmp_sharedflag='-G' ;;
8334	*Sun\ F*)			# Sun Fortran 8.3
8335	  tmp_sharedflag='-G' ;;
8336	esac
8337	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8338
8339        if test "x$supports_anon_versioning" = xyes; then
8340          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8341	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8342	    echo "local: *; };" >> $output_objdir/$libname.ver~
8343	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8344        fi
8345
8346	case $cc_basename in
8347	xlf*)
8348	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8349	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8350	  hardcode_libdir_flag_spec=
8351	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8352	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8353	  if test "x$supports_anon_versioning" = xyes; then
8354	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8355	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8356	      echo "local: *; };" >> $output_objdir/$libname.ver~
8357	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8358	  fi
8359	  ;;
8360	esac
8361      else
8362        ld_shlibs=no
8363      fi
8364      ;;
8365
8366    netbsd*)
8367      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8368	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8369	wlarc=
8370      else
8371	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8372	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8373      fi
8374      ;;
8375
8376    solaris*)
8377      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8378	ld_shlibs=no
8379	cat <<_LT_EOF 1>&2
8380
8381*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8382*** create shared libraries on Solaris systems.  Therefore, libtool
8383*** is disabling shared libraries support.  We urge you to upgrade GNU
8384*** binutils to release 2.9.1 or newer.  Another option is to modify
8385*** your PATH or compiler configuration so that the native linker is
8386*** used, and then restart.
8387
8388_LT_EOF
8389      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8390	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8391	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8392      else
8393	ld_shlibs=no
8394      fi
8395      ;;
8396
8397    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8398      case `$LD -v 2>&1` in
8399        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8400	ld_shlibs=no
8401	cat <<_LT_EOF 1>&2
8402
8403*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8404*** reliably create shared libraries on SCO systems.  Therefore, libtool
8405*** is disabling shared libraries support.  We urge you to upgrade GNU
8406*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8407*** your PATH or compiler configuration so that the native linker is
8408*** used, and then restart.
8409
8410_LT_EOF
8411	;;
8412	*)
8413	  # For security reasons, it is highly recommended that you always
8414	  # use absolute paths for naming shared libraries, and exclude the
8415	  # DT_RUNPATH tag from executables and libraries.  But doing so
8416	  # requires that you compile everything twice, which is a pain.
8417	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8418	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8419	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8420	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8421	  else
8422	    ld_shlibs=no
8423	  fi
8424	;;
8425      esac
8426      ;;
8427
8428    sunos4*)
8429      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8430      wlarc=
8431      hardcode_direct=yes
8432      hardcode_shlibpath_var=no
8433      ;;
8434
8435    *)
8436      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8437	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8438	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8439      else
8440	ld_shlibs=no
8441      fi
8442      ;;
8443    esac
8444
8445    if test "$ld_shlibs" = no; then
8446      runpath_var=
8447      hardcode_libdir_flag_spec=
8448      export_dynamic_flag_spec=
8449      whole_archive_flag_spec=
8450    fi
8451  else
8452    # PORTME fill in a description of your system's linker (not GNU ld)
8453    case $host_os in
8454    aix3*)
8455      allow_undefined_flag=unsupported
8456      always_export_symbols=yes
8457      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'
8458      # Note: this linker hardcodes the directories in LIBPATH if there
8459      # are no directories specified by -L.
8460      hardcode_minus_L=yes
8461      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8462	# Neither direct hardcoding nor static linking is supported with a
8463	# broken collect2.
8464	hardcode_direct=unsupported
8465      fi
8466      ;;
8467
8468    aix[4-9]*)
8469      if test "$host_cpu" = ia64; then
8470	# On IA64, the linker does run time linking by default, so we don't
8471	# have to do anything special.
8472	aix_use_runtimelinking=no
8473	exp_sym_flag='-Bexport'
8474	no_entry_flag=""
8475      else
8476	# If we're using GNU nm, then we don't want the "-C" option.
8477	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8478	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8479	  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'
8480	else
8481	  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'
8482	fi
8483	aix_use_runtimelinking=no
8484
8485	# Test if we are trying to use run time linking or normal
8486	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8487	# need to do runtime linking.
8488	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8489	  for ld_flag in $LDFLAGS; do
8490	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8491	    aix_use_runtimelinking=yes
8492	    break
8493	  fi
8494	  done
8495	  ;;
8496	esac
8497
8498	exp_sym_flag='-bexport'
8499	no_entry_flag='-bnoentry'
8500      fi
8501
8502      # When large executables or shared objects are built, AIX ld can
8503      # have problems creating the table of contents.  If linking a library
8504      # or program results in "error TOC overflow" add -mminimal-toc to
8505      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8506      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8507
8508      archive_cmds=''
8509      hardcode_direct=yes
8510      hardcode_direct_absolute=yes
8511      hardcode_libdir_separator=':'
8512      link_all_deplibs=yes
8513      file_list_spec='${wl}-f,'
8514
8515      if test "$GCC" = yes; then
8516	case $host_os in aix4.[012]|aix4.[012].*)
8517	# We only want to do this on AIX 4.2 and lower, the check
8518	# below for broken collect2 doesn't work under 4.3+
8519	  collect2name=`${CC} -print-prog-name=collect2`
8520	  if test -f "$collect2name" &&
8521	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8522	  then
8523	  # We have reworked collect2
8524	  :
8525	  else
8526	  # We have old collect2
8527	  hardcode_direct=unsupported
8528	  # It fails to find uninstalled libraries when the uninstalled
8529	  # path is not listed in the libpath.  Setting hardcode_minus_L
8530	  # to unsupported forces relinking
8531	  hardcode_minus_L=yes
8532	  hardcode_libdir_flag_spec='-L$libdir'
8533	  hardcode_libdir_separator=
8534	  fi
8535	  ;;
8536	esac
8537	shared_flag='-shared'
8538	if test "$aix_use_runtimelinking" = yes; then
8539	  shared_flag="$shared_flag "'${wl}-G'
8540	fi
8541      else
8542	# not using gcc
8543	if test "$host_cpu" = ia64; then
8544	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8545	# chokes on -Wl,-G. The following line is correct:
8546	  shared_flag='-G'
8547	else
8548	  if test "$aix_use_runtimelinking" = yes; then
8549	    shared_flag='${wl}-G'
8550	  else
8551	    shared_flag='${wl}-bM:SRE'
8552	  fi
8553	fi
8554      fi
8555
8556      export_dynamic_flag_spec='${wl}-bexpall'
8557      # It seems that -bexpall does not export symbols beginning with
8558      # underscore (_), so it is better to generate a list of symbols to export.
8559      always_export_symbols=yes
8560      if test "$aix_use_runtimelinking" = yes; then
8561	# Warning - without using the other runtime loading flags (-brtl),
8562	# -berok will link without error, but may produce a broken library.
8563	allow_undefined_flag='-berok'
8564        # Determine the default libpath from the value encoded in an
8565        # empty executable.
8566        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567/* end confdefs.h.  */
8568
8569int
8570main ()
8571{
8572
8573  ;
8574  return 0;
8575}
8576_ACEOF
8577if ac_fn_c_try_link "$LINENO"; then :
8578
8579lt_aix_libpath_sed='
8580    /Import File Strings/,/^$/ {
8581	/^0/ {
8582	    s/^0  *\(.*\)$/\1/
8583	    p
8584	}
8585    }'
8586aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8587# Check for a 64-bit object if we didn't find anything.
8588if test -z "$aix_libpath"; then
8589  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8590fi
8591fi
8592rm -f core conftest.err conftest.$ac_objext \
8593    conftest$ac_exeext conftest.$ac_ext
8594if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8595
8596        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8597        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"
8598      else
8599	if test "$host_cpu" = ia64; then
8600	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8601	  allow_undefined_flag="-z nodefs"
8602	  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"
8603	else
8604	 # Determine the default libpath from the value encoded in an
8605	 # empty executable.
8606	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607/* end confdefs.h.  */
8608
8609int
8610main ()
8611{
8612
8613  ;
8614  return 0;
8615}
8616_ACEOF
8617if ac_fn_c_try_link "$LINENO"; then :
8618
8619lt_aix_libpath_sed='
8620    /Import File Strings/,/^$/ {
8621	/^0/ {
8622	    s/^0  *\(.*\)$/\1/
8623	    p
8624	}
8625    }'
8626aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8627# Check for a 64-bit object if we didn't find anything.
8628if test -z "$aix_libpath"; then
8629  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8630fi
8631fi
8632rm -f core conftest.err conftest.$ac_objext \
8633    conftest$ac_exeext conftest.$ac_ext
8634if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8635
8636	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8637	  # Warning - without using the other run time loading flags,
8638	  # -berok will link without error, but may produce a broken library.
8639	  no_undefined_flag=' ${wl}-bernotok'
8640	  allow_undefined_flag=' ${wl}-berok'
8641	  # Exported symbols can be pulled into shared objects from archives
8642	  whole_archive_flag_spec='$convenience'
8643	  archive_cmds_need_lc=yes
8644	  # This is similar to how AIX traditionally builds its shared libraries.
8645	  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'
8646	fi
8647      fi
8648      ;;
8649
8650    amigaos*)
8651      case $host_cpu in
8652      powerpc)
8653            # see comment about AmigaOS4 .so support
8654            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8655            archive_expsym_cmds=''
8656        ;;
8657      m68k)
8658            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)'
8659            hardcode_libdir_flag_spec='-L$libdir'
8660            hardcode_minus_L=yes
8661        ;;
8662      esac
8663      ;;
8664
8665    bsdi[45]*)
8666      export_dynamic_flag_spec=-rdynamic
8667      ;;
8668
8669    cygwin* | mingw* | pw32* | cegcc*)
8670      # When not using gcc, we currently assume that we are using
8671      # Microsoft Visual C++.
8672      # hardcode_libdir_flag_spec is actually meaningless, as there is
8673      # no search path for DLLs.
8674      hardcode_libdir_flag_spec=' '
8675      allow_undefined_flag=unsupported
8676      # Tell ltmain to make .lib files, not .a files.
8677      libext=lib
8678      # Tell ltmain to make .dll files, not .so files.
8679      shrext_cmds=".dll"
8680      # FIXME: Setting linknames here is a bad hack.
8681      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8682      # The linker will automatically build a .lib file if we build a DLL.
8683      old_archive_from_new_cmds='true'
8684      # FIXME: Should let the user specify the lib program.
8685      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8686      fix_srcfile_path='`cygpath -w "$srcfile"`'
8687      enable_shared_with_static_runtimes=yes
8688      ;;
8689
8690    darwin* | rhapsody*)
8691
8692
8693  archive_cmds_need_lc=no
8694  hardcode_direct=no
8695  hardcode_automatic=yes
8696  hardcode_shlibpath_var=unsupported
8697  whole_archive_flag_spec=''
8698  link_all_deplibs=yes
8699  allow_undefined_flag="$_lt_dar_allow_undefined"
8700  case $cc_basename in
8701     ifort*) _lt_dar_can_shared=yes ;;
8702     *) _lt_dar_can_shared=$GCC ;;
8703  esac
8704  if test "$_lt_dar_can_shared" = "yes"; then
8705    output_verbose_link_cmd=echo
8706    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8707    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8708    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}"
8709    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}"
8710
8711  else
8712  ld_shlibs=no
8713  fi
8714
8715      ;;
8716
8717    dgux*)
8718      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8719      hardcode_libdir_flag_spec='-L$libdir'
8720      hardcode_shlibpath_var=no
8721      ;;
8722
8723    freebsd1*)
8724      ld_shlibs=no
8725      ;;
8726
8727    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8728    # support.  Future versions do this automatically, but an explicit c++rt0.o
8729    # does not break anything, and helps significantly (at the cost of a little
8730    # extra space).
8731    freebsd2.2*)
8732      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8733      hardcode_libdir_flag_spec='-R$libdir'
8734      hardcode_direct=yes
8735      hardcode_shlibpath_var=no
8736      ;;
8737
8738    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8739    freebsd2*)
8740      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8741      hardcode_direct=yes
8742      hardcode_minus_L=yes
8743      hardcode_shlibpath_var=no
8744      ;;
8745
8746    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8747    freebsd* | dragonfly*)
8748      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8749      hardcode_libdir_flag_spec='-R$libdir'
8750      hardcode_direct=yes
8751      hardcode_shlibpath_var=no
8752      ;;
8753
8754    hpux9*)
8755      if test "$GCC" = yes; then
8756	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'
8757      else
8758	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'
8759      fi
8760      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8761      hardcode_libdir_separator=:
8762      hardcode_direct=yes
8763
8764      # hardcode_minus_L: Not really in the search PATH,
8765      # but as the default location of the library.
8766      hardcode_minus_L=yes
8767      export_dynamic_flag_spec='${wl}-E'
8768      ;;
8769
8770    hpux10*)
8771      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8772	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8773      else
8774	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8775      fi
8776      if test "$with_gnu_ld" = no; then
8777	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8778	hardcode_libdir_flag_spec_ld='+b $libdir'
8779	hardcode_libdir_separator=:
8780	hardcode_direct=yes
8781	hardcode_direct_absolute=yes
8782	export_dynamic_flag_spec='${wl}-E'
8783	# hardcode_minus_L: Not really in the search PATH,
8784	# but as the default location of the library.
8785	hardcode_minus_L=yes
8786      fi
8787      ;;
8788
8789    hpux11*)
8790      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8791	case $host_cpu in
8792	hppa*64*)
8793	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8794	  ;;
8795	ia64*)
8796	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8797	  ;;
8798	*)
8799	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8800	  ;;
8801	esac
8802      else
8803	case $host_cpu in
8804	hppa*64*)
8805	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8806	  ;;
8807	ia64*)
8808	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8809	  ;;
8810	*)
8811	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8812	  ;;
8813	esac
8814      fi
8815      if test "$with_gnu_ld" = no; then
8816	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8817	hardcode_libdir_separator=:
8818
8819	case $host_cpu in
8820	hppa*64*|ia64*)
8821	  hardcode_direct=no
8822	  hardcode_shlibpath_var=no
8823	  ;;
8824	*)
8825	  hardcode_direct=yes
8826	  hardcode_direct_absolute=yes
8827	  export_dynamic_flag_spec='${wl}-E'
8828
8829	  # hardcode_minus_L: Not really in the search PATH,
8830	  # but as the default location of the library.
8831	  hardcode_minus_L=yes
8832	  ;;
8833	esac
8834      fi
8835      ;;
8836
8837    irix5* | irix6* | nonstopux*)
8838      if test "$GCC" = yes; then
8839	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'
8840	# Try to use the -exported_symbol ld option, if it does not
8841	# work, assume that -exports_file does not work either and
8842	# implicitly export all symbols.
8843        save_LDFLAGS="$LDFLAGS"
8844        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8845        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846/* end confdefs.h.  */
8847int foo (void) { return 0; }
8848_ACEOF
8849if ac_fn_c_try_link "$LINENO"; then :
8850
8851          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'
8852
8853fi
8854rm -f core conftest.err conftest.$ac_objext \
8855    conftest$ac_exeext conftest.$ac_ext
8856        LDFLAGS="$save_LDFLAGS"
8857      else
8858	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'
8859	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'
8860      fi
8861      archive_cmds_need_lc='no'
8862      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8863      hardcode_libdir_separator=:
8864      inherit_rpath=yes
8865      link_all_deplibs=yes
8866      ;;
8867
8868    netbsd*)
8869      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8870	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8871      else
8872	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8873      fi
8874      hardcode_libdir_flag_spec='-R$libdir'
8875      hardcode_direct=yes
8876      hardcode_shlibpath_var=no
8877      ;;
8878
8879    newsos6)
8880      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8881      hardcode_direct=yes
8882      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8883      hardcode_libdir_separator=:
8884      hardcode_shlibpath_var=no
8885      ;;
8886
8887    *nto* | *qnx*)
8888      ;;
8889
8890    openbsd*)
8891      if test -f /usr/libexec/ld.so; then
8892	hardcode_direct=yes
8893	hardcode_shlibpath_var=no
8894	hardcode_direct_absolute=yes
8895	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8896	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8897	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8898	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8899	  export_dynamic_flag_spec='${wl}-E'
8900	else
8901	  case $host_os in
8902	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8903	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8904	     hardcode_libdir_flag_spec='-R$libdir'
8905	     ;;
8906	   *)
8907	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8908	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8909	     ;;
8910	  esac
8911	fi
8912      else
8913	ld_shlibs=no
8914      fi
8915      ;;
8916
8917    os2*)
8918      hardcode_libdir_flag_spec='-L$libdir'
8919      hardcode_minus_L=yes
8920      allow_undefined_flag=unsupported
8921      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'
8922      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8923      ;;
8924
8925    osf3*)
8926      if test "$GCC" = yes; then
8927	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8928	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'
8929      else
8930	allow_undefined_flag=' -expect_unresolved \*'
8931	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'
8932      fi
8933      archive_cmds_need_lc='no'
8934      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8935      hardcode_libdir_separator=:
8936      ;;
8937
8938    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8939      if test "$GCC" = yes; then
8940	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8941	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'
8942	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8943      else
8944	allow_undefined_flag=' -expect_unresolved \*'
8945	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'
8946	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~
8947	$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'
8948
8949	# Both c and cxx compiler support -rpath directly
8950	hardcode_libdir_flag_spec='-rpath $libdir'
8951      fi
8952      archive_cmds_need_lc='no'
8953      hardcode_libdir_separator=:
8954      ;;
8955
8956    solaris*)
8957      no_undefined_flag=' -z defs'
8958      if test "$GCC" = yes; then
8959	wlarc='${wl}'
8960	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8961	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8962	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8963      else
8964	case `$CC -V 2>&1` in
8965	*"Compilers 5.0"*)
8966	  wlarc=''
8967	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8968	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8969	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8970	  ;;
8971	*)
8972	  wlarc='${wl}'
8973	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8974	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8975	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8976	  ;;
8977	esac
8978      fi
8979      hardcode_libdir_flag_spec='-R$libdir'
8980      hardcode_shlibpath_var=no
8981      case $host_os in
8982      solaris2.[0-5] | solaris2.[0-5].*) ;;
8983      *)
8984	# The compiler driver will combine and reorder linker options,
8985	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8986	# but is careful enough not to reorder.
8987	# Supported since Solaris 2.6 (maybe 2.5.1?)
8988	if test "$GCC" = yes; then
8989	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8990	else
8991	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8992	fi
8993	;;
8994      esac
8995      link_all_deplibs=yes
8996      ;;
8997
8998    sunos4*)
8999      if test "x$host_vendor" = xsequent; then
9000	# Use $CC to link under sequent, because it throws in some extra .o
9001	# files that make .init and .fini sections work.
9002	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9003      else
9004	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9005      fi
9006      hardcode_libdir_flag_spec='-L$libdir'
9007      hardcode_direct=yes
9008      hardcode_minus_L=yes
9009      hardcode_shlibpath_var=no
9010      ;;
9011
9012    sysv4)
9013      case $host_vendor in
9014	sni)
9015	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016	  hardcode_direct=yes # is this really true???
9017	;;
9018	siemens)
9019	  ## LD is ld it makes a PLAMLIB
9020	  ## CC just makes a GrossModule.
9021	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9022	  reload_cmds='$CC -r -o $output$reload_objs'
9023	  hardcode_direct=no
9024        ;;
9025	motorola)
9026	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9027	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9028	;;
9029      esac
9030      runpath_var='LD_RUN_PATH'
9031      hardcode_shlibpath_var=no
9032      ;;
9033
9034    sysv4.3*)
9035      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9036      hardcode_shlibpath_var=no
9037      export_dynamic_flag_spec='-Bexport'
9038      ;;
9039
9040    sysv4*MP*)
9041      if test -d /usr/nec; then
9042	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9043	hardcode_shlibpath_var=no
9044	runpath_var=LD_RUN_PATH
9045	hardcode_runpath_var=yes
9046	ld_shlibs=yes
9047      fi
9048      ;;
9049
9050    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9051      no_undefined_flag='${wl}-z,text'
9052      archive_cmds_need_lc=no
9053      hardcode_shlibpath_var=no
9054      runpath_var='LD_RUN_PATH'
9055
9056      if test "$GCC" = yes; then
9057	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9058	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9059      else
9060	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9061	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9062      fi
9063      ;;
9064
9065    sysv5* | sco3.2v5* | sco5v6*)
9066      # Note: We can NOT use -z defs as we might desire, because we do not
9067      # link with -lc, and that would cause any symbols used from libc to
9068      # always be unresolved, which means just about no library would
9069      # ever link correctly.  If we're not using GNU ld we use -z text
9070      # though, which does catch some bad symbols but isn't as heavy-handed
9071      # as -z defs.
9072      no_undefined_flag='${wl}-z,text'
9073      allow_undefined_flag='${wl}-z,nodefs'
9074      archive_cmds_need_lc=no
9075      hardcode_shlibpath_var=no
9076      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9077      hardcode_libdir_separator=':'
9078      link_all_deplibs=yes
9079      export_dynamic_flag_spec='${wl}-Bexport'
9080      runpath_var='LD_RUN_PATH'
9081
9082      if test "$GCC" = yes; then
9083	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9084	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9085      else
9086	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9087	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9088      fi
9089      ;;
9090
9091    uts4*)
9092      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9093      hardcode_libdir_flag_spec='-L$libdir'
9094      hardcode_shlibpath_var=no
9095      ;;
9096
9097    *)
9098      ld_shlibs=no
9099      ;;
9100    esac
9101
9102    if test x$host_vendor = xsni; then
9103      case $host in
9104      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9105	export_dynamic_flag_spec='${wl}-Blargedynsym'
9106	;;
9107      esac
9108    fi
9109  fi
9110
9111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9112$as_echo "$ld_shlibs" >&6; }
9113test "$ld_shlibs" = no && can_build_shared=no
9114
9115with_gnu_ld=$with_gnu_ld
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131#
9132# Do we need to explicitly link libc?
9133#
9134case "x$archive_cmds_need_lc" in
9135x|xyes)
9136  # Assume -lc should be added
9137  archive_cmds_need_lc=yes
9138
9139  if test "$enable_shared" = yes && test "$GCC" = yes; then
9140    case $archive_cmds in
9141    *'~'*)
9142      # FIXME: we may have to deal with multi-command sequences.
9143      ;;
9144    '$CC '*)
9145      # Test whether the compiler implicitly links with -lc since on some
9146      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9147      # to ld, don't add -lc before -lgcc.
9148      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9149$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9150      $RM conftest*
9151      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9152
9153      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9154  (eval $ac_compile) 2>&5
9155  ac_status=$?
9156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9157  test $ac_status = 0; } 2>conftest.err; then
9158        soname=conftest
9159        lib=conftest
9160        libobjs=conftest.$ac_objext
9161        deplibs=
9162        wl=$lt_prog_compiler_wl
9163	pic_flag=$lt_prog_compiler_pic
9164        compiler_flags=-v
9165        linker_flags=-v
9166        verstring=
9167        output_objdir=.
9168        libname=conftest
9169        lt_save_allow_undefined_flag=$allow_undefined_flag
9170        allow_undefined_flag=
9171        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9172  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9173  ac_status=$?
9174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9175  test $ac_status = 0; }
9176        then
9177	  archive_cmds_need_lc=no
9178        else
9179	  archive_cmds_need_lc=yes
9180        fi
9181        allow_undefined_flag=$lt_save_allow_undefined_flag
9182      else
9183        cat conftest.err 1>&5
9184      fi
9185      $RM conftest*
9186      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9187$as_echo "$archive_cmds_need_lc" >&6; }
9188      ;;
9189    esac
9190  fi
9191  ;;
9192esac
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9351$as_echo_n "checking dynamic linker characteristics... " >&6; }
9352
9353if test "$GCC" = yes; then
9354  case $host_os in
9355    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9356    *) lt_awk_arg="/^libraries:/" ;;
9357  esac
9358  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9359  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9360    # if the path contains ";" then we assume it to be the separator
9361    # otherwise default to the standard path separator (i.e. ":") - it is
9362    # assumed that no part of a normal pathname contains ";" but that should
9363    # okay in the real world where ";" in dirpaths is itself problematic.
9364    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9365  else
9366    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9367  fi
9368  # Ok, now we have the path, separated by spaces, we can step through it
9369  # and add multilib dir if necessary.
9370  lt_tmp_lt_search_path_spec=
9371  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9372  for lt_sys_path in $lt_search_path_spec; do
9373    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9374      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9375    else
9376      test -d "$lt_sys_path" && \
9377	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9378    fi
9379  done
9380  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9381BEGIN {RS=" "; FS="/|\n";} {
9382  lt_foo="";
9383  lt_count=0;
9384  for (lt_i = NF; lt_i > 0; lt_i--) {
9385    if ($lt_i != "" && $lt_i != ".") {
9386      if ($lt_i == "..") {
9387        lt_count++;
9388      } else {
9389        if (lt_count == 0) {
9390          lt_foo="/" $lt_i lt_foo;
9391        } else {
9392          lt_count--;
9393        }
9394      }
9395    }
9396  }
9397  if (lt_foo != "") { lt_freq[lt_foo]++; }
9398  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9399}'`
9400  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9401else
9402  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9403fi
9404library_names_spec=
9405libname_spec='lib$name'
9406soname_spec=
9407shrext_cmds=".so"
9408postinstall_cmds=
9409postuninstall_cmds=
9410finish_cmds=
9411finish_eval=
9412shlibpath_var=
9413shlibpath_overrides_runpath=unknown
9414version_type=none
9415dynamic_linker="$host_os ld.so"
9416sys_lib_dlsearch_path_spec="/lib /usr/lib"
9417need_lib_prefix=unknown
9418hardcode_into_libs=no
9419
9420# when you set need_version to no, make sure it does not cause -set_version
9421# flags to be left without arguments
9422need_version=unknown
9423
9424case $host_os in
9425aix3*)
9426  version_type=linux
9427  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9428  shlibpath_var=LIBPATH
9429
9430  # AIX 3 has no versioning support, so we append a major version to the name.
9431  soname_spec='${libname}${release}${shared_ext}$major'
9432  ;;
9433
9434aix[4-9]*)
9435  version_type=linux
9436  need_lib_prefix=no
9437  need_version=no
9438  hardcode_into_libs=yes
9439  if test "$host_cpu" = ia64; then
9440    # AIX 5 supports IA64
9441    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9442    shlibpath_var=LD_LIBRARY_PATH
9443  else
9444    # With GCC up to 2.95.x, collect2 would create an import file
9445    # for dependence libraries.  The import file would start with
9446    # the line `#! .'.  This would cause the generated library to
9447    # depend on `.', always an invalid library.  This was fixed in
9448    # development snapshots of GCC prior to 3.0.
9449    case $host_os in
9450      aix4 | aix4.[01] | aix4.[01].*)
9451      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9452	   echo ' yes '
9453	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9454	:
9455      else
9456	can_build_shared=no
9457      fi
9458      ;;
9459    esac
9460    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9461    # soname into executable. Probably we can add versioning support to
9462    # collect2, so additional links can be useful in future.
9463    if test "$aix_use_runtimelinking" = yes; then
9464      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9465      # instead of lib<name>.a to let people know that these are not
9466      # typical AIX shared libraries.
9467      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9468    else
9469      # We preserve .a as extension for shared libraries through AIX4.2
9470      # and later when we are not doing run time linking.
9471      library_names_spec='${libname}${release}.a $libname.a'
9472      soname_spec='${libname}${release}${shared_ext}$major'
9473    fi
9474    shlibpath_var=LIBPATH
9475  fi
9476  ;;
9477
9478amigaos*)
9479  case $host_cpu in
9480  powerpc)
9481    # Since July 2007 AmigaOS4 officially supports .so libraries.
9482    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9483    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484    ;;
9485  m68k)
9486    library_names_spec='$libname.ixlibrary $libname.a'
9487    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9488    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'
9489    ;;
9490  esac
9491  ;;
9492
9493beos*)
9494  library_names_spec='${libname}${shared_ext}'
9495  dynamic_linker="$host_os ld.so"
9496  shlibpath_var=LIBRARY_PATH
9497  ;;
9498
9499bsdi[45]*)
9500  version_type=linux
9501  need_version=no
9502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503  soname_spec='${libname}${release}${shared_ext}$major'
9504  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9505  shlibpath_var=LD_LIBRARY_PATH
9506  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9507  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9508  # the default ld.so.conf also contains /usr/contrib/lib and
9509  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9510  # libtool to hard-code these into programs
9511  ;;
9512
9513cygwin* | mingw* | pw32* | cegcc*)
9514  version_type=windows
9515  shrext_cmds=".dll"
9516  need_version=no
9517  need_lib_prefix=no
9518
9519  case $GCC,$host_os in
9520  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9521    library_names_spec='$libname.dll.a'
9522    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9523    postinstall_cmds='base_file=`basename \${file}`~
9524      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9525      dldir=$destdir/`dirname \$dlpath`~
9526      test -d \$dldir || mkdir -p \$dldir~
9527      $install_prog $dir/$dlname \$dldir/$dlname~
9528      chmod a+x \$dldir/$dlname~
9529      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9530        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9531      fi'
9532    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9533      dlpath=$dir/\$dldll~
9534       $RM \$dlpath'
9535    shlibpath_overrides_runpath=yes
9536
9537    case $host_os in
9538    cygwin*)
9539      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9540      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9541      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9542      ;;
9543    mingw* | cegcc*)
9544      # MinGW DLLs use traditional 'lib' prefix
9545      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9546      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9547      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9548        # It is most probably a Windows format PATH printed by
9549        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9550        # path with ; separators, and with drive letters. We can handle the
9551        # drive letters (cygwin fileutils understands them), so leave them,
9552        # especially as we might pass files found there to a mingw objdump,
9553        # which wouldn't understand a cygwinified path. Ahh.
9554        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9555      else
9556        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9557      fi
9558      ;;
9559    pw32*)
9560      # pw32 DLLs use 'pw' prefix rather than 'lib'
9561      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9562      ;;
9563    esac
9564    ;;
9565
9566  *)
9567    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9568    ;;
9569  esac
9570  dynamic_linker='Win32 ld.exe'
9571  # FIXME: first we should search . and the directory the executable is in
9572  shlibpath_var=PATH
9573  ;;
9574
9575darwin* | rhapsody*)
9576  dynamic_linker="$host_os dyld"
9577  version_type=darwin
9578  need_lib_prefix=no
9579  need_version=no
9580  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9581  soname_spec='${libname}${release}${major}$shared_ext'
9582  shlibpath_overrides_runpath=yes
9583  shlibpath_var=DYLD_LIBRARY_PATH
9584  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9585
9586  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9587  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9588  ;;
9589
9590dgux*)
9591  version_type=linux
9592  need_lib_prefix=no
9593  need_version=no
9594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9595  soname_spec='${libname}${release}${shared_ext}$major'
9596  shlibpath_var=LD_LIBRARY_PATH
9597  ;;
9598
9599freebsd1*)
9600  dynamic_linker=no
9601  ;;
9602
9603freebsd* | dragonfly*)
9604  # DragonFly does not have aout.  When/if they implement a new
9605  # versioning mechanism, adjust this.
9606  if test -x /usr/bin/objformat; then
9607    objformat=`/usr/bin/objformat`
9608  else
9609    case $host_os in
9610    freebsd[123]*) objformat=aout ;;
9611    *) objformat=elf ;;
9612    esac
9613  fi
9614  version_type=freebsd-$objformat
9615  case $version_type in
9616    freebsd-elf*)
9617      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9618      need_version=no
9619      need_lib_prefix=no
9620      ;;
9621    freebsd-*)
9622      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9623      need_version=yes
9624      ;;
9625  esac
9626  shlibpath_var=LD_LIBRARY_PATH
9627  case $host_os in
9628  freebsd2*)
9629    shlibpath_overrides_runpath=yes
9630    ;;
9631  freebsd3.[01]* | freebsdelf3.[01]*)
9632    shlibpath_overrides_runpath=yes
9633    hardcode_into_libs=yes
9634    ;;
9635  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9636  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9637    shlibpath_overrides_runpath=no
9638    hardcode_into_libs=yes
9639    ;;
9640  *) # from 4.6 on, and DragonFly
9641    shlibpath_overrides_runpath=yes
9642    hardcode_into_libs=yes
9643    ;;
9644  esac
9645  ;;
9646
9647gnu*)
9648  version_type=linux
9649  need_lib_prefix=no
9650  need_version=no
9651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9652  soname_spec='${libname}${release}${shared_ext}$major'
9653  shlibpath_var=LD_LIBRARY_PATH
9654  hardcode_into_libs=yes
9655  ;;
9656
9657hpux9* | hpux10* | hpux11*)
9658  # Give a soname corresponding to the major version so that dld.sl refuses to
9659  # link against other versions.
9660  version_type=sunos
9661  need_lib_prefix=no
9662  need_version=no
9663  case $host_cpu in
9664  ia64*)
9665    shrext_cmds='.so'
9666    hardcode_into_libs=yes
9667    dynamic_linker="$host_os dld.so"
9668    shlibpath_var=LD_LIBRARY_PATH
9669    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9670    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9671    soname_spec='${libname}${release}${shared_ext}$major'
9672    if test "X$HPUX_IA64_MODE" = X32; then
9673      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9674    else
9675      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9676    fi
9677    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9678    ;;
9679  hppa*64*)
9680    shrext_cmds='.sl'
9681    hardcode_into_libs=yes
9682    dynamic_linker="$host_os dld.sl"
9683    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9684    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9685    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9686    soname_spec='${libname}${release}${shared_ext}$major'
9687    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9688    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9689    ;;
9690  *)
9691    shrext_cmds='.sl'
9692    dynamic_linker="$host_os dld.sl"
9693    shlibpath_var=SHLIB_PATH
9694    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9695    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9696    soname_spec='${libname}${release}${shared_ext}$major'
9697    ;;
9698  esac
9699  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9700  postinstall_cmds='chmod 555 $lib'
9701  ;;
9702
9703interix[3-9]*)
9704  version_type=linux
9705  need_lib_prefix=no
9706  need_version=no
9707  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9708  soname_spec='${libname}${release}${shared_ext}$major'
9709  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9710  shlibpath_var=LD_LIBRARY_PATH
9711  shlibpath_overrides_runpath=no
9712  hardcode_into_libs=yes
9713  ;;
9714
9715irix5* | irix6* | nonstopux*)
9716  case $host_os in
9717    nonstopux*) version_type=nonstopux ;;
9718    *)
9719	if test "$lt_cv_prog_gnu_ld" = yes; then
9720		version_type=linux
9721	else
9722		version_type=irix
9723	fi ;;
9724  esac
9725  need_lib_prefix=no
9726  need_version=no
9727  soname_spec='${libname}${release}${shared_ext}$major'
9728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9729  case $host_os in
9730  irix5* | nonstopux*)
9731    libsuff= shlibsuff=
9732    ;;
9733  *)
9734    case $LD in # libtool.m4 will add one of these switches to LD
9735    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9736      libsuff= shlibsuff= libmagic=32-bit;;
9737    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9738      libsuff=32 shlibsuff=N32 libmagic=N32;;
9739    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9740      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9741    *) libsuff= shlibsuff= libmagic=never-match;;
9742    esac
9743    ;;
9744  esac
9745  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9746  shlibpath_overrides_runpath=no
9747  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9748  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9749  hardcode_into_libs=yes
9750  ;;
9751
9752# No shared lib support for Linux oldld, aout, or coff.
9753linux*oldld* | linux*aout* | linux*coff*)
9754  dynamic_linker=no
9755  ;;
9756
9757# This must be Linux ELF.
9758linux* | k*bsd*-gnu)
9759  version_type=linux
9760  need_lib_prefix=no
9761  need_version=no
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9765  shlibpath_var=LD_LIBRARY_PATH
9766  shlibpath_overrides_runpath=no
9767  # Some binutils ld are patched to set DT_RUNPATH
9768  save_LDFLAGS=$LDFLAGS
9769  save_libdir=$libdir
9770  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9771       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773/* end confdefs.h.  */
9774
9775int
9776main ()
9777{
9778
9779  ;
9780  return 0;
9781}
9782_ACEOF
9783if ac_fn_c_try_link "$LINENO"; then :
9784  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9785  shlibpath_overrides_runpath=yes
9786fi
9787fi
9788rm -f core conftest.err conftest.$ac_objext \
9789    conftest$ac_exeext conftest.$ac_ext
9790  LDFLAGS=$save_LDFLAGS
9791  libdir=$save_libdir
9792
9793  # This implies no fast_install, which is unacceptable.
9794  # Some rework will be needed to allow for fast_install
9795  # before this can be enabled.
9796  hardcode_into_libs=yes
9797
9798  # Append ld.so.conf contents to the search path
9799  if test -f /etc/ld.so.conf; then
9800    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' ' '`
9801    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9802  fi
9803
9804  # We used to test for /lib/ld.so.1 and disable shared libraries on
9805  # powerpc, because MkLinux only supported shared libraries with the
9806  # GNU dynamic linker.  Since this was broken with cross compilers,
9807  # most powerpc-linux boxes support dynamic linking these days and
9808  # people can always --disable-shared, the test was removed, and we
9809  # assume the GNU/Linux dynamic linker is in use.
9810  dynamic_linker='GNU/Linux ld.so'
9811  ;;
9812
9813netbsd*)
9814  version_type=sunos
9815  need_lib_prefix=no
9816  need_version=no
9817  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9818    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9819    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9820    dynamic_linker='NetBSD (a.out) ld.so'
9821  else
9822    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9823    soname_spec='${libname}${release}${shared_ext}$major'
9824    dynamic_linker='NetBSD ld.elf_so'
9825  fi
9826  shlibpath_var=LD_LIBRARY_PATH
9827  shlibpath_overrides_runpath=yes
9828  hardcode_into_libs=yes
9829  ;;
9830
9831newsos6)
9832  version_type=linux
9833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9834  shlibpath_var=LD_LIBRARY_PATH
9835  shlibpath_overrides_runpath=yes
9836  ;;
9837
9838*nto* | *qnx*)
9839  version_type=qnx
9840  need_lib_prefix=no
9841  need_version=no
9842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9843  soname_spec='${libname}${release}${shared_ext}$major'
9844  shlibpath_var=LD_LIBRARY_PATH
9845  shlibpath_overrides_runpath=no
9846  hardcode_into_libs=yes
9847  dynamic_linker='ldqnx.so'
9848  ;;
9849
9850openbsd*)
9851  version_type=sunos
9852  sys_lib_dlsearch_path_spec="/usr/lib"
9853  need_lib_prefix=no
9854  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9855  case $host_os in
9856    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9857    *)				need_version=no  ;;
9858  esac
9859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9860  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9861  shlibpath_var=LD_LIBRARY_PATH
9862  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9863    case $host_os in
9864      openbsd2.[89] | openbsd2.[89].*)
9865	shlibpath_overrides_runpath=no
9866	;;
9867      *)
9868	shlibpath_overrides_runpath=yes
9869	;;
9870      esac
9871  else
9872    shlibpath_overrides_runpath=yes
9873  fi
9874  ;;
9875
9876os2*)
9877  libname_spec='$name'
9878  shrext_cmds=".dll"
9879  need_lib_prefix=no
9880  library_names_spec='$libname${shared_ext} $libname.a'
9881  dynamic_linker='OS/2 ld.exe'
9882  shlibpath_var=LIBPATH
9883  ;;
9884
9885osf3* | osf4* | osf5*)
9886  version_type=osf
9887  need_lib_prefix=no
9888  need_version=no
9889  soname_spec='${libname}${release}${shared_ext}$major'
9890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9891  shlibpath_var=LD_LIBRARY_PATH
9892  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9893  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9894  ;;
9895
9896rdos*)
9897  dynamic_linker=no
9898  ;;
9899
9900solaris*)
9901  version_type=linux
9902  need_lib_prefix=no
9903  need_version=no
9904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9905  soname_spec='${libname}${release}${shared_ext}$major'
9906  shlibpath_var=LD_LIBRARY_PATH
9907  shlibpath_overrides_runpath=yes
9908  hardcode_into_libs=yes
9909  # ldd complains unless libraries are executable
9910  postinstall_cmds='chmod +x $lib'
9911  ;;
9912
9913sunos4*)
9914  version_type=sunos
9915  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9916  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9917  shlibpath_var=LD_LIBRARY_PATH
9918  shlibpath_overrides_runpath=yes
9919  if test "$with_gnu_ld" = yes; then
9920    need_lib_prefix=no
9921  fi
9922  need_version=yes
9923  ;;
9924
9925sysv4 | sysv4.3*)
9926  version_type=linux
9927  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928  soname_spec='${libname}${release}${shared_ext}$major'
9929  shlibpath_var=LD_LIBRARY_PATH
9930  case $host_vendor in
9931    sni)
9932      shlibpath_overrides_runpath=no
9933      need_lib_prefix=no
9934      runpath_var=LD_RUN_PATH
9935      ;;
9936    siemens)
9937      need_lib_prefix=no
9938      ;;
9939    motorola)
9940      need_lib_prefix=no
9941      need_version=no
9942      shlibpath_overrides_runpath=no
9943      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9944      ;;
9945  esac
9946  ;;
9947
9948sysv4*MP*)
9949  if test -d /usr/nec ;then
9950    version_type=linux
9951    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9952    soname_spec='$libname${shared_ext}.$major'
9953    shlibpath_var=LD_LIBRARY_PATH
9954  fi
9955  ;;
9956
9957sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9958  version_type=freebsd-elf
9959  need_lib_prefix=no
9960  need_version=no
9961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9962  soname_spec='${libname}${release}${shared_ext}$major'
9963  shlibpath_var=LD_LIBRARY_PATH
9964  shlibpath_overrides_runpath=yes
9965  hardcode_into_libs=yes
9966  if test "$with_gnu_ld" = yes; then
9967    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9968  else
9969    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9970    case $host_os in
9971      sco3.2v5*)
9972        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9973	;;
9974    esac
9975  fi
9976  sys_lib_dlsearch_path_spec='/usr/lib'
9977  ;;
9978
9979tpf*)
9980  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9981  version_type=linux
9982  need_lib_prefix=no
9983  need_version=no
9984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9985  shlibpath_var=LD_LIBRARY_PATH
9986  shlibpath_overrides_runpath=no
9987  hardcode_into_libs=yes
9988  ;;
9989
9990uts4*)
9991  version_type=linux
9992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993  soname_spec='${libname}${release}${shared_ext}$major'
9994  shlibpath_var=LD_LIBRARY_PATH
9995  ;;
9996
9997*)
9998  dynamic_linker=no
9999  ;;
10000esac
10001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10002$as_echo "$dynamic_linker" >&6; }
10003test "$dynamic_linker" = no && can_build_shared=no
10004
10005variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10006if test "$GCC" = yes; then
10007  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10008fi
10009
10010if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10011  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10012fi
10013if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10014  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10015fi
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10104$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10105hardcode_action=
10106if test -n "$hardcode_libdir_flag_spec" ||
10107   test -n "$runpath_var" ||
10108   test "X$hardcode_automatic" = "Xyes" ; then
10109
10110  # We can hardcode non-existent directories.
10111  if test "$hardcode_direct" != no &&
10112     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10113     # have to relink, otherwise we might link with an installed library
10114     # when we should be linking with a yet-to-be-installed one
10115     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10116     test "$hardcode_minus_L" != no; then
10117    # Linking always hardcodes the temporary library directory.
10118    hardcode_action=relink
10119  else
10120    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10121    hardcode_action=immediate
10122  fi
10123else
10124  # We cannot hardcode anything, or else we can only hardcode existing
10125  # directories.
10126  hardcode_action=unsupported
10127fi
10128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10129$as_echo "$hardcode_action" >&6; }
10130
10131if test "$hardcode_action" = relink ||
10132   test "$inherit_rpath" = yes; then
10133  # Fast installation is not supported
10134  enable_fast_install=no
10135elif test "$shlibpath_overrides_runpath" = yes ||
10136     test "$enable_shared" = no; then
10137  # Fast installation is not necessary
10138  enable_fast_install=needless
10139fi
10140
10141
10142
10143
10144
10145
10146  if test "x$enable_dlopen" != xyes; then
10147  enable_dlopen=unknown
10148  enable_dlopen_self=unknown
10149  enable_dlopen_self_static=unknown
10150else
10151  lt_cv_dlopen=no
10152  lt_cv_dlopen_libs=
10153
10154  case $host_os in
10155  beos*)
10156    lt_cv_dlopen="load_add_on"
10157    lt_cv_dlopen_libs=
10158    lt_cv_dlopen_self=yes
10159    ;;
10160
10161  mingw* | pw32* | cegcc*)
10162    lt_cv_dlopen="LoadLibrary"
10163    lt_cv_dlopen_libs=
10164    ;;
10165
10166  cygwin*)
10167    lt_cv_dlopen="dlopen"
10168    lt_cv_dlopen_libs=
10169    ;;
10170
10171  darwin*)
10172  # if libdl is installed we need to link against it
10173    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10174$as_echo_n "checking for dlopen in -ldl... " >&6; }
10175if ${ac_cv_lib_dl_dlopen+:} false; then :
10176  $as_echo_n "(cached) " >&6
10177else
10178  ac_check_lib_save_LIBS=$LIBS
10179LIBS="-ldl  $LIBS"
10180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181/* end confdefs.h.  */
10182
10183/* Override any GCC internal prototype to avoid an error.
10184   Use char because int might match the return type of a GCC
10185   builtin and then its argument prototype would still apply.  */
10186#ifdef __cplusplus
10187extern "C"
10188#endif
10189char dlopen ();
10190int
10191main ()
10192{
10193return dlopen ();
10194  ;
10195  return 0;
10196}
10197_ACEOF
10198if ac_fn_c_try_link "$LINENO"; then :
10199  ac_cv_lib_dl_dlopen=yes
10200else
10201  ac_cv_lib_dl_dlopen=no
10202fi
10203rm -f core conftest.err conftest.$ac_objext \
10204    conftest$ac_exeext conftest.$ac_ext
10205LIBS=$ac_check_lib_save_LIBS
10206fi
10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10208$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10209if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10210  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10211else
10212
10213    lt_cv_dlopen="dyld"
10214    lt_cv_dlopen_libs=
10215    lt_cv_dlopen_self=yes
10216
10217fi
10218
10219    ;;
10220
10221  *)
10222    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10223if test "x$ac_cv_func_shl_load" = xyes; then :
10224  lt_cv_dlopen="shl_load"
10225else
10226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10227$as_echo_n "checking for shl_load in -ldld... " >&6; }
10228if ${ac_cv_lib_dld_shl_load+:} false; then :
10229  $as_echo_n "(cached) " >&6
10230else
10231  ac_check_lib_save_LIBS=$LIBS
10232LIBS="-ldld  $LIBS"
10233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234/* end confdefs.h.  */
10235
10236/* Override any GCC internal prototype to avoid an error.
10237   Use char because int might match the return type of a GCC
10238   builtin and then its argument prototype would still apply.  */
10239#ifdef __cplusplus
10240extern "C"
10241#endif
10242char shl_load ();
10243int
10244main ()
10245{
10246return shl_load ();
10247  ;
10248  return 0;
10249}
10250_ACEOF
10251if ac_fn_c_try_link "$LINENO"; then :
10252  ac_cv_lib_dld_shl_load=yes
10253else
10254  ac_cv_lib_dld_shl_load=no
10255fi
10256rm -f core conftest.err conftest.$ac_objext \
10257    conftest$ac_exeext conftest.$ac_ext
10258LIBS=$ac_check_lib_save_LIBS
10259fi
10260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10261$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10262if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10263  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10264else
10265  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10266if test "x$ac_cv_func_dlopen" = xyes; then :
10267  lt_cv_dlopen="dlopen"
10268else
10269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10270$as_echo_n "checking for dlopen in -ldl... " >&6; }
10271if ${ac_cv_lib_dl_dlopen+:} false; then :
10272  $as_echo_n "(cached) " >&6
10273else
10274  ac_check_lib_save_LIBS=$LIBS
10275LIBS="-ldl  $LIBS"
10276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10277/* end confdefs.h.  */
10278
10279/* Override any GCC internal prototype to avoid an error.
10280   Use char because int might match the return type of a GCC
10281   builtin and then its argument prototype would still apply.  */
10282#ifdef __cplusplus
10283extern "C"
10284#endif
10285char dlopen ();
10286int
10287main ()
10288{
10289return dlopen ();
10290  ;
10291  return 0;
10292}
10293_ACEOF
10294if ac_fn_c_try_link "$LINENO"; then :
10295  ac_cv_lib_dl_dlopen=yes
10296else
10297  ac_cv_lib_dl_dlopen=no
10298fi
10299rm -f core conftest.err conftest.$ac_objext \
10300    conftest$ac_exeext conftest.$ac_ext
10301LIBS=$ac_check_lib_save_LIBS
10302fi
10303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10304$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10305if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10306  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10307else
10308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10309$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10310if ${ac_cv_lib_svld_dlopen+:} false; then :
10311  $as_echo_n "(cached) " >&6
10312else
10313  ac_check_lib_save_LIBS=$LIBS
10314LIBS="-lsvld  $LIBS"
10315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316/* end confdefs.h.  */
10317
10318/* Override any GCC internal prototype to avoid an error.
10319   Use char because int might match the return type of a GCC
10320   builtin and then its argument prototype would still apply.  */
10321#ifdef __cplusplus
10322extern "C"
10323#endif
10324char dlopen ();
10325int
10326main ()
10327{
10328return dlopen ();
10329  ;
10330  return 0;
10331}
10332_ACEOF
10333if ac_fn_c_try_link "$LINENO"; then :
10334  ac_cv_lib_svld_dlopen=yes
10335else
10336  ac_cv_lib_svld_dlopen=no
10337fi
10338rm -f core conftest.err conftest.$ac_objext \
10339    conftest$ac_exeext conftest.$ac_ext
10340LIBS=$ac_check_lib_save_LIBS
10341fi
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10343$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10344if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10345  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10346else
10347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10348$as_echo_n "checking for dld_link in -ldld... " >&6; }
10349if ${ac_cv_lib_dld_dld_link+:} false; then :
10350  $as_echo_n "(cached) " >&6
10351else
10352  ac_check_lib_save_LIBS=$LIBS
10353LIBS="-ldld  $LIBS"
10354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355/* end confdefs.h.  */
10356
10357/* Override any GCC internal prototype to avoid an error.
10358   Use char because int might match the return type of a GCC
10359   builtin and then its argument prototype would still apply.  */
10360#ifdef __cplusplus
10361extern "C"
10362#endif
10363char dld_link ();
10364int
10365main ()
10366{
10367return dld_link ();
10368  ;
10369  return 0;
10370}
10371_ACEOF
10372if ac_fn_c_try_link "$LINENO"; then :
10373  ac_cv_lib_dld_dld_link=yes
10374else
10375  ac_cv_lib_dld_dld_link=no
10376fi
10377rm -f core conftest.err conftest.$ac_objext \
10378    conftest$ac_exeext conftest.$ac_ext
10379LIBS=$ac_check_lib_save_LIBS
10380fi
10381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10382$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10383if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10384  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10385fi
10386
10387
10388fi
10389
10390
10391fi
10392
10393
10394fi
10395
10396
10397fi
10398
10399
10400fi
10401
10402    ;;
10403  esac
10404
10405  if test "x$lt_cv_dlopen" != xno; then
10406    enable_dlopen=yes
10407  else
10408    enable_dlopen=no
10409  fi
10410
10411  case $lt_cv_dlopen in
10412  dlopen)
10413    save_CPPFLAGS="$CPPFLAGS"
10414    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10415
10416    save_LDFLAGS="$LDFLAGS"
10417    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10418
10419    save_LIBS="$LIBS"
10420    LIBS="$lt_cv_dlopen_libs $LIBS"
10421
10422    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10423$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10424if ${lt_cv_dlopen_self+:} false; then :
10425  $as_echo_n "(cached) " >&6
10426else
10427  	  if test "$cross_compiling" = yes; then :
10428  lt_cv_dlopen_self=cross
10429else
10430  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10431  lt_status=$lt_dlunknown
10432  cat > conftest.$ac_ext <<_LT_EOF
10433#line 10433 "configure"
10434#include "confdefs.h"
10435
10436#if HAVE_DLFCN_H
10437#include <dlfcn.h>
10438#endif
10439
10440#include <stdio.h>
10441
10442#ifdef RTLD_GLOBAL
10443#  define LT_DLGLOBAL		RTLD_GLOBAL
10444#else
10445#  ifdef DL_GLOBAL
10446#    define LT_DLGLOBAL		DL_GLOBAL
10447#  else
10448#    define LT_DLGLOBAL		0
10449#  endif
10450#endif
10451
10452/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10453   find out it does not work in some platform. */
10454#ifndef LT_DLLAZY_OR_NOW
10455#  ifdef RTLD_LAZY
10456#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10457#  else
10458#    ifdef DL_LAZY
10459#      define LT_DLLAZY_OR_NOW		DL_LAZY
10460#    else
10461#      ifdef RTLD_NOW
10462#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10463#      else
10464#        ifdef DL_NOW
10465#          define LT_DLLAZY_OR_NOW	DL_NOW
10466#        else
10467#          define LT_DLLAZY_OR_NOW	0
10468#        endif
10469#      endif
10470#    endif
10471#  endif
10472#endif
10473
10474void fnord() { int i=42;}
10475int main ()
10476{
10477  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10478  int status = $lt_dlunknown;
10479
10480  if (self)
10481    {
10482      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10483      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10484      /* dlclose (self); */
10485    }
10486  else
10487    puts (dlerror ());
10488
10489  return status;
10490}
10491_LT_EOF
10492  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10493  (eval $ac_link) 2>&5
10494  ac_status=$?
10495  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10496  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10497    (./conftest; exit; ) >&5 2>/dev/null
10498    lt_status=$?
10499    case x$lt_status in
10500      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10501      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10502      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10503    esac
10504  else :
10505    # compilation failed
10506    lt_cv_dlopen_self=no
10507  fi
10508fi
10509rm -fr conftest*
10510
10511
10512fi
10513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10514$as_echo "$lt_cv_dlopen_self" >&6; }
10515
10516    if test "x$lt_cv_dlopen_self" = xyes; then
10517      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10518      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10519$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10520if ${lt_cv_dlopen_self_static+:} false; then :
10521  $as_echo_n "(cached) " >&6
10522else
10523  	  if test "$cross_compiling" = yes; then :
10524  lt_cv_dlopen_self_static=cross
10525else
10526  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10527  lt_status=$lt_dlunknown
10528  cat > conftest.$ac_ext <<_LT_EOF
10529#line 10529 "configure"
10530#include "confdefs.h"
10531
10532#if HAVE_DLFCN_H
10533#include <dlfcn.h>
10534#endif
10535
10536#include <stdio.h>
10537
10538#ifdef RTLD_GLOBAL
10539#  define LT_DLGLOBAL		RTLD_GLOBAL
10540#else
10541#  ifdef DL_GLOBAL
10542#    define LT_DLGLOBAL		DL_GLOBAL
10543#  else
10544#    define LT_DLGLOBAL		0
10545#  endif
10546#endif
10547
10548/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10549   find out it does not work in some platform. */
10550#ifndef LT_DLLAZY_OR_NOW
10551#  ifdef RTLD_LAZY
10552#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10553#  else
10554#    ifdef DL_LAZY
10555#      define LT_DLLAZY_OR_NOW		DL_LAZY
10556#    else
10557#      ifdef RTLD_NOW
10558#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10559#      else
10560#        ifdef DL_NOW
10561#          define LT_DLLAZY_OR_NOW	DL_NOW
10562#        else
10563#          define LT_DLLAZY_OR_NOW	0
10564#        endif
10565#      endif
10566#    endif
10567#  endif
10568#endif
10569
10570void fnord() { int i=42;}
10571int main ()
10572{
10573  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10574  int status = $lt_dlunknown;
10575
10576  if (self)
10577    {
10578      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10579      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10580      /* dlclose (self); */
10581    }
10582  else
10583    puts (dlerror ());
10584
10585  return status;
10586}
10587_LT_EOF
10588  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10589  (eval $ac_link) 2>&5
10590  ac_status=$?
10591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10592  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10593    (./conftest; exit; ) >&5 2>/dev/null
10594    lt_status=$?
10595    case x$lt_status in
10596      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10597      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10598      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10599    esac
10600  else :
10601    # compilation failed
10602    lt_cv_dlopen_self_static=no
10603  fi
10604fi
10605rm -fr conftest*
10606
10607
10608fi
10609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10610$as_echo "$lt_cv_dlopen_self_static" >&6; }
10611    fi
10612
10613    CPPFLAGS="$save_CPPFLAGS"
10614    LDFLAGS="$save_LDFLAGS"
10615    LIBS="$save_LIBS"
10616    ;;
10617  esac
10618
10619  case $lt_cv_dlopen_self in
10620  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10621  *) enable_dlopen_self=unknown ;;
10622  esac
10623
10624  case $lt_cv_dlopen_self_static in
10625  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10626  *) enable_dlopen_self_static=unknown ;;
10627  esac
10628fi
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646striplib=
10647old_striplib=
10648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10649$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10650if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10651  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10652  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10654$as_echo "yes" >&6; }
10655else
10656# FIXME - insert some real tests, host_os isn't really good enough
10657  case $host_os in
10658  darwin*)
10659    if test -n "$STRIP" ; then
10660      striplib="$STRIP -x"
10661      old_striplib="$STRIP -S"
10662      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10663$as_echo "yes" >&6; }
10664    else
10665      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666$as_echo "no" >&6; }
10667    fi
10668    ;;
10669  *)
10670    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671$as_echo "no" >&6; }
10672    ;;
10673  esac
10674fi
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687  # Report which library types will actually be built
10688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10689$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10691$as_echo "$can_build_shared" >&6; }
10692
10693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10694$as_echo_n "checking whether to build shared libraries... " >&6; }
10695  test "$can_build_shared" = "no" && enable_shared=no
10696
10697  # On AIX, shared libraries and static libraries use the same namespace, and
10698  # are all built from PIC.
10699  case $host_os in
10700  aix3*)
10701    test "$enable_shared" = yes && enable_static=no
10702    if test -n "$RANLIB"; then
10703      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10704      postinstall_cmds='$RANLIB $lib'
10705    fi
10706    ;;
10707
10708  aix[4-9]*)
10709    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10710      test "$enable_shared" = yes && enable_static=no
10711    fi
10712    ;;
10713  esac
10714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10715$as_echo "$enable_shared" >&6; }
10716
10717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10718$as_echo_n "checking whether to build static libraries... " >&6; }
10719  # Make sure either enable_shared or enable_static is yes.
10720  test "$enable_shared" = yes || enable_static=yes
10721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10722$as_echo "$enable_static" >&6; }
10723
10724
10725
10726
10727fi
10728ac_ext=c
10729ac_cpp='$CPP $CPPFLAGS'
10730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10732ac_compiler_gnu=$ac_cv_c_compiler_gnu
10733
10734CC="$lt_save_CC"
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748        ac_config_commands="$ac_config_commands libtool"
10749
10750
10751
10752
10753# Only expand once:
10754
10755
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
10757$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
10758if ${libltdl_cv_shlibext+:} false; then :
10759  $as_echo_n "(cached) " >&6
10760else
10761
10762module=yes
10763eval libltdl_cv_shlibext=$shrext_cmds
10764
10765fi
10766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
10767$as_echo "$libltdl_cv_shlibext" >&6; }
10768if test -n "$libltdl_cv_shlibext"; then
10769
10770cat >>confdefs.h <<_ACEOF
10771#define LT_MODULE_EXT "$libltdl_cv_shlibext"
10772_ACEOF
10773
10774fi
10775
10776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
10777$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
10778if ${lt_cv_module_path_var+:} false; then :
10779  $as_echo_n "(cached) " >&6
10780else
10781  lt_cv_module_path_var="$shlibpath_var"
10782fi
10783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
10784$as_echo "$lt_cv_module_path_var" >&6; }
10785if test -n "$lt_cv_module_path_var"; then
10786
10787cat >>confdefs.h <<_ACEOF
10788#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
10789_ACEOF
10790
10791fi
10792
10793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
10794$as_echo_n "checking for the default library search path... " >&6; }
10795if ${lt_cv_sys_dlsearch_path+:} false; then :
10796  $as_echo_n "(cached) " >&6
10797else
10798  lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
10799fi
10800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
10801$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
10802if test -n "$lt_cv_sys_dlsearch_path"; then
10803  sys_dlsearch_path=
10804  for dir in $lt_cv_sys_dlsearch_path; do
10805    if test -z "$sys_dlsearch_path"; then
10806      sys_dlsearch_path="$dir"
10807    else
10808      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
10809    fi
10810  done
10811
10812cat >>confdefs.h <<_ACEOF
10813#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
10814_ACEOF
10815
10816fi
10817
10818
10819LT_DLLOADERS=
10820
10821
10822ac_ext=c
10823ac_cpp='$CPP $CPPFLAGS'
10824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10826ac_compiler_gnu=$ac_cv_c_compiler_gnu
10827
10828
10829LIBADD_DLOPEN=
10830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10831$as_echo_n "checking for library containing dlopen... " >&6; }
10832if ${ac_cv_search_dlopen+:} false; then :
10833  $as_echo_n "(cached) " >&6
10834else
10835  ac_func_search_save_LIBS=$LIBS
10836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837/* end confdefs.h.  */
10838
10839/* Override any GCC internal prototype to avoid an error.
10840   Use char because int might match the return type of a GCC
10841   builtin and then its argument prototype would still apply.  */
10842#ifdef __cplusplus
10843extern "C"
10844#endif
10845char dlopen ();
10846int
10847main ()
10848{
10849return dlopen ();
10850  ;
10851  return 0;
10852}
10853_ACEOF
10854for ac_lib in '' dl; do
10855  if test -z "$ac_lib"; then
10856    ac_res="none required"
10857  else
10858    ac_res=-l$ac_lib
10859    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10860  fi
10861  if ac_fn_c_try_link "$LINENO"; then :
10862  ac_cv_search_dlopen=$ac_res
10863fi
10864rm -f core conftest.err conftest.$ac_objext \
10865    conftest$ac_exeext
10866  if ${ac_cv_search_dlopen+:} false; then :
10867  break
10868fi
10869done
10870if ${ac_cv_search_dlopen+:} false; then :
10871
10872else
10873  ac_cv_search_dlopen=no
10874fi
10875rm conftest.$ac_ext
10876LIBS=$ac_func_search_save_LIBS
10877fi
10878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10879$as_echo "$ac_cv_search_dlopen" >&6; }
10880ac_res=$ac_cv_search_dlopen
10881if test "$ac_res" != no; then :
10882  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10883
10884$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
10885
10886	if test "$ac_cv_search_dlopen" != "none required" ; then
10887	  LIBADD_DLOPEN="-ldl"
10888	fi
10889	libltdl_cv_lib_dl_dlopen="yes"
10890	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
10891else
10892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893/* end confdefs.h.  */
10894#if HAVE_DLFCN_H
10895#  include <dlfcn.h>
10896#endif
10897
10898int
10899main ()
10900{
10901dlopen(0, 0);
10902  ;
10903  return 0;
10904}
10905_ACEOF
10906if ac_fn_c_try_link "$LINENO"; then :
10907
10908$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
10909
10910	    libltdl_cv_func_dlopen="yes"
10911	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
10912else
10913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10914$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10915if ${ac_cv_lib_svld_dlopen+:} false; then :
10916  $as_echo_n "(cached) " >&6
10917else
10918  ac_check_lib_save_LIBS=$LIBS
10919LIBS="-lsvld  $LIBS"
10920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921/* end confdefs.h.  */
10922
10923/* Override any GCC internal prototype to avoid an error.
10924   Use char because int might match the return type of a GCC
10925   builtin and then its argument prototype would still apply.  */
10926#ifdef __cplusplus
10927extern "C"
10928#endif
10929char dlopen ();
10930int
10931main ()
10932{
10933return dlopen ();
10934  ;
10935  return 0;
10936}
10937_ACEOF
10938if ac_fn_c_try_link "$LINENO"; then :
10939  ac_cv_lib_svld_dlopen=yes
10940else
10941  ac_cv_lib_svld_dlopen=no
10942fi
10943rm -f core conftest.err conftest.$ac_objext \
10944    conftest$ac_exeext conftest.$ac_ext
10945LIBS=$ac_check_lib_save_LIBS
10946fi
10947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10948$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10949if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10950
10951$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
10952
10953	        LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
10954		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
10955fi
10956
10957fi
10958rm -f core conftest.err conftest.$ac_objext \
10959    conftest$ac_exeext conftest.$ac_ext
10960fi
10961
10962if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10963then
10964  lt_save_LIBS="$LIBS"
10965  LIBS="$LIBS $LIBADD_DLOPEN"
10966  for ac_func in dlerror
10967do :
10968  ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
10969if test "x$ac_cv_func_dlerror" = xyes; then :
10970  cat >>confdefs.h <<_ACEOF
10971#define HAVE_DLERROR 1
10972_ACEOF
10973
10974fi
10975done
10976
10977  LIBS="$lt_save_LIBS"
10978fi
10979
10980
10981LIBADD_SHL_LOAD=
10982ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10983if test "x$ac_cv_func_shl_load" = xyes; then :
10984
10985$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
10986
10987	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
10988else
10989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10990$as_echo_n "checking for shl_load in -ldld... " >&6; }
10991if ${ac_cv_lib_dld_shl_load+:} false; then :
10992  $as_echo_n "(cached) " >&6
10993else
10994  ac_check_lib_save_LIBS=$LIBS
10995LIBS="-ldld  $LIBS"
10996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997/* end confdefs.h.  */
10998
10999/* Override any GCC internal prototype to avoid an error.
11000   Use char because int might match the return type of a GCC
11001   builtin and then its argument prototype would still apply.  */
11002#ifdef __cplusplus
11003extern "C"
11004#endif
11005char shl_load ();
11006int
11007main ()
11008{
11009return shl_load ();
11010  ;
11011  return 0;
11012}
11013_ACEOF
11014if ac_fn_c_try_link "$LINENO"; then :
11015  ac_cv_lib_dld_shl_load=yes
11016else
11017  ac_cv_lib_dld_shl_load=no
11018fi
11019rm -f core conftest.err conftest.$ac_objext \
11020    conftest$ac_exeext conftest.$ac_ext
11021LIBS=$ac_check_lib_save_LIBS
11022fi
11023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11024$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11025if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11026
11027$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11028
11029	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11030	    LIBADD_SHL_LOAD="-ldld"
11031fi
11032
11033fi
11034
11035
11036
11037case $host_os in
11038darwin[1567].*)
11039# We only want this for pre-Mac OS X 10.4.
11040  ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11041if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
11042
11043$as_echo "#define HAVE_DYLD 1" >>confdefs.h
11044
11045	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11046fi
11047
11048  ;;
11049beos*)
11050  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11051  ;;
11052cygwin* | mingw* | os2* | pw32*)
11053  ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11054"
11055if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
11056  ac_have_decl=1
11057else
11058  ac_have_decl=0
11059fi
11060
11061cat >>confdefs.h <<_ACEOF
11062#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11063_ACEOF
11064
11065  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11066  ;;
11067esac
11068
11069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11070$as_echo_n "checking for dld_link in -ldld... " >&6; }
11071if ${ac_cv_lib_dld_dld_link+:} false; then :
11072  $as_echo_n "(cached) " >&6
11073else
11074  ac_check_lib_save_LIBS=$LIBS
11075LIBS="-ldld  $LIBS"
11076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077/* end confdefs.h.  */
11078
11079/* Override any GCC internal prototype to avoid an error.
11080   Use char because int might match the return type of a GCC
11081   builtin and then its argument prototype would still apply.  */
11082#ifdef __cplusplus
11083extern "C"
11084#endif
11085char dld_link ();
11086int
11087main ()
11088{
11089return dld_link ();
11090  ;
11091  return 0;
11092}
11093_ACEOF
11094if ac_fn_c_try_link "$LINENO"; then :
11095  ac_cv_lib_dld_dld_link=yes
11096else
11097  ac_cv_lib_dld_dld_link=no
11098fi
11099rm -f core conftest.err conftest.$ac_objext \
11100    conftest$ac_exeext conftest.$ac_ext
11101LIBS=$ac_check_lib_save_LIBS
11102fi
11103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11104$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11105if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11106
11107$as_echo "#define HAVE_DLD 1" >>confdefs.h
11108
11109		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11110fi
11111
11112
11113
11114
11115LT_DLPREOPEN=
11116if test -n "$LT_DLLOADERS"
11117then
11118  for lt_loader in $LT_DLLOADERS; do
11119    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11120  done
11121
11122$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11123
11124fi
11125
11126
11127LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11128
11129
11130ac_ext=c
11131ac_cpp='$CPP $CPPFLAGS'
11132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11134ac_compiler_gnu=$ac_cv_c_compiler_gnu
11135
11136
11137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
11138$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
11139if ${lt_cv_sys_symbol_underscore+:} false; then :
11140  $as_echo_n "(cached) " >&6
11141else
11142  lt_cv_sys_symbol_underscore=no
11143  cat > conftest.$ac_ext <<_LT_EOF
11144void nm_test_func(){}
11145int main(){nm_test_func;return 0;}
11146_LT_EOF
11147  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11148  (eval $ac_compile) 2>&5
11149  ac_status=$?
11150  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11151  test $ac_status = 0; }; then
11152    # Now try to grab the symbols.
11153    ac_nlist=conftest.nm
11154    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
11155  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11156  ac_status=$?
11157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11158  test $ac_status = 0; } && test -s "$ac_nlist"; then
11159      # See whether the symbols have a leading underscore.
11160      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11161        lt_cv_sys_symbol_underscore=yes
11162      else
11163        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11164	  :
11165        else
11166	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11167        fi
11168      fi
11169    else
11170      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11171    fi
11172  else
11173    echo "configure: failed program was:" >&5
11174    cat conftest.c >&5
11175  fi
11176  rm -rf conftest*
11177
11178fi
11179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
11180$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
11181  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
11182
11183
11184if test x"$lt_cv_sys_symbol_underscore" = xyes; then
11185  if test x"$libltdl_cv_func_dlopen" = xyes ||
11186     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11187	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
11188$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
11189if ${libltdl_cv_need_uscore+:} false; then :
11190  $as_echo_n "(cached) " >&6
11191else
11192  libltdl_cv_need_uscore=unknown
11193          save_LIBS="$LIBS"
11194          LIBS="$LIBS $LIBADD_DLOPEN"
11195	  if test "$cross_compiling" = yes; then :
11196  libltdl_cv_need_uscore=cross
11197else
11198  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11199  lt_status=$lt_dlunknown
11200  cat > conftest.$ac_ext <<_LT_EOF
11201#line 11201 "configure"
11202#include "confdefs.h"
11203
11204#if HAVE_DLFCN_H
11205#include <dlfcn.h>
11206#endif
11207
11208#include <stdio.h>
11209
11210#ifdef RTLD_GLOBAL
11211#  define LT_DLGLOBAL		RTLD_GLOBAL
11212#else
11213#  ifdef DL_GLOBAL
11214#    define LT_DLGLOBAL		DL_GLOBAL
11215#  else
11216#    define LT_DLGLOBAL		0
11217#  endif
11218#endif
11219
11220/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11221   find out it does not work in some platform. */
11222#ifndef LT_DLLAZY_OR_NOW
11223#  ifdef RTLD_LAZY
11224#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11225#  else
11226#    ifdef DL_LAZY
11227#      define LT_DLLAZY_OR_NOW		DL_LAZY
11228#    else
11229#      ifdef RTLD_NOW
11230#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11231#      else
11232#        ifdef DL_NOW
11233#          define LT_DLLAZY_OR_NOW	DL_NOW
11234#        else
11235#          define LT_DLLAZY_OR_NOW	0
11236#        endif
11237#      endif
11238#    endif
11239#  endif
11240#endif
11241
11242void fnord() { int i=42;}
11243int main ()
11244{
11245  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11246  int status = $lt_dlunknown;
11247
11248  if (self)
11249    {
11250      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11251      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11252      /* dlclose (self); */
11253    }
11254  else
11255    puts (dlerror ());
11256
11257  return status;
11258}
11259_LT_EOF
11260  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11261  (eval $ac_link) 2>&5
11262  ac_status=$?
11263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11264  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11265    (./conftest; exit; ) >&5 2>/dev/null
11266    lt_status=$?
11267    case x$lt_status in
11268      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11269      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11270      x$lt_dlunknown|x*)  ;;
11271    esac
11272  else :
11273    # compilation failed
11274
11275  fi
11276fi
11277rm -fr conftest*
11278
11279	  LIBS="$save_LIBS"
11280
11281fi
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
11283$as_echo "$libltdl_cv_need_uscore" >&6; }
11284  fi
11285fi
11286
11287if test x"$libltdl_cv_need_uscore" = xyes; then
11288
11289$as_echo "#define NEED_USCORE 1" >>confdefs.h
11290
11291fi
11292
11293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
11294$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
11295if ${lt_cv_sys_dlopen_deplibs+:} false; then :
11296  $as_echo_n "(cached) " >&6
11297else
11298  # PORTME does your system automatically load deplibs for dlopen?
11299  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11300  # For now, we just catch OSes we know something about -- in the
11301  # future, we'll try test this programmatically.
11302  lt_cv_sys_dlopen_deplibs=unknown
11303  case $host_os in
11304  aix3*|aix4.1.*|aix4.2.*)
11305    # Unknown whether this is true for these versions of AIX, but
11306    # we want this `case' here to explicitly catch those versions.
11307    lt_cv_sys_dlopen_deplibs=unknown
11308    ;;
11309  aix[4-9]*)
11310    lt_cv_sys_dlopen_deplibs=yes
11311    ;;
11312  amigaos*)
11313    case $host_cpu in
11314    powerpc)
11315      lt_cv_sys_dlopen_deplibs=no
11316      ;;
11317    esac
11318    ;;
11319  darwin*)
11320    # Assuming the user has installed a libdl from somewhere, this is true
11321    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11322    lt_cv_sys_dlopen_deplibs=yes
11323    ;;
11324  freebsd* | dragonfly*)
11325    lt_cv_sys_dlopen_deplibs=yes
11326    ;;
11327  gnu* | linux* | k*bsd*-gnu)
11328    # GNU and its variants, using gnu ld.so (Glibc)
11329    lt_cv_sys_dlopen_deplibs=yes
11330    ;;
11331  hpux10*|hpux11*)
11332    lt_cv_sys_dlopen_deplibs=yes
11333    ;;
11334  interix*)
11335    lt_cv_sys_dlopen_deplibs=yes
11336    ;;
11337  irix[12345]*|irix6.[01]*)
11338    # Catch all versions of IRIX before 6.2, and indicate that we don't
11339    # know how it worked for any of those versions.
11340    lt_cv_sys_dlopen_deplibs=unknown
11341    ;;
11342  irix*)
11343    # The case above catches anything before 6.2, and it's known that
11344    # at 6.2 and later dlopen does load deplibs.
11345    lt_cv_sys_dlopen_deplibs=yes
11346    ;;
11347  netbsd*)
11348    lt_cv_sys_dlopen_deplibs=yes
11349    ;;
11350  openbsd*)
11351    lt_cv_sys_dlopen_deplibs=yes
11352    ;;
11353  osf[1234]*)
11354    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11355    # it did *not* use an RPATH in a shared library to find objects the
11356    # library depends on, so we explicitly say `no'.
11357    lt_cv_sys_dlopen_deplibs=no
11358    ;;
11359  osf5.0|osf5.0a|osf5.1)
11360    # dlopen *does* load deplibs and with the right loader patch applied
11361    # it even uses RPATH in a shared library to search for shared objects
11362    # that the library depends on, but there's no easy way to know if that
11363    # patch is installed.  Since this is the case, all we can really
11364    # say is unknown -- it depends on the patch being installed.  If
11365    # it is, this changes to `yes'.  Without it, it would be `no'.
11366    lt_cv_sys_dlopen_deplibs=unknown
11367    ;;
11368  osf*)
11369    # the two cases above should catch all versions of osf <= 5.1.  Read
11370    # the comments above for what we know about them.
11371    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11372    # is used to find them so we can finally say `yes'.
11373    lt_cv_sys_dlopen_deplibs=yes
11374    ;;
11375  qnx*)
11376    lt_cv_sys_dlopen_deplibs=yes
11377    ;;
11378  solaris*)
11379    lt_cv_sys_dlopen_deplibs=yes
11380    ;;
11381  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11382    libltdl_cv_sys_dlopen_deplibs=yes
11383    ;;
11384  esac
11385
11386fi
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
11388$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
11389if test "$lt_cv_sys_dlopen_deplibs" != yes; then
11390
11391$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
11392
11393fi
11394
11395:
11396
11397for ac_header in argz.h
11398do :
11399  ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
11400"
11401if test "x$ac_cv_header_argz_h" = xyes; then :
11402  cat >>confdefs.h <<_ACEOF
11403#define HAVE_ARGZ_H 1
11404_ACEOF
11405
11406fi
11407
11408done
11409
11410
11411ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
11412#  include <argz.h>
11413#endif
11414"
11415if test "x$ac_cv_type_error_t" = xyes; then :
11416
11417cat >>confdefs.h <<_ACEOF
11418#define HAVE_ERROR_T 1
11419_ACEOF
11420
11421
11422else
11423
11424$as_echo "#define error_t int" >>confdefs.h
11425
11426
11427$as_echo "#define __error_t_defined 1" >>confdefs.h
11428
11429fi
11430
11431
11432ARGZ_H=
11433for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
11434	argz_next argz_stringify
11435do :
11436  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11437ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11438if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11439  cat >>confdefs.h <<_ACEOF
11440#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11441_ACEOF
11442
11443else
11444  ARGZ_H=argz.h; case " $LIBOBJS " in
11445  *" argz.$ac_objext "* ) ;;
11446  *) LIBOBJS="$LIBOBJS argz.$ac_objext"
11447 ;;
11448esac
11449
11450fi
11451done
11452
11453
11454if test -z "$ARGZ_H"; then :
11455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
11456$as_echo_n "checking if argz actually works... " >&6; }
11457if ${lt_cv_sys_argz_works+:} false; then :
11458  $as_echo_n "(cached) " >&6
11459else
11460  case $host_os in #(
11461	 *cygwin*)
11462	   lt_cv_sys_argz_works=no
11463	   if test "$cross_compiling" != no; then
11464	     lt_cv_sys_argz_works="guessing no"
11465	   else
11466	     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
11467	     save_IFS=$IFS
11468	     IFS=-.
11469	     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
11470	     IFS=$save_IFS
11471	     lt_os_major=${2-0}
11472	     lt_os_minor=${3-0}
11473	     lt_os_micro=${4-0}
11474	     if test "$lt_os_major" -gt 1 \
11475		|| { test "$lt_os_major" -eq 1 \
11476		  && { test "$lt_os_minor" -gt 5 \
11477		    || { test "$lt_os_minor" -eq 5 \
11478		      && test "$lt_os_micro" -gt 24; }; }; }; then
11479	       lt_cv_sys_argz_works=yes
11480	     fi
11481	   fi
11482	   ;; #(
11483	 *) lt_cv_sys_argz_works=yes ;;
11484	 esac
11485fi
11486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
11487$as_echo "$lt_cv_sys_argz_works" >&6; }
11488     if test $lt_cv_sys_argz_works = yes; then :
11489
11490$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
11491
11492else
11493  ARGZ_H=argz.h
11494        case " $LIBOBJS " in
11495  *" argz.$ac_objext "* ) ;;
11496  *) LIBOBJS="$LIBOBJS argz.$ac_objext"
11497 ;;
11498esac
11499
11500fi
11501fi
11502
11503
11504
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
11506$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
11507if ${libltdl_cv_preloaded_symbols+:} false; then :
11508  $as_echo_n "(cached) " >&6
11509else
11510  if test -n "$lt_cv_sys_global_symbol_pipe"; then
11511    libltdl_cv_preloaded_symbols=yes
11512  else
11513    libltdl_cv_preloaded_symbols=no
11514  fi
11515
11516fi
11517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
11518$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
11519if test x"$libltdl_cv_preloaded_symbols" = xyes; then
11520
11521$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
11522
11523fi
11524
11525
11526
11527# Check whether --enable-ltdl-install was given.
11528if test "${enable_ltdl_install+set}" = set; then :
11529  enableval=$enable_ltdl_install;
11530fi
11531
11532
11533case ,${enable_ltdl_install},${enable_ltdl_convenience} in
11534  *yes*) ;;
11535  *) enable_ltdl_convenience=yes ;;
11536esac
11537
11538 if test x"${enable_ltdl_install-no}" != xno; then
11539  INSTALL_LTDL_TRUE=
11540  INSTALL_LTDL_FALSE='#'
11541else
11542  INSTALL_LTDL_TRUE='#'
11543  INSTALL_LTDL_FALSE=
11544fi
11545
11546  if test x"${enable_ltdl_convenience-no}" != xno; then
11547  CONVENIENCE_LTDL_TRUE=
11548  CONVENIENCE_LTDL_FALSE='#'
11549else
11550  CONVENIENCE_LTDL_TRUE='#'
11551  CONVENIENCE_LTDL_FALSE=
11552fi
11553
11554
11555
11556
11557
11558
11559# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
11560# the user used.  This is so that ltdl.h can pick up the parent projects
11561# config.h file, The first file in AC_CONFIG_HEADERS must contain the
11562# definitions required by ltdl.c.
11563# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
11564
11565
11566
11567for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
11568do :
11569  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11570ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11571"
11572if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11573  cat >>confdefs.h <<_ACEOF
11574#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11575_ACEOF
11576
11577fi
11578
11579done
11580
11581
11582for ac_func in closedir opendir readdir
11583do :
11584  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11585ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11586if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11587  cat >>confdefs.h <<_ACEOF
11588#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11589_ACEOF
11590
11591else
11592  case " $LIBOBJS " in
11593  *" lt__dirent.$ac_objext "* ) ;;
11594  *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
11595 ;;
11596esac
11597
11598fi
11599done
11600
11601for ac_func in strlcat strlcpy
11602do :
11603  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11604ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11605if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11606  cat >>confdefs.h <<_ACEOF
11607#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11608_ACEOF
11609
11610else
11611  case " $LIBOBJS " in
11612  *" lt__strl.$ac_objext "* ) ;;
11613  *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
11614 ;;
11615esac
11616
11617fi
11618done
11619
11620
11621
11622cat >>confdefs.h <<_ACEOF
11623#define LT_LIBEXT "$libext"
11624_ACEOF
11625
11626
11627name=ltdl
11628LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
11629
11630
11631
11632
11633## -------- ##
11634## Outputs. ##
11635## -------- ##
11636ac_config_files="$ac_config_files Makefile"
11637
11638cat >confcache <<\_ACEOF
11639# This file is a shell script that caches the results of configure
11640# tests run on this system so they can be shared between configure
11641# scripts and configure runs, see configure's option --config-cache.
11642# It is not useful on other systems.  If it contains results you don't
11643# want to keep, you may remove or edit it.
11644#
11645# config.status only pays attention to the cache file if you give it
11646# the --recheck option to rerun configure.
11647#
11648# `ac_cv_env_foo' variables (set or unset) will be overridden when
11649# loading this file, other *unset* `ac_cv_foo' will be assigned the
11650# following values.
11651
11652_ACEOF
11653
11654# The following way of writing the cache mishandles newlines in values,
11655# but we know of no workaround that is simple, portable, and efficient.
11656# So, we kill variables containing newlines.
11657# Ultrix sh set writes to stderr and can't be redirected directly,
11658# and sets the high bit in the cache file unless we assign to the vars.
11659(
11660  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11661    eval ac_val=\$$ac_var
11662    case $ac_val in #(
11663    *${as_nl}*)
11664      case $ac_var in #(
11665      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11666$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11667      esac
11668      case $ac_var in #(
11669      _ | IFS | as_nl) ;; #(
11670      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11671      *) { eval $ac_var=; unset $ac_var;} ;;
11672      esac ;;
11673    esac
11674  done
11675
11676  (set) 2>&1 |
11677    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11678    *${as_nl}ac_space=\ *)
11679      # `set' does not quote correctly, so add quotes: double-quote
11680      # substitution turns \\\\ into \\, and sed turns \\ into \.
11681      sed -n \
11682	"s/'/'\\\\''/g;
11683	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11684      ;; #(
11685    *)
11686      # `set' quotes correctly as required by POSIX, so do not add quotes.
11687      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11688      ;;
11689    esac |
11690    sort
11691) |
11692  sed '
11693     /^ac_cv_env_/b end
11694     t clear
11695     :clear
11696     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11697     t end
11698     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11699     :end' >>confcache
11700if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11701  if test -w "$cache_file"; then
11702    if test "x$cache_file" != "x/dev/null"; then
11703      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11704$as_echo "$as_me: updating cache $cache_file" >&6;}
11705      if test ! -f "$cache_file" || test -h "$cache_file"; then
11706	cat confcache >"$cache_file"
11707      else
11708        case $cache_file in #(
11709        */* | ?:*)
11710	  mv -f confcache "$cache_file"$$ &&
11711	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11712        *)
11713	  mv -f confcache "$cache_file" ;;
11714	esac
11715      fi
11716    fi
11717  else
11718    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11719$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11720  fi
11721fi
11722rm -f confcache
11723
11724test "x$prefix" = xNONE && prefix=$ac_default_prefix
11725# Let make expand exec_prefix.
11726test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11727
11728DEFS=-DHAVE_CONFIG_H
11729
11730ac_libobjs=
11731ac_ltlibobjs=
11732U=
11733for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11734  # 1. Remove the extension, and $U if already installed.
11735  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11736  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11737  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11738  #    will be set to the directory where LIBOBJS objects are built.
11739  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11740  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11741done
11742LIBOBJS=$ac_libobjs
11743
11744LTLIBOBJS=$ac_ltlibobjs
11745
11746
11747 if test -n "$EXEEXT"; then
11748  am__EXEEXT_TRUE=
11749  am__EXEEXT_FALSE='#'
11750else
11751  am__EXEEXT_TRUE='#'
11752  am__EXEEXT_FALSE=
11753fi
11754
11755if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11756  as_fn_error $? "conditional \"AMDEP\" was never defined.
11757Usually this means the macro was only invoked conditionally." "$LINENO" 5
11758fi
11759if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11760  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11761Usually this means the macro was only invoked conditionally." "$LINENO" 5
11762fi
11763if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
11764  as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
11765Usually this means the macro was only invoked conditionally." "$LINENO" 5
11766fi
11767if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
11768  as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
11769Usually this means the macro was only invoked conditionally." "$LINENO" 5
11770fi
11771LT_CONFIG_H=config.h
11772
11773: "${CONFIG_STATUS=./config.status}"
11774ac_write_fail=0
11775ac_clean_files_save=$ac_clean_files
11776ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11777{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11778$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11779as_write_fail=0
11780cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11781#! $SHELL
11782# Generated by $as_me.
11783# Run this file to recreate the current configuration.
11784# Compiler output produced by configure, useful for debugging
11785# configure, is in config.log if it exists.
11786
11787debug=false
11788ac_cs_recheck=false
11789ac_cs_silent=false
11790
11791SHELL=\${CONFIG_SHELL-$SHELL}
11792export SHELL
11793_ASEOF
11794cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11795## -------------------- ##
11796## M4sh Initialization. ##
11797## -------------------- ##
11798
11799# Be more Bourne compatible
11800DUALCASE=1; export DUALCASE # for MKS sh
11801if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11802  emulate sh
11803  NULLCMD=:
11804  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11805  # is contrary to our usage.  Disable this feature.
11806  alias -g '${1+"$@"}'='"$@"'
11807  setopt NO_GLOB_SUBST
11808else
11809  case `(set -o) 2>/dev/null` in #(
11810  *posix*) :
11811    set -o posix ;; #(
11812  *) :
11813     ;;
11814esac
11815fi
11816
11817
11818as_nl='
11819'
11820export as_nl
11821# Printing a long string crashes Solaris 7 /usr/bin/printf.
11822as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11823as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11824as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11825# Prefer a ksh shell builtin over an external printf program on Solaris,
11826# but without wasting forks for bash or zsh.
11827if test -z "$BASH_VERSION$ZSH_VERSION" \
11828    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11829  as_echo='print -r --'
11830  as_echo_n='print -rn --'
11831elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11832  as_echo='printf %s\n'
11833  as_echo_n='printf %s'
11834else
11835  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11836    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11837    as_echo_n='/usr/ucb/echo -n'
11838  else
11839    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11840    as_echo_n_body='eval
11841      arg=$1;
11842      case $arg in #(
11843      *"$as_nl"*)
11844	expr "X$arg" : "X\\(.*\\)$as_nl";
11845	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11846      esac;
11847      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11848    '
11849    export as_echo_n_body
11850    as_echo_n='sh -c $as_echo_n_body as_echo'
11851  fi
11852  export as_echo_body
11853  as_echo='sh -c $as_echo_body as_echo'
11854fi
11855
11856# The user is always right.
11857if test "${PATH_SEPARATOR+set}" != set; then
11858  PATH_SEPARATOR=:
11859  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11860    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11861      PATH_SEPARATOR=';'
11862  }
11863fi
11864
11865
11866# IFS
11867# We need space, tab and new line, in precisely that order.  Quoting is
11868# there to prevent editors from complaining about space-tab.
11869# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11870# splitting by setting IFS to empty value.)
11871IFS=" ""	$as_nl"
11872
11873# Find who we are.  Look in the path if we contain no directory separator.
11874as_myself=
11875case $0 in #((
11876  *[\\/]* ) as_myself=$0 ;;
11877  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878for as_dir in $PATH
11879do
11880  IFS=$as_save_IFS
11881  test -z "$as_dir" && as_dir=.
11882    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11883  done
11884IFS=$as_save_IFS
11885
11886     ;;
11887esac
11888# We did not find ourselves, most probably we were run as `sh COMMAND'
11889# in which case we are not to be found in the path.
11890if test "x$as_myself" = x; then
11891  as_myself=$0
11892fi
11893if test ! -f "$as_myself"; then
11894  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11895  exit 1
11896fi
11897
11898# Unset variables that we do not need and which cause bugs (e.g. in
11899# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11900# suppresses any "Segmentation fault" message there.  '((' could
11901# trigger a bug in pdksh 5.2.14.
11902for as_var in BASH_ENV ENV MAIL MAILPATH
11903do eval test x\${$as_var+set} = xset \
11904  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11905done
11906PS1='$ '
11907PS2='> '
11908PS4='+ '
11909
11910# NLS nuisances.
11911LC_ALL=C
11912export LC_ALL
11913LANGUAGE=C
11914export LANGUAGE
11915
11916# CDPATH.
11917(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11918
11919
11920# as_fn_error STATUS ERROR [LINENO LOG_FD]
11921# ----------------------------------------
11922# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11923# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11924# script with STATUS, using 1 if that was 0.
11925as_fn_error ()
11926{
11927  as_status=$1; test $as_status -eq 0 && as_status=1
11928  if test "$4"; then
11929    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11930    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11931  fi
11932  $as_echo "$as_me: error: $2" >&2
11933  as_fn_exit $as_status
11934} # as_fn_error
11935
11936
11937# as_fn_set_status STATUS
11938# -----------------------
11939# Set $? to STATUS, without forking.
11940as_fn_set_status ()
11941{
11942  return $1
11943} # as_fn_set_status
11944
11945# as_fn_exit STATUS
11946# -----------------
11947# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11948as_fn_exit ()
11949{
11950  set +e
11951  as_fn_set_status $1
11952  exit $1
11953} # as_fn_exit
11954
11955# as_fn_unset VAR
11956# ---------------
11957# Portably unset VAR.
11958as_fn_unset ()
11959{
11960  { eval $1=; unset $1;}
11961}
11962as_unset=as_fn_unset
11963# as_fn_append VAR VALUE
11964# ----------------------
11965# Append the text in VALUE to the end of the definition contained in VAR. Take
11966# advantage of any shell optimizations that allow amortized linear growth over
11967# repeated appends, instead of the typical quadratic growth present in naive
11968# implementations.
11969if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11970  eval 'as_fn_append ()
11971  {
11972    eval $1+=\$2
11973  }'
11974else
11975  as_fn_append ()
11976  {
11977    eval $1=\$$1\$2
11978  }
11979fi # as_fn_append
11980
11981# as_fn_arith ARG...
11982# ------------------
11983# Perform arithmetic evaluation on the ARGs, and store the result in the
11984# global $as_val. Take advantage of shells that can avoid forks. The arguments
11985# must be portable across $(()) and expr.
11986if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11987  eval 'as_fn_arith ()
11988  {
11989    as_val=$(( $* ))
11990  }'
11991else
11992  as_fn_arith ()
11993  {
11994    as_val=`expr "$@" || test $? -eq 1`
11995  }
11996fi # as_fn_arith
11997
11998
11999if expr a : '\(a\)' >/dev/null 2>&1 &&
12000   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12001  as_expr=expr
12002else
12003  as_expr=false
12004fi
12005
12006if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12007  as_basename=basename
12008else
12009  as_basename=false
12010fi
12011
12012if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12013  as_dirname=dirname
12014else
12015  as_dirname=false
12016fi
12017
12018as_me=`$as_basename -- "$0" ||
12019$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12020	 X"$0" : 'X\(//\)$' \| \
12021	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12022$as_echo X/"$0" |
12023    sed '/^.*\/\([^/][^/]*\)\/*$/{
12024	    s//\1/
12025	    q
12026	  }
12027	  /^X\/\(\/\/\)$/{
12028	    s//\1/
12029	    q
12030	  }
12031	  /^X\/\(\/\).*/{
12032	    s//\1/
12033	    q
12034	  }
12035	  s/.*/./; q'`
12036
12037# Avoid depending upon Character Ranges.
12038as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12039as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12040as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12041as_cr_digits='0123456789'
12042as_cr_alnum=$as_cr_Letters$as_cr_digits
12043
12044ECHO_C= ECHO_N= ECHO_T=
12045case `echo -n x` in #(((((
12046-n*)
12047  case `echo 'xy\c'` in
12048  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12049  xy)  ECHO_C='\c';;
12050  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12051       ECHO_T='	';;
12052  esac;;
12053*)
12054  ECHO_N='-n';;
12055esac
12056
12057rm -f conf$$ conf$$.exe conf$$.file
12058if test -d conf$$.dir; then
12059  rm -f conf$$.dir/conf$$.file
12060else
12061  rm -f conf$$.dir
12062  mkdir conf$$.dir 2>/dev/null
12063fi
12064if (echo >conf$$.file) 2>/dev/null; then
12065  if ln -s conf$$.file conf$$ 2>/dev/null; then
12066    as_ln_s='ln -s'
12067    # ... but there are two gotchas:
12068    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12069    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12070    # In both cases, we have to default to `cp -p'.
12071    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12072      as_ln_s='cp -p'
12073  elif ln conf$$.file conf$$ 2>/dev/null; then
12074    as_ln_s=ln
12075  else
12076    as_ln_s='cp -p'
12077  fi
12078else
12079  as_ln_s='cp -p'
12080fi
12081rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12082rmdir conf$$.dir 2>/dev/null
12083
12084
12085# as_fn_mkdir_p
12086# -------------
12087# Create "$as_dir" as a directory, including parents if necessary.
12088as_fn_mkdir_p ()
12089{
12090
12091  case $as_dir in #(
12092  -*) as_dir=./$as_dir;;
12093  esac
12094  test -d "$as_dir" || eval $as_mkdir_p || {
12095    as_dirs=
12096    while :; do
12097      case $as_dir in #(
12098      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12099      *) as_qdir=$as_dir;;
12100      esac
12101      as_dirs="'$as_qdir' $as_dirs"
12102      as_dir=`$as_dirname -- "$as_dir" ||
12103$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12104	 X"$as_dir" : 'X\(//\)[^/]' \| \
12105	 X"$as_dir" : 'X\(//\)$' \| \
12106	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12107$as_echo X"$as_dir" |
12108    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12109	    s//\1/
12110	    q
12111	  }
12112	  /^X\(\/\/\)[^/].*/{
12113	    s//\1/
12114	    q
12115	  }
12116	  /^X\(\/\/\)$/{
12117	    s//\1/
12118	    q
12119	  }
12120	  /^X\(\/\).*/{
12121	    s//\1/
12122	    q
12123	  }
12124	  s/.*/./; q'`
12125      test -d "$as_dir" && break
12126    done
12127    test -z "$as_dirs" || eval "mkdir $as_dirs"
12128  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12129
12130
12131} # as_fn_mkdir_p
12132if mkdir -p . 2>/dev/null; then
12133  as_mkdir_p='mkdir -p "$as_dir"'
12134else
12135  test -d ./-p && rmdir ./-p
12136  as_mkdir_p=false
12137fi
12138
12139if test -x / >/dev/null 2>&1; then
12140  as_test_x='test -x'
12141else
12142  if ls -dL / >/dev/null 2>&1; then
12143    as_ls_L_option=L
12144  else
12145    as_ls_L_option=
12146  fi
12147  as_test_x='
12148    eval sh -c '\''
12149      if test -d "$1"; then
12150	test -d "$1/.";
12151      else
12152	case $1 in #(
12153	-*)set "./$1";;
12154	esac;
12155	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12156	???[sx]*):;;*)false;;esac;fi
12157    '\'' sh
12158  '
12159fi
12160as_executable_p=$as_test_x
12161
12162# Sed expression to map a string onto a valid CPP name.
12163as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12164
12165# Sed expression to map a string onto a valid variable name.
12166as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12167
12168
12169exec 6>&1
12170## ----------------------------------- ##
12171## Main body of $CONFIG_STATUS script. ##
12172## ----------------------------------- ##
12173_ASEOF
12174test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12175
12176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12177# Save the log message, to keep $0 and so on meaningful, and to
12178# report actual input values of CONFIG_FILES etc. instead of their
12179# values after options handling.
12180ac_log="
12181This file was extended by libltdl $as_me 2.2.6b, which was
12182generated by GNU Autoconf 2.68.  Invocation command line was
12183
12184  CONFIG_FILES    = $CONFIG_FILES
12185  CONFIG_HEADERS  = $CONFIG_HEADERS
12186  CONFIG_LINKS    = $CONFIG_LINKS
12187  CONFIG_COMMANDS = $CONFIG_COMMANDS
12188  $ $0 $@
12189
12190on `(hostname || uname -n) 2>/dev/null | sed 1q`
12191"
12192
12193_ACEOF
12194
12195case $ac_config_files in *"
12196"*) set x $ac_config_files; shift; ac_config_files=$*;;
12197esac
12198
12199case $ac_config_headers in *"
12200"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12201esac
12202
12203
12204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12205# Files that config.status was made for.
12206config_files="$ac_config_files"
12207config_headers="$ac_config_headers"
12208config_commands="$ac_config_commands"
12209
12210_ACEOF
12211
12212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12213ac_cs_usage="\
12214\`$as_me' instantiates files and other configuration actions
12215from templates according to the current configuration.  Unless the files
12216and actions are specified as TAGs, all are instantiated by default.
12217
12218Usage: $0 [OPTION]... [TAG]...
12219
12220  -h, --help       print this help, then exit
12221  -V, --version    print version number and configuration settings, then exit
12222      --config     print configuration, then exit
12223  -q, --quiet, --silent
12224                   do not print progress messages
12225  -d, --debug      don't remove temporary files
12226      --recheck    update $as_me by reconfiguring in the same conditions
12227      --file=FILE[:TEMPLATE]
12228                   instantiate the configuration file FILE
12229      --header=FILE[:TEMPLATE]
12230                   instantiate the configuration header FILE
12231
12232Configuration files:
12233$config_files
12234
12235Configuration headers:
12236$config_headers
12237
12238Configuration commands:
12239$config_commands
12240
12241Report bugs to <bug-libtool@gnu.org>."
12242
12243_ACEOF
12244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12245ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12246ac_cs_version="\\
12247libltdl config.status 2.2.6b
12248configured by $0, generated by GNU Autoconf 2.68,
12249  with options \\"\$ac_cs_config\\"
12250
12251Copyright (C) 2010 Free Software Foundation, Inc.
12252This config.status script is free software; the Free Software Foundation
12253gives unlimited permission to copy, distribute and modify it."
12254
12255ac_pwd='$ac_pwd'
12256srcdir='$srcdir'
12257INSTALL='$INSTALL'
12258MKDIR_P='$MKDIR_P'
12259AWK='$AWK'
12260test -n "\$AWK" || AWK=awk
12261_ACEOF
12262
12263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12264# The default lists apply if the user does not specify any file.
12265ac_need_defaults=:
12266while test $# != 0
12267do
12268  case $1 in
12269  --*=?*)
12270    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12271    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12272    ac_shift=:
12273    ;;
12274  --*=)
12275    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12276    ac_optarg=
12277    ac_shift=:
12278    ;;
12279  *)
12280    ac_option=$1
12281    ac_optarg=$2
12282    ac_shift=shift
12283    ;;
12284  esac
12285
12286  case $ac_option in
12287  # Handling of the options.
12288  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12289    ac_cs_recheck=: ;;
12290  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12291    $as_echo "$ac_cs_version"; exit ;;
12292  --config | --confi | --conf | --con | --co | --c )
12293    $as_echo "$ac_cs_config"; exit ;;
12294  --debug | --debu | --deb | --de | --d | -d )
12295    debug=: ;;
12296  --file | --fil | --fi | --f )
12297    $ac_shift
12298    case $ac_optarg in
12299    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12300    '') as_fn_error $? "missing file argument" ;;
12301    esac
12302    as_fn_append CONFIG_FILES " '$ac_optarg'"
12303    ac_need_defaults=false;;
12304  --header | --heade | --head | --hea )
12305    $ac_shift
12306    case $ac_optarg in
12307    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12308    esac
12309    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12310    ac_need_defaults=false;;
12311  --he | --h)
12312    # Conflict between --help and --header
12313    as_fn_error $? "ambiguous option: \`$1'
12314Try \`$0 --help' for more information.";;
12315  --help | --hel | -h )
12316    $as_echo "$ac_cs_usage"; exit ;;
12317  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12318  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12319    ac_cs_silent=: ;;
12320
12321  # This is an error.
12322  -*) as_fn_error $? "unrecognized option: \`$1'
12323Try \`$0 --help' for more information." ;;
12324
12325  *) as_fn_append ac_config_targets " $1"
12326     ac_need_defaults=false ;;
12327
12328  esac
12329  shift
12330done
12331
12332ac_configure_extra_args=
12333
12334if $ac_cs_silent; then
12335  exec 6>/dev/null
12336  ac_configure_extra_args="$ac_configure_extra_args --silent"
12337fi
12338
12339_ACEOF
12340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12341if \$ac_cs_recheck; then
12342  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12343  shift
12344  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12345  CONFIG_SHELL='$SHELL'
12346  export CONFIG_SHELL
12347  exec "\$@"
12348fi
12349
12350_ACEOF
12351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12352exec 5>>config.log
12353{
12354  echo
12355  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12356## Running $as_me. ##
12357_ASBOX
12358  $as_echo "$ac_log"
12359} >&5
12360
12361_ACEOF
12362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12363#
12364# INIT-COMMANDS
12365#
12366AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12367
12368
12369# The HP-UX ksh and POSIX shell print the target directory to stdout
12370# if CDPATH is set.
12371(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12372
12373sed_quote_subst='$sed_quote_subst'
12374double_quote_subst='$double_quote_subst'
12375delay_variable_subst='$delay_variable_subst'
12376macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12377macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12378AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12379DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12380OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12381enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12382enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12383pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12384enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12385host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12386host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12387host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12388build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12389build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12390build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12391SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12392Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12393GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12394EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12395FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12396LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12397NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12398LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12399max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12400ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12401exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12402lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12403lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12404lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12405reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12406reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12407deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12408file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12409AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12410AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12411STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12412RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12413old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12414old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12415old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12416CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12417CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12418compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12419GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12420lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12421lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12422lt_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"`'
12423lt_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"`'
12424objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12425SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12426ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12427MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12428lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12429lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12430lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12431lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12432lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12433need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12434DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12435NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12436LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12437OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12438OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12439libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12440shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12441extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12442archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12443enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12444export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12445whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12446compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12447old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12448old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12449archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12450archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12451module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12452module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12453with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12454allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12455no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12456hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12457hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12458hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12459hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12460hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12461hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12462hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12463hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12464inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12465link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12466fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12467always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12468export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12469exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12470include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12471prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12472file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12473variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12474need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12475need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12476version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12477runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12478shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12479shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12480libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12481library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12482soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12483postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12484postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12485finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12486finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12487hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12488sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12489sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12490hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12491enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12492enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12493enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12494old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12495striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12496
12497LTCC='$LTCC'
12498LTCFLAGS='$LTCFLAGS'
12499compiler='$compiler_DEFAULT'
12500
12501# Quote evaled strings.
12502for var in SED \
12503GREP \
12504EGREP \
12505FGREP \
12506LD \
12507NM \
12508LN_S \
12509lt_SP2NL \
12510lt_NL2SP \
12511reload_flag \
12512deplibs_check_method \
12513file_magic_cmd \
12514AR \
12515AR_FLAGS \
12516STRIP \
12517RANLIB \
12518CC \
12519CFLAGS \
12520compiler \
12521lt_cv_sys_global_symbol_pipe \
12522lt_cv_sys_global_symbol_to_cdecl \
12523lt_cv_sys_global_symbol_to_c_name_address \
12524lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12525SHELL \
12526ECHO \
12527lt_prog_compiler_no_builtin_flag \
12528lt_prog_compiler_wl \
12529lt_prog_compiler_pic \
12530lt_prog_compiler_static \
12531lt_cv_prog_compiler_c_o \
12532need_locks \
12533DSYMUTIL \
12534NMEDIT \
12535LIPO \
12536OTOOL \
12537OTOOL64 \
12538shrext_cmds \
12539export_dynamic_flag_spec \
12540whole_archive_flag_spec \
12541compiler_needs_object \
12542with_gnu_ld \
12543allow_undefined_flag \
12544no_undefined_flag \
12545hardcode_libdir_flag_spec \
12546hardcode_libdir_flag_spec_ld \
12547hardcode_libdir_separator \
12548fix_srcfile_path \
12549exclude_expsyms \
12550include_expsyms \
12551file_list_spec \
12552variables_saved_for_relink \
12553libname_spec \
12554library_names_spec \
12555soname_spec \
12556finish_eval \
12557old_striplib \
12558striplib; do
12559    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12560    *[\\\\\\\`\\"\\\$]*)
12561      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12562      ;;
12563    *)
12564      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12565      ;;
12566    esac
12567done
12568
12569# Double-quote double-evaled strings.
12570for var in reload_cmds \
12571old_postinstall_cmds \
12572old_postuninstall_cmds \
12573old_archive_cmds \
12574extract_expsyms_cmds \
12575old_archive_from_new_cmds \
12576old_archive_from_expsyms_cmds \
12577archive_cmds \
12578archive_expsym_cmds \
12579module_cmds \
12580module_expsym_cmds \
12581export_symbols_cmds \
12582prelink_cmds \
12583postinstall_cmds \
12584postuninstall_cmds \
12585finish_cmds \
12586sys_lib_search_path_spec \
12587sys_lib_dlsearch_path_spec; do
12588    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12589    *[\\\\\\\`\\"\\\$]*)
12590      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12591      ;;
12592    *)
12593      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12594      ;;
12595    esac
12596done
12597
12598# Fix-up fallback echo if it was mangled by the above quoting rules.
12599case \$lt_ECHO in
12600*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12601  ;;
12602esac
12603
12604ac_aux_dir='$ac_aux_dir'
12605xsi_shell='$xsi_shell'
12606lt_shell_append='$lt_shell_append'
12607
12608# See if we are running on zsh, and set the options which allow our
12609# commands through without removal of \ escapes INIT.
12610if test -n "\${ZSH_VERSION+set}" ; then
12611   setopt NO_GLOB_SUBST
12612fi
12613
12614
12615    PACKAGE='$PACKAGE'
12616    VERSION='$VERSION'
12617    TIMESTAMP='$TIMESTAMP'
12618    RM='$RM'
12619    ofile='$ofile'
12620
12621
12622
12623
12624_ACEOF
12625
12626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12627
12628# Handling of arguments.
12629for ac_config_target in $ac_config_targets
12630do
12631  case $ac_config_target in
12632    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
12633    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12634    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12635    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12636
12637  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12638  esac
12639done
12640
12641
12642# If the user did not use the arguments to specify the items to instantiate,
12643# then the envvar interface is used.  Set only those that are not.
12644# We use the long form for the default assignment because of an extremely
12645# bizarre bug on SunOS 4.1.3.
12646if $ac_need_defaults; then
12647  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12648  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12649  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12650fi
12651
12652# Have a temporary directory for convenience.  Make it in the build tree
12653# simply because there is no reason against having it here, and in addition,
12654# creating and moving files from /tmp can sometimes cause problems.
12655# Hook for its removal unless debugging.
12656# Note that there is a small window in which the directory will not be cleaned:
12657# after its creation but before its name has been assigned to `$tmp'.
12658$debug ||
12659{
12660  tmp= ac_tmp=
12661  trap 'exit_status=$?
12662  : "${ac_tmp:=$tmp}"
12663  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12664' 0
12665  trap 'as_fn_exit 1' 1 2 13 15
12666}
12667# Create a (secure) tmp directory for tmp files.
12668
12669{
12670  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12671  test -d "$tmp"
12672}  ||
12673{
12674  tmp=./conf$$-$RANDOM
12675  (umask 077 && mkdir "$tmp")
12676} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12677ac_tmp=$tmp
12678
12679# Set up the scripts for CONFIG_FILES section.
12680# No need to generate them if there are no CONFIG_FILES.
12681# This happens for instance with `./config.status config.h'.
12682if test -n "$CONFIG_FILES"; then
12683
12684
12685ac_cr=`echo X | tr X '\015'`
12686# On cygwin, bash can eat \r inside `` if the user requested igncr.
12687# But we know of no other shell where ac_cr would be empty at this
12688# point, so we can use a bashism as a fallback.
12689if test "x$ac_cr" = x; then
12690  eval ac_cr=\$\'\\r\'
12691fi
12692ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12693if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12694  ac_cs_awk_cr='\\r'
12695else
12696  ac_cs_awk_cr=$ac_cr
12697fi
12698
12699echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12700_ACEOF
12701
12702
12703{
12704  echo "cat >conf$$subs.awk <<_ACEOF" &&
12705  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12706  echo "_ACEOF"
12707} >conf$$subs.sh ||
12708  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12709ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12710ac_delim='%!_!# '
12711for ac_last_try in false false false false false :; do
12712  . ./conf$$subs.sh ||
12713    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12714
12715  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12716  if test $ac_delim_n = $ac_delim_num; then
12717    break
12718  elif $ac_last_try; then
12719    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12720  else
12721    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12722  fi
12723done
12724rm -f conf$$subs.sh
12725
12726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12727cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12728_ACEOF
12729sed -n '
12730h
12731s/^/S["/; s/!.*/"]=/
12732p
12733g
12734s/^[^!]*!//
12735:repl
12736t repl
12737s/'"$ac_delim"'$//
12738t delim
12739:nl
12740h
12741s/\(.\{148\}\)..*/\1/
12742t more1
12743s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12744p
12745n
12746b repl
12747:more1
12748s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12749p
12750g
12751s/.\{148\}//
12752t nl
12753:delim
12754h
12755s/\(.\{148\}\)..*/\1/
12756t more2
12757s/["\\]/\\&/g; s/^/"/; s/$/"/
12758p
12759b
12760:more2
12761s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12762p
12763g
12764s/.\{148\}//
12765t delim
12766' <conf$$subs.awk | sed '
12767/^[^""]/{
12768  N
12769  s/\n//
12770}
12771' >>$CONFIG_STATUS || ac_write_fail=1
12772rm -f conf$$subs.awk
12773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12774_ACAWK
12775cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12776  for (key in S) S_is_set[key] = 1
12777  FS = ""
12778
12779}
12780{
12781  line = $ 0
12782  nfields = split(line, field, "@")
12783  substed = 0
12784  len = length(field[1])
12785  for (i = 2; i < nfields; i++) {
12786    key = field[i]
12787    keylen = length(key)
12788    if (S_is_set[key]) {
12789      value = S[key]
12790      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12791      len += length(value) + length(field[++i])
12792      substed = 1
12793    } else
12794      len += 1 + keylen
12795  }
12796
12797  print line
12798}
12799
12800_ACAWK
12801_ACEOF
12802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12803if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12804  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12805else
12806  cat
12807fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12808  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12809_ACEOF
12810
12811# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12812# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12813# trailing colons and then remove the whole line if VPATH becomes empty
12814# (actually we leave an empty line to preserve line numbers).
12815if test "x$srcdir" = x.; then
12816  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12817h
12818s///
12819s/^/:/
12820s/[	 ]*$/:/
12821s/:\$(srcdir):/:/g
12822s/:\${srcdir}:/:/g
12823s/:@srcdir@:/:/g
12824s/^:*//
12825s/:*$//
12826x
12827s/\(=[	 ]*\).*/\1/
12828G
12829s/\n//
12830s/^[^=]*=[	 ]*$//
12831}'
12832fi
12833
12834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12835fi # test -n "$CONFIG_FILES"
12836
12837# Set up the scripts for CONFIG_HEADERS section.
12838# No need to generate them if there are no CONFIG_HEADERS.
12839# This happens for instance with `./config.status Makefile'.
12840if test -n "$CONFIG_HEADERS"; then
12841cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12842BEGIN {
12843_ACEOF
12844
12845# Transform confdefs.h into an awk script `defines.awk', embedded as
12846# here-document in config.status, that substitutes the proper values into
12847# config.h.in to produce config.h.
12848
12849# Create a delimiter string that does not exist in confdefs.h, to ease
12850# handling of long lines.
12851ac_delim='%!_!# '
12852for ac_last_try in false false :; do
12853  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12854  if test -z "$ac_tt"; then
12855    break
12856  elif $ac_last_try; then
12857    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12858  else
12859    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12860  fi
12861done
12862
12863# For the awk script, D is an array of macro values keyed by name,
12864# likewise P contains macro parameters if any.  Preserve backslash
12865# newline sequences.
12866
12867ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12868sed -n '
12869s/.\{148\}/&'"$ac_delim"'/g
12870t rset
12871:rset
12872s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12873t def
12874d
12875:def
12876s/\\$//
12877t bsnl
12878s/["\\]/\\&/g
12879s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12880D["\1"]=" \3"/p
12881s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12882d
12883:bsnl
12884s/["\\]/\\&/g
12885s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12886D["\1"]=" \3\\\\\\n"\\/p
12887t cont
12888s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12889t cont
12890d
12891:cont
12892n
12893s/.\{148\}/&'"$ac_delim"'/g
12894t clear
12895:clear
12896s/\\$//
12897t bsnlc
12898s/["\\]/\\&/g; s/^/"/; s/$/"/p
12899d
12900:bsnlc
12901s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12902b cont
12903' <confdefs.h | sed '
12904s/'"$ac_delim"'/"\\\
12905"/g' >>$CONFIG_STATUS || ac_write_fail=1
12906
12907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12908  for (key in D) D_is_set[key] = 1
12909  FS = ""
12910}
12911/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12912  line = \$ 0
12913  split(line, arg, " ")
12914  if (arg[1] == "#") {
12915    defundef = arg[2]
12916    mac1 = arg[3]
12917  } else {
12918    defundef = substr(arg[1], 2)
12919    mac1 = arg[2]
12920  }
12921  split(mac1, mac2, "(") #)
12922  macro = mac2[1]
12923  prefix = substr(line, 1, index(line, defundef) - 1)
12924  if (D_is_set[macro]) {
12925    # Preserve the white space surrounding the "#".
12926    print prefix "define", macro P[macro] D[macro]
12927    next
12928  } else {
12929    # Replace #undef with comments.  This is necessary, for example,
12930    # in the case of _POSIX_SOURCE, which is predefined and required
12931    # on some systems where configure will not decide to define it.
12932    if (defundef == "undef") {
12933      print "/*", prefix defundef, macro, "*/"
12934      next
12935    }
12936  }
12937}
12938{ print }
12939_ACAWK
12940_ACEOF
12941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12942  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12943fi # test -n "$CONFIG_HEADERS"
12944
12945
12946eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12947shift
12948for ac_tag
12949do
12950  case $ac_tag in
12951  :[FHLC]) ac_mode=$ac_tag; continue;;
12952  esac
12953  case $ac_mode$ac_tag in
12954  :[FHL]*:*);;
12955  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12956  :[FH]-) ac_tag=-:-;;
12957  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12958  esac
12959  ac_save_IFS=$IFS
12960  IFS=:
12961  set x $ac_tag
12962  IFS=$ac_save_IFS
12963  shift
12964  ac_file=$1
12965  shift
12966
12967  case $ac_mode in
12968  :L) ac_source=$1;;
12969  :[FH])
12970    ac_file_inputs=
12971    for ac_f
12972    do
12973      case $ac_f in
12974      -) ac_f="$ac_tmp/stdin";;
12975      *) # Look for the file first in the build tree, then in the source tree
12976	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12977	 # because $ac_f cannot contain `:'.
12978	 test -f "$ac_f" ||
12979	   case $ac_f in
12980	   [\\/$]*) false;;
12981	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12982	   esac ||
12983	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12984      esac
12985      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12986      as_fn_append ac_file_inputs " '$ac_f'"
12987    done
12988
12989    # Let's still pretend it is `configure' which instantiates (i.e., don't
12990    # use $as_me), people would be surprised to read:
12991    #    /* config.h.  Generated by config.status.  */
12992    configure_input='Generated from '`
12993	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12994	`' by configure.'
12995    if test x"$ac_file" != x-; then
12996      configure_input="$ac_file.  $configure_input"
12997      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12998$as_echo "$as_me: creating $ac_file" >&6;}
12999    fi
13000    # Neutralize special characters interpreted by sed in replacement strings.
13001    case $configure_input in #(
13002    *\&* | *\|* | *\\* )
13003       ac_sed_conf_input=`$as_echo "$configure_input" |
13004       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13005    *) ac_sed_conf_input=$configure_input;;
13006    esac
13007
13008    case $ac_tag in
13009    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13010      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13011    esac
13012    ;;
13013  esac
13014
13015  ac_dir=`$as_dirname -- "$ac_file" ||
13016$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13017	 X"$ac_file" : 'X\(//\)[^/]' \| \
13018	 X"$ac_file" : 'X\(//\)$' \| \
13019	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13020$as_echo X"$ac_file" |
13021    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13022	    s//\1/
13023	    q
13024	  }
13025	  /^X\(\/\/\)[^/].*/{
13026	    s//\1/
13027	    q
13028	  }
13029	  /^X\(\/\/\)$/{
13030	    s//\1/
13031	    q
13032	  }
13033	  /^X\(\/\).*/{
13034	    s//\1/
13035	    q
13036	  }
13037	  s/.*/./; q'`
13038  as_dir="$ac_dir"; as_fn_mkdir_p
13039  ac_builddir=.
13040
13041case "$ac_dir" in
13042.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13043*)
13044  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13045  # A ".." for each directory in $ac_dir_suffix.
13046  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13047  case $ac_top_builddir_sub in
13048  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13049  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13050  esac ;;
13051esac
13052ac_abs_top_builddir=$ac_pwd
13053ac_abs_builddir=$ac_pwd$ac_dir_suffix
13054# for backward compatibility:
13055ac_top_builddir=$ac_top_build_prefix
13056
13057case $srcdir in
13058  .)  # We are building in place.
13059    ac_srcdir=.
13060    ac_top_srcdir=$ac_top_builddir_sub
13061    ac_abs_top_srcdir=$ac_pwd ;;
13062  [\\/]* | ?:[\\/]* )  # Absolute name.
13063    ac_srcdir=$srcdir$ac_dir_suffix;
13064    ac_top_srcdir=$srcdir
13065    ac_abs_top_srcdir=$srcdir ;;
13066  *) # Relative name.
13067    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13068    ac_top_srcdir=$ac_top_build_prefix$srcdir
13069    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13070esac
13071ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13072
13073
13074  case $ac_mode in
13075  :F)
13076  #
13077  # CONFIG_FILE
13078  #
13079
13080  case $INSTALL in
13081  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13082  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13083  esac
13084  ac_MKDIR_P=$MKDIR_P
13085  case $MKDIR_P in
13086  [\\/$]* | ?:[\\/]* ) ;;
13087  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13088  esac
13089_ACEOF
13090
13091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13092# If the template does not know about datarootdir, expand it.
13093# FIXME: This hack should be removed a few years after 2.60.
13094ac_datarootdir_hack=; ac_datarootdir_seen=
13095ac_sed_dataroot='
13096/datarootdir/ {
13097  p
13098  q
13099}
13100/@datadir@/p
13101/@docdir@/p
13102/@infodir@/p
13103/@localedir@/p
13104/@mandir@/p'
13105case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13106*datarootdir*) ac_datarootdir_seen=yes;;
13107*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13108  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13109$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13110_ACEOF
13111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13112  ac_datarootdir_hack='
13113  s&@datadir@&$datadir&g
13114  s&@docdir@&$docdir&g
13115  s&@infodir@&$infodir&g
13116  s&@localedir@&$localedir&g
13117  s&@mandir@&$mandir&g
13118  s&\\\${datarootdir}&$datarootdir&g' ;;
13119esac
13120_ACEOF
13121
13122# Neutralize VPATH when `$srcdir' = `.'.
13123# Shell code in configure.ac might set extrasub.
13124# FIXME: do we really want to maintain this feature?
13125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13126ac_sed_extra="$ac_vpsub
13127$extrasub
13128_ACEOF
13129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13130:t
13131/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13132s|@configure_input@|$ac_sed_conf_input|;t t
13133s&@top_builddir@&$ac_top_builddir_sub&;t t
13134s&@top_build_prefix@&$ac_top_build_prefix&;t t
13135s&@srcdir@&$ac_srcdir&;t t
13136s&@abs_srcdir@&$ac_abs_srcdir&;t t
13137s&@top_srcdir@&$ac_top_srcdir&;t t
13138s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13139s&@builddir@&$ac_builddir&;t t
13140s&@abs_builddir@&$ac_abs_builddir&;t t
13141s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13142s&@INSTALL@&$ac_INSTALL&;t t
13143s&@MKDIR_P@&$ac_MKDIR_P&;t t
13144$ac_datarootdir_hack
13145"
13146eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13147  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13148
13149test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13150  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13151  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13152      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13153  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13154which seems to be undefined.  Please make sure it is defined" >&5
13155$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13156which seems to be undefined.  Please make sure it is defined" >&2;}
13157
13158  rm -f "$ac_tmp/stdin"
13159  case $ac_file in
13160  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13161  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13162  esac \
13163  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13164 ;;
13165  :H)
13166  #
13167  # CONFIG_HEADER
13168  #
13169  if test x"$ac_file" != x-; then
13170    {
13171      $as_echo "/* $configure_input  */" \
13172      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13173    } >"$ac_tmp/config.h" \
13174      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13175    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13176      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13177$as_echo "$as_me: $ac_file is unchanged" >&6;}
13178    else
13179      rm -f "$ac_file"
13180      mv "$ac_tmp/config.h" "$ac_file" \
13181	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13182    fi
13183  else
13184    $as_echo "/* $configure_input  */" \
13185      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13186      || as_fn_error $? "could not create -" "$LINENO" 5
13187  fi
13188# Compute "$ac_file"'s index in $config_headers.
13189_am_arg="$ac_file"
13190_am_stamp_count=1
13191for _am_header in $config_headers :; do
13192  case $_am_header in
13193    $_am_arg | $_am_arg:* )
13194      break ;;
13195    * )
13196      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13197  esac
13198done
13199echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13200$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13201	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13202	 X"$_am_arg" : 'X\(//\)$' \| \
13203	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13204$as_echo X"$_am_arg" |
13205    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13206	    s//\1/
13207	    q
13208	  }
13209	  /^X\(\/\/\)[^/].*/{
13210	    s//\1/
13211	    q
13212	  }
13213	  /^X\(\/\/\)$/{
13214	    s//\1/
13215	    q
13216	  }
13217	  /^X\(\/\).*/{
13218	    s//\1/
13219	    q
13220	  }
13221	  s/.*/./; q'`/stamp-h$_am_stamp_count
13222 ;;
13223
13224  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13225$as_echo "$as_me: executing $ac_file commands" >&6;}
13226 ;;
13227  esac
13228
13229
13230  case $ac_file$ac_mode in
13231    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13232  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13233  # are listed without --file.  Let's play safe and only enable the eval
13234  # if we detect the quoting.
13235  case $CONFIG_FILES in
13236  *\'*) eval set x "$CONFIG_FILES" ;;
13237  *)   set x $CONFIG_FILES ;;
13238  esac
13239  shift
13240  for mf
13241  do
13242    # Strip MF so we end up with the name of the file.
13243    mf=`echo "$mf" | sed -e 's/:.*$//'`
13244    # Check whether this is an Automake generated Makefile or not.
13245    # We used to match only the files named `Makefile.in', but
13246    # some people rename them; so instead we look at the file content.
13247    # Grep'ing the first line is not enough: some people post-process
13248    # each Makefile.in and add a new line on top of each file to say so.
13249    # Grep'ing the whole file is not good either: AIX grep has a line
13250    # limit of 2048, but all sed's we know have understand at least 4000.
13251    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13252      dirpart=`$as_dirname -- "$mf" ||
13253$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13254	 X"$mf" : 'X\(//\)[^/]' \| \
13255	 X"$mf" : 'X\(//\)$' \| \
13256	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13257$as_echo X"$mf" |
13258    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13259	    s//\1/
13260	    q
13261	  }
13262	  /^X\(\/\/\)[^/].*/{
13263	    s//\1/
13264	    q
13265	  }
13266	  /^X\(\/\/\)$/{
13267	    s//\1/
13268	    q
13269	  }
13270	  /^X\(\/\).*/{
13271	    s//\1/
13272	    q
13273	  }
13274	  s/.*/./; q'`
13275    else
13276      continue
13277    fi
13278    # Extract the definition of DEPDIR, am__include, and am__quote
13279    # from the Makefile without running `make'.
13280    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13281    test -z "$DEPDIR" && continue
13282    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13283    test -z "am__include" && continue
13284    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13285    # When using ansi2knr, U may be empty or an underscore; expand it
13286    U=`sed -n 's/^U = //p' < "$mf"`
13287    # Find all dependency output files, they are included files with
13288    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13289    # simplest approach to changing $(DEPDIR) to its actual value in the
13290    # expansion.
13291    for file in `sed -n "
13292      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13293	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13294      # Make sure the directory exists.
13295      test -f "$dirpart/$file" && continue
13296      fdir=`$as_dirname -- "$file" ||
13297$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13298	 X"$file" : 'X\(//\)[^/]' \| \
13299	 X"$file" : 'X\(//\)$' \| \
13300	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13301$as_echo X"$file" |
13302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13303	    s//\1/
13304	    q
13305	  }
13306	  /^X\(\/\/\)[^/].*/{
13307	    s//\1/
13308	    q
13309	  }
13310	  /^X\(\/\/\)$/{
13311	    s//\1/
13312	    q
13313	  }
13314	  /^X\(\/\).*/{
13315	    s//\1/
13316	    q
13317	  }
13318	  s/.*/./; q'`
13319      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13320      # echo "creating $dirpart/$file"
13321      echo '# dummy' > "$dirpart/$file"
13322    done
13323  done
13324}
13325 ;;
13326    "libtool":C)
13327
13328    # See if we are running on zsh, and set the options which allow our
13329    # commands through without removal of \ escapes.
13330    if test -n "${ZSH_VERSION+set}" ; then
13331      setopt NO_GLOB_SUBST
13332    fi
13333
13334    cfgfile="${ofile}T"
13335    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13336    $RM "$cfgfile"
13337
13338    cat <<_LT_EOF >> "$cfgfile"
13339#! $SHELL
13340
13341# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13342# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13343# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13344#
13345#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13346#                 2006, 2007, 2008 Free Software Foundation, Inc.
13347#   Written by Gordon Matzigkeit, 1996
13348#
13349#   This file is part of GNU Libtool.
13350#
13351# GNU Libtool is free software; you can redistribute it and/or
13352# modify it under the terms of the GNU General Public License as
13353# published by the Free Software Foundation; either version 2 of
13354# the License, or (at your option) any later version.
13355#
13356# As a special exception to the GNU General Public License,
13357# if you distribute this file as part of a program or library that
13358# is built using GNU Libtool, you may include this file under the
13359# same distribution terms that you use for the rest of that program.
13360#
13361# GNU Libtool is distributed in the hope that it will be useful,
13362# but WITHOUT ANY WARRANTY; without even the implied warranty of
13363# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13364# GNU General Public License for more details.
13365#
13366# You should have received a copy of the GNU General Public License
13367# along with GNU Libtool; see the file COPYING.  If not, a copy
13368# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13369# obtained by writing to the Free Software Foundation, Inc.,
13370# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13371
13372
13373# The names of the tagged configurations supported by this script.
13374available_tags=""
13375
13376# ### BEGIN LIBTOOL CONFIG
13377
13378# Which release of libtool.m4 was used?
13379macro_version=$macro_version
13380macro_revision=$macro_revision
13381
13382# Assembler program.
13383AS=$AS
13384
13385# DLL creation program.
13386DLLTOOL=$DLLTOOL
13387
13388# Object dumper program.
13389OBJDUMP=$OBJDUMP
13390
13391# Whether or not to build shared libraries.
13392build_libtool_libs=$enable_shared
13393
13394# Whether or not to build static libraries.
13395build_old_libs=$enable_static
13396
13397# What type of objects to build.
13398pic_mode=$pic_mode
13399
13400# Whether or not to optimize for fast installation.
13401fast_install=$enable_fast_install
13402
13403# The host system.
13404host_alias=$host_alias
13405host=$host
13406host_os=$host_os
13407
13408# The build system.
13409build_alias=$build_alias
13410build=$build
13411build_os=$build_os
13412
13413# A sed program that does not truncate output.
13414SED=$lt_SED
13415
13416# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13417Xsed="\$SED -e 1s/^X//"
13418
13419# A grep program that handles long lines.
13420GREP=$lt_GREP
13421
13422# An ERE matcher.
13423EGREP=$lt_EGREP
13424
13425# A literal string matcher.
13426FGREP=$lt_FGREP
13427
13428# A BSD- or MS-compatible name lister.
13429NM=$lt_NM
13430
13431# Whether we need soft or hard links.
13432LN_S=$lt_LN_S
13433
13434# What is the maximum length of a command?
13435max_cmd_len=$max_cmd_len
13436
13437# Object file suffix (normally "o").
13438objext=$ac_objext
13439
13440# Executable file suffix (normally "").
13441exeext=$exeext
13442
13443# whether the shell understands "unset".
13444lt_unset=$lt_unset
13445
13446# turn spaces into newlines.
13447SP2NL=$lt_lt_SP2NL
13448
13449# turn newlines into spaces.
13450NL2SP=$lt_lt_NL2SP
13451
13452# How to create reloadable object files.
13453reload_flag=$lt_reload_flag
13454reload_cmds=$lt_reload_cmds
13455
13456# Method to check whether dependent libraries are shared objects.
13457deplibs_check_method=$lt_deplibs_check_method
13458
13459# Command to use when deplibs_check_method == "file_magic".
13460file_magic_cmd=$lt_file_magic_cmd
13461
13462# The archiver.
13463AR=$lt_AR
13464AR_FLAGS=$lt_AR_FLAGS
13465
13466# A symbol stripping program.
13467STRIP=$lt_STRIP
13468
13469# Commands used to install an old-style archive.
13470RANLIB=$lt_RANLIB
13471old_postinstall_cmds=$lt_old_postinstall_cmds
13472old_postuninstall_cmds=$lt_old_postuninstall_cmds
13473
13474# A C compiler.
13475LTCC=$lt_CC
13476
13477# LTCC compiler flags.
13478LTCFLAGS=$lt_CFLAGS
13479
13480# Take the output of nm and produce a listing of raw symbols and C names.
13481global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13482
13483# Transform the output of nm in a proper C declaration.
13484global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13485
13486# Transform the output of nm in a C name address pair.
13487global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13488
13489# Transform the output of nm in a C name address pair when lib prefix is needed.
13490global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13491
13492# The name of the directory that contains temporary libtool files.
13493objdir=$objdir
13494
13495# Shell to use when invoking shell scripts.
13496SHELL=$lt_SHELL
13497
13498# An echo program that does not interpret backslashes.
13499ECHO=$lt_ECHO
13500
13501# Used to examine libraries when file_magic_cmd begins with "file".
13502MAGIC_CMD=$MAGIC_CMD
13503
13504# Must we lock files when doing compilation?
13505need_locks=$lt_need_locks
13506
13507# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13508DSYMUTIL=$lt_DSYMUTIL
13509
13510# Tool to change global to local symbols on Mac OS X.
13511NMEDIT=$lt_NMEDIT
13512
13513# Tool to manipulate fat objects and archives on Mac OS X.
13514LIPO=$lt_LIPO
13515
13516# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13517OTOOL=$lt_OTOOL
13518
13519# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13520OTOOL64=$lt_OTOOL64
13521
13522# Old archive suffix (normally "a").
13523libext=$libext
13524
13525# Shared library suffix (normally ".so").
13526shrext_cmds=$lt_shrext_cmds
13527
13528# The commands to extract the exported symbol list from a shared archive.
13529extract_expsyms_cmds=$lt_extract_expsyms_cmds
13530
13531# Variables whose values should be saved in libtool wrapper scripts and
13532# restored at link time.
13533variables_saved_for_relink=$lt_variables_saved_for_relink
13534
13535# Do we need the "lib" prefix for modules?
13536need_lib_prefix=$need_lib_prefix
13537
13538# Do we need a version for libraries?
13539need_version=$need_version
13540
13541# Library versioning type.
13542version_type=$version_type
13543
13544# Shared library runtime path variable.
13545runpath_var=$runpath_var
13546
13547# Shared library path variable.
13548shlibpath_var=$shlibpath_var
13549
13550# Is shlibpath searched before the hard-coded library search path?
13551shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13552
13553# Format of library name prefix.
13554libname_spec=$lt_libname_spec
13555
13556# List of archive names.  First name is the real one, the rest are links.
13557# The last name is the one that the linker finds with -lNAME
13558library_names_spec=$lt_library_names_spec
13559
13560# The coded name of the library, if different from the real name.
13561soname_spec=$lt_soname_spec
13562
13563# Command to use after installation of a shared archive.
13564postinstall_cmds=$lt_postinstall_cmds
13565
13566# Command to use after uninstallation of a shared archive.
13567postuninstall_cmds=$lt_postuninstall_cmds
13568
13569# Commands used to finish a libtool library installation in a directory.
13570finish_cmds=$lt_finish_cmds
13571
13572# As "finish_cmds", except a single script fragment to be evaled but
13573# not shown.
13574finish_eval=$lt_finish_eval
13575
13576# Whether we should hardcode library paths into libraries.
13577hardcode_into_libs=$hardcode_into_libs
13578
13579# Compile-time system search path for libraries.
13580sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13581
13582# Run-time system search path for libraries.
13583sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13584
13585# Whether dlopen is supported.
13586dlopen_support=$enable_dlopen
13587
13588# Whether dlopen of programs is supported.
13589dlopen_self=$enable_dlopen_self
13590
13591# Whether dlopen of statically linked programs is supported.
13592dlopen_self_static=$enable_dlopen_self_static
13593
13594# Commands to strip libraries.
13595old_striplib=$lt_old_striplib
13596striplib=$lt_striplib
13597
13598
13599# The linker used to build libraries.
13600LD=$lt_LD
13601
13602# Commands used to build an old-style archive.
13603old_archive_cmds=$lt_old_archive_cmds
13604
13605# A language specific compiler.
13606CC=$lt_compiler
13607
13608# Is the compiler the GNU compiler?
13609with_gcc=$GCC
13610
13611# Compiler flag to turn off builtin functions.
13612no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13613
13614# How to pass a linker flag through the compiler.
13615wl=$lt_lt_prog_compiler_wl
13616
13617# Additional compiler flags for building library objects.
13618pic_flag=$lt_lt_prog_compiler_pic
13619
13620# Compiler flag to prevent dynamic linking.
13621link_static_flag=$lt_lt_prog_compiler_static
13622
13623# Does compiler simultaneously support -c and -o options?
13624compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13625
13626# Whether or not to add -lc for building shared libraries.
13627build_libtool_need_lc=$archive_cmds_need_lc
13628
13629# Whether or not to disallow shared libs when runtime libs are static.
13630allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13631
13632# Compiler flag to allow reflexive dlopens.
13633export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13634
13635# Compiler flag to generate shared objects directly from archives.
13636whole_archive_flag_spec=$lt_whole_archive_flag_spec
13637
13638# Whether the compiler copes with passing no objects directly.
13639compiler_needs_object=$lt_compiler_needs_object
13640
13641# Create an old-style archive from a shared archive.
13642old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13643
13644# Create a temporary old-style archive to link instead of a shared archive.
13645old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13646
13647# Commands used to build a shared archive.
13648archive_cmds=$lt_archive_cmds
13649archive_expsym_cmds=$lt_archive_expsym_cmds
13650
13651# Commands used to build a loadable module if different from building
13652# a shared archive.
13653module_cmds=$lt_module_cmds
13654module_expsym_cmds=$lt_module_expsym_cmds
13655
13656# Whether we are building with GNU ld or not.
13657with_gnu_ld=$lt_with_gnu_ld
13658
13659# Flag that allows shared libraries with undefined symbols to be built.
13660allow_undefined_flag=$lt_allow_undefined_flag
13661
13662# Flag that enforces no undefined symbols.
13663no_undefined_flag=$lt_no_undefined_flag
13664
13665# Flag to hardcode \$libdir into a binary during linking.
13666# This must work even if \$libdir does not exist
13667hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13668
13669# If ld is used when linking, flag to hardcode \$libdir into a binary
13670# during linking.  This must work even if \$libdir does not exist.
13671hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13672
13673# Whether we need a single "-rpath" flag with a separated argument.
13674hardcode_libdir_separator=$lt_hardcode_libdir_separator
13675
13676# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13677# DIR into the resulting binary.
13678hardcode_direct=$hardcode_direct
13679
13680# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13681# DIR into the resulting binary and the resulting library dependency is
13682# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13683# library is relocated.
13684hardcode_direct_absolute=$hardcode_direct_absolute
13685
13686# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13687# into the resulting binary.
13688hardcode_minus_L=$hardcode_minus_L
13689
13690# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13691# into the resulting binary.
13692hardcode_shlibpath_var=$hardcode_shlibpath_var
13693
13694# Set to "yes" if building a shared library automatically hardcodes DIR
13695# into the library and all subsequent libraries and executables linked
13696# against it.
13697hardcode_automatic=$hardcode_automatic
13698
13699# Set to yes if linker adds runtime paths of dependent libraries
13700# to runtime path list.
13701inherit_rpath=$inherit_rpath
13702
13703# Whether libtool must link a program against all its dependency libraries.
13704link_all_deplibs=$link_all_deplibs
13705
13706# Fix the shell variable \$srcfile for the compiler.
13707fix_srcfile_path=$lt_fix_srcfile_path
13708
13709# Set to "yes" if exported symbols are required.
13710always_export_symbols=$always_export_symbols
13711
13712# The commands to list exported symbols.
13713export_symbols_cmds=$lt_export_symbols_cmds
13714
13715# Symbols that should not be listed in the preloaded symbols.
13716exclude_expsyms=$lt_exclude_expsyms
13717
13718# Symbols that must always be exported.
13719include_expsyms=$lt_include_expsyms
13720
13721# Commands necessary for linking programs (against libraries) with templates.
13722prelink_cmds=$lt_prelink_cmds
13723
13724# Specify filename containing input files.
13725file_list_spec=$lt_file_list_spec
13726
13727# How to hardcode a shared library path into an executable.
13728hardcode_action=$hardcode_action
13729
13730# ### END LIBTOOL CONFIG
13731
13732_LT_EOF
13733
13734  case $host_os in
13735  aix3*)
13736    cat <<\_LT_EOF >> "$cfgfile"
13737# AIX sometimes has problems with the GCC collect2 program.  For some
13738# reason, if we set the COLLECT_NAMES environment variable, the problems
13739# vanish in a puff of smoke.
13740if test "X${COLLECT_NAMES+set}" != Xset; then
13741  COLLECT_NAMES=
13742  export COLLECT_NAMES
13743fi
13744_LT_EOF
13745    ;;
13746  esac
13747
13748
13749ltmain="$ac_aux_dir/ltmain.sh"
13750
13751
13752  # We use sed instead of cat because bash on DJGPP gets confused if
13753  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13754  # text mode, it properly converts lines to CR/LF.  This bash problem
13755  # is reportedly fixed, but why not run on old versions too?
13756  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13757    || (rm -f "$cfgfile"; exit 1)
13758
13759  case $xsi_shell in
13760  yes)
13761    cat << \_LT_EOF >> "$cfgfile"
13762
13763# func_dirname file append nondir_replacement
13764# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13765# otherwise set result to NONDIR_REPLACEMENT.
13766func_dirname ()
13767{
13768  case ${1} in
13769    */*) func_dirname_result="${1%/*}${2}" ;;
13770    *  ) func_dirname_result="${3}" ;;
13771  esac
13772}
13773
13774# func_basename file
13775func_basename ()
13776{
13777  func_basename_result="${1##*/}"
13778}
13779
13780# func_dirname_and_basename file append nondir_replacement
13781# perform func_basename and func_dirname in a single function
13782# call:
13783#   dirname:  Compute the dirname of FILE.  If nonempty,
13784#             add APPEND to the result, otherwise set result
13785#             to NONDIR_REPLACEMENT.
13786#             value returned in "$func_dirname_result"
13787#   basename: Compute filename of FILE.
13788#             value retuned in "$func_basename_result"
13789# Implementation must be kept synchronized with func_dirname
13790# and func_basename. For efficiency, we do not delegate to
13791# those functions but instead duplicate the functionality here.
13792func_dirname_and_basename ()
13793{
13794  case ${1} in
13795    */*) func_dirname_result="${1%/*}${2}" ;;
13796    *  ) func_dirname_result="${3}" ;;
13797  esac
13798  func_basename_result="${1##*/}"
13799}
13800
13801# func_stripname prefix suffix name
13802# strip PREFIX and SUFFIX off of NAME.
13803# PREFIX and SUFFIX must not contain globbing or regex special
13804# characters, hashes, percent signs, but SUFFIX may contain a leading
13805# dot (in which case that matches only a dot).
13806func_stripname ()
13807{
13808  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13809  # positional parameters, so assign one to ordinary parameter first.
13810  func_stripname_result=${3}
13811  func_stripname_result=${func_stripname_result#"${1}"}
13812  func_stripname_result=${func_stripname_result%"${2}"}
13813}
13814
13815# func_opt_split
13816func_opt_split ()
13817{
13818  func_opt_split_opt=${1%%=*}
13819  func_opt_split_arg=${1#*=}
13820}
13821
13822# func_lo2o object
13823func_lo2o ()
13824{
13825  case ${1} in
13826    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13827    *)    func_lo2o_result=${1} ;;
13828  esac
13829}
13830
13831# func_xform libobj-or-source
13832func_xform ()
13833{
13834  func_xform_result=${1%.*}.lo
13835}
13836
13837# func_arith arithmetic-term...
13838func_arith ()
13839{
13840  func_arith_result=$(( $* ))
13841}
13842
13843# func_len string
13844# STRING may not start with a hyphen.
13845func_len ()
13846{
13847  func_len_result=${#1}
13848}
13849
13850_LT_EOF
13851    ;;
13852  *) # Bourne compatible functions.
13853    cat << \_LT_EOF >> "$cfgfile"
13854
13855# func_dirname file append nondir_replacement
13856# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13857# otherwise set result to NONDIR_REPLACEMENT.
13858func_dirname ()
13859{
13860  # Extract subdirectory from the argument.
13861  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13862  if test "X$func_dirname_result" = "X${1}"; then
13863    func_dirname_result="${3}"
13864  else
13865    func_dirname_result="$func_dirname_result${2}"
13866  fi
13867}
13868
13869# func_basename file
13870func_basename ()
13871{
13872  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13873}
13874
13875
13876# func_stripname prefix suffix name
13877# strip PREFIX and SUFFIX off of NAME.
13878# PREFIX and SUFFIX must not contain globbing or regex special
13879# characters, hashes, percent signs, but SUFFIX may contain a leading
13880# dot (in which case that matches only a dot).
13881# func_strip_suffix prefix name
13882func_stripname ()
13883{
13884  case ${2} in
13885    .*) func_stripname_result=`$ECHO "X${3}" \
13886           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13887    *)  func_stripname_result=`$ECHO "X${3}" \
13888           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13889  esac
13890}
13891
13892# sed scripts:
13893my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13894my_sed_long_arg='1s/^-[^=]*=//'
13895
13896# func_opt_split
13897func_opt_split ()
13898{
13899  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13900  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13901}
13902
13903# func_lo2o object
13904func_lo2o ()
13905{
13906  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13907}
13908
13909# func_xform libobj-or-source
13910func_xform ()
13911{
13912  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13913}
13914
13915# func_arith arithmetic-term...
13916func_arith ()
13917{
13918  func_arith_result=`expr "$@"`
13919}
13920
13921# func_len string
13922# STRING may not start with a hyphen.
13923func_len ()
13924{
13925  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13926}
13927
13928_LT_EOF
13929esac
13930
13931case $lt_shell_append in
13932  yes)
13933    cat << \_LT_EOF >> "$cfgfile"
13934
13935# func_append var value
13936# Append VALUE to the end of shell variable VAR.
13937func_append ()
13938{
13939  eval "$1+=\$2"
13940}
13941_LT_EOF
13942    ;;
13943  *)
13944    cat << \_LT_EOF >> "$cfgfile"
13945
13946# func_append var value
13947# Append VALUE to the end of shell variable VAR.
13948func_append ()
13949{
13950  eval "$1=\$$1\$2"
13951}
13952
13953_LT_EOF
13954    ;;
13955  esac
13956
13957
13958  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13959    || (rm -f "$cfgfile"; exit 1)
13960
13961  mv -f "$cfgfile" "$ofile" ||
13962    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13963  chmod +x "$ofile"
13964
13965 ;;
13966
13967  esac
13968done # for ac_tag
13969
13970
13971as_fn_exit 0
13972_ACEOF
13973ac_clean_files=$ac_clean_files_save
13974
13975test $ac_write_fail = 0 ||
13976  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13977
13978
13979# configure is writing to config.log, and then calls config.status.
13980# config.status does its own redirection, appending to config.log.
13981# Unfortunately, on DOS this fails, as config.log is still kept open
13982# by configure, so config.status won't be able to write to it; its
13983# output is simply discarded.  So we exec the FD to /dev/null,
13984# effectively closing config.log, so it can be properly (re)opened and
13985# appended to by config.status.  When coming back to configure, we
13986# need to make the FD available again.
13987if test "$no_create" != yes; then
13988  ac_cs_success=:
13989  ac_config_status_args=
13990  test "$silent" = yes &&
13991    ac_config_status_args="$ac_config_status_args --quiet"
13992  exec 5>/dev/null
13993  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13994  exec 5>>config.log
13995  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13996  # would make configure fail if this is the last instruction.
13997  $ac_cs_success || as_fn_exit 1
13998fi
13999if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14000  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14001$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14002fi
14003
14004